From 6ed933e82d57eba9c45a6280bfe8942d7e7af784 Mon Sep 17 00:00:00 2001 From: LeoGuo621 <335209779@qq.com> Date: Thu, 31 Aug 2023 13:53:27 +0800 Subject: [PATCH 1/2] rebrand --- .github/ISSUE_TEMPLATE/bug-report.md | 2 +- Dockerfile | 6 +- LICENSE | 2 +- .../AccountBlockedVerificationDecorator.go | 6 +- app/ante/AccountVerificationDecorator.go | 8 +- app/ante/EthGasConsumeDecorator.go | 10 +- app/ante/EthMempoolFeeDecorator.go | 6 +- app/ante/EthSetupContextDecorator.go | 4 +- app/ante/EthSigVerificationDecorator.go | 8 +- app/ante/GasLimitDecorator.go | 10 +- app/ante/IncrementSeqDecorator.go | 10 +- app/ante/NonceVerificationDecorator.go | 10 +- app/ante/account.go | 18 +- app/ante/ante.go | 28 +- app/ante/ante_test.go | 14 +- app/ante/utils.go | 6 +- app/ante/utils_test.go | 45 ++-- app/ante/validateMsg.go | 2 +- app/ante/wrapWasmCountTXDecorator.go | 6 +- app/app.go | 225 ++++++++-------- app/app_abci.go | 22 +- app/app_parallel.go | 26 +- app/app_test.go | 48 ++-- app/app_upgrade.go | 26 +- app/codec/codec.go | 18 +- app/config/apollo.go | 6 +- app/config/config.go | 254 +++++++++--------- app/config/config_test.go | 8 +- app/config/local.go | 7 +- app/config/pprof.go | 8 +- app/crypto/ethkeystore/keystore.go | 12 +- app/crypto/ethkeystore/keystore_test.go | 12 +- app/crypto/ethsecp256k1/codec.go | 6 +- app/crypto/ethsecp256k1/ethsecp256k1.go | 2 +- app/crypto/ethsecp256k1/ethsecp256k1_test.go | 2 +- app/crypto/hd/algorithm.go | 6 +- app/crypto/hd/algorithm_test.go | 10 +- app/elapse_info.go | 4 +- app/engine.go | 2 +- app/export.go | 22 +- app/innertx_test.go | 38 +-- app/logevents/provider.go | 8 +- app/logevents/subscriber.go | 2 +- app/node_mode.go | 30 +-- app/refund/refund.go | 20 +- app/repair_state.go | 59 ++-- app/rpc/apis.go | 30 +-- app/rpc/backend/backend.go | 22 +- app/rpc/backend/cache.go | 4 +- app/rpc/backend/cache_lru.go | 4 +- app/rpc/backend/cache_lru_test.go | 4 +- app/rpc/cmd.go | 8 +- app/rpc/config.go | 24 +- app/rpc/monitor/monitor.go | 2 +- app/rpc/nacos/start.go | 2 +- app/rpc/namespaces/debug/api.go | 12 +- app/rpc/namespaces/eth/api.go | 80 +++--- app/rpc/namespaces/eth/api_multi.go | 20 +- app/rpc/namespaces/eth/filters/api.go | 14 +- .../namespaces/eth/filters/filter_system.go | 16 +- app/rpc/namespaces/eth/filters/filters.go | 6 +- .../namespaces/eth/filters/subscription.go | 2 +- app/rpc/namespaces/eth/simulation/evm.go | 20 +- app/rpc/namespaces/eth/simulation/impl.go | 34 +-- app/rpc/namespaces/eth/tx_pool.go | 22 +- app/rpc/namespaces/eth/txpool/api.go | 8 +- app/rpc/namespaces/eth/utils.go | 22 +- app/rpc/namespaces/eth/utils_test.go | 2 +- app/rpc/namespaces/eth/wasm.go | 12 +- app/rpc/namespaces/net/api.go | 10 +- app/rpc/namespaces/personal/api.go | 20 +- app/rpc/namespaces/web3/api.go | 6 +- app/rpc/pendingtx/watcher.go | 12 +- app/rpc/simulator/handler.go | 2 +- app/rpc/tests/mock_client.go | 54 ++-- app/rpc/tests/rpc_test.go | 42 +-- app/rpc/tests/test.sh | 28 +- .../tests/tests-pending/rpc_pending_test.go | 37 +-- app/rpc/tests/utils_test.go | 12 +- app/rpc/types/types.go | 2 +- app/rpc/types/utils.go | 22 +- app/rpc/websockets/pubsub_api.go | 16 +- app/rpc/websockets/server.go | 8 +- app/rpc/websockets/types.go | 2 +- app/simulation_test.go | 61 ++--- app/start_from_snapshot.go | 4 +- app/test_helpers.go | 18 +- app/types/account.go | 10 +- app/types/account_test.go | 22 +- app/types/address_test.go | 2 +- app/types/chain_id.go | 5 +- app/types/codec.go | 4 +- app/types/coin.go | 2 +- app/types/config.go | 2 +- app/types/config_test.go | 4 +- app/types/errors.go | 2 +- app/utils/appstatus/fast_storage.go | 40 +-- app/utils/sanity/start.go | 18 +- app/utils/sanity/start_test.go | 16 +- benchmarks/app_test.go | 48 ++-- benchmarks/bench_test.go | 18 +- cmd/{okbchaincli => brczerocli}/main.go | 64 ++--- cmd/{okbchaind => brczerod}/base/account.go | 4 +- cmd/{okbchaind => brczerod}/base/db.go | 2 +- cmd/{okbchaind => brczerod}/data.go | 65 ++--- cmd/{okbchaind => brczerod}/data_rocksdb.go | 2 +- .../data_rocksdb_no.go | 0 cmd/{okbchaind => brczerod}/display_state.go | 15 +- cmd/{okbchaind => brczerod}/export_app.go | 13 +- cmd/{okbchaind => brczerod}/fss/create.go | 14 +- cmd/{okbchaind => brczerod}/fss/fss.go | 8 +- cmd/{okbchaind => brczerod}/genaccounts.go | 24 +- cmd/{okbchaind => brczerod}/iaviewer.go | 44 +-- cmd/{okbchaind => brczerod}/main.go | 74 ++--- cmd/{okbchaind => brczerod}/mpt/cmd.go | 6 +- cmd/{okbchaind => brczerod}/mpt/common.go | 25 +- cmd/{okbchaind => brczerod}/mpt/iavl2mpt.go | 10 +- cmd/{okbchaind => brczerod}/mpt/iavl_clean.go | 12 +- cmd/{okbchaind => brczerod}/mpt/mpt_viewer.go | 11 +- cmd/{okbchaind => brczerod}/mpt/newaccount.go | 16 +- cmd/{okbchaind => brczerod}/mpt/snapshot.go | 20 +- cmd/{okbchaind => brczerod}/repair_data.go | 20 +- cmd/{okbchaind => brczerod}/replay.go | 54 ++-- cmd/{okbchaind => brczerod}/rest.go | 54 ++-- cmd/{okbchaind => brczerod}/subscribe_cmd.go | 6 +- cmd/client/addr.go | 4 +- cmd/client/config.go | 6 +- cmd/client/export.go | 16 +- cmd/client/flags.go | 42 +-- cmd/client/keys.go | 12 +- cmd/client/testnet.go | 57 ++-- dev/client/common.go | 2 +- dev/escrow.sh | 2 +- dev/local-perf.sh | 2 +- dev/snapshot.sh | 4 +- dev/start.sh | 4 +- dev/testnet/addnewnode.sh | 2 +- dev/testnet/testnet.sh | 2 +- dev/testnet/upgrade.sh | 8 +- dev/tx/main.go | 4 +- dev/wasm-allcases.sh | 14 +- dev/wasm-proposal.sh | 14 +- docker-compose.yml | 16 +- go.mod | 2 +- libs/cosmos-sdk/baseapp/abci.go | 24 +- libs/cosmos-sdk/baseapp/baseapp.go | 34 +-- libs/cosmos-sdk/baseapp/baseapp_checktx.go | 8 +- .../cosmos-sdk/baseapp/baseapp_ibc_adapter.go | 10 +- libs/cosmos-sdk/baseapp/baseapp_mode_base.go | 10 +- .../baseapp/baseapp_mode_deliver.go | 2 +- .../baseapp/baseapp_mode_deliverInAsync.go | 2 +- .../baseapp/baseapp_mode_simulate.go | 4 +- libs/cosmos-sdk/baseapp/baseapp_parallel.go | 10 +- libs/cosmos-sdk/baseapp/baseapp_runtx.go | 10 +- libs/cosmos-sdk/baseapp/baseapp_synclist.go | 2 +- libs/cosmos-sdk/baseapp/baseapp_test.go | 16 +- libs/cosmos-sdk/baseapp/cache.go | 2 +- libs/cosmos-sdk/baseapp/evm2cm.go | 2 +- libs/cosmos-sdk/baseapp/evm2cm_test.go | 6 +- libs/cosmos-sdk/baseapp/gasuseddb.go | 6 +- libs/cosmos-sdk/baseapp/grpcrouter.go | 8 +- libs/cosmos-sdk/baseapp/grpcrouter_helpers.go | 6 +- libs/cosmos-sdk/baseapp/grpcrouter_test.go | 22 +- libs/cosmos-sdk/baseapp/helpers.go | 4 +- libs/cosmos-sdk/baseapp/helpers_okchain.go | 8 +- libs/cosmos-sdk/baseapp/msg_service_router.go | 6 +- .../baseapp/msg_service_router_test.go | 14 +- libs/cosmos-sdk/baseapp/options.go | 8 +- libs/cosmos-sdk/baseapp/queryrouter.go | 2 +- libs/cosmos-sdk/baseapp/queryrouter_test.go | 4 +- libs/cosmos-sdk/baseapp/router.go | 2 +- libs/cosmos-sdk/baseapp/router_test.go | 2 +- libs/cosmos-sdk/baseapp/state.go | 2 +- libs/cosmos-sdk/client/account_retriever.go | 6 +- libs/cosmos-sdk/client/cmd_test.go | 2 +- libs/cosmos-sdk/client/config.go | 2 +- libs/cosmos-sdk/client/config_test.go | 2 +- libs/cosmos-sdk/client/context/broadcast.go | 10 +- .../client/context/broadcast_test.go | 12 +- libs/cosmos-sdk/client/context/context.go | 20 +- .../client/context/context_adapter.go | 4 +- libs/cosmos-sdk/client/context/errors.go | 2 +- libs/cosmos-sdk/client/context/grpc_query.go | 8 +- libs/cosmos-sdk/client/context/query.go | 20 +- libs/cosmos-sdk/client/context/tx.go | 2 +- libs/cosmos-sdk/client/context/verifier.go | 8 +- .../client/context/verifier_test.go | 2 +- libs/cosmos-sdk/client/debug/main.go | 12 +- libs/cosmos-sdk/client/flags/flags.go | 4 +- .../client/grpc/reflection/reflection.go | 2 +- libs/cosmos-sdk/client/ibctx_config.go | 8 +- libs/cosmos-sdk/client/keys/add.go | 14 +- .../cosmos-sdk/client/keys/add_ledger_test.go | 10 +- libs/cosmos-sdk/client/keys/add_test.go | 10 +- libs/cosmos-sdk/client/keys/codec.go | 2 +- libs/cosmos-sdk/client/keys/codec_test.go | 2 +- libs/cosmos-sdk/client/keys/delete.go | 8 +- libs/cosmos-sdk/client/keys/delete_test.go | 8 +- libs/cosmos-sdk/client/keys/export.go | 8 +- libs/cosmos-sdk/client/keys/export_test.go | 8 +- libs/cosmos-sdk/client/keys/import.go | 8 +- libs/cosmos-sdk/client/keys/import_test.go | 8 +- libs/cosmos-sdk/client/keys/list.go | 6 +- libs/cosmos-sdk/client/keys/list_test.go | 8 +- libs/cosmos-sdk/client/keys/migrate.go | 8 +- libs/cosmos-sdk/client/keys/migrate_test.go | 6 +- libs/cosmos-sdk/client/keys/mnemonic.go | 2 +- libs/cosmos-sdk/client/keys/mnemonic_test.go | 2 +- libs/cosmos-sdk/client/keys/parse.go | 8 +- libs/cosmos-sdk/client/keys/parse_test.go | 2 +- libs/cosmos-sdk/client/keys/root.go | 2 +- libs/cosmos-sdk/client/keys/root_test.go | 4 +- libs/cosmos-sdk/client/keys/show.go | 16 +- libs/cosmos-sdk/client/keys/show_test.go | 16 +- libs/cosmos-sdk/client/keys/update.go | 4 +- libs/cosmos-sdk/client/keys/update_test.go | 8 +- libs/cosmos-sdk/client/keys/utils.go | 6 +- libs/cosmos-sdk/client/lcd/root.go | 20 +- libs/cosmos-sdk/client/lcd/root_ibc.go | 4 +- libs/cosmos-sdk/client/routes.go | 4 +- libs/cosmos-sdk/client/rpc/block.go | 10 +- libs/cosmos-sdk/client/rpc/root.go | 2 +- libs/cosmos-sdk/client/rpc/status.go | 14 +- libs/cosmos-sdk/client/rpc/validators.go | 12 +- libs/cosmos-sdk/client/utils.go | 6 +- libs/cosmos-sdk/client/utils_test.go | 2 +- libs/cosmos-sdk/codec/codec.go | 4 +- libs/cosmos-sdk/codec/codec_adapter.go | 2 +- libs/cosmos-sdk/codec/json.go | 2 +- libs/cosmos-sdk/codec/proto_codec.go | 2 +- libs/cosmos-sdk/codec/types/any.go | 2 +- .../codec/unknownproto/unknown_fields.go | 2 +- libs/cosmos-sdk/crypto/amino.go | 2 +- libs/cosmos-sdk/crypto/encode_test.go | 6 +- libs/cosmos-sdk/crypto/keys/codec.go | 6 +- .../crypto/keys/hd/fundraiser_test.go | 4 +- libs/cosmos-sdk/crypto/keys/hd/hdpath_test.go | 2 +- libs/cosmos-sdk/crypto/keys/keybase.go | 12 +- libs/cosmos-sdk/crypto/keys/keybase_base.go | 10 +- libs/cosmos-sdk/crypto/keys/keybase_test.go | 12 +- libs/cosmos-sdk/crypto/keys/keyring.go | 12 +- libs/cosmos-sdk/crypto/keys/keyring_test.go | 10 +- libs/cosmos-sdk/crypto/keys/lazy_keybase.go | 6 +- .../crypto/keys/lazy_keybase_test.go | 14 +- .../cosmos-sdk/crypto/keys/mintkey/mintkey.go | 12 +- .../crypto/keys/mintkey/mintkey_bench_test.go | 2 +- .../crypto/keys/mintkey/mintkey_test.go | 10 +- libs/cosmos-sdk/crypto/keys/output.go | 2 +- libs/cosmos-sdk/crypto/keys/output_test.go | 8 +- libs/cosmos-sdk/crypto/keys/types.go | 8 +- libs/cosmos-sdk/crypto/keys/types_test.go | 6 +- libs/cosmos-sdk/crypto/ledger_mock.go | 10 +- libs/cosmos-sdk/crypto/ledger_secp256k1.go | 8 +- .../crypto/types/multisig/multisignature.go | 4 +- .../crypto/types/multisig/pubkey.go | 4 +- libs/cosmos-sdk/crypto/types/types.go | 2 +- libs/cosmos-sdk/docs/run-node/run-node.md | 14 +- libs/cosmos-sdk/server/config/config.go | 2 +- libs/cosmos-sdk/server/config/config_test.go | 2 +- libs/cosmos-sdk/server/config/toml.go | 2 +- libs/cosmos-sdk/server/constructors.go | 10 +- libs/cosmos-sdk/server/constructors_test.go | 2 +- libs/cosmos-sdk/server/export.go | 10 +- libs/cosmos-sdk/server/grpc/grpc.go | 22 +- .../grpc/reflection/v2alpha1/reflection.go | 6 +- libs/cosmos-sdk/server/init.go | 6 +- libs/cosmos-sdk/server/init_test.go | 8 +- libs/cosmos-sdk/server/mock/app.go | 12 +- libs/cosmos-sdk/server/mock/app_test.go | 8 +- libs/cosmos-sdk/server/mock/helpers.go | 4 +- libs/cosmos-sdk/server/mock/store.go | 10 +- libs/cosmos-sdk/server/mock/store_test.go | 4 +- libs/cosmos-sdk/server/mock/tx.go | 4 +- libs/cosmos-sdk/server/pruning.go | 10 +- libs/cosmos-sdk/server/pruning_test.go | 2 +- libs/cosmos-sdk/server/start.go | 54 ++-- libs/cosmos-sdk/server/start_okchain.go | 34 +-- libs/cosmos-sdk/server/test_helpers.go | 2 +- libs/cosmos-sdk/server/tm_cmds.go | 16 +- libs/cosmos-sdk/server/types/app_cm40.go | 2 +- libs/cosmos-sdk/server/util.go | 24 +- libs/cosmos-sdk/server/util_test.go | 2 +- libs/cosmos-sdk/simapp/app.go | 58 ++-- libs/cosmos-sdk/simapp/app_test.go | 8 +- libs/cosmos-sdk/simapp/config.go | 2 +- libs/cosmos-sdk/simapp/export.go | 16 +- libs/cosmos-sdk/simapp/genesis_account.go | 8 +- .../cosmos-sdk/simapp/genesis_account_test.go | 10 +- .../cosmos-sdk/simapp/helpers/test_helpers.go | 8 +- libs/cosmos-sdk/simapp/sim_bench_test.go | 4 +- libs/cosmos-sdk/simapp/sim_test.go | 32 +-- libs/cosmos-sdk/simapp/state.go | 16 +- libs/cosmos-sdk/simapp/test_helpers.go | 24 +- libs/cosmos-sdk/simapp/types.go | 10 +- libs/cosmos-sdk/simapp/utils.go | 18 +- libs/cosmos-sdk/simapp/utils_test.go | 8 +- libs/cosmos-sdk/store/cache/cache.go | 4 +- libs/cosmos-sdk/store/cache/cache_test.go | 10 +- libs/cosmos-sdk/store/cachekv/memiterator.go | 4 +- .../cosmos-sdk/store/cachekv/mergeiterator.go | 2 +- libs/cosmos-sdk/store/cachekv/store.go | 12 +- .../store/cachekv/store_bench_test.go | 6 +- libs/cosmos-sdk/store/cachekv/store_test.go | 10 +- libs/cosmos-sdk/store/cachemulti/store.go | 8 +- .../cosmos-sdk/store/cachemulti/store_test.go | 8 +- libs/cosmos-sdk/store/dbadapter/store.go | 8 +- libs/cosmos-sdk/store/firstlast.go | 4 +- libs/cosmos-sdk/store/flatkv/store.go | 2 +- libs/cosmos-sdk/store/flatkv/wire.go | 2 +- libs/cosmos-sdk/store/gaskv/store.go | 2 +- libs/cosmos-sdk/store/gaskv/store_test.go | 8 +- libs/cosmos-sdk/store/iavl/iavl_store.go | 18 +- .../store/iavl/store_ibc_adapter.go | 12 +- libs/cosmos-sdk/store/iavl/store_test.go | 10 +- libs/cosmos-sdk/store/iavl/tree.go | 2 +- libs/cosmos-sdk/store/iavl/wire.go | 2 +- libs/cosmos-sdk/store/internal/maps/maps.go | 8 +- .../store/internal/proofs/convert.go | 2 +- .../store/internal/proofs/create.go | 2 +- .../store/internal/proofs/helpers.go | 6 +- libs/cosmos-sdk/store/list/list.go | 4 +- libs/cosmos-sdk/store/list/list_test.go | 12 +- libs/cosmos-sdk/store/listenkv/store.go | 2 +- libs/cosmos-sdk/store/mem/store.go | 12 +- libs/cosmos-sdk/store/mpt/asyncdb.go | 2 +- libs/cosmos-sdk/store/mpt/immutable_store.go | 8 +- libs/cosmos-sdk/store/mpt/instance.go | 6 +- libs/cosmos-sdk/store/mpt/instance_test.go | 9 +- libs/cosmos-sdk/store/mpt/params.go | 2 +- libs/cosmos-sdk/store/mpt/proof.go | 2 +- libs/cosmos-sdk/store/mpt/snapshot.go | 4 +- libs/cosmos-sdk/store/mpt/snapshot_test.go | 2 +- libs/cosmos-sdk/store/mpt/statistics_test.go | 2 +- libs/cosmos-sdk/store/mpt/store.go | 26 +- libs/cosmos-sdk/store/mpt/store_iterator.go | 2 +- libs/cosmos-sdk/store/mpt/store_test.go | 11 +- .../store/mpt/types/wrap_rocksdb.go | 2 +- .../store/mpt/types/wrap_rocksdb_batch.go | 2 +- .../store/mpt/types/wrap_rocksdb_iterator.go | 2 +- libs/cosmos-sdk/store/prefix/store.go | 6 +- libs/cosmos-sdk/store/prefix/store_test.go | 14 +- libs/cosmos-sdk/store/queue/queue.go | 6 +- libs/cosmos-sdk/store/reexport.go | 2 +- .../rootmulti/commit_info_ibc_adapter.go | 8 +- libs/cosmos-sdk/store/rootmulti/dbadapter.go | 6 +- libs/cosmos-sdk/store/rootmulti/proof.go | 6 +- libs/cosmos-sdk/store/rootmulti/proof_test.go | 8 +- .../store/rootmulti/rootmulti_store.go | 52 ++-- .../store/rootmulti/store_ok_adapter.go | 6 +- libs/cosmos-sdk/store/rootmulti/store_test.go | 16 +- libs/cosmos-sdk/store/rootmulti/wire.go | 2 +- libs/cosmos-sdk/store/store.go | 8 +- libs/cosmos-sdk/store/tracekv/store.go | 2 +- libs/cosmos-sdk/store/tracekv/store_test.go | 10 +- libs/cosmos-sdk/store/transient/store_test.go | 2 +- .../store/transient/transient_store.go | 8 +- libs/cosmos-sdk/store/types/commit_info.go | 6 +- libs/cosmos-sdk/store/types/iterator_test.go | 6 +- libs/cosmos-sdk/store/types/listening.go | 2 +- libs/cosmos-sdk/store/types/store.go | 12 +- .../store/types/store_ok_adapter.go | 4 +- libs/cosmos-sdk/store/types/utils.go | 2 +- libs/cosmos-sdk/tests/mocks/types_handler.go | 2 +- libs/cosmos-sdk/tests/util.go | 8 +- libs/cosmos-sdk/types/abci.go | 2 +- libs/cosmos-sdk/types/address.go | 6 +- libs/cosmos-sdk/types/address_exchain.go | 4 +- libs/cosmos-sdk/types/address_test.go | 8 +- libs/cosmos-sdk/types/bench_test.go | 2 +- libs/cosmos-sdk/types/cache.go | 2 +- libs/cosmos-sdk/types/codec.go | 2 +- libs/cosmos-sdk/types/coin_ibc.go | 4 +- libs/cosmos-sdk/types/config.go | 2 +- libs/cosmos-sdk/types/config_test.go | 2 +- libs/cosmos-sdk/types/context.go | 10 +- libs/cosmos-sdk/types/context_test.go | 12 +- libs/cosmos-sdk/types/decimal_test.go | 2 +- libs/cosmos-sdk/types/errors/abci.go | 2 +- libs/cosmos-sdk/types/errors/abci_test.go | 2 +- libs/cosmos-sdk/types/errors/stacktrace.go | 6 +- .../types/errors/stacktrace_test.go | 4 +- libs/cosmos-sdk/types/errors_exchain.go | 2 +- libs/cosmos-sdk/types/events.go | 4 +- libs/cosmos-sdk/types/handler.go | 4 +- libs/cosmos-sdk/types/handler_test.go | 4 +- libs/cosmos-sdk/types/ibc-adapter/abci.pb.go | 6 +- libs/cosmos-sdk/types/ibc-adapter/events.go | 6 +- libs/cosmos-sdk/types/ibc-adapter/result.go | 10 +- libs/cosmos-sdk/types/ibc-adapter/tx_msg.go | 6 +- libs/cosmos-sdk/types/module/adapter.go | 8 +- libs/cosmos-sdk/types/module/configurator.go | 2 +- libs/cosmos-sdk/types/module/module.go | 10 +- .../types/module/module_ibc_adapter.go | 4 +- libs/cosmos-sdk/types/module/simulation.go | 6 +- .../types/msgservice/msg_service.go | 4 +- .../types/query/filtered_pagination.go | 2 +- libs/cosmos-sdk/types/query/pagination.go | 2 +- libs/cosmos-sdk/types/queryable.go | 2 +- libs/cosmos-sdk/types/rest/rest.go | 12 +- libs/cosmos-sdk/types/rest/rest_test.go | 10 +- libs/cosmos-sdk/types/result.go | 4 +- libs/cosmos-sdk/types/result_test.go | 2 +- libs/cosmos-sdk/types/staking.go | 2 +- libs/cosmos-sdk/types/store.go | 6 +- libs/cosmos-sdk/types/tx/service.pb.go | 4 +- libs/cosmos-sdk/types/tx/signing/signature.go | 4 +- .../types/tx/signing/signature_data.go | 2 +- .../cosmos-sdk/types/tx/signing/signing.pb.go | 4 +- libs/cosmos-sdk/types/tx/tx.go | 10 +- libs/cosmos-sdk/types/tx/tx.pb.go | 12 +- libs/cosmos-sdk/types/tx/types.go | 12 +- libs/cosmos-sdk/types/tx_msg_adapter.go | 2 +- libs/cosmos-sdk/types/upgrade/upgrade.go | 6 +- libs/cosmos-sdk/types/utils.go | 2 +- libs/cosmos-sdk/types/wasm_address.go | 2 +- libs/cosmos-sdk/version/command.go | 2 +- libs/cosmos-sdk/version/version.go | 2 +- libs/cosmos-sdk/x/auth/alias.go | 8 +- libs/cosmos-sdk/x/auth/alias_exchain.go | 4 +- libs/cosmos-sdk/x/auth/ante/ante.go | 6 +- libs/cosmos-sdk/x/auth/ante/ante_test.go | 16 +- libs/cosmos-sdk/x/auth/ante/basic.go | 12 +- libs/cosmos-sdk/x/auth/ante/basic_test.go | 8 +- libs/cosmos-sdk/x/auth/ante/fee.go | 12 +- libs/cosmos-sdk/x/auth/ante/fee_test.go | 8 +- .../x/auth/ante/integration_test.go | 8 +- libs/cosmos-sdk/x/auth/ante/nonce_adapt.go | 6 +- .../x/auth/ante/nonce_adapt_test.go | 6 +- libs/cosmos-sdk/x/auth/ante/setup.go | 6 +- libs/cosmos-sdk/x/auth/ante/setup_test.go | 10 +- libs/cosmos-sdk/x/auth/ante/sigverify.go | 26 +- libs/cosmos-sdk/x/auth/ante/sigverify_test.go | 24 +- .../cosmos-sdk/x/auth/client/cli/broadcast.go | 8 +- libs/cosmos-sdk/x/auth/client/cli/decode.go | 6 +- libs/cosmos-sdk/x/auth/client/cli/encode.go | 8 +- libs/cosmos-sdk/x/auth/client/cli/query.go | 24 +- libs/cosmos-sdk/x/auth/client/cli/tx.go | 6 +- .../x/auth/client/cli/tx_multisign.go | 20 +- libs/cosmos-sdk/x/auth/client/cli/tx_sign.go | 14 +- .../x/auth/client/rest/broadcast.go | 8 +- libs/cosmos-sdk/x/auth/client/rest/decode.go | 6 +- libs/cosmos-sdk/x/auth/client/rest/encode.go | 6 +- libs/cosmos-sdk/x/auth/client/rest/query.go | 12 +- libs/cosmos-sdk/x/auth/client/rest/rest.go | 2 +- .../x/auth/client/utils/cm40_query.go | 10 +- .../x/auth/client/utils/converter.go | 6 +- libs/cosmos-sdk/x/auth/client/utils/query.go | 10 +- libs/cosmos-sdk/x/auth/client/utils/rest.go | 10 +- .../cosmos-sdk/x/auth/client/utils/service.go | 12 +- libs/cosmos-sdk/x/auth/client/utils/tx.go | 26 +- .../cosmos-sdk/x/auth/client/utils/tx_test.go | 8 +- libs/cosmos-sdk/x/auth/exported/exported.go | 2 +- .../x/auth/exported/exported_test.go | 8 +- libs/cosmos-sdk/x/auth/exported/utils.go | 4 +- libs/cosmos-sdk/x/auth/genesis.go | 4 +- libs/cosmos-sdk/x/auth/ibc-tx/alias.go | 4 +- libs/cosmos-sdk/x/auth/ibc-tx/builder.go | 18 +- libs/cosmos-sdk/x/auth/ibc-tx/config.go | 10 +- libs/cosmos-sdk/x/auth/ibc-tx/decoder.go | 26 +- libs/cosmos-sdk/x/auth/ibc-tx/direct.go | 8 +- libs/cosmos-sdk/x/auth/ibc-tx/encoder.go | 12 +- .../ibc-tx/internal/adapter/keyTpAdapter.go | 12 +- .../internal/ethsecp256k1/ethsecp256k1.go | 8 +- .../x/auth/ibc-tx/internal/pb-codec/proto.go | 16 +- .../ibc-tx/internal/secp256k1/secp256k1.go | 6 +- .../internal/secp256k1/secp256k1_cgo.go | 2 +- .../internal/secp256k1/secp256k1_nocgo.go | 2 +- libs/cosmos-sdk/x/auth/ibc-tx/mode_handler.go | 4 +- libs/cosmos-sdk/x/auth/ibc-tx/msg_adapter.go | 2 +- libs/cosmos-sdk/x/auth/ibc-tx/sig.go | 10 +- libs/cosmos-sdk/x/auth/ibc-tx/txencoder.go | 4 +- .../x/auth/ibcsigning/handler_map.go | 4 +- .../x/auth/ibcsigning/sig_verifiable_tx.go | 8 +- .../x/auth/ibcsigning/sign_mode_handler.go | 4 +- libs/cosmos-sdk/x/auth/ibcsigning/verify.go | 8 +- libs/cosmos-sdk/x/auth/keeper/account.go | 8 +- libs/cosmos-sdk/x/auth/keeper/account_test.go | 4 +- libs/cosmos-sdk/x/auth/keeper/adapter.go | 14 +- libs/cosmos-sdk/x/auth/keeper/ante_okchain.go | 4 +- .../x/auth/keeper/integration_test.go | 8 +- libs/cosmos-sdk/x/auth/keeper/keeper.go | 16 +- .../x/auth/keeper/keeper_bench_test.go | 2 +- libs/cosmos-sdk/x/auth/keeper/keeper_test.go | 4 +- libs/cosmos-sdk/x/auth/keeper/params.go | 4 +- libs/cosmos-sdk/x/auth/keeper/querier.go | 10 +- libs/cosmos-sdk/x/auth/keeper/querier_test.go | 8 +- libs/cosmos-sdk/x/auth/legacy/v0_34/types.go | 2 +- .../cosmos-sdk/x/auth/legacy/v0_36/migrate.go | 2 +- .../x/auth/legacy/v0_36/migrate_test.go | 4 +- libs/cosmos-sdk/x/auth/legacy/v0_36/types.go | 2 +- .../cosmos-sdk/x/auth/legacy/v0_38/migrate.go | 4 +- .../x/auth/legacy/v0_38/migrate_test.go | 8 +- libs/cosmos-sdk/x/auth/legacy/v0_38/types.go | 8 +- .../cosmos-sdk/x/auth/legacy/v0_39/migrate.go | 2 +- libs/cosmos-sdk/x/auth/legacy/v0_39/types.go | 10 +- libs/cosmos-sdk/x/auth/module.go | 22 +- libs/cosmos-sdk/x/auth/module_ibc_adapter.go | 16 +- libs/cosmos-sdk/x/auth/refund/refund.go | 6 +- libs/cosmos-sdk/x/auth/simulation/decoder.go | 8 +- .../x/auth/simulation/decoder_test.go | 10 +- libs/cosmos-sdk/x/auth/simulation/genesis.go | 14 +- libs/cosmos-sdk/x/auth/simulation/params.go | 4 +- libs/cosmos-sdk/x/auth/types/account.go | 8 +- .../x/auth/types/account_retriever.go | 4 +- .../x/auth/types/account_retriever_test.go | 2 +- .../x/auth/types/account_retriver_exchain.go | 2 +- libs/cosmos-sdk/x/auth/types/account_test.go | 10 +- libs/cosmos-sdk/x/auth/types/codec.go | 6 +- .../x/auth/types/expected_keepers.go | 4 +- libs/cosmos-sdk/x/auth/types/genesis.go | 4 +- libs/cosmos-sdk/x/auth/types/genesis_test.go | 6 +- libs/cosmos-sdk/x/auth/types/ibctx.pb.go | 12 +- libs/cosmos-sdk/x/auth/types/keys.go | 2 +- libs/cosmos-sdk/x/auth/types/params.go | 4 +- libs/cosmos-sdk/x/auth/types/permissions.go | 2 +- libs/cosmos-sdk/x/auth/types/querier.go | 2 +- libs/cosmos-sdk/x/auth/types/query.pb.go | 4 +- libs/cosmos-sdk/x/auth/types/stdsignmsg.go | 2 +- libs/cosmos-sdk/x/auth/types/stdtx.go | 14 +- libs/cosmos-sdk/x/auth/types/stdtx_adapter.go | 8 +- libs/cosmos-sdk/x/auth/types/stdtx_test.go | 16 +- libs/cosmos-sdk/x/auth/types/test_common.go | 6 +- libs/cosmos-sdk/x/auth/types/txbuilder.go | 6 +- .../cosmos-sdk/x/auth/types/txbuilder_test.go | 4 +- .../cosmos-sdk/x/auth/typesadapter/account.go | 8 +- .../cosmos-sdk/x/auth/typesadapter/auth.pb.go | 2 +- libs/cosmos-sdk/x/auth/vesting/alias.go | 2 +- .../x/auth/vesting/exported/exported.go | 4 +- libs/cosmos-sdk/x/auth/vesting/types/codec.go | 4 +- .../x/auth/vesting/types/genesis_test.go | 8 +- .../cosmos-sdk/x/auth/vesting/types/period.go | 2 +- .../x/auth/vesting/types/test_common.go | 6 +- .../x/auth/vesting/types/vesting_account.go | 12 +- .../vesting/types/vesting_account_test.go | 12 +- libs/cosmos-sdk/x/bank/alias.go | 8 +- libs/cosmos-sdk/x/bank/app_test.go | 18 +- libs/cosmos-sdk/x/bank/bench_test.go | 14 +- libs/cosmos-sdk/x/bank/client/cli/tx.go | 16 +- libs/cosmos-sdk/x/bank/client/rest/query.go | 8 +- libs/cosmos-sdk/x/bank/client/rest/tx.go | 10 +- libs/cosmos-sdk/x/bank/genesis.go | 2 +- libs/cosmos-sdk/x/bank/handler.go | 8 +- libs/cosmos-sdk/x/bank/handler_test.go | 6 +- .../cosmos-sdk/x/bank/internal/keeper/abci.go | 6 +- .../bank/internal/keeper/integration_test.go | 8 +- .../x/bank/internal/keeper/invariants.go | 4 +- .../x/bank/internal/keeper/keeper.go | 24 +- .../x/bank/internal/keeper/keeper_test.go | 20 +- .../x/bank/internal/keeper/querier.go | 14 +- .../x/bank/internal/keeper/querier_test.go | 10 +- .../keeperadapter/bankgrpc_adapter.go | 8 +- .../keeperadapter/bankkeeper_adapter.go | 8 +- .../keeperadapter/expected_keepers.go | 4 +- .../bank/internal/keeperadapter/msg_server.go | 8 +- .../cosmos-sdk/x/bank/internal/types/codec.go | 2 +- .../x/bank/internal/types/errors.go | 2 +- .../x/bank/internal/types/expected_keepers.go | 4 +- libs/cosmos-sdk/x/bank/internal/types/msgs.go | 4 +- .../x/bank/internal/types/msgs_test.go | 2 +- .../x/bank/internal/types/params.go | 2 +- .../x/bank/internal/types/querier.go | 2 +- .../x/bank/internal/typesadapter/bank.pb.go | 2 +- .../x/bank/internal/typesadapter/codec.go | 10 +- .../x/bank/internal/typesadapter/msgs.go | 12 +- .../x/bank/internal/typesadapter/query.pb.go | 4 +- .../x/bank/internal/typesadapter/tx.pb.go | 2 +- libs/cosmos-sdk/x/bank/module.go | 24 +- libs/cosmos-sdk/x/bank/module_adapter.go | 4 +- libs/cosmos-sdk/x/bank/module_ibc.go | 10 +- libs/cosmos-sdk/x/bank/simulation/genesis.go | 6 +- .../x/bank/simulation/operations.go | 20 +- libs/cosmos-sdk/x/bank/simulation/params.go | 4 +- libs/cosmos-sdk/x/capability/alias.go | 2 +- libs/cosmos-sdk/x/capability/genesis.go | 6 +- libs/cosmos-sdk/x/capability/keeper/keeper.go | 16 +- .../x/capability/keeper/keeper_test.go | 18 +- libs/cosmos-sdk/x/capability/module.go | 20 +- .../x/capability/simulation/decoder.go | 8 +- .../x/capability/simulation/genesis.go | 4 +- libs/cosmos-sdk/x/capability/types/codec.go | 2 +- libs/cosmos-sdk/x/capability/types/errors.go | 2 +- libs/cosmos-sdk/x/capability/types/keys.go | 2 +- .../x/capability/types/keys_test.go | 2 +- libs/cosmos-sdk/x/capability/types/types.go | 2 +- .../x/capability/types/types_test.go | 2 +- libs/cosmos-sdk/x/crisis/abci.go | 2 +- libs/cosmos-sdk/x/crisis/alias.go | 4 +- libs/cosmos-sdk/x/crisis/client/cli/tx.go | 16 +- libs/cosmos-sdk/x/crisis/genesis.go | 6 +- libs/cosmos-sdk/x/crisis/handler.go | 8 +- libs/cosmos-sdk/x/crisis/handler_test.go | 18 +- .../internal/keeper/integration_test.go | 10 +- .../x/crisis/internal/keeper/keeper.go | 8 +- .../x/crisis/internal/keeper/keeper_test.go | 4 +- .../x/crisis/internal/keeper/params.go | 4 +- .../x/crisis/internal/types/codec.go | 2 +- .../x/crisis/internal/types/errors.go | 2 +- .../crisis/internal/types/expected_keepers.go | 2 +- .../x/crisis/internal/types/genesis.go | 2 +- .../x/crisis/internal/types/msgs.go | 2 +- .../x/crisis/internal/types/params.go | 4 +- .../x/crisis/internal/types/route.go | 2 +- libs/cosmos-sdk/x/crisis/module.go | 18 +- libs/cosmos-sdk/x/distribution/abci.go | 6 +- libs/cosmos-sdk/x/distribution/alias.go | 6 +- .../x/distribution/client/cli/query.go | 16 +- .../x/distribution/client/cli/tx.go | 24 +- .../x/distribution/client/cli/tx_test.go | 12 +- .../x/distribution/client/cli/utils.go | 4 +- .../x/distribution/client/common/common.go | 6 +- .../distribution/client/common/common_test.go | 4 +- .../x/distribution/client/proposal_handler.go | 6 +- .../x/distribution/client/rest/query.go | 10 +- .../x/distribution/client/rest/rest.go | 14 +- .../x/distribution/client/rest/tx.go | 12 +- .../x/distribution/client/rest/utils.go | 4 +- libs/cosmos-sdk/x/distribution/genesis.go | 4 +- libs/cosmos-sdk/x/distribution/handler.go | 10 +- .../x/distribution/keeper/alias_functions.go | 6 +- .../x/distribution/keeper/allocation.go | 8 +- .../x/distribution/keeper/allocation_test.go | 6 +- .../x/distribution/keeper/delegation.go | 6 +- .../x/distribution/keeper/delegation_test.go | 4 +- .../x/distribution/keeper/fee_pool.go | 4 +- .../cosmos-sdk/x/distribution/keeper/hooks.go | 6 +- .../x/distribution/keeper/invariants.go | 6 +- .../x/distribution/keeper/keeper.go | 12 +- .../x/distribution/keeper/keeper_test.go | 2 +- .../x/distribution/keeper/params.go | 4 +- .../x/distribution/keeper/proposal_handler.go | 6 +- .../x/distribution/keeper/querier.go | 12 +- .../x/distribution/keeper/querier_test.go | 12 +- .../cosmos-sdk/x/distribution/keeper/store.go | 4 +- .../x/distribution/keeper/test_common.go | 30 +-- .../x/distribution/keeper/validator.go | 6 +- .../x/distribution/legacy/v0_34/types.go | 2 +- .../x/distribution/legacy/v0_36/migrate.go | 2 +- .../distribution/legacy/v0_36/migrate_test.go | 6 +- .../x/distribution/legacy/v0_36/types.go | 4 +- .../x/distribution/legacy/v0_38/migrate.go | 2 +- .../x/distribution/legacy/v0_38/types.go | 6 +- libs/cosmos-sdk/x/distribution/module.go | 24 +- .../x/distribution/proposal_handler_test.go | 6 +- .../x/distribution/simulation/decoder.go | 8 +- .../x/distribution/simulation/decoder_test.go | 10 +- .../x/distribution/simulation/genesis.go | 8 +- .../x/distribution/simulation/operations.go | 18 +- .../x/distribution/simulation/params.go | 4 +- .../x/distribution/simulation/proposals.go | 12 +- libs/cosmos-sdk/x/distribution/types/codec.go | 2 +- .../x/distribution/types/common_test.go | 6 +- .../x/distribution/types/delegator.go | 2 +- .../cosmos-sdk/x/distribution/types/errors.go | 2 +- .../x/distribution/types/expected_keepers.go | 10 +- .../x/distribution/types/fee_pool.go | 2 +- .../x/distribution/types/fee_pool_test.go | 2 +- .../x/distribution/types/genesis.go | 2 +- libs/cosmos-sdk/x/distribution/types/keys.go | 2 +- libs/cosmos-sdk/x/distribution/types/msg.go | 4 +- .../x/distribution/types/msg_test.go | 2 +- .../cosmos-sdk/x/distribution/types/params.go | 4 +- .../x/distribution/types/params_test.go | 2 +- .../x/distribution/types/proposal.go | 4 +- .../x/distribution/types/querier.go | 2 +- libs/cosmos-sdk/x/distribution/types/query.go | 2 +- .../x/distribution/types/validator.go | 2 +- libs/cosmos-sdk/x/evidence/abci.go | 6 +- libs/cosmos-sdk/x/evidence/alias.go | 4 +- .../cosmos-sdk/x/evidence/client/cli/query.go | 14 +- libs/cosmos-sdk/x/evidence/client/cli/tx.go | 8 +- .../x/evidence/client/evidence_handler.go | 6 +- .../x/evidence/client/rest/query.go | 6 +- .../cosmos-sdk/x/evidence/client/rest/rest.go | 2 +- libs/cosmos-sdk/x/evidence/client/rest/tx.go | 2 +- .../x/evidence/exported/evidence.go | 4 +- libs/cosmos-sdk/x/evidence/genesis.go | 2 +- libs/cosmos-sdk/x/evidence/genesis_test.go | 16 +- libs/cosmos-sdk/x/evidence/handler.go | 4 +- libs/cosmos-sdk/x/evidence/handler_test.go | 12 +- .../x/evidence/internal/keeper/infraction.go | 4 +- .../internal/keeper/infraction_test.go | 8 +- .../x/evidence/internal/keeper/keeper.go | 20 +- .../x/evidence/internal/keeper/keeper_test.go | 22 +- .../x/evidence/internal/keeper/params.go | 4 +- .../x/evidence/internal/keeper/params_test.go | 2 +- .../x/evidence/internal/keeper/querier.go | 16 +- .../evidence/internal/keeper/querier_test.go | 6 +- .../x/evidence/internal/types/codec.go | 4 +- .../x/evidence/internal/types/codec_test.go | 10 +- .../x/evidence/internal/types/errors.go | 2 +- .../x/evidence/internal/types/evidence.go | 10 +- .../evidence/internal/types/evidence_test.go | 4 +- .../internal/types/expected_keepers.go | 6 +- .../x/evidence/internal/types/genesis.go | 2 +- .../x/evidence/internal/types/genesis_test.go | 6 +- .../x/evidence/internal/types/msgs.go | 6 +- .../x/evidence/internal/types/msgs_test.go | 8 +- .../x/evidence/internal/types/params.go | 2 +- .../x/evidence/internal/types/router.go | 4 +- .../x/evidence/internal/types/router_test.go | 6 +- .../x/evidence/internal/types/test_util.go | 12 +- libs/cosmos-sdk/x/evidence/module.go | 16 +- .../x/genaccounts/legacy/v0_34/types.go | 2 +- .../x/genaccounts/legacy/v0_36/migrate.go | 12 +- .../genaccounts/legacy/v0_36/migrate_test.go | 14 +- .../x/genaccounts/legacy/v0_36/types.go | 2 +- libs/cosmos-sdk/x/genutil/alias.go | 2 +- .../x/genutil/client/cli/collect.go | 14 +- libs/cosmos-sdk/x/genutil/client/cli/gentx.go | 30 +-- libs/cosmos-sdk/x/genutil/client/cli/init.go | 22 +- .../x/genutil/client/cli/init_test.go | 20 +- .../x/genutil/client/cli/migrate.go | 18 +- .../x/genutil/client/cli/migrate_test.go | 24 +- .../x/genutil/client/cli/validate_genesis.go | 8 +- .../cosmos-sdk/x/genutil/client/rest/query.go | 8 +- libs/cosmos-sdk/x/genutil/collect.go | 18 +- libs/cosmos-sdk/x/genutil/genesis.go | 8 +- libs/cosmos-sdk/x/genutil/gentx.go | 16 +- .../x/genutil/legacy/v0_36/migrate.go | 26 +- .../x/genutil/legacy/v0_36/migrate_test.go | 2 +- .../x/genutil/legacy/v0_38/migrate.go | 18 +- .../x/genutil/legacy/v0_38/migrate_test.go | 10 +- .../x/genutil/legacy/v0_39/migrate.go | 8 +- .../x/genutil/legacy/v0_39/migrate_test.go | 8 +- libs/cosmos-sdk/x/genutil/module.go | 12 +- libs/cosmos-sdk/x/genutil/types/codec.go | 8 +- .../x/genutil/types/expected_keepers.go | 8 +- .../x/genutil/types/genesis_state.go | 10 +- .../x/genutil/types/genesis_state_test.go | 8 +- libs/cosmos-sdk/x/genutil/types/types.go | 2 +- libs/cosmos-sdk/x/genutil/utils.go | 12 +- libs/cosmos-sdk/x/genutil/utils_test.go | 2 +- libs/cosmos-sdk/x/gov/abci.go | 4 +- libs/cosmos-sdk/x/gov/abci_test.go | 8 +- libs/cosmos-sdk/x/gov/alias.go | 4 +- libs/cosmos-sdk/x/gov/client/cli/parse.go | 2 +- libs/cosmos-sdk/x/gov/client/cli/query.go | 16 +- libs/cosmos-sdk/x/gov/client/cli/tx.go | 20 +- .../x/gov/client/proposal_handler.go | 8 +- libs/cosmos-sdk/x/gov/client/rest/query.go | 10 +- libs/cosmos-sdk/x/gov/client/rest/rest.go | 6 +- libs/cosmos-sdk/x/gov/client/rest/tx.go | 12 +- libs/cosmos-sdk/x/gov/client/utils/query.go | 10 +- .../x/gov/client/utils/query_test.go | 20 +- libs/cosmos-sdk/x/gov/client/utils/utils.go | 2 +- libs/cosmos-sdk/x/gov/genesis.go | 4 +- libs/cosmos-sdk/x/gov/genesis_test.go | 4 +- libs/cosmos-sdk/x/gov/handler.go | 6 +- libs/cosmos-sdk/x/gov/handler_test.go | 4 +- libs/cosmos-sdk/x/gov/keeper/deposit.go | 6 +- libs/cosmos-sdk/x/gov/keeper/deposit_test.go | 2 +- libs/cosmos-sdk/x/gov/keeper/invariants.go | 4 +- libs/cosmos-sdk/x/gov/keeper/keeper.go | 10 +- libs/cosmos-sdk/x/gov/keeper/keeper_test.go | 2 +- libs/cosmos-sdk/x/gov/keeper/params.go | 4 +- libs/cosmos-sdk/x/gov/keeper/proposal.go | 8 +- libs/cosmos-sdk/x/gov/keeper/proposal_test.go | 6 +- libs/cosmos-sdk/x/gov/keeper/querier.go | 12 +- libs/cosmos-sdk/x/gov/keeper/querier_test.go | 8 +- libs/cosmos-sdk/x/gov/keeper/tally.go | 6 +- libs/cosmos-sdk/x/gov/keeper/tally_test.go | 6 +- libs/cosmos-sdk/x/gov/keeper/test_common.go | 34 +-- libs/cosmos-sdk/x/gov/keeper/vote.go | 6 +- libs/cosmos-sdk/x/gov/keeper/vote_test.go | 2 +- libs/cosmos-sdk/x/gov/legacy/v0_34/types.go | 4 +- libs/cosmos-sdk/x/gov/legacy/v0_36/migrate.go | 2 +- libs/cosmos-sdk/x/gov/legacy/v0_36/types.go | 6 +- libs/cosmos-sdk/x/gov/module.go | 24 +- libs/cosmos-sdk/x/gov/simulation/decoder.go | 6 +- .../x/gov/simulation/decoder_test.go | 10 +- libs/cosmos-sdk/x/gov/simulation/genesis.go | 10 +- .../cosmos-sdk/x/gov/simulation/operations.go | 16 +- libs/cosmos-sdk/x/gov/simulation/params.go | 6 +- libs/cosmos-sdk/x/gov/simulation/proposals.go | 8 +- libs/cosmos-sdk/x/gov/test_common.go | 28 +- libs/cosmos-sdk/x/gov/types/codec.go | 2 +- libs/cosmos-sdk/x/gov/types/content.go | 4 +- libs/cosmos-sdk/x/gov/types/deposit.go | 2 +- libs/cosmos-sdk/x/gov/types/errors.go | 2 +- .../x/gov/types/expected_keepers.go | 8 +- libs/cosmos-sdk/x/gov/types/genesis.go | 2 +- libs/cosmos-sdk/x/gov/types/keys.go | 2 +- libs/cosmos-sdk/x/gov/types/keys_test.go | 4 +- libs/cosmos-sdk/x/gov/types/msgs.go | 4 +- libs/cosmos-sdk/x/gov/types/msgs_test.go | 2 +- libs/cosmos-sdk/x/gov/types/params.go | 4 +- libs/cosmos-sdk/x/gov/types/proposal.go | 4 +- libs/cosmos-sdk/x/gov/types/querier.go | 2 +- libs/cosmos-sdk/x/gov/types/router.go | 2 +- libs/cosmos-sdk/x/gov/types/tally.go | 2 +- libs/cosmos-sdk/x/gov/types/vote.go | 2 +- libs/cosmos-sdk/x/mint/abci.go | 4 +- libs/cosmos-sdk/x/mint/abci_okchain.go | 4 +- libs/cosmos-sdk/x/mint/alias.go | 6 +- libs/cosmos-sdk/x/mint/client/cli/query.go | 12 +- libs/cosmos-sdk/x/mint/client/cli/tx.go | 20 +- .../x/mint/client/proposal_handler.go | 6 +- libs/cosmos-sdk/x/mint/client/rest/query.go | 6 +- libs/cosmos-sdk/x/mint/client/rest/rest.go | 4 +- libs/cosmos-sdk/x/mint/client/utils/utils.go | 6 +- libs/cosmos-sdk/x/mint/genesis.go | 2 +- .../mint/internal/keeper/integration_test.go | 8 +- .../x/mint/internal/keeper/keeper.go | 10 +- .../x/mint/internal/keeper/keeper_okchain.go | 4 +- .../internal/keeper/keeper_okchain_test.go | 18 +- .../x/mint/internal/keeper/proposal.go | 10 +- .../x/mint/internal/keeper/querier.go | 10 +- .../x/mint/internal/keeper/querier_test.go | 6 +- .../cosmos-sdk/x/mint/internal/types/codec.go | 4 +- .../x/mint/internal/types/errors.go | 4 +- .../x/mint/internal/types/expected_keepers.go | 6 +- .../x/mint/internal/types/genesis.go | 2 +- .../x/mint/internal/types/minter.go | 2 +- .../x/mint/internal/types/minter_okchain.go | 4 +- .../x/mint/internal/types/minter_test.go | 2 +- .../x/mint/internal/types/params.go | 4 +- .../x/mint/internal/types/proposal.go | 8 +- .../x/mint/internal/types/proposal_test.go | 6 +- .../x/mint/internal/types/treasure.go | 2 +- .../x/mint/internal/types/treasure_test.go | 2 +- libs/cosmos-sdk/x/mint/module.go | 20 +- libs/cosmos-sdk/x/mint/proposal_handler.go | 8 +- .../x/mint/proposal_handler_test.go | 22 +- libs/cosmos-sdk/x/mint/simulation/decoder.go | 6 +- .../x/mint/simulation/decoder_test.go | 8 +- libs/cosmos-sdk/x/mint/simulation/genesis.go | 8 +- libs/cosmos-sdk/x/mint/simulation/params.go | 4 +- libs/cosmos-sdk/x/mock/app.go | 32 +-- libs/cosmos-sdk/x/mock/app_test.go | 12 +- libs/cosmos-sdk/x/mock/test_utils.go | 10 +- libs/cosmos-sdk/x/mock/types.go | 12 +- libs/cosmos-sdk/x/params/alias.go | 4 +- libs/cosmos-sdk/x/params/client/cli/tx.go | 18 +- .../x/params/client/proposal_handler.go | 6 +- libs/cosmos-sdk/x/params/client/rest/rest.go | 16 +- .../cosmos-sdk/x/params/client/utils/utils.go | 8 +- libs/cosmos-sdk/x/params/commmon_test.go | 12 +- libs/cosmos-sdk/x/params/keeper.go | 10 +- libs/cosmos-sdk/x/params/keeper_test.go | 4 +- libs/cosmos-sdk/x/params/module.go | 14 +- libs/cosmos-sdk/x/params/proposal_handler.go | 6 +- .../x/params/proposal_handler_test.go | 18 +- .../x/params/simulation/operations.go | 8 +- .../x/params/simulation/proposals.go | 4 +- .../x/params/subspace/common_test.go | 4 +- libs/cosmos-sdk/x/params/subspace/subspace.go | 6 +- .../x/params/subspace/subspace_test.go | 14 +- libs/cosmos-sdk/x/params/subspace/table.go | 2 +- .../x/params/subspace/table_test.go | 2 +- libs/cosmos-sdk/x/params/types/codec.go | 2 +- libs/cosmos-sdk/x/params/types/errors.go | 2 +- libs/cosmos-sdk/x/params/types/proposal.go | 2 +- libs/cosmos-sdk/x/simulation/account.go | 6 +- libs/cosmos-sdk/x/simulation/account_test.go | 4 +- .../x/simulation/mock_tendermint.go | 6 +- libs/cosmos-sdk/x/simulation/operation.go | 4 +- libs/cosmos-sdk/x/simulation/params.go | 6 +- libs/cosmos-sdk/x/simulation/rand_util.go | 2 +- .../cosmos-sdk/x/simulation/rand_util_test.go | 4 +- libs/cosmos-sdk/x/simulation/simulate.go | 6 +- libs/cosmos-sdk/x/slashing/abci.go | 4 +- libs/cosmos-sdk/x/slashing/abci_test.go | 8 +- libs/cosmos-sdk/x/slashing/alias.go | 4 +- libs/cosmos-sdk/x/slashing/app_test.go | 22 +- .../cosmos-sdk/x/slashing/client/cli/query.go | 12 +- libs/cosmos-sdk/x/slashing/client/cli/tx.go | 16 +- .../x/slashing/client/rest/query.go | 8 +- .../cosmos-sdk/x/slashing/client/rest/rest.go | 2 +- libs/cosmos-sdk/x/slashing/client/rest/tx.go | 10 +- libs/cosmos-sdk/x/slashing/genesis.go | 6 +- libs/cosmos-sdk/x/slashing/handler.go | 6 +- libs/cosmos-sdk/x/slashing/handler_test.go | 10 +- .../x/slashing/internal/keeper/hooks.go | 6 +- .../x/slashing/internal/keeper/infractions.go | 6 +- .../x/slashing/internal/keeper/keeper.go | 10 +- .../x/slashing/internal/keeper/keeper_test.go | 6 +- .../x/slashing/internal/keeper/params.go | 4 +- .../x/slashing/internal/keeper/querier.go | 12 +- .../slashing/internal/keeper/querier_test.go | 6 +- .../slashing/internal/keeper/signing_info.go | 4 +- .../internal/keeper/signing_info_test.go | 4 +- .../x/slashing/internal/keeper/test_common.go | 30 +-- .../x/slashing/internal/keeper/unjail.go | 4 +- .../x/slashing/internal/types/codec.go | 2 +- .../x/slashing/internal/types/errors.go | 2 +- .../internal/types/expected_keepers.go | 8 +- .../x/slashing/internal/types/genesis.go | 2 +- .../x/slashing/internal/types/keys.go | 2 +- .../x/slashing/internal/types/msg.go | 2 +- .../x/slashing/internal/types/msg_test.go | 2 +- .../x/slashing/internal/types/params.go | 4 +- .../x/slashing/internal/types/querier.go | 2 +- .../x/slashing/internal/types/signing_info.go | 2 +- libs/cosmos-sdk/x/slashing/module.go | 24 +- .../x/slashing/simulation/decoder.go | 10 +- .../x/slashing/simulation/decoder_test.go | 10 +- .../x/slashing/simulation/genesis.go | 10 +- .../x/slashing/simulation/operations.go | 18 +- .../x/slashing/simulation/params.go | 4 +- libs/cosmos-sdk/x/staking/abci.go | 6 +- libs/cosmos-sdk/x/staking/alias.go | 6 +- libs/cosmos-sdk/x/staking/app_test.go | 18 +- libs/cosmos-sdk/x/staking/client/cli/flags.go | 2 +- libs/cosmos-sdk/x/staking/client/cli/query.go | 14 +- libs/cosmos-sdk/x/staking/client/cli/tx.go | 24 +- .../x/staking/client/cli/tx_test.go | 12 +- libs/cosmos-sdk/x/staking/client/cli/utils.go | 4 +- .../cosmos-sdk/x/staking/client/rest/query.go | 8 +- libs/cosmos-sdk/x/staking/client/rest/rest.go | 2 +- libs/cosmos-sdk/x/staking/client/rest/tx.go | 10 +- .../cosmos-sdk/x/staking/client/rest/utils.go | 10 +- .../cosmos-sdk/x/staking/exported/exported.go | 4 +- libs/cosmos-sdk/x/staking/genesis.go | 10 +- libs/cosmos-sdk/x/staking/genesis_test.go | 10 +- libs/cosmos-sdk/x/staking/handler.go | 12 +- libs/cosmos-sdk/x/staking/handler_test.go | 12 +- .../x/staking/keeper/alias_functions.go | 6 +- .../cosmos-sdk/x/staking/keeper/delegation.go | 6 +- .../x/staking/keeper/delegation_test.go | 4 +- .../x/staking/keeper/historical_info.go | 4 +- .../x/staking/keeper/historical_info_test.go | 6 +- libs/cosmos-sdk/x/staking/keeper/hooks.go | 4 +- .../cosmos-sdk/x/staking/keeper/invariants.go | 6 +- libs/cosmos-sdk/x/staking/keeper/keeper.go | 10 +- .../x/staking/keeper/keeper_test.go | 2 +- libs/cosmos-sdk/x/staking/keeper/params.go | 6 +- libs/cosmos-sdk/x/staking/keeper/pool.go | 6 +- libs/cosmos-sdk/x/staking/keeper/querier.go | 12 +- .../x/staking/keeper/querier_test.go | 8 +- .../x/staking/keeper/query_utils.go | 4 +- libs/cosmos-sdk/x/staking/keeper/slash.go | 4 +- .../cosmos-sdk/x/staking/keeper/slash_test.go | 6 +- .../x/staking/keeper/test_common.go | 32 +-- .../x/staking/keeper/val_state_change.go | 6 +- libs/cosmos-sdk/x/staking/keeper/validator.go | 4 +- .../x/staking/keeper/validator_test.go | 6 +- .../x/staking/legacy/v0_34/types.go | 6 +- .../x/staking/legacy/v0_36/migrate.go | 2 +- .../x/staking/legacy/v0_36/types.go | 8 +- .../x/staking/legacy/v0_38/migrate.go | 2 +- .../x/staking/legacy/v0_38/types.go | 10 +- libs/cosmos-sdk/x/staking/module.go | 28 +- .../x/staking/simulation/decoder.go | 8 +- .../x/staking/simulation/decoder_test.go | 10 +- .../x/staking/simulation/genesis.go | 10 +- .../x/staking/simulation/operations.go | 16 +- .../cosmos-sdk/x/staking/simulation/params.go | 4 +- libs/cosmos-sdk/x/staking/test_common.go | 10 +- libs/cosmos-sdk/x/staking/types/codec.go | 2 +- libs/cosmos-sdk/x/staking/types/commission.go | 2 +- .../x/staking/types/commission_test.go | 2 +- libs/cosmos-sdk/x/staking/types/delegation.go | 6 +- .../x/staking/types/delegation_test.go | 4 +- libs/cosmos-sdk/x/staking/types/errors.go | 2 +- .../x/staking/types/expected_keepers.go | 8 +- libs/cosmos-sdk/x/staking/types/genesis.go | 2 +- .../x/staking/types/historical_info.go | 6 +- .../x/staking/types/historical_info_test.go | 2 +- libs/cosmos-sdk/x/staking/types/hooks.go | 2 +- libs/cosmos-sdk/x/staking/types/keys.go | 2 +- libs/cosmos-sdk/x/staking/types/keys_test.go | 4 +- libs/cosmos-sdk/x/staking/types/msg.go | 6 +- libs/cosmos-sdk/x/staking/types/msg_test.go | 4 +- libs/cosmos-sdk/x/staking/types/params.go | 6 +- libs/cosmos-sdk/x/staking/types/pool.go | 2 +- libs/cosmos-sdk/x/staking/types/querier.go | 2 +- libs/cosmos-sdk/x/staking/types/test_utils.go | 6 +- libs/cosmos-sdk/x/staking/types/validator.go | 14 +- .../x/staking/types/validator_test.go | 8 +- libs/cosmos-sdk/x/supply/alias.go | 4 +- libs/cosmos-sdk/x/supply/client/cli/query.go | 14 +- libs/cosmos-sdk/x/supply/client/rest/query.go | 6 +- libs/cosmos-sdk/x/supply/exported/exported.go | 4 +- libs/cosmos-sdk/x/supply/genesis.go | 6 +- .../x/supply/internal/keeper/account.go | 8 +- .../x/supply/internal/keeper/adapter.go | 6 +- .../x/supply/internal/keeper/bank.go | 6 +- .../x/supply/internal/keeper/bank_test.go | 8 +- .../internal/keeper/integration_test.go | 12 +- .../x/supply/internal/keeper/invariants.go | 6 +- .../x/supply/internal/keeper/keeper.go | 10 +- .../x/supply/internal/keeper/keeper_test.go | 4 +- .../x/supply/internal/keeper/querier.go | 10 +- .../x/supply/internal/keeper/querier_test.go | 8 +- .../x/supply/internal/types/account.go | 12 +- .../x/supply/internal/types/account_test.go | 16 +- .../x/supply/internal/types/codec.go | 4 +- .../x/supply/internal/types/errors.go | 2 +- .../supply/internal/types/expected_keepers.go | 6 +- .../x/supply/internal/types/genesis.go | 2 +- .../x/supply/internal/types/permissions.go | 2 +- .../x/supply/internal/types/supply.go | 4 +- .../x/supply/internal/types/supply_test.go | 2 +- .../cosmos-sdk/x/supply/legacy/v0_36/types.go | 2 +- libs/cosmos-sdk/x/supply/module.go | 22 +- .../cosmos-sdk/x/supply/simulation/decoder.go | 8 +- .../x/supply/simulation/decoder_test.go | 10 +- .../cosmos-sdk/x/supply/simulation/genesis.go | 8 +- libs/cosmos-sdk/x/upgrade/abci.go | 4 +- libs/cosmos-sdk/x/upgrade/abci_test.go | 20 +- libs/cosmos-sdk/x/upgrade/alias.go | 4 +- libs/cosmos-sdk/x/upgrade/client/cli/query.go | 6 +- libs/cosmos-sdk/x/upgrade/client/cli/tx.go | 16 +- .../x/upgrade/client/proposal_handler.go | 6 +- .../cosmos-sdk/x/upgrade/client/rest/query.go | 6 +- libs/cosmos-sdk/x/upgrade/client/rest/tx.go | 16 +- libs/cosmos-sdk/x/upgrade/handler.go | 6 +- .../x/upgrade/internal/keeper/keeper.go | 12 +- .../x/upgrade/internal/keeper/keeper_ibc.go | 4 +- .../x/upgrade/internal/keeper/querier.go | 8 +- .../x/upgrade/internal/types/codec.go | 2 +- .../x/upgrade/internal/types/handler.go | 2 +- .../x/upgrade/internal/types/plan.go | 4 +- .../x/upgrade/internal/types/plan_test.go | 6 +- .../x/upgrade/internal/types/proposal.go | 2 +- .../x/upgrade/internal/types/proposal_test.go | 4 +- libs/cosmos-sdk/x/upgrade/module.go | 18 +- .../cosmos-sdk/x/upgrade/typesadapter/plan.go | 4 +- .../x/upgrade/typesadapter/plan.pb.go | 2 +- libs/iavl/basic_test.go | 2 +- libs/iavl/benchmarks/bench_test.go | 4 +- libs/iavl/benchmarks/cosmos-exim/main.go | 4 +- libs/iavl/benchmarks/hash_test.go | 2 +- libs/iavl/cmd/iaviewer/main.go | 4 +- libs/iavl/doc.go | 4 +- libs/iavl/fast_iterator.go | 2 +- libs/iavl/fast_iterator_okc.go | 2 +- libs/iavl/immutable_tree.go | 2 +- libs/iavl/import.go | 2 +- libs/iavl/import_test.go | 2 +- libs/iavl/iterator.go | 2 +- libs/iavl/iterator_test.go | 2 +- libs/iavl/mock/db_mock.go | 2 +- libs/iavl/mutable_tree.go | 2 +- libs/iavl/mutable_tree_brenchmark_test.go | 2 +- libs/iavl/mutable_tree_oec.go | 6 +- libs/iavl/mutable_tree_oec_test.go | 2 +- libs/iavl/mutable_tree_test.go | 6 +- libs/iavl/node.go | 2 +- libs/iavl/node_ibc_adapter.go | 2 +- libs/iavl/nodedb.go | 4 +- libs/iavl/nodedb_cache.go | 2 +- libs/iavl/nodedb_oec.go | 4 +- libs/iavl/nodedb_oec_test.go | 2 +- libs/iavl/nodedb_statistics.go | 2 +- libs/iavl/nodedb_test.go | 4 +- libs/iavl/nodedb_version.go | 2 +- libs/iavl/nodedb_version_test.go | 2 +- libs/iavl/proof.go | 4 +- libs/iavl/proof_forgery_test.go | 4 +- libs/iavl/proof_iavl_absence.go | 2 +- libs/iavl/proof_iavl_value.go | 2 +- libs/iavl/proof_range.go | 2 +- libs/iavl/proof_test.go | 2 +- libs/iavl/repair.go | 2 +- libs/iavl/repair_test.go | 2 +- libs/iavl/testutils_test.go | 6 +- libs/iavl/tree_fuzz_test.go | 2 +- libs/iavl/tree_random_test.go | 2 +- libs/iavl/tree_test.go | 6 +- libs/iavl/unsaved_fast_iterator.go | 2 +- libs/iavl/unsaved_fast_iterator_okc.go | 2 +- libs/iavl/util.go | 2 +- libs/iavl/with_gcc_test.go | 2 +- .../apps/27-interchain-accounts/alias.go | 2 +- .../27-interchain-accounts/client/cli/cli.go | 8 +- .../controller/client/cli/cli.go | 4 +- .../controller/client/cli/query.go | 12 +- .../controller/ibc_middleware.go | 18 +- .../controller/ibc_middleware_test.go | 26 +- .../controller/keeper/account.go | 10 +- .../controller/keeper/account_test.go | 8 +- .../controller/keeper/events.go | 6 +- .../controller/keeper/genesis.go | 6 +- .../controller/keeper/genesis_test.go | 8 +- .../controller/keeper/grpc_query.go | 4 +- .../controller/keeper/handshake.go | 10 +- .../controller/keeper/handshake_test.go | 10 +- .../controller/keeper/keeper.go | 24 +- .../controller/keeper/keeper_test.go | 12 +- .../controller/keeper/params.go | 4 +- .../controller/keeper/params_test.go | 2 +- .../controller/keeper/relay.go | 12 +- .../controller/keeper/relay_test.go | 16 +- .../controller/types/errors.go | 2 +- .../controller/types/params.go | 2 +- .../controller/types/params_test.go | 2 +- .../apps/27-interchain-accounts/handler.go | 10 +- .../host/client/cli/cli.go | 4 +- .../host/client/cli/query.go | 26 +- .../27-interchain-accounts/host/ibc_module.go | 18 +- .../host/ibc_module_test.go | 26 +- .../host/keeper/account.go | 6 +- .../host/keeper/account_test.go | 6 +- .../host/keeper/events.go | 6 +- .../host/keeper/genesis.go | 6 +- .../host/keeper/genesis_test.go | 8 +- .../host/keeper/grpc_query.go | 4 +- .../host/keeper/grpc_query_test.go | 4 +- .../host/keeper/handshake.go | 12 +- .../host/keeper/handshake_test.go | 10 +- .../host/keeper/keeper.go | 24 +- .../host/keeper/keeper_test.go | 12 +- .../host/keeper/params.go | 4 +- .../host/keeper/params_test.go | 2 +- .../host/keeper/relay.go | 14 +- .../host/types/errors.go | 2 +- .../27-interchain-accounts/host/types/keys.go | 2 +- .../host/types/params.go | 2 +- .../host/types/params_test.go | 2 +- .../apps/27-interchain-accounts/module.go | 32 +-- .../27-interchain-accounts/types/account.go | 6 +- .../types/account.pb.go | 2 +- .../types/account_test.go | 4 +- .../types/amino_account.go | 8 +- .../27-interchain-accounts/types/codec.go | 8 +- .../types/codec_test.go | 6 +- .../27-interchain-accounts/types/errors.go | 2 +- .../types/expected_keepers.go | 12 +- .../27-interchain-accounts/types/genesis.go | 6 +- .../types/genesis.pb.go | 4 +- .../27-interchain-accounts/types/keys_test.go | 2 +- .../27-interchain-accounts/types/metadata.go | 6 +- .../types/metadata_test.go | 4 +- .../27-interchain-accounts/types/packet.go | 6 +- .../27-interchain-accounts/types/packet.pb.go | 2 +- .../types/packet_test.go | 2 +- .../apps/27-interchain-accounts/types/port.go | 2 +- .../27-interchain-accounts/types/port_test.go | 4 +- libs/ibc-go/modules/apps/29-fee/alias.go | 2 +- .../modules/apps/29-fee/client/cli/cli.go | 6 +- .../modules/apps/29-fee/client/cli/query.go | 18 +- .../modules/apps/29-fee/client/cli/tx.go | 20 +- libs/ibc-go/modules/apps/29-fee/fee_test.go | 12 +- libs/ibc-go/modules/apps/29-fee/handler.go | 10 +- .../modules/apps/29-fee/ibc_middleware.go | 18 +- .../apps/29-fee/ibc_middleware_test.go | 24 +- .../modules/apps/29-fee/keeper/escrow.go | 8 +- .../modules/apps/29-fee/keeper/escrow_test.go | 12 +- .../modules/apps/29-fee/keeper/events.go | 6 +- .../modules/apps/29-fee/keeper/events_test.go | 6 +- .../modules/apps/29-fee/keeper/genesis.go | 4 +- .../apps/29-fee/keeper/genesis_test.go | 6 +- .../modules/apps/29-fee/keeper/grpc_query.go | 10 +- .../apps/29-fee/keeper/grpc_query_test.go | 12 +- .../modules/apps/29-fee/keeper/keeper.go | 16 +- .../modules/apps/29-fee/keeper/keeper_test.go | 14 +- .../modules/apps/29-fee/keeper/msg_server.go | 8 +- .../apps/29-fee/keeper/msg_server_test.go | 16 +- .../modules/apps/29-fee/keeper/relay.go | 12 +- .../modules/apps/29-fee/keeper/relay_test.go | 10 +- libs/ibc-go/modules/apps/29-fee/module.go | 22 +- .../modules/apps/29-fee/transfer_test.go | 12 +- libs/ibc-go/modules/apps/29-fee/types/ack.go | 2 +- .../ibc-go/modules/apps/29-fee/types/codec.go | 8 +- .../modules/apps/29-fee/types/errors.go | 2 +- .../apps/29-fee/types/expected_keepers.go | 10 +- libs/ibc-go/modules/apps/29-fee/types/fee.go | 6 +- .../modules/apps/29-fee/types/fee.pb.go | 4 +- .../modules/apps/29-fee/types/fee_test.go | 6 +- .../modules/apps/29-fee/types/genesis.go | 6 +- .../modules/apps/29-fee/types/genesis.pb.go | 2 +- .../modules/apps/29-fee/types/genesis_test.go | 10 +- libs/ibc-go/modules/apps/29-fee/types/keys.go | 4 +- .../modules/apps/29-fee/types/keys_test.go | 6 +- libs/ibc-go/modules/apps/29-fee/types/msgs.go | 10 +- .../modules/apps/29-fee/types/msgs_test.go | 10 +- .../modules/apps/29-fee/types/query.pb.go | 6 +- .../ibc-go/modules/apps/29-fee/types/tx.pb.go | 2 +- libs/ibc-go/modules/apps/common/errors.go | 6 +- libs/ibc-go/modules/apps/common/proxy.go | 10 +- libs/ibc-go/modules/apps/common/upgrade.go | 10 +- libs/ibc-go/modules/apps/transfer/alias.go | 4 +- .../modules/apps/transfer/client/cli/cli.go | 6 +- .../modules/apps/transfer/client/cli/query.go | 14 +- .../modules/apps/transfer/client/cli/tx.go | 22 +- libs/ibc-go/modules/apps/transfer/handler.go | 8 +- .../modules/apps/transfer/ibc_module.go | 20 +- .../modules/apps/transfer/keeper/encoding.go | 2 +- .../modules/apps/transfer/keeper/genesis.go | 4 +- .../apps/transfer/keeper/genesis_test.go | 2 +- .../apps/transfer/keeper/grpc_query.go | 10 +- .../modules/apps/transfer/keeper/hooks.go | 4 +- .../modules/apps/transfer/keeper/keeper.go | 28 +- .../apps/transfer/keeper/keeper_test.go | 8 +- .../apps/transfer/keeper/mbt_relay_test.go | 10 +- .../apps/transfer/keeper/msg_server.go | 4 +- .../modules/apps/transfer/keeper/params.go | 4 +- .../modules/apps/transfer/keeper/relay.go | 12 +- .../apps/transfer/keeper/relay_test.go | 14 +- libs/ibc-go/modules/apps/transfer/module.go | 34 +-- .../modules/apps/transfer/module_test.go | 10 +- .../apps/transfer/simulation/decoder.go | 6 +- .../apps/transfer/simulation/decoder_test.go | 10 +- .../apps/transfer/simulation/genesis.go | 6 +- .../apps/transfer/simulation/genesis_test.go | 10 +- .../apps/transfer/simulation/params.go | 4 +- .../modules/apps/transfer/transfer_test.go | 10 +- .../modules/apps/transfer/types/codec.go | 10 +- .../modules/apps/transfer/types/coin.go | 2 +- .../modules/apps/transfer/types/errors.go | 2 +- .../apps/transfer/types/expected_keepers.go | 12 +- .../modules/apps/transfer/types/genesis.go | 2 +- .../apps/transfer/types/genesis_test.go | 2 +- .../modules/apps/transfer/types/hooks.go | 2 +- .../modules/apps/transfer/types/keys.go | 2 +- .../modules/apps/transfer/types/keys_test.go | 2 +- .../apps/transfer/types/msg_adapter.go | 6 +- .../modules/apps/transfer/types/msgs.go | 10 +- .../modules/apps/transfer/types/msgs_test.go | 8 +- .../modules/apps/transfer/types/packet.go | 4 +- .../modules/apps/transfer/types/params.go | 2 +- .../modules/apps/transfer/types/query.pb.go | 2 +- .../modules/apps/transfer/types/trace.go | 10 +- .../modules/apps/transfer/types/tx.pb.go | 4 +- libs/ibc-go/modules/core/02-client/abci.go | 8 +- .../modules/core/02-client/abci_test.go | 10 +- .../modules/core/02-client/client/cli/cli.go | 8 +- .../core/02-client/client/cli/query.go | 18 +- .../modules/core/02-client/client/cli/tx.go | 26 +- .../core/02-client/client/proposal_handler.go | 10 +- .../core/02-client/client/utils/utils.go | 18 +- libs/ibc-go/modules/core/02-client/genesis.go | 8 +- .../modules/core/02-client/keeper/client.go | 8 +- .../core/02-client/keeper/client_test.go | 14 +- .../modules/core/02-client/keeper/encoding.go | 4 +- .../core/02-client/keeper/grpc_query.go | 14 +- .../modules/core/02-client/keeper/keeper.go | 28 +- .../core/02-client/keeper/keeper_test.go | 32 +-- .../modules/core/02-client/keeper/params.go | 4 +- .../core/02-client/keeper/params_test.go | 2 +- .../modules/core/02-client/keeper/proposal.go | 10 +- .../core/02-client/keeper/proposal_test.go | 10 +- libs/ibc-go/modules/core/02-client/module.go | 8 +- .../core/02-client/proposal_handler.go | 10 +- .../core/02-client/simulation/decoder.go | 8 +- .../core/02-client/simulation/decoder_test.go | 14 +- .../core/02-client/simulation/genesis.go | 4 +- .../modules/core/02-client/types/client.go | 8 +- .../modules/core/02-client/types/client.pb.go | 4 +- .../core/02-client/types/client_test.go | 4 +- .../modules/core/02-client/types/codec.go | 16 +- .../core/02-client/types/codec_test.go | 14 +- .../modules/core/02-client/types/encoding.go | 4 +- .../core/02-client/types/encoding_test.go | 4 +- .../modules/core/02-client/types/errors.go | 2 +- .../modules/core/02-client/types/events.go | 2 +- .../modules/core/02-client/types/genesis.go | 6 +- .../core/02-client/types/genesis_test.go | 18 +- .../modules/core/02-client/types/height.go | 6 +- .../core/02-client/types/height_test.go | 2 +- .../modules/core/02-client/types/keys.go | 4 +- .../modules/core/02-client/types/keys_test.go | 2 +- .../modules/core/02-client/types/msgs.go | 10 +- .../modules/core/02-client/types/msgs_test.go | 10 +- .../modules/core/02-client/types/params.go | 4 +- .../core/02-client/types/params_test.go | 2 +- .../modules/core/02-client/types/proposal.go | 12 +- .../core/02-client/types/proposal_test.go | 6 +- .../modules/core/02-client/types/query.go | 4 +- .../modules/core/02-client/types/query.pb.go | 4 +- .../modules/core/02-client/types/stake.go | 6 +- .../modules/core/02-client/types/tx.pb.go | 2 +- .../core/03-connection/client/cli/cli.go | 6 +- .../core/03-connection/client/cli/query.go | 18 +- .../core/03-connection/client/utils/utils.go | 20 +- .../modules/core/03-connection/genesis.go | 6 +- .../core/03-connection/keeper/events.go | 4 +- .../core/03-connection/keeper/grpc_query.go | 16 +- .../core/03-connection/keeper/handshake.go | 14 +- .../03-connection/keeper/handshake_test.go | 12 +- .../core/03-connection/keeper/keeper.go | 24 +- .../core/03-connection/keeper/keeper_test.go | 4 +- .../core/03-connection/keeper/params.go | 4 +- .../core/03-connection/keeper/params_test.go | 2 +- .../core/03-connection/keeper/v4keeper.go | 12 +- .../core/03-connection/keeper/verify.go | 8 +- .../core/03-connection/keeper/verify_test.go | 16 +- .../modules/core/03-connection/module.go | 8 +- .../core/03-connection/simulation/decoder.go | 10 +- .../03-connection/simulation/decoder_test.go | 12 +- .../core/03-connection/simulation/genesis.go | 4 +- .../modules/core/03-connection/types/codec.go | 10 +- .../core/03-connection/types/connection.go | 8 +- .../core/03-connection/types/connection.pb.go | 2 +- .../03-connection/types/connection_test.go | 8 +- .../core/03-connection/types/errors.go | 2 +- .../core/03-connection/types/events.go | 2 +- .../03-connection/types/expected_keepers.go | 4 +- .../core/03-connection/types/genesis.go | 2 +- .../core/03-connection/types/genesis_test.go | 6 +- .../modules/core/03-connection/types/keys.go | 4 +- .../core/03-connection/types/keys_test.go | 2 +- .../modules/core/03-connection/types/msgs.go | 14 +- .../core/03-connection/types/msgs_test.go | 24 +- .../modules/core/03-connection/types/param.go | 2 +- .../core/03-connection/types/params_test.go | 2 +- .../modules/core/03-connection/types/query.go | 6 +- .../core/03-connection/types/query.pb.go | 6 +- .../modules/core/03-connection/types/tx.pb.go | 4 +- .../core/03-connection/types/version.go | 4 +- .../core/03-connection/types/version_test.go | 6 +- .../modules/core/04-channel/client/cli/cli.go | 8 +- .../core/04-channel/client/cli/query.go | 18 +- .../core/04-channel/client/utils/utils.go | 16 +- .../ibc-go/modules/core/04-channel/genesis.go | 6 +- .../ibc-go/modules/core/04-channel/handler.go | 10 +- .../modules/core/04-channel/keeper/events.go | 6 +- .../core/04-channel/keeper/grpc_query.go | 16 +- .../core/04-channel/keeper/handshake.go | 16 +- .../core/04-channel/keeper/handshake_test.go | 14 +- .../core/04-channel/keeper/handshake_v4.go | 16 +- .../modules/core/04-channel/keeper/keeper.go | 28 +- .../core/04-channel/keeper/keeper_test.go | 4 +- .../modules/core/04-channel/keeper/packet.go | 16 +- .../core/04-channel/keeper/packet_test.go | 22 +- .../modules/core/04-channel/keeper/timeout.go | 18 +- .../core/04-channel/keeper/timeout_test.go | 16 +- libs/ibc-go/modules/core/04-channel/module.go | 8 +- .../core/04-channel/simulation/decoder.go | 12 +- .../04-channel/simulation/decoder_test.go | 14 +- .../core/04-channel/simulation/genesis.go | 4 +- .../core/04-channel/types/acknowledgement.go | 4 +- .../04-channel/types/acknowledgement_test.go | 2 +- .../04-channel/types/acknowledgement_v4.go | 2 +- .../modules/core/04-channel/types/channel.go | 6 +- .../core/04-channel/types/channel.pb.go | 2 +- .../core/04-channel/types/channel_test.go | 2 +- .../modules/core/04-channel/types/codec.go | 12 +- .../modules/core/04-channel/types/errors.go | 2 +- .../modules/core/04-channel/types/events.go | 2 +- .../core/04-channel/types/excepted_keeper.go | 8 +- .../modules/core/04-channel/types/genesis.go | 2 +- .../core/04-channel/types/genesis_test.go | 2 +- .../modules/core/04-channel/types/keys.go | 4 +- .../core/04-channel/types/keys_test.go | 2 +- .../modules/core/04-channel/types/msgs.go | 10 +- .../core/04-channel/types/msgs_test.go | 22 +- .../modules/core/04-channel/types/packet.go | 12 +- .../core/04-channel/types/packet_test.go | 8 +- .../modules/core/04-channel/types/query.go | 6 +- .../modules/core/04-channel/types/query.pb.go | 6 +- .../modules/core/04-channel/types/tx.pb.go | 2 +- .../modules/core/05-port/keeper/grpc_query.go | 8 +- .../core/05-port/keeper/grpc_query_test.go | 8 +- .../modules/core/05-port/keeper/keeper.go | 12 +- .../core/05-port/keeper/keeper_test.go | 8 +- libs/ibc-go/modules/core/05-port/keeper/v4.go | 2 +- libs/ibc-go/modules/core/05-port/module.go | 2 +- .../modules/core/05-port/types/errors.go | 2 +- .../modules/core/05-port/types/facaded.go | 10 +- .../modules/core/05-port/types/module.go | 8 +- .../modules/core/05-port/types/query.pb.go | 2 +- .../modules/core/05-port/types/router.go | 2 +- .../modules/core/23-commitment/types/codec.go | 4 +- .../23-commitment/types/commitment_test.go | 8 +- .../core/23-commitment/types/errors.go | 2 +- .../core/23-commitment/types/merkle.go | 6 +- .../core/23-commitment/types/merkle_test.go | 4 +- .../modules/core/23-commitment/types/utils.go | 4 +- .../core/23-commitment/types/utils_test.go | 6 +- libs/ibc-go/modules/core/24-host/errors.go | 2 +- libs/ibc-go/modules/core/24-host/keys.go | 2 +- libs/ibc-go/modules/core/24-host/parse.go | 2 +- .../ibc-go/modules/core/24-host/parse_test.go | 4 +- libs/ibc-go/modules/core/24-host/validate.go | 2 +- libs/ibc-go/modules/core/alias.go | 6 +- libs/ibc-go/modules/core/ante/ante.go | 10 +- libs/ibc-go/modules/core/ante/ante_test.go | 20 +- libs/ibc-go/modules/core/base/base.go | 8 +- libs/ibc-go/modules/core/client/cli/cli.go | 22 +- libs/ibc-go/modules/core/client/query.go | 10 +- libs/ibc-go/modules/core/common/codec.go | 6 +- libs/ibc-go/modules/core/common/selector.go | 2 +- libs/ibc-go/modules/core/exported/client.go | 4 +- libs/ibc-go/modules/core/genesis.go | 12 +- libs/ibc-go/modules/core/genesis_test.go | 26 +- libs/ibc-go/modules/core/handler.go | 14 +- libs/ibc-go/modules/core/keeper/facaded.go | 10 +- libs/ibc-go/modules/core/keeper/grpc_query.go | 12 +- libs/ibc-go/modules/core/keeper/keeper.go | 28 +- libs/ibc-go/modules/core/keeper/migrations.go | 4 +- libs/ibc-go/modules/core/keeper/msg_server.go | 12 +- .../modules/core/keeper/msg_server_test.go | 24 +- libs/ibc-go/modules/core/keeper/params.go | 4 +- libs/ibc-go/modules/core/keeper/v4_keeper.go | 18 +- libs/ibc-go/modules/core/module.go | 32 +-- .../ibc-go/modules/core/simulation/decoder.go | 14 +- .../modules/core/simulation/decoder_test.go | 18 +- .../ibc-go/modules/core/simulation/genesis.go | 18 +- .../modules/core/simulation/genesis_test.go | 12 +- libs/ibc-go/modules/core/types/codec.go | 18 +- libs/ibc-go/modules/core/types/errors.go | 4 +- libs/ibc-go/modules/core/types/genesis.go | 8 +- libs/ibc-go/modules/core/types/genesis.pb.go | 6 +- libs/ibc-go/modules/core/types/keys.go | 4 +- libs/ibc-go/modules/core/types/params.go | 2 +- libs/ibc-go/modules/core/types/query.go | 16 +- libs/ibc-go/modules/core/types/query.pb.go | 4 +- .../light-clients/06-solomachine/module.go | 2 +- .../06-solomachine/types/client_state.go | 18 +- .../06-solomachine/types/codec.go | 12 +- .../06-solomachine/types/consensus_state.go | 8 +- .../06-solomachine/types/errors.go | 2 +- .../06-solomachine/types/header.go | 8 +- .../06-solomachine/types/misbehaviour.go | 8 +- .../types/misbehaviour_handle.go | 10 +- .../06-solomachine/types/proof.go | 20 +- .../06-solomachine/types/proposal_handle.go | 10 +- .../06-solomachine/types/solomachine.go | 6 +- .../06-solomachine/types/solomachine.pb.go | 6 +- .../06-solomachine/types/update.go | 10 +- .../07-tendermint/types/client_state.go | 24 +- .../07-tendermint/types/client_state_test.go | 16 +- .../07-tendermint/types/codec.go | 6 +- .../07-tendermint/types/consensus_state.go | 12 +- .../types/consensus_state_test.go | 6 +- .../07-tendermint/types/errors.go | 2 +- .../07-tendermint/types/fraction.go | 2 +- .../07-tendermint/types/genesis.go | 6 +- .../07-tendermint/types/genesis_test.go | 8 +- .../07-tendermint/types/header.go | 10 +- .../07-tendermint/types/header_test.go | 8 +- .../07-tendermint/types/misbehaviour.go | 12 +- .../types/misbehaviour_handle.go | 12 +- .../07-tendermint/types/misbehaviour_test.go | 8 +- .../07-tendermint/types/proposal_handle.go | 12 +- .../types/proposal_handle_test.go | 10 +- .../07-tendermint/types/store.go | 14 +- .../07-tendermint/types/store_test.go | 14 +- .../07-tendermint/types/tendermint.pb.go | 8 +- .../07-tendermint/types/tendermint_test.go | 20 +- .../07-tendermint/types/update.go | 16 +- .../07-tendermint/types/upgrade.go | 12 +- .../07-tendermint/types/upgrade_test.go | 12 +- .../light-clients/09-localhost/module.go | 2 +- .../09-localhost/types/client_state.go | 16 +- .../09-localhost/types/client_state_test.go | 18 +- .../light-clients/09-localhost/types/codec.go | 4 +- .../09-localhost/types/errors.go | 2 +- .../09-localhost/types/localhost.pb.go | 2 +- .../09-localhost/types/localhost_test.go | 12 +- libs/ibc-go/testing/app.go | 44 +-- libs/ibc-go/testing/chain.go | 76 +++--- libs/ibc-go/testing/chain_test.go | 6 +- libs/ibc-go/testing/config.go | 10 +- libs/ibc-go/testing/coordinator.go | 2 +- libs/ibc-go/testing/endpoint.go | 16 +- libs/ibc-go/testing/events.go | 8 +- libs/ibc-go/testing/mock/ibc_app.go | 10 +- libs/ibc-go/testing/mock/ibc_module.go | 10 +- libs/ibc-go/testing/mock/mock.go | 22 +- libs/ibc-go/testing/mock/privval.go | 6 +- libs/ibc-go/testing/mock/privval_test.go | 2 +- libs/ibc-go/testing/path.go | 2 +- .../simapp/adapter/capability/module.go | 14 +- libs/ibc-go/testing/simapp/adapter/codec.go | 2 +- .../testing/simapp/adapter/core/module.go | 14 +- .../testing/simapp/adapter/evm/module.go | 10 +- .../testing/simapp/adapter/fee/module.go | 10 +- .../testing/simapp/adapter/ica/module.go | 14 +- .../testing/simapp/adapter/staking/module.go | 12 +- .../testing/simapp/adapter/staking/staking.go | 14 +- .../testing/simapp/adapter/transfer/module.go | 22 +- libs/ibc-go/testing/simapp/app.go | 186 ++++++------- libs/ibc-go/testing/simapp/config.go | 2 +- libs/ibc-go/testing/simapp/encoding.go | 6 +- libs/ibc-go/testing/simapp/export.go | 16 +- libs/ibc-go/testing/simapp/genesis_account.go | 8 +- .../testing/simapp/genesis_account_test.go | 12 +- .../testing/simapp/helpers/test_helpers.go | 38 +-- libs/ibc-go/testing/simapp/params/encoding.go | 4 +- libs/ibc-go/testing/simapp/params/proto.go | 2 +- libs/ibc-go/testing/simapp/sim_bench_test.go | 6 +- libs/ibc-go/testing/simapp/sim_test.go | 40 +-- libs/ibc-go/testing/simapp/state.go | 20 +- libs/ibc-go/testing/simapp/test_helpers.go | 34 +-- libs/ibc-go/testing/simapp/types.go | 10 +- libs/ibc-go/testing/simapp/types/account.go | 4 +- libs/ibc-go/testing/simapp/utils.go | 16 +- libs/ibc-go/testing/simapp/utils_test.go | 14 +- libs/ibc-go/testing/solomachine.go | 32 +-- libs/ibc-go/testing/values.go | 16 +- libs/system/trace/persist/statistics.go | 2 +- libs/system/trace/pprof.go | 2 +- libs/system/trace/summary.go | 2 +- libs/tendermint/abci/client/client.go | 4 +- libs/tendermint/abci/client/local_client.go | 4 +- .../abci/example/counter/counter.go | 6 +- .../abci/example/kvstore/helpers.go | 4 +- .../abci/example/kvstore/kvstore.go | 12 +- .../abci/example/kvstore/kvstore_test.go | 6 +- .../example/kvstore/persistent_kvstore.go | 12 +- .../tests/benchmarks/parallel/parallel.go | 4 +- .../abci/tests/benchmarks/simple/simple.go | 4 +- libs/tendermint/abci/tests/server/client.go | 6 +- libs/tendermint/abci/types/amino.go | 2 +- libs/tendermint/abci/types/amino_test.go | 2 +- libs/tendermint/abci/types/messages_test.go | 2 +- libs/tendermint/abci/types/types.pb.go | 4 +- libs/tendermint/abci/types/typespb_test.go | 4 +- libs/tendermint/abci/version/version.go | 2 +- libs/tendermint/behaviour/peer_behaviour.go | 2 +- libs/tendermint/behaviour/reporter.go | 2 +- libs/tendermint/behaviour/reporter_test.go | 4 +- libs/tendermint/blockchain/v0/codec.go | 2 +- libs/tendermint/blockchain/v0/pool.go | 10 +- libs/tendermint/blockchain/v0/pool_test.go | 8 +- libs/tendermint/blockchain/v0/reactor.go | 10 +- libs/tendermint/blockchain/v0/reactor_test.go | 24 +- libs/tendermint/blockchain/v1/codec.go | 2 +- libs/tendermint/blockchain/v1/peer.go | 8 +- libs/tendermint/blockchain/v1/peer_test.go | 8 +- libs/tendermint/blockchain/v1/pool.go | 6 +- libs/tendermint/blockchain/v1/pool_test.go | 6 +- libs/tendermint/blockchain/v1/reactor.go | 12 +- libs/tendermint/blockchain/v1/reactor_fsm.go | 6 +- .../blockchain/v1/reactor_fsm_test.go | 10 +- libs/tendermint/blockchain/v1/reactor_test.go | 24 +- libs/tendermint/blockchain/v2/codec.go | 2 +- libs/tendermint/blockchain/v2/io.go | 6 +- libs/tendermint/blockchain/v2/processor.go | 6 +- .../blockchain/v2/processor_context.go | 4 +- .../blockchain/v2/processor_test.go | 6 +- libs/tendermint/blockchain/v2/reactor.go | 10 +- libs/tendermint/blockchain/v2/reactor_test.go | 28 +- libs/tendermint/blockchain/v2/routine.go | 2 +- libs/tendermint/blockchain/v2/scheduler.go | 4 +- .../blockchain/v2/scheduler_test.go | 4 +- libs/tendermint/cmd/priv_val_server/main.go | 10 +- .../cmd/tendermint/commands/codec.go | 2 +- .../cmd/tendermint/commands/debug/debug.go | 2 +- .../cmd/tendermint/commands/debug/dump.go | 6 +- .../cmd/tendermint/commands/debug/kill.go | 6 +- .../cmd/tendermint/commands/debug/util.go | 4 +- .../cmd/tendermint/commands/gen_node_key.go | 4 +- .../cmd/tendermint/commands/gen_validator.go | 2 +- .../cmd/tendermint/commands/init.go | 14 +- .../cmd/tendermint/commands/lite.go | 18 +- .../cmd/tendermint/commands/probe_upnp.go | 2 +- .../cmd/tendermint/commands/replay.go | 2 +- .../commands/reset_priv_validator.go | 6 +- .../cmd/tendermint/commands/root.go | 8 +- .../cmd/tendermint/commands/root_test.go | 6 +- .../cmd/tendermint/commands/run_node.go | 8 +- .../cmd/tendermint/commands/show_node_id.go | 2 +- .../cmd/tendermint/commands/show_validator.go | 4 +- .../cmd/tendermint/commands/testnet.go | 14 +- .../cmd/tendermint/commands/version.go | 2 +- libs/tendermint/cmd/tendermint/main.go | 10 +- libs/tendermint/config/config.go | 4 +- libs/tendermint/config/toml.go | 2 +- libs/tendermint/consensus/block_transport.go | 4 +- libs/tendermint/consensus/byzantine_test.go | 8 +- libs/tendermint/consensus/codec.go | 2 +- libs/tendermint/consensus/common_test.go | 38 +-- libs/tendermint/consensus/consensus.go | 20 +- libs/tendermint/consensus/consensus_commit.go | 20 +- .../consensus/consensus_main_routine.go | 10 +- .../consensus/consensus_new_round.go | 6 +- .../consensus/consensus_precommit.go | 6 +- .../tendermint/consensus/consensus_prevote.go | 6 +- .../tendermint/consensus/consensus_propose.go | 10 +- libs/tendermint/consensus/consensus_vote.go | 8 +- libs/tendermint/consensus/invalid_test.go | 10 +- libs/tendermint/consensus/mempool_test.go | 12 +- libs/tendermint/consensus/metrics.go | 2 +- libs/tendermint/consensus/reactor.go | 20 +- libs/tendermint/consensus/reactor_test.go | 34 +-- libs/tendermint/consensus/replay.go | 20 +- libs/tendermint/consensus/replay_file.go | 18 +- libs/tendermint/consensus/state_test.go | 12 +- libs/tendermint/consensus/ticker.go | 4 +- libs/tendermint/consensus/types/codec.go | 2 +- .../consensus/types/height_vote_set.go | 4 +- .../consensus/types/height_vote_set_test.go | 6 +- .../consensus/types/peer_round_state.go | 4 +- .../tendermint/consensus/types/round_state.go | 4 +- .../consensus/types/round_state_test.go | 10 +- libs/tendermint/consensus/wal.go | 12 +- libs/tendermint/consensus/wal_generator.go | 26 +- libs/tendermint/consensus/wal_test.go | 12 +- libs/tendermint/crypto/crypto.go | 4 +- libs/tendermint/crypto/ed25519/bench_test.go | 4 +- libs/tendermint/crypto/ed25519/ed25519.go | 4 +- .../tendermint/crypto/ed25519/ed25519_test.go | 4 +- .../tendermint/crypto/encoding/amino/amino.go | 10 +- .../crypto/encoding/amino/encode_test.go | 10 +- libs/tendermint/crypto/encoding/codec.go | 8 +- libs/tendermint/crypto/example_test.go | 2 +- .../crypto/internal/benchmarking/bench.go | 2 +- libs/tendermint/crypto/merkle/hash.go | 2 +- .../crypto/merkle/ibc_adapter_tree.go | 2 +- .../crypto/merkle/proof_simple_value.go | 2 +- libs/tendermint/crypto/merkle/rfc6962_test.go | 2 +- libs/tendermint/crypto/merkle/simple_map.go | 4 +- libs/tendermint/crypto/merkle/simple_proof.go | 2 +- .../crypto/merkle/simple_proof_ibc.go | 2 +- .../crypto/merkle/simple_tree_test.go | 6 +- .../bitarray/compact_bit_array_test.go | 2 +- libs/tendermint/crypto/multisig/codec.go | 8 +- .../crypto/multisig/multisignature.go | 4 +- .../crypto/multisig/threshold_pubkey.go | 2 +- .../crypto/multisig/threshold_pubkey_test.go | 8 +- libs/tendermint/crypto/random_test.go | 2 +- .../tendermint/crypto/secp256k1/bench_test.go | 4 +- libs/tendermint/crypto/secp256k1/secp256k1.go | 2 +- .../crypto/secp256k1/secp256k1_cgo.go | 4 +- .../crypto/secp256k1/secp256k1_nocgo.go | 2 +- .../crypto/secp256k1/secp256k1_test.go | 4 +- libs/tendermint/crypto/sr25519/bench_test.go | 4 +- libs/tendermint/crypto/sr25519/codec.go | 2 +- libs/tendermint/crypto/sr25519/privkey.go | 2 +- libs/tendermint/crypto/sr25519/pubkey.go | 4 +- .../tendermint/crypto/sr25519/sr25519_test.go | 4 +- libs/tendermint/crypto/tmhash/hash_test.go | 2 +- .../crypto/xsalsa20symmetric/symmetric.go | 2 +- .../xsalsa20symmetric/symmetric_test.go | 2 +- libs/tendermint/delta/redis-cgi/cgi.go | 4 +- libs/tendermint/delta/redis-cgi/cgi_test.go | 2 +- libs/tendermint/evidence/codec.go | 4 +- libs/tendermint/evidence/pool.go | 12 +- libs/tendermint/evidence/pool_test.go | 8 +- libs/tendermint/evidence/reactor.go | 8 +- libs/tendermint/evidence/reactor_test.go | 18 +- libs/tendermint/evidence/store.go | 6 +- libs/tendermint/evidence/store_test.go | 4 +- libs/tendermint/libs/autofile/autofile.go | 2 +- .../tendermint/libs/autofile/autofile_test.go | 2 +- libs/tendermint/libs/autofile/cmd/logjack.go | 4 +- libs/tendermint/libs/autofile/group.go | 2 +- libs/tendermint/libs/autofile/group_test.go | 4 +- libs/tendermint/libs/automation/automation.go | 2 +- libs/tendermint/libs/bech32/bech32_test.go | 2 +- libs/tendermint/libs/bits/bit_array.go | 6 +- libs/tendermint/libs/bits/bit_array_test.go | 2 +- libs/tendermint/libs/cli/flags/log_level.go | 2 +- .../libs/cli/flags/log_level_test.go | 4 +- libs/tendermint/libs/clist/clist_test.go | 2 +- libs/tendermint/libs/events/events.go | 2 +- libs/tendermint/libs/events/events_test.go | 2 +- libs/tendermint/libs/log/filter_test.go | 2 +- libs/tendermint/libs/log/tm_logger_test.go | 2 +- libs/tendermint/libs/log/tmfmt_logger.go | 2 +- libs/tendermint/libs/log/tmfmt_logger_test.go | 2 +- .../libs/log/tracing_logger_test.go | 2 +- libs/tendermint/libs/pubsub/example_test.go | 6 +- libs/tendermint/libs/pubsub/pubsub.go | 2 +- libs/tendermint/libs/pubsub/pubsub_test.go | 6 +- .../libs/pubsub/query/empty_test.go | 2 +- .../libs/pubsub/query/fuzz_test/main.go | 2 +- .../libs/pubsub/query/parser_test.go | 2 +- .../libs/pubsub/query/query_test.go | 2 +- libs/tendermint/libs/service/service.go | 2 +- .../tendermint/libs/tempfile/tempfile_test.go | 2 +- libs/tendermint/libs/test/mutate.go | 2 +- libs/tendermint/lite/base_verifier.go | 4 +- libs/tendermint/lite/base_verifier_test.go | 6 +- libs/tendermint/lite/client/provider.go | 14 +- libs/tendermint/lite/client/provider_test.go | 8 +- libs/tendermint/lite/commit.go | 2 +- libs/tendermint/lite/dbprovider.go | 10 +- libs/tendermint/lite/dynamic_verifier.go | 6 +- libs/tendermint/lite/dynamic_verifier_test.go | 8 +- libs/tendermint/lite/helpers.go | 10 +- libs/tendermint/lite/multiprovider.go | 6 +- libs/tendermint/lite/provider.go | 4 +- libs/tendermint/lite/provider_test.go | 8 +- libs/tendermint/lite/proxy/block.go | 2 +- libs/tendermint/lite/proxy/proof.go | 2 +- libs/tendermint/lite/proxy/proxy.go | 16 +- libs/tendermint/lite/proxy/query.go | 16 +- libs/tendermint/lite/proxy/query_test.go | 20 +- libs/tendermint/lite/proxy/validate_test.go | 4 +- libs/tendermint/lite/proxy/verifier.go | 14 +- libs/tendermint/lite/proxy/wrapper.go | 12 +- libs/tendermint/lite/types.go | 2 +- libs/tendermint/lite2/client.go | 10 +- .../tendermint/lite2/client_benchmark_test.go | 12 +- libs/tendermint/lite2/client_test.go | 16 +- libs/tendermint/lite2/errors.go | 2 +- libs/tendermint/lite2/example_test.go | 16 +- libs/tendermint/lite2/helpers_test.go | 10 +- libs/tendermint/lite2/ibc_verify.go | 4 +- libs/tendermint/lite2/provider/http/http.go | 8 +- .../lite2/provider/http/http_test.go | 14 +- .../lite2/provider/mock/deadmock.go | 4 +- libs/tendermint/lite2/provider/mock/mock.go | 4 +- libs/tendermint/lite2/provider/provider.go | 2 +- libs/tendermint/lite2/proxy/proxy.go | 10 +- libs/tendermint/lite2/proxy/routes.go | 12 +- libs/tendermint/lite2/rpc/client.go | 20 +- libs/tendermint/lite2/rpc/proof.go | 2 +- libs/tendermint/lite2/rpc/query_test.go | 16 +- libs/tendermint/lite2/setup.go | 6 +- libs/tendermint/lite2/store/db/db.go | 8 +- libs/tendermint/lite2/store/db/db_test.go | 4 +- libs/tendermint/lite2/store/store.go | 2 +- libs/tendermint/lite2/trust_options.go | 2 +- libs/tendermint/lite2/verifier.go | 4 +- libs/tendermint/lite2/verifier_test.go | 6 +- libs/tendermint/mempool/address_record.go | 4 +- libs/tendermint/mempool/bench_test.go | 4 +- libs/tendermint/mempool/cache_test.go | 8 +- libs/tendermint/mempool/clist_mempool.go | 16 +- libs/tendermint/mempool/clist_mempool_test.go | 18 +- .../mempool/exchain_pending_pool.go | 4 +- .../mempool/exchain_pending_pool_test.go | 2 +- libs/tendermint/mempool/exchain_simulate.go | 2 +- libs/tendermint/mempool/gasqueue.go | 2 +- libs/tendermint/mempool/mempool.go | 8 +- libs/tendermint/mempool/metrics.go | 2 +- libs/tendermint/mempool/perf.go | 6 +- libs/tendermint/mempool/pgu.go | 8 +- libs/tendermint/mempool/reactor.go | 12 +- libs/tendermint/mempool/reactor_test.go | 18 +- .../mempool/recommended_gasprice.go | 6 +- .../mempool/recommended_gasprice_test.go | 8 +- libs/tendermint/mempool/txqueue.go | 4 +- libs/tendermint/mock/mempool.go | 12 +- libs/tendermint/node/codec.go | 2 +- libs/tendermint/node/id.go | 2 +- libs/tendermint/node/node.go | 72 ++--- libs/tendermint/node/node_test.go | 34 +-- libs/tendermint/p2p/base_reactor.go | 4 +- libs/tendermint/p2p/codec.go | 2 +- libs/tendermint/p2p/conn/codec.go | 2 +- libs/tendermint/p2p/conn/connection.go | 10 +- libs/tendermint/p2p/conn/connection_test.go | 2 +- libs/tendermint/p2p/conn/secret_connection.go | 6 +- .../p2p/conn/secret_connection_test.go | 12 +- libs/tendermint/p2p/fuzz.go | 4 +- libs/tendermint/p2p/key.go | 6 +- libs/tendermint/p2p/key_test.go | 2 +- libs/tendermint/p2p/metrics.go | 2 +- libs/tendermint/p2p/mock/peer.go | 8 +- libs/tendermint/p2p/mock/reactor.go | 6 +- libs/tendermint/p2p/node_info.go | 6 +- libs/tendermint/p2p/node_info_test.go | 2 +- libs/tendermint/p2p/peer.go | 8 +- libs/tendermint/p2p/peer_set_test.go | 4 +- libs/tendermint/p2p/peer_test.go | 12 +- libs/tendermint/p2p/pex/addrbook.go | 10 +- libs/tendermint/p2p/pex/addrbook_test.go | 8 +- libs/tendermint/p2p/pex/errors.go | 2 +- libs/tendermint/p2p/pex/file.go | 2 +- libs/tendermint/p2p/pex/known_address.go | 2 +- libs/tendermint/p2p/pex/pex_reactor.go | 14 +- libs/tendermint/p2p/pex/pex_reactor_test.go | 8 +- libs/tendermint/p2p/switch.go | 10 +- libs/tendermint/p2p/switch_test.go | 8 +- libs/tendermint/p2p/test_util.go | 16 +- libs/tendermint/p2p/transport.go | 4 +- libs/tendermint/p2p/transport_test.go | 4 +- libs/tendermint/p2p/trust/metric.go | 2 +- libs/tendermint/p2p/trust/store.go | 4 +- libs/tendermint/p2p/trust/store_test.go | 4 +- libs/tendermint/p2p/types.go | 2 +- libs/tendermint/p2p/upnp/probe.go | 2 +- libs/tendermint/privval/codec.go | 2 +- libs/tendermint/privval/file.go | 14 +- libs/tendermint/privval/file_ibc_adapter.go | 8 +- libs/tendermint/privval/file_test.go | 6 +- libs/tendermint/privval/messages.go | 4 +- .../tendermint/privval/retry_signer_client.go | 4 +- libs/tendermint/privval/signer_client.go | 4 +- libs/tendermint/privval/signer_client_test.go | 4 +- .../privval/signer_dialer_endpoint.go | 4 +- libs/tendermint/privval/signer_endpoint.go | 2 +- .../privval/signer_listener_endpoint.go | 4 +- .../privval/signer_listener_endpoint_test.go | 10 +- .../privval/signer_requestHandler.go | 4 +- libs/tendermint/privval/signer_server.go | 4 +- libs/tendermint/privval/socket_dialers.go | 6 +- .../tendermint/privval/socket_dialers_test.go | 2 +- libs/tendermint/privval/socket_listeners.go | 4 +- .../privval/socket_listeners_test.go | 2 +- libs/tendermint/privval/utils.go | 6 +- libs/tendermint/proto/blockchain/msgs.pb.go | 2 +- libs/tendermint/proto/consensus/msgs.pb.go | 4 +- libs/tendermint/proto/consensus/walmsgs.pb.go | 2 +- libs/tendermint/proto/privval/msgs.pb.go | 4 +- libs/tendermint/proto/privval/types.pb.go | 2 +- libs/tendermint/proto/state/types.pb.go | 6 +- libs/tendermint/proto/types/evidence.pb.go | 2 +- libs/tendermint/proto/types/types.pb.go | 6 +- libs/tendermint/proto/types/validator.pb.go | 2 +- .../proto/types/validator_adapter.pb.go | 2 +- libs/tendermint/proxy/app_conn.go | 4 +- libs/tendermint/proxy/app_conn_test.go | 4 +- libs/tendermint/proxy/client.go | 8 +- libs/tendermint/proxy/multi_app_conn.go | 2 +- libs/tendermint/proxy/version.go | 4 +- libs/tendermint/rpc/client/codec.go | 2 +- libs/tendermint/rpc/client/event_test.go | 12 +- libs/tendermint/rpc/client/examples_test.go | 8 +- libs/tendermint/rpc/client/helpers.go | 2 +- libs/tendermint/rpc/client/helpers_test.go | 6 +- libs/tendermint/rpc/client/http/http.go | 16 +- libs/tendermint/rpc/client/interface.go | 8 +- libs/tendermint/rpc/client/local/local.go | 20 +- libs/tendermint/rpc/client/main_test.go | 6 +- libs/tendermint/rpc/client/mock/abci.go | 12 +- libs/tendermint/rpc/client/mock/abci_test.go | 14 +- libs/tendermint/rpc/client/mock/client.go | 14 +- libs/tendermint/rpc/client/mock/status.go | 4 +- .../tendermint/rpc/client/mock/status_test.go | 6 +- libs/tendermint/rpc/client/rpc_test.go | 30 +-- libs/tendermint/rpc/core/abci.go | 10 +- libs/tendermint/rpc/core/blocks.go | 16 +- libs/tendermint/rpc/core/blocks_test.go | 12 +- libs/tendermint/rpc/core/consensus.go | 12 +- libs/tendermint/rpc/core/dev.go | 4 +- libs/tendermint/rpc/core/env.go | 28 +- libs/tendermint/rpc/core/events.go | 10 +- libs/tendermint/rpc/core/evidence.go | 8 +- libs/tendermint/rpc/core/health.go | 4 +- libs/tendermint/rpc/core/ibc_adapter.go | 6 +- libs/tendermint/rpc/core/ibc_utils.go | 6 +- libs/tendermint/rpc/core/mempool.go | 14 +- libs/tendermint/rpc/core/net.go | 6 +- libs/tendermint/rpc/core/net_test.go | 8 +- libs/tendermint/rpc/core/routes.go | 2 +- libs/tendermint/rpc/core/status.go | 12 +- libs/tendermint/rpc/core/tx.go | 12 +- libs/tendermint/rpc/core/types/codec.go | 2 +- libs/tendermint/rpc/core/types/ibc_adapter.go | 4 +- libs/tendermint/rpc/core/types/responses.go | 10 +- .../rpc/core/types/responses_test.go | 2 +- libs/tendermint/rpc/grpc/api.go | 6 +- libs/tendermint/rpc/grpc/client_server.go | 2 +- libs/tendermint/rpc/grpc/grpc_test.go | 8 +- libs/tendermint/rpc/grpc/types.pb.go | 2 +- libs/tendermint/rpc/grpc/typespb_test.go | 2 +- .../rpc/jsonrpc/client/cm39_converters.go | 10 +- .../jsonrpc/client/cm39_http_json_client.go | 8 +- libs/tendermint/rpc/jsonrpc/client/decode.go | 2 +- .../rpc/jsonrpc/client/http_json_client.go | 2 +- .../rpc/jsonrpc/client/http_uri_client.go | 2 +- .../rpc/jsonrpc/client/integration_test.go | 2 +- .../rpc/jsonrpc/client/ws_client.go | 6 +- .../rpc/jsonrpc/client/ws_client_test.go | 4 +- libs/tendermint/rpc/jsonrpc/jsonrpc_test.go | 12 +- .../rpc/jsonrpc/server/http_json_handler.go | 4 +- .../jsonrpc/server/http_json_handler_test.go | 4 +- .../rpc/jsonrpc/server/http_server.go | 4 +- .../rpc/jsonrpc/server/http_server_test.go | 2 +- .../rpc/jsonrpc/server/http_uri_handler.go | 4 +- .../rpc/jsonrpc/server/parse_test.go | 4 +- .../tendermint/rpc/jsonrpc/server/rpc_func.go | 2 +- .../rpc/jsonrpc/server/ws_handler.go | 6 +- .../rpc/jsonrpc/server/ws_handler_test.go | 4 +- libs/tendermint/rpc/jsonrpc/test/main.go | 8 +- libs/tendermint/rpc/jsonrpc/types/types.go | 2 +- libs/tendermint/rpc/test/helpers.go | 24 +- libs/tendermint/scripts/json2wal/main.go | 4 +- libs/tendermint/scripts/wal2json/main.go | 4 +- libs/tendermint/state/codec.go | 2 +- libs/tendermint/state/execution.go | 24 +- libs/tendermint/state/execution_context.go | 4 +- libs/tendermint/state/execution_dds.go | 16 +- .../tendermint/state/execution_dds_payload.go | 2 +- libs/tendermint/state/execution_dds_test.go | 12 +- libs/tendermint/state/execution_parallel.go | 12 +- libs/tendermint/state/execution_task.go | 14 +- libs/tendermint/state/execution_test.go | 20 +- libs/tendermint/state/export_test.go | 6 +- libs/tendermint/state/helpers_test.go | 20 +- libs/tendermint/state/indexer/block.go | 4 +- libs/tendermint/state/indexer/block/kv/kv.go | 10 +- .../tendermint/state/indexer/block/kv/util.go | 4 +- .../state/indexer/block/null/null.go | 6 +- libs/tendermint/state/indexer/query_range.go | 2 +- libs/tendermint/state/main_test.go | 2 +- libs/tendermint/state/services.go | 2 +- libs/tendermint/state/state.go | 6 +- libs/tendermint/state/state_ibc_adapter.go | 2 +- libs/tendermint/state/state_test.go | 20 +- libs/tendermint/state/store.go | 10 +- libs/tendermint/state/store_test.go | 12 +- libs/tendermint/state/test_common.go | 24 +- libs/tendermint/state/tx_filter.go | 4 +- libs/tendermint/state/tx_filter_test.go | 8 +- libs/tendermint/state/txindex/indexer.go | 4 +- .../state/txindex/indexer_service.go | 6 +- .../state/txindex/indexer_service_test.go | 14 +- libs/tendermint/state/txindex/kv/kv.go | 10 +- .../state/txindex/kv/kv_bench_test.go | 10 +- libs/tendermint/state/txindex/kv/kv_test.go | 16 +- libs/tendermint/state/txindex/null/null.go | 6 +- libs/tendermint/state/validation.go | 6 +- libs/tendermint/state/validation_test.go | 14 +- libs/tendermint/store/codec.go | 2 +- libs/tendermint/store/store.go | 6 +- libs/tendermint/store/store_test.go | 14 +- libs/tendermint/test/app/grpc_client.go | 2 +- libs/tendermint/types/block.go | 24 +- libs/tendermint/types/block_ibc.go | 2 +- libs/tendermint/types/block_test.go | 16 +- libs/tendermint/types/canonical.go | 4 +- libs/tendermint/types/codec.go | 2 +- libs/tendermint/types/db.go | 2 +- libs/tendermint/types/deltas.go | 6 +- libs/tendermint/types/deltas_test.go | 2 +- libs/tendermint/types/encoding_helper.go | 4 +- libs/tendermint/types/event_bus.go | 8 +- libs/tendermint/types/event_bus_test.go | 10 +- libs/tendermint/types/events.go | 6 +- libs/tendermint/types/events_cm40.go | 2 +- libs/tendermint/types/evidence.go | 12 +- libs/tendermint/types/evidence_test.go | 8 +- libs/tendermint/types/from.go | 2 +- libs/tendermint/types/genesis.go | 8 +- libs/tendermint/types/genesis_test.go | 4 +- libs/tendermint/types/ibc.go | 4 +- libs/tendermint/types/ibc_adapter.go | 12 +- libs/tendermint/types/milestone.go | 2 +- libs/tendermint/types/params.go | 6 +- libs/tendermint/types/params_test.go | 2 +- libs/tendermint/types/part_set.go | 10 +- libs/tendermint/types/part_set_test.go | 4 +- libs/tendermint/types/priv_validator.go | 4 +- libs/tendermint/types/proposal.go | 6 +- libs/tendermint/types/proposal_test.go | 2 +- libs/tendermint/types/proto3_test.go | 2 +- libs/tendermint/types/protobuf.go | 10 +- libs/tendermint/types/protobuf_test.go | 10 +- libs/tendermint/types/results.go | 6 +- libs/tendermint/types/results_test.go | 2 +- libs/tendermint/types/signable.go | 4 +- libs/tendermint/types/tx.go | 10 +- libs/tendermint/types/tx_test.go | 6 +- libs/tendermint/types/validation.go | 4 +- libs/tendermint/types/validator.go | 8 +- libs/tendermint/types/validator_set.go | 6 +- libs/tendermint/types/validator_set_ibc.go | 4 +- libs/tendermint/types/validator_set_test.go | 8 +- libs/tendermint/types/validator_test.go | 4 +- libs/tendermint/types/vote.go | 6 +- libs/tendermint/types/vote_set.go | 4 +- libs/tendermint/types/vote_set_test.go | 6 +- libs/tendermint/types/vote_test.go | 6 +- libs/tm-db/boltdb.go | 2 +- libs/tm-db/cleveldb.go | 2 +- libs/tm-db/memdb.go | 2 +- libs/tm-db/remotedb/batch.go | 4 +- libs/tm-db/remotedb/grpcdb/client.go | 2 +- libs/tm-db/remotedb/grpcdb/example_test.go | 4 +- libs/tm-db/remotedb/grpcdb/server.go | 4 +- libs/tm-db/remotedb/iterator.go | 4 +- libs/tm-db/remotedb/remotedb.go | 8 +- libs/tm-db/remotedb/remotedb_test.go | 4 +- networks/local/node/wrapper.sh | 6 +- x/common/coin_test.go | 2 +- x/common/consensus.go | 2 +- x/common/const.go | 2 +- x/common/errors.go | 6 +- x/common/monitor/port.go | 2 +- x/common/monitor/tendermint.go | 6 +- x/common/perf/performance.go | 6 +- x/common/proto/keeper.go | 4 +- x/common/proto/keeper_test.go | 2 +- x/common/proto/keys.go | 2 +- x/common/proto/test_common.go | 10 +- x/common/rest_v2.go | 2 +- x/common/syscoin_test.go | 4 +- x/common/syscoins_test.go | 6 +- x/common/util.go | 12 +- x/common/util_test.go | 4 +- x/distribution/abci.go | 10 +- x/distribution/abci_test.go | 4 +- x/distribution/alias.go | 10 +- x/distribution/alias_distr_proposal.go | 8 +- x/distribution/client/cli/query.go | 18 +- .../client/cli/query_distr_proposal.go | 12 +- x/distribution/client/cli/tx.go | 24 +- .../client/cli/tx_distr_proposal.go | 18 +- x/distribution/client/cli/utils.go | 4 +- .../client/cli/utils_distr_proposal.go | 4 +- x/distribution/client/common/common.go | 12 +- .../client/common/common_distr_proposal.go | 6 +- x/distribution/client/proposal_handler.go | 6 +- x/distribution/client/rest/query.go | 12 +- x/distribution/client/rest/rest.go | 18 +- .../client/rest/rest_distr_proposal.go | 18 +- x/distribution/client/rest/tx.go | 14 +- x/distribution/client/rest/utils.go | 4 +- .../client/rest/utils_distr_proposal.go | 4 +- x/distribution/distribution_suit_test.go | 12 +- x/distribution/genesis.go | 4 +- x/distribution/genesis_test.go | 6 +- x/distribution/handler.go | 8 +- x/distribution/handler_distr_proposal.go | 6 +- x/distribution/handler_test.go | 16 +- x/distribution/keeper/alias_functions.go | 6 +- x/distribution/keeper/allocation.go | 10 +- .../keeper/allocation_distr_proposal.go | 6 +- .../keeper/allocation_distr_proposal_test.go | 26 +- x/distribution/keeper/allocation_test.go | 10 +- x/distribution/keeper/delegation.go | 6 +- x/distribution/keeper/delegation_test.go | 8 +- x/distribution/keeper/hooks.go | 4 +- x/distribution/keeper/hooks_distr_proposal.go | 4 +- .../keeper/hooks_distr_proposal_test.go | 6 +- x/distribution/keeper/hooks_test.go | 2 +- x/distribution/keeper/invariants.go | 6 +- x/distribution/keeper/invariants_test.go | 4 +- x/distribution/keeper/keeper.go | 10 +- .../keeper/keeper_distr_proposal.go | 6 +- x/distribution/keeper/keeper_test.go | 4 +- x/distribution/keeper/params.go | 4 +- .../keeper/params_distr_proposal.go | 4 +- x/distribution/keeper/proposal_handler.go | 6 +- .../keeper/proposal_handler_distr_proposal.go | 4 +- .../keeper/proposal_handler_test.go | 4 +- x/distribution/keeper/querier.go | 10 +- .../keeper/querier_distr_proposal.go | 12 +- .../keeper/querier_distr_proposal_test.go | 8 +- x/distribution/keeper/querier_test.go | 6 +- x/distribution/keeper/store.go | 4 +- x/distribution/keeper/store_distr_proposal.go | 4 +- x/distribution/keeper/test_common.go | 36 +-- .../keeper/test_common_distr_proposal.go | 10 +- x/distribution/keeper/validator.go | 4 +- .../keeper/validator_distr_proposal.go | 6 +- x/distribution/module.go | 18 +- x/distribution/module_test.go | 8 +- x/distribution/msg_convert.go | 10 +- x/distribution/msg_convert_test.go | 4 +- .../proposal_handler_distr_proposal_test.go | 8 +- x/distribution/proposal_handler_test.go | 10 +- x/distribution/types/codec.go | 4 +- x/distribution/types/delegator.go | 2 +- x/distribution/types/errors.go | 4 +- x/distribution/types/errors_distr_proposal.go | 4 +- x/distribution/types/expected_keepers.go | 10 +- x/distribution/types/fee_pool.go | 2 +- x/distribution/types/fee_pool_test.go | 2 +- x/distribution/types/genesis.go | 2 +- x/distribution/types/keys.go | 4 +- x/distribution/types/keys_distr_proposal.go | 2 +- x/distribution/types/msg.go | 2 +- x/distribution/types/msg_distr_proposal.go | 2 +- x/distribution/types/msg_test.go | 4 +- x/distribution/types/params.go | 4 +- x/distribution/types/params_test.go | 2 +- x/distribution/types/proposal.go | 6 +- .../types/proposal_distr_proposal.go | 4 +- .../types/proposal_distr_proposal_test.go | 6 +- x/distribution/types/proposal_test.go | 4 +- x/distribution/types/querier.go | 2 +- .../types/querier_distr_proposal.go | 2 +- x/distribution/types/query.go | 2 +- x/distribution/types/validator.go | 2 +- .../types/validator_distr_proposal.go | 2 +- x/erc20/alias.go | 4 +- x/erc20/client/cli/query.go | 17 +- x/erc20/client/cli/tx.go | 20 +- x/erc20/client/proposal_handler.go | 6 +- x/erc20/client/rest/rest.go | 10 +- x/erc20/genesis.go | 6 +- x/erc20/genesis_test.go | 4 +- x/erc20/handler.go | 4 +- x/erc20/handler_test.go | 13 +- x/erc20/keeper/evm_log_handler.go | 8 +- x/erc20/keeper/evm_log_handler_test.go | 20 +- x/erc20/keeper/expected_keeper.go | 16 +- x/erc20/keeper/expected_keeper_innertx.go | 4 +- x/erc20/keeper/ibc.go | 14 +- x/erc20/keeper/ibc_hooks.go | 8 +- x/erc20/keeper/ibc_test.go | 8 +- x/erc20/keeper/invariants.go | 2 +- x/erc20/keeper/keeper.go | 12 +- x/erc20/keeper/keeper_test.go | 22 +- x/erc20/keeper/params.go | 6 +- x/erc20/keeper/params_test.go | 4 +- x/erc20/keeper/proposal.go | 10 +- x/erc20/keeper/proposal_test.go | 6 +- x/erc20/keeper/querier.go | 14 +- x/erc20/keeper/querier_test.go | 4 +- x/erc20/module.go | 16 +- x/erc20/proposal_handler.go | 12 +- x/erc20/types/codec.go | 4 +- x/erc20/types/contract.go | 4 +- x/erc20/types/errors.go | 4 +- x/erc20/types/params.go | 2 +- x/erc20/types/proposal.go | 6 +- x/erc20/types/types.go | 2 +- x/evidence/abci.go | 6 +- x/evidence/alias.go | 4 +- x/evidence/client/cli/query.go | 14 +- x/evidence/client/cli/tx.go | 8 +- x/evidence/client/evidence_handler.go | 6 +- x/evidence/client/rest/query.go | 6 +- x/evidence/client/rest/rest.go | 2 +- x/evidence/client/rest/tx.go | 2 +- x/evidence/exported/evidence.go | 4 +- x/evidence/genesis.go | 2 +- x/evidence/genesis_test.go | 24 +- x/evidence/handler.go | 4 +- x/evidence/handler_test.go | 10 +- x/evidence/internal/keeper/infraction.go | 4 +- x/evidence/internal/keeper/infraction_test.go | 10 +- x/evidence/internal/keeper/keeper.go | 20 +- x/evidence/internal/keeper/keeper_test.go | 39 +-- x/evidence/internal/keeper/params.go | 4 +- x/evidence/internal/keeper/params_test.go | 2 +- x/evidence/internal/keeper/querier.go | 16 +- x/evidence/internal/keeper/querier_test.go | 6 +- x/evidence/internal/types/codec.go | 4 +- x/evidence/internal/types/codec_test.go | 10 +- x/evidence/internal/types/errors.go | 2 +- x/evidence/internal/types/evidence.go | 10 +- x/evidence/internal/types/evidence_test.go | 4 +- x/evidence/internal/types/expected_keepers.go | 6 +- x/evidence/internal/types/genesis.go | 2 +- x/evidence/internal/types/genesis_test.go | 6 +- x/evidence/internal/types/msgs.go | 6 +- x/evidence/internal/types/msgs_test.go | 8 +- x/evidence/internal/types/params.go | 2 +- x/evidence/internal/types/router.go | 4 +- x/evidence/internal/types/router_test.go | 6 +- x/evidence/internal/types/test_util.go | 12 +- x/evidence/module.go | 16 +- x/evm/alias.go | 8 +- x/evm/client/cli/query.go | 21 +- x/evm/client/cli/tx.go | 20 +- x/evm/client/cli/utils.go | 2 +- x/evm/client/cli/utils_test.go | 2 +- x/evm/client/proposal_handler.go | 6 +- x/evm/client/rest/query.go | 12 +- x/evm/client/rest/rest.go | 32 +-- x/evm/client/rest/rest_proposal.go | 16 +- x/evm/client/utils/utils.go | 6 +- x/evm/client/utils/utils_test.go | 6 +- x/evm/evm2cm.go | 6 +- x/evm/evm2cm_test.go | 4 +- x/evm/export_operation.go | 8 +- x/evm/genesis.go | 12 +- x/evm/genesis_test.go | 32 +-- x/evm/handler.go | 16 +- x/evm/handler_test.go | 29 +- x/evm/keeper/abci.go | 10 +- x/evm/keeper/abci_test.go | 8 +- x/evm/keeper/evm2cm.go | 6 +- x/evm/keeper/evm_hooks.go | 6 +- x/evm/keeper/evm_hooks_test.go | 6 +- x/evm/keeper/expected_keeper.go | 4 +- x/evm/keeper/invariants.go | 8 +- x/evm/keeper/invariants_test.go | 8 +- x/evm/keeper/keeper.go | 20 +- x/evm/keeper/keeper_direct.go | 6 +- x/evm/keeper/keeper_mpt.go | 6 +- x/evm/keeper/keeper_parallel.go | 6 +- x/evm/keeper/keeper_test.go | 21 +- x/evm/keeper/params.go | 4 +- x/evm/keeper/params_test.go | 2 +- x/evm/keeper/proposal.go | 10 +- x/evm/keeper/proposal_test.go | 12 +- x/evm/keeper/querier.go | 16 +- x/evm/keeper/querier_test.go | 4 +- x/evm/keeper/statedb.go | 4 +- x/evm/keeper/statedb_mpt_test.go | 8 +- x/evm/keeper/statedb_test.go | 10 +- x/evm/legacy/v0_16/types.go | 2 +- x/evm/legacy/v0_18/Migrate.go | 4 +- x/evm/legacy/v0_18/types.go | 4 +- x/evm/module.go | 18 +- x/evm/proposal_handler.go | 10 +- x/evm/proposal_handler_test.go | 6 +- x/evm/txs/base/base.go | 10 +- x/evm/txs/base/common.go | 8 +- x/evm/txs/base/common_test.go | 8 +- x/evm/txs/check/check.go | 2 +- x/evm/txs/deliver/deliver.go | 16 +- x/evm/txs/factory.go | 8 +- x/evm/txs/factory_test.go | 10 +- x/evm/txs/tracetxlog/tracetxlog.go | 6 +- x/evm/txs/tx.go | 10 +- x/evm/txs/tx_test.go | 12 +- x/evm/types/abi_test.go | 2 +- x/evm/types/access_list_test.go | 2 +- x/evm/types/address_list.go | 2 +- x/evm/types/address_list_test.go | 2 +- x/evm/types/bloombits.go | 4 +- x/evm/types/chain_config.go | 4 +- x/evm/types/chain_config_test.go | 2 +- x/evm/types/codec.go | 4 +- x/evm/types/codec_test.go | 2 +- x/evm/types/codec_tx_test.go | 8 +- x/evm/types/contract_verifier.go | 2 +- x/evm/types/contract_verifier_test.go | 4 +- x/evm/types/decoder.go | 16 +- x/evm/types/errors.go | 4 +- x/evm/types/expected_keepers.go | 8 +- x/evm/types/genesis_test.go | 2 +- x/evm/types/gu_factor.go | 2 +- x/evm/types/gu_factor_test.go | 2 +- x/evm/types/ibcdecoder_test.go | 32 +-- x/evm/types/indexer.go | 6 +- x/evm/types/indexer_test.go | 6 +- x/evm/types/interface.go | 2 +- x/evm/types/journal.go | 4 +- x/evm/types/journal_test.go | 32 +-- x/evm/types/key.go | 2 +- x/evm/types/logs_test.go | 2 +- x/evm/types/msg_evm.go | 12 +- x/evm/types/msg_evm_stdtx.go | 2 +- x/evm/types/msg_test.go | 28 +- x/evm/types/params.go | 2 +- x/evm/types/proposal.go | 11 +- x/evm/types/proposal_test.go | 2 +- x/evm/types/state_object.go | 6 +- x/evm/types/state_object_mpt.go | 4 +- x/evm/types/state_transition.go | 10 +- x/evm/types/state_transition_test.go | 10 +- x/evm/types/statedb.go | 16 +- x/evm/types/statedb_mpt.go | 8 +- x/evm/types/statedb_mpt_test.go | 6 +- x/evm/types/statedb_protect.go | 6 +- x/evm/types/statedb_protect_test.go | 24 +- x/evm/types/statedb_test.go | 23 +- x/evm/types/storage.go | 2 +- x/evm/types/testdata/animal.go | 2 +- x/evm/types/testdata/codec.go | 8 +- x/evm/types/testdata/grpc_query.go | 2 +- x/evm/types/testdata/query.pb.go | 2 +- x/evm/types/testdata/testdata.pb.go | 2 +- x/evm/types/testdata/tx.go | 4 +- x/evm/types/testdata/unknonwnproto.pb.go | 4 +- x/evm/types/tracer.go | 2 +- x/evm/types/tx_data.go | 2 +- x/evm/types/utils.go | 4 +- x/evm/types/utils_test.go | 11 +- x/evm/watcher/codec.go | 8 +- x/evm/watcher/db.go | 8 +- x/evm/watcher/evmtx.go | 2 +- x/evm/watcher/infura.go | 2 +- x/evm/watcher/proto/types.proto | 2 +- x/evm/watcher/proto_types.go | 2 +- x/evm/watcher/querier.go | 12 +- x/evm/watcher/tx.go | 8 +- x/evm/watcher/tx_watcher.go | 4 +- x/evm/watcher/types.go | 16 +- x/evm/watcher/utils.go | 12 +- x/evm/watcher/watcher.go | 20 +- x/evm/watcher/watcher_encoder_test.go | 4 +- x/evm/watcher/watcher_test.go | 37 +-- x/feesplit/alias.go | 4 +- x/feesplit/client/cli/query.go | 12 +- x/feesplit/client/cli/tx.go | 24 +- x/feesplit/client/proposal_handler.go | 6 +- x/feesplit/client/rest/rest.go | 14 +- x/feesplit/client/utils/utils.go | 6 +- x/feesplit/genesis.go | 6 +- x/feesplit/genesis_test.go | 13 +- x/feesplit/handler.go | 8 +- x/feesplit/handler_test.go | 19 +- x/feesplit/keeper/evm_hooks.go | 6 +- x/feesplit/keeper/fee_splits.go | 8 +- x/feesplit/keeper/fee_splits_test.go | 6 +- x/feesplit/keeper/keeper.go | 12 +- x/feesplit/keeper/keeper_test.go | 15 +- x/feesplit/keeper/params.go | 4 +- x/feesplit/keeper/params_test.go | 2 +- x/feesplit/keeper/proposal.go | 10 +- x/feesplit/keeper/querier.go | 14 +- x/feesplit/keeper/querier_test.go | 10 +- x/feesplit/module.go | 18 +- x/feesplit/msg_convert.go | 10 +- x/feesplit/msg_convert_test.go | 4 +- x/feesplit/proposal_handler.go | 10 +- x/feesplit/types/cache.go | 2 +- x/feesplit/types/codec.go | 4 +- x/feesplit/types/errors.go | 2 +- x/feesplit/types/fee_split.go | 4 +- x/feesplit/types/fee_split_test.go | 6 +- x/feesplit/types/genesis_test.go | 4 +- x/feesplit/types/interfaces.go | 8 +- x/feesplit/types/keys.go | 2 +- x/feesplit/types/msg.go | 4 +- x/feesplit/types/msg_test.go | 4 +- x/feesplit/types/params.go | 4 +- x/feesplit/types/params_test.go | 4 +- x/feesplit/types/proposal.go | 6 +- x/feesplit/types/querier.go | 4 +- x/genutil/alias.go | 6 +- x/genutil/client/cli/alias.go | 2 +- x/genutil/client/cli/collect.go | 12 +- x/genutil/client/cli/gentx.go | 26 +- x/genutil/client/cli/init.go | 20 +- x/genutil/client/cli/migrate.go | 14 +- x/genutil/client/legacy/v0_18/migrate.go | 12 +- x/genutil/client/legacy/v0_18/migrate_test.go | 8 +- x/genutil/collect.go | 18 +- x/genutil/genesis.go | 8 +- x/genutil/gentx.go | 14 +- x/genutil/module.go | 12 +- x/genutil/types/alias.go | 2 +- x/genutil/types/codec.go | 8 +- x/genutil/types/genesis_state.go | 4 +- x/gov/alias.go | 4 +- x/gov/ante/ante.go | 22 +- x/gov/client/cli/parse.go | 2 +- x/gov/client/cli/query.go | 18 +- x/gov/client/cli/tx.go | 20 +- x/gov/client/proposal_handler.go | 8 +- x/gov/client/rest/rest.go | 12 +- x/gov/client/utils/query.go | 8 +- x/gov/client/utils/utils.go | 2 +- x/gov/endblocker.go | 10 +- x/gov/genesis.go | 6 +- x/gov/handler.go | 8 +- x/gov/invariants.go | 6 +- x/gov/keeper/deposit.go | 4 +- x/gov/keeper/expected_keepers.go | 6 +- x/gov/keeper/keeper.go | 18 +- x/gov/keeper/proposal.go | 4 +- x/gov/keeper/proposal_handler_router.go | 4 +- x/gov/keeper/querier.go | 12 +- x/gov/keeper/router.go | 2 +- x/gov/keeper/tally.go | 6 +- x/gov/keeper/vote.go | 4 +- x/gov/module.go | 24 +- x/gov/module_adapter.go | 12 +- x/gov/types/codec.go | 4 +- x/gov/types/content.go | 2 +- x/gov/types/deposit.go | 2 +- x/gov/types/errors.go | 4 +- x/gov/types/errors_test.go | 2 +- x/gov/types/keys.go | 2 +- x/gov/types/msgs.go | 2 +- x/gov/types/params.go | 4 +- x/gov/types/proposal.go | 2 +- x/gov/types/querier.go | 2 +- x/gov/types/vote.go | 2 +- x/gov/ut/deposit_test.go | 8 +- x/gov/ut/endblocker_test.go | 12 +- x/gov/ut/genesis_test.go | 6 +- x/gov/ut/handler_test.go | 10 +- x/gov/ut/invariants_test.go | 6 +- x/gov/ut/keeper_test.go | 4 +- x/gov/ut/module_test.go | 28 +- x/gov/ut/proposal_handler_router_test.go | 4 +- x/gov/ut/proposal_test.go | 4 +- x/gov/ut/querier_test.go | 14 +- x/gov/ut/tally_test.go | 10 +- x/gov/ut/test_common.go | 40 +-- x/gov/ut/vote_test.go | 4 +- x/icamauth/client/cli/query.go | 12 +- x/icamauth/client/cli/tx.go | 24 +- x/icamauth/handler.go | 8 +- x/icamauth/ibc_module.go | 16 +- x/icamauth/keeper/grpc_query.go | 6 +- x/icamauth/keeper/keeper.go | 16 +- x/icamauth/keeper/msg_server.go | 12 +- x/icamauth/module.go | 18 +- x/icamauth/types/codec.go | 8 +- x/icamauth/types/errors.go | 2 +- x/icamauth/types/msgs.go | 8 +- x/icamauth/types/tx.pb.go | 2 +- x/infura/alias.go | 2 +- x/infura/beginblocker.go | 2 +- x/infura/cache.go | 4 +- x/infura/distrlock/redis_distr_state_lock.go | 2 +- x/infura/endblocker.go | 2 +- x/infura/engine.go | 4 +- x/infura/expected_keeper.go | 2 +- x/infura/keeper.go | 8 +- x/infura/module.go | 10 +- x/infura/stream.go | 6 +- x/infura/task.go | 2 +- x/infura/types/types.go | 4 +- x/params/alias.go | 4 +- x/params/client/cli/commit_upgrade.go | 18 +- x/params/client/cli/query.go | 12 +- x/params/client/cli/query_upgrade.go | 9 +- x/params/client/cli/tx.go | 20 +- x/params/client/proposal_handler.go | 6 +- .../client/rest/paramter_change_proposal.go | 16 +- x/params/client/rest/upgrade_proposal.go | 14 +- x/params/client/utils/utils.go | 8 +- x/params/codec.go | 6 +- x/params/expected_keepers.go | 2 +- x/params/keeper.go | 12 +- x/params/keeper_test.go | 14 +- x/params/keeper_upgrade.go | 4 +- x/params/keeper_upgrade_test.go | 14 +- x/params/module.go | 16 +- x/params/proposal_handler.go | 12 +- x/params/proposal_handler_test.go | 24 +- x/params/querier.go | 10 +- x/params/subspace/alias.go | 2 +- x/params/types/alias.go | 2 +- x/params/types/errors.go | 6 +- x/params/types/parameter_change_proposal.go | 10 +- x/params/types/params.go | 8 +- x/params/types/params_block.go | 4 +- x/params/types/params_gas.go | 6 +- x/params/types/upgrade_cache.go | 8 +- x/params/types/upgrade_cache_test.go | 16 +- x/params/types/upgrade_proposal.go | 8 +- x/params/upgrade_executor.go | 8 +- x/params/upgrade_executor_test.go | 16 +- x/slashing/abci.go | 4 +- x/slashing/alias.go | 4 +- x/slashing/client/cli/query.go | 12 +- x/slashing/client/cli/tx.go | 16 +- x/slashing/client/rest/query.go | 8 +- x/slashing/client/rest/rest.go | 2 +- x/slashing/client/rest/tx.go | 10 +- x/slashing/genesis.go | 6 +- x/slashing/handler.go | 10 +- x/slashing/internal/keeper/hooks.go | 6 +- x/slashing/internal/keeper/infractions.go | 6 +- x/slashing/internal/keeper/keeper.go | 10 +- .../internal/keeper/keeper_okexchain.go | 4 +- x/slashing/internal/keeper/params.go | 4 +- x/slashing/internal/keeper/querier.go | 12 +- x/slashing/internal/keeper/signing_info.go | 4 +- x/slashing/internal/keeper/test_common.go | 34 +-- x/slashing/internal/keeper/unjail.go | 4 +- x/slashing/internal/types/codec.go | 2 +- x/slashing/internal/types/errors.go | 2 +- x/slashing/internal/types/expected_keepers.go | 10 +- x/slashing/internal/types/genesis.go | 2 +- x/slashing/internal/types/keys.go | 2 +- x/slashing/internal/types/msg.go | 2 +- x/slashing/internal/types/params.go | 4 +- x/slashing/internal/types/querier.go | 2 +- x/slashing/internal/types/signing_info.go | 2 +- x/slashing/module.go | 24 +- x/slashing/simulation/decoder.go | 10 +- x/slashing/simulation/genesis.go | 10 +- x/slashing/simulation/operations.go | 12 +- x/slashing/simulation/params.go | 4 +- x/staking/abci.go | 10 +- x/staking/alias.go | 12 +- x/staking/alias_distr_proposal.go | 4 +- x/staking/app_test.go | 20 +- x/staking/client/cli/flags.go | 2 +- x/staking/client/cli/query.go | 14 +- x/staking/client/cli/tx.go | 22 +- x/staking/client/cli/tx_proposal.go | 20 +- x/staking/client/cli/tx_vote.go | 18 +- x/staking/client/cli/tx_vote_test.go | 6 +- x/staking/client/proposal_handler.go | 6 +- x/staking/client/rest/query.go | 10 +- x/staking/client/rest/rest.go | 2 +- x/staking/client/rest/rest_ibc.go | 4 +- x/staking/client/rest/tx.go | 12 +- x/staking/client/rest/tx_proposal.go | 4 +- x/staking/client/rest/utils.go | 12 +- x/staking/common_test.go | 14 +- x/staking/delegator_test.go | 6 +- x/staking/exported/exported.go | 4 +- x/staking/genesis.go | 16 +- x/staking/genesis_test.go | 14 +- x/staking/handler.go | 8 +- x/staking/handler_distr_proposal.go | 6 +- x/staking/handler_distr_proposal_test.go | 8 +- x/staking/handler_shares.go | 6 +- x/staking/handler_shares_test.go | 4 +- x/staking/handler_test.go | 12 +- x/staking/keeper/alias_functions.go | 6 +- x/staking/keeper/delegation.go | 4 +- x/staking/keeper/delegator.go | 4 +- x/staking/keeper/grpc_query.go | 4 +- x/staking/keeper/hooks.go | 4 +- x/staking/keeper/hooks_distr_proposal.go | 2 +- x/staking/keeper/hooks_test.go | 2 +- x/staking/keeper/invariants.go | 6 +- x/staking/keeper/invariants_test.go | 4 +- x/staking/keeper/keeper.go | 12 +- x/staking/keeper/keeper_distr_proposal.go | 4 +- x/staking/keeper/keeper_ibc.go | 8 +- x/staking/keeper/keeper_ibc_adapter.go | 10 +- x/staking/keeper/min_self_delegation.go | 4 +- x/staking/keeper/params.go | 8 +- x/staking/keeper/pool.go | 6 +- x/staking/keeper/propose_validator.go | 4 +- x/staking/keeper/proxy.go | 4 +- x/staking/keeper/proxy_test.go | 4 +- x/staking/keeper/querier.go | 18 +- x/staking/keeper/querier_test.go | 6 +- x/staking/keeper/shares.go | 4 +- x/staking/keeper/shares_test.go | 4 +- x/staking/keeper/slash.go | 2 +- x/staking/keeper/test_common.go | 36 +-- .../keeper/test_common_distr_proposal.go | 2 +- x/staking/keeper/val_state.go | 8 +- x/staking/keeper/val_state_change.go | 8 +- x/staking/keeper/validator.go | 4 +- x/staking/keeper/validator_distr_proposal.go | 4 +- x/staking/keeper/weight.go | 4 +- x/staking/keeper/weight_test.go | 2 +- x/staking/legacy/v0_10/types.go | 2 +- x/staking/legacy/v0_11/migrate.go | 2 +- x/staking/legacy/v0_11/types.go | 4 +- x/staking/legacy/v0_18/migrate.go | 2 +- x/staking/legacy/v0_18/types.go | 6 +- x/staking/module.go | 30 +-- x/staking/module_ibc.go | 24 +- x/staking/msg_convert.go | 10 +- x/staking/msg_convert_test.go | 4 +- x/staking/proposal_handler.go | 8 +- x/staking/simulation/operations.go | 8 +- x/staking/simulation/proposals.go | 4 +- x/staking/types/address.go | 2 +- x/staking/types/codec.go | 4 +- x/staking/types/commission.go | 2 +- x/staking/types/commission_test.go | 2 +- x/staking/types/delegation.go | 4 +- x/staking/types/delegator.go | 6 +- x/staking/types/delegator_distr_proposal.go | 2 +- x/staking/types/errors.go | 4 +- x/staking/types/errors_dirstr_proposal.go | 4 +- x/staking/types/expected_keepers.go | 8 +- x/staking/types/genesis.go | 2 +- x/staking/types/historical_info.go | 6 +- x/staking/types/hooks.go | 2 +- x/staking/types/hooks_distr_proposal.go | 2 +- x/staking/types/keys.go | 8 +- x/staking/types/keys_test.go | 4 +- x/staking/types/msg.go | 6 +- x/staking/types/msg_distr_proposal.go | 2 +- x/staking/types/msg_shares.go | 2 +- x/staking/types/msg_test.go | 4 +- x/staking/types/params.go | 6 +- x/staking/types/params_ibc.go | 2 +- x/staking/types/pool.go | 2 +- x/staking/types/proposal.go | 10 +- x/staking/types/querier.go | 4 +- x/staking/types/query.go | 4 +- x/staking/types/shares.go | 4 +- x/staking/types/test_utils.go | 6 +- x/staking/types/validator.go | 14 +- x/staking/types/validator_distr_proposal.go | 2 +- x/staking/types/validator_standardized.go | 8 +- x/staking/types/validator_test.go | 12 +- x/staking/typesadapter/msgs.go | 2 +- x/staking/typesadapter/params.go | 2 +- x/staking/typesadapter/query.pb.go | 2 +- x/staking/typesadapter/staking.pb.go | 6 +- x/staking/validator_state_machine_test.go | 4 +- x/staking/validator_test.go | 4 +- x/token/alias.go | 2 +- x/token/beginblocker.go | 6 +- x/token/client/cli/query.go | 16 +- x/token/client/cli/tx.go | 18 +- x/token/client/rest/rest.go | 8 +- x/token/client/rest/rest_doc.go | 2 +- x/token/client/rest/rest_v2.go | 8 +- x/token/expected_keepers.go | 4 +- x/token/export_accounts.go | 8 +- x/token/genesis.go | 6 +- x/token/genesis_test.go | 8 +- x/token/handler.go | 12 +- x/token/handler_ibc.go | 6 +- x/token/handler_test.go | 35 +-- x/token/keeper.go | 14 +- x/token/keeper_test.go | 12 +- x/token/legacy/v0_10/types.go | 2 +- x/token/legacy/v0_11/migrate.go | 2 +- x/token/legacy/v0_11/types.go | 4 +- x/token/module.go | 12 +- x/token/module_basic.go | 12 +- x/token/module_test.go | 12 +- x/token/querier.go | 10 +- x/token/querier_test.go | 10 +- x/token/querier_v2.go | 10 +- x/token/test_common.go | 22 +- x/token/token_test.go | 30 +-- x/token/types/codec.go | 4 +- x/token/types/confirm_ownership.go | 2 +- x/token/types/errors.go | 4 +- x/token/types/expected_keepers.go | 4 +- x/token/types/keys.go | 2 +- x/token/types/msgs.go | 4 +- x/token/types/msgs_test.go | 6 +- x/token/types/params.go | 6 +- x/token/types/params_test.go | 4 +- x/token/types/token.go | 2 +- x/token/types/token_test.go | 6 +- x/token/types/util.go | 6 +- x/token/types/util_test.go | 8 +- x/vmbridge/alias.go | 4 +- x/vmbridge/keeper/evm.go | 16 +- x/vmbridge/keeper/evm_test.go | 10 +- x/vmbridge/keeper/excepted_keeper.go | 8 +- x/vmbridge/keeper/keeper.go | 6 +- x/vmbridge/keeper/keeper_test.go | 17 +- x/vmbridge/keeper/precompile.go | 6 +- x/vmbridge/keeper/precompile_test.go | 6 +- x/vmbridge/keeper/wasm.go | 14 +- x/vmbridge/keeper/wasm_test.go | 10 +- x/vmbridge/register.go | 8 +- x/vmbridge/types/codec.go | 6 +- x/vmbridge/types/errors.go | 4 +- x/vmbridge/types/precompile.go | 2 +- x/vmbridge/types/protocol_test.go | 2 +- x/vmbridge/types/tx.go | 2 +- x/vmbridge/types/tx.pb.go | 2 +- x/vmbridge/types/tx_test.go | 2 +- x/wasm/alias.go | 8 +- x/wasm/client/cli/genesis_msg.go | 22 +- x/wasm/client/cli/genesis_msg_test.go | 42 +-- x/wasm/client/cli/gov_custom.go | 22 +- x/wasm/client/cli/gov_tx.go | 18 +- x/wasm/client/cli/query.go | 16 +- x/wasm/client/cli/tx.go | 22 +- x/wasm/client/proposal_handler.go | 6 +- x/wasm/client/proposal_handler_test.go | 8 +- x/wasm/client/rest/gov.go | 14 +- x/wasm/client/rest/new_tx.go | 8 +- x/wasm/client/rest/query.go | 10 +- x/wasm/client/rest/rest.go | 2 +- x/wasm/client/rest/tx.go | 12 +- x/wasm/client/utils/client_adapter.go | 12 +- x/wasm/client/utils/utils.go | 4 +- x/wasm/common_test.go | 2 +- x/wasm/genesis_test.go | 4 +- x/wasm/handler.go | 20 +- x/wasm/ibc.go | 18 +- x/wasm/ibc_reflect_test.go | 4 +- x/wasm/ibctesting/chain.go | 32 +-- x/wasm/ibctesting/coordinator.go | 2 +- x/wasm/ibctesting/endpoint.go | 2 +- x/wasm/ibctesting/path.go | 2 +- x/wasm/ibctesting/wasm.go | 6 +- x/wasm/ioutils/ioutil.go | 2 +- x/wasm/ioutils/ioutil_test.go | 2 +- x/wasm/keeper/ante.go | 6 +- x/wasm/keeper/ante_test.go | 16 +- x/wasm/keeper/api.go | 6 +- x/wasm/keeper/authz_policy.go | 4 +- x/wasm/keeper/bench_test.go | 6 +- x/wasm/keeper/cache.go | 2 +- x/wasm/keeper/contract_keeper.go | 4 +- x/wasm/keeper/cross_contract_call.go | 4 +- x/wasm/keeper/cross_contract_call_test.go | 2 +- x/wasm/keeper/events.go | 6 +- x/wasm/keeper/events_test.go | 4 +- x/wasm/keeper/gas_register.go | 8 +- x/wasm/keeper/gas_register_test.go | 4 +- x/wasm/keeper/genesis.go | 8 +- x/wasm/keeper/genesis_test.go | 28 +- x/wasm/keeper/handler_plugin.go | 18 +- x/wasm/keeper/handler_plugin_encoders.go | 18 +- x/wasm/keeper/handler_plugin_encoders_test.go | 20 +- x/wasm/keeper/handler_plugin_test.go | 20 +- x/wasm/keeper/ibc.go | 10 +- x/wasm/keeper/ibc_test.go | 2 +- x/wasm/keeper/ioutil.go | 2 +- x/wasm/keeper/ioutil_test.go | 2 +- x/wasm/keeper/keeper.go | 22 +- x/wasm/keeper/keeper_bench_test.go | 4 +- x/wasm/keeper/keeper_mpt.go | 4 +- x/wasm/keeper/keeper_test.go | 16 +- x/wasm/keeper/legacy_querier.go | 8 +- x/wasm/keeper/legacy_querier_test.go | 6 +- x/wasm/keeper/msg_dispatcher.go | 8 +- x/wasm/keeper/msg_dispatcher_test.go | 6 +- x/wasm/keeper/msg_server.go | 6 +- x/wasm/keeper/options.go | 2 +- x/wasm/keeper/options_test.go | 8 +- x/wasm/keeper/proposal_handler.go | 10 +- x/wasm/keeper/proposal_integration_test.go | 34 +-- x/wasm/keeper/querier.go | 16 +- x/wasm/keeper/querier_test.go | 12 +- x/wasm/keeper/query_plugins.go | 14 +- x/wasm/keeper/query_plugins_test.go | 14 +- x/wasm/keeper/recurse_test.go | 6 +- x/wasm/keeper/reflect_test.go | 22 +- x/wasm/keeper/relay.go | 8 +- x/wasm/keeper/relay_test.go | 6 +- x/wasm/keeper/snapshotter.go | 10 +- x/wasm/keeper/snapshotter_integration_test.go | 16 +- x/wasm/keeper/submsg_test.go | 8 +- x/wasm/keeper/test_common.go | 132 ++++----- x/wasm/keeper/test_fuzz.go | 6 +- x/wasm/keeper/testdata/reflect.go | 2 +- x/wasm/keeper/wasmtesting/coin_transferrer.go | 2 +- x/wasm/keeper/wasmtesting/gas_register.go | 2 +- x/wasm/keeper/wasmtesting/message_router.go | 4 +- x/wasm/keeper/wasmtesting/messenger.go | 2 +- x/wasm/keeper/wasmtesting/mock_engine.go | 6 +- x/wasm/keeper/wasmtesting/mock_keepers.go | 12 +- x/wasm/keeper/wasmtesting/msg_dispatcher.go | 2 +- x/wasm/keeper/wasmtesting/query_handler.go | 2 +- x/wasm/keeper/wasmtesting/store.go | 6 +- x/wasm/module.go | 34 +-- x/wasm/module_adapter.go | 26 +- x/wasm/module_test.go | 28 +- x/wasm/msg_convert.go | 8 +- x/wasm/msg_convert_test.go | 4 +- x/wasm/proxy/context.go | 20 +- x/wasm/proxy/keeper_proxy.go | 36 +-- x/wasm/relay_pingpong_test.go | 12 +- x/wasm/relay_test.go | 12 +- x/wasm/simulate.go | 20 +- x/wasm/simulation/genesis.go | 4 +- x/wasm/simulation/params.go | 8 +- x/wasm/simulation/sim_utils.go | 8 +- x/wasm/types/address_adapter.go | 4 +- x/wasm/types/ante.go | 2 +- x/wasm/types/codec.go | 14 +- x/wasm/types/errors.go | 4 +- x/wasm/types/expected_keepers.go | 18 +- x/wasm/types/exported_keepers.go | 4 +- x/wasm/types/genesis.go | 6 +- x/wasm/types/iavl_range_test.go | 8 +- x/wasm/types/json_matching.go | 2 +- x/wasm/types/json_matching_test.go | 2 +- x/wasm/types/keys.go | 2 +- x/wasm/types/params.go | 8 +- x/wasm/types/params_test.go | 6 +- x/wasm/types/proposal.go | 6 +- x/wasm/types/proposal.pb.go | 8 +- x/wasm/types/proposal_custom.go | 4 +- x/wasm/types/proposal_test.go | 8 +- x/wasm/types/query.pb.go | 6 +- x/wasm/types/store_adapter.go | 2 +- x/wasm/types/test_fixtures.go | 2 +- x/wasm/types/tx.go | 4 +- x/wasm/types/tx.pb.go | 8 +- x/wasm/types/tx_test.go | 2 +- x/wasm/types/types.go | 10 +- x/wasm/types/types.pb.go | 6 +- x/wasm/types/types_test.go | 2 +- x/wasm/types/validation.go | 2 +- x/wasm/watcher/dds.go | 2 +- x/wasm/watcher/key.go | 4 +- x/wasm/watcher/params.go | 2 +- x/wasm/watcher/store.go | 16 +- x/wasm/watcher/write.go | 2 +- 2736 files changed, 11776 insertions(+), 11707 deletions(-) rename cmd/{okbchaincli => brczerocli}/main.go (74%) rename cmd/{okbchaind => brczerod}/base/account.go (90%) rename cmd/{okbchaind => brczerod}/base/db.go (94%) rename cmd/{okbchaind => brczerod}/data.go (91%) rename cmd/{okbchaind => brczerod}/data_rocksdb.go (95%) rename cmd/{okbchaind => brczerod}/data_rocksdb_no.go (100%) rename cmd/{okbchaind => brczerod}/display_state.go (90%) rename cmd/{okbchaind => brczerod}/export_app.go (78%) rename cmd/{okbchaind => brczerod}/fss/create.go (86%) rename cmd/{okbchaind => brczerod}/fss/fss.go (77%) rename cmd/{okbchaind => brczerod}/genaccounts.go (89%) rename cmd/{okbchaind => brczerod}/iaviewer.go (96%) rename cmd/{okbchaind => brczerod}/main.go (75%) rename cmd/{okbchaind => brczerod}/mpt/cmd.go (78%) rename cmd/{okbchaind => brczerod}/mpt/common.go (84%) rename cmd/{okbchaind => brczerod}/mpt/iavl2mpt.go (92%) rename cmd/{okbchaind => brczerod}/mpt/iavl_clean.go (82%) rename cmd/{okbchaind => brczerod}/mpt/mpt_viewer.go (94%) rename cmd/{okbchaind => brczerod}/mpt/newaccount.go (94%) rename cmd/{okbchaind => brczerod}/mpt/snapshot.go (74%) rename cmd/{okbchaind => brczerod}/repair_data.go (80%) rename cmd/{okbchaind => brczerod}/replay.go (90%) rename cmd/{okbchaind => brczerod}/rest.go (65%) rename cmd/{okbchaind => brczerod}/subscribe_cmd.go (82%) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index 2bfba8935..7557d92f7 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -27,7 +27,7 @@ v Please also ensure that this is not a duplicate issue :) ## Version - + ## Steps to Reproduce diff --git a/Dockerfile b/Dockerfile index 3e0917bd1..dad08db02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Simple usage with a mounted data directory: # > docker build -t okbchain . -# > docker run -it -p 36657:36657 -p 36656:36656 -v ~/.okbchaind:/root/.okbchaind -v ~/.okbchaincli:/root/.okbchaincli okbchain okbchaind init mynode -# > docker run -it -p 36657:36657 -p 36656:36656 -v ~/.okbchaind:/root/.okbchaind -v ~/.okbchaincli:/root/.okbchaincli okbchain okbchaind start +# > docker run -it -p 36657:36657 -p 36656:36656 -v ~/.brczerod:/root/.brczerod -v ~/.brczerocli:/root/.brczerocli okbchain brczerod init mynode +# > docker run -it -p 36657:36657 -p 36656:36656 -v ~/.brczerod:/root/.brczerod -v ~/.brczerocli:/root/.brczerocli okbchain brczerod start FROM golang:1.20.2-alpine AS build-env # Install minimum necessary dependencies, remove packages @@ -27,5 +27,5 @@ WORKDIR /root COPY --from=build-env /go/bin/okbchaind /usr/bin/okbchaind COPY --from=build-env /go/bin/okbchaincli /usr/bin/okbchaincli -# Run okbchaind by default, omit entrypoint to ease using container with okbchaincli +# Run brczerod by default, omit entrypoint to ease using container with brczerocli CMD ["okbchaind"] diff --git a/LICENSE b/LICENSE index 79f5ac15c..8ce0013d7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -OKBChain +BRCZero License: Apache2.0 Apache License diff --git a/app/ante/AccountBlockedVerificationDecorator.go b/app/ante/AccountBlockedVerificationDecorator.go index 12af8f04f..21be28add 100644 --- a/app/ante/AccountBlockedVerificationDecorator.go +++ b/app/ante/AccountBlockedVerificationDecorator.go @@ -1,9 +1,9 @@ package ante import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - evmtypes "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + evmtypes "github.com/okx/brczero/x/evm/types" ) // AccountBlockedVerificationDecorator check whether signer is blocked. diff --git a/app/ante/AccountVerificationDecorator.go b/app/ante/AccountVerificationDecorator.go index 92ad6cce7..a5fd72b8f 100644 --- a/app/ante/AccountVerificationDecorator.go +++ b/app/ante/AccountVerificationDecorator.go @@ -1,10 +1,10 @@ package ante import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - evmtypes "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + evmtypes "github.com/okx/brczero/x/evm/types" ) // AccountVerificationDecorator validates an account balance checks diff --git a/app/ante/EthGasConsumeDecorator.go b/app/ante/EthGasConsumeDecorator.go index 0fd418b01..8af5e9ec0 100644 --- a/app/ante/EthGasConsumeDecorator.go +++ b/app/ante/EthGasConsumeDecorator.go @@ -6,11 +6,11 @@ import ( "github.com/ethereum/go-ethereum/common" ethcore "github.com/ethereum/go-ethereum/core" ethtypes "github.com/ethereum/go-ethereum/core/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) // EthGasConsumeDecorator validates enough intrinsic gas for the transaction and diff --git a/app/ante/EthMempoolFeeDecorator.go b/app/ante/EthMempoolFeeDecorator.go index 01f6bf1b6..3edf13768 100644 --- a/app/ante/EthMempoolFeeDecorator.go +++ b/app/ante/EthMempoolFeeDecorator.go @@ -2,9 +2,9 @@ package ante import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - evmtypes "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + evmtypes "github.com/okx/brczero/x/evm/types" "math/big" "sync" ) diff --git a/app/ante/EthSetupContextDecorator.go b/app/ante/EthSetupContextDecorator.go index 87c5f67de..951b4ff4f 100644 --- a/app/ante/EthSetupContextDecorator.go +++ b/app/ante/EthSetupContextDecorator.go @@ -2,8 +2,8 @@ package ante import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // EthSetupContextDecorator sets the infinite GasMeter in the Context and wraps diff --git a/app/ante/EthSigVerificationDecorator.go b/app/ante/EthSigVerificationDecorator.go index adbd29736..fb28d06c1 100644 --- a/app/ante/EthSigVerificationDecorator.go +++ b/app/ante/EthSigVerificationDecorator.go @@ -1,10 +1,10 @@ package ante import ( - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - evmtypes "github.com/okx/okbchain/x/evm/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + evmtypes "github.com/okx/brczero/x/evm/types" ) // EthSigVerificationDecorator validates an ethereum signature diff --git a/app/ante/GasLimitDecorator.go b/app/ante/GasLimitDecorator.go index dda1926b5..9ee0d2bc6 100644 --- a/app/ante/GasLimitDecorator.go +++ b/app/ante/GasLimitDecorator.go @@ -1,11 +1,11 @@ package ante import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/innertx" - types2 "github.com/okx/okbchain/libs/tendermint/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/innertx" + types2 "github.com/okx/brczero/libs/tendermint/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) // EVMKeeper defines the expected keeper interface used on the Eth AnteHandler diff --git a/app/ante/IncrementSeqDecorator.go b/app/ante/IncrementSeqDecorator.go index bb3b39cc3..cb2934315 100644 --- a/app/ante/IncrementSeqDecorator.go +++ b/app/ante/IncrementSeqDecorator.go @@ -1,11 +1,11 @@ package ante import ( - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + evmtypes "github.com/okx/brczero/x/evm/types" ) // IncrementSenderSequenceDecorator increments the sequence of the signers. The diff --git a/app/ante/NonceVerificationDecorator.go b/app/ante/NonceVerificationDecorator.go index 70278671b..176cfadfd 100644 --- a/app/ante/NonceVerificationDecorator.go +++ b/app/ante/NonceVerificationDecorator.go @@ -2,11 +2,11 @@ package ante import ( "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + evmtypes "github.com/okx/brczero/x/evm/types" ) // NonceVerificationDecorator checks that the account nonce from the transaction matches diff --git a/app/ante/account.go b/app/ante/account.go index 8fe95a2cb..027a547db 100644 --- a/app/ante/account.go +++ b/app/ante/account.go @@ -9,15 +9,15 @@ import ( "github.com/ethereum/go-ethereum/common" ethcore "github.com/ethereum/go-ethereum/core" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/innertx" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/x/evm" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/innertx" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/x/evm" + evmtypes "github.com/okx/brczero/x/evm/types" ) type accountKeeperInterface interface { diff --git a/app/ante/ante.go b/app/ante/ante.go index e0a960ac3..88bcbfb5e 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -1,20 +1,20 @@ package ante import ( - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authante "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" - ibcante "github.com/okx/okbchain/libs/ibc-go/modules/core/ante" - "github.com/okx/okbchain/libs/system/trace" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - govante "github.com/okx/okbchain/x/gov/ante" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/staking" - wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authante "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" + ibcante "github.com/okx/brczero/libs/ibc-go/modules/core/ante" + "github.com/okx/brczero/libs/system/trace" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + govante "github.com/okx/brczero/x/gov/ante" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/staking" + wasmkeeper "github.com/okx/brczero/x/wasm/keeper" ) func init() { diff --git a/app/ante/ante_test.go b/app/ante/ante_test.go index adcbbf2f9..f4e0f5df7 100644 --- a/app/ante/ante_test.go +++ b/app/ante/ante_test.go @@ -10,15 +10,15 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/ante" - "github.com/okx/okbchain/app/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/ante" + "github.com/okx/brczero/app/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) func requireValidTx( diff --git a/app/ante/utils.go b/app/ante/utils.go index 8c1071a98..31472c142 100644 --- a/app/ante/utils.go +++ b/app/ante/utils.go @@ -1,9 +1,9 @@ package ante import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) func getAccount(ak *auth.AccountKeeper, ctx *sdk.Context, addr sdk.AccAddress, accCache auth.Account) (auth.Account, sdk.Gas) { diff --git a/app/ante/utils_test.go b/app/ante/utils_test.go index 7d272dc7e..158f65653 100644 --- a/app/ante/utils_test.go +++ b/app/ante/utils_test.go @@ -2,45 +2,46 @@ package ante_test import ( "fmt" - "github.com/okx/okbchain/libs/system" "math/big" "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" - helpers2 "github.com/okx/okbchain/libs/ibc-go/testing/simapp/helpers" + "github.com/okx/brczero/libs/system" + + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/testing/mock" + helpers2 "github.com/okx/brczero/libs/ibc-go/testing/simapp/helpers" "github.com/stretchr/testify/suite" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/app" - ante "github.com/okx/okbchain/app/ante" - appconfig "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - chain "github.com/okx/okbchain/app/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app" + ante "github.com/okx/brczero/app/ante" + appconfig "github.com/okx/brczero/app/config" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + chain "github.com/okx/brczero/app/types" + evmtypes "github.com/okx/brczero/x/evm/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" ) type AnteTestSuite struct { suite.Suite ctx sdk.Context - app *app.OKBChainApp + app *app.BRCZeroApp anteHandler sdk.AnteHandler } diff --git a/app/ante/validateMsg.go b/app/ante/validateMsg.go index 70221eb04..f8420f0f1 100644 --- a/app/ante/validateMsg.go +++ b/app/ante/validateMsg.go @@ -1,6 +1,6 @@ package ante -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" type ValidateMsgHandler func(ctx sdk.Context, msgs []sdk.Msg) error diff --git a/app/ante/wrapWasmCountTXDecorator.go b/app/ante/wrapWasmCountTXDecorator.go index 5f384de40..bf144ef84 100644 --- a/app/ante/wrapWasmCountTXDecorator.go +++ b/app/ante/wrapWasmCountTXDecorator.go @@ -1,9 +1,9 @@ package ante import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" - wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" + wasmkeeper "github.com/okx/brczero/x/wasm/keeper" ) type WrapWasmCountTXDecorator struct { diff --git a/app/app.go b/app/app.go index 3a4510e86..de0aaf9e3 100644 --- a/app/app.go +++ b/app/app.go @@ -2,113 +2,114 @@ package app import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" "io" "os" "runtime/debug" "sync" - paramstypes "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/x/vmbridge" + paramstypes "github.com/okx/brczero/x/params/types" - ica "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts" - icacontroller "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller" - icahost "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host" - "github.com/okx/okbchain/x/icamauth" + "github.com/okx/brczero/x/vmbridge" - ibccommon "github.com/okx/okbchain/libs/ibc-go/modules/core/common" + ica "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts" + icacontroller "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller" + icahost "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host" + "github.com/okx/brczero/x/icamauth" - icacontrollertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" - icahosttypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - icamauthtypes "github.com/okx/okbchain/x/icamauth/types" + ibccommon "github.com/okx/brczero/libs/ibc-go/modules/core/common" - icacontrollerkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" - icahostkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" - icamauthkeeper "github.com/okx/okbchain/x/icamauth/keeper" + icacontrollertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + icahosttypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + icamauthtypes "github.com/okx/brczero/x/icamauth/types" - ibcfeekeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/keeper" + icacontrollerkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" + icahostkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" + icamauthkeeper "github.com/okx/brczero/x/icamauth/keeper" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - ibcfeetypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" + ibcfeekeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/keeper" + + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + ibcfeetypes "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" "github.com/spf13/cobra" "github.com/spf13/viper" "google.golang.org/grpc/encoding" "google.golang.org/grpc/encoding/proto" - ibcfee "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee" - - "github.com/okx/okbchain/app/utils/appstatus" - - "github.com/okx/okbchain/app/ante" - chaincodec "github.com/okx/okbchain/app/codec" - appconfig "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/app/refund" - chain "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/app/utils/sanity" - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - stypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - upgradetypes "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - capabilityModule "github.com/okx/okbchain/libs/cosmos-sdk/x/capability" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - govclient "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/client" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - "github.com/okx/okbchain/libs/iavl" - ibctransfer "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer" - ibctransferkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/keeper" - ibctransfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" - ibcclient "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/client" - ibcclienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - ibcporttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - ibchost "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/system" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - sm "github.com/okx/okbchain/libs/tendermint/state" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - commonversion "github.com/okx/okbchain/x/common/version" - distr "github.com/okx/okbchain/x/distribution" - "github.com/okx/okbchain/x/erc20" - erc20client "github.com/okx/okbchain/x/erc20/client" - "github.com/okx/okbchain/x/evidence" - "github.com/okx/okbchain/x/evm" - evmclient "github.com/okx/okbchain/x/evm/client" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/feesplit" - fsclient "github.com/okx/okbchain/x/feesplit/client" - "github.com/okx/okbchain/x/genutil" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/infura" - "github.com/okx/okbchain/x/params" - paramsclient "github.com/okx/okbchain/x/params/client" - "github.com/okx/okbchain/x/slashing" - "github.com/okx/okbchain/x/staking" - stakingclient "github.com/okx/okbchain/x/staking/client" - "github.com/okx/okbchain/x/token" - "github.com/okx/okbchain/x/wasm" - wasmclient "github.com/okx/okbchain/x/wasm/client" - wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" + ibcfee "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee" + + "github.com/okx/brczero/app/utils/appstatus" + + "github.com/okx/brczero/app/ante" + chaincodec "github.com/okx/brczero/app/codec" + appconfig "github.com/okx/brczero/app/config" + "github.com/okx/brczero/app/refund" + chain "github.com/okx/brczero/app/types" + "github.com/okx/brczero/app/utils/sanity" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + stypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + upgradetypes "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + capabilityModule "github.com/okx/brczero/libs/cosmos-sdk/x/capability" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + govclient "github.com/okx/brczero/libs/cosmos-sdk/x/mint/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + "github.com/okx/brczero/libs/iavl" + ibctransfer "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer" + ibctransferkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/keeper" + ibctransfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" + ibcclient "github.com/okx/brczero/libs/ibc-go/modules/core/02-client" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/client" + ibcclienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + ibcporttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + ibchost "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/system" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + sm "github.com/okx/brczero/libs/tendermint/state" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + commonversion "github.com/okx/brczero/x/common/version" + distr "github.com/okx/brczero/x/distribution" + "github.com/okx/brczero/x/erc20" + erc20client "github.com/okx/brczero/x/erc20/client" + "github.com/okx/brczero/x/evidence" + "github.com/okx/brczero/x/evm" + evmclient "github.com/okx/brczero/x/evm/client" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/feesplit" + fsclient "github.com/okx/brczero/x/feesplit/client" + "github.com/okx/brczero/x/genutil" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/infura" + "github.com/okx/brczero/x/params" + paramsclient "github.com/okx/brczero/x/params/client" + "github.com/okx/brczero/x/slashing" + "github.com/okx/brczero/x/staking" + stakingclient "github.com/okx/brczero/x/staking/client" + "github.com/okx/brczero/x/token" + "github.com/okx/brczero/x/wasm" + wasmclient "github.com/okx/brczero/x/wasm/client" + wasmkeeper "github.com/okx/brczero/x/wasm/keeper" ) func init() { @@ -209,12 +210,12 @@ var ( FlagGolangMaxThreads string = "golang-max-threads" ) -var _ simapp.App = (*OKBChainApp)(nil) +var _ simapp.App = (*BRCZeroApp)(nil) -// OKBChainApp implements an extended ABCI application. It is an application +// BRCZeroApp implements an extended ABCI application. It is an application // that may process transactions through Ethereum's EVM running atop of // Tendermint consensus. -type OKBChainApp struct { +type BRCZeroApp struct { *bam.BaseApp invCheckPeriod uint @@ -272,8 +273,8 @@ type OKBChainApp struct { WasmHandler wasmkeeper.HandlerOption } -// NewOKBChainApp returns a reference to a new initialized OKBChain application. -func NewOKBChainApp( +// NewBRCZeroApp returns a reference to a new initialized BRCZero application. +func NewBRCZeroApp( logger log.Logger, db dbm.DB, traceStore io.Writer, @@ -281,7 +282,7 @@ func NewOKBChainApp( skipUpgradeHeights map[int64]bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp), -) *OKBChainApp { +) *BRCZeroApp { logger.Info("Starting " + system.ChainName) onceLog.Do(func() { iavl.SetLogger(logger.With("module", "iavl")) @@ -290,7 +291,7 @@ func NewOKBChainApp( codecProxy, interfaceReg := chaincodec.MakeCodecSuit(ModuleBasics) vmbridge.RegisterInterface(interfaceReg) - // NOTE we use custom OKBChain transaction decoder that supports the sdk.Tx interface instead of sdk.StdTx + // NOTE we use custom BRCZero transaction decoder that supports the sdk.Tx interface instead of sdk.StdTx bApp := bam.NewBaseApp(appName, logger, db, evm.TxDecoder(codecProxy), baseAppOptions...) bApp.SetCommitMultiStoreTracer(traceStore) @@ -318,7 +319,7 @@ func NewOKBChainApp( tkeys := sdk.NewTransientStoreKeys(params.TStoreKey) memKeys := sdk.NewMemoryStoreKeys(capabilitytypes.MemStoreKey) - app := &OKBChainApp{ + app := &BRCZeroApp{ BaseApp: bApp, invCheckPeriod: invCheckPeriod, keys: keys, @@ -351,7 +352,7 @@ func NewOKBChainApp( //proxy := codec.NewMarshalProxy(cc, cdc) app.marshal = codecProxy - // use custom OKBChain account for contracts + // use custom BRCZero account for contracts app.AccountKeeper = auth.NewAccountKeeper( codecProxy.GetCdc(), keys[mpt.StoreKey], app.subspaces[auth.ModuleName], chain.ProtoAccount, ) @@ -738,7 +739,7 @@ func NewOKBChainApp( return app } -func (app *OKBChainApp) InitUpgrade(ctx sdk.Context) { +func (app *BRCZeroApp) InitUpgrade(ctx sdk.Context) { // Claim before ApplyEffectiveUpgrade app.ParamsKeeper.ClaimReadyForUpgrade(tmtypes.MILESTONE_EARTH, func(info paramstypes.UpgradeInfo) { tmtypes.InitMilestoneEarthHeight(int64(info.EffectiveHeight)) @@ -755,7 +756,7 @@ func (app *OKBChainApp) InitUpgrade(ctx sdk.Context) { } } -func (app *OKBChainApp) SetOption(req abci.RequestSetOption) (res abci.ResponseSetOption) { +func (app *BRCZeroApp) SetOption(req abci.RequestSetOption) (res abci.ResponseSetOption) { if req.Key == "CheckChainID" { if err := chain.IsValidateChainIdWithGenesisHeight(req.Value); err != nil { app.Logger().Error(err.Error()) @@ -770,25 +771,25 @@ func (app *OKBChainApp) SetOption(req abci.RequestSetOption) (res abci.ResponseS return app.BaseApp.SetOption(req) } -func (app *OKBChainApp) LoadStartVersion(height int64) error { +func (app *BRCZeroApp) LoadStartVersion(height int64) error { return app.LoadVersion(height, app.keys[bam.MainStoreKey]) } // Name returns the name of the App -func (app *OKBChainApp) Name() string { return app.BaseApp.Name() } +func (app *BRCZeroApp) Name() string { return app.BaseApp.Name() } // BeginBlocker updates every begin block -func (app *OKBChainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock { +func (app *BRCZeroApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock { return app.mm.BeginBlock(ctx, req) } // EndBlocker updates every end block -func (app *OKBChainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock { +func (app *BRCZeroApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock { return app.mm.EndBlock(ctx, req) } // InitChainer updates at chain initialization -func (app *OKBChainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain { +func (app *BRCZeroApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain { var genesisState simapp.GenesisState app.marshal.GetCdc().MustUnmarshalJSON(req.AppStateBytes, &genesisState) @@ -796,12 +797,12 @@ func (app *OKBChainApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) } // LoadHeight loads state at a particular height -func (app *OKBChainApp) LoadHeight(height int64) error { +func (app *BRCZeroApp) LoadHeight(height int64) error { return app.LoadVersion(height, app.keys[bam.MainStoreKey]) } // ModuleAccountAddrs returns all the app's module account addresses. -func (app *OKBChainApp) ModuleAccountAddrs() map[string]bool { +func (app *BRCZeroApp) ModuleAccountAddrs() map[string]bool { modAccAddrs := make(map[string]bool) for acc := range maccPerms { modAccAddrs[supply.NewModuleAddress(acc).String()] = true @@ -811,14 +812,14 @@ func (app *OKBChainApp) ModuleAccountAddrs() map[string]bool { } // SimulationManager implements the SimulationApp interface -func (app *OKBChainApp) SimulationManager() *module.SimulationManager { +func (app *BRCZeroApp) SimulationManager() *module.SimulationManager { return app.sm } // GetKey returns the KVStoreKey for the provided store key. // // NOTE: This is solely to be used for testing purposes. -func (app *OKBChainApp) GetKey(storeKey string) *sdk.KVStoreKey { +func (app *BRCZeroApp) GetKey(storeKey string) *sdk.KVStoreKey { return app.keys[storeKey] } @@ -826,18 +827,18 @@ func (app *OKBChainApp) GetKey(storeKey string) *sdk.KVStoreKey { // // NOTE: This is solely to be used for testing purposes as it may be desirable // for modules to register their own custom testing types. -func (app *OKBChainApp) Codec() *codec.Codec { +func (app *BRCZeroApp) Codec() *codec.Codec { return app.marshal.GetCdc() } -func (app *OKBChainApp) Marshal() *codec.CodecProxy { +func (app *BRCZeroApp) Marshal() *codec.CodecProxy { return app.marshal } // GetSubspace returns a param subspace for a given module name. // // NOTE: This is solely to be used for testing purposes. -func (app *OKBChainApp) GetSubspace(moduleName string) params.Subspace { +func (app *BRCZeroApp) GetSubspace(moduleName string) params.Subspace { return app.subspaces[moduleName] } diff --git a/app/app_abci.go b/app/app_abci.go index 904b49357..fc70117dc 100644 --- a/app/app_abci.go +++ b/app/app_abci.go @@ -4,20 +4,20 @@ import ( "runtime" "time" - appconfig "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/wasm/watcher" + appconfig "github.com/okx/brczero/app/config" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/wasm/watcher" ) // BeginBlock implements the Application interface -func (app *OKBChainApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock) { +func (app *BRCZeroApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeginBlock) { trace.OnAppBeginBlockEnter(app.LastBlockHeight() + 1) app.EvmKeeper.Watcher.DelayEraseKey() return app.BaseApp.BeginBlock(req) } -func (app *OKBChainApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx) { +func (app *BRCZeroApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliverTx) { trace.OnAppDeliverTxEnter() @@ -26,11 +26,11 @@ func (app *OKBChainApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseD return resp } -func (app *OKBChainApp) PreDeliverRealTx(req []byte) (res abci.TxEssentials) { +func (app *BRCZeroApp) PreDeliverRealTx(req []byte) (res abci.TxEssentials) { return app.BaseApp.PreDeliverRealTx(req) } -func (app *OKBChainApp) DeliverRealTx(req abci.TxEssentials) (res abci.ResponseDeliverTx) { +func (app *BRCZeroApp) DeliverRealTx(req abci.TxEssentials) (res abci.ResponseDeliverTx) { trace.OnAppDeliverTxEnter() resp := app.BaseApp.DeliverRealTx(req) app.EvmKeeper.Watcher.RecordTxAndFailedReceipt(req, &resp, app.GetTxDecoder()) @@ -39,13 +39,13 @@ func (app *OKBChainApp) DeliverRealTx(req abci.TxEssentials) (res abci.ResponseD } // EndBlock implements the Application interface -func (app *OKBChainApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock) { +func (app *BRCZeroApp) EndBlock(req abci.RequestEndBlock) (res abci.ResponseEndBlock) { return app.BaseApp.EndBlock(req) } // Commit implements the Application interface -func (app *OKBChainApp) Commit(req abci.RequestCommit) abci.ResponseCommit { - if gcInterval := appconfig.GetOkbcConfig().GetGcInterval(); gcInterval > 0 { +func (app *BRCZeroApp) Commit(req abci.RequestCommit) abci.ResponseCommit { + if gcInterval := appconfig.GetBRCZeroConfig().GetGcInterval(); gcInterval > 0 { if (app.BaseApp.LastBlockHeight()+1)%int64(gcInterval) == 0 { startTime := time.Now() runtime.GC() diff --git a/app/app_parallel.go b/app/app_parallel.go index 88a7cf328..3c0f7eb90 100644 --- a/app/app_parallel.go +++ b/app/app_parallel.go @@ -4,19 +4,19 @@ import ( "sort" "strings" - appante "github.com/okx/okbchain/app/ante" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authante "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/evm" - evmtypes "github.com/okx/okbchain/x/evm/types" - wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" + appante "github.com/okx/brczero/app/ante" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authante "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/evm" + evmtypes "github.com/okx/brczero/x/evm/types" + wasmkeeper "github.com/okx/brczero/x/wasm/keeper" ) // feeCollectorHandler set or get the value of feeCollectorAcc diff --git a/app/app_test.go b/app/app_test.go index 0f7770ff3..c2f1328e9 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -9,30 +9,30 @@ import ( ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - cosmossdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authclient "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/tendermint/global" - "github.com/okx/okbchain/x/distribution/keeper" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + cosmossdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authclient "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/tendermint/global" + "github.com/okx/brczero/x/distribution/keeper" + evmtypes "github.com/okx/brczero/x/evm/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - distr "github.com/okx/okbchain/x/distribution" - "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + distr "github.com/okx/brczero/x/distribution" + "github.com/okx/brczero/x/params" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - abcitypes "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + abcitypes "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/x/gov" ) var ( @@ -65,9 +65,9 @@ var ( govProposalID2 = uint64(2) ) -func TestOKBChainAppExport(t *testing.T) { +func TestBRCZeroAppExport(t *testing.T) { db := dbm.NewMemDB() - app := NewOKBChainApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) + app := NewBRCZeroApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) genesisState := ModuleBasics.DefaultGenesis() stateBytes, err := codec.MarshalJSONIndent(app.Codec(), genesisState) @@ -83,14 +83,14 @@ func TestOKBChainAppExport(t *testing.T) { app.Commit(abci.RequestCommit{}) // Making a new app object with the db, so that initchain hasn't been called - app2 := NewOKBChainApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) + app2 := NewBRCZeroApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) _, _, err = app2.ExportAppStateAndValidators(false, []string{}) require.NoError(t, err, "ExportAppStateAndValidators should not have an error") } func TestModuleManager(t *testing.T) { db := dbm.NewMemDB() - app := NewOKBChainApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) + app := NewBRCZeroApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) for moduleName, _ := range ModuleBasics { if moduleName == upgrade.ModuleName { @@ -103,7 +103,7 @@ func TestModuleManager(t *testing.T) { func TestProposalManager(t *testing.T) { db := dbm.NewMemDB() - app := NewOKBChainApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) + app := NewBRCZeroApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) require.True(t, app.GovKeeper.Router().HasRoute(params.RouterKey)) require.True(t, app.GovKeeper.Router().HasRoute(distr.RouterKey)) @@ -117,7 +117,7 @@ func TestFakeBlockTxSuite(t *testing.T) { type FakeBlockTxTestSuite struct { suite.Suite - app *OKBChainApp + app *BRCZeroApp codec *codec.Codec evmSenderPrivKey ethsecp256k1.PrivKey diff --git a/app/app_upgrade.go b/app/app_upgrade.go index aac514408..aed165969 100644 --- a/app/app_upgrade.go +++ b/app/app_upgrade.go @@ -3,21 +3,21 @@ package app import ( "sort" - cliContext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - upgradetypes "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" + cliContext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + upgradetypes "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" ) -func (app *OKBChainApp) RegisterTxService(clientCtx cliContext.CLIContext) { +func (app *BRCZeroApp) RegisterTxService(clientCtx cliContext.CLIContext) { utils.RegisterTxService(app.BaseApp.GRPCQueryRouter(), clientCtx, app.grpcSimulate, clientCtx.InterfaceRegistry) } -func (app *OKBChainApp) grpcSimulate(txBytes []byte) (sdk.GasInfo, *sdk.Result, error) { +func (app *BRCZeroApp) grpcSimulate(txBytes []byte) (sdk.GasInfo, *sdk.Result, error) { tx, err := app.GetTxDecoder()(txBytes) if err != nil { return sdk.GasInfo{}, nil, sdkerrors.Wrap(err, "failed to decode tx") @@ -25,7 +25,7 @@ func (app *OKBChainApp) grpcSimulate(txBytes []byte) (sdk.GasInfo, *sdk.Result, return app.Simulate(txBytes, tx, 0, nil) } -func (app *OKBChainApp) setupUpgradeModules(onlyTask bool) { +func (app *BRCZeroApp) setupUpgradeModules(onlyTask bool) { heightTasks, paramMap, cf, pf, vf := app.CollectUpgradeModules(app.mm) app.heightTasks = heightTasks @@ -47,7 +47,7 @@ func (app *OKBChainApp) setupUpgradeModules(onlyTask bool) { } } -func (o *OKBChainApp) CollectUpgradeModules(m *module.Manager) (map[int64]*upgradetypes.HeightTasks, +func (o *BRCZeroApp) CollectUpgradeModules(m *module.Manager) (map[int64]*upgradetypes.HeightTasks, map[string]params.ParamSet, []types.StoreFilter, []types.StoreFilter, []types.VersionFilter) { hm := make(map[int64]*upgradetypes.HeightTasks) paramsRet := make(map[string]params.ParamSet) diff --git a/app/codec/codec.go b/app/codec/codec.go index 9cff937c3..63ff04c29 100644 --- a/app/codec/codec.go +++ b/app/codec/codec.go @@ -1,16 +1,16 @@ package codec import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - cosmoscryptocodec "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/vesting" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + cosmoscryptocodec "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/vesting" - cryptocodec "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" + cryptocodec "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" ) // MakeCodec registers the necessary types and interfaces for an sdk.App. This diff --git a/app/config/apollo.go b/app/config/apollo.go index 6f4ecf2b6..d53713202 100644 --- a/app/config/apollo.go +++ b/app/config/apollo.go @@ -16,10 +16,10 @@ const FlagApollo = "config.apollo" type ApolloClient struct { Namespace string *agollo.Client - okbcConf *OkbcConfig + okbcConf *BRCZeroConfig } -func NewApolloClient(okbcConf *OkbcConfig) *ApolloClient { +func NewApolloClient(okbcConf *BRCZeroConfig) *ApolloClient { // IP|AppID|NamespaceName params := strings.Split(viper.GetString(FlagApollo), "|") if len(params) != 3 { @@ -65,7 +65,7 @@ func (a *ApolloClient) LoadConfig() (loaded bool) { } type CustomChangeListener struct { - okbcConf *OkbcConfig + okbcConf *BRCZeroConfig } func (c *CustomChangeListener) OnChange(changeEvent *storage.ChangeEvent) { diff --git a/app/config/config.go b/app/config/config.go index 777b0f1e6..05c354383 100644 --- a/app/config/config.go +++ b/app/config/config.go @@ -11,27 +11,27 @@ import ( "sync/atomic" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmiavl "github.com/okx/okbchain/libs/iavl" - iavlconfig "github.com/okx/okbchain/libs/iavl/config" - "github.com/okx/okbchain/libs/system" - "github.com/okx/okbchain/libs/system/trace" - tmconfig "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/state" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmiavl "github.com/okx/brczero/libs/iavl" + iavlconfig "github.com/okx/brczero/libs/iavl/config" + "github.com/okx/brczero/libs/system" + "github.com/okx/brczero/libs/system/trace" + tmconfig "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/state" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/viper" ) -var _ tmconfig.IDynamicConfig = &OkbcConfig{} -var _ iavlconfig.IDynamicConfig = &OkbcConfig{} +var _ tmconfig.IDynamicConfig = &BRCZeroConfig{} +var _ iavlconfig.IDynamicConfig = &BRCZeroConfig{} -type OkbcConfig struct { +type BRCZeroConfig struct { // mempool.recheck mempoolRecheck bool // mempool.force_recheck_gap @@ -226,7 +226,7 @@ var ( mainnetNodeIdWhitelist = []string{} - okbcConfig *OkbcConfig + okbcConfig *BRCZeroConfig once sync.Once confLogger log.Logger ) @@ -235,15 +235,15 @@ func GetChainMaxGasUsedPerBlock() int64 { return sdk.GetMaxGasUsedPerBlock() } -func GetOkbcConfig() *OkbcConfig { +func GetBRCZeroConfig() *BRCZeroConfig { once.Do(func() { - okbcConfig = NewOkbcConfig() + okbcConfig = NewBRCZeroConfig() }) return okbcConfig } -func NewOkbcConfig() *OkbcConfig { - c := defaultOkbcConfig() +func NewBRCZeroConfig() *BRCZeroConfig { + c := defaultBRCZeroConfig() c.loadFromConfig() if viper.GetBool(FlagEnableDynamic) { @@ -268,8 +268,8 @@ func NewOkbcConfig() *OkbcConfig { return c } -func defaultOkbcConfig() *OkbcConfig { - return &OkbcConfig{ +func defaultBRCZeroConfig() *BRCZeroConfig { + return &BRCZeroConfig{ mempoolRecheck: false, mempoolForceRecheckGap: 2000, commitGapHeight: iavlconfig.DefaultCommitGapHeight, @@ -280,13 +280,13 @@ func defaultOkbcConfig() *OkbcConfig { func RegisterDynamicConfig(logger log.Logger) { confLogger = logger // set the dynamic config - okbConfig := GetOkbcConfig() - tmconfig.SetDynamicConfig(okbConfig) - iavlconfig.SetDynamicConfig(okbConfig) - trace.SetDynamicConfig(okbConfig) + config := GetBRCZeroConfig() + tmconfig.SetDynamicConfig(config) + iavlconfig.SetDynamicConfig(config) + trace.SetDynamicConfig(config) } -func (c *OkbcConfig) loadFromConfig() { +func (c *BRCZeroConfig) loadFromConfig() { c.SetMempoolRecheck(viper.GetBool(FlagMempoolRecheck)) c.SetMempoolForceRecheckGap(viper.GetInt64(FlagMempoolForceRecheckGap)) c.SetMempoolSize(viper.GetInt(FlagMempoolSize)) @@ -349,12 +349,12 @@ func resolveSentryAddrs(plain string) []string { return strings.Split(plain, ";") } -func (c *OkbcConfig) loadFromApollo() bool { +func (c *BRCZeroConfig) loadFromApollo() bool { client := NewApolloClient(c) return client.LoadConfig() } -func (c *OkbcConfig) loadFromLocal() (bool, error) { +func (c *BRCZeroConfig) loadFromLocal() (bool, error) { var err error rootDir := viper.GetString("home") configPath := path.Join(rootDir, "config", LocalDynamicConfigPath) @@ -371,7 +371,7 @@ func (c *OkbcConfig) loadFromLocal() (bool, error) { return ok, err } -func (c *OkbcConfig) format() string { +func (c *BRCZeroConfig) format() string { return fmt.Sprintf(`%s config: mempool.recheck: %v mempool.force_recheck_gap: %d @@ -442,12 +442,12 @@ func (c *OkbcConfig) format() string { ) } -func (c *OkbcConfig) update(key, value interface{}) { +func (c *BRCZeroConfig) update(key, value interface{}) { k, v := key.(string), value.(string) c.updateFromKVStr(k, v) } -func (c *OkbcConfig) updateFromKVStr(k, v string) { +func (c *BRCZeroConfig) updateFromKVStr(k, v string) { switch k { case FlagMempoolRecheck: r, err := strconv.ParseBool(v) @@ -717,85 +717,85 @@ func (c *OkbcConfig) updateFromKVStr(k, v string) { } -func (c *OkbcConfig) GetEnableAnalyzer() bool { +func (c *BRCZeroConfig) GetEnableAnalyzer() bool { return c.enableAnalyzer } -func (c *OkbcConfig) SetEnableAnalyzer(value bool) { +func (c *BRCZeroConfig) SetEnableAnalyzer(value bool) { c.enableAnalyzer = value } -func (c *OkbcConfig) GetMempoolRecheck() bool { +func (c *BRCZeroConfig) GetMempoolRecheck() bool { return c.mempoolRecheck } -func (c *OkbcConfig) SetMempoolRecheck(value bool) { +func (c *BRCZeroConfig) SetMempoolRecheck(value bool) { c.mempoolRecheck = value } -func (c *OkbcConfig) GetMempoolForceRecheckGap() int64 { +func (c *BRCZeroConfig) GetMempoolForceRecheckGap() int64 { return c.mempoolForceRecheckGap } -func (c *OkbcConfig) SetMempoolForceRecheckGap(value int64) { +func (c *BRCZeroConfig) SetMempoolForceRecheckGap(value int64) { if value <= 0 { return } c.mempoolForceRecheckGap = value } -func (c *OkbcConfig) GetMempoolSize() int { +func (c *BRCZeroConfig) GetMempoolSize() int { return c.mempoolSize } -func (c *OkbcConfig) SetMempoolSize(value int) { +func (c *BRCZeroConfig) SetMempoolSize(value int) { if value < 0 { return } c.mempoolSize = value } -func (c *OkbcConfig) GetMempoolCacheSize() int { +func (c *BRCZeroConfig) GetMempoolCacheSize() int { return c.mempoolCacheSize } -func (c *OkbcConfig) SetMempoolCacheSize(value int) { +func (c *BRCZeroConfig) SetMempoolCacheSize(value int) { if value < 0 { return } c.mempoolCacheSize = value } -func (c *OkbcConfig) GetMempoolFlush() bool { +func (c *BRCZeroConfig) GetMempoolFlush() bool { return c.mempoolFlush } -func (c *OkbcConfig) SetMempoolFlush(value bool) { +func (c *BRCZeroConfig) SetMempoolFlush(value bool) { c.mempoolFlush = value } -func (c *OkbcConfig) GetEnableWtx() bool { +func (c *BRCZeroConfig) GetEnableWtx() bool { return c.enableWtx } -func (c *OkbcConfig) SetDeliverTxsExecuteMode(mode int) { +func (c *BRCZeroConfig) SetDeliverTxsExecuteMode(mode int) { c.deliverTxsMode = mode } -func (c *OkbcConfig) GetDeliverTxsExecuteMode() int { +func (c *BRCZeroConfig) GetDeliverTxsExecuteMode() int { return c.deliverTxsMode } -func (c *OkbcConfig) SetEnableWtx(value bool) { +func (c *BRCZeroConfig) SetEnableWtx(value bool) { c.enableWtx = value } -func (c *OkbcConfig) GetNodeKeyWhitelist() []string { +func (c *BRCZeroConfig) GetNodeKeyWhitelist() []string { return c.nodeKeyWhitelist } -func (c *OkbcConfig) GetMempoolCheckTxCost() bool { +func (c *BRCZeroConfig) GetMempoolCheckTxCost() bool { return c.mempoolCheckTxCost } -func (c *OkbcConfig) SetMempoolCheckTxCost(value bool) { +func (c *BRCZeroConfig) SetMempoolCheckTxCost(value bool) { c.mempoolCheckTxCost = value } -func (c *OkbcConfig) SetNodeKeyWhitelist(value string) { +func (c *BRCZeroConfig) SetNodeKeyWhitelist(value string) { idList := resolveNodeKeyWhitelist(value) for _, id := range idList { @@ -809,109 +809,109 @@ func (c *OkbcConfig) SetNodeKeyWhitelist(value string) { } } -func (c *OkbcConfig) GetSentryAddrs() []string { +func (c *BRCZeroConfig) GetSentryAddrs() []string { return c.sentryAddrs } -func (c *OkbcConfig) SetSentryAddrs(value string) { +func (c *BRCZeroConfig) SetSentryAddrs(value string) { addrs := resolveSentryAddrs(value) for _, addr := range addrs { c.sentryAddrs = append(c.sentryAddrs, strings.TrimSpace(addr)) } } -func (c *OkbcConfig) GetMaxTxNumPerBlock() int64 { +func (c *BRCZeroConfig) GetMaxTxNumPerBlock() int64 { return c.maxTxNumPerBlock } -func (c *OkbcConfig) SetMaxTxNumPerBlock(value int64) { +func (c *BRCZeroConfig) SetMaxTxNumPerBlock(value int64) { if value < 0 { return } c.maxTxNumPerBlock = value } -func (c *OkbcConfig) GetEnableDeleteMinGPTx() bool { +func (c *BRCZeroConfig) GetEnableDeleteMinGPTx() bool { return c.enableDeleteMinGPTx } -func (c *OkbcConfig) SetEnableDeleteMinGPTx(enable bool) { +func (c *BRCZeroConfig) SetEnableDeleteMinGPTx(enable bool) { c.enableDeleteMinGPTx = enable } -func (c *OkbcConfig) GetMaxGasUsedPerBlock() int64 { +func (c *BRCZeroConfig) GetMaxGasUsedPerBlock() int64 { if c.maxGasUsedPerBlock == -1 { return GetChainMaxGasUsedPerBlock() } return c.maxGasUsedPerBlock } -func (c *OkbcConfig) SetMaxGasUsedPerBlock(value int64) { +func (c *BRCZeroConfig) SetMaxGasUsedPerBlock(value int64) { if value < -1 { return } c.maxGasUsedPerBlock = value } -func (c *OkbcConfig) GetEnablePGU() bool { +func (c *BRCZeroConfig) GetEnablePGU() bool { return c.enablePGU } -func (c *OkbcConfig) SetEnablePGU(value bool) { +func (c *BRCZeroConfig) SetEnablePGU(value bool) { c.enablePGU = value } -func (c *OkbcConfig) GetPGUPercentageThreshold() int64 { +func (c *BRCZeroConfig) GetPGUPercentageThreshold() int64 { return c.pguPercentageThreshold } -func (c *OkbcConfig) SetPGUPercentageThreshold(value int64) { +func (c *BRCZeroConfig) SetPGUPercentageThreshold(value int64) { c.pguPercentageThreshold = value } -func (c *OkbcConfig) GetPGUConcurrency() int { +func (c *BRCZeroConfig) GetPGUConcurrency() int { return c.pguConcurrency } -func (c *OkbcConfig) SetPGUConcurrency(value int) { +func (c *BRCZeroConfig) SetPGUConcurrency(value int) { c.pguConcurrency = value } -func (c *OkbcConfig) GetPGUAdjustment() float64 { +func (c *BRCZeroConfig) GetPGUAdjustment() float64 { return c.pguAdjustment } -func (c *OkbcConfig) SetPGUAdjustment(value float64) { +func (c *BRCZeroConfig) SetPGUAdjustment(value float64) { c.pguAdjustment = value } -func (c *OkbcConfig) GetPGUPersist() bool { +func (c *BRCZeroConfig) GetPGUPersist() bool { return c.pguPersist } -func (c *OkbcConfig) SetPGUPersist(value bool) { +func (c *BRCZeroConfig) SetPGUPersist(value bool) { c.pguPersist = value } -func (c *OkbcConfig) GetGasLimitBuffer() uint64 { +func (c *BRCZeroConfig) GetGasLimitBuffer() uint64 { return c.gasLimitBuffer } -func (c *OkbcConfig) SetGasLimitBuffer(value uint64) { +func (c *BRCZeroConfig) SetGasLimitBuffer(value uint64) { c.gasLimitBuffer = value } -func (c *OkbcConfig) GetEnableDynamicGp() bool { +func (c *BRCZeroConfig) GetEnableDynamicGp() bool { return c.enableDynamicGp } -func (c *OkbcConfig) SetEnableDynamicGp(value bool) { +func (c *BRCZeroConfig) SetEnableDynamicGp(value bool) { c.enableDynamicGp = value } -func (c *OkbcConfig) GetDynamicGpWeight() int { +func (c *BRCZeroConfig) GetDynamicGpWeight() int { return c.dynamicGpWeight } -func (c *OkbcConfig) SetDynamicGpWeight(value int) { +func (c *BRCZeroConfig) SetDynamicGpWeight(value int) { if value <= 0 { value = 1 } else if value > 100 { @@ -920,10 +920,10 @@ func (c *OkbcConfig) SetDynamicGpWeight(value int) { c.dynamicGpWeight = value } -func (c *OkbcConfig) GetDynamicGpCoefficient() int { +func (c *BRCZeroConfig) GetDynamicGpCoefficient() int { return c.dynamicGpCoefficient } -func (c *OkbcConfig) SetDynamicGpCoefficient(value int) { +func (c *BRCZeroConfig) SetDynamicGpCoefficient(value int) { if value <= 0 { value = 1 } else if value > 100 { @@ -932,44 +932,44 @@ func (c *OkbcConfig) SetDynamicGpCoefficient(value int) { c.dynamicGpCoefficient = value } -func (c *OkbcConfig) GetDynamicGpMaxGasUsed() int64 { +func (c *BRCZeroConfig) GetDynamicGpMaxGasUsed() int64 { return c.dynamicGpMaxGasUsed } -func (c *OkbcConfig) SetDynamicGpMaxGasUsed(value int64) { +func (c *BRCZeroConfig) SetDynamicGpMaxGasUsed(value int64) { if value < -1 { return } c.dynamicGpMaxGasUsed = value } -func (c *OkbcConfig) GetDynamicGpMaxTxNum() int64 { +func (c *BRCZeroConfig) GetDynamicGpMaxTxNum() int64 { return c.dynamicGpMaxTxNum } -func (c *OkbcConfig) SetDynamicGpMaxTxNum(value int64) { +func (c *BRCZeroConfig) SetDynamicGpMaxTxNum(value int64) { if value < 0 { return } c.dynamicGpMaxTxNum = value } -func (c *OkbcConfig) GetDynamicGpMode() int { +func (c *BRCZeroConfig) GetDynamicGpMode() int { return c.dynamicGpMode } -func (c *OkbcConfig) SetDynamicGpMode(value int) { +func (c *BRCZeroConfig) SetDynamicGpMode(value int) { if value < 0 || value > 2 { return } c.dynamicGpMode = value } -func (c *OkbcConfig) GetDynamicGpCheckBlocks() int { +func (c *BRCZeroConfig) GetDynamicGpCheckBlocks() int { return c.dynamicGpCheckBlocks } -func (c *OkbcConfig) SetDynamicGpCheckBlocks(value int) { +func (c *BRCZeroConfig) SetDynamicGpCheckBlocks(value int) { if value <= 0 { value = 1 } else if value > 100 { @@ -978,95 +978,95 @@ func (c *OkbcConfig) SetDynamicGpCheckBlocks(value int) { c.dynamicGpCheckBlocks = value } -func (c *OkbcConfig) GetCsTimeoutPropose() time.Duration { +func (c *BRCZeroConfig) GetCsTimeoutPropose() time.Duration { return c.csTimeoutPropose } -func (c *OkbcConfig) SetCsTimeoutPropose(value time.Duration) { +func (c *BRCZeroConfig) SetCsTimeoutPropose(value time.Duration) { if value < 0 { return } c.csTimeoutPropose = value } -func (c *OkbcConfig) GetCsTimeoutProposeDelta() time.Duration { +func (c *BRCZeroConfig) GetCsTimeoutProposeDelta() time.Duration { return c.csTimeoutProposeDelta } -func (c *OkbcConfig) SetCsTimeoutProposeDelta(value time.Duration) { +func (c *BRCZeroConfig) SetCsTimeoutProposeDelta(value time.Duration) { if value < 0 { return } c.csTimeoutProposeDelta = value } -func (c *OkbcConfig) GetCsTimeoutPrevote() time.Duration { +func (c *BRCZeroConfig) GetCsTimeoutPrevote() time.Duration { return c.csTimeoutPrevote } -func (c *OkbcConfig) SetCsTimeoutPrevote(value time.Duration) { +func (c *BRCZeroConfig) SetCsTimeoutPrevote(value time.Duration) { if value < 0 { return } c.csTimeoutPrevote = value } -func (c *OkbcConfig) GetCsTimeoutPrevoteDelta() time.Duration { +func (c *BRCZeroConfig) GetCsTimeoutPrevoteDelta() time.Duration { return c.csTimeoutPrevoteDelta } -func (c *OkbcConfig) SetCsTimeoutPrevoteDelta(value time.Duration) { +func (c *BRCZeroConfig) SetCsTimeoutPrevoteDelta(value time.Duration) { if value < 0 { return } c.csTimeoutPrevoteDelta = value } -func (c *OkbcConfig) GetCsTimeoutPrecommit() time.Duration { +func (c *BRCZeroConfig) GetCsTimeoutPrecommit() time.Duration { return c.csTimeoutPrecommit } -func (c *OkbcConfig) SetCsTimeoutPrecommit(value time.Duration) { +func (c *BRCZeroConfig) SetCsTimeoutPrecommit(value time.Duration) { if value < 0 { return } c.csTimeoutPrecommit = value } -func (c *OkbcConfig) GetCsTimeoutPrecommitDelta() time.Duration { +func (c *BRCZeroConfig) GetCsTimeoutPrecommitDelta() time.Duration { return c.csTimeoutPrecommitDelta } -func (c *OkbcConfig) SetCsTimeoutPrecommitDelta(value time.Duration) { +func (c *BRCZeroConfig) SetCsTimeoutPrecommitDelta(value time.Duration) { if value < 0 { return } c.csTimeoutPrecommitDelta = value } -func (c *OkbcConfig) GetCsTimeoutCommit() time.Duration { +func (c *BRCZeroConfig) GetCsTimeoutCommit() time.Duration { return c.csTimeoutCommit } -func (c *OkbcConfig) SetCsTimeoutCommit(value time.Duration) { +func (c *BRCZeroConfig) SetCsTimeoutCommit(value time.Duration) { if value < 0 { return } c.csTimeoutCommit = value } -func (c *OkbcConfig) GetIavlCacheSize() int { +func (c *BRCZeroConfig) GetIavlCacheSize() int { return c.iavlCacheSize } -func (c *OkbcConfig) SetIavlCacheSize(value int) { +func (c *BRCZeroConfig) SetIavlCacheSize(value int) { c.iavlCacheSize = value } -func (c *OkbcConfig) GetIavlFSCacheSize() int64 { +func (c *BRCZeroConfig) GetIavlFSCacheSize() int64 { return c.iavlFSCacheSize } -func (c *OkbcConfig) SetIavlFSCacheSize(value int64) { +func (c *BRCZeroConfig) SetIavlFSCacheSize(value int64) { c.iavlFSCacheSize = value } -func (c *OkbcConfig) GetCommitGapHeight() int64 { +func (c *BRCZeroConfig) GetCommitGapHeight() int64 { return atomic.LoadInt64(&c.commitGapHeight) } -func (c *OkbcConfig) SetCommitGapHeight(value int64) { +func (c *BRCZeroConfig) SetCommitGapHeight(value int64) { if IsPruningOptionNothing() { // pruning nothing the gap should 1 value = 1 } @@ -1084,43 +1084,43 @@ func IsPruningOptionNothing() bool { return false } -func (c *OkbcConfig) GetActiveVC() bool { +func (c *BRCZeroConfig) GetActiveVC() bool { return c.activeVC } -func (c *OkbcConfig) SetActiveVC(value bool) { +func (c *BRCZeroConfig) SetActiveVC(value bool) { c.activeVC = value consensus.SetActiveVC(value) } -func (c *OkbcConfig) GetBlockPartSize() int { +func (c *BRCZeroConfig) GetBlockPartSize() int { return c.blockPartSizeBytes } -func (c *OkbcConfig) SetBlockPartSize(value int) { +func (c *BRCZeroConfig) SetBlockPartSize(value int) { c.blockPartSizeBytes = value tmtypes.UpdateBlockPartSizeBytes(value) } -func (c *OkbcConfig) GetBlockCompressType() int { +func (c *BRCZeroConfig) GetBlockCompressType() int { return c.blockCompressType } -func (c *OkbcConfig) SetBlockCompressType(value int) { +func (c *BRCZeroConfig) SetBlockCompressType(value int) { c.blockCompressType = value tmtypes.BlockCompressType = value } -func (c *OkbcConfig) GetBlockCompressFlag() int { +func (c *BRCZeroConfig) GetBlockCompressFlag() int { return c.blockCompressFlag } -func (c *OkbcConfig) SetBlockCompressFlag(value int) { +func (c *BRCZeroConfig) SetBlockCompressFlag(value int) { c.blockCompressFlag = value tmtypes.BlockCompressFlag = value } -func (c *OkbcConfig) GetGcInterval() int { +func (c *BRCZeroConfig) GetGcInterval() int { return c.gcInterval } -func (c *OkbcConfig) SetGcInterval(value int) { +func (c *BRCZeroConfig) SetGcInterval(value int) { // close gc for debug if value > 0 { debug.SetGCPercent(-1) @@ -1131,48 +1131,48 @@ func (c *OkbcConfig) SetGcInterval(value int) { } -func (c *OkbcConfig) GetCommitGapOffset() int64 { +func (c *BRCZeroConfig) GetCommitGapOffset() int64 { return c.commitGapOffset } -func (c *OkbcConfig) SetCommitGapOffset(value int64) { +func (c *BRCZeroConfig) SetCommitGapOffset(value int64) { if value < 0 { value = 0 } c.commitGapOffset = value } -func (c *OkbcConfig) GetEnableHasBlockPartMsg() bool { +func (c *BRCZeroConfig) GetEnableHasBlockPartMsg() bool { return c.enableHasBlockPartMsg } -func (c *OkbcConfig) SetEnableHasBlockPartMsg(value bool) { +func (c *BRCZeroConfig) SetEnableHasBlockPartMsg(value bool) { c.enableHasBlockPartMsg = value } -func (c *OkbcConfig) GetIavlAcNoBatch() bool { +func (c *BRCZeroConfig) GetIavlAcNoBatch() bool { return c.iavlAcNoBatch } -func (c *OkbcConfig) SetIavlAcNoBatch(value bool) { +func (c *BRCZeroConfig) SetIavlAcNoBatch(value bool) { c.iavlAcNoBatch = value } -func (c *OkbcConfig) SetMaxSubscriptionClients(v int) { +func (c *BRCZeroConfig) SetMaxSubscriptionClients(v int) { if v < 0 { v = 0 } c.maxSubscriptionClients = v } -func (c *OkbcConfig) GetMaxSubscriptionClients() int { +func (c *BRCZeroConfig) GetMaxSubscriptionClients() int { return c.maxSubscriptionClients } -func (c *OkbcConfig) SetPendingPoolBlacklist(v string) { +func (c *BRCZeroConfig) SetPendingPoolBlacklist(v string) { c.pendingPoolBlacklist = v } -func (c *OkbcConfig) GetPendingPoolBlacklist() string { +func (c *BRCZeroConfig) GetPendingPoolBlacklist() string { return c.pendingPoolBlacklist } diff --git a/app/config/config_test.go b/app/config/config_test.go index f5e1b9962..2e16540ec 100644 --- a/app/config/config_test.go +++ b/app/config/config_test.go @@ -3,18 +3,18 @@ package config import ( "testing" - iavlconfig "github.com/okx/okbchain/libs/iavl/config" + iavlconfig "github.com/okx/brczero/libs/iavl/config" "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - tm "github.com/okx/okbchain/libs/tendermint/config" + "github.com/okx/brczero/libs/cosmos-sdk/server" + tm "github.com/okx/brczero/libs/tendermint/config" ) func TestConfig(t *testing.T) { - c := GetOkbcConfig() + c := GetBRCZeroConfig() tm.SetDynamicConfig(c) require.Equal(t, 0, tm.DynamicConfig.GetMempoolSize()) diff --git a/app/config/local.go b/app/config/local.go index a852ea70b..5002606c3 100644 --- a/app/config/local.go +++ b/app/config/local.go @@ -6,7 +6,8 @@ import ( "path/filepath" "github.com/fsnotify/fsnotify" - "github.com/okx/okbchain/libs/tendermint/libs/log" + + "github.com/okx/brczero/libs/tendermint/libs/log" ) const ( @@ -16,13 +17,13 @@ const ( type LocalClient struct { path string dir string - okbcConf *OkbcConfig + okbcConf *BRCZeroConfig logger log.Logger watcher *fsnotify.Watcher close chan struct{} } -func NewLocalClient(path string, okbcConf *OkbcConfig, logger log.Logger) (*LocalClient, error) { +func NewLocalClient(path string, okbcConf *BRCZeroConfig, logger log.Logger) (*LocalClient, error) { if logger == nil { logger = log.NewNopLogger() } diff --git a/app/config/pprof.go b/app/config/pprof.go index faa8d9344..0d3e609a3 100644 --- a/app/config/pprof.go +++ b/app/config/pprof.go @@ -1,14 +1,14 @@ package config import ( - "github.com/okx/okbchain/libs/system/trace" + "github.com/okx/brczero/libs/system/trace" "path" - "github.com/okx/okbchain/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/server" "github.com/mosn/holmes" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/libs/cli" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" "github.com/spf13/viper" ) diff --git a/app/crypto/ethkeystore/keystore.go b/app/crypto/ethkeystore/keystore.go index 3b6d0e4a7..f20c1820d 100644 --- a/app/crypto/ethkeystore/keystore.go +++ b/app/crypto/ethkeystore/keystore.go @@ -13,12 +13,12 @@ import ( "github.com/ethereum/go-ethereum/common" ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/google/uuid" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/app/crypto/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/mintkey" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/hd" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/mintkey" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" ) // CreateKeystoreByTmKey create a eth keystore by accountname from keybase diff --git a/app/crypto/ethkeystore/keystore_test.go b/app/crypto/ethkeystore/keystore_test.go index 835cb62d5..2347fe68f 100644 --- a/app/crypto/ethkeystore/keystore_test.go +++ b/app/crypto/ethkeystore/keystore_test.go @@ -3,12 +3,12 @@ package ethkeystore import ( "testing" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/app/crypto/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - tmamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/hd" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + tmamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" "github.com/stretchr/testify/require" ) diff --git a/app/crypto/ethsecp256k1/codec.go b/app/crypto/ethsecp256k1/codec.go index 1be10a90f..29cc1e612 100644 --- a/app/crypto/ethsecp256k1/codec.go +++ b/app/crypto/ethsecp256k1/codec.go @@ -1,10 +1,10 @@ package ethsecp256k1 import ( - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" ) // CryptoCodec is the default amino codec used by ethermint diff --git a/app/crypto/ethsecp256k1/ethsecp256k1.go b/app/crypto/ethsecp256k1/ethsecp256k1.go index e8e88cd5b..7512b296a 100644 --- a/app/crypto/ethsecp256k1/ethsecp256k1.go +++ b/app/crypto/ethsecp256k1/ethsecp256k1.go @@ -8,7 +8,7 @@ import ( ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto/secp256k1" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" ) const ( diff --git a/app/crypto/ethsecp256k1/ethsecp256k1_test.go b/app/crypto/ethsecp256k1/ethsecp256k1_test.go index 5b5a13b8f..26b561f44 100644 --- a/app/crypto/ethsecp256k1/ethsecp256k1_test.go +++ b/app/crypto/ethsecp256k1/ethsecp256k1_test.go @@ -8,7 +8,7 @@ import ( ethcrypto "github.com/ethereum/go-ethereum/crypto" ethsecp256k1 "github.com/ethereum/go-ethereum/crypto/secp256k1" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" ) func TestPrivKeyPrivKey(t *testing.T) { diff --git a/app/crypto/hd/algorithm.go b/app/crypto/hd/algorithm.go index d597d2f39..a88304868 100644 --- a/app/crypto/hd/algorithm.go +++ b/app/crypto/hd/algorithm.go @@ -10,11 +10,11 @@ import ( ethaccounts "github.com/ethereum/go-ethereum/accounts" ethcrypto "github.com/ethereum/go-ethereum/crypto" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/ethsecp256k1" ) const ( diff --git a/app/crypto/hd/algorithm_test.go b/app/crypto/hd/algorithm_test.go index 734497645..bb6a31fd5 100644 --- a/app/crypto/hd/algorithm_test.go +++ b/app/crypto/hd/algorithm_test.go @@ -11,12 +11,12 @@ import ( hdwallet "github.com/miguelmota/go-ethereum-hdwallet" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + "github.com/okx/brczero/libs/cosmos-sdk/tests" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" ) func TestEthermintKeygenFunc(t *testing.T) { diff --git a/app/elapse_info.go b/app/elapse_info.go index 5dab641b7..fb2e5f8ac 100644 --- a/app/elapse_info.go +++ b/app/elapse_info.go @@ -5,8 +5,8 @@ import ( "strings" "sync" - "github.com/okx/okbchain/libs/system/trace" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/system/trace" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/spf13/viper" ) diff --git a/app/engine.go b/app/engine.go index 599b879b4..95abde2ec 100644 --- a/app/engine.go +++ b/app/engine.go @@ -1,7 +1,7 @@ package app import ( - "github.com/okx/okbchain/x/common/monitor" + "github.com/okx/brczero/x/common/monitor" ) var ( diff --git a/app/export.go b/app/export.go index c3a866725..3dbf3deab 100644 --- a/app/export.go +++ b/app/export.go @@ -4,17 +4,17 @@ import ( "encoding/json" "log" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing" - "github.com/okx/okbchain/x/staking" - "github.com/okx/okbchain/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/slashing" + "github.com/okx/brczero/x/staking" + "github.com/okx/brczero/x/staking/exported" - ethcdc "github.com/okx/okbchain/app/codec" + ethcdc "github.com/okx/brczero/app/codec" ) // NewDefaultGenesisState generates the default state for the application. @@ -25,7 +25,7 @@ func NewDefaultGenesisState() simapp.GenesisState { // ExportAppStateAndValidators exports the state of the application for a genesis // file. -func (app *OKBChainApp) ExportAppStateAndValidators( +func (app *BRCZeroApp) ExportAppStateAndValidators( forZeroHeight bool, jailWhiteList []string, ) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error) { @@ -53,7 +53,7 @@ func (app *OKBChainApp) ExportAppStateAndValidators( // NOTE zero height genesis is a temporary feature which will be deprecated // // in favour of export at a block height -func (app *OKBChainApp) prepForZeroHeightGenesis(ctx sdk.Context, jailWhiteList []string) { +func (app *BRCZeroApp) prepForZeroHeightGenesis(ctx sdk.Context, jailWhiteList []string) { applyWhiteList := false //Check if there is a whitelist diff --git a/app/innertx_test.go b/app/innertx_test.go index ce00967e9..c570a6cbd 100644 --- a/app/innertx_test.go +++ b/app/innertx_test.go @@ -7,24 +7,24 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - distr "github.com/okx/okbchain/x/distribution" - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/evm" - evm_types "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/staking" - staking_keeper "github.com/okx/okbchain/x/staking/keeper" - staking_types "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + distr "github.com/okx/brczero/x/distribution" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/evm" + evm_types "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/staking" + staking_keeper "github.com/okx/brczero/x/staking/keeper" + staking_types "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/suite" ) @@ -47,7 +47,7 @@ type InnerTxTestSuite struct { suite.Suite ctx sdk.Context - app *OKBChainApp + app *BRCZeroApp stateDB *evm_types.CommitStateDB codec *codec.Codec diff --git a/app/logevents/provider.go b/app/logevents/provider.go index f873f5191..80af24bfd 100644 --- a/app/logevents/provider.go +++ b/app/logevents/provider.go @@ -1,10 +1,10 @@ package logevents import ( - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/system" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/system" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/viper" "sync" "time" diff --git a/app/logevents/subscriber.go b/app/logevents/subscriber.go index ac8f66c9c..122686e40 100644 --- a/app/logevents/subscriber.go +++ b/app/logevents/subscriber.go @@ -2,7 +2,7 @@ package logevents import ( "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "os" "time" ) diff --git a/app/node_mode.go b/app/node_mode.go index dadeb179f..c58799f69 100644 --- a/app/node_mode.go +++ b/app/node_mode.go @@ -6,21 +6,21 @@ import ( "sort" "strings" - "github.com/okx/okbchain/app/config" - appconfig "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/app/rpc/backend" - "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - store "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/types/innertx" - "github.com/okx/okbchain/libs/system" - abcitypes "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/mempool" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/app/config" + appconfig "github.com/okx/brczero/app/config" + "github.com/okx/brczero/app/rpc/backend" + "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/server" + store "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/types/innertx" + "github.com/okx/brczero/libs/system" + abcitypes "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/mempool" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" "github.com/spf13/viper" ) diff --git a/app/refund/refund.go b/app/refund/refund.go index 9ba8a1914..e90770863 100644 --- a/app/refund/refund.go +++ b/app/refund/refund.go @@ -4,16 +4,16 @@ import ( "math/big" "sync" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/innertx" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/innertx" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) func NewGasRefundHandler(ak auth.AccountKeeper, sk types.SupplyKeeper, ik innertx.InnerTxKeeper) sdk.GasRefundHandler { diff --git a/app/repair_state.go b/app/repair_state.go index f3931c2ae..963cf5711 100644 --- a/app/repair_state.go +++ b/app/repair_state.go @@ -8,34 +8,35 @@ import ( "strings" "time" - "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/app/utils/appstatus" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/store/flatkv" - mpttypes "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/iavl" - "github.com/okx/okbchain/libs/system" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/global" - tmlog "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/mock" - "github.com/okx/okbchain/libs/tendermint/node" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - blockindex "github.com/okx/okbchain/libs/tendermint/state/indexer" - blockindexer "github.com/okx/okbchain/libs/tendermint/state/indexer/block/kv" - bloxkindexnull "github.com/okx/okbchain/libs/tendermint/state/indexer/block/null" - "github.com/okx/okbchain/libs/tendermint/state/txindex" - "github.com/okx/okbchain/libs/tendermint/state/txindex/kv" - "github.com/okx/okbchain/libs/tendermint/state/txindex/null" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - evmtypes "github.com/okx/okbchain/x/evm/types" "github.com/spf13/viper" + + "github.com/okx/brczero/app/config" + "github.com/okx/brczero/app/utils/appstatus" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/store/flatkv" + mpttypes "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/iavl" + "github.com/okx/brczero/libs/system" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/global" + tmlog "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/mock" + "github.com/okx/brczero/libs/tendermint/node" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + blockindex "github.com/okx/brczero/libs/tendermint/state/indexer" + blockindexer "github.com/okx/brczero/libs/tendermint/state/indexer/block/kv" + bloxkindexnull "github.com/okx/brczero/libs/tendermint/state/indexer/block/null" + "github.com/okx/brczero/libs/tendermint/state/txindex" + "github.com/okx/brczero/libs/tendermint/state/txindex/kv" + "github.com/okx/brczero/libs/tendermint/state/txindex/null" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + evmtypes "github.com/okx/brczero/x/evm/types" ) const ( @@ -51,7 +52,7 @@ const ( type repairApp struct { db dbm.DB - *OKBChainApp + *BRCZeroApp } func (app *repairApp) getLatestVersion() int64 { @@ -174,7 +175,7 @@ func createRepairApp(ctx *server.Context) (proxy.AppConns, *repairApp, error) { } func newRepairApp(logger tmlog.Logger, db dbm.DB, traceStore io.Writer) *repairApp { - return &repairApp{db, NewOKBChainApp( + return &repairApp{db, NewBRCZeroApp( logger, db, traceStore, diff --git a/app/rpc/apis.go b/app/rpc/apis.go index e6f4013d1..4e71fd1c6 100644 --- a/app/rpc/apis.go +++ b/app/rpc/apis.go @@ -4,24 +4,24 @@ import ( "strings" "github.com/ethereum/go-ethereum/rpc" - "github.com/okx/okbchain/app/rpc/namespaces/eth/txpool" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/tendermint/libs/log" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app/rpc/namespaces/eth/txpool" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/tendermint/libs/log" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/spf13/viper" "golang.org/x/time/rate" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/app/rpc/backend" - "github.com/okx/okbchain/app/rpc/namespaces/debug" - "github.com/okx/okbchain/app/rpc/namespaces/eth" - "github.com/okx/okbchain/app/rpc/namespaces/eth/filters" - "github.com/okx/okbchain/app/rpc/namespaces/net" - "github.com/okx/okbchain/app/rpc/namespaces/personal" - "github.com/okx/okbchain/app/rpc/namespaces/web3" - rpctypes "github.com/okx/okbchain/app/rpc/types" - cosmost "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/rpc/backend" + "github.com/okx/brczero/app/rpc/namespaces/debug" + "github.com/okx/brczero/app/rpc/namespaces/eth" + "github.com/okx/brczero/app/rpc/namespaces/eth/filters" + "github.com/okx/brczero/app/rpc/namespaces/net" + "github.com/okx/brczero/app/rpc/namespaces/personal" + "github.com/okx/brczero/app/rpc/namespaces/web3" + rpctypes "github.com/okx/brczero/app/rpc/types" + cosmost "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) // RPC namespaces and API version diff --git a/app/rpc/backend/backend.go b/app/rpc/backend/backend.go index a82e6d3fc..ca5cf5541 100644 --- a/app/rpc/backend/backend.go +++ b/app/rpc/backend/backend.go @@ -6,34 +6,34 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/tendermint/global" + "github.com/okx/brczero/libs/tendermint/global" lru "github.com/hashicorp/golang-lru" - coretypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + coretypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" "github.com/spf13/viper" "golang.org/x/time/rate" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/evm/watcher" - rpctypes "github.com/okx/okbchain/app/rpc/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + rpctypes "github.com/okx/brczero/app/rpc/types" + evmtypes "github.com/okx/brczero/x/evm/types" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/bitutil" "github.com/ethereum/go-ethereum/core/bloombits" ethtypes "github.com/ethereum/go-ethereum/core/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) const ( diff --git a/app/rpc/backend/cache.go b/app/rpc/backend/cache.go index 892bd8447..fd7b15b9e 100644 --- a/app/rpc/backend/cache.go +++ b/app/rpc/backend/cache.go @@ -2,8 +2,8 @@ package backend import ( "github.com/ethereum/go-ethereum/common" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" ) type Cache interface { diff --git a/app/rpc/backend/cache_lru.go b/app/rpc/backend/cache_lru.go index 10724a7f7..8a6785b11 100644 --- a/app/rpc/backend/cache_lru.go +++ b/app/rpc/backend/cache_lru.go @@ -3,11 +3,11 @@ package backend import ( "errors" - evmtypes "github.com/okx/okbchain/x/evm/types" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/ethereum/go-ethereum/common" lru "github.com/hashicorp/golang-lru" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/x/evm/watcher" "github.com/spf13/viper" ) diff --git a/app/rpc/backend/cache_lru_test.go b/app/rpc/backend/cache_lru_test.go index 67530f4fd..2dce315f4 100644 --- a/app/rpc/backend/cache_lru_test.go +++ b/app/rpc/backend/cache_lru_test.go @@ -3,11 +3,11 @@ package backend import ( "testing" - evmtypes "github.com/okx/okbchain/x/evm/types" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/x/evm/watcher" "github.com/spf13/viper" "github.com/stretchr/testify/require" ) diff --git a/app/rpc/cmd.go b/app/rpc/cmd.go index 8e92400ec..679ac510a 100644 --- a/app/rpc/cmd.go +++ b/app/rpc/cmd.go @@ -1,10 +1,10 @@ package rpc import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/lcd" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/spf13/cobra" ) diff --git a/app/rpc/config.go b/app/rpc/config.go index bb8162c81..bd7f054a7 100644 --- a/app/rpc/config.go +++ b/app/rpc/config.go @@ -7,18 +7,18 @@ import ( "strings" "github.com/ethereum/go-ethereum/rpc" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/app/crypto/hd" - "github.com/okx/okbchain/app/rpc/nacos" - "github.com/okx/okbchain/app/rpc/pendingtx" - "github.com/okx/okbchain/app/rpc/websockets" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" - "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - cmserver "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/hd" + "github.com/okx/brczero/app/rpc/nacos" + "github.com/okx/brczero/app/rpc/pendingtx" + "github.com/okx/brczero/app/rpc/websockets" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/client/lcd" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + cmserver "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/spf13/viper" ) diff --git a/app/rpc/monitor/monitor.go b/app/rpc/monitor/monitor.go index 2672ccb8d..36e5d5686 100644 --- a/app/rpc/monitor/monitor.go +++ b/app/rpc/monitor/monitor.go @@ -6,7 +6,7 @@ import ( "github.com/go-kit/kit/metrics" "github.com/go-kit/kit/metrics/prometheus" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" stdprometheus "github.com/prometheus/client_golang/prometheus" ) diff --git a/app/rpc/nacos/start.go b/app/rpc/nacos/start.go index 80b1155f3..c16b513bf 100644 --- a/app/rpc/nacos/start.go +++ b/app/rpc/nacos/start.go @@ -10,7 +10,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/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // StartNacosClient start nacos client and register rest service in nacos diff --git a/app/rpc/namespaces/debug/api.go b/app/rpc/namespaces/debug/api.go index 0013dcf1f..ea51992a5 100644 --- a/app/rpc/namespaces/debug/api.go +++ b/app/rpc/namespaces/debug/api.go @@ -4,17 +4,17 @@ import ( "encoding/json" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/spf13/viper" "github.com/ethereum/go-ethereum/common" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/app/rpc/backend" - "github.com/okx/okbchain/app/rpc/monitor" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/app/rpc/backend" + "github.com/okx/brczero/app/rpc/monitor" + "github.com/okx/brczero/libs/tendermint/libs/log" - evmtypes "github.com/okx/okbchain/x/evm/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) const ( diff --git a/app/rpc/namespaces/eth/api.go b/app/rpc/namespaces/eth/api.go index 85aafb71a..6908320ca 100644 --- a/app/rpc/namespaces/eth/api.go +++ b/app/rpc/namespaces/eth/api.go @@ -12,7 +12,7 @@ import ( "sync" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/accounts/keystore" @@ -24,38 +24,38 @@ import ( lru "github.com/hashicorp/golang-lru" "github.com/spf13/viper" - appconfig "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/libs/tendermint/mempool" - - "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/app/crypto/hd" - "github.com/okx/okbchain/app/rpc/backend" - "github.com/okx/okbchain/app/rpc/monitor" - "github.com/okx/okbchain/app/rpc/namespaces/eth/simulation" - rpctypes "github.com/okx/okbchain/app/rpc/types" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/app/utils" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - cmserver "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authclient "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/global" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/erc20" - "github.com/okx/okbchain/x/evm" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" - "github.com/okx/okbchain/x/vmbridge" + appconfig "github.com/okx/brczero/app/config" + "github.com/okx/brczero/libs/tendermint/mempool" + + "github.com/okx/brczero/app/config" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/hd" + "github.com/okx/brczero/app/rpc/backend" + "github.com/okx/brczero/app/rpc/monitor" + "github.com/okx/brczero/app/rpc/namespaces/eth/simulation" + rpctypes "github.com/okx/brczero/app/rpc/types" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/app/utils" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + cmserver "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authclient "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/global" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/erc20" + "github.com/okx/brczero/x/evm" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" + "github.com/okx/brczero/x/vmbridge" ) const ( @@ -267,7 +267,7 @@ func (api *PublicEthereumAPI) GasPrice() *hexutil.Big { maxGP := new(big.Int).Mul(minGP, big.NewInt(5000)) rgp := new(big.Int).Set(minGP) - if appconfig.GetOkbcConfig().GetDynamicGpMode() != tmtypes.MinimalGpMode { + if appconfig.GetBRCZeroConfig().GetDynamicGpMode() != tmtypes.MinimalGpMode { // If current block is not congested, rgp == minimal gas price. if mempool.IsCongested { rgp.Set(mempool.GlobalRecommendedGP) @@ -277,8 +277,8 @@ func (api *PublicEthereumAPI) GasPrice() *hexutil.Big { rgp.Set(minGP) } - if appconfig.GetOkbcConfig().GetDynamicGpCoefficient() > 1 { - coefficient := big.NewInt(int64(appconfig.GetOkbcConfig().GetDynamicGpCoefficient())) + if appconfig.GetBRCZeroConfig().GetDynamicGpCoefficient() > 1 { + coefficient := big.NewInt(int64(appconfig.GetBRCZeroConfig().GetDynamicGpCoefficient())) rgp = new(big.Int).Mul(rgp, coefficient) } @@ -298,7 +298,7 @@ func (api *PublicEthereumAPI) GasPriceIn3Gears() *rpctypes.GPIn3Gears { maxGP := new(big.Int).Mul(minGP, big.NewInt(5000)) avgGP := new(big.Int).Set(minGP) - if appconfig.GetOkbcConfig().GetDynamicGpMode() != tmtypes.MinimalGpMode { + if appconfig.GetBRCZeroConfig().GetDynamicGpMode() != tmtypes.MinimalGpMode { if mempool.IsCongested { avgGP.Set(mempool.GlobalRecommendedGP) } @@ -307,8 +307,8 @@ func (api *PublicEthereumAPI) GasPriceIn3Gears() *rpctypes.GPIn3Gears { avgGP.Set(minGP) } - if appconfig.GetOkbcConfig().GetDynamicGpCoefficient() > 1 { - coefficient := big.NewInt(int64(appconfig.GetOkbcConfig().GetDynamicGpCoefficient())) + if appconfig.GetBRCZeroConfig().GetDynamicGpCoefficient() > 1 { + coefficient := big.NewInt(int64(appconfig.GetBRCZeroConfig().GetDynamicGpCoefficient())) avgGP = new(big.Int).Mul(avgGP, coefficient) } @@ -1116,7 +1116,7 @@ func (api *PublicEthereumAPI) EstimateGas(args rpctypes.CallArgs) (hexutil.Uint6 return hexutil.Uint64(estimatedGas), nil } - gasBuffer := estimatedGas / 100 * config.GetOkbcConfig().GetGasLimitBuffer() + gasBuffer := estimatedGas / 100 * config.GetBRCZeroConfig().GetGasLimitBuffer() //EvmHookGasEstimate: evm tx with cosmos hook,we cannot estimate hook gas //simple add EvmHookGasEstimate,run tx will refund the extra gas gas := estimatedGas + gasBuffer + EvmHookGasEstimate diff --git a/app/rpc/namespaces/eth/api_multi.go b/app/rpc/namespaces/eth/api_multi.go index 98f919729..e739853f8 100644 --- a/app/rpc/namespaces/eth/api_multi.go +++ b/app/rpc/namespaces/eth/api_multi.go @@ -5,16 +5,16 @@ import ( "fmt" "math/big" - "github.com/okx/okbchain/app/rpc/monitor" - rpctypes "github.com/okx/okbchain/app/rpc/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" - "github.com/okx/okbchain/x/token" + "github.com/okx/brczero/app/rpc/monitor" + rpctypes "github.com/okx/brczero/app/rpc/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" + "github.com/okx/brczero/x/token" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" diff --git a/app/rpc/namespaces/eth/filters/api.go b/app/rpc/namespaces/eth/filters/api.go index bdab23189..71625f2ce 100644 --- a/app/rpc/namespaces/eth/filters/api.go +++ b/app/rpc/namespaces/eth/filters/api.go @@ -14,13 +14,13 @@ import ( "github.com/ethereum/go-ethereum/rpc" "github.com/spf13/viper" - "github.com/okx/okbchain/app/rpc/monitor" - rpctypes "github.com/okx/okbchain/app/rpc/types" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/tendermint/libs/log" - coretypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app/rpc/monitor" + rpctypes "github.com/okx/brczero/app/rpc/types" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/tendermint/libs/log" + coretypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + evmtypes "github.com/okx/brczero/x/evm/types" "golang.org/x/time/rate" ) diff --git a/app/rpc/namespaces/eth/filters/filter_system.go b/app/rpc/namespaces/eth/filters/filter_system.go index 7a182c2f1..c3c890093 100644 --- a/app/rpc/namespaces/eth/filters/filter_system.go +++ b/app/rpc/namespaces/eth/filters/filter_system.go @@ -6,11 +6,11 @@ import ( "sync" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - tmquery "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - coretypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + tmquery "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + coretypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/viper" "github.com/ethereum/go-ethereum/common" @@ -18,10 +18,10 @@ import ( "github.com/ethereum/go-ethereum/eth/filters" "github.com/ethereum/go-ethereum/rpc" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - rpctypes "github.com/okx/okbchain/app/rpc/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + rpctypes "github.com/okx/brczero/app/rpc/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) var ( diff --git a/app/rpc/namespaces/eth/filters/filters.go b/app/rpc/namespaces/eth/filters/filters.go index f5619e0ef..b5f194194 100644 --- a/app/rpc/namespaces/eth/filters/filters.go +++ b/app/rpc/namespaces/eth/filters/filters.go @@ -5,14 +5,14 @@ import ( "fmt" "math/big" - "github.com/okx/okbchain/app/rpc/backend" + "github.com/okx/brczero/app/rpc/backend" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/bloombits" ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/eth/filters" - rpctypes "github.com/okx/okbchain/app/rpc/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + rpctypes "github.com/okx/brczero/app/rpc/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/viper" ) diff --git a/app/rpc/namespaces/eth/filters/subscription.go b/app/rpc/namespaces/eth/filters/subscription.go index fde8f340d..8f9c3c1fb 100644 --- a/app/rpc/namespaces/eth/filters/subscription.go +++ b/app/rpc/namespaces/eth/filters/subscription.go @@ -7,7 +7,7 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/eth/filters" "github.com/ethereum/go-ethereum/rpc" - coretypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + coretypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" ) // Subscription defines a wrapper for the private subscription diff --git a/app/rpc/namespaces/eth/simulation/evm.go b/app/rpc/namespaces/eth/simulation/evm.go index 1e433a948..db6866301 100644 --- a/app/rpc/namespaces/eth/simulation/evm.go +++ b/app/rpc/namespaces/eth/simulation/evm.go @@ -5,16 +5,16 @@ import ( "time" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmlog "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/evm" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmlog "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/evm" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" ) type EvmFactory struct { diff --git a/app/rpc/namespaces/eth/simulation/impl.go b/app/rpc/namespaces/eth/simulation/impl.go index 0b62713d8..aa085edaf 100644 --- a/app/rpc/namespaces/eth/simulation/impl.go +++ b/app/rpc/namespaces/eth/simulation/impl.go @@ -8,23 +8,23 @@ 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/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - store "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - distr "github.com/okx/okbchain/x/distribution" - "github.com/okx/okbchain/x/evm" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/staking" - "github.com/okx/okbchain/x/token" + "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + store "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + distr "github.com/okx/brczero/x/distribution" + "github.com/okx/brczero/x/evm" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/staking" + "github.com/okx/brczero/x/token" ) type QueryOnChainProxy interface { diff --git a/app/rpc/namespaces/eth/tx_pool.go b/app/rpc/namespaces/eth/tx_pool.go index 66cf35428..cbf601407 100644 --- a/app/rpc/namespaces/eth/tx_pool.go +++ b/app/rpc/namespaces/eth/tx_pool.go @@ -9,17 +9,17 @@ import ( "time" "github.com/ethereum/go-ethereum/common" - rpctypes "github.com/okx/okbchain/app/rpc/types" - ethermint "github.com/okx/okbchain/app/types" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - authclient "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/types" - tmdb "github.com/okx/okbchain/libs/tm-db" - evmtypes "github.com/okx/okbchain/x/evm/types" + rpctypes "github.com/okx/brczero/app/rpc/types" + ethermint "github.com/okx/brczero/app/types" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + authclient "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/types" + tmdb "github.com/okx/brczero/libs/tm-db" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/spf13/viper" ) diff --git a/app/rpc/namespaces/eth/txpool/api.go b/app/rpc/namespaces/eth/txpool/api.go index 344404f47..94f435031 100644 --- a/app/rpc/namespaces/eth/txpool/api.go +++ b/app/rpc/namespaces/eth/txpool/api.go @@ -4,11 +4,11 @@ import ( "fmt" "github.com/ethereum/go-ethereum/common/hexutil" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/x/evm/watcher" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/x/evm/watcher" - "github.com/okx/okbchain/app/rpc/backend" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/app/rpc/backend" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // PublicTxPoolAPI offers and API for the transaction pool. It only operates on data that is non confidential. diff --git a/app/rpc/namespaces/eth/utils.go b/app/rpc/namespaces/eth/utils.go index a7d211910..c8bcd01ff 100644 --- a/app/rpc/namespaces/eth/utils.go +++ b/app/rpc/namespaces/eth/utils.go @@ -13,17 +13,17 @@ import ( ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/spf13/viper" - ethermint "github.com/okx/okbchain/app/types" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerror "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/token" - wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" - wasmtypes "github.com/okx/okbchain/x/wasm/types" + ethermint "github.com/okx/brczero/app/types" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerror "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/token" + wasmkeeper "github.com/okx/brczero/x/wasm/keeper" + wasmtypes "github.com/okx/brczero/x/wasm/types" ) const ( diff --git a/app/rpc/namespaces/eth/utils_test.go b/app/rpc/namespaces/eth/utils_test.go index a76d8aac3..9a1ea6904 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/okx/okbchain/x/evm/types" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/stretchr/testify/require" ) diff --git a/app/rpc/namespaces/eth/wasm.go b/app/rpc/namespaces/eth/wasm.go index ab32885db..e41f56f9f 100644 --- a/app/rpc/namespaces/eth/wasm.go +++ b/app/rpc/namespaces/eth/wasm.go @@ -7,16 +7,16 @@ import ( "encoding/json" "fmt" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/x/wasm/ioutils" + "github.com/okx/brczero/x/wasm/ioutils" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/x/evm" - evmtypes "github.com/okx/okbchain/x/evm/types" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/x/evm" + evmtypes "github.com/okx/brczero/x/evm/types" - wasmtypes "github.com/okx/okbchain/x/wasm/types" + wasmtypes "github.com/okx/brczero/x/wasm/types" "github.com/ethereum/go-ethereum/common/hexutil" - rpctypes "github.com/okx/okbchain/app/rpc/types" + rpctypes "github.com/okx/brczero/app/rpc/types" ) const ( diff --git a/app/rpc/namespaces/net/api.go b/app/rpc/namespaces/net/api.go index 5872c4426..811ad4d26 100644 --- a/app/rpc/namespaces/net/api.go +++ b/app/rpc/namespaces/net/api.go @@ -3,11 +3,11 @@ package net import ( "fmt" - "github.com/okx/okbchain/app/rpc/monitor" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/tendermint/libs/log" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" + "github.com/okx/brczero/app/rpc/monitor" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/tendermint/libs/log" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" "github.com/spf13/viper" ) diff --git a/app/rpc/namespaces/personal/api.go b/app/rpc/namespaces/personal/api.go index fd6dcb3b9..9cf0af00c 100644 --- a/app/rpc/namespaces/personal/api.go +++ b/app/rpc/namespaces/personal/api.go @@ -4,29 +4,29 @@ import ( "bytes" "context" "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "os" "time" "github.com/spf13/viper" "github.com/google/uuid" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/mintkey" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/mintkey" "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/crypto/ethkeystore" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/app/crypto/hd" - "github.com/okx/okbchain/app/rpc/namespaces/eth" - rpctypes "github.com/okx/okbchain/app/rpc/types" - "github.com/okx/okbchain/libs/cosmos-sdk/server" + "github.com/okx/brczero/app/crypto/ethkeystore" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/hd" + "github.com/okx/brczero/app/rpc/namespaces/eth" + rpctypes "github.com/okx/brczero/app/rpc/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" ) // PrivateAccountAPI is the personal_ prefixed set of APIs in the Web3 JSON-RPC spec. diff --git a/app/rpc/namespaces/web3/api.go b/app/rpc/namespaces/web3/api.go index 9bbe86458..f99215a28 100644 --- a/app/rpc/namespaces/web3/api.go +++ b/app/rpc/namespaces/web3/api.go @@ -5,9 +5,9 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/rpc/monitor" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/app/rpc/monitor" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/spf13/viper" ) diff --git a/app/rpc/pendingtx/watcher.go b/app/rpc/pendingtx/watcher.go index e3ed05bb7..ca592b3ce 100644 --- a/app/rpc/pendingtx/watcher.go +++ b/app/rpc/pendingtx/watcher.go @@ -7,12 +7,12 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" - rpcfilters "github.com/okx/okbchain/app/rpc/namespaces/eth/filters" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/tendermint/libs/log" - coretypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + rpcfilters "github.com/okx/brczero/app/rpc/namespaces/eth/filters" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/tendermint/libs/log" + coretypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) type Watcher struct { diff --git a/app/rpc/simulator/handler.go b/app/rpc/simulator/handler.go index b9669e465..d1f234393 100644 --- a/app/rpc/simulator/handler.go +++ b/app/rpc/simulator/handler.go @@ -1,7 +1,7 @@ package simulator import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type Simulator interface { diff --git a/app/rpc/tests/mock_client.go b/app/rpc/tests/mock_client.go index 35aab1223..4572eef08 100644 --- a/app/rpc/tests/mock_client.go +++ b/app/rpc/tests/mock_client.go @@ -7,33 +7,33 @@ import ( "net/http" "time" - blockindexer "github.com/okx/okbchain/libs/tendermint/state/indexer/block/kv" - - "github.com/okx/okbchain/libs/tendermint/global" - - apptesting "github.com/okx/okbchain/libs/ibc-go/testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmcfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - "github.com/okx/okbchain/libs/tendermint/mempool" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - "github.com/okx/okbchain/libs/tendermint/rpc/client/mock" - rpccore "github.com/okx/okbchain/libs/tendermint/rpc/core" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpcserver "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" - sm "github.com/okx/okbchain/libs/tendermint/state" - tmstate "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/state/txindex" - "github.com/okx/okbchain/libs/tendermint/state/txindex/kv" - "github.com/okx/okbchain/libs/tendermint/state/txindex/null" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + blockindexer "github.com/okx/brczero/libs/tendermint/state/indexer/block/kv" + + "github.com/okx/brczero/libs/tendermint/global" + + apptesting "github.com/okx/brczero/libs/ibc-go/testing" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmcfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + "github.com/okx/brczero/libs/tendermint/mempool" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/rpc/client" + "github.com/okx/brczero/libs/tendermint/rpc/client/mock" + rpccore "github.com/okx/brczero/libs/tendermint/rpc/core" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpcserver "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" + sm "github.com/okx/brczero/libs/tendermint/state" + tmstate "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/state/txindex" + "github.com/okx/brczero/libs/tendermint/state/txindex/kv" + "github.com/okx/brczero/libs/tendermint/state/txindex/null" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/tendermint/go-amino" ) diff --git a/app/rpc/tests/rpc_test.go b/app/rpc/tests/rpc_test.go index 1a0be7c79..e4f7bff27 100644 --- a/app/rpc/tests/rpc_test.go +++ b/app/rpc/tests/rpc_test.go @@ -29,23 +29,23 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/app/rpc/backend" - cosmos_context "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - cmserver "github.com/okx/okbchain/libs/cosmos-sdk/server" - cosmost "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/watcher" - - "github.com/okx/okbchain/app/rpc" - "github.com/okx/okbchain/app/rpc/types" - apptesting "github.com/okx/okbchain/libs/ibc-go/testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/app/config" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/rpc/backend" + cosmos_context "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + cmserver "github.com/okx/brczero/libs/cosmos-sdk/server" + cosmost "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/watcher" + + "github.com/okx/brczero/app/rpc" + "github.com/okx/brczero/app/rpc/types" + apptesting "github.com/okx/brczero/libs/ibc-go/testing" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/libs/log" ) const ( @@ -95,16 +95,16 @@ func (suite *RPCTestSuite) SetupTest() { viper.Set(rpc.FlagDebugAPI, true) viper.Set(cmserver.FlagPruning, cosmost.PruningOptionNothing) viper.Set("tx_index.indexer", "kv") - // set okbchaincli path - cliDir, err := ioutil.TempDir("", ".okbchaincli") + // set brczerocli path + cliDir, err := ioutil.TempDir("", ".brczerocli") if err != nil { panic(err) } defer os.RemoveAll(cliDir) viper.Set(cmserver.FlagUlockKeyHome, cliDir) - // set okbchaind path - serverDir, err := ioutil.TempDir("", ".okbchaind") + // set brczerod path + serverDir, err := ioutil.TempDir("", ".brczerod") if err != nil { panic(err) } diff --git a/app/rpc/tests/test.sh b/app/rpc/tests/test.sh index dca1f0bac..82948ac69 100755 --- a/app/rpc/tests/test.sh +++ b/app/rpc/tests/test.sh @@ -26,19 +26,19 @@ cd ../../../ make install cd ./app/rpc/tests -okbchaincli config keyring-backend test --home $HOME_CLI +brczerocli config keyring-backend test --home $HOME_CLI # Set up config for CLI -okbchaincli config chain-id $CHAINID --home $HOME_CLI -okbchaincli config output json --home $HOME_CLI -okbchaincli config indent true --home $HOME_CLI -okbchaincli config trust-node true --home $HOME_CLI +brczerocli config chain-id $CHAINID --home $HOME_CLI +brczerocli config output json --home $HOME_CLI +brczerocli config indent true --home $HOME_CLI +brczerocli config trust-node true --home $HOME_CLI # if $KEY exists it should be deleted -okbchaincli keys add $KEY1 --recover -m "plunge silk glide glass curve cycle snack garbage obscure express decade dirt" --home $HOME_CLI -okbchaincli keys add $KEY2 --recover -m "lazy cupboard wealth canoe pumpkin gasp play dash antenna monitor material village" --home $HOME_CLI +brczerocli keys add $KEY1 --recover -m "plunge silk glide glass curve cycle snack garbage obscure express decade dirt" --home $HOME_CLI +brczerocli keys add $KEY2 --recover -m "lazy cupboard wealth canoe pumpkin gasp play dash antenna monitor material village" --home $HOME_CLI # Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer) -okbchaind init $MONIKER --chain-id $CHAINID --home $HOME_SERVER +brczerod init $MONIKER --chain-id $CHAINID --home $HOME_SERVER # Change parameter token denominations to okb cat $HOME_SERVER/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="okb"' >$HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json @@ -51,21 +51,21 @@ sed -i "" 's/"enable_call": false/"enable_call": true/' $HOME_SERVER/config/gene sed -i "" 's/"enable_create": false/"enable_create": true/' $HOME_SERVER/config/genesis.json # Allocate genesis accounts (cosmos formatted addresses) -okbchaind add-genesis-account $(okbchaincli keys show $KEY1 -a --home $HOME_CLI) 1000000000okb --home $HOME_SERVER -okbchaind add-genesis-account $(okbchaincli keys show $KEY2 -a --home $HOME_CLI) 1000000000okb --home $HOME_SERVER +brczerod add-genesis-account $(brczerocli keys show $KEY1 -a --home $HOME_CLI) 1000000000okb --home $HOME_SERVER +brczerod add-genesis-account $(brczerocli keys show $KEY2 -a --home $HOME_CLI) 1000000000okb --home $HOME_SERVER ## Sign genesis transaction -okbchaind gentx --name $KEY1 --keyring-backend test --home $HOME_SERVER --home-client $HOME_CLI +brczerod gentx --name $KEY1 --keyring-backend test --home $HOME_SERVER --home-client $HOME_CLI # Collect genesis tx -okbchaind collect-gentxs --home $HOME_SERVER +brczerod collect-gentxs --home $HOME_SERVER # Run this to ensure everything worked and that the genesis file is setup correctly -okbchaind validate-genesis --home $HOME_SERVER +brczerod validate-genesis --home $HOME_SERVER LOG_LEVEL=main:info,state:info,distr:debug,auth:info,mint:debug,farm:debug # Start the node (remove the --pruning=nothing flag if historical queries are not needed) # start node with web3 rest -okbchaind start \ +brczerod start \ --pruning=nothing \ --rpc.unsafe \ --rest.laddr tcp://0.0.0.0:8545 \ diff --git a/app/rpc/tests/tests-pending/rpc_pending_test.go b/app/rpc/tests/tests-pending/rpc_pending_test.go index 36b261344..a84ce5596 100644 --- a/app/rpc/tests/tests-pending/rpc_pending_test.go +++ b/app/rpc/tests/tests-pending/rpc_pending_test.go @@ -19,22 +19,23 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" gorpc "github.com/ethereum/go-ethereum/rpc" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/app/rpc" - "github.com/okx/okbchain/app/rpc/backend" - util "github.com/okx/okbchain/app/rpc/tests" - cosmos_context "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - cmserver "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - apptesting "github.com/okx/okbchain/libs/ibc-go/testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/evm/watcher" "github.com/spf13/viper" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/rpc" + "github.com/okx/brczero/app/rpc/backend" + util "github.com/okx/brczero/app/rpc/tests" + cosmos_context "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + cmserver "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + apptesting "github.com/okx/brczero/libs/ibc-go/testing" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/evm/watcher" ) const ( @@ -101,17 +102,17 @@ func commitBlock(suite *RPCPendingTestSuite) { mck.CommitBlock() } func (suite *RPCPendingTestSuite) SetupTest() { - // set okbchaincli path + // set brczerocli path viper.Set("tx_index.indexer", "kv") - cliDir, err := ioutil.TempDir("", ".okbchaincli") + cliDir, err := ioutil.TempDir("", ".brczerocli") if err != nil { panic(err) } defer os.RemoveAll(cliDir) viper.Set(cmserver.FlagUlockKeyHome, cliDir) - // set okbchaind path - serverDir, err := ioutil.TempDir("", ".okbchaind") + // set brczerod path + serverDir, err := ioutil.TempDir("", ".brczerod") if err != nil { panic(err) } diff --git a/app/rpc/tests/utils_test.go b/app/rpc/tests/utils_test.go index 48496f003..efa97e5b8 100644 --- a/app/rpc/tests/utils_test.go +++ b/app/rpc/tests/utils_test.go @@ -13,12 +13,12 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/app/crypto/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/hd" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/x/evm/watcher" "github.com/stretchr/testify/require" ) diff --git a/app/rpc/types/types.go b/app/rpc/types/types.go index 5262b778c..9df222159 100644 --- a/app/rpc/types/types.go +++ b/app/rpc/types/types.go @@ -9,7 +9,7 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" - watcher "github.com/okx/okbchain/x/evm/watcher" + watcher "github.com/okx/brczero/x/evm/watcher" ) // Copied the Account and StorageResult types since they are registered under an diff --git a/app/rpc/types/utils.go b/app/rpc/types/utils.go index 348895245..138084e04 100644 --- a/app/rpc/types/utils.go +++ b/app/rpc/types/utils.go @@ -11,17 +11,17 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" ) var ( diff --git a/app/rpc/websockets/pubsub_api.go b/app/rpc/websockets/pubsub_api.go index a498a7c87..f895eeb05 100644 --- a/app/rpc/websockets/pubsub_api.go +++ b/app/rpc/websockets/pubsub_api.go @@ -4,20 +4,20 @@ import ( "fmt" "sync" - "github.com/okx/okbchain/libs/tendermint/libs/log" - coretypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/libs/tendermint/libs/log" + coretypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/evm/watcher" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/eth/filters" "github.com/ethereum/go-ethereum/rpc" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" - rpcfilters "github.com/okx/okbchain/app/rpc/namespaces/eth/filters" - rpctypes "github.com/okx/okbchain/app/rpc/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + rpcfilters "github.com/okx/brczero/app/rpc/namespaces/eth/filters" + rpctypes "github.com/okx/brczero/app/rpc/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) // PubSubAPI is the eth_ prefixed set of APIs in the Web3 JSON-RPC spec diff --git a/app/rpc/websockets/server.go b/app/rpc/websockets/server.go index 381c066db..90a6edf15 100644 --- a/app/rpc/websockets/server.go +++ b/app/rpc/websockets/server.go @@ -15,10 +15,10 @@ import ( "github.com/go-kit/kit/metrics/prometheus" "github.com/gorilla/mux" "github.com/gorilla/websocket" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/common/monitor" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/common/monitor" stdprometheus "github.com/prometheus/client_golang/prometheus" "github.com/spf13/viper" ) diff --git a/app/rpc/websockets/types.go b/app/rpc/websockets/types.go index 22cfe30b6..a717917bd 100644 --- a/app/rpc/websockets/types.go +++ b/app/rpc/websockets/types.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/rpc" - rpcfilters "github.com/okx/okbchain/app/rpc/namespaces/eth/filters" + rpcfilters "github.com/okx/brczero/app/rpc/namespaces/eth/filters" ) type SubscriptionResponseJSON struct { diff --git a/app/simulation_test.go b/app/simulation_test.go index cf269c23e..e27b6a60d 100644 --- a/app/simulation_test.go +++ b/app/simulation_test.go @@ -3,36 +3,37 @@ package app import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/x/wasm" - wasmtypes "github.com/okx/okbchain/x/wasm/types" "math/rand" "os" "testing" "time" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/x/wasm" + wasmtypes "github.com/okx/brczero/x/wasm/types" + "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/staking" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/staking" ) func init() { @@ -69,7 +70,7 @@ func TestFullAppSimulation(t *testing.T) { require.NoError(t, os.RemoveAll(dir)) }() - app := NewOKBChainApp(logger, db, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) + app := NewBRCZeroApp(logger, db, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) require.Equal(t, appName, app.Name()) // run randomized simulation @@ -101,7 +102,7 @@ func TestAppImportExport(t *testing.T) { require.NoError(t, os.RemoveAll(dir)) }() - app := NewOKBChainApp(logger, db, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) + app := NewBRCZeroApp(logger, db, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) require.Equal(t, appName, app.Name()) // Run randomized simulation @@ -136,7 +137,7 @@ func TestAppImportExport(t *testing.T) { require.NoError(t, os.RemoveAll(newDir)) }() - newApp := NewOKBChainApp(log.NewNopLogger(), newDB, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) + newApp := NewBRCZeroApp(log.NewNopLogger(), newDB, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) require.Equal(t, appName, newApp.Name()) var genesisState map[string]json.RawMessage @@ -177,7 +178,7 @@ func TestAppImportExport(t *testing.T) { dropContractHistory(ctxA.KVStore(app.keys[wasm.StoreKey]), prefixes...) dropContractHistory(ctxB.KVStore(newApp.keys[wasm.StoreKey]), prefixes...) - normalizeContractInfo := func(ctx sdk.Context, app *OKBChainApp) { + normalizeContractInfo := func(ctx sdk.Context, app *BRCZeroApp) { var index uint64 app.WasmKeeper.IterateContractInfo(ctx, func(address sdk.WasmAddress, info wasmtypes.ContractInfo) bool { created := &wasmtypes.AbsoluteTxPosition{ @@ -218,7 +219,7 @@ func TestAppSimulationAfterImport(t *testing.T) { require.NoError(t, os.RemoveAll(dir)) }() - app := NewOKBChainApp(logger, db, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) + app := NewBRCZeroApp(logger, db, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) require.Equal(t, appName, app.Name()) // Run randomized simulation @@ -258,7 +259,7 @@ func TestAppSimulationAfterImport(t *testing.T) { require.NoError(t, os.RemoveAll(newDir)) }() - newApp := NewOKBChainApp(log.NewNopLogger(), newDB, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) + newApp := NewBRCZeroApp(log.NewNopLogger(), newDB, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, fauxMerkleModeOpt) require.Equal(t, appName, newApp.Name()) newApp.InitChain(abci.RequestInitChain{ @@ -300,7 +301,7 @@ func TestAppStateDeterminism(t *testing.T) { db := dbm.NewMemDB() - app := NewOKBChainApp(logger, db, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, interBlockCacheOpt()) + app := NewBRCZeroApp(logger, db, nil, true, map[int64]bool{}, simapp.FlagPeriodValue, interBlockCacheOpt()) fmt.Printf( "running non-determinism simulation; seed %d: attempt: %d/%d\n", diff --git a/app/start_from_snapshot.go b/app/start_from_snapshot.go index 660f84e04..c0b6146a0 100644 --- a/app/start_from_snapshot.go +++ b/app/start_from_snapshot.go @@ -5,8 +5,8 @@ import ( "bytes" "fmt" "github.com/klauspost/pgzip" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/libs/log" "io" "io/ioutil" "net/url" diff --git a/app/test_helpers.go b/app/test_helpers.go index bf9628aac..f8d9d0552 100644 --- a/app/test_helpers.go +++ b/app/test_helpers.go @@ -3,12 +3,12 @@ package app import ( "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) type Option func(option *SetupOption) @@ -23,12 +23,12 @@ func WithChainId(chainId string) Option { } } -// Setup initializes a new OKBChainApp. A Nop logger is set in OKBChainApp. -func Setup(isCheckTx bool, options ...Option) *OKBChainApp { +// Setup initializes a new BRCZeroApp. A Nop logger is set in BRCZeroApp. +func Setup(isCheckTx bool, options ...Option) *BRCZeroApp { viper.Set(sdk.FlagDBBackend, string(dbm.MemDBBackend)) types.DBBackend = string(dbm.MemDBBackend) db := dbm.NewMemDB() - app := NewOKBChainApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, 0) + app := NewBRCZeroApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, 0) if !isCheckTx { setupOption := &SetupOption{chainId: ""} diff --git a/app/types/account.go b/app/types/account.go index eb174ed14..d6c116bee 100644 --- a/app/types/account.go +++ b/app/types/account.go @@ -11,11 +11,11 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" ethcrypto "github.com/ethereum/go-ethereum/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" "github.com/tendermint/go-amino" ) diff --git a/app/types/account_test.go b/app/types/account_test.go index 509572c22..80d722bb2 100644 --- a/app/types/account_test.go +++ b/app/types/account_test.go @@ -8,17 +8,17 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/crypto/sr25519" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/sr25519" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/app/types/address_test.go b/app/types/address_test.go index b8e09e93b..f50acc355 100644 --- a/app/types/address_test.go +++ b/app/types/address_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/app/types/chain_id.go b/app/types/chain_id.go index 037d5cc88..bcaccf44a 100644 --- a/app/types/chain_id.go +++ b/app/types/chain_id.go @@ -2,13 +2,14 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/system" "math/big" "regexp" "strings" "sync" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/system" + + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/app/types/codec.go b/app/types/codec.go index e7512cd2e..0a8995cf3 100644 --- a/app/types/codec.go +++ b/app/types/codec.go @@ -2,9 +2,9 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" "github.com/tendermint/go-amino" ) diff --git a/app/types/coin.go b/app/types/coin.go index f14b3c7a5..1d36c56c6 100644 --- a/app/types/coin.go +++ b/app/types/coin.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/app/types/config.go b/app/types/config.go index ab1200248..d45039de8 100644 --- a/app/types/config.go +++ b/app/types/config.go @@ -2,7 +2,7 @@ package types import ( ethaccounts "github.com/ethereum/go-ethereum/accounts" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/app/types/config_test.go b/app/types/config_test.go index cf446f95d..8e90b285c 100644 --- a/app/types/config_test.go +++ b/app/types/config_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func resetConfig(config *sdk.Config) { diff --git a/app/types/errors.go b/app/types/errors.go index cf2aa50ab..805dbb86e 100644 --- a/app/types/errors.go +++ b/app/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/app/utils/appstatus/fast_storage.go b/app/utils/appstatus/fast_storage.go index a14f74f5e..1ec7ae7e8 100644 --- a/app/utils/appstatus/fast_storage.go +++ b/app/utils/appstatus/fast_storage.go @@ -5,26 +5,26 @@ import ( "math" "path/filepath" - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - "github.com/okx/okbchain/libs/iavl" - ibctransfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - ibchost "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - dbm "github.com/okx/okbchain/libs/tm-db" - distr "github.com/okx/okbchain/x/distribution" - "github.com/okx/okbchain/x/erc20" - "github.com/okx/okbchain/x/evidence" - "github.com/okx/okbchain/x/feesplit" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/slashing" - staking "github.com/okx/okbchain/x/staking/types" - token "github.com/okx/okbchain/x/token/types" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + "github.com/okx/brczero/libs/iavl" + ibctransfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + ibchost "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + dbm "github.com/okx/brczero/libs/tm-db" + distr "github.com/okx/brczero/x/distribution" + "github.com/okx/brczero/x/erc20" + "github.com/okx/brczero/x/evidence" + "github.com/okx/brczero/x/feesplit" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/slashing" + staking "github.com/okx/brczero/x/staking/types" + token "github.com/okx/brczero/x/token/types" "github.com/spf13/viper" ) diff --git a/app/utils/sanity/start.go b/app/utils/sanity/start.go index e33c5857a..2b38ec87a 100644 --- a/app/utils/sanity/start.go +++ b/app/utils/sanity/start.go @@ -3,15 +3,15 @@ package sanity import ( "github.com/spf13/viper" - "github.com/okx/okbchain/app/config" - apptype "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - cosmost "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/evm/watcher" - "github.com/okx/okbchain/x/infura" + "github.com/okx/brczero/app/config" + apptype "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + cosmost "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/evm/watcher" + "github.com/okx/brczero/x/infura" ) // CheckStart check start command's flags. if user set conflict flags return error. diff --git a/app/utils/sanity/start_test.go b/app/utils/sanity/start_test.go index c5ca58efd..e93e36061 100644 --- a/app/utils/sanity/start_test.go +++ b/app/utils/sanity/start_test.go @@ -1,14 +1,14 @@ package sanity import ( - apptype "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/state" - sm "github.com/okx/okbchain/libs/tendermint/state" - ttypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/evm/watcher" + apptype "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/state" + sm "github.com/okx/brczero/libs/tendermint/state" + ttypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/evm/watcher" "github.com/spf13/cobra" "testing" ) diff --git a/benchmarks/app_test.go b/benchmarks/app_test.go index f74ad5356..601ad7c32 100644 --- a/benchmarks/app_test.go +++ b/benchmarks/app_test.go @@ -5,34 +5,36 @@ import ( "encoding/hex" "encoding/json" "errors" - "github.com/okx/okbchain/libs/system" "math/big" "strconv" "strings" "testing" "time" + "github.com/okx/brczero/libs/system" + ethcmn "github.com/ethereum/go-ethereum/common" ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" - "github.com/okx/okbchain/app" - types3 "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/global" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - types2 "github.com/okx/okbchain/x/evm/types" - wasmtypes "github.com/okx/okbchain/x/wasm/types" "github.com/stretchr/testify/require" + + "github.com/okx/brczero/app" + types3 "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/global" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + types2 "github.com/okx/brczero/x/evm/types" + wasmtypes "github.com/okx/brczero/x/wasm/types" ) func TestTxSending(t *testing.T) { @@ -95,7 +97,7 @@ func TestCw20TxSending(t *testing.T) { type AppInfo struct { height int64 - App *app.OKBChainApp + App *app.BRCZeroApp evmMintKey *ecdsa.PrivateKey evmMintAddr sdk.AccAddress MinterKey crypto.PrivKey @@ -161,17 +163,17 @@ func InitializeOKXApp(b testing.TB, db dbm.DB, numAccounts int) AppInfo { return info } -func setup(db dbm.DB, withGenesis bool, invCheckPeriod uint) (*app.OKBChainApp, simapp.GenesisState) { - okxApp := app.NewOKBChainApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, invCheckPeriod) +func setup(db dbm.DB, withGenesis bool, invCheckPeriod uint) (*app.BRCZeroApp, simapp.GenesisState) { + okxApp := app.NewBRCZeroApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, invCheckPeriod) if withGenesis { return okxApp, app.NewDefaultGenesisState() } return okxApp, simapp.GenesisState{} } -// SetupWithGenesisAccounts initializes a new OKBChainApp with the provided genesis +// SetupWithGenesisAccounts initializes a new BRCZeroApp with the provided genesis // accounts and possible balances. -func SetupWithGenesisAccounts(b testing.TB, db dbm.DB, genAccs []authexported.GenesisAccount) *app.OKBChainApp { +func SetupWithGenesisAccounts(b testing.TB, db dbm.DB, genAccs []authexported.GenesisAccount) *app.BRCZeroApp { okxApp, genesisState := setup(db, true, 0) authGenesis := authtypes.NewGenesisState(authtypes.DefaultParams(), genAccs) appCodec := okxApp.Codec() diff --git a/benchmarks/bench_test.go b/benchmarks/bench_test.go index d10e1f450..cc866bd75 100644 --- a/benchmarks/bench_test.go +++ b/benchmarks/bench_test.go @@ -3,21 +3,21 @@ package benchmarks import ( "encoding/hex" "encoding/json" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "math/big" "os" "testing" "time" "github.com/ethereum/go-ethereum/rlp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - evmtypes "github.com/okx/okbchain/x/evm/types" - token "github.com/okx/okbchain/x/token/types" - wasmtypes "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + evmtypes "github.com/okx/brczero/x/evm/types" + token "github.com/okx/brczero/x/token/types" + wasmtypes "github.com/okx/brczero/x/wasm/types" "github.com/stretchr/testify/require" "github.com/syndtr/goleveldb/leveldb/opt" ) diff --git a/cmd/okbchaincli/main.go b/cmd/brczerocli/main.go similarity index 74% rename from cmd/okbchaincli/main.go rename to cmd/brczerocli/main.go index 6b296ae84..11ef8e128 100644 --- a/cmd/okbchaincli/main.go +++ b/cmd/brczerocli/main.go @@ -2,36 +2,38 @@ package main import ( "fmt" - "github.com/okx/okbchain/libs/system" - - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/codec" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - chain "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/cmd/client" - sdkclient "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - clientkeys "github.com/okx/okbchain/libs/cosmos-sdk/client/keys" - clientrpc "github.com/okx/okbchain/libs/cosmos-sdk/client/rpc" - sdkcodec "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authcmd "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - tmamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - evmtypes "github.com/okx/okbchain/x/evm/types" - tokencmd "github.com/okx/okbchain/x/token/client/cli" + + "github.com/okx/brczero/libs/system" + + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/spf13/cobra" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/codec" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + chain "github.com/okx/brczero/app/types" + "github.com/okx/brczero/cmd/client" + sdkclient "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + clientkeys "github.com/okx/brczero/libs/cosmos-sdk/client/keys" + clientrpc "github.com/okx/brczero/libs/cosmos-sdk/client/rpc" + sdkcodec "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authcmd "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + tmamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/libs/cli" + evmtypes "github.com/okx/brczero/x/evm/types" + tokencmd "github.com/okx/brczero/x/token/client/cli" ) var ( @@ -57,8 +59,8 @@ func main() { config.Seal() rootCmd := &cobra.Command{ - Use: "okbchaincli", - Short: "Command line interface for interacting with okbchaind", + Use: "brczerocli", + Short: "Command line interface for interacting with brczerod", } // Add --chain-id to persistent flags and mark it required diff --git a/cmd/okbchaind/base/account.go b/cmd/brczerod/base/account.go similarity index 90% rename from cmd/okbchaind/base/account.go rename to cmd/brczerod/base/account.go index 11e190119..452c8b952 100644 --- a/cmd/okbchaind/base/account.go +++ b/cmd/brczerod/base/account.go @@ -3,8 +3,8 @@ package base import ( "fmt" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" "github.com/status-im/keycard-go/hexutils" ) diff --git a/cmd/okbchaind/base/db.go b/cmd/brczerod/base/db.go similarity index 94% rename from cmd/okbchaind/base/db.go rename to cmd/brczerod/base/db.go index 73956dc84..196c3099a 100644 --- a/cmd/okbchaind/base/db.go +++ b/cmd/brczerod/base/db.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) const ( diff --git a/cmd/okbchaind/data.go b/cmd/brczerod/data.go similarity index 91% rename from cmd/okbchaind/data.go rename to cmd/brczerod/data.go index 044cb7f6b..1f9826939 100644 --- a/cmd/okbchaind/data.go +++ b/cmd/brczerod/data.go @@ -3,10 +3,6 @@ package main import ( "encoding/binary" "fmt" - ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/state/pruner" - "github.com/okx/okbchain/cmd/okbchaind/base" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" "io/ioutil" "log" "os" @@ -16,36 +12,43 @@ import ( "sync" "time" - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - cmstore "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - "github.com/okx/okbchain/libs/system" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/node" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + ethcmn "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/state/pruner" + + "github.com/okx/brczero/cmd/brczerod/base" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/syndtr/goleveldb/leveldb/util" - distr "github.com/okx/okbchain/x/distribution" - "github.com/okx/okbchain/x/evidence" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/slashing" - "github.com/okx/okbchain/x/staking" - "github.com/okx/okbchain/x/token" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/server" + cmstore "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + "github.com/okx/brczero/libs/system" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/node" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + + distr "github.com/okx/brczero/x/distribution" + "github.com/okx/brczero/x/evidence" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/slashing" + "github.com/okx/brczero/x/staking" + "github.com/okx/brczero/x/token" ) const ( @@ -316,7 +319,7 @@ func getPruneBlockParams(blockStoreDB dbm.DB) (baseHeight, retainHeight int64) { func getPruneAppParams(appDB dbm.DB) (retainHeight int64) { rootmulti.IgPruneHeightsLen = true - + rs := initAppStore(appDB) latestV := rs.GetLatestVersion() diff --git a/cmd/okbchaind/data_rocksdb.go b/cmd/brczerod/data_rocksdb.go similarity index 95% rename from cmd/okbchaind/data_rocksdb.go rename to cmd/brczerod/data_rocksdb.go index f96a68726..9bc3bbd53 100644 --- a/cmd/okbchaind/data_rocksdb.go +++ b/cmd/brczerod/data_rocksdb.go @@ -7,7 +7,7 @@ import ( "log" "github.com/cosmos/gorocksdb" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) func init() { diff --git a/cmd/okbchaind/data_rocksdb_no.go b/cmd/brczerod/data_rocksdb_no.go similarity index 100% rename from cmd/okbchaind/data_rocksdb_no.go rename to cmd/brczerod/data_rocksdb_no.go diff --git a/cmd/okbchaind/display_state.go b/cmd/brczerod/display_state.go similarity index 90% rename from cmd/okbchaind/display_state.go rename to cmd/brczerod/display_state.go index e94716c89..708f79c58 100644 --- a/cmd/okbchaind/display_state.go +++ b/cmd/brczerod/display_state.go @@ -6,13 +6,14 @@ import ( "path/filepath" ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" "github.com/spf13/cobra" "github.com/spf13/viper" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) const ( @@ -111,7 +112,7 @@ func displayContractState(ctx *server.Context) { }) } -func newDisplayApp(ctx *server.Context) *app.OKBChainApp { +func newDisplayApp(ctx *server.Context) *app.BRCZeroApp { rootDir := ctx.Config.RootDir dataDir := filepath.Join(rootDir, "data") db, err := sdk.NewDB(applicationDB, dataDir) @@ -119,7 +120,7 @@ func newDisplayApp(ctx *server.Context) *app.OKBChainApp { panic("fail to open application db: " + err.Error()) } - return app.NewOKBChainApp( + return app.NewBRCZeroApp( ctx.Logger, db, nil, diff --git a/cmd/okbchaind/export_app.go b/cmd/brczerod/export_app.go similarity index 78% rename from cmd/okbchaind/export_app.go rename to cmd/brczerod/export_app.go index 1daf53d6a..f93153bb1 100644 --- a/cmd/okbchaind/export_app.go +++ b/cmd/brczerod/export_app.go @@ -4,11 +4,12 @@ import ( "log" "path/filepath" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" "github.com/spf13/cobra" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) func exportAppCmd(ctx *server.Context) *cobra.Command { @@ -39,11 +40,11 @@ func export(ctx *server.Context) { } } -func createApp(ctx *server.Context, dataPath string) *app.OKBChainApp { +func createApp(ctx *server.Context, dataPath string) *app.BRCZeroApp { rootDir := ctx.Config.RootDir dataDir := filepath.Join(rootDir, dataPath) db, err := sdk.NewDB(applicationDB, dataDir) panicError(err) exapp := newApp(ctx.Logger, db, nil) - return exapp.(*app.OKBChainApp) + return exapp.(*app.BRCZeroApp) } diff --git a/cmd/okbchaind/fss/create.go b/cmd/brczerod/fss/create.go similarity index 86% rename from cmd/okbchaind/fss/create.go rename to cmd/brczerod/fss/create.go index 168448613..068862a4f 100644 --- a/cmd/okbchaind/fss/create.go +++ b/cmd/brczerod/fss/create.go @@ -2,17 +2,19 @@ package fss import ( "fmt" - "github.com/okx/okbchain/cmd/okbchaind/mpt" "log" "path/filepath" - "github.com/okx/okbchain/app/utils/appstatus" - "github.com/okx/okbchain/cmd/okbchaind/base" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/iavl" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/cmd/brczerod/mpt" + "github.com/spf13/cobra" "github.com/spf13/viper" + + "github.com/okx/brczero/app/utils/appstatus" + "github.com/okx/brczero/cmd/brczerod/base" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/iavl" + dbm "github.com/okx/brczero/libs/tm-db" ) // createCmd represents the create command diff --git a/cmd/okbchaind/fss/fss.go b/cmd/brczerod/fss/fss.go similarity index 77% rename from cmd/okbchaind/fss/fss.go rename to cmd/brczerod/fss/fss.go index 53bed0df8..77e04b6f6 100644 --- a/cmd/okbchaind/fss/fss.go +++ b/cmd/brczerod/fss/fss.go @@ -1,10 +1,10 @@ package fss import ( - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/iavl" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/iavl" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/cobra" ) diff --git a/cmd/okbchaind/genaccounts.go b/cmd/brczerod/genaccounts.go similarity index 89% rename from cmd/okbchaind/genaccounts.go rename to cmd/brczerod/genaccounts.go index 2cf4a2a24..6ea44c3b4 100644 --- a/cmd/okbchaind/genaccounts.go +++ b/cmd/brczerod/genaccounts.go @@ -10,18 +10,18 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/crypto/hd" - chain "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authvesting "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/vesting" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - "github.com/okx/okbchain/x/genutil" + "github.com/okx/brczero/app/crypto/hd" + chain "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authvesting "github.com/okx/brczero/libs/cosmos-sdk/x/auth/vesting" + "github.com/okx/brczero/libs/tendermint/libs/cli" + "github.com/okx/brczero/x/genutil" ) const ( diff --git a/cmd/okbchaind/iaviewer.go b/cmd/brczerod/iaviewer.go similarity index 96% rename from cmd/okbchaind/iaviewer.go rename to cmd/brczerod/iaviewer.go index eca41113d..08cdc5118 100644 --- a/cmd/okbchaind/iaviewer.go +++ b/cmd/brczerod/iaviewer.go @@ -17,28 +17,28 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/cmd/okbchaind/base" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - acctypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - distypes "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - minttypes "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - supplytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/libs/iavl" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/distribution/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/gov" - slashingtypes "github.com/okx/okbchain/x/slashing" - tokentypes "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/app" + "github.com/okx/brczero/cmd/brczerod/base" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + acctypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + distypes "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + minttypes "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + supplytypes "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/iavl" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/distribution/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/gov" + slashingtypes "github.com/okx/brczero/x/slashing" + tokentypes "github.com/okx/brczero/x/token/types" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/cmd/okbchaind/main.go b/cmd/brczerod/main.go similarity index 75% rename from cmd/okbchaind/main.go rename to cmd/brczerod/main.go index f78084eeb..e2bdfea4c 100644 --- a/cmd/okbchaind/main.go +++ b/cmd/brczerod/main.go @@ -3,45 +3,47 @@ package main import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/system" "io" "os" "strings" - "github.com/okx/okbchain/app/logevents" - "github.com/okx/okbchain/cmd/okbchaind/fss" - "github.com/okx/okbchain/cmd/okbchaind/mpt" + "github.com/okx/brczero/libs/system" + + "github.com/okx/brczero/app/logevents" + "github.com/okx/brczero/cmd/brczerod/fss" + "github.com/okx/brczero/cmd/brczerod/mpt" - "github.com/okx/okbchain/app/rpc" - evmtypes "github.com/okx/okbchain/x/evm/types" "github.com/spf13/cobra" "github.com/spf13/viper" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - clientkeys "github.com/okx/okbchain/libs/cosmos-sdk/client/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/codec" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - chain "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/cmd/client" - "github.com/okx/okbchain/x/genutil" - genutilcli "github.com/okx/okbchain/x/genutil/client/cli" - genutiltypes "github.com/okx/okbchain/x/genutil/types" - "github.com/okx/okbchain/x/staking" + "github.com/okx/brczero/app/rpc" + evmtypes "github.com/okx/brczero/x/evm/types" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + clientkeys "github.com/okx/brczero/libs/cosmos-sdk/client/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/codec" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + chain "github.com/okx/brczero/app/types" + "github.com/okx/brczero/cmd/client" + "github.com/okx/brczero/x/genutil" + genutilcli "github.com/okx/brczero/x/genutil/client/cli" + genutiltypes "github.com/okx/brczero/x/genutil/types" + "github.com/okx/brczero/x/staking" ) const flagInvCheckPeriod = "inv-check-period" @@ -144,7 +146,7 @@ func checkSetEnv(envName string, value string) { func closeApp(iApp abci.Application) { fmt.Println("Close App") - app := iApp.(*app.OKBChainApp) + app := iApp.(*app.BRCZeroApp) app.StopBaseApp() evmtypes.CloseIndexer() rpc.CloseEthBackend() @@ -157,7 +159,7 @@ func newApp(logger log.Logger, db dbm.DB, traceStore io.Writer) abci.Application panic(err) } - return app.NewOKBChainApp( + return app.NewBRCZeroApp( logger, db, traceStore, @@ -173,15 +175,15 @@ func newApp(logger log.Logger, db dbm.DB, traceStore io.Writer) abci.Application func exportAppStateAndTMValidators( logger log.Logger, db dbm.DB, traceStore io.Writer, height int64, forZeroHeight bool, jailWhiteList []string, ) (json.RawMessage, []tmtypes.GenesisValidator, error) { - var ethermintApp *app.OKBChainApp + var ethermintApp *app.BRCZeroApp if height != -1 { - ethermintApp = app.NewOKBChainApp(logger, db, traceStore, false, map[int64]bool{}, 0) + ethermintApp = app.NewBRCZeroApp(logger, db, traceStore, false, map[int64]bool{}, 0) if err := ethermintApp.LoadHeight(height); err != nil { return nil, nil, err } } else { - ethermintApp = app.NewOKBChainApp(logger, db, traceStore, true, map[int64]bool{}, 0) + ethermintApp = app.NewBRCZeroApp(logger, db, traceStore, true, map[int64]bool{}, 0) } return ethermintApp.ExportAppStateAndValidators(forZeroHeight, jailWhiteList) diff --git a/cmd/okbchaind/mpt/cmd.go b/cmd/brczerod/mpt/cmd.go similarity index 78% rename from cmd/okbchaind/mpt/cmd.go rename to cmd/brczerod/mpt/cmd.go index 2b71c6b2f..83bde9fbe 100644 --- a/cmd/okbchaind/mpt/cmd.go +++ b/cmd/brczerod/mpt/cmd.go @@ -1,9 +1,9 @@ package mpt import ( - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/cobra" ) diff --git a/cmd/okbchaind/mpt/common.go b/cmd/brczerod/mpt/common.go similarity index 84% rename from cmd/okbchaind/mpt/common.go rename to cmd/brczerod/mpt/common.go index 01c60d81a..e433e8fae 100644 --- a/cmd/okbchaind/mpt/common.go +++ b/cmd/brczerod/mpt/common.go @@ -8,16 +8,17 @@ import ( ethstate "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - iavlstore "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/iavl" - dbm "github.com/okx/okbchain/libs/tm-db" - tmdb "github.com/okx/okbchain/libs/tm-db" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/libs/cosmos-sdk/server" + iavlstore "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/iavl" + dbm "github.com/okx/brczero/libs/tm-db" + tmdb "github.com/okx/brczero/libs/tm-db" ) const ( @@ -51,9 +52,9 @@ func checkValidKey(key string) error { * Common functions about cosmos-sdk */ // newMigrationApp generates a new app with the given key and application.db -func newMigrationApp(ctx *server.Context) *app.OKBChainApp { +func newMigrationApp(ctx *server.Context) *app.BRCZeroApp { appDb := openApplicationDb(ctx.Config.RootDir) - return app.NewOKBChainApp( + return app.NewBRCZeroApp( ctx.Logger, appDb, nil, diff --git a/cmd/okbchaind/mpt/iavl2mpt.go b/cmd/brczerod/mpt/iavl2mpt.go similarity index 92% rename from cmd/okbchaind/mpt/iavl2mpt.go rename to cmd/brczerod/mpt/iavl2mpt.go index c6f772612..77eec464a 100644 --- a/cmd/okbchaind/mpt/iavl2mpt.go +++ b/cmd/brczerod/mpt/iavl2mpt.go @@ -9,11 +9,11 @@ import ( "github.com/ethereum/go-ethereum/core/rawdb" ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/trie" - apptypes "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + apptypes "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" "github.com/spf13/cobra" ) diff --git a/cmd/okbchaind/mpt/iavl_clean.go b/cmd/brczerod/mpt/iavl_clean.go similarity index 82% rename from cmd/okbchaind/mpt/iavl_clean.go rename to cmd/brczerod/mpt/iavl_clean.go index 44bccee82..0cbc46afc 100644 --- a/cmd/okbchaind/mpt/iavl_clean.go +++ b/cmd/brczerod/mpt/iavl_clean.go @@ -5,12 +5,12 @@ import ( "log" "path/filepath" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - iavlstore "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/iavl" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/server" + iavlstore "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/iavl" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/spf13/cobra" ) diff --git a/cmd/okbchaind/mpt/mpt_viewer.go b/cmd/brczerod/mpt/mpt_viewer.go similarity index 94% rename from cmd/okbchaind/mpt/mpt_viewer.go rename to cmd/brczerod/mpt/mpt_viewer.go index 87d8c9231..b89a84333 100644 --- a/cmd/okbchaind/mpt/mpt_viewer.go +++ b/cmd/brczerod/mpt/mpt_viewer.go @@ -3,18 +3,21 @@ package mpt import ( "encoding/binary" "fmt" - "github.com/okx/okbchain/cmd/okbchaind/base" "strconv" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/cmd/brczerod/base" + "log" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + ethcmn "github.com/ethereum/go-ethereum/common" ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" "github.com/spf13/cobra" + + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" ) func mptViewerCmd(ctx *server.Context) *cobra.Command { diff --git a/cmd/okbchaind/mpt/newaccount.go b/cmd/brczerod/mpt/newaccount.go similarity index 94% rename from cmd/okbchaind/mpt/newaccount.go rename to cmd/brczerod/mpt/newaccount.go index 5d2ffafcb..1a2b32324 100644 --- a/cmd/okbchaind/mpt/newaccount.go +++ b/cmd/brczerod/mpt/newaccount.go @@ -6,17 +6,19 @@ import ( "encoding/hex" "encoding/json" "fmt" + "io/ioutil" + "strconv" + ethcmn "github.com/ethereum/go-ethereum/common" ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/trie" - apptypes "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/cmd/okbchaind/base" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" "github.com/spf13/cobra" - "io/ioutil" - "strconv" + + apptypes "github.com/okx/brczero/app/types" + "github.com/okx/brczero/cmd/brczerod/base" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type TempNewAccountPretty struct { diff --git a/cmd/okbchaind/mpt/snapshot.go b/cmd/brczerod/mpt/snapshot.go similarity index 74% rename from cmd/okbchaind/mpt/snapshot.go rename to cmd/brczerod/mpt/snapshot.go index 8bdfdbca2..bcae72c09 100644 --- a/cmd/okbchaind/mpt/snapshot.go +++ b/cmd/brczerod/mpt/snapshot.go @@ -1,18 +1,20 @@ package mpt import ( - "github.com/okx/okbchain/cmd/okbchaind/base" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - tmflags "github.com/okx/okbchain/libs/tendermint/libs/cli/flags" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/spf13/cobra" stdlog "log" "os" "path/filepath" + + "github.com/spf13/cobra" + + "github.com/okx/brczero/cmd/brczerod/base" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + tmflags "github.com/okx/brczero/libs/tendermint/libs/cli/flags" + "github.com/okx/brczero/libs/tendermint/libs/log" ) func genSnapCmd(ctx *server.Context) *cobra.Command { diff --git a/cmd/okbchaind/repair_data.go b/cmd/brczerod/repair_data.go similarity index 80% rename from cmd/okbchaind/repair_data.go rename to cmd/brczerod/repair_data.go index 45da42f46..8ec0774cf 100644 --- a/cmd/okbchaind/repair_data.go +++ b/cmd/brczerod/repair_data.go @@ -9,16 +9,16 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/utils/appstatus" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/store/flatkv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmiavl "github.com/okx/okbchain/libs/iavl" - "github.com/okx/okbchain/libs/system/trace" - sm "github.com/okx/okbchain/libs/tendermint/state" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/utils/appstatus" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/store/flatkv" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmiavl "github.com/okx/brczero/libs/iavl" + "github.com/okx/brczero/libs/system/trace" + sm "github.com/okx/brczero/libs/tendermint/state" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) func repairStateCmd(ctx *server.Context) *cobra.Command { diff --git a/cmd/okbchaind/replay.go b/cmd/brczerod/replay.go similarity index 90% rename from cmd/okbchaind/replay.go rename to cmd/brczerod/replay.go index 47ce1a331..67e4d209c 100644 --- a/cmd/okbchaind/replay.go +++ b/cmd/brczerod/replay.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "github.com/okx/okbchain/libs/system" "log" "net/http" _ "net/http/pprof" @@ -12,33 +11,36 @@ import ( "runtime/pprof" "time" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/libs/system" + + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" "github.com/gogo/protobuf/jsonpb" - "github.com/okx/okbchain/app/config" - chain "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/app/utils/appstatus" - "github.com/okx/okbchain/app/utils/sanity" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/iavl" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tcmd "github.com/okx/okbchain/libs/tendermint/cmd/tendermint/commands" - "github.com/okx/okbchain/libs/tendermint/global" - "github.com/okx/okbchain/libs/tendermint/mock" - "github.com/okx/okbchain/libs/tendermint/node" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" "github.com/spf13/cobra" "github.com/spf13/viper" + + "github.com/okx/brczero/app/config" + chain "github.com/okx/brczero/app/types" + "github.com/okx/brczero/app/utils/appstatus" + "github.com/okx/brczero/app/utils/sanity" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/client/lcd" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/iavl" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tcmd "github.com/okx/brczero/libs/tendermint/cmd/tendermint/commands" + "github.com/okx/brczero/libs/tendermint/global" + "github.com/okx/brczero/libs/tendermint/mock" + "github.com/okx/brczero/libs/tendermint/node" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) const ( @@ -342,9 +344,9 @@ func doReplay(ctx *server.Context, state sm.State, stateStoreDB dbm.DB, blockSto block := originBlockStore.LoadBlock(lastBlockHeight) meta := originBlockStore.LoadBlockMeta(lastBlockHeight) blockExec := sm.NewBlockExecutor(stateStoreDB, ctx.Logger, mockApp, mock.Mempool{}, sm.MockEvidencePool{}) - config.GetOkbcConfig().SetDeliverTxsExecuteMode(0) // mockApp not support parallel tx + config.GetBRCZeroConfig().SetDeliverTxsExecuteMode(0) // mockApp not support parallel tx state, _, err = blockExec.ApplyBlockWithTrace(state, meta.BlockID, block) - config.GetOkbcConfig().SetDeliverTxsExecuteMode(viper.GetInt(sm.FlagDeliverTxsExecMode)) + config.GetBRCZeroConfig().SetDeliverTxsExecuteMode(viper.GetInt(sm.FlagDeliverTxsExecMode)) panicError(err) } diff --git a/cmd/okbchaind/rest.go b/cmd/brczerod/rest.go similarity index 65% rename from cmd/okbchaind/rest.go rename to cmd/brczerod/rest.go index 7dd2b5fc1..bb030be61 100644 --- a/cmd/okbchaind/rest.go +++ b/cmd/brczerod/rest.go @@ -1,35 +1,35 @@ package main import ( - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx" - "github.com/okx/okbchain/x/wasm/proxy" + "github.com/okx/brczero/app" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx" + "github.com/okx/brczero/x/wasm/proxy" - mintclient "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/client" - mintrest "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/client/rest" - erc20client "github.com/okx/okbchain/x/erc20/client" - erc20rest "github.com/okx/okbchain/x/erc20/client/rest" - evmclient "github.com/okx/okbchain/x/evm/client" + mintclient "github.com/okx/brczero/libs/cosmos-sdk/x/mint/client" + mintrest "github.com/okx/brczero/libs/cosmos-sdk/x/mint/client/rest" + erc20client "github.com/okx/brczero/x/erc20/client" + erc20rest "github.com/okx/brczero/x/erc20/client/rest" + evmclient "github.com/okx/brczero/x/evm/client" - "github.com/okx/okbchain/app/rpc" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authrest "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/rest" - bankrest "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/client/rest" - supplyrest "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/client/rest" - dist "github.com/okx/okbchain/x/distribution" - distr "github.com/okx/okbchain/x/distribution" - distrest "github.com/okx/okbchain/x/distribution/client/rest" - evmrest "github.com/okx/okbchain/x/evm/client/rest" - fsrest "github.com/okx/okbchain/x/feesplit/client/rest" - govrest "github.com/okx/okbchain/x/gov/client/rest" - paramsclient "github.com/okx/okbchain/x/params/client" - stakingclient "github.com/okx/okbchain/x/staking/client" - stakingrest "github.com/okx/okbchain/x/staking/client/rest" - "github.com/okx/okbchain/x/token" - tokensrest "github.com/okx/okbchain/x/token/client/rest" - wasmrest "github.com/okx/okbchain/x/wasm/client/rest" + "github.com/okx/brczero/app/rpc" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/lcd" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authrest "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/rest" + bankrest "github.com/okx/brczero/libs/cosmos-sdk/x/bank/client/rest" + supplyrest "github.com/okx/brczero/libs/cosmos-sdk/x/supply/client/rest" + dist "github.com/okx/brczero/x/distribution" + distr "github.com/okx/brczero/x/distribution" + distrest "github.com/okx/brczero/x/distribution/client/rest" + evmrest "github.com/okx/brczero/x/evm/client/rest" + fsrest "github.com/okx/brczero/x/feesplit/client/rest" + govrest "github.com/okx/brczero/x/gov/client/rest" + paramsclient "github.com/okx/brczero/x/params/client" + stakingclient "github.com/okx/brczero/x/staking/client" + stakingrest "github.com/okx/brczero/x/staking/client/rest" + "github.com/okx/brczero/x/token" + tokensrest "github.com/okx/brczero/x/token/client/rest" + wasmrest "github.com/okx/brczero/x/wasm/client/rest" ) // registerRoutes registers the routes from the different modules for the LCD. diff --git a/cmd/okbchaind/subscribe_cmd.go b/cmd/brczerod/subscribe_cmd.go similarity index 82% rename from cmd/okbchaind/subscribe_cmd.go rename to cmd/brczerod/subscribe_cmd.go index b7b11dc58..f49aec7d2 100644 --- a/cmd/okbchaind/subscribe_cmd.go +++ b/cmd/brczerod/subscribe_cmd.go @@ -2,11 +2,11 @@ package main import ( "fmt" - "github.com/okx/okbchain/app/logevents" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/app/logevents" + "github.com/okx/brczero/libs/system" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) func subscribeCmd(cdc *codec.Codec) *cobra.Command { diff --git a/cmd/client/addr.go b/cmd/client/addr.go index 032987752..21a0d21da 100644 --- a/cmd/client/addr.go +++ b/cmd/client/addr.go @@ -5,9 +5,9 @@ import ( "github.com/ethereum/go-ethereum/common" "strings" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/spf13/cobra" ) diff --git a/cmd/client/config.go b/cmd/client/config.go index f9e2b7ac3..ce8e87cc1 100644 --- a/cmd/client/config.go +++ b/cmd/client/config.go @@ -8,11 +8,11 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" - ethermint "github.com/okx/okbchain/app/types" + ethermint "github.com/okx/brczero/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 90f870696..1ff9da484 100644 --- a/cmd/client/export.go +++ b/cmd/client/export.go @@ -11,12 +11,12 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/crypto/ethkeystore" - "github.com/okx/okbchain/app/crypto/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/app/crypto/ethkeystore" + "github.com/okx/brczero/app/crypto/hd" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // UnsafeExportEthKeyCommand exports a key with the given name as a private key in hex format. @@ -84,14 +84,14 @@ func UnsafeExportEthKeyCommand() *cobra.Command { func ExportEthCompCommand() *cobra.Command { return &cobra.Command{ Use: "export-eth-comp [name] [dir]", - Short: "Export an Ethereum private keystore directory (This command has been deprecated,please use 'okbchaincli keys export-eth-keystore')", + Short: "Export an Ethereum private keystore directory (This command has been deprecated,please use 'brczerocli keys export-eth-keystore')", Hidden: true, Long: `Export an Ethereum private keystore file encrypted to use in eth client import. The parameters of scrypt encryption algorithm is StandardScryptN and StandardScryptN`, Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) error { - return fmt.Errorf("This command has been deprecated,please use 'okbchaincli keys export-eth-keystore'") + return fmt.Errorf("This command has been deprecated,please use 'brczerocli keys export-eth-keystore'") }, } } diff --git a/cmd/client/flags.go b/cmd/client/flags.go index e9a1da535..ad0fec138 100644 --- a/cmd/client/flags.go +++ b/cmd/client/flags.go @@ -3,26 +3,26 @@ package client import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/app/rpc" - "github.com/okx/okbchain/app/rpc/backend" - "github.com/okx/okbchain/app/rpc/monitor" - "github.com/okx/okbchain/app/rpc/namespaces/eth" - "github.com/okx/okbchain/app/rpc/namespaces/eth/filters" - "github.com/okx/okbchain/app/rpc/websockets" - "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/app/utils/sanity" - "github.com/okx/okbchain/libs/system/trace" - "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/libs/automation" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - tmdb "github.com/okx/okbchain/libs/tm-db" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" - "github.com/okx/okbchain/x/infura" - "github.com/okx/okbchain/x/token" - "github.com/okx/okbchain/x/wasm" + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/config" + "github.com/okx/brczero/app/rpc" + "github.com/okx/brczero/app/rpc/backend" + "github.com/okx/brczero/app/rpc/monitor" + "github.com/okx/brczero/app/rpc/namespaces/eth" + "github.com/okx/brczero/app/rpc/namespaces/eth/filters" + "github.com/okx/brczero/app/rpc/websockets" + "github.com/okx/brczero/app/types" + "github.com/okx/brczero/app/utils/sanity" + "github.com/okx/brczero/libs/system/trace" + "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/libs/automation" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + tmdb "github.com/okx/brczero/libs/tm-db" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" + "github.com/okx/brczero/x/infura" + "github.com/okx/brczero/x/token" + "github.com/okx/brczero/x/wasm" ) func RegisterAppFlag(cmd *cobra.Command) { @@ -106,7 +106,7 @@ func RegisterAppFlag(cmd *cobra.Command) { cmd.Flags().String(config.FlagPprofCoolDown, "3m", "The cool down time after every type of pprof dump") cmd.Flags().Int64(config.FlagPprofAbciElapsed, 5000, "Elapsed time of abci in millisecond for pprof dump") - cmd.Flags().Bool(config.FlagPprofUseCGroup, false, "Use cgroup when okbchaind run in docker") + cmd.Flags().Bool(config.FlagPprofUseCGroup, false, "Use cgroup when brczerod run in docker") cmd.Flags().String(tmdb.FlagGoLeveldbOpts, "", "Options of goleveldb. (cache_size=128MB,handlers_num=1024)") cmd.Flags().String(tmdb.FlagRocksdbOpts, "", "Options of rocksdb. (block_size=4KB,block_cache=1GB,statistics=true,allow_mmap_reads=true,max_open_files=-1,unordered_write=true,pipelined_write=true)") diff --git a/cmd/client/keys.go b/cmd/client/keys.go index acb0d9f54..90a6c38ee 100644 --- a/cmd/client/keys.go +++ b/cmd/client/keys.go @@ -4,18 +4,18 @@ import ( "bufio" "encoding/hex" "fmt" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p" "io" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - clientkeys "github.com/okx/okbchain/libs/cosmos-sdk/client/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + clientkeys "github.com/okx/brczero/libs/cosmos-sdk/client/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/app/crypto/hd" + "github.com/okx/brczero/app/crypto/hd" ) const ( diff --git a/cmd/client/testnet.go b/cmd/client/testnet.go index e5e2758fd..79211672e 100644 --- a/cmd/client/testnet.go +++ b/cmd/client/testnet.go @@ -12,33 +12,34 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/crypto/hd" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - clientkeys "github.com/okx/okbchain/libs/cosmos-sdk/client/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - srvconfig "github.com/okx/okbchain/libs/cosmos-sdk/server/config" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis" - genutiltypes "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - tmconfig "github.com/okx/okbchain/libs/tendermint/config" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/genutil" - "github.com/okx/okbchain/x/gov" - stakingtypes "github.com/okx/okbchain/x/staking/types" "github.com/spf13/cobra" "github.com/spf13/viper" + + "github.com/okx/brczero/app/crypto/hd" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + clientkeys "github.com/okx/brczero/libs/cosmos-sdk/client/keys" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/server" + srvconfig "github.com/okx/brczero/libs/cosmos-sdk/server/config" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis" + genutiltypes "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + tmconfig "github.com/okx/brczero/libs/tendermint/config" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/genutil" + "github.com/okx/brczero/x/gov" + stakingtypes "github.com/okx/brczero/x/staking/types" ) var ( @@ -79,7 +80,7 @@ necessary files (private validator, genesis, config, etc.). Note, strict routability for addresses is turned off in the config file.`, - Example: "okbchaind testnet --v 4 --keyring-backend test --output-dir ./output --starting-ip-address 192.168.10.2", + Example: "brczerod testnet --v 4 --keyring-backend test --output-dir ./output --starting-ip-address 192.168.10.2", RunE: func(cmd *cobra.Command, _ []string) error { config := ctx.Config @@ -108,8 +109,8 @@ Note, strict routability for addresses is turned off in the config file.`, cmd.Flags().Int(flagNumValidators, 4, "Number of validators to initialize the testnet with") cmd.Flags().StringP(flagOutputDir, "o", "./build", "Directory to store initialization data for the testnet") cmd.Flags().String(flagNodeDirPrefix, "node", "Prefix the directory name for each node with (node results in node0, node1, ...)") - cmd.Flags().String(flagNodeDaemonHome, "okbchaind", "Home directory of the node's daemon configuration") - cmd.Flags().String(flagNodeCLIHome, "okbchaincli", "Home directory of the node's cli configuration") + cmd.Flags().String(flagNodeDaemonHome, "brczerod", "Home directory of the node's daemon configuration") + cmd.Flags().String(flagNodeCLIHome, "brczerocli", "Home directory of the node's cli configuration") cmd.Flags().String(flagStartingIPAddress, "192.168.0.1", "Starting IP address (192.168.0.1 results in persistent peers list ID0@192.168.0.1:46656, ID1@192.168.0.2:46656, ...)") cmd.Flags().StringSlice(flagIPAddrs, []string{}, "List of IP addresses to use (i.e. `192.168.0.1,172.168.0.1` results in persistent peers list ID0@192.168.0.1:46656, ID1@172.168.0.1)") cmd.Flags().String(flags.FlagChainID, "", "genesis file chain-id, if left blank will be randomly created") diff --git a/dev/client/common.go b/dev/client/common.go index 2ac2e22cb..468028c9a 100644 --- a/dev/client/common.go +++ b/dev/client/common.go @@ -17,7 +17,7 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethclient" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/dev/escrow.sh b/dev/escrow.sh index fcb743579..bb18e6284 100755 --- a/dev/escrow.sh +++ b/dev/escrow.sh @@ -6,5 +6,5 @@ res=$(okbchaincli tx wasm instantiate "$code_id" '{"arbiter":"0xbbE4733d85bc2b90 contractAddr=$(echo "$res" | jq '.logs[0].events[0].attributes[0].value' | sed 's/\"//g') echo "instantiate contract..." echo $res -#okbchaincli tx send ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v $contractAddr 999okb --fees 0.01okb -y -b block +#brczerocli tx send ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v $contractAddr 999okb --fees 0.01okb -y -b block okbchaincli tx wasm execute "$contractAddr" '{"approve":{"quantity":[{"amount":"1","denom":"okb"}]}}' --amount 888okb --fees 0.001okb --from captain -b block -y diff --git a/dev/local-perf.sh b/dev/local-perf.sh index 4d5b10638..0da2efc8d 100755 --- a/dev/local-perf.sh +++ b/dev/local-perf.sh @@ -130,4 +130,4 @@ okbchaincli config keyring-backend test run -# okbchaincli tx send captain 0x83D83497431C2D3FEab296a9fba4e5FaDD2f7eD0 1okb --fees 1okb -b block -y +# brczerocli tx send captain 0x83D83497431C2D3FEab296a9fba4e5FaDD2f7eD0 1okb --fees 1okb -b block -y diff --git a/dev/snapshot.sh b/dev/snapshot.sh index 53a8ff836..7e9464939 100755 --- a/dev/snapshot.sh +++ b/dev/snapshot.sh @@ -2,7 +2,7 @@ HOME=$1 VERSION=$2 -CMD=okbchaind +CMD=brczerod NUM_EXECUTIONS=2 set -e @@ -18,7 +18,7 @@ killbyname() { } -killbyname okbchaind +killbyname brczerod killbyname okbchaincli set -x # activate debugging diff --git a/dev/start.sh b/dev/start.sh index c2bdc2f1a..ddc5a9c26 100755 --- a/dev/start.sh +++ b/dev/start.sh @@ -23,7 +23,7 @@ killbyname() { run() { LOG_LEVEL=main:info,iavl:info,*:error,state:info,provider:info #--mempool.enable_delete_min_gp_tx false \ -# okbchaind start --pruning=nothing --rpc.unsafe \ +# brczerod start --pruning=nothing --rpc.unsafe \ nohup okbchaind start --rpc.unsafe \ --local-rpc-port 26657 \ --log_level $LOG_LEVEL \ @@ -136,4 +136,4 @@ sleep 4 okbchaincli tx gov submit-proposal upgrade $CURDIR/proposals/wasm.proposal --from captain --fees 1okb -y -b block okbchaincli tx gov vote 1 yes --from captain --fees 0.01okb -y -b block -# okbchaincli tx send captain 0x83D83497431C2D3FEab296a9fba4e5FaDD2f7eD0 1okb --fees 1okb -b block -y +# brczerocli tx send captain 0x83D83497431C2D3FEab296a9fba4e5FaDD2f7eD0 1okb --fees 1okb -b block -y diff --git a/dev/testnet/addnewnode.sh b/dev/testnet/addnewnode.sh index 509a10fc4..dc3ed79a1 100755 --- a/dev/testnet/addnewnode.sh +++ b/dev/testnet/addnewnode.sh @@ -137,7 +137,7 @@ start() { seednode=$3 ((restport = INPUT_INDEX * 100 + REST_PORT)) # for evm tx -# echo "${BIN_NAME} --home ${OKCHAIN_NET_CACHE}/${NAME}/okbchaind start --p2p.laddr tcp://${IP}:${p2pport} --p2p.seeds ${seednode} --rpc.laddr tcp://${IP}:${rpcport}" +# echo "${BIN_NAME} --home ${OKCHAIN_NET_CACHE}/${NAME}/brczerod start --p2p.laddr tcp://${IP}:${p2pport} --p2p.seeds ${seednode} --rpc.laddr tcp://${IP}:${rpcport}" # LOG_LEVEL=main:info,*:error LOG_LEVEL=main:info,*:error,state:info diff --git a/dev/testnet/testnet.sh b/dev/testnet/testnet.sh index 192310338..60da64930 100755 --- a/dev/testnet/testnet.sh +++ b/dev/testnet/testnet.sh @@ -191,7 +191,7 @@ function start() { echo "======== Startup validator nodes...=========" for ((index = 1; index < ${1}; index++)); do ((p2pport = BASE_PORT_PREFIX + index * 100 + P2P_PORT_SUFFIX)) - ((rpcport = BASE_PORT_PREFIX + index * 100 + RPC_PORT_SUFFIX)) # for okbchaincli + ((rpcport = BASE_PORT_PREFIX + index * 100 + RPC_PORT_SUFFIX)) # for brczerocli ((restport = index * 100 + REST_PORT)) # for evm tx run $index false ${p2pport} ${rpcport} $restport --p2p.seeds ${seed}@${IP}:${seedp2pport} done diff --git a/dev/testnet/upgrade.sh b/dev/testnet/upgrade.sh index b56d8d4d5..8aae80122 100644 --- a/dev/testnet/upgrade.sh +++ b/dev/testnet/upgrade.sh @@ -26,7 +26,7 @@ function build_okbchain() { version=$1 (cd ../.. && git checkout dev && git pull && git checkout $version && make install) echo "okbchaind version ////" - okbchaind version + brczerod version } function get_latest_height() { @@ -131,7 +131,7 @@ function start_node() { nohup ${BIN_NAME} start \ --chain-id ${CHAIN_ID} \ - --home cache/node${index}/okbchaind \ + --home cache/node${index}/brczerod \ --p2p.laddr tcp://${IP}:${p2pport} \ --rpc.laddr tcp://${IP}:${rpcport} \ --rest.laddr tcp://${IP}:${restport} \ @@ -147,7 +147,7 @@ function start_node() { function add_val() { index=$1 node_name=val${index} - seed_addr=$(okbchaind tendermint show-node-id --home cache/node0/okbchaind)@${IP}:${seedp2pport} + seed_addr=$(brczerod tendermint show-node-id --home cache/node0/brczerod)@${IP}:${seedp2pport} echo "add val >>> "$node_name okbchaind_opts="--p2p.allow_duplicate_ip --p2p.pex=false --p2p.addr_book_strict=false --consensus.timeout_commit 600ms --upload-delta=false --elapsed DeliverTxs=0,Round=1,CommitRound=1,Produce=1 --consensus-role=v${index} --p2p.seeds ${seed_addr} " @@ -170,7 +170,7 @@ function add_rpc() { node_name=rpc${index} echo "add rpc >>> "$node_name - seed_addr=$(okbchaind tendermint show-node-id --home cache/node0/okbchaind)@${IP}:${seedp2pport} + seed_addr=$(brczerod tendermint show-node-id --home cache/node0/brczerod)@${IP}:${seedp2pport} okbchaind_opts="--p2p.seeds ${seed_addr} " start_node $index $node_name $okbchaind_opts diff --git a/dev/tx/main.go b/dev/tx/main.go index 765540e44..ed5baf469 100644 --- a/dev/tx/main.go +++ b/dev/tx/main.go @@ -12,8 +12,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/mempool" "github.com/tendermint/go-amino" ) diff --git a/dev/wasm-allcases.sh b/dev/wasm-allcases.sh index 8bd18b48f..7a05b6412 100755 --- a/dev/wasm-allcases.sh +++ b/dev/wasm-allcases.sh @@ -882,14 +882,14 @@ fi; echo "all tests passed! congratulations~" -#okbchaincli query wasm list-code --limit=5 | jq -#okbchaincli query wasm list-contract-by-code "$cw20_code_id1" | jq -#okbchaincli query wasm contract-history "$cw20contractAddr" | jq -#okbchaincli query wasm contract-state all "$cw20contractAddr" | jq -#okbchaincli query wasm contract-state raw "$cw20contractAddr" | jq +#brczerocli query wasm list-code --limit=5 | jq +#brczerocli query wasm list-contract-by-code "$cw20_code_id1" | jq +#brczerocli query wasm contract-history "$cw20contractAddr" | jq +#brczerocli query wasm contract-state all "$cw20contractAddr" | jq +#brczerocli query wasm contract-state raw "$cw20contractAddr" | jq # -#okbchaincli query wasm code-info "$cw20_code_id1" | jq -#okbchaincli query wasm contract "$cw20contractAddr" | jq +#brczerocli query wasm code-info "$cw20_code_id1" | jq +#brczerocli query wasm contract "$cw20contractAddr" | jq # =============== diff --git a/dev/wasm-proposal.sh b/dev/wasm-proposal.sh index fdf9ed329..8fb497709 100755 --- a/dev/wasm-proposal.sh +++ b/dev/wasm-proposal.sh @@ -981,14 +981,14 @@ fi; echo "all tests passed! congratulations~" -#okbchaincli query wasm list-code --limit=5 | jq -#okbchaincli query wasm list-contract-by-code "$cw20_code_id1" | jq -#okbchaincli query wasm contract-history "$cw20contractAddr" | jq -#okbchaincli query wasm contract-state all "$cw20contractAddr" | jq -#okbchaincli query wasm contract-state raw "$cw20contractAddr" | jq +#brczerocli query wasm list-code --limit=5 | jq +#brczerocli query wasm list-contract-by-code "$cw20_code_id1" | jq +#brczerocli query wasm contract-history "$cw20contractAddr" | jq +#brczerocli query wasm contract-state all "$cw20contractAddr" | jq +#brczerocli query wasm contract-state raw "$cw20contractAddr" | jq # -#okbchaincli query wasm code-info "$cw20_code_id1" | jq -#okbchaincli query wasm contract "$cw20contractAddr" | jq +#brczerocli query wasm code-info "$cw20_code_id1" | jq +#brczerocli query wasm contract "$cw20contractAddr" | jq # =============== diff --git a/docker-compose.yml b/docker-compose.yml index 3eb3e2755..041797f78 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,9 +8,9 @@ services: - "26656-26657:26656-26657" environment: - ID=0 - - LOG=${LOG:-okbchaind.log} + - LOG=${LOG:-brczerod.log} volumes: - - ./build:/okbchaind:Z + - ./build:/brczerod:Z networks: localnet: ipv4_address: 192.168.10.2 @@ -22,9 +22,9 @@ services: - "26659-26660:26656-26657" environment: - ID=1 - - LOG=${LOG:-okbchaind.log} + - LOG=${LOG:-brczerod.log} volumes: - - ./build:/okbchaind:Z + - ./build:/brczerod:Z networks: localnet: ipv4_address: 192.168.10.3 @@ -34,11 +34,11 @@ services: image: "okbchain/node" environment: - ID=2 - - LOG=${LOG:-okbchaind.log} + - LOG=${LOG:-brczerod.log} ports: - "26661-26662:26656-26657" volumes: - - ./build:/okbchaind:Z + - ./build:/brczerod:Z networks: localnet: ipv4_address: 192.168.10.4 @@ -48,11 +48,11 @@ services: image: "okbchain/node" environment: - ID=3 - - LOG=${LOG:-okbchaind.log} + - LOG=${LOG:-brczerod.log} ports: - "26663-26664:26656-26657" volumes: - - ./build:/okbchaind:Z + - ./build:/brczerod:Z networks: localnet: ipv4_address: 192.168.10.5 diff --git a/go.mod b/go.mod index 9366f413a..64159b933 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/okx/okbchain +module github.com/okx/brczero go 1.20 diff --git a/libs/cosmos-sdk/baseapp/abci.go b/libs/cosmos-sdk/baseapp/abci.go index b53d617d8..752c6f1fb 100644 --- a/libs/cosmos-sdk/baseapp/abci.go +++ b/libs/cosmos-sdk/baseapp/abci.go @@ -14,18 +14,18 @@ import ( "github.com/spf13/viper" "github.com/tendermint/go-amino" - "github.com/okx/okbchain/app/rpc/simulator" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - stypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/system/trace" - "github.com/okx/okbchain/libs/system/trace/persist" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/app/rpc/simulator" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + stypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/system/trace" + "github.com/okx/brczero/libs/system/trace/persist" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // InitChain implements the ABCI interface. It runs the initialization logic diff --git a/libs/cosmos-sdk/baseapp/baseapp.go b/libs/cosmos-sdk/baseapp/baseapp.go index fe43edc22..1586455b5 100644 --- a/libs/cosmos-sdk/baseapp/baseapp.go +++ b/libs/cosmos-sdk/baseapp/baseapp.go @@ -12,23 +12,23 @@ import ( "github.com/gogo/protobuf/proto" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - tmhttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/rpc/client" + tmhttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) const ( diff --git a/libs/cosmos-sdk/baseapp/baseapp_checktx.go b/libs/cosmos-sdk/baseapp/baseapp_checktx.go index c533dd941..a8b013e10 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_checktx.go +++ b/libs/cosmos-sdk/baseapp/baseapp_checktx.go @@ -5,10 +5,10 @@ import ( "fmt" "sync/atomic" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/global" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/global" ) // CheckTx implements the ABCI interface and executes a tx in CheckTx mode. In diff --git a/libs/cosmos-sdk/baseapp/baseapp_ibc_adapter.go b/libs/cosmos-sdk/baseapp/baseapp_ibc_adapter.go index 1da81d72d..6f29e4d74 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_ibc_adapter.go +++ b/libs/cosmos-sdk/baseapp/baseapp_ibc_adapter.go @@ -7,11 +7,11 @@ import ( gogogrpc "github.com/gogo/protobuf/grpc" grpcmiddleware "github.com/grpc-ecosystem/go-grpc-middleware" grpcrecovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - grpctypes "github.com/okx/okbchain/libs/cosmos-sdk/types/grpc" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + grpctypes "github.com/okx/brczero/libs/cosmos-sdk/types/grpc" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" diff --git a/libs/cosmos-sdk/baseapp/baseapp_mode_base.go b/libs/cosmos-sdk/baseapp/baseapp_mode_base.go index 830c63142..3eecf4447 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_mode_base.go +++ b/libs/cosmos-sdk/baseapp/baseapp_mode_base.go @@ -3,11 +3,11 @@ package baseapp import ( "encoding/json" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - //"github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + //"github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) type modeHandler interface { diff --git a/libs/cosmos-sdk/baseapp/baseapp_mode_deliver.go b/libs/cosmos-sdk/baseapp/baseapp_mode_deliver.go index 301962548..7018fb966 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_mode_deliver.go +++ b/libs/cosmos-sdk/baseapp/baseapp_mode_deliver.go @@ -1,7 +1,7 @@ package baseapp import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (m *modeHandlerDeliver) handleRunMsg(info *runTxInfo) (err error) { diff --git a/libs/cosmos-sdk/baseapp/baseapp_mode_deliverInAsync.go b/libs/cosmos-sdk/baseapp/baseapp_mode_deliverInAsync.go index cd5d5db04..1e7c598a4 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_mode_deliverInAsync.go +++ b/libs/cosmos-sdk/baseapp/baseapp_mode_deliverInAsync.go @@ -1,7 +1,7 @@ package baseapp import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (m *modeHandlerDeliverInAsync) handleDeferRefund(info *runTxInfo) { diff --git a/libs/cosmos-sdk/baseapp/baseapp_mode_simulate.go b/libs/cosmos-sdk/baseapp/baseapp_mode_simulate.go index 26f28b757..3de8f8563 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_mode_simulate.go +++ b/libs/cosmos-sdk/baseapp/baseapp_mode_simulate.go @@ -3,8 +3,8 @@ package baseapp import ( "fmt" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) func (m *modeHandlerSimulate) handleStartHeight(info *runTxInfo, height int64) error { diff --git a/libs/cosmos-sdk/baseapp/baseapp_parallel.go b/libs/cosmos-sdk/baseapp/baseapp_parallel.go index bb5b923fd..b46e44d2d 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_parallel.go +++ b/libs/cosmos-sdk/baseapp/baseapp_parallel.go @@ -8,11 +8,11 @@ import ( "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - sm "github.com/okx/okbchain/libs/tendermint/state" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + sm "github.com/okx/brczero/libs/tendermint/state" ) var ( diff --git a/libs/cosmos-sdk/baseapp/baseapp_runtx.go b/libs/cosmos-sdk/baseapp/baseapp_runtx.go index cbbea2a0c..73a9f8492 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_runtx.go +++ b/libs/cosmos-sdk/baseapp/baseapp_runtx.go @@ -4,11 +4,11 @@ import ( "fmt" "runtime/debug" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/pkg/errors" ) diff --git a/libs/cosmos-sdk/baseapp/baseapp_synclist.go b/libs/cosmos-sdk/baseapp/baseapp_synclist.go index da6e44612..432d57904 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_synclist.go +++ b/libs/cosmos-sdk/baseapp/baseapp_synclist.go @@ -4,7 +4,7 @@ import ( "container/list" "sync" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) type cacheRWSetList struct { diff --git a/libs/cosmos-sdk/baseapp/baseapp_test.go b/libs/cosmos-sdk/baseapp/baseapp_test.go index b7cc5b307..04d662781 100644 --- a/libs/cosmos-sdk/baseapp/baseapp_test.go +++ b/libs/cosmos-sdk/baseapp/baseapp_test.go @@ -10,14 +10,14 @@ import ( "sync" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - store "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + store "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/baseapp/cache.go b/libs/cosmos-sdk/baseapp/cache.go index a35fc5a00..b1c00ac74 100644 --- a/libs/cosmos-sdk/baseapp/cache.go +++ b/libs/cosmos-sdk/baseapp/cache.go @@ -3,7 +3,7 @@ package baseapp import ( "sync" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/tendermint/go-amino" ) diff --git a/libs/cosmos-sdk/baseapp/evm2cm.go b/libs/cosmos-sdk/baseapp/evm2cm.go index 14bd7057d..e1973b893 100644 --- a/libs/cosmos-sdk/baseapp/evm2cm.go +++ b/libs/cosmos-sdk/baseapp/evm2cm.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/libs/cosmos-sdk/baseapp/evm2cm_test.go b/libs/cosmos-sdk/baseapp/evm2cm_test.go index 271cbaeff..536a51e62 100644 --- a/libs/cosmos-sdk/baseapp/evm2cm_test.go +++ b/libs/cosmos-sdk/baseapp/evm2cm_test.go @@ -6,9 +6,9 @@ import ( "os" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - db "github.com/okx/okbchain/libs/tm-db" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/baseapp/gasuseddb.go b/libs/cosmos-sdk/baseapp/gasuseddb.go index 3a4a52ff6..c8883a716 100644 --- a/libs/cosmos-sdk/baseapp/gasuseddb.go +++ b/libs/cosmos-sdk/baseapp/gasuseddb.go @@ -7,9 +7,9 @@ import ( "github.com/gogo/protobuf/proto" lru "github.com/hashicorp/golang-lru" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - db "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + db "github.com/okx/brczero/libs/tm-db" "github.com/spf13/viper" ) diff --git a/libs/cosmos-sdk/baseapp/grpcrouter.go b/libs/cosmos-sdk/baseapp/grpcrouter.go index daa1c744a..9dd5526b6 100644 --- a/libs/cosmos-sdk/baseapp/grpcrouter.go +++ b/libs/cosmos-sdk/baseapp/grpcrouter.go @@ -3,10 +3,10 @@ package baseapp import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/grpc/reflection" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/grpc/reflection" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" gogogrpc "github.com/gogo/protobuf/grpc" "google.golang.org/grpc" diff --git a/libs/cosmos-sdk/baseapp/grpcrouter_helpers.go b/libs/cosmos-sdk/baseapp/grpcrouter_helpers.go index f9146345f..641d7592b 100644 --- a/libs/cosmos-sdk/baseapp/grpcrouter_helpers.go +++ b/libs/cosmos-sdk/baseapp/grpcrouter_helpers.go @@ -5,11 +5,11 @@ import ( "fmt" gogogrpc "github.com/gogo/protobuf/grpc" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "google.golang.org/grpc" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // QueryServiceTestHelper provides a helper for making grpc query service diff --git a/libs/cosmos-sdk/baseapp/grpcrouter_test.go b/libs/cosmos-sdk/baseapp/grpcrouter_test.go index 1b2486186..f9f61ecff 100644 --- a/libs/cosmos-sdk/baseapp/grpcrouter_test.go +++ b/libs/cosmos-sdk/baseapp/grpcrouter_test.go @@ -2,22 +2,22 @@ package baseapp_test import ( "context" - chaincodec "github.com/okx/okbchain/app/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - simapp2 "github.com/okx/okbchain/libs/ibc-go/testing/simapp" - "github.com/okx/okbchain/x/evm" + chaincodec "github.com/okx/brczero/app/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + simapp2 "github.com/okx/brczero/libs/ibc-go/testing/simapp" + "github.com/okx/brczero/x/evm" "os" "testing" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - //"github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types/testdata" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + //"github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types/testdata" ) func TestGRPCGatewayRouter(t *testing.T) { diff --git a/libs/cosmos-sdk/baseapp/helpers.go b/libs/cosmos-sdk/baseapp/helpers.go index 76f2d00fa..07c2d7995 100644 --- a/libs/cosmos-sdk/baseapp/helpers.go +++ b/libs/cosmos-sdk/baseapp/helpers.go @@ -3,9 +3,9 @@ package baseapp import ( "regexp" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var isAlphaNumeric = regexp.MustCompile(`^[a-zA-Z0-9]+$`).MatchString diff --git a/libs/cosmos-sdk/baseapp/helpers_okchain.go b/libs/cosmos-sdk/baseapp/helpers_okchain.go index 35441b55f..e31fb013c 100644 --- a/libs/cosmos-sdk/baseapp/helpers_okchain.go +++ b/libs/cosmos-sdk/baseapp/helpers_okchain.go @@ -1,10 +1,10 @@ package baseapp import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) func (app *BaseApp) PushAnteHandler(ah sdk.AnteHandler) { diff --git a/libs/cosmos-sdk/baseapp/msg_service_router.go b/libs/cosmos-sdk/baseapp/msg_service_router.go index 3e19b1515..2738e65b5 100644 --- a/libs/cosmos-sdk/baseapp/msg_service_router.go +++ b/libs/cosmos-sdk/baseapp/msg_service_router.go @@ -6,9 +6,9 @@ import ( gogogrpc "github.com/gogo/protobuf/grpc" "github.com/gogo/protobuf/proto" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" "google.golang.org/grpc" ) diff --git a/libs/cosmos-sdk/baseapp/msg_service_router_test.go b/libs/cosmos-sdk/baseapp/msg_service_router_test.go index 4639f5f36..e95680cf2 100644 --- a/libs/cosmos-sdk/baseapp/msg_service_router_test.go +++ b/libs/cosmos-sdk/baseapp/msg_service_router_test.go @@ -1,20 +1,20 @@ package baseapp_test import ( - chaincodec "github.com/okx/okbchain/app/codec" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" - "github.com/okx/okbchain/x/evm" + chaincodec "github.com/okx/brczero/app/codec" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" + "github.com/okx/brczero/x/evm" "os" "testing" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/x/evm/types/testdata" + "github.com/okx/brczero/x/evm/types/testdata" ) func TestRegisterMsgService(t *testing.T) { diff --git a/libs/cosmos-sdk/baseapp/options.go b/libs/cosmos-sdk/baseapp/options.go index 3cf9d90a3..81157c564 100644 --- a/libs/cosmos-sdk/baseapp/options.go +++ b/libs/cosmos-sdk/baseapp/options.go @@ -4,10 +4,10 @@ import ( "fmt" "io" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/rpc/client" + dbm "github.com/okx/brczero/libs/tm-db" ) // File for storing in-package BaseApp optional functions, diff --git a/libs/cosmos-sdk/baseapp/queryrouter.go b/libs/cosmos-sdk/baseapp/queryrouter.go index e911a22f2..6cd60ab71 100644 --- a/libs/cosmos-sdk/baseapp/queryrouter.go +++ b/libs/cosmos-sdk/baseapp/queryrouter.go @@ -3,7 +3,7 @@ package baseapp import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type QueryRouter struct { diff --git a/libs/cosmos-sdk/baseapp/queryrouter_test.go b/libs/cosmos-sdk/baseapp/queryrouter_test.go index ed3a344d7..8c803c634 100644 --- a/libs/cosmos-sdk/baseapp/queryrouter_test.go +++ b/libs/cosmos-sdk/baseapp/queryrouter_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var testQuerier = func(_ sdk.Context, _ []string, _ abci.RequestQuery) ([]byte, error) { diff --git a/libs/cosmos-sdk/baseapp/router.go b/libs/cosmos-sdk/baseapp/router.go index 6a17354d6..d435d97fa 100644 --- a/libs/cosmos-sdk/baseapp/router.go +++ b/libs/cosmos-sdk/baseapp/router.go @@ -3,7 +3,7 @@ package baseapp import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type Router struct { diff --git a/libs/cosmos-sdk/baseapp/router_test.go b/libs/cosmos-sdk/baseapp/router_test.go index 1be39383e..879a42ff6 100644 --- a/libs/cosmos-sdk/baseapp/router_test.go +++ b/libs/cosmos-sdk/baseapp/router_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var testHandler = func(_ sdk.Context, _ sdk.Msg) (*sdk.Result, error) { diff --git a/libs/cosmos-sdk/baseapp/state.go b/libs/cosmos-sdk/baseapp/state.go index 1d116129e..850a80d4f 100644 --- a/libs/cosmos-sdk/baseapp/state.go +++ b/libs/cosmos-sdk/baseapp/state.go @@ -1,7 +1,7 @@ package baseapp import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type state struct { diff --git a/libs/cosmos-sdk/client/account_retriever.go b/libs/cosmos-sdk/client/account_retriever.go index e536526ee..6a396a8c6 100644 --- a/libs/cosmos-sdk/client/account_retriever.go +++ b/libs/cosmos-sdk/client/account_retriever.go @@ -1,9 +1,9 @@ package client import ( - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto" ) // Account defines a read-only version of the auth module's AccountI. diff --git a/libs/cosmos-sdk/client/cmd_test.go b/libs/cosmos-sdk/client/cmd_test.go index 48ab9121a..8765c53b7 100644 --- a/libs/cosmos-sdk/client/cmd_test.go +++ b/libs/cosmos-sdk/client/cmd_test.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client" ) func TestValidateCmd(t *testing.T) { diff --git a/libs/cosmos-sdk/client/config.go b/libs/cosmos-sdk/client/config.go index 2ce8f8f29..2a9c0ba2f 100644 --- a/libs/cosmos-sdk/client/config.go +++ b/libs/cosmos-sdk/client/config.go @@ -12,7 +12,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" ) const ( diff --git a/libs/cosmos-sdk/client/config_test.go b/libs/cosmos-sdk/client/config_test.go index 99e6f808d..6b933fadc 100644 --- a/libs/cosmos-sdk/client/config_test.go +++ b/libs/cosmos-sdk/client/config_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" ) // For https://github.com/cosmos/cosmos-sdk/issues/3899 diff --git a/libs/cosmos-sdk/client/context/broadcast.go b/libs/cosmos-sdk/client/context/broadcast.go index c05d3b2ee..cf67ca731 100644 --- a/libs/cosmos-sdk/client/context/broadcast.go +++ b/libs/cosmos-sdk/client/context/broadcast.go @@ -4,11 +4,11 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/types" ) // BroadcastTx broadcasts a transactions either synchronously or asynchronously diff --git a/libs/cosmos-sdk/client/context/broadcast_test.go b/libs/cosmos-sdk/client/context/broadcast_test.go index c3f62d8ae..0bf234431 100644 --- a/libs/cosmos-sdk/client/context/broadcast_test.go +++ b/libs/cosmos-sdk/client/context/broadcast_test.go @@ -4,14 +4,14 @@ import ( "fmt" "testing" - "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/rpc/client/mock" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/rpc/client/mock" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) type MockClient struct { diff --git a/libs/cosmos-sdk/client/context/context.go b/libs/cosmos-sdk/client/context/context.go index 2871b0618..a544e5be1 100644 --- a/libs/cosmos-sdk/client/context/context.go +++ b/libs/cosmos-sdk/client/context/context.go @@ -5,21 +5,21 @@ import ( "io" "os" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - tmlite "github.com/okx/okbchain/libs/tendermint/lite" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" + "github.com/okx/brczero/libs/tendermint/libs/cli" + tmlite "github.com/okx/brczero/libs/tendermint/lite" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" "github.com/pkg/errors" "github.com/spf13/viper" yaml "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // CLIContext implements a typical CLI context created in SDK modules for diff --git a/libs/cosmos-sdk/client/context/context_adapter.go b/libs/cosmos-sdk/client/context/context_adapter.go index 16139ba66..7547d586b 100644 --- a/libs/cosmos-sdk/client/context/context_adapter.go +++ b/libs/cosmos-sdk/client/context/context_adapter.go @@ -5,8 +5,8 @@ import ( "os" "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "gopkg.in/yaml.v2" ) diff --git a/libs/cosmos-sdk/client/context/errors.go b/libs/cosmos-sdk/client/context/errors.go index 3cf2c8b6c..f71748b6e 100644 --- a/libs/cosmos-sdk/client/context/errors.go +++ b/libs/cosmos-sdk/client/context/errors.go @@ -3,7 +3,7 @@ package context import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ErrInvalidAccount returns a standardized error reflecting that a given diff --git a/libs/cosmos-sdk/client/context/grpc_query.go b/libs/cosmos-sdk/client/context/grpc_query.go index 3de57abfd..3d2778a81 100644 --- a/libs/cosmos-sdk/client/context/grpc_query.go +++ b/libs/cosmos-sdk/client/context/grpc_query.go @@ -3,10 +3,10 @@ package context import ( gocontext "context" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - grpctypes "github.com/okx/okbchain/libs/cosmos-sdk/types/grpc" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + grpctypes "github.com/okx/brczero/libs/cosmos-sdk/types/grpc" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "golang.org/x/net/context" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/libs/cosmos-sdk/client/context/query.go b/libs/cosmos-sdk/client/context/query.go index bbae8f722..87d6ee26a 100644 --- a/libs/cosmos-sdk/client/context/query.go +++ b/libs/cosmos-sdk/client/context/query.go @@ -7,16 +7,16 @@ import ( "github.com/pkg/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmliteErr "github.com/okx/okbchain/libs/tendermint/lite/errors" - tmliteProxy "github.com/okx/okbchain/libs/tendermint/lite/proxy" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmliteErr "github.com/okx/brczero/libs/tendermint/lite/errors" + tmliteProxy "github.com/okx/brczero/libs/tendermint/lite/proxy" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GetNode returns an RPC client. If the context's client is not defined, an diff --git a/libs/cosmos-sdk/client/context/tx.go b/libs/cosmos-sdk/client/context/tx.go index 0d50f623f..564bb8da9 100644 --- a/libs/cosmos-sdk/client/context/tx.go +++ b/libs/cosmos-sdk/client/context/tx.go @@ -1,6 +1,6 @@ package context -import "github.com/okx/okbchain/libs/cosmos-sdk/codec" +import "github.com/okx/brczero/libs/cosmos-sdk/codec" type TxRequest interface { GetData() []byte diff --git a/libs/cosmos-sdk/client/context/verifier.go b/libs/cosmos-sdk/client/context/verifier.go index 0a52d44cb..4a0e019c4 100644 --- a/libs/cosmos-sdk/client/context/verifier.go +++ b/libs/cosmos-sdk/client/context/verifier.go @@ -3,10 +3,10 @@ package context import ( "path/filepath" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmlite "github.com/okx/okbchain/libs/tendermint/lite" - tmliteproxy "github.com/okx/okbchain/libs/tendermint/lite/proxy" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmlite "github.com/okx/brczero/libs/tendermint/lite" + tmliteproxy "github.com/okx/brczero/libs/tendermint/lite/proxy" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" "github.com/pkg/errors" ) diff --git a/libs/cosmos-sdk/client/context/verifier_test.go b/libs/cosmos-sdk/client/context/verifier_test.go index fa6efc533..cfa5f4e9d 100644 --- a/libs/cosmos-sdk/client/context/verifier_test.go +++ b/libs/cosmos-sdk/client/context/verifier_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) func TestCreateVerifier(t *testing.T) { diff --git a/libs/cosmos-sdk/client/debug/main.go b/libs/cosmos-sdk/client/debug/main.go index 5df3930e1..d264c3b0d 100644 --- a/libs/cosmos-sdk/client/debug/main.go +++ b/libs/cosmos-sdk/client/debug/main.go @@ -9,13 +9,13 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" ) func Cmd(cdc *codec.Codec) *cobra.Command { diff --git a/libs/cosmos-sdk/client/flags/flags.go b/libs/cosmos-sdk/client/flags/flags.go index d02e4a2af..3f087eb75 100644 --- a/libs/cosmos-sdk/client/flags/flags.go +++ b/libs/cosmos-sdk/client/flags/flags.go @@ -8,9 +8,9 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - tmcli "github.com/okx/okbchain/libs/tendermint/libs/cli" + tmcli "github.com/okx/brczero/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" ) // nolint diff --git a/libs/cosmos-sdk/client/grpc/reflection/reflection.go b/libs/cosmos-sdk/client/grpc/reflection/reflection.go index 64aee87c2..0105bee53 100644 --- a/libs/cosmos-sdk/client/grpc/reflection/reflection.go +++ b/libs/cosmos-sdk/client/grpc/reflection/reflection.go @@ -2,7 +2,7 @@ package reflection import ( "context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/libs/cosmos-sdk/client/ibctx_config.go b/libs/cosmos-sdk/client/ibctx_config.go index c3373c3b5..7325dcdfb 100644 --- a/libs/cosmos-sdk/client/ibctx_config.go +++ b/libs/cosmos-sdk/client/ibctx_config.go @@ -1,10 +1,10 @@ package client import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - signingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibcsigning" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + signingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibcsigning" ) type ( diff --git a/libs/cosmos-sdk/client/keys/add.go b/libs/cosmos-sdk/client/keys/add.go index e15c1e9e3..b042ae659 100644 --- a/libs/cosmos-sdk/client/keys/add.go +++ b/libs/cosmos-sdk/client/keys/add.go @@ -11,17 +11,17 @@ import ( bip39 "github.com/bartekn/go-bip39" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/libs/cli" ) const ( diff --git a/libs/cosmos-sdk/client/keys/add_ledger_test.go b/libs/cosmos-sdk/client/keys/add_ledger_test.go index 8132978e1..d445c6a72 100644 --- a/libs/cosmos-sdk/client/keys/add_ledger_test.go +++ b/libs/cosmos-sdk/client/keys/add_ledger_test.go @@ -9,12 +9,12 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_runAddCmdLedgerWithCustomCoinType(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/add_test.go b/libs/cosmos-sdk/client/keys/add_test.go index 2b7ccad59..1e1bfc6bd 100644 --- a/libs/cosmos-sdk/client/keys/add_test.go +++ b/libs/cosmos-sdk/client/keys/add_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_runAddCmdBasic(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/codec.go b/libs/cosmos-sdk/client/keys/codec.go index 598ef03fa..5c9b3e454 100644 --- a/libs/cosmos-sdk/client/keys/codec.go +++ b/libs/cosmos-sdk/client/keys/codec.go @@ -1,7 +1,7 @@ package keys import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // KeysCdc defines codec to be used with key operations diff --git a/libs/cosmos-sdk/client/keys/codec_test.go b/libs/cosmos-sdk/client/keys/codec_test.go index e1cb2334d..dd7138938 100644 --- a/libs/cosmos-sdk/client/keys/codec_test.go +++ b/libs/cosmos-sdk/client/keys/codec_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" ) type testCases struct { diff --git a/libs/cosmos-sdk/client/keys/delete.go b/libs/cosmos-sdk/client/keys/delete.go index 61c55c7a8..234e96906 100644 --- a/libs/cosmos-sdk/client/keys/delete.go +++ b/libs/cosmos-sdk/client/keys/delete.go @@ -4,10 +4,10 @@ import ( "bufio" "errors" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/libs/cosmos-sdk/client/keys/delete_test.go b/libs/cosmos-sdk/client/keys/delete_test.go index ef5e755a0..387e13962 100644 --- a/libs/cosmos-sdk/client/keys/delete_test.go +++ b/libs/cosmos-sdk/client/keys/delete_test.go @@ -8,10 +8,10 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_runDeleteCmd(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/export.go b/libs/cosmos-sdk/client/keys/export.go index 56fab4211..5427816ee 100644 --- a/libs/cosmos-sdk/client/keys/export.go +++ b/libs/cosmos-sdk/client/keys/export.go @@ -6,10 +6,10 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ExportKeyCommand exports private keys from the key store. diff --git a/libs/cosmos-sdk/client/keys/export_test.go b/libs/cosmos-sdk/client/keys/export_test.go index 8b146b12b..50dac8709 100644 --- a/libs/cosmos-sdk/client/keys/export_test.go +++ b/libs/cosmos-sdk/client/keys/export_test.go @@ -6,10 +6,10 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_runExportCmd(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/import.go b/libs/cosmos-sdk/client/keys/import.go index 74fd97e93..6094af42e 100644 --- a/libs/cosmos-sdk/client/keys/import.go +++ b/libs/cosmos-sdk/client/keys/import.go @@ -7,10 +7,10 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ImportKeyCommand imports private keys from a keyfile. diff --git a/libs/cosmos-sdk/client/keys/import_test.go b/libs/cosmos-sdk/client/keys/import_test.go index b9bb07d31..2e822b75d 100644 --- a/libs/cosmos-sdk/client/keys/import_test.go +++ b/libs/cosmos-sdk/client/keys/import_test.go @@ -8,10 +8,10 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_runImportCmd(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/list.go b/libs/cosmos-sdk/client/keys/list.go index b199d39f8..31e3e95ba 100644 --- a/libs/cosmos-sdk/client/keys/list.go +++ b/libs/cosmos-sdk/client/keys/list.go @@ -4,9 +4,9 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const flagListNames = "list-names" diff --git a/libs/cosmos-sdk/client/keys/list_test.go b/libs/cosmos-sdk/client/keys/list_test.go index 39fcc2435..a3e9d358e 100644 --- a/libs/cosmos-sdk/client/keys/list_test.go +++ b/libs/cosmos-sdk/client/keys/list_test.go @@ -7,10 +7,10 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_runListCmd(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/migrate.go b/libs/cosmos-sdk/client/keys/migrate.go index 9bcf51b59..803c206f3 100644 --- a/libs/cosmos-sdk/client/keys/migrate.go +++ b/libs/cosmos-sdk/client/keys/migrate.go @@ -6,10 +6,10 @@ import ( "io/ioutil" "os" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/pkg/errors" "github.com/spf13/cobra" diff --git a/libs/cosmos-sdk/client/keys/migrate_test.go b/libs/cosmos-sdk/client/keys/migrate_test.go index 69e0e4c88..a6810251a 100644 --- a/libs/cosmos-sdk/client/keys/migrate_test.go +++ b/libs/cosmos-sdk/client/keys/migrate_test.go @@ -3,13 +3,13 @@ package keys import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/tests" "github.com/spf13/viper" "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/cli" ) func Test_runMigrateCmd(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/mnemonic.go b/libs/cosmos-sdk/client/keys/mnemonic.go index 7109f9dae..27d88c0c1 100644 --- a/libs/cosmos-sdk/client/keys/mnemonic.go +++ b/libs/cosmos-sdk/client/keys/mnemonic.go @@ -8,7 +8,7 @@ import ( bip39 "github.com/bartekn/go-bip39" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" ) const ( diff --git a/libs/cosmos-sdk/client/keys/mnemonic_test.go b/libs/cosmos-sdk/client/keys/mnemonic_test.go index bac9885ab..e8f011711 100644 --- a/libs/cosmos-sdk/client/keys/mnemonic_test.go +++ b/libs/cosmos-sdk/client/keys/mnemonic_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" + "github.com/okx/brczero/libs/cosmos-sdk/tests" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/libs/cosmos-sdk/client/keys/parse.go b/libs/cosmos-sdk/client/keys/parse.go index 3570a1cbc..11ec23335 100644 --- a/libs/cosmos-sdk/client/keys/parse.go +++ b/libs/cosmos-sdk/client/keys/parse.go @@ -12,11 +12,11 @@ import ( "github.com/spf13/viper" yaml "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/tendermint/libs/bech32" - "github.com/okx/okbchain/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/bech32" + "github.com/okx/brczero/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func bech32Prefixes(config *sdk.Config) []string { diff --git a/libs/cosmos-sdk/client/keys/parse_test.go b/libs/cosmos-sdk/client/keys/parse_test.go index 91bde6f96..5ed15dcf0 100644 --- a/libs/cosmos-sdk/client/keys/parse_test.go +++ b/libs/cosmos-sdk/client/keys/parse_test.go @@ -3,7 +3,7 @@ package keys import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/client/keys/root.go b/libs/cosmos-sdk/client/keys/root.go index 5c3e7cae2..1fa173831 100644 --- a/libs/cosmos-sdk/client/keys/root.go +++ b/libs/cosmos-sdk/client/keys/root.go @@ -4,7 +4,7 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" ) // Commands registers a sub-tree of commands to interact with diff --git a/libs/cosmos-sdk/client/keys/root_test.go b/libs/cosmos-sdk/client/keys/root_test.go index d7b624086..8b0312066 100644 --- a/libs/cosmos-sdk/client/keys/root_test.go +++ b/libs/cosmos-sdk/client/keys/root_test.go @@ -7,8 +7,8 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" ) func TestCommands(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/show.go b/libs/cosmos-sdk/client/keys/show.go index d8f073542..183926fda 100644 --- a/libs/cosmos-sdk/client/keys/show.go +++ b/libs/cosmos-sdk/client/keys/show.go @@ -7,14 +7,14 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/libs/cli" + + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/client/keys/show_test.go b/libs/cosmos-sdk/client/keys/show_test.go index 06d82b008..9ab05e07b 100644 --- a/libs/cosmos-sdk/client/keys/show_test.go +++ b/libs/cosmos-sdk/client/keys/show_test.go @@ -6,14 +6,14 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_multiSigKey_Properties(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/update.go b/libs/cosmos-sdk/client/keys/update.go index 642ed8138..dab4b0816 100644 --- a/libs/cosmos-sdk/client/keys/update.go +++ b/libs/cosmos-sdk/client/keys/update.go @@ -6,8 +6,8 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" ) // UpdateKeyCommand changes the password of a key in the keybase. diff --git a/libs/cosmos-sdk/client/keys/update_test.go b/libs/cosmos-sdk/client/keys/update_test.go index e1947a6dd..f0a4973ec 100644 --- a/libs/cosmos-sdk/client/keys/update_test.go +++ b/libs/cosmos-sdk/client/keys/update_test.go @@ -6,10 +6,10 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_updateKeyCommand(t *testing.T) { diff --git a/libs/cosmos-sdk/client/keys/utils.go b/libs/cosmos-sdk/client/keys/utils.go index 70b45d088..1b268c49d 100644 --- a/libs/cosmos-sdk/client/keys/utils.go +++ b/libs/cosmos-sdk/client/keys/utils.go @@ -5,12 +5,12 @@ import ( "path/filepath" "github.com/99designs/keyring" - "github.com/okx/okbchain/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/cli" "github.com/spf13/viper" "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" ) // available output formats. diff --git a/libs/cosmos-sdk/client/lcd/root.go b/libs/cosmos-sdk/client/lcd/root.go index 3af6f84c1..745d933cb 100644 --- a/libs/cosmos-sdk/client/lcd/root.go +++ b/libs/cosmos-sdk/client/lcd/root.go @@ -5,7 +5,7 @@ import ( "github.com/gogo/gateway" "github.com/gogo/protobuf/jsonpb" "github.com/grpc-ecosystem/grpc-gateway/runtime" - grpctypes "github.com/okx/okbchain/libs/cosmos-sdk/types/grpc" + grpctypes "github.com/okx/brczero/libs/cosmos-sdk/types/grpc" "net" "net/http" "os" @@ -14,21 +14,21 @@ import ( "github.com/gorilla/handlers" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/node" - "github.com/okx/okbchain/libs/tendermint/rpc/client/local" - tmrpcserver "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/node" + "github.com/okx/brczero/libs/tendermint/rpc/client/local" + tmrpcserver "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" "github.com/rakyll/statik/fs" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - keybase "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + keybase "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" // unnamed import of statik for swagger UI support - _ "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd/statik" + _ "github.com/okx/brczero/libs/cosmos-sdk/client/lcd/statik" ) // RestServer represents the Light Client Rest server diff --git a/libs/cosmos-sdk/client/lcd/root_ibc.go b/libs/cosmos-sdk/client/lcd/root_ibc.go index 94ca8b418..1e9d76564 100644 --- a/libs/cosmos-sdk/client/lcd/root_ibc.go +++ b/libs/cosmos-sdk/client/lcd/root_ibc.go @@ -3,8 +3,8 @@ package lcd import ( "github.com/gogo/gateway" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" "io" ) diff --git a/libs/cosmos-sdk/client/routes.go b/libs/cosmos-sdk/client/routes.go index 81cebf85b..3e310c929 100644 --- a/libs/cosmos-sdk/client/routes.go +++ b/libs/cosmos-sdk/client/routes.go @@ -3,8 +3,8 @@ package client import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/rpc" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/rpc" ) // Register routes diff --git a/libs/cosmos-sdk/client/rpc/block.go b/libs/cosmos-sdk/client/rpc/block.go index b2998ed2e..bed8f4c81 100644 --- a/libs/cosmos-sdk/client/rpc/block.go +++ b/libs/cosmos-sdk/client/rpc/block.go @@ -9,12 +9,12 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" - tmliteProxy "github.com/okx/okbchain/libs/tendermint/lite/proxy" + tmliteProxy "github.com/okx/brczero/libs/tendermint/lite/proxy" ) //BlockCommand returns the verified block data for a given heights diff --git a/libs/cosmos-sdk/client/rpc/root.go b/libs/cosmos-sdk/client/rpc/root.go index 24b80fa1f..40951c8ab 100644 --- a/libs/cosmos-sdk/client/rpc/root.go +++ b/libs/cosmos-sdk/client/rpc/root.go @@ -3,7 +3,7 @@ package rpc import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) // Register REST endpoints diff --git a/libs/cosmos-sdk/client/rpc/status.go b/libs/cosmos-sdk/client/rpc/status.go index b1f59a7ac..8085be370 100644 --- a/libs/cosmos-sdk/client/rpc/status.go +++ b/libs/cosmos-sdk/client/rpc/status.go @@ -7,15 +7,15 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p" ) // StatusCommand returns the command to return the status of the network. diff --git a/libs/cosmos-sdk/client/rpc/validators.go b/libs/cosmos-sdk/client/rpc/validators.go index 6fb148112..75fa9e5d6 100644 --- a/libs/cosmos-sdk/client/rpc/validators.go +++ b/libs/cosmos-sdk/client/rpc/validators.go @@ -11,13 +11,13 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" ) // TODO these next two functions feel kinda hacky based on their placement diff --git a/libs/cosmos-sdk/client/utils.go b/libs/cosmos-sdk/client/utils.go index f2a221f86..9dfeec902 100644 --- a/libs/cosmos-sdk/client/utils.go +++ b/libs/cosmos-sdk/client/utils.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" "github.com/spf13/pflag" ) diff --git a/libs/cosmos-sdk/client/utils_test.go b/libs/cosmos-sdk/client/utils_test.go index 444bd0259..0ddac7951 100644 --- a/libs/cosmos-sdk/client/utils_test.go +++ b/libs/cosmos-sdk/client/utils_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client" ) func TestPaginate(t *testing.T) { diff --git a/libs/cosmos-sdk/codec/codec.go b/libs/cosmos-sdk/codec/codec.go index 19cf8e76b..025f90efc 100644 --- a/libs/cosmos-sdk/codec/codec.go +++ b/libs/cosmos-sdk/codec/codec.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + tmtypes "github.com/okx/brczero/libs/tendermint/types" amino "github.com/tendermint/go-amino" ) diff --git a/libs/cosmos-sdk/codec/codec_adapter.go b/libs/cosmos-sdk/codec/codec_adapter.go index ff1bc4933..65111cbae 100644 --- a/libs/cosmos-sdk/codec/codec_adapter.go +++ b/libs/cosmos-sdk/codec/codec_adapter.go @@ -2,7 +2,7 @@ package codec import ( "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" ) type ( diff --git a/libs/cosmos-sdk/codec/json.go b/libs/cosmos-sdk/codec/json.go index 9461cd907..243754a74 100644 --- a/libs/cosmos-sdk/codec/json.go +++ b/libs/cosmos-sdk/codec/json.go @@ -4,7 +4,7 @@ import ( "bytes" "github.com/gogo/protobuf/jsonpb" "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" ) // ProtoMarshalJSON provides an auxiliary function to return Proto3 JSON encoded diff --git a/libs/cosmos-sdk/codec/proto_codec.go b/libs/cosmos-sdk/codec/proto_codec.go index 5ac3af4b6..831ea6165 100644 --- a/libs/cosmos-sdk/codec/proto_codec.go +++ b/libs/cosmos-sdk/codec/proto_codec.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "errors" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "strings" "github.com/gogo/protobuf/jsonpb" diff --git a/libs/cosmos-sdk/codec/types/any.go b/libs/cosmos-sdk/codec/types/any.go index afc6f3379..4f9f7f318 100644 --- a/libs/cosmos-sdk/codec/types/any.go +++ b/libs/cosmos-sdk/codec/types/any.go @@ -2,7 +2,7 @@ package types import ( "github.com/gogo/protobuf/proto" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) type Any struct { diff --git a/libs/cosmos-sdk/codec/unknownproto/unknown_fields.go b/libs/cosmos-sdk/codec/unknownproto/unknown_fields.go index bf31c583e..12530cfb7 100644 --- a/libs/cosmos-sdk/codec/unknownproto/unknown_fields.go +++ b/libs/cosmos-sdk/codec/unknownproto/unknown_fields.go @@ -5,7 +5,7 @@ import ( "compress/gzip" "errors" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "io/ioutil" "reflect" "strings" diff --git a/libs/cosmos-sdk/crypto/amino.go b/libs/cosmos-sdk/crypto/amino.go index dce2910a8..2397b2847 100644 --- a/libs/cosmos-sdk/crypto/amino.go +++ b/libs/cosmos-sdk/crypto/amino.go @@ -1,7 +1,7 @@ package crypto import ( - cryptoAmino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoAmino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" amino "github.com/tendermint/go-amino" ) diff --git a/libs/cosmos-sdk/crypto/encode_test.go b/libs/cosmos-sdk/crypto/encode_test.go index 00415f483..f865e08da 100644 --- a/libs/cosmos-sdk/crypto/encode_test.go +++ b/libs/cosmos-sdk/crypto/encode_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/require" - tcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + tcrypto "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" ) type byter interface { diff --git a/libs/cosmos-sdk/crypto/keys/codec.go b/libs/cosmos-sdk/crypto/keys/codec.go index d2279b7e9..65595b4f0 100644 --- a/libs/cosmos-sdk/crypto/keys/codec.go +++ b/libs/cosmos-sdk/crypto/keys/codec.go @@ -1,10 +1,10 @@ package keys import ( - cryptoAmino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoAmino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" ) // CryptoCdc defines the codec required for keys and info diff --git a/libs/cosmos-sdk/crypto/keys/hd/fundraiser_test.go b/libs/cosmos-sdk/crypto/keys/hd/fundraiser_test.go index 6cbd29fdd..c9cbccab2 100644 --- a/libs/cosmos-sdk/crypto/keys/hd/fundraiser_test.go +++ b/libs/cosmos-sdk/crypto/keys/hd/fundraiser_test.go @@ -11,8 +11,8 @@ import ( bip39 "github.com/cosmos/go-bip39" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" ) type addrData struct { diff --git a/libs/cosmos-sdk/crypto/keys/hd/hdpath_test.go b/libs/cosmos-sdk/crypto/keys/hd/hdpath_test.go index c605a7ea8..7d6b001c9 100644 --- a/libs/cosmos-sdk/crypto/keys/hd/hdpath_test.go +++ b/libs/cosmos-sdk/crypto/keys/hd/hdpath_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" bip39 "github.com/cosmos/go-bip39" ) diff --git a/libs/cosmos-sdk/crypto/keys/keybase.go b/libs/cosmos-sdk/crypto/keys/keybase.go index b92b86107..314bbe594 100644 --- a/libs/cosmos-sdk/crypto/keys/keybase.go +++ b/libs/cosmos-sdk/crypto/keys/keybase.go @@ -5,14 +5,14 @@ import ( "reflect" "strings" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - cryptoAmino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - dbm "github.com/okx/okbchain/libs/tm-db" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + cryptoAmino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/pkg/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/keyerror" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/mintkey" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/keyerror" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/mintkey" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) var _ Keybase = dbKeybase{} diff --git a/libs/cosmos-sdk/crypto/keys/keybase_base.go b/libs/cosmos-sdk/crypto/keys/keybase_base.go index cd9a9550e..9f598fcce 100644 --- a/libs/cosmos-sdk/crypto/keys/keybase_base.go +++ b/libs/cosmos-sdk/crypto/keys/keybase_base.go @@ -8,13 +8,13 @@ import ( "strings" "github.com/cosmos/go-bip39" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/pkg/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) type ( diff --git a/libs/cosmos-sdk/crypto/keys/keybase_test.go b/libs/cosmos-sdk/crypto/keys/keybase_test.go index 5414408a3..a0d0069b1 100644 --- a/libs/cosmos-sdk/crypto/keys/keybase_test.go +++ b/libs/cosmos-sdk/crypto/keys/keybase_test.go @@ -8,13 +8,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/mintkey" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/mintkey" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func init() { diff --git a/libs/cosmos-sdk/crypto/keys/keyring.go b/libs/cosmos-sdk/crypto/keys/keyring.go index 0476d0ab2..ba6f32158 100644 --- a/libs/cosmos-sdk/crypto/keys/keyring.go +++ b/libs/cosmos-sdk/crypto/keys/keyring.go @@ -14,14 +14,14 @@ import ( "github.com/99designs/keyring" "github.com/pkg/errors" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - cryptoAmino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + cryptoAmino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" "github.com/tendermint/crypto/bcrypt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/keyerror" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/mintkey" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/keyerror" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/mintkey" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/crypto/keys/keyring_test.go b/libs/cosmos-sdk/crypto/keys/keyring_test.go index 9d0ac82ee..229e28192 100644 --- a/libs/cosmos-sdk/crypto/keys/keyring_test.go +++ b/libs/cosmos-sdk/crypto/keys/keyring_test.go @@ -4,14 +4,14 @@ package keys import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestLazyKeyManagementKeyRing(t *testing.T) { diff --git a/libs/cosmos-sdk/crypto/keys/lazy_keybase.go b/libs/cosmos-sdk/crypto/keys/lazy_keybase.go index 6e924be3a..e2b07f21f 100644 --- a/libs/cosmos-sdk/crypto/keys/lazy_keybase.go +++ b/libs/cosmos-sdk/crypto/keys/lazy_keybase.go @@ -3,10 +3,10 @@ package keys import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/crypto" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var _ Keybase = lazyKeybase{} diff --git a/libs/cosmos-sdk/crypto/keys/lazy_keybase_test.go b/libs/cosmos-sdk/crypto/keys/lazy_keybase_test.go index 21ebb2c71..1755bf673 100644 --- a/libs/cosmos-sdk/crypto/keys/lazy_keybase_test.go +++ b/libs/cosmos-sdk/crypto/keys/lazy_keybase_test.go @@ -3,17 +3,17 @@ package keys import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestNew(t *testing.T) { diff --git a/libs/cosmos-sdk/crypto/keys/mintkey/mintkey.go b/libs/cosmos-sdk/crypto/keys/mintkey/mintkey.go index a68a9e477..5a28f2749 100644 --- a/libs/cosmos-sdk/crypto/keys/mintkey/mintkey.go +++ b/libs/cosmos-sdk/crypto/keys/mintkey/mintkey.go @@ -6,14 +6,14 @@ import ( "github.com/tendermint/crypto/bcrypt" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/armor" - cryptoAmino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/xsalsa20symmetric" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/armor" + cryptoAmino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/xsalsa20symmetric" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/keyerror" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/keyerror" ) const ( diff --git a/libs/cosmos-sdk/crypto/keys/mintkey/mintkey_bench_test.go b/libs/cosmos-sdk/crypto/keys/mintkey/mintkey_bench_test.go index 2159e03cc..0c817a129 100644 --- a/libs/cosmos-sdk/crypto/keys/mintkey/mintkey_bench_test.go +++ b/libs/cosmos-sdk/crypto/keys/mintkey/mintkey_bench_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" "github.com/tendermint/crypto/bcrypt" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) func BenchmarkBcryptGenerateFromPassword(b *testing.B) { diff --git a/libs/cosmos-sdk/crypto/keys/mintkey/mintkey_test.go b/libs/cosmos-sdk/crypto/keys/mintkey/mintkey_test.go index b5e5539ff..5b404144a 100644 --- a/libs/cosmos-sdk/crypto/keys/mintkey/mintkey_test.go +++ b/libs/cosmos-sdk/crypto/keys/mintkey/mintkey_test.go @@ -6,13 +6,13 @@ import ( "io" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/armor" - cryptoAmino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/armor" + cryptoAmino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/mintkey" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/mintkey" ) func TestArmorUnarmorPrivKey(t *testing.T) { diff --git a/libs/cosmos-sdk/crypto/keys/output.go b/libs/cosmos-sdk/crypto/keys/output.go index b3ac16dba..b2f89a2f2 100644 --- a/libs/cosmos-sdk/crypto/keys/output.go +++ b/libs/cosmos-sdk/crypto/keys/output.go @@ -2,7 +2,7 @@ package keys import ( ethcmn "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // KeyOutput defines a structure wrapping around an Info object used for output diff --git a/libs/cosmos-sdk/crypto/keys/output_test.go b/libs/cosmos-sdk/crypto/keys/output_test.go index 65a956cf7..0206b2fdd 100644 --- a/libs/cosmos-sdk/crypto/keys/output_test.go +++ b/libs/cosmos-sdk/crypto/keys/output_test.go @@ -4,12 +4,12 @@ import ( "testing" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestBech32KeysOutput(t *testing.T) { diff --git a/libs/cosmos-sdk/crypto/keys/types.go b/libs/cosmos-sdk/crypto/keys/types.go index ccf816eae..02f556b9e 100644 --- a/libs/cosmos-sdk/crypto/keys/types.go +++ b/libs/cosmos-sdk/crypto/keys/types.go @@ -3,11 +3,11 @@ package keys import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Keybase exposes operations on a generic keystore diff --git a/libs/cosmos-sdk/crypto/keys/types_test.go b/libs/cosmos-sdk/crypto/keys/types_test.go index f3ad8ac7c..1afba741b 100644 --- a/libs/cosmos-sdk/crypto/keys/types_test.go +++ b/libs/cosmos-sdk/crypto/keys/types_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_writeReadLedgerInfo(t *testing.T) { diff --git a/libs/cosmos-sdk/crypto/ledger_mock.go b/libs/cosmos-sdk/crypto/ledger_mock.go index 55edc2c95..0d0208605 100644 --- a/libs/cosmos-sdk/crypto/ledger_mock.go +++ b/libs/cosmos-sdk/crypto/ledger_mock.go @@ -9,15 +9,15 @@ import ( "github.com/btcsuite/btcd/btcec" "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmsecp256k1 "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + tmsecp256k1 "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" secp256k1 "github.com/tendermint/btcd/btcec" bip39 "github.com/cosmos/go-bip39" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // If ledger support (build tag) has been enabled, which implies a CGO dependency, diff --git a/libs/cosmos-sdk/crypto/ledger_secp256k1.go b/libs/cosmos-sdk/crypto/ledger_secp256k1.go index e0500d969..4596c8a14 100644 --- a/libs/cosmos-sdk/crypto/ledger_secp256k1.go +++ b/libs/cosmos-sdk/crypto/ledger_secp256k1.go @@ -7,12 +7,12 @@ import ( "github.com/btcsuite/btcd/btcec" "github.com/pkg/errors" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - tmsecp256k1 "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + tmsecp256k1 "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" tmbtcec "github.com/tendermint/btcd/btcec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/hd" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/hd" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/libs/cosmos-sdk/crypto/types/multisig/multisignature.go b/libs/cosmos-sdk/crypto/types/multisig/multisignature.go index 92e7adfcb..ba1d47bca 100644 --- a/libs/cosmos-sdk/crypto/types/multisig/multisignature.go +++ b/libs/cosmos-sdk/crypto/types/multisig/multisignature.go @@ -2,8 +2,8 @@ package multisig import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" "strings" ) diff --git a/libs/cosmos-sdk/crypto/types/multisig/pubkey.go b/libs/cosmos-sdk/crypto/types/multisig/pubkey.go index 69b0af31f..e86d5e714 100644 --- a/libs/cosmos-sdk/crypto/types/multisig/pubkey.go +++ b/libs/cosmos-sdk/crypto/types/multisig/pubkey.go @@ -1,8 +1,8 @@ package multisig import ( - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" ) // PubKey defines a type which supports multi-signature verification via MultiSignatureData diff --git a/libs/cosmos-sdk/crypto/types/types.go b/libs/cosmos-sdk/crypto/types/types.go index db1598758..032705afa 100644 --- a/libs/cosmos-sdk/crypto/types/types.go +++ b/libs/cosmos-sdk/crypto/types/types.go @@ -2,7 +2,7 @@ package types import ( proto "github.com/gogo/protobuf/proto" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" ) // PubKey defines a public key and extends proto.Message. diff --git a/libs/cosmos-sdk/docs/run-node/run-node.md b/libs/cosmos-sdk/docs/run-node/run-node.md index 5fed81f33..326220340 100644 --- a/libs/cosmos-sdk/docs/run-node/run-node.md +++ b/libs/cosmos-sdk/docs/run-node/run-node.md @@ -21,7 +21,7 @@ Before actually running the node, we need to initialize the chain, and most impo ```bash # The argument is the custom username of your node, it should be human-readable. -okbchaind init --chain-id my-test-chain +brczerod init --chain-id my-test-chain ``` The command above creates all the configuration files needed for your node to run, as well as a default genesis file, which defines the initial state of the network. All these configuration files are in `~/.okbchaind` by default, but you can overwrite the location of this folder by passing the `--home` flag. @@ -29,7 +29,7 @@ The command above creates all the configuration files needed for your node to ru The `~/.okbchaind` folder has the following structure: ```bash -. # ~/.okbchaind +. # ~/.brczerod |- data # Contains the databases used by the node. |- config/ |- app.toml # Application-related configuration file. @@ -44,7 +44,7 @@ Before starting the chain, you need to populate the state with at least one acco Now that you have created a local account, go ahead and grant it some `okb` tokens in your chain's genesis file. Doing so will also make sure your chain is aware of this account's existence: ```bash -okbchaind add-genesis-account $MY_VALIDATOR_ADDRESS 100000000okb +brczerod add-genesis-account $MY_VALIDATOR_ADDRESS 100000000okb ``` Recall that `$MY_VALIDATOR_ADDRESS` is a variable that holds the address of the `my_validator` key in the [keyring](./keyring.md#adding-keys-to-the-keyring). Also note that the tokens in the SDK have the `{amount}{denom}` format: `amount` is is a 18-digit-precision decimal number, and `denom` is the unique token identifier with its denomination key (e.g. `okb`). Here, we are granting `okb` tokens, as `okb` is the token identifier used for staking in [`okbchaind`](https://github.com/okx/okbchain). For your own chain with its own staking denom, that token identifier should be used instead. @@ -53,10 +53,10 @@ Now that your account has some tokens, you need to add a validator to your chain ```bash # Create a gentx. -okbchaind gentx my_validator 100000stake --chain-id my-test-chain --keyring-backend test +brczerod gentx my_validator 100000stake --chain-id my-test-chain --keyring-backend test # Add the gentx to the genesis file. -okbchaind collect-gentxs +brczerod collect-gentxs ``` A `gentx` does three things: @@ -68,7 +68,7 @@ A `gentx` does three things: For more information on `gentx`, use the following command: ```bash -okbchaind gentx --help +brczerod gentx --help ``` ## Run a Localnet @@ -76,7 +76,7 @@ okbchaind gentx --help Now that everything is set up, you can finally start your node: ```bash -okbchaind start +brczerod start ``` You should see blocks come in. diff --git a/libs/cosmos-sdk/server/config/config.go b/libs/cosmos-sdk/server/config/config.go index d17a4a321..4a89ee329 100644 --- a/libs/cosmos-sdk/server/config/config.go +++ b/libs/cosmos-sdk/server/config/config.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/server/config/config_test.go b/libs/cosmos-sdk/server/config/config_test.go index 1147afec7..f552a1575 100644 --- a/libs/cosmos-sdk/server/config/config_test.go +++ b/libs/cosmos-sdk/server/config/config_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestDefaultConfig(t *testing.T) { diff --git a/libs/cosmos-sdk/server/config/toml.go b/libs/cosmos-sdk/server/config/toml.go index df727e930..b4e472016 100644 --- a/libs/cosmos-sdk/server/config/toml.go +++ b/libs/cosmos-sdk/server/config/toml.go @@ -4,7 +4,7 @@ import ( "bytes" "text/template" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" "github.com/spf13/viper" ) diff --git a/libs/cosmos-sdk/server/constructors.go b/libs/cosmos-sdk/server/constructors.go index 9918e015d..99b39ad41 100644 --- a/libs/cosmos-sdk/server/constructors.go +++ b/libs/cosmos-sdk/server/constructors.go @@ -6,12 +6,12 @@ import ( "os" "path/filepath" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type ( diff --git a/libs/cosmos-sdk/server/constructors_test.go b/libs/cosmos-sdk/server/constructors_test.go index 3258756f8..97afdcf9e 100644 --- a/libs/cosmos-sdk/server/constructors_test.go +++ b/libs/cosmos-sdk/server/constructors_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" + "github.com/okx/brczero/libs/cosmos-sdk/tests" ) func Test_openDB(t *testing.T) { diff --git a/libs/cosmos-sdk/server/export.go b/libs/cosmos-sdk/server/export.go index d241f9afd..ad5bd923b 100644 --- a/libs/cosmos-sdk/server/export.go +++ b/libs/cosmos-sdk/server/export.go @@ -7,14 +7,14 @@ import ( "io/ioutil" "os" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/server/grpc/grpc.go b/libs/cosmos-sdk/server/grpc/grpc.go index 16ee10471..7761946d3 100644 --- a/libs/cosmos-sdk/server/grpc/grpc.go +++ b/libs/cosmos-sdk/server/grpc/grpc.go @@ -5,27 +5,27 @@ import ( "net" "time" - "github.com/okx/okbchain/libs/tendermint/node" + "github.com/okx/brczero/libs/tendermint/node" - app2 "github.com/okx/okbchain/libs/cosmos-sdk/server/types" + app2 "github.com/okx/brczero/libs/cosmos-sdk/server/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" "github.com/spf13/viper" - reflection "github.com/okx/okbchain/libs/cosmos-sdk/server/grpc/reflection/v2alpha1" + reflection "github.com/okx/brczero/libs/cosmos-sdk/server/grpc/reflection/v2alpha1" "github.com/gogo/protobuf/jsonpb" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server/grpc/gogoreflection" + "github.com/okx/brczero/libs/cosmos-sdk/server/grpc/gogoreflection" "google.golang.org/grpc" - "github.com/okx/okbchain/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/config" ) // ServerStartTime defines the time duration that the server need to stay running after startup diff --git a/libs/cosmos-sdk/server/grpc/reflection/v2alpha1/reflection.go b/libs/cosmos-sdk/server/grpc/reflection/v2alpha1/reflection.go index a7abaaa50..52ba536af 100644 --- a/libs/cosmos-sdk/server/grpc/reflection/v2alpha1/reflection.go +++ b/libs/cosmos-sdk/server/grpc/reflection/v2alpha1/reflection.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx" "github.com/gogo/protobuf/proto" "google.golang.org/grpc" diff --git a/libs/cosmos-sdk/server/init.go b/libs/cosmos-sdk/server/init.go index 4ccbfe6c4..fc15ce7dc 100644 --- a/libs/cosmos-sdk/server/init.go +++ b/libs/cosmos-sdk/server/init.go @@ -3,10 +3,10 @@ package server import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" - clkeys "github.com/okx/okbchain/libs/cosmos-sdk/client/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + clkeys "github.com/okx/brczero/libs/cosmos-sdk/client/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GenerateCoinKey returns the address of a public key, along with the secret diff --git a/libs/cosmos-sdk/server/init_test.go b/libs/cosmos-sdk/server/init_test.go index c11e86dd5..6ba680a6f 100644 --- a/libs/cosmos-sdk/server/init_test.go +++ b/libs/cosmos-sdk/server/init_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/keys" - crkeys "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" + "github.com/okx/brczero/libs/cosmos-sdk/client/keys" + crkeys "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/tests" ) func TestGenerateCoinKey(t *testing.T) { diff --git a/libs/cosmos-sdk/server/mock/app.go b/libs/cosmos-sdk/server/mock/app.go index 277eb57e5..ce38237f9 100644 --- a/libs/cosmos-sdk/server/mock/app.go +++ b/libs/cosmos-sdk/server/mock/app.go @@ -6,14 +6,14 @@ import ( "fmt" "path/filepath" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // NewApp creates a simple mock kvstore app for testing. It should work diff --git a/libs/cosmos-sdk/server/mock/app_test.go b/libs/cosmos-sdk/server/mock/app_test.go index 83e6abd29..78982e765 100644 --- a/libs/cosmos-sdk/server/mock/app_test.go +++ b/libs/cosmos-sdk/server/mock/app_test.go @@ -3,12 +3,12 @@ package mock import ( "testing" - appconfig "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/libs/tendermint/types" + appconfig "github.com/okx/brczero/app/config" + "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) // TestInitApp makes sure we can initialize this thing without an error @@ -45,7 +45,7 @@ func TestInitApp(t *testing.T) { // TextDeliverTx ensures we can write a tx func TestDeliverTx(t *testing.T) { - appconfig.GetOkbcConfig().SetDynamicGpMode(0) + appconfig.GetBRCZeroConfig().SetDynamicGpMode(0) // set up an app app, closer, err := SetupApp() // closer may need to be run, even when error in later stage diff --git a/libs/cosmos-sdk/server/mock/helpers.go b/libs/cosmos-sdk/server/mock/helpers.go index e203af211..4cb30b465 100644 --- a/libs/cosmos-sdk/server/mock/helpers.go +++ b/libs/cosmos-sdk/server/mock/helpers.go @@ -5,8 +5,8 @@ import ( "io/ioutil" "os" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // SetupApp returns an application as well as a clean-up function diff --git a/libs/cosmos-sdk/server/mock/store.go b/libs/cosmos-sdk/server/mock/store.go index eeb9e2171..2c3ee5b4f 100644 --- a/libs/cosmos-sdk/server/mock/store.go +++ b/libs/cosmos-sdk/server/mock/store.go @@ -3,11 +3,11 @@ package mock import ( "io" - store "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + store "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) var _ sdk.MultiStore = multiStore{} diff --git a/libs/cosmos-sdk/server/mock/store_test.go b/libs/cosmos-sdk/server/mock/store_test.go index b70d83e7f..dcf52db0b 100644 --- a/libs/cosmos-sdk/server/mock/store_test.go +++ b/libs/cosmos-sdk/server/mock/store_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestStore(t *testing.T) { diff --git a/libs/cosmos-sdk/server/mock/tx.go b/libs/cosmos-sdk/server/mock/tx.go index eaa638909..5c41a93ec 100644 --- a/libs/cosmos-sdk/server/mock/tx.go +++ b/libs/cosmos-sdk/server/mock/tx.go @@ -6,8 +6,8 @@ import ( "fmt" "math/big" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // An sdk.Tx which is its own sdk.Msg. diff --git a/libs/cosmos-sdk/server/pruning.go b/libs/cosmos-sdk/server/pruning.go index f447815f5..b8d2d2fe3 100644 --- a/libs/cosmos-sdk/server/pruning.go +++ b/libs/cosmos-sdk/server/pruning.go @@ -4,14 +4,14 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - tmiavl "github.com/okx/okbchain/libs/iavl" - iavlcfg "github.com/okx/okbchain/libs/iavl/config" + "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + tmiavl "github.com/okx/brczero/libs/iavl" + iavlcfg "github.com/okx/brczero/libs/iavl/config" ) // GetPruningOptionsFromFlags parses command flags and returns the correct diff --git a/libs/cosmos-sdk/server/pruning_test.go b/libs/cosmos-sdk/server/pruning_test.go index dcfc11ab1..c52a2d713 100644 --- a/libs/cosmos-sdk/server/pruning_test.go +++ b/libs/cosmos-sdk/server/pruning_test.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) func TestGetPruningOptionsFromFlags(t *testing.T) { diff --git a/libs/cosmos-sdk/server/start.go b/libs/cosmos-sdk/server/start.go index 027563d7e..f7e8b1907 100644 --- a/libs/cosmos-sdk/server/start.go +++ b/libs/cosmos-sdk/server/start.go @@ -7,36 +7,36 @@ import ( "runtime/pprof" "github.com/gogo/protobuf/jsonpb" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server/grpc" - app2 "github.com/okx/okbchain/libs/cosmos-sdk/server/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - mptstore "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/system" - "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/node" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - "github.com/okx/okbchain/libs/tendermint/rpc/client/local" - "github.com/okx/okbchain/libs/tendermint/state" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/lcd" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server/grpc" + app2 "github.com/okx/brczero/libs/cosmos-sdk/server/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + mptstore "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/system" + "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/node" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/rpc/client" + "github.com/okx/brczero/libs/tendermint/rpc/client/local" + "github.com/okx/brczero/libs/tendermint/state" "github.com/spf13/cobra" "github.com/spf13/viper" - tmiavl "github.com/okx/okbchain/libs/iavl" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - bcv0 "github.com/okx/okbchain/libs/tendermint/blockchain/v0" - tcmd "github.com/okx/okbchain/libs/tendermint/cmd/tendermint/commands" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - pvm "github.com/okx/okbchain/libs/tendermint/privval" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmiavl "github.com/okx/brczero/libs/iavl" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + bcv0 "github.com/okx/brczero/libs/tendermint/blockchain/v0" + tcmd "github.com/okx/brczero/libs/tendermint/cmd/tendermint/commands" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + pvm "github.com/okx/brczero/libs/tendermint/privval" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // Tendermint full-node start flags diff --git a/libs/cosmos-sdk/server/start_okchain.go b/libs/cosmos-sdk/server/start_okchain.go index 348ab91b2..5c9ac8be8 100644 --- a/libs/cosmos-sdk/server/start_okchain.go +++ b/libs/cosmos-sdk/server/start_okchain.go @@ -12,19 +12,19 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/store/flatkv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdkstoretypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - tmiavl "github.com/okx/okbchain/libs/iavl" - "github.com/okx/okbchain/libs/system" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cmn "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/state" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/store/flatkv" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdkstoretypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + tmiavl "github.com/okx/brczero/libs/iavl" + "github.com/okx/brczero/libs/system" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cmn "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/state" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // okbchain full-node start flags @@ -115,7 +115,7 @@ func StopCmd(ctx *Context) *cobra.Command { RunE: func(cmd *cobra.Command, args []string) error { f, err := os.Open(filepath.Join(ctx.Config.RootDir, "config", "pid")) if err != nil { - errStr := fmt.Sprintf("%s Please finish the process of okbchaind through kill -2 pid to stop gracefully", err.Error()) + errStr := fmt.Sprintf("%s Please finish the process of brczerod through kill -2 pid to stop gracefully", err.Error()) cmn.Exit(errStr) } defer f.Close() @@ -123,7 +123,7 @@ func StopCmd(ctx *Context) *cobra.Command { in.Scan() pid, err := strconv.Atoi(in.Text()) if err != nil { - errStr := fmt.Sprintf("%s Please finish the process of okbchaind through kill -2 pid to stop gracefully", err.Error()) + errStr := fmt.Sprintf("%s Please finish the process of brczerod through kill -2 pid to stop gracefully", err.Error()) cmn.Exit(errStr) } process, err := os.FindProcess(pid) @@ -274,8 +274,8 @@ func RegisterServerFlags(cmd *cobra.Command) *cobra.Command { func nodeModeCmd(ctx *Context) *cobra.Command { cmd := &cobra.Command{ Use: "node-mode", - Short: "okbchaind start --node-mode help info", - Long: `There are three node modes that can be set when the okbchaind start + Short: "brczerod start --node-mode help info", + Long: `There are three node modes that can be set when the brczerod start set --node-mode=rpc to manage the following flags: --disable-checktx-mutex=true --disable-query-mutex=true diff --git a/libs/cosmos-sdk/server/test_helpers.go b/libs/cosmos-sdk/server/test_helpers.go index 3a28b5dd5..3e35c0028 100644 --- a/libs/cosmos-sdk/server/test_helpers.go +++ b/libs/cosmos-sdk/server/test_helpers.go @@ -7,7 +7,7 @@ import ( "os" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" "github.com/spf13/viper" "github.com/stretchr/testify/require" diff --git a/libs/cosmos-sdk/server/tm_cmds.go b/libs/cosmos-sdk/server/tm_cmds.go index 36d2ba39e..b40fd0132 100644 --- a/libs/cosmos-sdk/server/tm_cmds.go +++ b/libs/cosmos-sdk/server/tm_cmds.go @@ -9,14 +9,14 @@ import ( "github.com/spf13/viper" yaml "gopkg.in/yaml.v2" - tcmd "github.com/okx/okbchain/libs/tendermint/cmd/tendermint/commands" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/tendermint/p2p" - pvm "github.com/okx/okbchain/libs/tendermint/privval" - tversion "github.com/okx/okbchain/libs/tendermint/version" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + tcmd "github.com/okx/brczero/libs/tendermint/cmd/tendermint/commands" + "github.com/okx/brczero/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/p2p" + pvm "github.com/okx/brczero/libs/tendermint/privval" + tversion "github.com/okx/brczero/libs/tendermint/version" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ShowNodeIDCmd - ported from Tendermint, dump node ID to stdout diff --git a/libs/cosmos-sdk/server/types/app_cm40.go b/libs/cosmos-sdk/server/types/app_cm40.go index 693ce33c3..e0fc22b8c 100644 --- a/libs/cosmos-sdk/server/types/app_cm40.go +++ b/libs/cosmos-sdk/server/types/app_cm40.go @@ -2,7 +2,7 @@ package app import ( gogogrpc "github.com/gogo/protobuf/grpc" - cliContext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + cliContext "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) type ApplicationAdapter interface { diff --git a/libs/cosmos-sdk/server/util.go b/libs/cosmos-sdk/server/util.go index 20a5b5430..c55e2c9e9 100644 --- a/libs/cosmos-sdk/server/util.go +++ b/libs/cosmos-sdk/server/util.go @@ -3,7 +3,7 @@ package server import ( "encoding/json" "errors" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "net" "os" "os/signal" @@ -13,17 +13,17 @@ import ( "github.com/gogo/protobuf/jsonpb" "github.com/google/gops/agent" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server/config" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - tcmd "github.com/okx/okbchain/libs/tendermint/cmd/tendermint/commands" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - tmflags "github.com/okx/okbchain/libs/tendermint/libs/cli/flags" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/state" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/lcd" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server/config" + "github.com/okx/brczero/libs/cosmos-sdk/version" + tcmd "github.com/okx/brczero/libs/tendermint/cmd/tendermint/commands" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/cli" + tmflags "github.com/okx/brczero/libs/tendermint/libs/cli/flags" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/state" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/libs/cosmos-sdk/server/util_test.go b/libs/cosmos-sdk/server/util_test.go index 4610158a5..d933ae2f5 100644 --- a/libs/cosmos-sdk/server/util_test.go +++ b/libs/cosmos-sdk/server/util_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) func TestInsertKeyJSON(t *testing.T) { diff --git a/libs/cosmos-sdk/simapp/app.go b/libs/cosmos-sdk/simapp/app.go index 4f169783f..7de506ac8 100644 --- a/libs/cosmos-sdk/simapp/app.go +++ b/libs/cosmos-sdk/simapp/app.go @@ -4,35 +4,35 @@ import ( "io" "os" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - dbm "github.com/okx/okbchain/libs/tm-db" - - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/vesting" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis" - distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - paramsclient "github.com/okx/okbchain/libs/cosmos-sdk/x/params/client" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - upgradeclient "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/client" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + dbm "github.com/okx/brczero/libs/tm-db" + + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/vesting" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis" + distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + paramsclient "github.com/okx/brczero/libs/cosmos-sdk/x/params/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + upgradeclient "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/client" ) const appName = "SimApp" diff --git a/libs/cosmos-sdk/simapp/app_test.go b/libs/cosmos-sdk/simapp/app_test.go index c4e64642f..62235dcc8 100644 --- a/libs/cosmos-sdk/simapp/app_test.go +++ b/libs/cosmos-sdk/simapp/app_test.go @@ -4,13 +4,13 @@ import ( "os" "testing" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) func TestSimAppExport(t *testing.T) { diff --git a/libs/cosmos-sdk/simapp/config.go b/libs/cosmos-sdk/simapp/config.go index 06b2af2ea..ef71e972a 100644 --- a/libs/cosmos-sdk/simapp/config.go +++ b/libs/cosmos-sdk/simapp/config.go @@ -3,7 +3,7 @@ package simapp import ( "flag" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // List of available flags for the simulator diff --git a/libs/cosmos-sdk/simapp/export.go b/libs/cosmos-sdk/simapp/export.go index 8ad01d5df..26b6ef741 100644 --- a/libs/cosmos-sdk/simapp/export.go +++ b/libs/cosmos-sdk/simapp/export.go @@ -4,14 +4,14 @@ import ( "encoding/json" "log" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // ExportAppStateAndValidators exports the state of the application for a genesis diff --git a/libs/cosmos-sdk/simapp/genesis_account.go b/libs/cosmos-sdk/simapp/genesis_account.go index ede802082..e6d3861fb 100644 --- a/libs/cosmos-sdk/simapp/genesis_account.go +++ b/libs/cosmos-sdk/simapp/genesis_account.go @@ -3,10 +3,10 @@ package simapp import ( "errors" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) var _ authexported.GenesisAccount = (*SimGenesisAccount)(nil) diff --git a/libs/cosmos-sdk/simapp/genesis_account_test.go b/libs/cosmos-sdk/simapp/genesis_account_test.go index af1610ef7..28ea0685c 100644 --- a/libs/cosmos-sdk/simapp/genesis_account_test.go +++ b/libs/cosmos-sdk/simapp/genesis_account_test.go @@ -4,12 +4,12 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/simapp/helpers/test_helpers.go b/libs/cosmos-sdk/simapp/helpers/test_helpers.go index d391e37c0..9ba921a2f 100644 --- a/libs/cosmos-sdk/simapp/helpers/test_helpers.go +++ b/libs/cosmos-sdk/simapp/helpers/test_helpers.go @@ -4,11 +4,11 @@ import ( "math/rand" "time" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // SimAppChainID hardcoded chainID for simulation diff --git a/libs/cosmos-sdk/simapp/sim_bench_test.go b/libs/cosmos-sdk/simapp/sim_bench_test.go index 74a65937c..3bae8ddc3 100644 --- a/libs/cosmos-sdk/simapp/sim_bench_test.go +++ b/libs/cosmos-sdk/simapp/sim_bench_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // Profile with: diff --git a/libs/cosmos-sdk/simapp/sim_test.go b/libs/cosmos-sdk/simapp/sim_test.go index 8e127f029..2954c58f2 100644 --- a/libs/cosmos-sdk/simapp/sim_test.go +++ b/libs/cosmos-sdk/simapp/sim_test.go @@ -7,24 +7,24 @@ import ( "os" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) // Get flags every time the simulator is run diff --git a/libs/cosmos-sdk/simapp/state.go b/libs/cosmos-sdk/simapp/state.go index 1f3d7c36d..487c84d57 100644 --- a/libs/cosmos-sdk/simapp/state.go +++ b/libs/cosmos-sdk/simapp/state.go @@ -8,14 +8,14 @@ import ( "math/rand" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - simapparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + simapparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // AppStateFn returns the initial application state using a genesis or the simulation parameters. diff --git a/libs/cosmos-sdk/simapp/test_helpers.go b/libs/cosmos-sdk/simapp/test_helpers.go index a89879213..b74ee1c69 100644 --- a/libs/cosmos-sdk/simapp/test_helpers.go +++ b/libs/cosmos-sdk/simapp/test_helpers.go @@ -4,20 +4,20 @@ import ( "os" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) // Setup initializes a new SimApp. A Nop logger is set in SimApp. diff --git a/libs/cosmos-sdk/simapp/types.go b/libs/cosmos-sdk/simapp/types.go index cc448b69f..32e584779 100644 --- a/libs/cosmos-sdk/simapp/types.go +++ b/libs/cosmos-sdk/simapp/types.go @@ -3,12 +3,12 @@ package simapp import ( "encoding/json" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" ) // App implements the common methods for a Cosmos SDK-based application diff --git a/libs/cosmos-sdk/simapp/utils.go b/libs/cosmos-sdk/simapp/utils.go index 4991f078f..a98571447 100644 --- a/libs/cosmos-sdk/simapp/utils.go +++ b/libs/cosmos-sdk/simapp/utils.go @@ -5,15 +5,15 @@ import ( "fmt" "io/ioutil" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // SetupSimulation creates the config, db (levelDB), temporary directory and logger for diff --git a/libs/cosmos-sdk/simapp/utils_test.go b/libs/cosmos-sdk/simapp/utils_test.go index a5bcec22a..4ae2ca9a6 100644 --- a/libs/cosmos-sdk/simapp/utils_test.go +++ b/libs/cosmos-sdk/simapp/utils_test.go @@ -4,12 +4,12 @@ import ( "fmt" "testing" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" ) func TestGetSimulationLog(t *testing.T) { diff --git a/libs/cosmos-sdk/store/cache/cache.go b/libs/cosmos-sdk/store/cache/cache.go index 9129f3e73..9f085138b 100644 --- a/libs/cosmos-sdk/store/cache/cache.go +++ b/libs/cosmos-sdk/store/cache/cache.go @@ -3,8 +3,8 @@ package cache import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" lru "github.com/hashicorp/golang-lru" ) diff --git a/libs/cosmos-sdk/store/cache/cache_test.go b/libs/cosmos-sdk/store/cache/cache_test.go index 98f250e20..df54e8e83 100644 --- a/libs/cosmos-sdk/store/cache/cache_test.go +++ b/libs/cosmos-sdk/store/cache/cache_test.go @@ -4,12 +4,12 @@ import ( "fmt" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cache" - iavlstore "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/cache" + iavlstore "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/iavl" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/iavl" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/store/cachekv/memiterator.go b/libs/cosmos-sdk/store/cachekv/memiterator.go index 92c6969f5..6dc809aa1 100644 --- a/libs/cosmos-sdk/store/cachekv/memiterator.go +++ b/libs/cosmos-sdk/store/cachekv/memiterator.go @@ -2,8 +2,8 @@ package cachekv import ( "errors" - kv "github.com/okx/okbchain/libs/cosmos-sdk/types/kv" - dbm "github.com/okx/okbchain/libs/tm-db" + kv "github.com/okx/brczero/libs/cosmos-sdk/types/kv" + dbm "github.com/okx/brczero/libs/tm-db" ) // Iterates over iterKVCache items. diff --git a/libs/cosmos-sdk/store/cachekv/mergeiterator.go b/libs/cosmos-sdk/store/cachekv/mergeiterator.go index 8c7523613..0e99ee1b6 100644 --- a/libs/cosmos-sdk/store/cachekv/mergeiterator.go +++ b/libs/cosmos-sdk/store/cachekv/mergeiterator.go @@ -4,7 +4,7 @@ import ( "bytes" "errors" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) // cacheMergeIterator merges a parent Iterator and a cache Iterator. diff --git a/libs/cosmos-sdk/store/cachekv/store.go b/libs/cosmos-sdk/store/cachekv/store.go index f21f1a484..77a085b81 100644 --- a/libs/cosmos-sdk/store/cachekv/store.go +++ b/libs/cosmos-sdk/store/cachekv/store.go @@ -10,13 +10,13 @@ import ( "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/iavl" - "github.com/okx/okbchain/libs/system/trace" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/iavl" + "github.com/okx/brczero/libs/system/trace" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/store/tracekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - kv "github.com/okx/okbchain/libs/cosmos-sdk/types/kv" + "github.com/okx/brczero/libs/cosmos-sdk/store/tracekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + kv "github.com/okx/brczero/libs/cosmos-sdk/types/kv" ) // If value is nil but deleted is false, it means the parent doesn't have the diff --git a/libs/cosmos-sdk/store/cachekv/store_bench_test.go b/libs/cosmos-sdk/store/cachekv/store_bench_test.go index efe7bb133..93c43c7f2 100644 --- a/libs/cosmos-sdk/store/cachekv/store_bench_test.go +++ b/libs/cosmos-sdk/store/cachekv/store_bench_test.go @@ -5,10 +5,10 @@ import ( "sort" "testing" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" ) func benchmarkCacheKVStoreIterator(numKVs int, b *testing.B) { diff --git a/libs/cosmos-sdk/store/cachekv/store_test.go b/libs/cosmos-sdk/store/cachekv/store_test.go index b0df4146b..6024b88c3 100644 --- a/libs/cosmos-sdk/store/cachekv/store_test.go +++ b/libs/cosmos-sdk/store/cachekv/store_test.go @@ -4,13 +4,13 @@ import ( "fmt" "testing" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - dbm "github.com/okx/okbchain/libs/tm-db" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) func newCacheKVStore() types.CacheKVStore { diff --git a/libs/cosmos-sdk/store/cachemulti/store.go b/libs/cosmos-sdk/store/cachemulti/store.go index caf1ff7df..63a60518d 100644 --- a/libs/cosmos-sdk/store/cachemulti/store.go +++ b/libs/cosmos-sdk/store/cachemulti/store.go @@ -5,11 +5,11 @@ import ( "io" "sync" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) //---------------------------------------- diff --git a/libs/cosmos-sdk/store/cachemulti/store_test.go b/libs/cosmos-sdk/store/cachemulti/store_test.go index 51777ddcd..a615508f1 100644 --- a/libs/cosmos-sdk/store/cachemulti/store_test.go +++ b/libs/cosmos-sdk/store/cachemulti/store_test.go @@ -5,10 +5,10 @@ import ( "strconv" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/store/dbadapter/store.go b/libs/cosmos-sdk/store/dbadapter/store.go index fa52f5b91..0b26e08de 100644 --- a/libs/cosmos-sdk/store/dbadapter/store.go +++ b/libs/cosmos-sdk/store/dbadapter/store.go @@ -3,11 +3,11 @@ package dbadapter import ( "io" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/tracekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/tracekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) // Wrapper type for dbm.Db with implementation of KVStore diff --git a/libs/cosmos-sdk/store/firstlast.go b/libs/cosmos-sdk/store/firstlast.go index 8843a0332..c28f1f528 100644 --- a/libs/cosmos-sdk/store/firstlast.go +++ b/libs/cosmos-sdk/store/firstlast.go @@ -3,9 +3,9 @@ package store import ( "bytes" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) // Gets the first item. diff --git a/libs/cosmos-sdk/store/flatkv/store.go b/libs/cosmos-sdk/store/flatkv/store.go index 41263be56..2d064d5d3 100644 --- a/libs/cosmos-sdk/store/flatkv/store.go +++ b/libs/cosmos-sdk/store/flatkv/store.go @@ -4,7 +4,7 @@ import ( "sync/atomic" "time" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/spf13/viper" ) diff --git a/libs/cosmos-sdk/store/flatkv/wire.go b/libs/cosmos-sdk/store/flatkv/wire.go index a3fa2e574..07d4df6c6 100644 --- a/libs/cosmos-sdk/store/flatkv/wire.go +++ b/libs/cosmos-sdk/store/flatkv/wire.go @@ -1,7 +1,7 @@ package flatkv import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) var cdc = codec.New() diff --git a/libs/cosmos-sdk/store/gaskv/store.go b/libs/cosmos-sdk/store/gaskv/store.go index 6dc332b01..94df69d77 100644 --- a/libs/cosmos-sdk/store/gaskv/store.go +++ b/libs/cosmos-sdk/store/gaskv/store.go @@ -3,7 +3,7 @@ package gaskv import ( "io" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) var _ types.KVStore = &Store{} diff --git a/libs/cosmos-sdk/store/gaskv/store_test.go b/libs/cosmos-sdk/store/gaskv/store_test.go index cf3119832..8afa24388 100644 --- a/libs/cosmos-sdk/store/gaskv/store_test.go +++ b/libs/cosmos-sdk/store/gaskv/store_test.go @@ -4,11 +4,11 @@ import ( "fmt" "testing" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" - "github.com/okx/okbchain/libs/cosmos-sdk/store/gaskv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/gaskv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/store/iavl/iavl_store.go b/libs/cosmos-sdk/store/iavl/iavl_store.go index 1af4e18d7..9b5a7c53c 100644 --- a/libs/cosmos-sdk/store/iavl/iavl_store.go +++ b/libs/cosmos-sdk/store/iavl/iavl_store.go @@ -3,15 +3,15 @@ package iavl import ( "errors" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/flatkv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/tracekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/iavl" - iavlconfig "github.com/okx/okbchain/libs/iavl/config" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/flatkv" + "github.com/okx/brczero/libs/cosmos-sdk/store/tracekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/iavl" + iavlconfig "github.com/okx/brczero/libs/iavl/config" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" + dbm "github.com/okx/brczero/libs/tm-db" "io" "sync" ) diff --git a/libs/cosmos-sdk/store/iavl/store_ibc_adapter.go b/libs/cosmos-sdk/store/iavl/store_ibc_adapter.go index 3826a9ac4..abba135e2 100644 --- a/libs/cosmos-sdk/store/iavl/store_ibc_adapter.go +++ b/libs/cosmos-sdk/store/iavl/store_ibc_adapter.go @@ -4,12 +4,12 @@ import ( "fmt" ics23 "github.com/confio/ics23/go" - storetyeps "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/iavl" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + storetyeps "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/iavl" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) func (st *Store) queryWithCM40(req abci.RequestQuery) (res abci.ResponseQuery) { diff --git a/libs/cosmos-sdk/store/iavl/store_test.go b/libs/cosmos-sdk/store/iavl/store_test.go index c26e34964..914eb3c14 100644 --- a/libs/cosmos-sdk/store/iavl/store_test.go +++ b/libs/cosmos-sdk/store/iavl/store_test.go @@ -9,15 +9,15 @@ import ( "strings" "testing" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/iavl" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/iavl" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) var ( diff --git a/libs/cosmos-sdk/store/iavl/tree.go b/libs/cosmos-sdk/store/iavl/tree.go index 28d38414a..9b69da0f8 100644 --- a/libs/cosmos-sdk/store/iavl/tree.go +++ b/libs/cosmos-sdk/store/iavl/tree.go @@ -3,7 +3,7 @@ package iavl import ( "fmt" - "github.com/okx/okbchain/libs/iavl" + "github.com/okx/brczero/libs/iavl" ) var ( diff --git a/libs/cosmos-sdk/store/iavl/wire.go b/libs/cosmos-sdk/store/iavl/wire.go index 0d534984e..9e5017a50 100644 --- a/libs/cosmos-sdk/store/iavl/wire.go +++ b/libs/cosmos-sdk/store/iavl/wire.go @@ -1,7 +1,7 @@ package iavl import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) var cdc = codec.New() diff --git a/libs/cosmos-sdk/store/internal/maps/maps.go b/libs/cosmos-sdk/store/internal/maps/maps.go index 166d9b073..767e7ca06 100644 --- a/libs/cosmos-sdk/store/internal/maps/maps.go +++ b/libs/cosmos-sdk/store/internal/maps/maps.go @@ -2,10 +2,10 @@ package maps import ( "encoding/binary" - "github.com/okx/okbchain/libs/cosmos-sdk/types/kv" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - merkle2 "github.com/okx/okbchain/libs/tendermint/proto/crypto/merkle" + "github.com/okx/brczero/libs/cosmos-sdk/types/kv" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + merkle2 "github.com/okx/brczero/libs/tendermint/proto/crypto/merkle" ) // merkleMap defines a merkle-ized tree from a map. Leave values are treated as diff --git a/libs/cosmos-sdk/store/internal/proofs/convert.go b/libs/cosmos-sdk/store/internal/proofs/convert.go index 9ba9405e7..48f1f89a9 100644 --- a/libs/cosmos-sdk/store/internal/proofs/convert.go +++ b/libs/cosmos-sdk/store/internal/proofs/convert.go @@ -2,7 +2,7 @@ package proofs import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/proto/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/proto/crypto/merkle" "math/bits" ics23 "github.com/confio/ics23/go" diff --git a/libs/cosmos-sdk/store/internal/proofs/create.go b/libs/cosmos-sdk/store/internal/proofs/create.go index 66f05d966..c31609c14 100644 --- a/libs/cosmos-sdk/store/internal/proofs/create.go +++ b/libs/cosmos-sdk/store/internal/proofs/create.go @@ -3,7 +3,7 @@ package proofs import ( "errors" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/internal/maps" + "github.com/okx/brczero/libs/cosmos-sdk/store/internal/maps" "sort" ics23 "github.com/confio/ics23/go" diff --git a/libs/cosmos-sdk/store/internal/proofs/helpers.go b/libs/cosmos-sdk/store/internal/proofs/helpers.go index 00897a12c..bcf898c19 100644 --- a/libs/cosmos-sdk/store/internal/proofs/helpers.go +++ b/libs/cosmos-sdk/store/internal/proofs/helpers.go @@ -1,9 +1,9 @@ package proofs import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/internal/maps" - "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/proto/crypto/merkle" + "github.com/okx/brczero/libs/cosmos-sdk/store/internal/maps" + "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/proto/crypto/merkle" "sort" ) diff --git a/libs/cosmos-sdk/store/list/list.go b/libs/cosmos-sdk/store/list/list.go index 8006c9481..b0d5ddd2a 100644 --- a/libs/cosmos-sdk/store/list/list.go +++ b/libs/cosmos-sdk/store/list/list.go @@ -4,9 +4,9 @@ import ( "fmt" "strconv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) // Key for the length of the list diff --git a/libs/cosmos-sdk/store/list/list_test.go b/libs/cosmos-sdk/store/list/list_test.go index a8c4b8d86..df3c5be3c 100644 --- a/libs/cosmos-sdk/store/list/list_test.go +++ b/libs/cosmos-sdk/store/list/list_test.go @@ -4,16 +4,16 @@ import ( "math/rand" "testing" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type TestStruct struct { diff --git a/libs/cosmos-sdk/store/listenkv/store.go b/libs/cosmos-sdk/store/listenkv/store.go index 75bbb76d2..59f494f7e 100644 --- a/libs/cosmos-sdk/store/listenkv/store.go +++ b/libs/cosmos-sdk/store/listenkv/store.go @@ -1,7 +1,7 @@ package listenkv import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" "io" ) diff --git a/libs/cosmos-sdk/store/mem/store.go b/libs/cosmos-sdk/store/mem/store.go index c4de6daec..466f69a21 100644 --- a/libs/cosmos-sdk/store/mem/store.go +++ b/libs/cosmos-sdk/store/mem/store.go @@ -3,13 +3,13 @@ package mem import ( "io" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/listenkv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/tracekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/listenkv" + "github.com/okx/brczero/libs/cosmos-sdk/store/tracekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" ) var ( diff --git a/libs/cosmos-sdk/store/mpt/asyncdb.go b/libs/cosmos-sdk/store/mpt/asyncdb.go index 208fc24a6..d82d2344c 100644 --- a/libs/cosmos-sdk/store/mpt/asyncdb.go +++ b/libs/cosmos-sdk/store/mpt/asyncdb.go @@ -9,7 +9,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/tendermint/go-amino" ) diff --git a/libs/cosmos-sdk/store/mpt/immutable_store.go b/libs/cosmos-sdk/store/mpt/immutable_store.go index 14762c0d2..8decf2028 100644 --- a/libs/cosmos-sdk/store/mpt/immutable_store.go +++ b/libs/cosmos-sdk/store/mpt/immutable_store.go @@ -3,15 +3,15 @@ package mpt import ( "encoding/hex" "fmt" - mpttype "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt/types" + mpttype "github.com/okx/brczero/libs/cosmos-sdk/store/mpt/types" "io" "sync" ethcmn "github.com/ethereum/go-ethereum/common" ethstate "github.com/ethereum/go-ethereum/core/state" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/tracekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/tracekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) type ImmutableMptStore struct { diff --git a/libs/cosmos-sdk/store/mpt/instance.go b/libs/cosmos-sdk/store/mpt/instance.go index dbfec5096..5630095e6 100644 --- a/libs/cosmos-sdk/store/mpt/instance.go +++ b/libs/cosmos-sdk/store/mpt/instance.go @@ -10,9 +10,9 @@ import ( "github.com/ethereum/go-ethereum/core/rawdb" ethstate "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/spf13/viper" ) diff --git a/libs/cosmos-sdk/store/mpt/instance_test.go b/libs/cosmos-sdk/store/mpt/instance_test.go index 87ebf521c..b345b1152 100644 --- a/libs/cosmos-sdk/store/mpt/instance_test.go +++ b/libs/cosmos-sdk/store/mpt/instance_test.go @@ -8,10 +8,11 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/types" "github.com/spf13/viper" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) type InstanceTestSuite struct { @@ -25,8 +26,8 @@ func TestInstanceTestSuite(t *testing.T) { } func (suite *InstanceTestSuite) SetupTest() { - // set okbchaind path - serverDir, err := ioutil.TempDir("", ".okbchaind") + // set brczerod path + serverDir, err := ioutil.TempDir("", ".brczerod") if err != nil { panic(err) } diff --git a/libs/cosmos-sdk/store/mpt/params.go b/libs/cosmos-sdk/store/mpt/params.go index 0deb7a9ed..887743265 100644 --- a/libs/cosmos-sdk/store/mpt/params.go +++ b/libs/cosmos-sdk/store/mpt/params.go @@ -3,7 +3,7 @@ package mpt import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/store/mpt/proof.go b/libs/cosmos-sdk/store/mpt/proof.go index dbf05e4f8..79ff38910 100644 --- a/libs/cosmos-sdk/store/mpt/proof.go +++ b/libs/cosmos-sdk/store/mpt/proof.go @@ -1,7 +1,7 @@ package mpt import ( - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) type ProofList [][]byte diff --git a/libs/cosmos-sdk/store/mpt/snapshot.go b/libs/cosmos-sdk/store/mpt/snapshot.go index c89e530fe..7c2a210ac 100644 --- a/libs/cosmos-sdk/store/mpt/snapshot.go +++ b/libs/cosmos-sdk/store/mpt/snapshot.go @@ -5,8 +5,8 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/rawdb" "github.com/ethereum/go-ethereum/core/state/snapshot" - mpttypes "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt/types" - "github.com/okx/okbchain/libs/tendermint/global" + mpttypes "github.com/okx/brczero/libs/cosmos-sdk/store/mpt/types" + "github.com/okx/brczero/libs/tendermint/global" ) var ( diff --git a/libs/cosmos-sdk/store/mpt/snapshot_test.go b/libs/cosmos-sdk/store/mpt/snapshot_test.go index d9794429d..7d97712eb 100644 --- a/libs/cosmos-sdk/store/mpt/snapshot_test.go +++ b/libs/cosmos-sdk/store/mpt/snapshot_test.go @@ -6,7 +6,7 @@ import ( "github.com/ethereum/go-ethereum/core/rawdb" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/ethdb/memorydb" - tmlog "github.com/okx/okbchain/libs/tendermint/libs/log" + tmlog "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/stretchr/testify/require" "testing" ) diff --git a/libs/cosmos-sdk/store/mpt/statistics_test.go b/libs/cosmos-sdk/store/mpt/statistics_test.go index 7cb7da2aa..9eac349c9 100644 --- a/libs/cosmos-sdk/store/mpt/statistics_test.go +++ b/libs/cosmos-sdk/store/mpt/statistics_test.go @@ -3,7 +3,7 @@ package mpt import ( "fmt" "github.com/ethereum/go-ethereum/ethdb" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt/types" "github.com/stretchr/testify/assert" "testing" ) diff --git a/libs/cosmos-sdk/store/mpt/store.go b/libs/cosmos-sdk/store/mpt/store.go index 9c66f5530..5ecb89fb0 100644 --- a/libs/cosmos-sdk/store/mpt/store.go +++ b/libs/cosmos-sdk/store/mpt/store.go @@ -3,7 +3,7 @@ package mpt import ( "encoding/hex" "fmt" - "github.com/okx/okbchain/libs/system/trace/persist" + "github.com/okx/brczero/libs/system/trace/persist" "io" "sync" "time" @@ -16,18 +16,18 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - mpttype "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/tracekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/iavl" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - tmlog "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + mpttype "github.com/okx/brczero/libs/cosmos-sdk/store/mpt/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/tracekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/iavl" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + tmlog "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/cosmos-sdk/store/mpt/store_iterator.go b/libs/cosmos-sdk/store/mpt/store_iterator.go index dba9e9816..9cab80144 100644 --- a/libs/cosmos-sdk/store/mpt/store_iterator.go +++ b/libs/cosmos-sdk/store/mpt/store_iterator.go @@ -3,7 +3,7 @@ package mpt import ( ethstate "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) var _ types.Iterator = (*mptIterator)(nil) diff --git a/libs/cosmos-sdk/store/mpt/store_test.go b/libs/cosmos-sdk/store/mpt/store_test.go index 1aa76363c..da589c261 100644 --- a/libs/cosmos-sdk/store/mpt/store_test.go +++ b/libs/cosmos-sdk/store/mpt/store_test.go @@ -14,12 +14,13 @@ import ( "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/ethdb/memorydb" trie2 "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" "github.com/spf13/viper" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) var ( @@ -50,8 +51,8 @@ func TestStoreTestSuite(t *testing.T) { } func (suite *StoreTestSuite) SetupTest() { - // set okbchaind path - serverDir, err := ioutil.TempDir("", ".okbchaind") + // set brczerod path + serverDir, err := ioutil.TempDir("", ".brczerod") if err != nil { panic(err) } diff --git a/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb.go b/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb.go index e147407a6..f37154ac4 100644 --- a/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb.go +++ b/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb.go @@ -7,7 +7,7 @@ import ( "fmt" "github.com/cosmos/gorocksdb" "github.com/ethereum/go-ethereum/ethdb" - tmdb "github.com/okx/okbchain/libs/tm-db" + tmdb "github.com/okx/brczero/libs/tm-db" "github.com/pkg/errors" ) diff --git a/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb_batch.go b/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb_batch.go index 3e92a1064..04115b6a8 100644 --- a/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb_batch.go +++ b/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb_batch.go @@ -5,7 +5,7 @@ package types import ( "github.com/ethereum/go-ethereum/ethdb" - tmdb "github.com/okx/okbchain/libs/tm-db" + tmdb "github.com/okx/brczero/libs/tm-db" ) var _ ethdb.Batch = (*WrapRocksDBBatch)(nil) diff --git a/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb_iterator.go b/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb_iterator.go index 356528b1b..c8603b20c 100644 --- a/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb_iterator.go +++ b/libs/cosmos-sdk/store/mpt/types/wrap_rocksdb_iterator.go @@ -5,7 +5,7 @@ package types import ( "github.com/ethereum/go-ethereum/ethdb" - tmdb "github.com/okx/okbchain/libs/tm-db" + tmdb "github.com/okx/brczero/libs/tm-db" ) var _ ethdb.Iterator = (*WrapRocksDBIterator)(nil) diff --git a/libs/cosmos-sdk/store/prefix/store.go b/libs/cosmos-sdk/store/prefix/store.go index 235c65d74..f7dbfaa42 100644 --- a/libs/cosmos-sdk/store/prefix/store.go +++ b/libs/cosmos-sdk/store/prefix/store.go @@ -5,9 +5,9 @@ import ( "errors" "io" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/tracekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/cachekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/tracekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) var _ types.KVStore = Store{} diff --git a/libs/cosmos-sdk/store/prefix/store_test.go b/libs/cosmos-sdk/store/prefix/store_test.go index da55c7a8d..3261c9e15 100644 --- a/libs/cosmos-sdk/store/prefix/store_test.go +++ b/libs/cosmos-sdk/store/prefix/store_test.go @@ -4,16 +4,16 @@ import ( "crypto/rand" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" - "github.com/okx/okbchain/libs/cosmos-sdk/store/gaskv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/gaskv" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" - tiavl "github.com/okx/okbchain/libs/iavl" - dbm "github.com/okx/okbchain/libs/tm-db" + tiavl "github.com/okx/brczero/libs/iavl" + dbm "github.com/okx/brczero/libs/tm-db" ) // copied from iavl/store_test.go diff --git a/libs/cosmos-sdk/store/queue/queue.go b/libs/cosmos-sdk/store/queue/queue.go index 0671e8394..e514dd49b 100644 --- a/libs/cosmos-sdk/store/queue/queue.go +++ b/libs/cosmos-sdk/store/queue/queue.go @@ -3,10 +3,10 @@ package store // TODO: make it independent from list /* import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/list" + "github.com/okx/brczero/libs/cosmos-sdk/store/list" ) // Key for the top element position in the queue diff --git a/libs/cosmos-sdk/store/reexport.go b/libs/cosmos-sdk/store/reexport.go index 9db4ce0c0..c96094222 100644 --- a/libs/cosmos-sdk/store/reexport.go +++ b/libs/cosmos-sdk/store/reexport.go @@ -1,7 +1,7 @@ package store import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) // Import cosmos-sdk/types/store.go for convenience. diff --git a/libs/cosmos-sdk/store/rootmulti/commit_info_ibc_adapter.go b/libs/cosmos-sdk/store/rootmulti/commit_info_ibc_adapter.go index 245ab3bac..97f6c378c 100644 --- a/libs/cosmos-sdk/store/rootmulti/commit_info_ibc_adapter.go +++ b/libs/cosmos-sdk/store/rootmulti/commit_info_ibc_adapter.go @@ -3,10 +3,10 @@ package rootmulti import ( "fmt" ics23 "github.com/confio/ics23/go" - sdkmaps "github.com/okx/okbchain/libs/cosmos-sdk/store/internal/maps" - sdkproofs "github.com/okx/okbchain/libs/cosmos-sdk/store/internal/proofs" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + sdkmaps "github.com/okx/brczero/libs/cosmos-sdk/store/internal/maps" + sdkproofs "github.com/okx/brczero/libs/cosmos-sdk/store/internal/proofs" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) func (ci commitInfo) ProofOp(storeName string) merkle.ProofOp { diff --git a/libs/cosmos-sdk/store/rootmulti/dbadapter.go b/libs/cosmos-sdk/store/rootmulti/dbadapter.go index 223c77933..c1d7d5082 100644 --- a/libs/cosmos-sdk/store/rootmulti/dbadapter.go +++ b/libs/cosmos-sdk/store/rootmulti/dbadapter.go @@ -1,9 +1,9 @@ package rootmulti import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/iavl" ) var commithash = []byte("FAKE_HASH") diff --git a/libs/cosmos-sdk/store/rootmulti/proof.go b/libs/cosmos-sdk/store/rootmulti/proof.go index b4293f130..708b9d3b9 100644 --- a/libs/cosmos-sdk/store/rootmulti/proof.go +++ b/libs/cosmos-sdk/store/rootmulti/proof.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/iavl" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/iavl" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) // MultiStoreProof defines a collection of store proofs in a multi-store diff --git a/libs/cosmos-sdk/store/rootmulti/proof_test.go b/libs/cosmos-sdk/store/rootmulti/proof_test.go index cf45345e0..8502bfe87 100644 --- a/libs/cosmos-sdk/store/rootmulti/proof_test.go +++ b/libs/cosmos-sdk/store/rootmulti/proof_test.go @@ -3,12 +3,12 @@ package rootmulti import ( "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) func TestVerifyIAVLStoreQueryProof(t *testing.T) { diff --git a/libs/cosmos-sdk/store/rootmulti/rootmulti_store.go b/libs/cosmos-sdk/store/rootmulti/rootmulti_store.go index c757c945f..6a9268c2e 100644 --- a/libs/cosmos-sdk/store/rootmulti/rootmulti_store.go +++ b/libs/cosmos-sdk/store/rootmulti/rootmulti_store.go @@ -3,7 +3,6 @@ package rootmulti import ( "encoding/binary" "fmt" - "github.com/okx/okbchain/libs/tendermint/global" "io" "log" "path/filepath" @@ -12,32 +11,35 @@ import ( "sync" "time" + "github.com/okx/brczero/libs/tendermint/global" + "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cachemulti" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" - "github.com/okx/okbchain/libs/cosmos-sdk/store/flatkv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - sdkmaps "github.com/okx/okbchain/libs/cosmos-sdk/store/internal/maps" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mem" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/tracekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/transient" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - iavltree "github.com/okx/okbchain/libs/iavl" - "github.com/okx/okbchain/libs/iavl/config" - "github.com/okx/okbchain/libs/system/trace" - "github.com/okx/okbchain/libs/system/trace/persist" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmlog "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" "github.com/pkg/errors" "github.com/spf13/viper" + + "github.com/okx/brczero/libs/cosmos-sdk/store/cachemulti" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/flatkv" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + sdkmaps "github.com/okx/brczero/libs/cosmos-sdk/store/internal/maps" + "github.com/okx/brczero/libs/cosmos-sdk/store/mem" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/tracekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/transient" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + iavltree "github.com/okx/brczero/libs/iavl" + "github.com/okx/brczero/libs/iavl/config" + "github.com/okx/brczero/libs/system/trace" + "github.com/okx/brczero/libs/system/trace/persist" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmlog "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) const ( @@ -456,7 +458,7 @@ func (rs *Store) loadVersion(ver int64, upgrades *types.StoreUpgrades) error { if !IgPruneHeightsLen && len(rs.pruneHeights) > maxPruneHeightsLength { return fmt.Errorf("Pruned heights length <%d> exceeds <%d>, "+ "need to prune them with command "+ - " before running okbchaind", + " before running brczerod", len(rs.pruneHeights), maxPruneHeightsLength) } return nil diff --git a/libs/cosmos-sdk/store/rootmulti/store_ok_adapter.go b/libs/cosmos-sdk/store/rootmulti/store_ok_adapter.go index da5c5690b..5dab7fe7d 100644 --- a/libs/cosmos-sdk/store/rootmulti/store_ok_adapter.go +++ b/libs/cosmos-sdk/store/rootmulti/store_ok_adapter.go @@ -1,9 +1,9 @@ package rootmulti import ( - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) func queryIbcProof(res *abci.ResponseQuery, info *commitInfo, storeName string) { diff --git a/libs/cosmos-sdk/store/rootmulti/store_test.go b/libs/cosmos-sdk/store/rootmulti/store_test.go index e5b19999e..c9e77bdcd 100644 --- a/libs/cosmos-sdk/store/rootmulti/store_test.go +++ b/libs/cosmos-sdk/store/rootmulti/store_test.go @@ -9,19 +9,19 @@ import ( "strings" "testing" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - iavltree "github.com/okx/okbchain/libs/iavl" + iavltree "github.com/okx/brczero/libs/iavl" "github.com/stretchr/testify/assert" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) func TestStoreType(t *testing.T) { diff --git a/libs/cosmos-sdk/store/rootmulti/wire.go b/libs/cosmos-sdk/store/rootmulti/wire.go index b489dc0a7..6f3ea8bcb 100644 --- a/libs/cosmos-sdk/store/rootmulti/wire.go +++ b/libs/cosmos-sdk/store/rootmulti/wire.go @@ -1,7 +1,7 @@ package rootmulti import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) var cdc = codec.New() diff --git a/libs/cosmos-sdk/store/store.go b/libs/cosmos-sdk/store/store.go index 4d1f4ec7e..b8f5153aa 100644 --- a/libs/cosmos-sdk/store/store.go +++ b/libs/cosmos-sdk/store/store.go @@ -1,11 +1,11 @@ package store import ( - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/store/cache" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/cache" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) func NewCommitMultiStore(db dbm.DB) types.CommitMultiStore { diff --git a/libs/cosmos-sdk/store/tracekv/store.go b/libs/cosmos-sdk/store/tracekv/store.go index ec2b9833a..beeea6234 100644 --- a/libs/cosmos-sdk/store/tracekv/store.go +++ b/libs/cosmos-sdk/store/tracekv/store.go @@ -6,7 +6,7 @@ import ( "fmt" "io" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) const ( diff --git a/libs/cosmos-sdk/store/tracekv/store_test.go b/libs/cosmos-sdk/store/tracekv/store_test.go index 64c4f710d..90813bbf6 100644 --- a/libs/cosmos-sdk/store/tracekv/store_test.go +++ b/libs/cosmos-sdk/store/tracekv/store_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - "github.com/okx/okbchain/libs/cosmos-sdk/store/tracekv" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + "github.com/okx/brczero/libs/cosmos-sdk/store/tracekv" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) func bz(s string) []byte { return []byte(s) } diff --git a/libs/cosmos-sdk/store/transient/store_test.go b/libs/cosmos-sdk/store/transient/store_test.go index 63d5b9c49..ebf2ec5b8 100644 --- a/libs/cosmos-sdk/store/transient/store_test.go +++ b/libs/cosmos-sdk/store/transient/store_test.go @@ -1,7 +1,7 @@ package transient import ( - "github.com/okx/okbchain/libs/iavl" + "github.com/okx/brczero/libs/iavl" "testing" "github.com/stretchr/testify/require" diff --git a/libs/cosmos-sdk/store/transient/transient_store.go b/libs/cosmos-sdk/store/transient/transient_store.go index dab123946..6812372bc 100644 --- a/libs/cosmos-sdk/store/transient/transient_store.go +++ b/libs/cosmos-sdk/store/transient/transient_store.go @@ -1,11 +1,11 @@ package transient import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/iavl" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/iavl" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" ) var _ types.Committer = (*Store)(nil) diff --git a/libs/cosmos-sdk/store/types/commit_info.go b/libs/cosmos-sdk/store/types/commit_info.go index 4a8e9e466..d6520b7c8 100644 --- a/libs/cosmos-sdk/store/types/commit_info.go +++ b/libs/cosmos-sdk/store/types/commit_info.go @@ -2,9 +2,9 @@ package types import ( fmt "fmt" - sdkmaps "github.com/okx/okbchain/libs/cosmos-sdk/store/internal/maps" - sdkproofs "github.com/okx/okbchain/libs/cosmos-sdk/store/internal/proofs" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + sdkmaps "github.com/okx/brczero/libs/cosmos-sdk/store/internal/maps" + sdkproofs "github.com/okx/brczero/libs/cosmos-sdk/store/internal/proofs" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ics23 "github.com/confio/ics23/go" ) diff --git a/libs/cosmos-sdk/store/types/iterator_test.go b/libs/cosmos-sdk/store/types/iterator_test.go index c0bb6b546..7b380b9cc 100644 --- a/libs/cosmos-sdk/store/types/iterator_test.go +++ b/libs/cosmos-sdk/store/types/iterator_test.go @@ -3,11 +3,11 @@ package types_test import ( "testing" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) func newMemTestKVStore(t *testing.T) types.KVStore { diff --git a/libs/cosmos-sdk/store/types/listening.go b/libs/cosmos-sdk/store/types/listening.go index 406cf4e02..5e09f0278 100644 --- a/libs/cosmos-sdk/store/types/listening.go +++ b/libs/cosmos-sdk/store/types/listening.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" "io" ) diff --git a/libs/cosmos-sdk/store/types/store.go b/libs/cosmos-sdk/store/types/store.go index aec771706..a61b1c855 100644 --- a/libs/cosmos-sdk/store/types/store.go +++ b/libs/cosmos-sdk/store/types/store.go @@ -4,12 +4,12 @@ import ( "fmt" "io" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmstrings "github.com/okx/okbchain/libs/tendermint/libs/strings" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmstrings "github.com/okx/brczero/libs/tendermint/libs/strings" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) const ( diff --git a/libs/cosmos-sdk/store/types/store_ok_adapter.go b/libs/cosmos-sdk/store/types/store_ok_adapter.go index 2874381b6..4d8ca87d9 100644 --- a/libs/cosmos-sdk/store/types/store_ok_adapter.go +++ b/libs/cosmos-sdk/store/types/store_ok_adapter.go @@ -4,8 +4,8 @@ import ( "fmt" ics23 "github.com/confio/ics23/go" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) const ( diff --git a/libs/cosmos-sdk/store/types/utils.go b/libs/cosmos-sdk/store/types/utils.go index 0dda2310d..e732a60e2 100644 --- a/libs/cosmos-sdk/store/types/utils.go +++ b/libs/cosmos-sdk/store/types/utils.go @@ -3,7 +3,7 @@ package types import ( "bytes" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" ) // Iterator over all the keys with a certain prefix in ascending order diff --git a/libs/cosmos-sdk/tests/mocks/types_handler.go b/libs/cosmos-sdk/tests/mocks/types_handler.go index 8112579ca..f76224085 100644 --- a/libs/cosmos-sdk/tests/mocks/types_handler.go +++ b/libs/cosmos-sdk/tests/mocks/types_handler.go @@ -8,7 +8,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - types "github.com/okx/okbchain/libs/cosmos-sdk/types" + types "github.com/okx/brczero/libs/cosmos-sdk/types" ) // MockAnteDecorator is a mock of AnteDecorator interface diff --git a/libs/cosmos-sdk/tests/util.go b/libs/cosmos-sdk/tests/util.go index af0fbeb01..bbe40f407 100644 --- a/libs/cosmos-sdk/tests/util.go +++ b/libs/cosmos-sdk/tests/util.go @@ -9,12 +9,12 @@ import ( "testing" "time" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmjsonrpc "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/client" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmjsonrpc "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/client" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // Wait for the next tendermint block from the Tendermint RPC diff --git a/libs/cosmos-sdk/types/abci.go b/libs/cosmos-sdk/types/abci.go index e495ed2cd..0eda34e30 100644 --- a/libs/cosmos-sdk/types/abci.go +++ b/libs/cosmos-sdk/types/abci.go @@ -1,6 +1,6 @@ package types -import abci "github.com/okx/okbchain/libs/tendermint/abci/types" +import abci "github.com/okx/brczero/libs/tendermint/abci/types" // InitChainer initializes application state at genesis type InitChainer func(ctx Context, req abci.RequestInitChain) abci.ResponseInitChain diff --git a/libs/cosmos-sdk/types/address.go b/libs/cosmos-sdk/types/address.go index 8c379fa6e..9d7137a1d 100644 --- a/libs/cosmos-sdk/types/address.go +++ b/libs/cosmos-sdk/types/address.go @@ -8,11 +8,11 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto" + tmamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" yaml "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/tendermint/libs/bech32" + "github.com/okx/brczero/libs/tendermint/libs/bech32" ) const ( diff --git a/libs/cosmos-sdk/types/address_exchain.go b/libs/cosmos-sdk/types/address_exchain.go index 4b24d7d8f..3f36be2e8 100644 --- a/libs/cosmos-sdk/types/address_exchain.go +++ b/libs/cosmos-sdk/types/address_exchain.go @@ -3,8 +3,8 @@ package types import ( "crypto/sha256" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/crypto" ) // MustBech32ifyAccPub returns the result of Bech32ifyAccPub panicing on failure. diff --git a/libs/cosmos-sdk/types/address_test.go b/libs/cosmos-sdk/types/address_test.go index 8f4ed0d73..d84e211cc 100644 --- a/libs/cosmos-sdk/types/address_test.go +++ b/libs/cosmos-sdk/types/address_test.go @@ -7,15 +7,15 @@ import ( "strings" "testing" - evmtypes "github.com/okx/okbchain/x/evm/types" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/stretchr/testify/require" yaml "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) var invalidStrs = []string{ diff --git a/libs/cosmos-sdk/types/bench_test.go b/libs/cosmos-sdk/types/bench_test.go index af3537a73..d38a5ae28 100644 --- a/libs/cosmos-sdk/types/bench_test.go +++ b/libs/cosmos-sdk/types/bench_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) var coinStrs = []string{ diff --git a/libs/cosmos-sdk/types/cache.go b/libs/cosmos-sdk/types/cache.go index f82e19c78..6c946ae02 100644 --- a/libs/cosmos-sdk/types/cache.go +++ b/libs/cosmos-sdk/types/cache.go @@ -4,7 +4,7 @@ import ( "time" ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) type Account interface { diff --git a/libs/cosmos-sdk/types/codec.go b/libs/cosmos-sdk/types/codec.go index 253ab8be6..85a11c966 100644 --- a/libs/cosmos-sdk/types/codec.go +++ b/libs/cosmos-sdk/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) const ( diff --git a/libs/cosmos-sdk/types/coin_ibc.go b/libs/cosmos-sdk/types/coin_ibc.go index 11f8d5f28..74f58a17f 100644 --- a/libs/cosmos-sdk/types/coin_ibc.go +++ b/libs/cosmos-sdk/types/coin_ibc.go @@ -3,11 +3,11 @@ package types import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "regexp" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/libs/cosmos-sdk/types/config.go b/libs/cosmos-sdk/types/config.go index 16b737a66..f368271a2 100644 --- a/libs/cosmos-sdk/types/config.go +++ b/libs/cosmos-sdk/types/config.go @@ -5,7 +5,7 @@ import ( "sync" "sync/atomic" - "github.com/okx/okbchain/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/version" ) // DefaultKeyringServiceName defines a default service name for the keyring. diff --git a/libs/cosmos-sdk/types/config_test.go b/libs/cosmos-sdk/types/config_test.go index 3fece4a7a..d455bb614 100644 --- a/libs/cosmos-sdk/types/config_test.go +++ b/libs/cosmos-sdk/types/config_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestConfig_SetCoinType(t *testing.T) { diff --git a/libs/cosmos-sdk/types/context.go b/libs/cosmos-sdk/types/context.go index 506249bd9..e536637fd 100644 --- a/libs/cosmos-sdk/types/context.go +++ b/libs/cosmos-sdk/types/context.go @@ -8,11 +8,11 @@ import ( "github.com/ethereum/go-ethereum/core/vm" "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/store/gaskv" - stypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/store/gaskv" + stypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" ) /* diff --git a/libs/cosmos-sdk/types/context_test.go b/libs/cosmos-sdk/types/context_test.go index f73719cd2..18b0793f9 100644 --- a/libs/cosmos-sdk/types/context_test.go +++ b/libs/cosmos-sdk/types/context_test.go @@ -7,15 +7,15 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) type MockLogger struct { diff --git a/libs/cosmos-sdk/types/decimal_test.go b/libs/cosmos-sdk/types/decimal_test.go index 022736037..c7f9d4279 100644 --- a/libs/cosmos-sdk/types/decimal_test.go +++ b/libs/cosmos-sdk/types/decimal_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // create a decimal from a decimal string (ex. "1234.5678") diff --git a/libs/cosmos-sdk/types/errors/abci.go b/libs/cosmos-sdk/types/errors/abci.go index 160fbdc9c..79bd4aff6 100644 --- a/libs/cosmos-sdk/types/errors/abci.go +++ b/libs/cosmos-sdk/types/errors/abci.go @@ -4,7 +4,7 @@ import ( "fmt" "reflect" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) const ( diff --git a/libs/cosmos-sdk/types/errors/abci_test.go b/libs/cosmos-sdk/types/errors/abci_test.go index 94c1e23f7..b0198a979 100644 --- a/libs/cosmos-sdk/types/errors/abci_test.go +++ b/libs/cosmos-sdk/types/errors/abci_test.go @@ -140,7 +140,7 @@ func TestABCIInfoStacktrace(t *testing.T) { }, } - const thisTestSrc = "github.com/okx/okbchain/libs/cosmos-sdk/types/errors.TestABCIInfoStacktrace" + const thisTestSrc = "github.com/okx/brczero/libs/cosmos-sdk/types/errors.TestABCIInfoStacktrace" for testName, tc := range cases { tc := tc diff --git a/libs/cosmos-sdk/types/errors/stacktrace.go b/libs/cosmos-sdk/types/errors/stacktrace.go index c00c0d1a3..aff96be41 100644 --- a/libs/cosmos-sdk/types/errors/stacktrace.go +++ b/libs/cosmos-sdk/types/errors/stacktrace.go @@ -48,9 +48,9 @@ func trimInternal(st errors.StackTrace) errors.StackTrace { // manual error creation, or runtime for caught panics for matchesFunc(st[0], // where we create errors - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors.Wrap", - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors.Wrapf", - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors.WithType", + "github.com/okx/brczero/libs/cosmos-sdk/types/errors.Wrap", + "github.com/okx/brczero/libs/cosmos-sdk/types/errors.Wrapf", + "github.com/okx/brczero/libs/cosmos-sdk/types/errors.WithType", // runtime are added on panics "runtime.", // _test is defined in coverage tests, causing failure diff --git a/libs/cosmos-sdk/types/errors/stacktrace_test.go b/libs/cosmos-sdk/types/errors/stacktrace_test.go index 775256b5d..679a95227 100644 --- a/libs/cosmos-sdk/types/errors/stacktrace_test.go +++ b/libs/cosmos-sdk/types/errors/stacktrace_test.go @@ -33,8 +33,8 @@ func TestStackTrace(t *testing.T) { // Wrapping code is unwanted in the errors stack trace. unwantedSrc := []string{ - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors.Wrap\n", - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors.Wrapf\n", + "github.com/okx/brczero/libs/cosmos-sdk/types/errors.Wrap\n", + "github.com/okx/brczero/libs/cosmos-sdk/types/errors.Wrapf\n", "runtime.goexit\n", } const thisTestSrc = "types/errors/stacktrace_test.go" diff --git a/libs/cosmos-sdk/types/errors_exchain.go b/libs/cosmos-sdk/types/errors_exchain.go index cdc957a1c..70b396686 100644 --- a/libs/cosmos-sdk/types/errors_exchain.go +++ b/libs/cosmos-sdk/types/errors_exchain.go @@ -2,7 +2,7 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" "strings" ) diff --git a/libs/cosmos-sdk/types/events.go b/libs/cosmos-sdk/types/events.go index 5f357637a..e4511d433 100644 --- a/libs/cosmos-sdk/types/events.go +++ b/libs/cosmos-sdk/types/events.go @@ -7,8 +7,8 @@ import ( "sort" "strings" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" ) // ---------------------------------------------------------------------------- diff --git a/libs/cosmos-sdk/types/handler.go b/libs/cosmos-sdk/types/handler.go index 8d21554d6..1c3d52406 100644 --- a/libs/cosmos-sdk/types/handler.go +++ b/libs/cosmos-sdk/types/handler.go @@ -2,9 +2,9 @@ package types import ( "github.com/ethereum/go-ethereum/common" - stypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + stypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) // Handler defines the core of the state transition function of an application. diff --git a/libs/cosmos-sdk/types/handler_test.go b/libs/cosmos-sdk/types/handler_test.go index 8b7b24afe..314661ff0 100644 --- a/libs/cosmos-sdk/types/handler_test.go +++ b/libs/cosmos-sdk/types/handler_test.go @@ -6,8 +6,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/tests/mocks" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/tests/mocks" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestChainAnteDecorators(t *testing.T) { diff --git a/libs/cosmos-sdk/types/ibc-adapter/abci.pb.go b/libs/cosmos-sdk/types/ibc-adapter/abci.pb.go index 219e23a02..7a58b6b18 100644 --- a/libs/cosmos-sdk/types/ibc-adapter/abci.pb.go +++ b/libs/cosmos-sdk/types/ibc-adapter/abci.pb.go @@ -5,11 +5,11 @@ package types import ( fmt "fmt" - types "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + types "github.com/okx/brczero/libs/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - types1 "github.com/okx/okbchain/libs/tendermint/abci/types" - //costypes "github.com/okx/okbchain/libs/cosmos-sdk/types" + types1 "github.com/okx/brczero/libs/tendermint/abci/types" + //costypes "github.com/okx/brczero/libs/cosmos-sdk/types" io "io" math "math" math_bits "math/bits" diff --git a/libs/cosmos-sdk/types/ibc-adapter/events.go b/libs/cosmos-sdk/types/ibc-adapter/events.go index 1586b8104..77cef191f 100644 --- a/libs/cosmos-sdk/types/ibc-adapter/events.go +++ b/libs/cosmos-sdk/types/ibc-adapter/events.go @@ -9,10 +9,10 @@ import ( "github.com/gogo/protobuf/jsonpb" proto "github.com/gogo/protobuf/proto" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - kv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + kv "github.com/okx/brczero/libs/tendermint/libs/kv" ) // ---------------------------------------------------------------------------- diff --git a/libs/cosmos-sdk/types/ibc-adapter/result.go b/libs/cosmos-sdk/types/ibc-adapter/result.go index bb029c15f..b1e2657a5 100644 --- a/libs/cosmos-sdk/types/ibc-adapter/result.go +++ b/libs/cosmos-sdk/types/ibc-adapter/result.go @@ -7,12 +7,12 @@ import ( "strings" "github.com/gogo/protobuf/proto" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - costypes "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + costypes "github.com/okx/brczero/libs/cosmos-sdk/types" ) var cdc = codec.New() diff --git a/libs/cosmos-sdk/types/ibc-adapter/tx_msg.go b/libs/cosmos-sdk/types/ibc-adapter/tx_msg.go index 4159eceb8..0590970a2 100644 --- a/libs/cosmos-sdk/types/ibc-adapter/tx_msg.go +++ b/libs/cosmos-sdk/types/ibc-adapter/tx_msg.go @@ -3,9 +3,9 @@ package types import ( "github.com/gogo/protobuf/proto" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - costypes "github.com/okx/okbchain/libs/cosmos-sdk/types" - stdtx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + costypes "github.com/okx/brczero/libs/cosmos-sdk/types" + stdtx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) type ( diff --git a/libs/cosmos-sdk/types/module/adapter.go b/libs/cosmos-sdk/types/module/adapter.go index 929eea789..33faf8f1f 100644 --- a/libs/cosmos-sdk/types/module/adapter.go +++ b/libs/cosmos-sdk/types/module/adapter.go @@ -3,10 +3,10 @@ package module import ( "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/spf13/cobra" ) diff --git a/libs/cosmos-sdk/types/module/configurator.go b/libs/cosmos-sdk/types/module/configurator.go index 6056d9368..3a1e9ef5e 100644 --- a/libs/cosmos-sdk/types/module/configurator.go +++ b/libs/cosmos-sdk/types/module/configurator.go @@ -2,7 +2,7 @@ package module import ( "github.com/gogo/protobuf/grpc" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // Configurator provides the hooks to allow modules to configure and register diff --git a/libs/cosmos-sdk/types/module/module.go b/libs/cosmos-sdk/types/module/module.go index 5d7f2083a..47f0b9006 100644 --- a/libs/cosmos-sdk/types/module/module.go +++ b/libs/cosmos-sdk/types/module/module.go @@ -31,16 +31,16 @@ package module import ( "encoding/json" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) //__________________________________________________________________________________________ diff --git a/libs/cosmos-sdk/types/module/module_ibc_adapter.go b/libs/cosmos-sdk/types/module/module_ibc_adapter.go index 07433a299..9b7b891bc 100644 --- a/libs/cosmos-sdk/types/module/module_ibc_adapter.go +++ b/libs/cosmos-sdk/types/module/module_ibc_adapter.go @@ -3,8 +3,8 @@ package module import ( "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" ) // RegisterInterfaces registers all module interface types diff --git a/libs/cosmos-sdk/types/module/simulation.go b/libs/cosmos-sdk/types/module/simulation.go index 49bd174a8..3b8a72d61 100644 --- a/libs/cosmos-sdk/types/module/simulation.go +++ b/libs/cosmos-sdk/types/module/simulation.go @@ -6,9 +6,9 @@ import ( "math/rand" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // AppModuleSimulation defines the standard functions that every module should expose diff --git a/libs/cosmos-sdk/types/msgservice/msg_service.go b/libs/cosmos-sdk/types/msgservice/msg_service.go index 6f3c84e9e..a9768db51 100644 --- a/libs/cosmos-sdk/types/msgservice/msg_service.go +++ b/libs/cosmos-sdk/types/msgservice/msg_service.go @@ -3,8 +3,8 @@ package msgservice import ( "context" "fmt" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/gogo/protobuf/proto" "google.golang.org/grpc" diff --git a/libs/cosmos-sdk/types/query/filtered_pagination.go b/libs/cosmos-sdk/types/query/filtered_pagination.go index f555de9b0..1bfd7ecee 100644 --- a/libs/cosmos-sdk/types/query/filtered_pagination.go +++ b/libs/cosmos-sdk/types/query/filtered_pagination.go @@ -2,7 +2,7 @@ package query import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) // FilteredPaginate does pagination of all the results in the PrefixStore based on the diff --git a/libs/cosmos-sdk/types/query/pagination.go b/libs/cosmos-sdk/types/query/pagination.go index 4bc62a4c6..6322551c9 100644 --- a/libs/cosmos-sdk/types/query/pagination.go +++ b/libs/cosmos-sdk/types/query/pagination.go @@ -3,7 +3,7 @@ package query import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/libs/cosmos-sdk/types/queryable.go b/libs/cosmos-sdk/types/queryable.go index 062067711..094de7db6 100644 --- a/libs/cosmos-sdk/types/queryable.go +++ b/libs/cosmos-sdk/types/queryable.go @@ -1,7 +1,7 @@ package types import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) // Querier defines a function type that a module querier must implement to handle diff --git a/libs/cosmos-sdk/types/rest/rest.go b/libs/cosmos-sdk/types/rest/rest.go index 75be5e9e9..de317c8c6 100644 --- a/libs/cosmos-sdk/types/rest/rest.go +++ b/libs/cosmos-sdk/types/rest/rest.go @@ -13,13 +13,13 @@ import ( "strconv" "strings" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/tendermint/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/tendermint/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/types/rest/rest_test.go b/libs/cosmos-sdk/types/rest/rest_test.go index 2f0084aa7..8da09cf61 100644 --- a/libs/cosmos-sdk/types/rest/rest_test.go +++ b/libs/cosmos-sdk/types/rest/rest_test.go @@ -10,13 +10,13 @@ import ( "sort" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestBaseReqValidateBasic(t *testing.T) { diff --git a/libs/cosmos-sdk/types/result.go b/libs/cosmos-sdk/types/result.go index 0cac7a92c..980cbfeb8 100644 --- a/libs/cosmos-sdk/types/result.go +++ b/libs/cosmos-sdk/types/result.go @@ -10,10 +10,10 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" "github.com/tendermint/go-amino" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" ) // GasInfo defines tx execution gas context. diff --git a/libs/cosmos-sdk/types/result_test.go b/libs/cosmos-sdk/types/result_test.go index 2be44e5c4..288ed0640 100644 --- a/libs/cosmos-sdk/types/result_test.go +++ b/libs/cosmos-sdk/types/result_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) func TestParseABCILog(t *testing.T) { diff --git a/libs/cosmos-sdk/types/staking.go b/libs/cosmos-sdk/types/staking.go index 11351d4d0..0ab289d1c 100644 --- a/libs/cosmos-sdk/types/staking.go +++ b/libs/cosmos-sdk/types/staking.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "math/big" ) diff --git a/libs/cosmos-sdk/types/store.go b/libs/cosmos-sdk/types/store.go index de4e6ee01..7c3973df4 100644 --- a/libs/cosmos-sdk/types/store.go +++ b/libs/cosmos-sdk/types/store.go @@ -1,11 +1,11 @@ package types import ( - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" "sync" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) // nolint - reexport diff --git a/libs/cosmos-sdk/types/tx/service.pb.go b/libs/cosmos-sdk/types/tx/service.pb.go index a73abb5cb..d8de401be 100644 --- a/libs/cosmos-sdk/types/tx/service.pb.go +++ b/libs/cosmos-sdk/types/tx/service.pb.go @@ -14,8 +14,8 @@ import ( grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" golang_proto "github.com/golang/protobuf/proto" - types "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + types "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" diff --git a/libs/cosmos-sdk/types/tx/signing/signature.go b/libs/cosmos-sdk/types/tx/signing/signature.go index f54f6fd94..6a5db0aee 100644 --- a/libs/cosmos-sdk/types/tx/signing/signature.go +++ b/libs/cosmos-sdk/types/tx/signing/signature.go @@ -3,8 +3,8 @@ package signing import ( "fmt" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" ) // SignatureV2 is a convenience type that is easier to use in application logic diff --git a/libs/cosmos-sdk/types/tx/signing/signature_data.go b/libs/cosmos-sdk/types/tx/signing/signature_data.go index b662dde09..ac1a8ac1d 100644 --- a/libs/cosmos-sdk/types/tx/signing/signature_data.go +++ b/libs/cosmos-sdk/types/tx/signing/signature_data.go @@ -1,7 +1,7 @@ package signing import ( - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" ) // SignatureData represents either a *SingleSignatureData or *MultiSignatureData. diff --git a/libs/cosmos-sdk/types/tx/signing/signing.pb.go b/libs/cosmos-sdk/types/tx/signing/signing.pb.go index 55e4e008c..42e7219db 100644 --- a/libs/cosmos-sdk/types/tx/signing/signing.pb.go +++ b/libs/cosmos-sdk/types/tx/signing/signing.pb.go @@ -5,8 +5,8 @@ package signing import ( fmt "fmt" - types "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - types1 "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" + types "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + types1 "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" proto "github.com/gogo/protobuf/proto" io "io" math "math" diff --git a/libs/cosmos-sdk/types/tx/tx.go b/libs/cosmos-sdk/types/tx/tx.go index 544d29b60..0422da842 100644 --- a/libs/cosmos-sdk/types/tx/tx.go +++ b/libs/cosmos-sdk/types/tx/tx.go @@ -4,11 +4,11 @@ import ( "errors" "github.com/golang/protobuf/ptypes/wrappers" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - anytypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdktypes "github.com/okx/okbchain/libs/cosmos-sdk/types" - types "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + anytypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdktypes "github.com/okx/brczero/libs/cosmos-sdk/types" + types "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" ) var ( diff --git a/libs/cosmos-sdk/types/tx/tx.pb.go b/libs/cosmos-sdk/types/tx/tx.pb.go index 800bc3c06..1de7dcf38 100644 --- a/libs/cosmos-sdk/types/tx/tx.pb.go +++ b/libs/cosmos-sdk/types/tx/tx.pb.go @@ -5,12 +5,12 @@ package tx import ( fmt "fmt" - types "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - types1 "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - //github_com_cosmos_cosmos_sdk_types "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter/types" - github_com_cosmos_cosmos_sdk_types "github.com/okx/okbchain/libs/cosmos-sdk/types" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/types" - signing "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" + types "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + types1 "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + //github_com_cosmos_cosmos_sdk_types "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter/types" + github_com_cosmos_cosmos_sdk_types "github.com/okx/brczero/libs/cosmos-sdk/types" + types2 "github.com/okx/brczero/libs/cosmos-sdk/types" + signing "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" diff --git a/libs/cosmos-sdk/types/tx/types.go b/libs/cosmos-sdk/types/tx/types.go index 4104327c0..ae6f8fc7c 100644 --- a/libs/cosmos-sdk/types/tx/types.go +++ b/libs/cosmos-sdk/types/tx/types.go @@ -3,13 +3,13 @@ package tx import ( "fmt" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - ibckeys "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + ibckeys "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // MaxGasWanted defines the max gas allowed. diff --git a/libs/cosmos-sdk/types/tx_msg_adapter.go b/libs/cosmos-sdk/types/tx_msg_adapter.go index 19c888368..d5f1ad76c 100644 --- a/libs/cosmos-sdk/types/tx_msg_adapter.go +++ b/libs/cosmos-sdk/types/tx_msg_adapter.go @@ -2,7 +2,7 @@ package types import ( "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) const ( diff --git a/libs/cosmos-sdk/types/upgrade/upgrade.go b/libs/cosmos-sdk/types/upgrade/upgrade.go index 5c0f10f93..776b1cfbb 100644 --- a/libs/cosmos-sdk/types/upgrade/upgrade.go +++ b/libs/cosmos-sdk/types/upgrade/upgrade.go @@ -2,9 +2,9 @@ package upgrade import ( "errors" - store "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + store "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) type UpgradeModule interface { diff --git a/libs/cosmos-sdk/types/utils.go b/libs/cosmos-sdk/types/utils.go index d20479a18..10dce379e 100644 --- a/libs/cosmos-sdk/types/utils.go +++ b/libs/cosmos-sdk/types/utils.go @@ -11,7 +11,7 @@ import ( "github.com/ethereum/go-ethereum/common" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) const FlagDBBackend = "db_backend" diff --git a/libs/cosmos-sdk/types/wasm_address.go b/libs/cosmos-sdk/types/wasm_address.go index ab8d3ecf4..a298c2640 100644 --- a/libs/cosmos-sdk/types/wasm_address.go +++ b/libs/cosmos-sdk/types/wasm_address.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/tendermint/libs/bech32" + "github.com/okx/brczero/libs/tendermint/libs/bech32" "gopkg.in/yaml.v2" ) diff --git a/libs/cosmos-sdk/version/command.go b/libs/cosmos-sdk/version/command.go index 93719d0a3..0967ab9a7 100644 --- a/libs/cosmos-sdk/version/command.go +++ b/libs/cosmos-sdk/version/command.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/viper" "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/cli" ) const flagLong = "long" diff --git a/libs/cosmos-sdk/version/version.go b/libs/cosmos-sdk/version/version.go index 044d81bb8..ebaf42bbf 100644 --- a/libs/cosmos-sdk/version/version.go +++ b/libs/cosmos-sdk/version/version.go @@ -14,7 +14,7 @@ // -X github.com/cosmos/cosmos-sdk/version.ClientName=gaiacli \ // -X github.com/cosmos/cosmos-sdk/version.Version=1.0 \ // -X github.com/cosmos/cosmos-sdk/version.Commit=f0f7b7dab7e36c20b757cebce0e8f4fc5b95de60 \ -// -X "github.com/okx/okbchain/libs/cosmos-sdk/version.BuildTags=linux darwin amd64" +// -X "github.com/okx/brczero/libs/cosmos-sdk/version.BuildTags=linux darwin amd64" package version import ( diff --git a/libs/cosmos-sdk/x/auth/alias.go b/libs/cosmos-sdk/x/auth/alias.go index 7c2511703..0c9e19d98 100644 --- a/libs/cosmos-sdk/x/auth/alias.go +++ b/libs/cosmos-sdk/x/auth/alias.go @@ -7,10 +7,10 @@ package auth import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) const ( diff --git a/libs/cosmos-sdk/x/auth/alias_exchain.go b/libs/cosmos-sdk/x/auth/alias_exchain.go index 85d350ece..8fef85301 100644 --- a/libs/cosmos-sdk/x/auth/alias_exchain.go +++ b/libs/cosmos-sdk/x/auth/alias_exchain.go @@ -1,8 +1,8 @@ package auth import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" ) type ( diff --git a/libs/cosmos-sdk/x/auth/ante/ante.go b/libs/cosmos-sdk/x/auth/ante/ante.go index d14a686ff..87160ee6d 100644 --- a/libs/cosmos-sdk/x/auth/ante/ante.go +++ b/libs/cosmos-sdk/x/auth/ante/ante.go @@ -1,9 +1,9 @@ package ante import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // NewAnteHandler returns an AnteHandler that checks and increments sequence diff --git a/libs/cosmos-sdk/x/auth/ante/ante_test.go b/libs/cosmos-sdk/x/auth/ante/ante_test.go index acf46d1fe..9551417a9 100644 --- a/libs/cosmos-sdk/x/auth/ante/ante_test.go +++ b/libs/cosmos-sdk/x/auth/ante/ante_test.go @@ -8,16 +8,16 @@ import ( "strings" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // run the tx through the anteHandler and ensure its valid diff --git a/libs/cosmos-sdk/x/auth/ante/basic.go b/libs/cosmos-sdk/x/auth/ante/basic.go index b5d412f2a..87e575e41 100644 --- a/libs/cosmos-sdk/x/auth/ante/basic.go +++ b/libs/cosmos-sdk/x/auth/ante/basic.go @@ -1,12 +1,12 @@ package ante import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" ) var ( diff --git a/libs/cosmos-sdk/x/auth/ante/basic_test.go b/libs/cosmos-sdk/x/auth/ante/basic_test.go index 5d1c3a6c1..7c188a9f1 100644 --- a/libs/cosmos-sdk/x/auth/ante/basic_test.go +++ b/libs/cosmos-sdk/x/auth/ante/basic_test.go @@ -5,12 +5,12 @@ import ( "strings" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func TestValidateBasic(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/ante/fee.go b/libs/cosmos-sdk/x/auth/ante/fee.go index f56a50709..61be4b4c0 100644 --- a/libs/cosmos-sdk/x/auth/ante/fee.go +++ b/libs/cosmos-sdk/x/auth/ante/fee.go @@ -3,13 +3,13 @@ package ante import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/libs/cosmos-sdk/x/auth/ante/fee_test.go b/libs/cosmos-sdk/x/auth/ante/fee_test.go index 5d6b5dd6b..345c268d4 100644 --- a/libs/cosmos-sdk/x/auth/ante/fee_test.go +++ b/libs/cosmos-sdk/x/auth/ante/fee_test.go @@ -3,12 +3,12 @@ package ante_test import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func TestEnsureMempoolFees(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/ante/integration_test.go b/libs/cosmos-sdk/x/auth/ante/integration_test.go index 875067713..d5c555dcd 100644 --- a/libs/cosmos-sdk/x/auth/ante/integration_test.go +++ b/libs/cosmos-sdk/x/auth/ante/integration_test.go @@ -1,11 +1,11 @@ package ante_test import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // returns context and app with params set on account keeper diff --git a/libs/cosmos-sdk/x/auth/ante/nonce_adapt.go b/libs/cosmos-sdk/x/auth/ante/nonce_adapt.go index c32a94c9a..9e640f5f6 100644 --- a/libs/cosmos-sdk/x/auth/ante/nonce_adapt.go +++ b/libs/cosmos-sdk/x/auth/ante/nonce_adapt.go @@ -1,9 +1,9 @@ package ante import ( - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" "strconv" "strings" ) diff --git a/libs/cosmos-sdk/x/auth/ante/nonce_adapt_test.go b/libs/cosmos-sdk/x/auth/ante/nonce_adapt_test.go index 63a154592..8ed283f44 100644 --- a/libs/cosmos-sdk/x/auth/ante/nonce_adapt_test.go +++ b/libs/cosmos-sdk/x/auth/ante/nonce_adapt_test.go @@ -4,9 +4,9 @@ import ( "strings" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/mock" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/mock" "github.com/stretchr/testify/assert" ) diff --git a/libs/cosmos-sdk/x/auth/ante/setup.go b/libs/cosmos-sdk/x/auth/ante/setup.go index 0dcf3e666..e5eb08524 100644 --- a/libs/cosmos-sdk/x/auth/ante/setup.go +++ b/libs/cosmos-sdk/x/auth/ante/setup.go @@ -2,10 +2,10 @@ package ante import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // SetUpContextDecorator sets the GasMeter in the Context and wraps the next AnteHandler with a defer clause diff --git a/libs/cosmos-sdk/x/auth/ante/setup_test.go b/libs/cosmos-sdk/x/auth/ante/setup_test.go index 95c6ec82b..1b434ceed 100644 --- a/libs/cosmos-sdk/x/auth/ante/setup_test.go +++ b/libs/cosmos-sdk/x/auth/ante/setup_test.go @@ -3,13 +3,13 @@ package ante_test import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func TestSetup(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/ante/sigverify.go b/libs/cosmos-sdk/x/auth/ante/sigverify.go index a1c861b83..7545ec3ed 100644 --- a/libs/cosmos-sdk/x/auth/ante/sigverify.go +++ b/libs/cosmos-sdk/x/auth/ante/sigverify.go @@ -5,19 +5,19 @@ import ( "encoding/hex" ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/etherhash" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - types2 "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/etherhash" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + types2 "github.com/okx/brczero/libs/tendermint/types" ) var ( diff --git a/libs/cosmos-sdk/x/auth/ante/sigverify_test.go b/libs/cosmos-sdk/x/auth/ante/sigverify_test.go index 8bd5e397d..25e1a5118 100644 --- a/libs/cosmos-sdk/x/auth/ante/sigverify_test.go +++ b/libs/cosmos-sdk/x/auth/ante/sigverify_test.go @@ -5,21 +5,21 @@ import ( "github.com/spf13/viper" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/etherhash" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/etherhash" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func TestSetPubKey(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/client/cli/broadcast.go b/libs/cosmos-sdk/x/auth/client/cli/broadcast.go index eae8b9450..c12a4b3e3 100644 --- a/libs/cosmos-sdk/x/auth/client/cli/broadcast.go +++ b/libs/cosmos-sdk/x/auth/client/cli/broadcast.go @@ -5,10 +5,10 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" ) // GetBroadcastCommand returns the tx broadcast command. diff --git a/libs/cosmos-sdk/x/auth/client/cli/decode.go b/libs/cosmos-sdk/x/auth/client/cli/decode.go index a66252acd..e8031c310 100644 --- a/libs/cosmos-sdk/x/auth/client/cli/decode.go +++ b/libs/cosmos-sdk/x/auth/client/cli/decode.go @@ -8,9 +8,9 @@ import ( "github.com/spf13/viper" "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) const flagHex = "hex" diff --git a/libs/cosmos-sdk/x/auth/client/cli/encode.go b/libs/cosmos-sdk/x/auth/client/cli/encode.go index bca77213b..668855a1a 100644 --- a/libs/cosmos-sdk/x/auth/client/cli/encode.go +++ b/libs/cosmos-sdk/x/auth/client/cli/encode.go @@ -5,10 +5,10 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" ) // txEncodeRespStr implements a simple Stringer wrapper for a encoded tx. diff --git a/libs/cosmos-sdk/x/auth/client/cli/query.go b/libs/cosmos-sdk/x/auth/client/cli/query.go index 8370cfe9f..32834eb9e 100644 --- a/libs/cosmos-sdk/x/auth/client/cli/query.go +++ b/libs/cosmos-sdk/x/auth/client/cli/query.go @@ -4,22 +4,22 @@ import ( "fmt" "strings" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/cosmos-sdk/x/auth/client/cli/tx.go b/libs/cosmos-sdk/x/auth/client/cli/tx.go index 788e88d6f..be256612d 100644 --- a/libs/cosmos-sdk/x/auth/client/cli/tx.go +++ b/libs/cosmos-sdk/x/auth/client/cli/tx.go @@ -3,9 +3,9 @@ package cli import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/libs/cosmos-sdk/x/auth/client/cli/tx_multisign.go b/libs/cosmos-sdk/x/auth/client/cli/tx_multisign.go index 6823ff650..370075ecf 100644 --- a/libs/cosmos-sdk/x/auth/client/cli/tx_multisign.go +++ b/libs/cosmos-sdk/x/auth/client/cli/tx_multisign.go @@ -10,16 +10,16 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // GetSignCommand returns the sign command diff --git a/libs/cosmos-sdk/x/auth/client/cli/tx_sign.go b/libs/cosmos-sdk/x/auth/client/cli/tx_sign.go index 580401fa0..17e32c8f7 100644 --- a/libs/cosmos-sdk/x/auth/client/cli/tx_sign.go +++ b/libs/cosmos-sdk/x/auth/client/cli/tx_sign.go @@ -6,16 +6,16 @@ import ( "os" "strings" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) const ( diff --git a/libs/cosmos-sdk/x/auth/client/rest/broadcast.go b/libs/cosmos-sdk/x/auth/client/rest/broadcast.go index 2aed285b6..f0b18a4a0 100644 --- a/libs/cosmos-sdk/x/auth/client/rest/broadcast.go +++ b/libs/cosmos-sdk/x/auth/client/rest/broadcast.go @@ -4,10 +4,10 @@ import ( "io/ioutil" "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - ttypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + ttypes "github.com/okx/brczero/libs/tendermint/types" ) // BroadcastReq defines a tx broadcasting request. diff --git a/libs/cosmos-sdk/x/auth/client/rest/decode.go b/libs/cosmos-sdk/x/auth/client/rest/decode.go index 64bc3ace3..3c952d6d6 100644 --- a/libs/cosmos-sdk/x/auth/client/rest/decode.go +++ b/libs/cosmos-sdk/x/auth/client/rest/decode.go @@ -5,9 +5,9 @@ import ( "io/ioutil" "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) type ( diff --git a/libs/cosmos-sdk/x/auth/client/rest/encode.go b/libs/cosmos-sdk/x/auth/client/rest/encode.go index f07a19dde..edb612aad 100644 --- a/libs/cosmos-sdk/x/auth/client/rest/encode.go +++ b/libs/cosmos-sdk/x/auth/client/rest/encode.go @@ -5,9 +5,9 @@ import ( "io/ioutil" "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // EncodeResp defines a tx encoding response. diff --git a/libs/cosmos-sdk/x/auth/client/rest/query.go b/libs/cosmos-sdk/x/auth/client/rest/query.go index a908bc473..5da7b16a1 100644 --- a/libs/cosmos-sdk/x/auth/client/rest/query.go +++ b/libs/cosmos-sdk/x/auth/client/rest/query.go @@ -8,12 +8,12 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - genutilrest "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + genutilrest "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/client/rest" ) // query accountREST Handler diff --git a/libs/cosmos-sdk/x/auth/client/rest/rest.go b/libs/cosmos-sdk/x/auth/client/rest/rest.go index 936d2f526..93c7cb45d 100644 --- a/libs/cosmos-sdk/x/auth/client/rest/rest.go +++ b/libs/cosmos-sdk/x/auth/client/rest/rest.go @@ -3,7 +3,7 @@ package rest import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) // RegisterRoutes registers the auth module REST routes. diff --git a/libs/cosmos-sdk/x/auth/client/utils/cm40_query.go b/libs/cosmos-sdk/x/auth/client/utils/cm40_query.go index f1085d12c..c474507d1 100644 --- a/libs/cosmos-sdk/x/auth/client/utils/cm40_query.go +++ b/libs/cosmos-sdk/x/auth/client/utils/cm40_query.go @@ -7,12 +7,12 @@ import ( "strings" "time" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - types "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + types "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" ) func Query40Tx(cliCtx context.CLIContext, hashHexStr string) (*types.TxResponse, error) { diff --git a/libs/cosmos-sdk/x/auth/client/utils/converter.go b/libs/cosmos-sdk/x/auth/client/utils/converter.go index e297de2e3..039e336f7 100644 --- a/libs/cosmos-sdk/x/auth/client/utils/converter.go +++ b/libs/cosmos-sdk/x/auth/client/utils/converter.go @@ -1,9 +1,9 @@ package utils import ( - "github.com/okx/okbchain/libs/cosmos-sdk/types" - cm40types "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" + cm40types "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) func ConvCM39SimulateResultTCM40(cm39 *types.Result) *cm40types.Result { diff --git a/libs/cosmos-sdk/x/auth/client/utils/query.go b/libs/cosmos-sdk/x/auth/client/utils/query.go index 2cc1b729a..422a617d4 100644 --- a/libs/cosmos-sdk/x/auth/client/utils/query.go +++ b/libs/cosmos-sdk/x/auth/client/utils/query.go @@ -6,12 +6,12 @@ import ( "strings" "time" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) type ParseAppTxHandler func(cdc *codec.CodecProxy, txBytes []byte) (sdk.Tx, error) diff --git a/libs/cosmos-sdk/x/auth/client/utils/rest.go b/libs/cosmos-sdk/x/auth/client/utils/rest.go index 15325a9a5..696547882 100644 --- a/libs/cosmos-sdk/x/auth/client/utils/rest.go +++ b/libs/cosmos-sdk/x/auth/client/utils/rest.go @@ -4,11 +4,11 @@ import ( "log" "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // WriteGenerateStdTxResponse writes response for the generate only mode. diff --git a/libs/cosmos-sdk/x/auth/client/utils/service.go b/libs/cosmos-sdk/x/auth/client/utils/service.go index 6f7a8c9d7..c4a7c69c1 100644 --- a/libs/cosmos-sdk/x/auth/client/utils/service.go +++ b/libs/cosmos-sdk/x/auth/client/utils/service.go @@ -11,12 +11,12 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - cliContext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - typeadapter "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx" + cliContext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" + typeadapter "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx" ) var _ tx.ServiceServer = txServer{} diff --git a/libs/cosmos-sdk/x/auth/client/utils/tx.go b/libs/cosmos-sdk/x/auth/client/utils/tx.go index d1c16ce2a..0c91f354e 100644 --- a/libs/cosmos-sdk/x/auth/client/utils/tx.go +++ b/libs/cosmos-sdk/x/auth/client/utils/tx.go @@ -8,23 +8,23 @@ import ( "math/big" "os" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - ibctx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - signingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibcsigning" + "github.com/okx/brczero/libs/cosmos-sdk/client" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + ibctx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + signingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibcsigning" "github.com/pkg/errors" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/client/input" - "github.com/okx/okbchain/libs/cosmos-sdk/client/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/input" + "github.com/okx/brczero/libs/cosmos-sdk/client/keys" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // GasEstimateResponse defines a response definition for tx gas estimation. diff --git a/libs/cosmos-sdk/x/auth/client/utils/tx_test.go b/libs/cosmos-sdk/x/auth/client/utils/tx_test.go index f49b8cad1..6cc74f324 100644 --- a/libs/cosmos-sdk/x/auth/client/utils/tx_test.go +++ b/libs/cosmos-sdk/x/auth/client/utils/tx_test.go @@ -7,10 +7,10 @@ import ( "os" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/auth/exported/exported.go b/libs/cosmos-sdk/x/auth/exported/exported.go index b713828bd..90cb9e250 100644 --- a/libs/cosmos-sdk/x/auth/exported/exported.go +++ b/libs/cosmos-sdk/x/auth/exported/exported.go @@ -1,7 +1,7 @@ package exported import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Account is an interface used to store coins at a given address within state. diff --git a/libs/cosmos-sdk/x/auth/exported/exported_test.go b/libs/cosmos-sdk/x/auth/exported/exported_test.go index c397f339b..b8b2481d9 100644 --- a/libs/cosmos-sdk/x/auth/exported/exported_test.go +++ b/libs/cosmos-sdk/x/auth/exported/exported_test.go @@ -3,12 +3,12 @@ package exported_test import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func TestGenesisAccountsContains(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/exported/utils.go b/libs/cosmos-sdk/x/auth/exported/utils.go index 3655e3ebf..7096fc0a6 100644 --- a/libs/cosmos-sdk/x/auth/exported/utils.go +++ b/libs/cosmos-sdk/x/auth/exported/utils.go @@ -1,8 +1,8 @@ package exported import ( - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type SizerAccountKeeper interface { diff --git a/libs/cosmos-sdk/x/auth/genesis.go b/libs/cosmos-sdk/x/auth/genesis.go index 6a3a0951c..473ce0935 100644 --- a/libs/cosmos-sdk/x/auth/genesis.go +++ b/libs/cosmos-sdk/x/auth/genesis.go @@ -1,8 +1,8 @@ package auth import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) // InitGenesis - Init store state from genesis data diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/alias.go b/libs/cosmos-sdk/x/auth/ibc-tx/alias.go index 6d913d480..04842fe84 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/alias.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/alias.go @@ -1,8 +1,8 @@ package ibc_tx import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/adapter" - ibccodec "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/pb-codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx/internal/adapter" + ibccodec "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx/internal/pb-codec" ) var ( diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/builder.go b/libs/cosmos-sdk/x/auth/ibc-tx/builder.go index ce77e74db..89385bf70 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/builder.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/builder.go @@ -2,15 +2,15 @@ package ibc_tx import ( "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - sigtx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibcsigning" + "github.com/okx/brczero/libs/cosmos-sdk/client" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + sigtx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibcsigning" ) // wrapper is a wrapper around the tx.Tx proto.Message which retain the raw diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/config.go b/libs/cosmos-sdk/x/auth/ibc-tx/config.go index 961800e19..dedd641a9 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/config.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/config.go @@ -2,11 +2,11 @@ package ibc_tx import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - ibctx "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - signing2 "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - signing "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibcsigning" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + ibctx "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + signing2 "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + signing "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibcsigning" ) type config struct { diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/decoder.go b/libs/cosmos-sdk/x/auth/ibc-tx/decoder.go index 4a7fa5669..f01491e55 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/decoder.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/decoder.go @@ -2,22 +2,22 @@ package ibc_tx import ( "fmt" - "github.com/okx/okbchain/libs/system" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/unknownproto" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - ibctx "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/adapter" + "github.com/okx/brczero/libs/system" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec/unknownproto" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + ibctx "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx/internal/adapter" "google.golang.org/protobuf/encoding/protowire" - //"github.com/okx/okbchain/libs/cosmos-sdk/codec/unknownproto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + //"github.com/okx/brczero/libs/cosmos-sdk/codec/unknownproto" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - tx "github.com/okx/okbchain/libs/cosmos-sdk/types/tx" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + tx "github.com/okx/brczero/libs/cosmos-sdk/types/tx" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func CM40TxDecoder(cdc codec.ProtoCodecMarshaler) func(txBytes []byte) (ibctx.Tx, error) { diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/direct.go b/libs/cosmos-sdk/x/auth/ibc-tx/direct.go index db50bb3a9..5d9479710 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/direct.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/direct.go @@ -2,10 +2,10 @@ package ibc_tx import ( "fmt" - ibctx "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - signing2 "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - signing "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibcsigning" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + ibctx "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + signing2 "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + signing "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibcsigning" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // signModeDirectHandler defines the SIGN_MODE_DIRECT SignModeHandler diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/encoder.go b/libs/cosmos-sdk/x/auth/ibc-tx/encoder.go index d36064b04..53628fc9f 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/encoder.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/encoder.go @@ -3,12 +3,12 @@ package ibc_tx import ( "fmt" "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - ibctx "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + ibctx "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) const MaxGasWanted = uint64((1 << 63) - 1) diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/internal/adapter/keyTpAdapter.go b/libs/cosmos-sdk/x/auth/ibc-tx/internal/adapter/keyTpAdapter.go index 10fa4a5be..bfc3f0128 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/internal/adapter/keyTpAdapter.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/internal/adapter/keyTpAdapter.go @@ -2,12 +2,12 @@ package adapter import ( "errors" - ethsecp256k12 "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1" - secp256k1 "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1" - LagacyPubKey "github.com/okx/okbchain/libs/tendermint/crypto" - secp256k12 "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + ethsecp256k12 "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1" + secp256k1 "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1" + LagacyPubKey "github.com/okx/brczero/libs/tendermint/crypto" + secp256k12 "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" ) func LagacyPubkey2ProtoBuffPubkey(pubKey LagacyPubKey.PubKey) types.PubKey { diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1/ethsecp256k1.go b/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1/ethsecp256k1.go index f79d09d3c..bc3343223 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1/ethsecp256k1.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1/ethsecp256k1.go @@ -7,11 +7,11 @@ import ( "fmt" "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" ) const ( diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/internal/pb-codec/proto.go b/libs/cosmos-sdk/x/auth/ibc-tx/internal/pb-codec/proto.go index 232601ea7..1287ac12e 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/internal/pb-codec/proto.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/internal/pb-codec/proto.go @@ -1,15 +1,15 @@ package codec import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1" - ibckey "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx/internal/ethsecp256k1" + ibckey "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1" - //"github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/ed25519" - //"github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/multisig" - //"github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/secp256k1" - //"github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/secp256r1" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" + //"github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/ed25519" + //"github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/multisig" + //"github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/secp256k1" + //"github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/secp256r1" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" ) // RegisterInterfaces registers the sdk.Tx interface. diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1.go b/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1.go index c7b70656c..3b3b80858 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1.go @@ -10,11 +10,11 @@ import ( secp256k1 "github.com/btcsuite/btcd/btcec" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" "golang.org/x/crypto/ripemd160" // nolint: staticcheck // necessary for Bitcoin address format - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) //var _ cryptotypes.PrivKey = &PrivKey{} diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1_cgo.go b/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1_cgo.go index d2654e165..06addf77d 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1_cgo.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1_cgo.go @@ -4,7 +4,7 @@ package secp256k1 import ( - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) // Sign creates an ECDSA signature on curve Secp256k1, using SHA256 on the msg. diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1_nocgo.go b/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1_nocgo.go index 517623297..928daff4b 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1_nocgo.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/internal/secp256k1/secp256k1_nocgo.go @@ -7,7 +7,7 @@ import ( "math/big" secp256k1 "github.com/btcsuite/btcd/btcec" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) // used to reject malleable signatures diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/mode_handler.go b/libs/cosmos-sdk/x/auth/ibc-tx/mode_handler.go index 220a08c7d..f40d57788 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/mode_handler.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/mode_handler.go @@ -2,8 +2,8 @@ package ibc_tx import ( "fmt" - signing2 "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - signing "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibcsigning" + signing2 "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + signing "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibcsigning" ) // DefaultSignModes are the default sign modes enabled for protobuf transactions. diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/msg_adapter.go b/libs/cosmos-sdk/x/auth/ibc-tx/msg_adapter.go index 0987ee585..705b74282 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/msg_adapter.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/msg_adapter.go @@ -1,7 +1,7 @@ package ibc_tx import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type DenomAdapterMsg interface { diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/sig.go b/libs/cosmos-sdk/x/auth/ibc-tx/sig.go index fad72dc43..04b6ac0fd 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/sig.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/sig.go @@ -2,11 +2,11 @@ package ibc_tx import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" ) // SignatureDataToModeInfoAndSig converts a SignatureData to a ModeInfo and raw bytes signature diff --git a/libs/cosmos-sdk/x/auth/ibc-tx/txencoder.go b/libs/cosmos-sdk/x/auth/ibc-tx/txencoder.go index d7fd70452..189c13469 100644 --- a/libs/cosmos-sdk/x/auth/ibc-tx/txencoder.go +++ b/libs/cosmos-sdk/x/auth/ibc-tx/txencoder.go @@ -3,8 +3,8 @@ package ibc_tx import ( "fmt" "github.com/gogo/protobuf/proto" - ibctx "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + ibctx "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func IbcTxEncoder() ibctx.IBCTxEncoder { diff --git a/libs/cosmos-sdk/x/auth/ibcsigning/handler_map.go b/libs/cosmos-sdk/x/auth/ibcsigning/handler_map.go index 03ed1aa73..4955d1f88 100644 --- a/libs/cosmos-sdk/x/auth/ibcsigning/handler_map.go +++ b/libs/cosmos-sdk/x/auth/ibcsigning/handler_map.go @@ -2,8 +2,8 @@ package signing import ( "fmt" - ibctx "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" + ibctx "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" ) // SignModeHandlerMap is SignModeHandler that aggregates multiple SignModeHandler's into diff --git a/libs/cosmos-sdk/x/auth/ibcsigning/sig_verifiable_tx.go b/libs/cosmos-sdk/x/auth/ibcsigning/sig_verifiable_tx.go index 871e1c7e4..e1261d4d9 100644 --- a/libs/cosmos-sdk/x/auth/ibcsigning/sig_verifiable_tx.go +++ b/libs/cosmos-sdk/x/auth/ibcsigning/sig_verifiable_tx.go @@ -1,10 +1,10 @@ package signing import ( - types3 "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - signing2 "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" + types3 "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + types2 "github.com/okx/brczero/libs/cosmos-sdk/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + signing2 "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" ) // SigVerifiableTx defines a transaction interface for all signature verification diff --git a/libs/cosmos-sdk/x/auth/ibcsigning/sign_mode_handler.go b/libs/cosmos-sdk/x/auth/ibcsigning/sign_mode_handler.go index 5311f624d..bb7f0704e 100644 --- a/libs/cosmos-sdk/x/auth/ibcsigning/sign_mode_handler.go +++ b/libs/cosmos-sdk/x/auth/ibcsigning/sign_mode_handler.go @@ -1,8 +1,8 @@ package signing import ( - ibctx "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" + ibctx "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" ) // SignModeHandler defines a interface to be implemented by types which will handle diff --git a/libs/cosmos-sdk/x/auth/ibcsigning/verify.go b/libs/cosmos-sdk/x/auth/ibcsigning/verify.go index 5053e201f..1b1df88ef 100644 --- a/libs/cosmos-sdk/x/auth/ibcsigning/verify.go +++ b/libs/cosmos-sdk/x/auth/ibcsigning/verify.go @@ -2,10 +2,10 @@ package signing import ( "fmt" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types/multisig" - ibctx "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/types/multisig" + ibctx "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" ) // VerifySignature verifies a transaction signature contained in SignatureData abstracting over different signing modes diff --git a/libs/cosmos-sdk/x/auth/keeper/account.go b/libs/cosmos-sdk/x/auth/keeper/account.go index 34f8e21f3..2afa7f764 100644 --- a/libs/cosmos-sdk/x/auth/keeper/account.go +++ b/libs/cosmos-sdk/x/auth/keeper/account.go @@ -3,10 +3,10 @@ package keeper import ( "sync" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" "github.com/tendermint/go-amino" ) diff --git a/libs/cosmos-sdk/x/auth/keeper/account_test.go b/libs/cosmos-sdk/x/auth/keeper/account_test.go index 5f066c9cf..43b5cd969 100644 --- a/libs/cosmos-sdk/x/auth/keeper/account_test.go +++ b/libs/cosmos-sdk/x/auth/keeper/account_test.go @@ -5,8 +5,8 @@ import ( "testing" ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/auth/keeper/adapter.go b/libs/cosmos-sdk/x/auth/keeper/adapter.go index 8e4b1bdaf..4b19f8e00 100644 --- a/libs/cosmos-sdk/x/auth/keeper/adapter.go +++ b/libs/cosmos-sdk/x/auth/keeper/adapter.go @@ -3,13 +3,13 @@ package keeper import ( "context" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - internaltypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/typesadapter" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + internaltypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/typesadapter" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/libs/cosmos-sdk/x/auth/keeper/ante_okchain.go b/libs/cosmos-sdk/x/auth/keeper/ante_okchain.go index 239126c90..55ca0f861 100644 --- a/libs/cosmos-sdk/x/auth/keeper/ante_okchain.go +++ b/libs/cosmos-sdk/x/auth/keeper/ante_okchain.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) type ValidateMsgHandler func(ctx sdk.Context, msgs []sdk.Msg) sdk.Result diff --git a/libs/cosmos-sdk/x/auth/keeper/integration_test.go b/libs/cosmos-sdk/x/auth/keeper/integration_test.go index 7e6ff778b..4ed85345c 100644 --- a/libs/cosmos-sdk/x/auth/keeper/integration_test.go +++ b/libs/cosmos-sdk/x/auth/keeper/integration_test.go @@ -1,11 +1,11 @@ package keeper_test import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // returns context and app with params set on account keeper diff --git a/libs/cosmos-sdk/x/auth/keeper/keeper.go b/libs/cosmos-sdk/x/auth/keeper/keeper.go index 473e1738a..642f88f5e 100644 --- a/libs/cosmos-sdk/x/auth/keeper/keeper.go +++ b/libs/cosmos-sdk/x/auth/keeper/keeper.go @@ -6,14 +6,14 @@ import ( "fmt" ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // AccountKeeper encodes/decodes accounts using the go-amino (binary) diff --git a/libs/cosmos-sdk/x/auth/keeper/keeper_bench_test.go b/libs/cosmos-sdk/x/auth/keeper/keeper_bench_test.go index a976b8d7d..3b0a011b5 100644 --- a/libs/cosmos-sdk/x/auth/keeper/keeper_bench_test.go +++ b/libs/cosmos-sdk/x/auth/keeper/keeper_bench_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func BenchmarkAccountMapperGetAccountFound(b *testing.B) { diff --git a/libs/cosmos-sdk/x/auth/keeper/keeper_test.go b/libs/cosmos-sdk/x/auth/keeper/keeper_test.go index 765d1a66d..f9c2ac8b0 100644 --- a/libs/cosmos-sdk/x/auth/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/auth/keeper/keeper_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func TestAccountMapperGetSet(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/keeper/params.go b/libs/cosmos-sdk/x/auth/keeper/params.go index 2971b169d..3e73ea0ff 100644 --- a/libs/cosmos-sdk/x/auth/keeper/params.go +++ b/libs/cosmos-sdk/x/auth/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // SetParams sets the auth module's parameters. diff --git a/libs/cosmos-sdk/x/auth/keeper/querier.go b/libs/cosmos-sdk/x/auth/keeper/querier.go index 4b7c158f8..a3de99ff6 100644 --- a/libs/cosmos-sdk/x/auth/keeper/querier.go +++ b/libs/cosmos-sdk/x/auth/keeper/querier.go @@ -1,12 +1,12 @@ package keeper import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // NewQuerier creates a querier for auth REST endpoints diff --git a/libs/cosmos-sdk/x/auth/keeper/querier_test.go b/libs/cosmos-sdk/x/auth/keeper/querier_test.go index 4f4b14cfe..ca698e854 100644 --- a/libs/cosmos-sdk/x/auth/keeper/querier_test.go +++ b/libs/cosmos-sdk/x/auth/keeper/querier_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func TestQueryAccount(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/legacy/v0_34/types.go b/libs/cosmos-sdk/x/auth/legacy/v0_34/types.go index 4b8ab04ee..542c90756 100644 --- a/libs/cosmos-sdk/x/auth/legacy/v0_34/types.go +++ b/libs/cosmos-sdk/x/auth/legacy/v0_34/types.go @@ -3,7 +3,7 @@ package v0_34 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/auth/legacy/v0_36/migrate.go b/libs/cosmos-sdk/x/auth/legacy/v0_36/migrate.go index 99df1fde3..1a492a42f 100644 --- a/libs/cosmos-sdk/x/auth/legacy/v0_36/migrate.go +++ b/libs/cosmos-sdk/x/auth/legacy/v0_36/migrate.go @@ -3,7 +3,7 @@ package v0_36 import ( - v034auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_34" + v034auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_34" ) // Migrate accepts exported genesis state from v0.34 and migrates it to v0.36 diff --git a/libs/cosmos-sdk/x/auth/legacy/v0_36/migrate_test.go b/libs/cosmos-sdk/x/auth/legacy/v0_36/migrate_test.go index 46742c5aa..7b13a2a52 100644 --- a/libs/cosmos-sdk/x/auth/legacy/v0_36/migrate_test.go +++ b/libs/cosmos-sdk/x/auth/legacy/v0_36/migrate_test.go @@ -3,8 +3,8 @@ package v0_36 import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_34" + "github.com/okx/brczero/libs/cosmos-sdk/types" + v034auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_34" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/auth/legacy/v0_36/types.go b/libs/cosmos-sdk/x/auth/legacy/v0_36/types.go index f0ee0a872..b828a44d8 100644 --- a/libs/cosmos-sdk/x/auth/legacy/v0_36/types.go +++ b/libs/cosmos-sdk/x/auth/legacy/v0_36/types.go @@ -2,7 +2,7 @@ // nolint package v0_36 -import v034auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_34" +import v034auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_34" const ( ModuleName = "auth" diff --git a/libs/cosmos-sdk/x/auth/legacy/v0_38/migrate.go b/libs/cosmos-sdk/x/auth/legacy/v0_38/migrate.go index e7ad35a22..cd3ee065e 100644 --- a/libs/cosmos-sdk/x/auth/legacy/v0_38/migrate.go +++ b/libs/cosmos-sdk/x/auth/legacy/v0_38/migrate.go @@ -1,8 +1,8 @@ package v038 import ( - v036auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_36" - v036genaccounts "github.com/okx/okbchain/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" + v036auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_36" + v036genaccounts "github.com/okx/brczero/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" ) // Migrate accepts exported genesis state from v0.34 and migrates it to v0.38 diff --git a/libs/cosmos-sdk/x/auth/legacy/v0_38/migrate_test.go b/libs/cosmos-sdk/x/auth/legacy/v0_38/migrate_test.go index 9e2a019cb..6a71a50f5 100644 --- a/libs/cosmos-sdk/x/auth/legacy/v0_38/migrate_test.go +++ b/libs/cosmos-sdk/x/auth/legacy/v0_38/migrate_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_34" - v036auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_36" - v036genaccounts "github.com/okx/okbchain/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + v034auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_34" + v036auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_36" + v036genaccounts "github.com/okx/brczero/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/auth/legacy/v0_38/types.go b/libs/cosmos-sdk/x/auth/legacy/v0_38/types.go index f73358c68..9ad2d1d82 100644 --- a/libs/cosmos-sdk/x/auth/legacy/v0_38/types.go +++ b/libs/cosmos-sdk/x/auth/legacy/v0_38/types.go @@ -11,11 +11,11 @@ import ( "sort" "strings" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_34" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + v034auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_34" ) const ( diff --git a/libs/cosmos-sdk/x/auth/legacy/v0_39/migrate.go b/libs/cosmos-sdk/x/auth/legacy/v0_39/migrate.go index bda12c54e..2bc29d069 100644 --- a/libs/cosmos-sdk/x/auth/legacy/v0_39/migrate.go +++ b/libs/cosmos-sdk/x/auth/legacy/v0_39/migrate.go @@ -3,7 +3,7 @@ package v039 import ( "fmt" - v038auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_38" + v038auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_38" ) // Migrate accepts exported genesis state from v0.38 and migrates it to v0.39 diff --git a/libs/cosmos-sdk/x/auth/legacy/v0_39/types.go b/libs/cosmos-sdk/x/auth/legacy/v0_39/types.go index e4831f105..83ccd2931 100644 --- a/libs/cosmos-sdk/x/auth/legacy/v0_39/types.go +++ b/libs/cosmos-sdk/x/auth/legacy/v0_39/types.go @@ -9,12 +9,12 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_34" - v038auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_38" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + v034auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_34" + v038auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_38" ) const ( diff --git a/libs/cosmos-sdk/x/auth/module.go b/libs/cosmos-sdk/x/auth/module.go index 0abced870..40705f548 100644 --- a/libs/cosmos-sdk/x/auth/module.go +++ b/libs/cosmos-sdk/x/auth/module.go @@ -3,22 +3,22 @@ package auth import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/ibc-go/modules/core/base" + "github.com/okx/brczero/libs/ibc-go/modules/core/base" "math/rand" "github.com/gorilla/mux" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) var ( diff --git a/libs/cosmos-sdk/x/auth/module_ibc_adapter.go b/libs/cosmos-sdk/x/auth/module_ibc_adapter.go index a2ead6185..d62887c1b 100644 --- a/libs/cosmos-sdk/x/auth/module_ibc_adapter.go +++ b/libs/cosmos-sdk/x/auth/module_ibc_adapter.go @@ -6,15 +6,15 @@ import ( "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - cliContext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - cosmost "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" + cliContext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + cosmost "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - authinternaltypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/typesadapter" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + authinternaltypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/typesadapter" "github.com/spf13/cobra" ) diff --git a/libs/cosmos-sdk/x/auth/refund/refund.go b/libs/cosmos-sdk/x/auth/refund/refund.go index 8ae59e71b..09b1aa474 100644 --- a/libs/cosmos-sdk/x/auth/refund/refund.go +++ b/libs/cosmos-sdk/x/auth/refund/refund.go @@ -1,9 +1,9 @@ package refund import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func RefundFees(supplyKeeper types.SupplyKeeper, ctx sdk.Context, acc sdk.AccAddress, refundFees sdk.Coins) error { diff --git a/libs/cosmos-sdk/x/auth/simulation/decoder.go b/libs/cosmos-sdk/x/auth/simulation/decoder.go index 1d3a4bcd6..10962074a 100644 --- a/libs/cosmos-sdk/x/auth/simulation/decoder.go +++ b/libs/cosmos-sdk/x/auth/simulation/decoder.go @@ -4,11 +4,11 @@ import ( "bytes" "fmt" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // DecodeStore unmarshals the KVPair's Value to the corresponding auth type diff --git a/libs/cosmos-sdk/x/auth/simulation/decoder_test.go b/libs/cosmos-sdk/x/auth/simulation/decoder_test.go index d5f4e5db8..174878db3 100644 --- a/libs/cosmos-sdk/x/auth/simulation/decoder_test.go +++ b/libs/cosmos-sdk/x/auth/simulation/decoder_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) var ( diff --git a/libs/cosmos-sdk/x/auth/simulation/genesis.go b/libs/cosmos-sdk/x/auth/simulation/genesis.go index 325be77a5..9df20a01c 100644 --- a/libs/cosmos-sdk/x/auth/simulation/genesis.go +++ b/libs/cosmos-sdk/x/auth/simulation/genesis.go @@ -6,13 +6,13 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - vestingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/vesting/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + vestingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/vesting/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // Simulation parameter constants diff --git a/libs/cosmos-sdk/x/auth/simulation/params.go b/libs/cosmos-sdk/x/auth/simulation/params.go index 99292a19e..1db31ee67 100644 --- a/libs/cosmos-sdk/x/auth/simulation/params.go +++ b/libs/cosmos-sdk/x/auth/simulation/params.go @@ -6,8 +6,8 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) const ( diff --git a/libs/cosmos-sdk/x/auth/types/account.go b/libs/cosmos-sdk/x/auth/types/account.go index 25b06851e..379d3df2c 100644 --- a/libs/cosmos-sdk/x/auth/types/account.go +++ b/libs/cosmos-sdk/x/auth/types/account.go @@ -8,12 +8,12 @@ import ( "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" "gopkg.in/yaml.v2" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" ) //----------------------------------------------------------------------------- diff --git a/libs/cosmos-sdk/x/auth/types/account_retriever.go b/libs/cosmos-sdk/x/auth/types/account_retriever.go index e8b26fc9f..b11d4a54d 100644 --- a/libs/cosmos-sdk/x/auth/types/account_retriever.go +++ b/libs/cosmos-sdk/x/auth/types/account_retriever.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) // NodeQuerier is an interface that is satisfied by types that provide the QueryWithData method diff --git a/libs/cosmos-sdk/x/auth/types/account_retriever_test.go b/libs/cosmos-sdk/x/auth/types/account_retriever_test.go index 771d512e7..9ae614c7c 100644 --- a/libs/cosmos-sdk/x/auth/types/account_retriever_test.go +++ b/libs/cosmos-sdk/x/auth/types/account_retriever_test.go @@ -7,7 +7,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/tests/mocks" + "github.com/okx/brczero/libs/cosmos-sdk/tests/mocks" ) var errFoo = errors.New("dummy") diff --git a/libs/cosmos-sdk/x/auth/types/account_retriver_exchain.go b/libs/cosmos-sdk/x/auth/types/account_retriver_exchain.go index 35ce7ea8d..d1a989276 100644 --- a/libs/cosmos-sdk/x/auth/types/account_retriver_exchain.go +++ b/libs/cosmos-sdk/x/auth/types/account_retriver_exchain.go @@ -1,6 +1,6 @@ package types -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" func (ar AccountRetriever) GetAccountNonce(address string) uint64 { addr, err := sdk.AccAddressFromBech32(address) diff --git a/libs/cosmos-sdk/x/auth/types/account_test.go b/libs/cosmos-sdk/x/auth/types/account_test.go index d3827539f..83143b5f5 100644 --- a/libs/cosmos-sdk/x/auth/types/account_test.go +++ b/libs/cosmos-sdk/x/auth/types/account_test.go @@ -5,14 +5,14 @@ import ( "math" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) func TestBaseAddressPubKey(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/types/codec.go b/libs/cosmos-sdk/x/auth/types/codec.go index 7bc9dd7b0..019fba2a7 100644 --- a/libs/cosmos-sdk/x/auth/types/codec.go +++ b/libs/cosmos-sdk/x/auth/types/codec.go @@ -1,9 +1,9 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/system" "github.com/tendermint/go-amino" ) diff --git a/libs/cosmos-sdk/x/auth/types/expected_keepers.go b/libs/cosmos-sdk/x/auth/types/expected_keepers.go index f30b3b546..b682c6e83 100644 --- a/libs/cosmos-sdk/x/auth/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/auth/types/expected_keepers.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // SupplyKeeper defines the expected supply Keeper (noalias) diff --git a/libs/cosmos-sdk/x/auth/types/genesis.go b/libs/cosmos-sdk/x/auth/types/genesis.go index eb3b5608a..3eae4dd18 100644 --- a/libs/cosmos-sdk/x/auth/types/genesis.go +++ b/libs/cosmos-sdk/x/auth/types/genesis.go @@ -5,8 +5,8 @@ import ( "fmt" "sort" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) // GenesisState - all auth state that must be provided at genesis diff --git a/libs/cosmos-sdk/x/auth/types/genesis_test.go b/libs/cosmos-sdk/x/auth/types/genesis_test.go index 9cefae46f..558373816 100644 --- a/libs/cosmos-sdk/x/auth/types/genesis_test.go +++ b/libs/cosmos-sdk/x/auth/types/genesis_test.go @@ -4,11 +4,11 @@ import ( "encoding/json" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) func TestSanitize(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/types/ibctx.pb.go b/libs/cosmos-sdk/x/auth/types/ibctx.pb.go index b04b454c8..baedcfd6e 100644 --- a/libs/cosmos-sdk/x/auth/types/ibctx.pb.go +++ b/libs/cosmos-sdk/x/auth/types/ibctx.pb.go @@ -5,12 +5,12 @@ package types import ( fmt "fmt" - types "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - types1 "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - //github_com_cosmos_cosmos_sdk_types "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter/types" - github_com_cosmos_cosmos_sdk_types "github.com/okx/okbchain/libs/cosmos-sdk/types" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/types" - signing "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" + types "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + types1 "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + //github_com_cosmos_cosmos_sdk_types "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter/types" + github_com_cosmos_cosmos_sdk_types "github.com/okx/brczero/libs/cosmos-sdk/types" + types2 "github.com/okx/brczero/libs/cosmos-sdk/types" + signing "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" diff --git a/libs/cosmos-sdk/x/auth/types/keys.go b/libs/cosmos-sdk/x/auth/types/keys.go index 0201c0e27..52de53e75 100644 --- a/libs/cosmos-sdk/x/auth/types/keys.go +++ b/libs/cosmos-sdk/x/auth/types/keys.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/auth/types/params.go b/libs/cosmos-sdk/x/auth/types/params.go index 7cd4d4207..85ffed773 100644 --- a/libs/cosmos-sdk/x/auth/types/params.go +++ b/libs/cosmos-sdk/x/auth/types/params.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" ) // DefaultParamspace defines the default auth module parameter subspace diff --git a/libs/cosmos-sdk/x/auth/types/permissions.go b/libs/cosmos-sdk/x/auth/types/permissions.go index b08a2813e..736ed18ec 100644 --- a/libs/cosmos-sdk/x/auth/types/permissions.go +++ b/libs/cosmos-sdk/x/auth/types/permissions.go @@ -2,7 +2,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "strings" ) diff --git a/libs/cosmos-sdk/x/auth/types/querier.go b/libs/cosmos-sdk/x/auth/types/querier.go index 5919f2705..ad073bb31 100644 --- a/libs/cosmos-sdk/x/auth/types/querier.go +++ b/libs/cosmos-sdk/x/auth/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // query endpoints supported by the auth Querier diff --git a/libs/cosmos-sdk/x/auth/types/query.pb.go b/libs/cosmos-sdk/x/auth/types/query.pb.go index fc7dab32d..31e784c88 100644 --- a/libs/cosmos-sdk/x/auth/types/query.pb.go +++ b/libs/cosmos-sdk/x/auth/types/query.pb.go @@ -9,8 +9,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" _ "github.com/regen-network/cosmos-proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" diff --git a/libs/cosmos-sdk/x/auth/types/stdsignmsg.go b/libs/cosmos-sdk/x/auth/types/stdsignmsg.go index a6683bab3..1d5cef78c 100644 --- a/libs/cosmos-sdk/x/auth/types/stdsignmsg.go +++ b/libs/cosmos-sdk/x/auth/types/stdsignmsg.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // StdSignMsg is a convenience structure for passing along diff --git a/libs/cosmos-sdk/x/auth/types/stdtx.go b/libs/cosmos-sdk/x/auth/types/stdtx.go index 8da533bb7..e442b0ede 100644 --- a/libs/cosmos-sdk/x/auth/types/stdtx.go +++ b/libs/cosmos-sdk/x/auth/types/stdtx.go @@ -7,13 +7,13 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/rlp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/tendermint/crypto" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/tendermint/crypto" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" "github.com/tendermint/go-amino" yaml "gopkg.in/yaml.v2" ) diff --git a/libs/cosmos-sdk/x/auth/types/stdtx_adapter.go b/libs/cosmos-sdk/x/auth/types/stdtx_adapter.go index da72dd152..b1a706245 100644 --- a/libs/cosmos-sdk/x/auth/types/stdtx_adapter.go +++ b/libs/cosmos-sdk/x/auth/types/stdtx_adapter.go @@ -6,10 +6,10 @@ import ( "fmt" "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) type IbcTx struct { diff --git a/libs/cosmos-sdk/x/auth/types/stdtx_test.go b/libs/cosmos-sdk/x/auth/types/stdtx_test.go index 2e36a26a8..3dd49f085 100644 --- a/libs/cosmos-sdk/x/auth/types/stdtx_test.go +++ b/libs/cosmos-sdk/x/auth/types/stdtx_test.go @@ -5,18 +5,18 @@ import ( "math" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/stretchr/testify/require" yaml "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/libs/cosmos-sdk/x/auth/types/test_common.go b/libs/cosmos-sdk/x/auth/types/test_common.go index 114a287ba..cc74ed1d9 100644 --- a/libs/cosmos-sdk/x/auth/types/test_common.go +++ b/libs/cosmos-sdk/x/auth/types/test_common.go @@ -2,10 +2,10 @@ package types import ( - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func NewTestMsg(addrs ...sdk.AccAddress) *sdk.TestMsg { diff --git a/libs/cosmos-sdk/x/auth/types/txbuilder.go b/libs/cosmos-sdk/x/auth/types/txbuilder.go index de5083776..eb463f817 100644 --- a/libs/cosmos-sdk/x/auth/types/txbuilder.go +++ b/libs/cosmos-sdk/x/auth/types/txbuilder.go @@ -9,9 +9,9 @@ import ( "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // TxBuilder implements a transaction context created in SDK modules. diff --git a/libs/cosmos-sdk/x/auth/types/txbuilder_test.go b/libs/cosmos-sdk/x/auth/types/txbuilder_test.go index e881c3551..11ab7d62c 100644 --- a/libs/cosmos-sdk/x/auth/types/txbuilder_test.go +++ b/libs/cosmos-sdk/x/auth/types/txbuilder_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestTxBuilderBuild(t *testing.T) { diff --git a/libs/cosmos-sdk/x/auth/typesadapter/account.go b/libs/cosmos-sdk/x/auth/typesadapter/account.go index dd5e2f0c8..0c6188dda 100644 --- a/libs/cosmos-sdk/x/auth/typesadapter/account.go +++ b/libs/cosmos-sdk/x/auth/typesadapter/account.go @@ -4,10 +4,10 @@ import ( "bytes" "errors" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // NewBaseAccountWithAddress - returns a new base account with a given address diff --git a/libs/cosmos-sdk/x/auth/typesadapter/auth.pb.go b/libs/cosmos-sdk/x/auth/typesadapter/auth.pb.go index 80850e222..3ca141af8 100644 --- a/libs/cosmos-sdk/x/auth/typesadapter/auth.pb.go +++ b/libs/cosmos-sdk/x/auth/typesadapter/auth.pb.go @@ -7,7 +7,7 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" _ "github.com/regen-network/cosmos-proto" io "io" math "math" diff --git a/libs/cosmos-sdk/x/auth/vesting/alias.go b/libs/cosmos-sdk/x/auth/vesting/alias.go index 4d9bfb361..8a7e8dca8 100644 --- a/libs/cosmos-sdk/x/auth/vesting/alias.go +++ b/libs/cosmos-sdk/x/auth/vesting/alias.go @@ -5,7 +5,7 @@ package vesting import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/vesting/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/vesting/types" ) var ( diff --git a/libs/cosmos-sdk/x/auth/vesting/exported/exported.go b/libs/cosmos-sdk/x/auth/vesting/exported/exported.go index eccfabfa3..c233e9f6d 100644 --- a/libs/cosmos-sdk/x/auth/vesting/exported/exported.go +++ b/libs/cosmos-sdk/x/auth/vesting/exported/exported.go @@ -3,8 +3,8 @@ package exported import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) // VestingAccount defines an account type that vests coins via a vesting schedule. diff --git a/libs/cosmos-sdk/x/auth/vesting/types/codec.go b/libs/cosmos-sdk/x/auth/vesting/types/codec.go index 8da041e4e..c6983b0c6 100644 --- a/libs/cosmos-sdk/x/auth/vesting/types/codec.go +++ b/libs/cosmos-sdk/x/auth/vesting/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/vesting/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/vesting/exported" ) // RegisterCodec registers concrete types on the codec diff --git a/libs/cosmos-sdk/x/auth/vesting/types/genesis_test.go b/libs/cosmos-sdk/x/auth/vesting/types/genesis_test.go index cb374ddb8..c0ef03ebd 100644 --- a/libs/cosmos-sdk/x/auth/vesting/types/genesis_test.go +++ b/libs/cosmos-sdk/x/auth/vesting/types/genesis_test.go @@ -3,12 +3,12 @@ package types import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) var ( diff --git a/libs/cosmos-sdk/x/auth/vesting/types/period.go b/libs/cosmos-sdk/x/auth/vesting/types/period.go index 1499ec56c..b88ac01c0 100644 --- a/libs/cosmos-sdk/x/auth/vesting/types/period.go +++ b/libs/cosmos-sdk/x/auth/vesting/types/period.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Period defines a length of time and amount of coins that will vest diff --git a/libs/cosmos-sdk/x/auth/vesting/types/test_common.go b/libs/cosmos-sdk/x/auth/vesting/types/test_common.go index 1669a8b7d..7abe866af 100644 --- a/libs/cosmos-sdk/x/auth/vesting/types/test_common.go +++ b/libs/cosmos-sdk/x/auth/vesting/types/test_common.go @@ -2,10 +2,10 @@ package types import ( - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // NewTestMsg generates a test message diff --git a/libs/cosmos-sdk/x/auth/vesting/types/vesting_account.go b/libs/cosmos-sdk/x/auth/vesting/types/vesting_account.go index 577f58fcb..e621da635 100644 --- a/libs/cosmos-sdk/x/auth/vesting/types/vesting_account.go +++ b/libs/cosmos-sdk/x/auth/vesting/types/vesting_account.go @@ -4,14 +4,14 @@ import ( "errors" "time" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - vestexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/vesting/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + vestexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/vesting/exported" ) // Compile-time type assertions diff --git a/libs/cosmos-sdk/x/auth/vesting/types/vesting_account_test.go b/libs/cosmos-sdk/x/auth/vesting/types/vesting_account_test.go index 0a89214d3..cc6e2796c 100644 --- a/libs/cosmos-sdk/x/auth/vesting/types/vesting_account_test.go +++ b/libs/cosmos-sdk/x/auth/vesting/types/vesting_account_test.go @@ -6,14 +6,14 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) var ( diff --git a/libs/cosmos-sdk/x/bank/alias.go b/libs/cosmos-sdk/x/bank/alias.go index cba4e3e81..47dc22ba4 100644 --- a/libs/cosmos-sdk/x/bank/alias.go +++ b/libs/cosmos-sdk/x/bank/alias.go @@ -3,10 +3,10 @@ package bank // nolint import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/keeperadapter" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/typesadapter" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/keeperadapter" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/typesadapter" ) const ( diff --git a/libs/cosmos-sdk/x/bank/app_test.go b/libs/cosmos-sdk/x/bank/app_test.go index 961975f0c..9e303193d 100644 --- a/libs/cosmos-sdk/x/bank/app_test.go +++ b/libs/cosmos-sdk/x/bank/app_test.go @@ -5,15 +5,15 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" ) type ( diff --git a/libs/cosmos-sdk/x/bank/bench_test.go b/libs/cosmos-sdk/x/bank/bench_test.go index 899babd59..15f4f4e1f 100644 --- a/libs/cosmos-sdk/x/bank/bench_test.go +++ b/libs/cosmos-sdk/x/bank/bench_test.go @@ -3,14 +3,14 @@ package bank_test import ( "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) var moduleAccAddr = supply.NewModuleAddress(staking.BondedPoolName) diff --git a/libs/cosmos-sdk/x/bank/client/cli/tx.go b/libs/cosmos-sdk/x/bank/client/cli/tx.go index 852b7b31c..056b0336a 100644 --- a/libs/cosmos-sdk/x/bank/client/cli/tx.go +++ b/libs/cosmos-sdk/x/bank/client/cli/tx.go @@ -5,14 +5,14 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/libs/cosmos-sdk/x/bank/client/rest/query.go b/libs/cosmos-sdk/x/bank/client/rest/query.go index ce7813994..bcd2e319a 100644 --- a/libs/cosmos-sdk/x/bank/client/rest/query.go +++ b/libs/cosmos-sdk/x/bank/client/rest/query.go @@ -5,10 +5,10 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" ) // query accountREST Handler diff --git a/libs/cosmos-sdk/x/bank/client/rest/tx.go b/libs/cosmos-sdk/x/bank/client/rest/tx.go index 1e2a9c629..6fad23339 100644 --- a/libs/cosmos-sdk/x/bank/client/rest/tx.go +++ b/libs/cosmos-sdk/x/bank/client/rest/tx.go @@ -5,12 +5,12 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" ) // RegisterRoutes - Central function to define routes that get registered by the main application diff --git a/libs/cosmos-sdk/x/bank/genesis.go b/libs/cosmos-sdk/x/bank/genesis.go index ff99fa1a4..66ee873a1 100644 --- a/libs/cosmos-sdk/x/bank/genesis.go +++ b/libs/cosmos-sdk/x/bank/genesis.go @@ -1,7 +1,7 @@ package bank import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // InitGenesis sets distribution information for genesis. diff --git a/libs/cosmos-sdk/x/bank/handler.go b/libs/cosmos-sdk/x/bank/handler.go index e66e97164..347afb6c5 100644 --- a/libs/cosmos-sdk/x/bank/handler.go +++ b/libs/cosmos-sdk/x/bank/handler.go @@ -1,10 +1,10 @@ package bank import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" ) // NewHandler returns a handler for "bank" type messages. diff --git a/libs/cosmos-sdk/x/bank/handler_test.go b/libs/cosmos-sdk/x/bank/handler_test.go index b4282db3a..e4572e7f9 100644 --- a/libs/cosmos-sdk/x/bank/handler_test.go +++ b/libs/cosmos-sdk/x/bank/handler_test.go @@ -4,11 +4,11 @@ import ( "strings" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) func TestInvalidMsg(t *testing.T) { diff --git a/libs/cosmos-sdk/x/bank/internal/keeper/abci.go b/libs/cosmos-sdk/x/bank/internal/keeper/abci.go index 06a64a7c9..b617240da 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeper/abci.go +++ b/libs/cosmos-sdk/x/bank/internal/keeper/abci.go @@ -2,9 +2,9 @@ package keeper import ( "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/innertx" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/innertx" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) // BeginBlocker check for infraction evidence or downtime of validators diff --git a/libs/cosmos-sdk/x/bank/internal/keeper/integration_test.go b/libs/cosmos-sdk/x/bank/internal/keeper/integration_test.go index fb830b056..f87002452 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeper/integration_test.go +++ b/libs/cosmos-sdk/x/bank/internal/keeper/integration_test.go @@ -1,11 +1,11 @@ package keeper_test import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" ) func createTestApp(isCheckTx bool) (*simapp.SimApp, sdk.Context) { diff --git a/libs/cosmos-sdk/x/bank/internal/keeper/invariants.go b/libs/cosmos-sdk/x/bank/internal/keeper/invariants.go index 80e453628..fe1c6177e 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeper/invariants.go +++ b/libs/cosmos-sdk/x/bank/internal/keeper/invariants.go @@ -3,8 +3,8 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" ) // RegisterInvariants registers the bank module invariants diff --git a/libs/cosmos-sdk/x/bank/internal/keeper/keeper.go b/libs/cosmos-sdk/x/bank/internal/keeper/keeper.go index 383797ecb..b13c4a784 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeper/keeper.go +++ b/libs/cosmos-sdk/x/bank/internal/keeper/keeper.go @@ -5,18 +5,18 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - - "github.com/okx/okbchain/libs/tendermint/libs/log" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/innertx" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - vestexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/vesting/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/tendermint/global" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + + "github.com/okx/brczero/libs/tendermint/libs/log" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/innertx" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + vestexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/vesting/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/tendermint/global" ) var _ Keeper = (*BaseKeeper)(nil) diff --git a/libs/cosmos-sdk/x/bank/internal/keeper/keeper_test.go b/libs/cosmos-sdk/x/bank/internal/keeper/keeper_test.go index 7096bccb2..fe2cd42f1 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/bank/internal/keeper/keeper_test.go @@ -5,18 +5,18 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/vesting" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/vesting" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) const ( diff --git a/libs/cosmos-sdk/x/bank/internal/keeper/querier.go b/libs/cosmos-sdk/x/bank/internal/keeper/querier.go index 789cebd2a..0ed7a684e 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeper/querier.go +++ b/libs/cosmos-sdk/x/bank/internal/keeper/querier.go @@ -1,13 +1,13 @@ package keeper import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/typesadapter" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/typesadapter" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) const ( diff --git a/libs/cosmos-sdk/x/bank/internal/keeper/querier_test.go b/libs/cosmos-sdk/x/bank/internal/keeper/querier_test.go index ec91caac5..5b17b364d 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeper/querier_test.go +++ b/libs/cosmos-sdk/x/bank/internal/keeper/querier_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" ) func TestBalances(t *testing.T) { diff --git a/libs/cosmos-sdk/x/bank/internal/keeperadapter/bankgrpc_adapter.go b/libs/cosmos-sdk/x/bank/internal/keeperadapter/bankgrpc_adapter.go index 4051953ad..f933d3dc5 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeperadapter/bankgrpc_adapter.go +++ b/libs/cosmos-sdk/x/bank/internal/keeperadapter/bankgrpc_adapter.go @@ -6,10 +6,10 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/typesadapter" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/typesadapter" ) type BankQueryServer struct { diff --git a/libs/cosmos-sdk/x/bank/internal/keeperadapter/bankkeeper_adapter.go b/libs/cosmos-sdk/x/bank/internal/keeperadapter/bankkeeper_adapter.go index e32484e47..155260f91 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeperadapter/bankkeeper_adapter.go +++ b/libs/cosmos-sdk/x/bank/internal/keeperadapter/bankkeeper_adapter.go @@ -1,10 +1,10 @@ package keeperadapter import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" ) var ( diff --git a/libs/cosmos-sdk/x/bank/internal/keeperadapter/expected_keepers.go b/libs/cosmos-sdk/x/bank/internal/keeperadapter/expected_keepers.go index 847ad0480..e60aeb05a 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeperadapter/expected_keepers.go +++ b/libs/cosmos-sdk/x/bank/internal/keeperadapter/expected_keepers.go @@ -1,8 +1,8 @@ package keeperadapter import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) type SupplyKeeper interface { diff --git a/libs/cosmos-sdk/x/bank/internal/keeperadapter/msg_server.go b/libs/cosmos-sdk/x/bank/internal/keeperadapter/msg_server.go index 0cdbce080..9b0e0b62b 100644 --- a/libs/cosmos-sdk/x/bank/internal/keeperadapter/msg_server.go +++ b/libs/cosmos-sdk/x/bank/internal/keeperadapter/msg_server.go @@ -3,10 +3,10 @@ package keeperadapter import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/typesadapter" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/typesadapter" ) type msgServer struct { diff --git a/libs/cosmos-sdk/x/bank/internal/types/codec.go b/libs/cosmos-sdk/x/bank/internal/types/codec.go index 3db422715..9ebf3ddfc 100644 --- a/libs/cosmos-sdk/x/bank/internal/types/codec.go +++ b/libs/cosmos-sdk/x/bank/internal/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" "github.com/tendermint/go-amino" ) diff --git a/libs/cosmos-sdk/x/bank/internal/types/errors.go b/libs/cosmos-sdk/x/bank/internal/types/errors.go index a7bcfd027..9953a3377 100644 --- a/libs/cosmos-sdk/x/bank/internal/types/errors.go +++ b/libs/cosmos-sdk/x/bank/internal/types/errors.go @@ -2,7 +2,7 @@ package types import ( "fmt" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // x/bank module sentinel errors diff --git a/libs/cosmos-sdk/x/bank/internal/types/expected_keepers.go b/libs/cosmos-sdk/x/bank/internal/types/expected_keepers.go index 82e3d7d01..ec270f0da 100644 --- a/libs/cosmos-sdk/x/bank/internal/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/bank/internal/types/expected_keepers.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) // AccountKeeper defines the account contract that must be fulfilled when diff --git a/libs/cosmos-sdk/x/bank/internal/types/msgs.go b/libs/cosmos-sdk/x/bank/internal/types/msgs.go index 4a3e4eee8..edfb6f549 100644 --- a/libs/cosmos-sdk/x/bank/internal/types/msgs.go +++ b/libs/cosmos-sdk/x/bank/internal/types/msgs.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" "github.com/tendermint/go-amino" ) diff --git a/libs/cosmos-sdk/x/bank/internal/types/msgs_test.go b/libs/cosmos-sdk/x/bank/internal/types/msgs_test.go index 03618e806..ec3408715 100644 --- a/libs/cosmos-sdk/x/bank/internal/types/msgs_test.go +++ b/libs/cosmos-sdk/x/bank/internal/types/msgs_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestMsgSendRoute(t *testing.T) { diff --git a/libs/cosmos-sdk/x/bank/internal/types/params.go b/libs/cosmos-sdk/x/bank/internal/types/params.go index 018be6cc5..1535c5a42 100644 --- a/libs/cosmos-sdk/x/bank/internal/types/params.go +++ b/libs/cosmos-sdk/x/bank/internal/types/params.go @@ -3,7 +3,7 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) const ( diff --git a/libs/cosmos-sdk/x/bank/internal/types/querier.go b/libs/cosmos-sdk/x/bank/internal/types/querier.go index d3df7372c..fec3a2d65 100644 --- a/libs/cosmos-sdk/x/bank/internal/types/querier.go +++ b/libs/cosmos-sdk/x/bank/internal/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // QueryBalanceParams defines the params for querying an account balance. diff --git a/libs/cosmos-sdk/x/bank/internal/typesadapter/bank.pb.go b/libs/cosmos-sdk/x/bank/internal/typesadapter/bank.pb.go index 5637790a5..98ba93e9b 100644 --- a/libs/cosmos-sdk/x/bank/internal/typesadapter/bank.pb.go +++ b/libs/cosmos-sdk/x/bank/internal/typesadapter/bank.pb.go @@ -7,7 +7,7 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" _ "github.com/regen-network/cosmos-proto" io "io" math "math" diff --git a/libs/cosmos-sdk/x/bank/internal/typesadapter/codec.go b/libs/cosmos-sdk/x/bank/internal/typesadapter/codec.go index 0a10a5faa..c7d64889a 100644 --- a/libs/cosmos-sdk/x/bank/internal/typesadapter/codec.go +++ b/libs/cosmos-sdk/x/bank/internal/typesadapter/codec.go @@ -1,11 +1,11 @@ package typesadapter import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" ) var ( diff --git a/libs/cosmos-sdk/x/bank/internal/typesadapter/msgs.go b/libs/cosmos-sdk/x/bank/internal/typesadapter/msgs.go index a357bf832..7bb6b9a82 100644 --- a/libs/cosmos-sdk/x/bank/internal/typesadapter/msgs.go +++ b/libs/cosmos-sdk/x/bank/internal/typesadapter/msgs.go @@ -1,12 +1,12 @@ package typesadapter import ( - "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - okbc_types "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + okbc_types "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/system" ) var ( diff --git a/libs/cosmos-sdk/x/bank/internal/typesadapter/query.pb.go b/libs/cosmos-sdk/x/bank/internal/typesadapter/query.pb.go index 4c4aafadc..06f8f04b6 100644 --- a/libs/cosmos-sdk/x/bank/internal/typesadapter/query.pb.go +++ b/libs/cosmos-sdk/x/bank/internal/typesadapter/query.pb.go @@ -9,8 +9,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" diff --git a/libs/cosmos-sdk/x/bank/internal/typesadapter/tx.pb.go b/libs/cosmos-sdk/x/bank/internal/typesadapter/tx.pb.go index 565fd4eaa..eb37ae6b8 100644 --- a/libs/cosmos-sdk/x/bank/internal/typesadapter/tx.pb.go +++ b/libs/cosmos-sdk/x/bank/internal/typesadapter/tx.pb.go @@ -9,7 +9,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/libs/cosmos-sdk/x/bank/module.go b/libs/cosmos-sdk/x/bank/module.go index ebd3cad03..eef27b1eb 100644 --- a/libs/cosmos-sdk/x/bank/module.go +++ b/libs/cosmos-sdk/x/bank/module.go @@ -8,18 +8,18 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/client/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/simulation" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/simulation" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) var ( diff --git a/libs/cosmos-sdk/x/bank/module_adapter.go b/libs/cosmos-sdk/x/bank/module_adapter.go index 481874de5..71de1f4b6 100644 --- a/libs/cosmos-sdk/x/bank/module_adapter.go +++ b/libs/cosmos-sdk/x/bank/module_adapter.go @@ -1,8 +1,8 @@ package bank import ( - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/keeperadapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/keeperadapter" ) var ( diff --git a/libs/cosmos-sdk/x/bank/module_ibc.go b/libs/cosmos-sdk/x/bank/module_ibc.go index 2903f5dc9..aaea5e2c2 100644 --- a/libs/cosmos-sdk/x/bank/module_ibc.go +++ b/libs/cosmos-sdk/x/bank/module_ibc.go @@ -4,11 +4,11 @@ import ( "context" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - anytypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/typesadapter" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + anytypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/typesadapter" "github.com/spf13/cobra" ) diff --git a/libs/cosmos-sdk/x/bank/simulation/genesis.go b/libs/cosmos-sdk/x/bank/simulation/genesis.go index f6cd66570..fcda911be 100644 --- a/libs/cosmos-sdk/x/bank/simulation/genesis.go +++ b/libs/cosmos-sdk/x/bank/simulation/genesis.go @@ -6,9 +6,9 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" ) // Simulation parameter constants diff --git a/libs/cosmos-sdk/x/bank/simulation/operations.go b/libs/cosmos-sdk/x/bank/simulation/operations.go index 7ccda1a95..561e0d9d8 100644 --- a/libs/cosmos-sdk/x/bank/simulation/operations.go +++ b/libs/cosmos-sdk/x/bank/simulation/operations.go @@ -3,16 +3,16 @@ package simulation import ( "math/rand" - "github.com/okx/okbchain/libs/tendermint/crypto" - - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/tendermint/crypto" + + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // Simulation operation weights constants diff --git a/libs/cosmos-sdk/x/bank/simulation/params.go b/libs/cosmos-sdk/x/bank/simulation/params.go index 9b9e706b3..201d4f811 100644 --- a/libs/cosmos-sdk/x/bank/simulation/params.go +++ b/libs/cosmos-sdk/x/bank/simulation/params.go @@ -6,8 +6,8 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) const keySendEnabled = "sendenabled" diff --git a/libs/cosmos-sdk/x/capability/alias.go b/libs/cosmos-sdk/x/capability/alias.go index 600a09308..bb48391af 100644 --- a/libs/cosmos-sdk/x/capability/alias.go +++ b/libs/cosmos-sdk/x/capability/alias.go @@ -1,6 +1,6 @@ package capability -import "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" +import "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" var ( ModuleCdc = types.ModuleCdc diff --git a/libs/cosmos-sdk/x/capability/genesis.go b/libs/cosmos-sdk/x/capability/genesis.go index 2b93e7690..924fbfa3f 100644 --- a/libs/cosmos-sdk/x/capability/genesis.go +++ b/libs/cosmos-sdk/x/capability/genesis.go @@ -1,9 +1,9 @@ package capability import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/libs/cosmos-sdk/x/capability/keeper/keeper.go b/libs/cosmos-sdk/x/capability/keeper/keeper.go index c846a39a4..a3c1f92af 100644 --- a/libs/cosmos-sdk/x/capability/keeper/keeper.go +++ b/libs/cosmos-sdk/x/capability/keeper/keeper.go @@ -4,14 +4,14 @@ import ( "fmt" "strings" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // initialized is a global variable used by GetCapability to ensure that the memory store diff --git a/libs/cosmos-sdk/x/capability/keeper/keeper_test.go b/libs/cosmos-sdk/x/capability/keeper/keeper_test.go index 059769f03..75665998d 100644 --- a/libs/cosmos-sdk/x/capability/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/capability/keeper/keeper_test.go @@ -4,15 +4,15 @@ import ( "fmt" "testing" - chaincodec "github.com/okx/okbchain/app/codec" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + chaincodec "github.com/okx/brczero/app/codec" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" "github.com/stretchr/testify/suite" ) diff --git a/libs/cosmos-sdk/x/capability/module.go b/libs/cosmos-sdk/x/capability/module.go index 173e1ec9d..9cdd27eac 100644 --- a/libs/cosmos-sdk/x/capability/module.go +++ b/libs/cosmos-sdk/x/capability/module.go @@ -4,19 +4,19 @@ import ( "encoding/json" "math/rand" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - simulation2 "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + simulation2 "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" "github.com/spf13/cobra" ) diff --git a/libs/cosmos-sdk/x/capability/simulation/decoder.go b/libs/cosmos-sdk/x/capability/simulation/decoder.go index 86156318b..5a06c9592 100644 --- a/libs/cosmos-sdk/x/capability/simulation/decoder.go +++ b/libs/cosmos-sdk/x/capability/simulation/decoder.go @@ -3,10 +3,10 @@ package simulation import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/tendermint/libs/kv" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/libs/cosmos-sdk/x/capability/simulation/genesis.go b/libs/cosmos-sdk/x/capability/simulation/genesis.go index f0822525a..d9f220ddd 100644 --- a/libs/cosmos-sdk/x/capability/simulation/genesis.go +++ b/libs/cosmos-sdk/x/capability/simulation/genesis.go @@ -3,8 +3,8 @@ package simulation import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" "math/rand" ) diff --git a/libs/cosmos-sdk/x/capability/types/codec.go b/libs/cosmos-sdk/x/capability/types/codec.go index cededb2d1..69404e7c4 100644 --- a/libs/cosmos-sdk/x/capability/types/codec.go +++ b/libs/cosmos-sdk/x/capability/types/codec.go @@ -1,6 +1,6 @@ package types -import "github.com/okx/okbchain/libs/cosmos-sdk/codec" +import "github.com/okx/brczero/libs/cosmos-sdk/codec" var ModuleCdc *codec.Codec diff --git a/libs/cosmos-sdk/x/capability/types/errors.go b/libs/cosmos-sdk/x/capability/types/errors.go index c2bb01aaf..d7c8b0777 100644 --- a/libs/cosmos-sdk/x/capability/types/errors.go +++ b/libs/cosmos-sdk/x/capability/types/errors.go @@ -1,6 +1,6 @@ package types -import sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +import sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" // DONTCOVER diff --git a/libs/cosmos-sdk/x/capability/types/keys.go b/libs/cosmos-sdk/x/capability/types/keys.go index c05d1edfa..22a054272 100644 --- a/libs/cosmos-sdk/x/capability/types/keys.go +++ b/libs/cosmos-sdk/x/capability/types/keys.go @@ -2,7 +2,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/capability/types/keys_test.go b/libs/cosmos-sdk/x/capability/types/keys_test.go index 3a3643b5a..f9cb95a77 100644 --- a/libs/cosmos-sdk/x/capability/types/keys_test.go +++ b/libs/cosmos-sdk/x/capability/types/keys_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" ) func TestRevCapabilityKey(t *testing.T) { diff --git a/libs/cosmos-sdk/x/capability/types/types.go b/libs/cosmos-sdk/x/capability/types/types.go index 3492712d3..48faeb13a 100644 --- a/libs/cosmos-sdk/x/capability/types/types.go +++ b/libs/cosmos-sdk/x/capability/types/types.go @@ -4,7 +4,7 @@ import ( "fmt" "sort" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" yaml "gopkg.in/yaml.v2" ) diff --git a/libs/cosmos-sdk/x/capability/types/types_test.go b/libs/cosmos-sdk/x/capability/types/types_test.go index 61b08d424..63c50fe7e 100644 --- a/libs/cosmos-sdk/x/capability/types/types_test.go +++ b/libs/cosmos-sdk/x/capability/types/types_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" ) func TestCapabilityKey(t *testing.T) { diff --git a/libs/cosmos-sdk/x/crisis/abci.go b/libs/cosmos-sdk/x/crisis/abci.go index 7bb136fc2..8df7a8c62 100644 --- a/libs/cosmos-sdk/x/crisis/abci.go +++ b/libs/cosmos-sdk/x/crisis/abci.go @@ -1,7 +1,7 @@ package crisis import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // check all registered invariants diff --git a/libs/cosmos-sdk/x/crisis/alias.go b/libs/cosmos-sdk/x/crisis/alias.go index 94135e022..4c85298f9 100644 --- a/libs/cosmos-sdk/x/crisis/alias.go +++ b/libs/cosmos-sdk/x/crisis/alias.go @@ -3,8 +3,8 @@ package crisis // nolint import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/types" ) const ( diff --git a/libs/cosmos-sdk/x/crisis/client/cli/tx.go b/libs/cosmos-sdk/x/crisis/client/cli/tx.go index 42d541dc5..14e600589 100644 --- a/libs/cosmos-sdk/x/crisis/client/cli/tx.go +++ b/libs/cosmos-sdk/x/crisis/client/cli/tx.go @@ -6,14 +6,14 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/types" ) // command to replace a delegator's withdrawal address diff --git a/libs/cosmos-sdk/x/crisis/genesis.go b/libs/cosmos-sdk/x/crisis/genesis.go index 41adcce20..cec29571b 100644 --- a/libs/cosmos-sdk/x/crisis/genesis.go +++ b/libs/cosmos-sdk/x/crisis/genesis.go @@ -1,9 +1,9 @@ package crisis import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/types" ) // new crisis genesis diff --git a/libs/cosmos-sdk/x/crisis/handler.go b/libs/cosmos-sdk/x/crisis/handler.go index 4b14839df..2e3144f3c 100644 --- a/libs/cosmos-sdk/x/crisis/handler.go +++ b/libs/cosmos-sdk/x/crisis/handler.go @@ -1,10 +1,10 @@ package crisis import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/types" ) // RouterKey diff --git a/libs/cosmos-sdk/x/crisis/handler_test.go b/libs/cosmos-sdk/x/crisis/handler_test.go index 436e6eda2..66767ea9c 100644 --- a/libs/cosmos-sdk/x/crisis/handler_test.go +++ b/libs/cosmos-sdk/x/crisis/handler_test.go @@ -4,17 +4,17 @@ import ( "fmt" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis" - distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis" + distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) var ( diff --git a/libs/cosmos-sdk/x/crisis/internal/keeper/integration_test.go b/libs/cosmos-sdk/x/crisis/internal/keeper/integration_test.go index 2493fcb20..947174c03 100644 --- a/libs/cosmos-sdk/x/crisis/internal/keeper/integration_test.go +++ b/libs/cosmos-sdk/x/crisis/internal/keeper/integration_test.go @@ -1,12 +1,12 @@ package keeper_test import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" ) func createTestApp() *simapp.SimApp { diff --git a/libs/cosmos-sdk/x/crisis/internal/keeper/keeper.go b/libs/cosmos-sdk/x/crisis/internal/keeper/keeper.go index c7dba5d92..61ab950b0 100644 --- a/libs/cosmos-sdk/x/crisis/internal/keeper/keeper.go +++ b/libs/cosmos-sdk/x/crisis/internal/keeper/keeper.go @@ -4,11 +4,11 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // Keeper - crisis keeper diff --git a/libs/cosmos-sdk/x/crisis/internal/keeper/keeper_test.go b/libs/cosmos-sdk/x/crisis/internal/keeper/keeper_test.go index 4db006018..f5984a5d0 100644 --- a/libs/cosmos-sdk/x/crisis/internal/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/crisis/internal/keeper/keeper_test.go @@ -3,10 +3,10 @@ package keeper_test import ( "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestLogger(t *testing.T) { diff --git a/libs/cosmos-sdk/x/crisis/internal/keeper/params.go b/libs/cosmos-sdk/x/crisis/internal/keeper/params.go index ede5261de..a400ddad3 100644 --- a/libs/cosmos-sdk/x/crisis/internal/keeper/params.go +++ b/libs/cosmos-sdk/x/crisis/internal/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/types" ) // GetConstantFee get's the constant fee from the paramSpace diff --git a/libs/cosmos-sdk/x/crisis/internal/types/codec.go b/libs/cosmos-sdk/x/crisis/internal/types/codec.go index f9a172a9c..fe73ce221 100644 --- a/libs/cosmos-sdk/x/crisis/internal/types/codec.go +++ b/libs/cosmos-sdk/x/crisis/internal/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // Register concrete types on codec codec diff --git a/libs/cosmos-sdk/x/crisis/internal/types/errors.go b/libs/cosmos-sdk/x/crisis/internal/types/errors.go index c9ba6f772..ab79dcbe9 100644 --- a/libs/cosmos-sdk/x/crisis/internal/types/errors.go +++ b/libs/cosmos-sdk/x/crisis/internal/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // x/crisis module sentinel errors diff --git a/libs/cosmos-sdk/x/crisis/internal/types/expected_keepers.go b/libs/cosmos-sdk/x/crisis/internal/types/expected_keepers.go index c447f9512..d0e7f2cad 100644 --- a/libs/cosmos-sdk/x/crisis/internal/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/crisis/internal/types/expected_keepers.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // SupplyKeeper defines the expected supply keeper (noalias) diff --git a/libs/cosmos-sdk/x/crisis/internal/types/genesis.go b/libs/cosmos-sdk/x/crisis/internal/types/genesis.go index 1171c9bf5..37669d0b7 100644 --- a/libs/cosmos-sdk/x/crisis/internal/types/genesis.go +++ b/libs/cosmos-sdk/x/crisis/internal/types/genesis.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GenesisState - crisis genesis state diff --git a/libs/cosmos-sdk/x/crisis/internal/types/msgs.go b/libs/cosmos-sdk/x/crisis/internal/types/msgs.go index 7e4784078..f6bb5b66a 100644 --- a/libs/cosmos-sdk/x/crisis/internal/types/msgs.go +++ b/libs/cosmos-sdk/x/crisis/internal/types/msgs.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // MsgVerifyInvariant - message struct to verify a particular invariance diff --git a/libs/cosmos-sdk/x/crisis/internal/types/params.go b/libs/cosmos-sdk/x/crisis/internal/types/params.go index 4859722fd..a15cde608 100644 --- a/libs/cosmos-sdk/x/crisis/internal/types/params.go +++ b/libs/cosmos-sdk/x/crisis/internal/types/params.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // Default parameter namespace diff --git a/libs/cosmos-sdk/x/crisis/internal/types/route.go b/libs/cosmos-sdk/x/crisis/internal/types/route.go index da6255168..6db811dc3 100644 --- a/libs/cosmos-sdk/x/crisis/internal/types/route.go +++ b/libs/cosmos-sdk/x/crisis/internal/types/route.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // invariant route diff --git a/libs/cosmos-sdk/x/crisis/module.go b/libs/cosmos-sdk/x/crisis/module.go index ceed93a6e..b2e32b222 100644 --- a/libs/cosmos-sdk/x/crisis/module.go +++ b/libs/cosmos-sdk/x/crisis/module.go @@ -7,15 +7,15 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - //"github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis/internal/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + //"github.com/okx/brczero/libs/cosmos-sdk/x/crisis/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis/internal/types" ) var ( diff --git a/libs/cosmos-sdk/x/distribution/abci.go b/libs/cosmos-sdk/x/distribution/abci.go index ded319d12..9c91aff7a 100644 --- a/libs/cosmos-sdk/x/distribution/abci.go +++ b/libs/cosmos-sdk/x/distribution/abci.go @@ -1,10 +1,10 @@ package distribution import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/keeper" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/keeper" ) // BeginBlocker sets the proposer for determining distribution during endblock diff --git a/libs/cosmos-sdk/x/distribution/alias.go b/libs/cosmos-sdk/x/distribution/alias.go index 15badd0d3..8fdb0b8a2 100644 --- a/libs/cosmos-sdk/x/distribution/alias.go +++ b/libs/cosmos-sdk/x/distribution/alias.go @@ -1,9 +1,9 @@ package distribution import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/client" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // nolint diff --git a/libs/cosmos-sdk/x/distribution/client/cli/query.go b/libs/cosmos-sdk/x/distribution/client/cli/query.go index 0dacec021..b9410a079 100644 --- a/libs/cosmos-sdk/x/distribution/client/cli/query.go +++ b/libs/cosmos-sdk/x/distribution/client/cli/query.go @@ -7,14 +7,14 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/client/common" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/client/common" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/libs/cosmos-sdk/x/distribution/client/cli/tx.go b/libs/cosmos-sdk/x/distribution/client/cli/tx.go index 91cea804f..b1054a51f 100644 --- a/libs/cosmos-sdk/x/distribution/client/cli/tx.go +++ b/libs/cosmos-sdk/x/distribution/client/cli/tx.go @@ -9,18 +9,18 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov" - - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/client/common" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov" + + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/client/common" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) var ( diff --git a/libs/cosmos-sdk/x/distribution/client/cli/tx_test.go b/libs/cosmos-sdk/x/distribution/client/cli/tx_test.go index ba40f6b35..0ca07004a 100644 --- a/libs/cosmos-sdk/x/distribution/client/cli/tx_test.go +++ b/libs/cosmos-sdk/x/distribution/client/cli/tx_test.go @@ -3,14 +3,14 @@ package cli import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" ) func createFakeTxBuilder() auth.TxBuilder { diff --git a/libs/cosmos-sdk/x/distribution/client/cli/utils.go b/libs/cosmos-sdk/x/distribution/client/cli/utils.go index 9c64bf855..1647d8469 100644 --- a/libs/cosmos-sdk/x/distribution/client/cli/utils.go +++ b/libs/cosmos-sdk/x/distribution/client/cli/utils.go @@ -3,8 +3,8 @@ package cli import ( "io/ioutil" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type ( diff --git a/libs/cosmos-sdk/x/distribution/client/common/common.go b/libs/cosmos-sdk/x/distribution/client/common/common.go index 1797ec58a..c23b28c67 100644 --- a/libs/cosmos-sdk/x/distribution/client/common/common.go +++ b/libs/cosmos-sdk/x/distribution/client/common/common.go @@ -3,9 +3,9 @@ package common import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // QueryDelegationRewards queries a delegation rewards between a delegator and a diff --git a/libs/cosmos-sdk/x/distribution/client/common/common_test.go b/libs/cosmos-sdk/x/distribution/client/common/common_test.go index 8b1dc48c1..941742b0f 100644 --- a/libs/cosmos-sdk/x/distribution/client/common/common_test.go +++ b/libs/cosmos-sdk/x/distribution/client/common/common_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) func TestQueryDelegationRewardsAddrValidation(t *testing.T) { diff --git a/libs/cosmos-sdk/x/distribution/client/proposal_handler.go b/libs/cosmos-sdk/x/distribution/client/proposal_handler.go index 5c0618fbc..7bf981092 100644 --- a/libs/cosmos-sdk/x/distribution/client/proposal_handler.go +++ b/libs/cosmos-sdk/x/distribution/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/client/rest" - govclient "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/client/rest" + govclient "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client" ) // param change proposal handler diff --git a/libs/cosmos-sdk/x/distribution/client/rest/query.go b/libs/cosmos-sdk/x/distribution/client/rest/query.go index 7c79196fe..0ce3ee466 100644 --- a/libs/cosmos-sdk/x/distribution/client/rest/query.go +++ b/libs/cosmos-sdk/x/distribution/client/rest/query.go @@ -6,12 +6,12 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/client/common" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/client/common" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router, queryRoute string) { diff --git a/libs/cosmos-sdk/x/distribution/client/rest/rest.go b/libs/cosmos-sdk/x/distribution/client/rest/rest.go index 4d82cb089..ba3b1a27d 100644 --- a/libs/cosmos-sdk/x/distribution/client/rest/rest.go +++ b/libs/cosmos-sdk/x/distribution/client/rest/rest.go @@ -5,13 +5,13 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov" - govrest "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov" + govrest "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/rest" ) // RegisterRoutes register distribution REST routes. diff --git a/libs/cosmos-sdk/x/distribution/client/rest/tx.go b/libs/cosmos-sdk/x/distribution/client/rest/tx.go index d8c7aa5a7..c0d0aa683 100644 --- a/libs/cosmos-sdk/x/distribution/client/rest/tx.go +++ b/libs/cosmos-sdk/x/distribution/client/rest/tx.go @@ -5,13 +5,13 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/client/common" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/client/common" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router, queryRoute string) { diff --git a/libs/cosmos-sdk/x/distribution/client/rest/utils.go b/libs/cosmos-sdk/x/distribution/client/rest/utils.go index c9c19289b..ad8c77681 100644 --- a/libs/cosmos-sdk/x/distribution/client/rest/utils.go +++ b/libs/cosmos-sdk/x/distribution/client/rest/utils.go @@ -1,8 +1,8 @@ package rest import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" ) type ( diff --git a/libs/cosmos-sdk/x/distribution/genesis.go b/libs/cosmos-sdk/x/distribution/genesis.go index 4f6e9f096..2cd47d37c 100644 --- a/libs/cosmos-sdk/x/distribution/genesis.go +++ b/libs/cosmos-sdk/x/distribution/genesis.go @@ -3,8 +3,8 @@ package distribution import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // InitGenesis sets distribution information for genesis diff --git a/libs/cosmos-sdk/x/distribution/handler.go b/libs/cosmos-sdk/x/distribution/handler.go index c04d2c261..b120a7754 100644 --- a/libs/cosmos-sdk/x/distribution/handler.go +++ b/libs/cosmos-sdk/x/distribution/handler.go @@ -1,11 +1,11 @@ package distribution import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) func NewHandler(k keeper.Keeper) sdk.Handler { diff --git a/libs/cosmos-sdk/x/distribution/keeper/alias_functions.go b/libs/cosmos-sdk/x/distribution/keeper/alias_functions.go index 141b99b30..afa5bd336 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/alias_functions.go +++ b/libs/cosmos-sdk/x/distribution/keeper/alias_functions.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // get outstanding rewards diff --git a/libs/cosmos-sdk/x/distribution/keeper/allocation.go b/libs/cosmos-sdk/x/distribution/keeper/allocation.go index 84e1abd3b..d9e88ffdd 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/allocation.go +++ b/libs/cosmos-sdk/x/distribution/keeper/allocation.go @@ -3,11 +3,11 @@ package keeper import ( "fmt" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // AllocateTokens handles distribution of the collected fees diff --git a/libs/cosmos-sdk/x/distribution/keeper/allocation_test.go b/libs/cosmos-sdk/x/distribution/keeper/allocation_test.go index 4b48d5104..d563246fa 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/allocation_test.go +++ b/libs/cosmos-sdk/x/distribution/keeper/allocation_test.go @@ -3,11 +3,11 @@ package keeper import ( "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" ) func TestAllocateTokensToValidatorWithCommission(t *testing.T) { diff --git a/libs/cosmos-sdk/x/distribution/keeper/delegation.go b/libs/cosmos-sdk/x/distribution/keeper/delegation.go index 26621c81c..5a9939ed1 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/delegation.go +++ b/libs/cosmos-sdk/x/distribution/keeper/delegation.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // initialize starting info for a new delegation diff --git a/libs/cosmos-sdk/x/distribution/keeper/delegation_test.go b/libs/cosmos-sdk/x/distribution/keeper/delegation_test.go index 5f4dd8f06..9f5019d1b 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/delegation_test.go +++ b/libs/cosmos-sdk/x/distribution/keeper/delegation_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" ) func TestCalculateRewardsBasic(t *testing.T) { diff --git a/libs/cosmos-sdk/x/distribution/keeper/fee_pool.go b/libs/cosmos-sdk/x/distribution/keeper/fee_pool.go index 30800976c..d31fc37a2 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/fee_pool.go +++ b/libs/cosmos-sdk/x/distribution/keeper/fee_pool.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // DistributeFromFeePool distributes funds from the distribution module account to diff --git a/libs/cosmos-sdk/x/distribution/keeper/hooks.go b/libs/cosmos-sdk/x/distribution/keeper/hooks.go index b10fc7815..6506d79f8 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/hooks.go +++ b/libs/cosmos-sdk/x/distribution/keeper/hooks.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // Wrapper struct diff --git a/libs/cosmos-sdk/x/distribution/keeper/invariants.go b/libs/cosmos-sdk/x/distribution/keeper/invariants.go index 19c1ff874..2cded91b2 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/invariants.go +++ b/libs/cosmos-sdk/x/distribution/keeper/invariants.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // register all distribution invariants diff --git a/libs/cosmos-sdk/x/distribution/keeper/keeper.go b/libs/cosmos-sdk/x/distribution/keeper/keeper.go index 24aa8f459..cd8b62597 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/keeper.go +++ b/libs/cosmos-sdk/x/distribution/keeper/keeper.go @@ -3,13 +3,13 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // Keeper of the distribution store diff --git a/libs/cosmos-sdk/x/distribution/keeper/keeper_test.go b/libs/cosmos-sdk/x/distribution/keeper/keeper_test.go index c9cb34dd6..3debfebc9 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/distribution/keeper/keeper_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestSetWithdrawAddr(t *testing.T) { diff --git a/libs/cosmos-sdk/x/distribution/keeper/params.go b/libs/cosmos-sdk/x/distribution/keeper/params.go index 787120179..d0a63843b 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/params.go +++ b/libs/cosmos-sdk/x/distribution/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // GetParams returns the total set of distribution parameters. diff --git a/libs/cosmos-sdk/x/distribution/keeper/proposal_handler.go b/libs/cosmos-sdk/x/distribution/keeper/proposal_handler.go index e68213f15..38a243e28 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/proposal_handler.go +++ b/libs/cosmos-sdk/x/distribution/keeper/proposal_handler.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // HandleCommunityPoolSpendProposal is a handler for executing a passed community spend proposal diff --git a/libs/cosmos-sdk/x/distribution/keeper/querier.go b/libs/cosmos-sdk/x/distribution/keeper/querier.go index 5d806c186..0e4144b08 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/querier.go +++ b/libs/cosmos-sdk/x/distribution/keeper/querier.go @@ -3,13 +3,13 @@ package keeper import ( "encoding/json" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) func NewQuerier(k Keeper) sdk.Querier { diff --git a/libs/cosmos-sdk/x/distribution/keeper/querier_test.go b/libs/cosmos-sdk/x/distribution/keeper/querier_test.go index d3afb3d46..5ad6dc6ae 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/querier_test.go +++ b/libs/cosmos-sdk/x/distribution/keeper/querier_test.go @@ -6,13 +6,13 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) const custom = "custom" diff --git a/libs/cosmos-sdk/x/distribution/keeper/store.go b/libs/cosmos-sdk/x/distribution/keeper/store.go index da5cc6ab5..8820a9494 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/store.go +++ b/libs/cosmos-sdk/x/distribution/keeper/store.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // get the delegator withdraw address, defaulting to the delegator address diff --git a/libs/cosmos-sdk/x/distribution/keeper/test_common.go b/libs/cosmos-sdk/x/distribution/keeper/test_common.go index 62a7e0c07..6d83dbcd5 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/test_common.go +++ b/libs/cosmos-sdk/x/distribution/keeper/test_common.go @@ -5,21 +5,21 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) //nolint:deadcode,unused diff --git a/libs/cosmos-sdk/x/distribution/keeper/validator.go b/libs/cosmos-sdk/x/distribution/keeper/validator.go index 667072150..aba9e6c9f 100644 --- a/libs/cosmos-sdk/x/distribution/keeper/validator.go +++ b/libs/cosmos-sdk/x/distribution/keeper/validator.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // initialize rewards for a new validator diff --git a/libs/cosmos-sdk/x/distribution/legacy/v0_34/types.go b/libs/cosmos-sdk/x/distribution/legacy/v0_34/types.go index 5aa5acad3..2e7f5def4 100644 --- a/libs/cosmos-sdk/x/distribution/legacy/v0_34/types.go +++ b/libs/cosmos-sdk/x/distribution/legacy/v0_34/types.go @@ -3,7 +3,7 @@ package v0_34 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ---------------------------------------------------------------------------- diff --git a/libs/cosmos-sdk/x/distribution/legacy/v0_36/migrate.go b/libs/cosmos-sdk/x/distribution/legacy/v0_36/migrate.go index 2ddb5473d..f56aa8f4b 100644 --- a/libs/cosmos-sdk/x/distribution/legacy/v0_36/migrate.go +++ b/libs/cosmos-sdk/x/distribution/legacy/v0_36/migrate.go @@ -1,7 +1,7 @@ package v0_36 import ( - v034distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_34" + v034distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_34" ) // Migrate accepts exported genesis state from v0.34 and migrates it to v0.36 diff --git a/libs/cosmos-sdk/x/distribution/legacy/v0_36/migrate_test.go b/libs/cosmos-sdk/x/distribution/legacy/v0_36/migrate_test.go index 66856a05f..f99232f03 100644 --- a/libs/cosmos-sdk/x/distribution/legacy/v0_36/migrate_test.go +++ b/libs/cosmos-sdk/x/distribution/legacy/v0_36/migrate_test.go @@ -3,10 +3,10 @@ package v0_36 import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_34" + "github.com/okx/brczero/libs/cosmos-sdk/types" + v034distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_34" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/distribution/legacy/v0_36/types.go b/libs/cosmos-sdk/x/distribution/legacy/v0_36/types.go index 0c7bcb7fb..aca38e4ae 100644 --- a/libs/cosmos-sdk/x/distribution/legacy/v0_36/types.go +++ b/libs/cosmos-sdk/x/distribution/legacy/v0_36/types.go @@ -3,8 +3,8 @@ package v0_36 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_34" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + v034distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_34" ) // ---------------------------------------------------------------------------- diff --git a/libs/cosmos-sdk/x/distribution/legacy/v0_38/migrate.go b/libs/cosmos-sdk/x/distribution/legacy/v0_38/migrate.go index 7ce92f80d..eb0d8e69a 100644 --- a/libs/cosmos-sdk/x/distribution/legacy/v0_38/migrate.go +++ b/libs/cosmos-sdk/x/distribution/legacy/v0_38/migrate.go @@ -4,7 +4,7 @@ package v0_38 // nolint import ( - v036distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_36" + v036distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_36" ) // Migrate accepts exported genesis state from v0.36 or v0.37 and migrates it to diff --git a/libs/cosmos-sdk/x/distribution/legacy/v0_38/types.go b/libs/cosmos-sdk/x/distribution/legacy/v0_38/types.go index d3d1a400f..ec5ed5a9c 100644 --- a/libs/cosmos-sdk/x/distribution/legacy/v0_38/types.go +++ b/libs/cosmos-sdk/x/distribution/legacy/v0_38/types.go @@ -1,9 +1,9 @@ package v0_38 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_34" - v036distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_36" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + v034distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_34" + v036distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_36" ) // DONTCOVER diff --git a/libs/cosmos-sdk/x/distribution/module.go b/libs/cosmos-sdk/x/distribution/module.go index b8b3fc1f7..b99c34f14 100644 --- a/libs/cosmos-sdk/x/distribution/module.go +++ b/libs/cosmos-sdk/x/distribution/module.go @@ -8,18 +8,18 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/client/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - stakingkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + stakingkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" ) var ( diff --git a/libs/cosmos-sdk/x/distribution/proposal_handler_test.go b/libs/cosmos-sdk/x/distribution/proposal_handler_test.go index e889c0514..669d630b0 100644 --- a/libs/cosmos-sdk/x/distribution/proposal_handler_test.go +++ b/libs/cosmos-sdk/x/distribution/proposal_handler_test.go @@ -3,12 +3,12 @@ package distribution import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) var ( diff --git a/libs/cosmos-sdk/x/distribution/simulation/decoder.go b/libs/cosmos-sdk/x/distribution/simulation/decoder.go index c70793229..cddd0a832 100644 --- a/libs/cosmos-sdk/x/distribution/simulation/decoder.go +++ b/libs/cosmos-sdk/x/distribution/simulation/decoder.go @@ -4,11 +4,11 @@ import ( "bytes" "fmt" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // DecodeStore unmarshals the KVPair's Value to the corresponding distribution type diff --git a/libs/cosmos-sdk/x/distribution/simulation/decoder_test.go b/libs/cosmos-sdk/x/distribution/simulation/decoder_test.go index dd1699fd4..6005df33e 100644 --- a/libs/cosmos-sdk/x/distribution/simulation/decoder_test.go +++ b/libs/cosmos-sdk/x/distribution/simulation/decoder_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) var ( diff --git a/libs/cosmos-sdk/x/distribution/simulation/genesis.go b/libs/cosmos-sdk/x/distribution/simulation/genesis.go index 3f1d45a3f..c22574c9c 100644 --- a/libs/cosmos-sdk/x/distribution/simulation/genesis.go +++ b/libs/cosmos-sdk/x/distribution/simulation/genesis.go @@ -6,11 +6,11 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" ) // Simulation parameter constants diff --git a/libs/cosmos-sdk/x/distribution/simulation/operations.go b/libs/cosmos-sdk/x/distribution/simulation/operations.go index 8c5f78812..4764da4b2 100644 --- a/libs/cosmos-sdk/x/distribution/simulation/operations.go +++ b/libs/cosmos-sdk/x/distribution/simulation/operations.go @@ -4,15 +4,15 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - stakingkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + stakingkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" ) // Simulation operation weights constants diff --git a/libs/cosmos-sdk/x/distribution/simulation/params.go b/libs/cosmos-sdk/x/distribution/simulation/params.go index 6134dbde9..7e4a8b320 100644 --- a/libs/cosmos-sdk/x/distribution/simulation/params.go +++ b/libs/cosmos-sdk/x/distribution/simulation/params.go @@ -6,8 +6,8 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) const ( diff --git a/libs/cosmos-sdk/x/distribution/simulation/proposals.go b/libs/cosmos-sdk/x/distribution/simulation/proposals.go index 5bf04aa69..2e5624b7e 100644 --- a/libs/cosmos-sdk/x/distribution/simulation/proposals.go +++ b/libs/cosmos-sdk/x/distribution/simulation/proposals.go @@ -3,12 +3,12 @@ package simulation import ( "math/rand" - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // OpWeightSubmitCommunitySpendProposal app params key for community spend proposal diff --git a/libs/cosmos-sdk/x/distribution/types/codec.go b/libs/cosmos-sdk/x/distribution/types/codec.go index 761061a58..626bd9023 100644 --- a/libs/cosmos-sdk/x/distribution/types/codec.go +++ b/libs/cosmos-sdk/x/distribution/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // RegisterCodec concrete distribution types on amino codec diff --git a/libs/cosmos-sdk/x/distribution/types/common_test.go b/libs/cosmos-sdk/x/distribution/types/common_test.go index 654bbce44..d886fd44f 100644 --- a/libs/cosmos-sdk/x/distribution/types/common_test.go +++ b/libs/cosmos-sdk/x/distribution/types/common_test.go @@ -1,10 +1,10 @@ package types import ( - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // nolint:deadcode,unused,varcheck diff --git a/libs/cosmos-sdk/x/distribution/types/delegator.go b/libs/cosmos-sdk/x/distribution/types/delegator.go index efe4846e0..00bd71c2e 100644 --- a/libs/cosmos-sdk/x/distribution/types/delegator.go +++ b/libs/cosmos-sdk/x/distribution/types/delegator.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // starting info for a delegator reward period diff --git a/libs/cosmos-sdk/x/distribution/types/errors.go b/libs/cosmos-sdk/x/distribution/types/errors.go index 3146f7bb5..70ed9e2d3 100644 --- a/libs/cosmos-sdk/x/distribution/types/errors.go +++ b/libs/cosmos-sdk/x/distribution/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // x/distribution module sentinel errors diff --git a/libs/cosmos-sdk/x/distribution/types/expected_keepers.go b/libs/cosmos-sdk/x/distribution/types/expected_keepers.go index c8232b87a..dfbcd5ac2 100644 --- a/libs/cosmos-sdk/x/distribution/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/distribution/types/expected_keepers.go @@ -1,11 +1,11 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - stakingexported "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + stakingexported "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // AccountKeeper defines the expected account keeper used for simulations (noalias) diff --git a/libs/cosmos-sdk/x/distribution/types/fee_pool.go b/libs/cosmos-sdk/x/distribution/types/fee_pool.go index d37cfca09..5e4f8aff7 100644 --- a/libs/cosmos-sdk/x/distribution/types/fee_pool.go +++ b/libs/cosmos-sdk/x/distribution/types/fee_pool.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // global fee pool for distribution diff --git a/libs/cosmos-sdk/x/distribution/types/fee_pool_test.go b/libs/cosmos-sdk/x/distribution/types/fee_pool_test.go index f8008df6a..34e1daf9b 100644 --- a/libs/cosmos-sdk/x/distribution/types/fee_pool_test.go +++ b/libs/cosmos-sdk/x/distribution/types/fee_pool_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestValidateGenesis(t *testing.T) { diff --git a/libs/cosmos-sdk/x/distribution/types/genesis.go b/libs/cosmos-sdk/x/distribution/types/genesis.go index 3a42ce540..21c586896 100644 --- a/libs/cosmos-sdk/x/distribution/types/genesis.go +++ b/libs/cosmos-sdk/x/distribution/types/genesis.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // the address for where distributions rewards are withdrawn to by default diff --git a/libs/cosmos-sdk/x/distribution/types/keys.go b/libs/cosmos-sdk/x/distribution/types/keys.go index 70ed22d6c..f5a18651e 100644 --- a/libs/cosmos-sdk/x/distribution/types/keys.go +++ b/libs/cosmos-sdk/x/distribution/types/keys.go @@ -3,7 +3,7 @@ package types import ( "encoding/binary" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/distribution/types/msg.go b/libs/cosmos-sdk/x/distribution/types/msg.go index 1b2a294e6..6abee70c5 100644 --- a/libs/cosmos-sdk/x/distribution/types/msg.go +++ b/libs/cosmos-sdk/x/distribution/types/msg.go @@ -2,8 +2,8 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // Verify interface at compile time diff --git a/libs/cosmos-sdk/x/distribution/types/msg_test.go b/libs/cosmos-sdk/x/distribution/types/msg_test.go index b7d6a52ec..95ca26faf 100644 --- a/libs/cosmos-sdk/x/distribution/types/msg_test.go +++ b/libs/cosmos-sdk/x/distribution/types/msg_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // test ValidateBasic for MsgSetWithdrawAddress diff --git a/libs/cosmos-sdk/x/distribution/types/params.go b/libs/cosmos-sdk/x/distribution/types/params.go index b2d9b68fb..786f27714 100644 --- a/libs/cosmos-sdk/x/distribution/types/params.go +++ b/libs/cosmos-sdk/x/distribution/types/params.go @@ -5,8 +5,8 @@ import ( "gopkg.in/yaml.v2" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) const ( diff --git a/libs/cosmos-sdk/x/distribution/types/params_test.go b/libs/cosmos-sdk/x/distribution/types/params_test.go index 61dad0e46..3fc9c52e6 100644 --- a/libs/cosmos-sdk/x/distribution/types/params_test.go +++ b/libs/cosmos-sdk/x/distribution/types/params_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Test_validateAuxFuncs(t *testing.T) { diff --git a/libs/cosmos-sdk/x/distribution/types/proposal.go b/libs/cosmos-sdk/x/distribution/types/proposal.go index d7e553382..1cb5d368b 100644 --- a/libs/cosmos-sdk/x/distribution/types/proposal.go +++ b/libs/cosmos-sdk/x/distribution/types/proposal.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) const ( diff --git a/libs/cosmos-sdk/x/distribution/types/querier.go b/libs/cosmos-sdk/x/distribution/types/querier.go index df02061cb..338b77c0c 100644 --- a/libs/cosmos-sdk/x/distribution/types/querier.go +++ b/libs/cosmos-sdk/x/distribution/types/querier.go @@ -1,6 +1,6 @@ package types -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // querier keys const ( diff --git a/libs/cosmos-sdk/x/distribution/types/query.go b/libs/cosmos-sdk/x/distribution/types/query.go index f3fd9a476..94a5a1db5 100644 --- a/libs/cosmos-sdk/x/distribution/types/query.go +++ b/libs/cosmos-sdk/x/distribution/types/query.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // QueryDelegatorTotalRewardsResponse defines the properties of diff --git a/libs/cosmos-sdk/x/distribution/types/validator.go b/libs/cosmos-sdk/x/distribution/types/validator.go index 9e013e950..2adf1f0d1 100644 --- a/libs/cosmos-sdk/x/distribution/types/validator.go +++ b/libs/cosmos-sdk/x/distribution/types/validator.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // historical rewards for a validator diff --git a/libs/cosmos-sdk/x/evidence/abci.go b/libs/cosmos-sdk/x/evidence/abci.go index 1819a67e0..9f4250cc8 100644 --- a/libs/cosmos-sdk/x/evidence/abci.go +++ b/libs/cosmos-sdk/x/evidence/abci.go @@ -3,10 +3,10 @@ package evidence import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // BeginBlocker iterates through and handles any newly discovered evidence of diff --git a/libs/cosmos-sdk/x/evidence/alias.go b/libs/cosmos-sdk/x/evidence/alias.go index 2dd0990e6..df38620ec 100644 --- a/libs/cosmos-sdk/x/evidence/alias.go +++ b/libs/cosmos-sdk/x/evidence/alias.go @@ -1,8 +1,8 @@ package evidence import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" ) // nolint diff --git a/libs/cosmos-sdk/x/evidence/client/cli/query.go b/libs/cosmos-sdk/x/evidence/client/cli/query.go index 21aaa82cf..f0ad31b85 100644 --- a/libs/cosmos-sdk/x/evidence/client/cli/query.go +++ b/libs/cosmos-sdk/x/evidence/client/cli/query.go @@ -8,13 +8,13 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" ) // GetQueryCmd returns the CLI command with all evidence module query commands diff --git a/libs/cosmos-sdk/x/evidence/client/cli/tx.go b/libs/cosmos-sdk/x/evidence/client/cli/tx.go index 222781869..185c5c647 100644 --- a/libs/cosmos-sdk/x/evidence/client/cli/tx.go +++ b/libs/cosmos-sdk/x/evidence/client/cli/tx.go @@ -1,10 +1,10 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" "github.com/spf13/cobra" ) diff --git a/libs/cosmos-sdk/x/evidence/client/evidence_handler.go b/libs/cosmos-sdk/x/evidence/client/evidence_handler.go index e312f577e..ca2552212 100644 --- a/libs/cosmos-sdk/x/evidence/client/evidence_handler.go +++ b/libs/cosmos-sdk/x/evidence/client/evidence_handler.go @@ -3,9 +3,9 @@ package client import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/client/rest" ) type ( diff --git a/libs/cosmos-sdk/x/evidence/client/rest/query.go b/libs/cosmos-sdk/x/evidence/client/rest/query.go index 5a4a99b54..8b673c5dc 100644 --- a/libs/cosmos-sdk/x/evidence/client/rest/query.go +++ b/libs/cosmos-sdk/x/evidence/client/rest/query.go @@ -5,9 +5,9 @@ import ( "net/http" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" "github.com/gorilla/mux" ) diff --git a/libs/cosmos-sdk/x/evidence/client/rest/rest.go b/libs/cosmos-sdk/x/evidence/client/rest/rest.go index 4e067ce96..4e022300c 100644 --- a/libs/cosmos-sdk/x/evidence/client/rest/rest.go +++ b/libs/cosmos-sdk/x/evidence/client/rest/rest.go @@ -3,7 +3,7 @@ package rest import ( "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" "github.com/gorilla/mux" ) diff --git a/libs/cosmos-sdk/x/evidence/client/rest/tx.go b/libs/cosmos-sdk/x/evidence/client/rest/tx.go index e36a4b332..ded7c4bc7 100644 --- a/libs/cosmos-sdk/x/evidence/client/rest/tx.go +++ b/libs/cosmos-sdk/x/evidence/client/rest/tx.go @@ -1,7 +1,7 @@ package rest import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" "github.com/gorilla/mux" ) diff --git a/libs/cosmos-sdk/x/evidence/exported/evidence.go b/libs/cosmos-sdk/x/evidence/exported/evidence.go index dfef15cbd..9641aaede 100644 --- a/libs/cosmos-sdk/x/evidence/exported/evidence.go +++ b/libs/cosmos-sdk/x/evidence/exported/evidence.go @@ -1,9 +1,9 @@ package exported import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" ) // Evidence defines the contract which concrete evidence types of misbehavior diff --git a/libs/cosmos-sdk/x/evidence/genesis.go b/libs/cosmos-sdk/x/evidence/genesis.go index 5cdfed769..4949c8b9c 100644 --- a/libs/cosmos-sdk/x/evidence/genesis.go +++ b/libs/cosmos-sdk/x/evidence/genesis.go @@ -3,7 +3,7 @@ package evidence import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // InitGenesis initializes the evidence module's state from a provided genesis diff --git a/libs/cosmos-sdk/x/evidence/genesis_test.go b/libs/cosmos-sdk/x/evidence/genesis_test.go index c256ad4b3..4bbb7faea 100644 --- a/libs/cosmos-sdk/x/evidence/genesis_test.go +++ b/libs/cosmos-sdk/x/evidence/genesis_test.go @@ -3,14 +3,14 @@ package evidence_test import ( "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" "github.com/stretchr/testify/suite" ) diff --git a/libs/cosmos-sdk/x/evidence/handler.go b/libs/cosmos-sdk/x/evidence/handler.go index 079f77c8a..9ab9968ba 100644 --- a/libs/cosmos-sdk/x/evidence/handler.go +++ b/libs/cosmos-sdk/x/evidence/handler.go @@ -1,8 +1,8 @@ package evidence import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) func NewHandler(k Keeper) sdk.Handler { diff --git a/libs/cosmos-sdk/x/evidence/handler_test.go b/libs/cosmos-sdk/x/evidence/handler_test.go index 8ed5a708e..23f225030 100644 --- a/libs/cosmos-sdk/x/evidence/handler_test.go +++ b/libs/cosmos-sdk/x/evidence/handler_test.go @@ -3,13 +3,13 @@ package evidence_test import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/suite" ) diff --git a/libs/cosmos-sdk/x/evidence/internal/keeper/infraction.go b/libs/cosmos-sdk/x/evidence/internal/keeper/infraction.go index bdb452954..fd6591c68 100644 --- a/libs/cosmos-sdk/x/evidence/internal/keeper/infraction.go +++ b/libs/cosmos-sdk/x/evidence/internal/keeper/infraction.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" ) // HandleDoubleSign implements an equivocation evidence handler. Assuming the diff --git a/libs/cosmos-sdk/x/evidence/internal/keeper/infraction_test.go b/libs/cosmos-sdk/x/evidence/internal/keeper/infraction_test.go index 33ecad41d..d16b4e3a6 100644 --- a/libs/cosmos-sdk/x/evidence/internal/keeper/infraction_test.go +++ b/libs/cosmos-sdk/x/evidence/internal/keeper/infraction_test.go @@ -3,11 +3,11 @@ package keeper_test import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) func newTestMsgCreateValidator(address sdk.ValAddress, pubKey crypto.PubKey, amt sdk.Int) staking.MsgCreateValidator { diff --git a/libs/cosmos-sdk/x/evidence/internal/keeper/keeper.go b/libs/cosmos-sdk/x/evidence/internal/keeper/keeper.go index c15bb0321..b3c01083e 100644 --- a/libs/cosmos-sdk/x/evidence/internal/keeper/keeper.go +++ b/libs/cosmos-sdk/x/evidence/internal/keeper/keeper.go @@ -3,16 +3,16 @@ package keeper import ( "fmt" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // Keeper defines the evidence module's keeper. The keeper is responsible for diff --git a/libs/cosmos-sdk/x/evidence/internal/keeper/keeper_test.go b/libs/cosmos-sdk/x/evidence/internal/keeper/keeper_test.go index 4245313c8..69eaeb5ca 100644 --- a/libs/cosmos-sdk/x/evidence/internal/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/evidence/internal/keeper/keeper_test.go @@ -4,17 +4,17 @@ import ( "encoding/hex" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/suite" ) diff --git a/libs/cosmos-sdk/x/evidence/internal/keeper/params.go b/libs/cosmos-sdk/x/evidence/internal/keeper/params.go index d08426981..65e4d3dd4 100644 --- a/libs/cosmos-sdk/x/evidence/internal/keeper/params.go +++ b/libs/cosmos-sdk/x/evidence/internal/keeper/params.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" ) // MaxEvidenceAge returns the maximum age for submitted evidence. diff --git a/libs/cosmos-sdk/x/evidence/internal/keeper/params_test.go b/libs/cosmos-sdk/x/evidence/internal/keeper/params_test.go index 4c66c98fe..0ba176607 100644 --- a/libs/cosmos-sdk/x/evidence/internal/keeper/params_test.go +++ b/libs/cosmos-sdk/x/evidence/internal/keeper/params_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" ) func (suite *KeeperTestSuite) TestParams() { diff --git a/libs/cosmos-sdk/x/evidence/internal/keeper/querier.go b/libs/cosmos-sdk/x/evidence/internal/keeper/querier.go index f61ec48f9..df3285af4 100644 --- a/libs/cosmos-sdk/x/evidence/internal/keeper/querier.go +++ b/libs/cosmos-sdk/x/evidence/internal/keeper/querier.go @@ -3,14 +3,14 @@ package keeper import ( "encoding/hex" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) func NewQuerier(k Keeper) sdk.Querier { diff --git a/libs/cosmos-sdk/x/evidence/internal/keeper/querier_test.go b/libs/cosmos-sdk/x/evidence/internal/keeper/querier_test.go index 856a1fe8a..1421da155 100644 --- a/libs/cosmos-sdk/x/evidence/internal/keeper/querier_test.go +++ b/libs/cosmos-sdk/x/evidence/internal/keeper/querier_test.go @@ -3,10 +3,10 @@ package keeper_test import ( "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) const ( diff --git a/libs/cosmos-sdk/x/evidence/internal/types/codec.go b/libs/cosmos-sdk/x/evidence/internal/types/codec.go index 77d34cd43..be87aeb15 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/codec.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" ) // ModuleCdc defines the evidence module's codec. The codec is not sealed as to diff --git a/libs/cosmos-sdk/x/evidence/internal/types/codec_test.go b/libs/cosmos-sdk/x/evidence/internal/types/codec_test.go index 8745ba974..18f0abca6 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/codec_test.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/codec_test.go @@ -3,13 +3,13 @@ package types_test import ( "testing" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" ) var _ exported.Evidence = (*testEvidence)(nil) diff --git a/libs/cosmos-sdk/x/evidence/internal/types/errors.go b/libs/cosmos-sdk/x/evidence/internal/types/errors.go index a3a57c749..eab1523b6 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/errors.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/errors.go @@ -2,7 +2,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // x/evidence module sentinel errors diff --git a/libs/cosmos-sdk/x/evidence/internal/types/evidence.go b/libs/cosmos-sdk/x/evidence/internal/types/evidence.go index 261cb6cd2..d86ec591a 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/evidence.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/evidence.go @@ -4,12 +4,12 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" "gopkg.in/yaml.v2" ) diff --git a/libs/cosmos-sdk/x/evidence/internal/types/evidence_test.go b/libs/cosmos-sdk/x/evidence/internal/types/evidence_test.go index c87fb4608..96b8930a5 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/evidence_test.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/evidence_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" ) func TestEquivocation_Valid(t *testing.T) { diff --git a/libs/cosmos-sdk/x/evidence/internal/types/expected_keepers.go b/libs/cosmos-sdk/x/evidence/internal/types/expected_keepers.go index f4aaf33e5..b15244ecb 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/expected_keepers.go @@ -3,10 +3,10 @@ package types import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - stakingexported "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + stakingexported "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) type ( diff --git a/libs/cosmos-sdk/x/evidence/internal/types/genesis.go b/libs/cosmos-sdk/x/evidence/internal/types/genesis.go index 8b909754c..69c1a9f1e 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/genesis.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/genesis.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" ) // DONTCOVER diff --git a/libs/cosmos-sdk/x/evidence/internal/types/genesis_test.go b/libs/cosmos-sdk/x/evidence/internal/types/genesis_test.go index 6aceefbe3..c8e014735 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/genesis_test.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/genesis_test.go @@ -3,11 +3,11 @@ package types_test import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" ) func TestDefaultGenesisState(t *testing.T) { diff --git a/libs/cosmos-sdk/x/evidence/internal/types/msgs.go b/libs/cosmos-sdk/x/evidence/internal/types/msgs.go index ebc92af3b..37830451e 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/msgs.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/msgs.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" ) // Message types for the evidence module diff --git a/libs/cosmos-sdk/x/evidence/internal/types/msgs_test.go b/libs/cosmos-sdk/x/evidence/internal/types/msgs_test.go index 3a8352fd0..6650b68fe 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/msgs_test.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/msgs_test.go @@ -3,11 +3,11 @@ package types_test import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/evidence/internal/types/params.go b/libs/cosmos-sdk/x/evidence/internal/types/params.go index 99a365401..885ea7d1c 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/params.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/params.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" "gopkg.in/yaml.v2" ) diff --git a/libs/cosmos-sdk/x/evidence/internal/types/router.go b/libs/cosmos-sdk/x/evidence/internal/types/router.go index b7be853cd..5ab1425aa 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/router.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/router.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" ) type ( diff --git a/libs/cosmos-sdk/x/evidence/internal/types/router_test.go b/libs/cosmos-sdk/x/evidence/internal/types/router_test.go index e40cdcf19..4b7f89753 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/router_test.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/router_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/internal/types" ) func testHandler(sdk.Context, exported.Evidence) error { return nil } diff --git a/libs/cosmos-sdk/x/evidence/internal/types/test_util.go b/libs/cosmos-sdk/x/evidence/internal/types/test_util.go index 6ba2ab676..df6f68f56 100644 --- a/libs/cosmos-sdk/x/evidence/internal/types/test_util.go +++ b/libs/cosmos-sdk/x/evidence/internal/types/test_util.go @@ -11,15 +11,15 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" ) var ( diff --git a/libs/cosmos-sdk/x/evidence/module.go b/libs/cosmos-sdk/x/evidence/module.go index db59a8dbb..82e096727 100644 --- a/libs/cosmos-sdk/x/evidence/module.go +++ b/libs/cosmos-sdk/x/evidence/module.go @@ -4,16 +4,16 @@ import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/client" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/client/rest" "github.com/gorilla/mux" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/cobra" ) diff --git a/libs/cosmos-sdk/x/genaccounts/legacy/v0_34/types.go b/libs/cosmos-sdk/x/genaccounts/legacy/v0_34/types.go index 665a68e5c..237c5da2a 100644 --- a/libs/cosmos-sdk/x/genaccounts/legacy/v0_34/types.go +++ b/libs/cosmos-sdk/x/genaccounts/legacy/v0_34/types.go @@ -3,7 +3,7 @@ package v0_34 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/migrate.go b/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/migrate.go index dfd4a18b3..a2f71fd2d 100644 --- a/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/migrate.go +++ b/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/migrate.go @@ -5,13 +5,13 @@ package v0_36 import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_34" - v034accounts "github.com/okx/okbchain/libs/cosmos-sdk/x/genaccounts/legacy/v0_34" - v034gov "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/legacy/v0_34" - v034staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_34" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + v034distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_34" + v034accounts "github.com/okx/brczero/libs/cosmos-sdk/x/genaccounts/legacy/v0_34" + v034gov "github.com/okx/brczero/libs/cosmos-sdk/x/gov/legacy/v0_34" + v034staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_34" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) const ( diff --git a/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/migrate_test.go b/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/migrate_test.go index 273d0b554..a45e1b4a9 100644 --- a/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/migrate_test.go +++ b/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/migrate_test.go @@ -3,14 +3,14 @@ package v0_36 import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_34" - v034accounts "github.com/okx/okbchain/libs/cosmos-sdk/x/genaccounts/legacy/v0_34" - v034gov "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/legacy/v0_34" - v034staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_34" + "github.com/okx/brczero/libs/cosmos-sdk/types" + v034distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_34" + v034accounts "github.com/okx/brczero/libs/cosmos-sdk/x/genaccounts/legacy/v0_34" + v034gov "github.com/okx/brczero/libs/cosmos-sdk/x/gov/legacy/v0_34" + v034staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_34" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/types.go b/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/types.go index 582b59053..3c0fc1aaf 100644 --- a/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/types.go +++ b/libs/cosmos-sdk/x/genaccounts/legacy/v0_36/types.go @@ -3,7 +3,7 @@ package v0_36 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/genutil/alias.go b/libs/cosmos-sdk/x/genutil/alias.go index c44800202..c0b94c99b 100644 --- a/libs/cosmos-sdk/x/genutil/alias.go +++ b/libs/cosmos-sdk/x/genutil/alias.go @@ -5,7 +5,7 @@ package genutil import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) const ( diff --git a/libs/cosmos-sdk/x/genutil/client/cli/collect.go b/libs/cosmos-sdk/x/genutil/client/cli/collect.go index ead11c53d..b4fa1be67 100644 --- a/libs/cosmos-sdk/x/genutil/client/cli/collect.go +++ b/libs/cosmos-sdk/x/genutil/client/cli/collect.go @@ -4,17 +4,17 @@ import ( "encoding/json" "path/filepath" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/cli" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) const flagGenTxDir = "gentx-dir" diff --git a/libs/cosmos-sdk/x/genutil/client/cli/gentx.go b/libs/cosmos-sdk/x/genutil/client/cli/gentx.go index 6cc4d6ace..757ee0cc1 100644 --- a/libs/cosmos-sdk/x/genutil/client/cli/gentx.go +++ b/libs/cosmos-sdk/x/genutil/client/cli/gentx.go @@ -10,26 +10,26 @@ import ( "os" "path/filepath" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/pkg/errors" "github.com/spf13/cobra" flag "github.com/spf13/pflag" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) // StakingMsgBuildingHelpers helpers for message building gen-tx command diff --git a/libs/cosmos-sdk/x/genutil/client/cli/init.go b/libs/cosmos-sdk/x/genutil/client/cli/init.go index f6ebfa3e2..4d8513e74 100644 --- a/libs/cosmos-sdk/x/genutil/client/cli/init.go +++ b/libs/cosmos-sdk/x/genutil/client/cli/init.go @@ -6,21 +6,21 @@ import ( "os" "path/filepath" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/cli" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/types" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" ) const ( diff --git a/libs/cosmos-sdk/x/genutil/client/cli/init_test.go b/libs/cosmos-sdk/x/genutil/client/cli/init_test.go index be17f2d12..c8056a240 100644 --- a/libs/cosmos-sdk/x/genutil/client/cli/init_test.go +++ b/libs/cosmos-sdk/x/genutil/client/cli/init_test.go @@ -6,19 +6,19 @@ import ( "os" "testing" - tcmd "github.com/okx/okbchain/libs/tendermint/cmd/tendermint/commands" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/tendermint/libs/log" + tcmd "github.com/okx/brczero/libs/tendermint/cmd/tendermint/commands" + "github.com/okx/brczero/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" ) var testMbm = module.NewBasicManager(genutil.AppModuleBasic{}) diff --git a/libs/cosmos-sdk/x/genutil/client/cli/migrate.go b/libs/cosmos-sdk/x/genutil/client/cli/migrate.go index d42907660..0a0d87b67 100644 --- a/libs/cosmos-sdk/x/genutil/client/cli/migrate.go +++ b/libs/cosmos-sdk/x/genutil/client/cli/migrate.go @@ -5,18 +5,18 @@ import ( "sort" "time" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - extypes "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - v036 "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/legacy/v0_36" - v038 "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/legacy/v0_38" - v039 "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/legacy/v0_39" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + extypes "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + v036 "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/legacy/v0_36" + v038 "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/legacy/v0_38" + v039 "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/legacy/v0_39" ) const ( diff --git a/libs/cosmos-sdk/x/genutil/client/cli/migrate_test.go b/libs/cosmos-sdk/x/genutil/client/cli/migrate_test.go index 564ec99fd..8808d17d5 100644 --- a/libs/cosmos-sdk/x/genutil/client/cli/migrate_test.go +++ b/libs/cosmos-sdk/x/genutil/client/cli/migrate_test.go @@ -7,24 +7,24 @@ import ( "path/filepath" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - genutilcli "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + genutilcli "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/client/cli" - tcmd "github.com/okx/okbchain/libs/tendermint/cmd/tendermint/commands" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/tendermint/libs/log" + tcmd "github.com/okx/brczero/libs/tendermint/cmd/tendermint/commands" + "github.com/okx/brczero/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/spf13/cobra" "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/tests" ) // custom tx codec diff --git a/libs/cosmos-sdk/x/genutil/client/cli/validate_genesis.go b/libs/cosmos-sdk/x/genutil/client/cli/validate_genesis.go index be3d81a84..fc0e24d3e 100644 --- a/libs/cosmos-sdk/x/genutil/client/cli/validate_genesis.go +++ b/libs/cosmos-sdk/x/genutil/client/cli/validate_genesis.go @@ -5,12 +5,12 @@ import ( "fmt" "os" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" ) // Validate genesis command takes diff --git a/libs/cosmos-sdk/x/genutil/client/rest/query.go b/libs/cosmos-sdk/x/genutil/client/rest/query.go index e2c1c655d..ecbdca83f 100644 --- a/libs/cosmos-sdk/x/genutil/client/rest/query.go +++ b/libs/cosmos-sdk/x/genutil/client/rest/query.go @@ -4,10 +4,10 @@ import ( "fmt" "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) // QueryGenesisTxs writes the genesis transactions to the response if no error diff --git a/libs/cosmos-sdk/x/genutil/collect.go b/libs/cosmos-sdk/x/genutil/collect.go index 4f1f390c8..f821a6bc2 100644 --- a/libs/cosmos-sdk/x/genutil/collect.go +++ b/libs/cosmos-sdk/x/genutil/collect.go @@ -12,15 +12,15 @@ import ( "sort" "strings" - cfg "github.com/okx/okbchain/libs/tendermint/config" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // GenAppStateFromConfig gets the genesis app state from the config diff --git a/libs/cosmos-sdk/x/genutil/genesis.go b/libs/cosmos-sdk/x/genutil/genesis.go index 009c1cedc..ed6f0cb49 100644 --- a/libs/cosmos-sdk/x/genutil/genesis.go +++ b/libs/cosmos-sdk/x/genutil/genesis.go @@ -1,11 +1,11 @@ package genutil import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) // InitGenesis - initialize accounts and deliver genesis transactions diff --git a/libs/cosmos-sdk/x/genutil/gentx.go b/libs/cosmos-sdk/x/genutil/gentx.go index a8560b2ed..df2917590 100644 --- a/libs/cosmos-sdk/x/genutil/gentx.go +++ b/libs/cosmos-sdk/x/genutil/gentx.go @@ -6,14 +6,14 @@ import ( "encoding/json" "fmt" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // SetGenTxsInAppGenesisState - sets the genesis transactions in the app genesis state diff --git a/libs/cosmos-sdk/x/genutil/legacy/v0_36/migrate.go b/libs/cosmos-sdk/x/genutil/legacy/v0_36/migrate.go index 9eb35e5ba..c0933fda4 100644 --- a/libs/cosmos-sdk/x/genutil/legacy/v0_36/migrate.go +++ b/libs/cosmos-sdk/x/genutil/legacy/v0_36/migrate.go @@ -1,19 +1,19 @@ package v036 import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - v034auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_34" - v036auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_36" - v034distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_34" - v036distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_36" - v034genAccounts "github.com/okx/okbchain/libs/cosmos-sdk/x/genaccounts/legacy/v0_34" - v036genAccounts "github.com/okx/okbchain/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - v034gov "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/legacy/v0_34" - v036gov "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/legacy/v0_36" - v034staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_34" - v036staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_36" - v036supply "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/legacy/v0_36" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + v034auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_34" + v036auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_36" + v034distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_34" + v036distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_36" + v034genAccounts "github.com/okx/brczero/libs/cosmos-sdk/x/genaccounts/legacy/v0_34" + v036genAccounts "github.com/okx/brczero/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + v034gov "github.com/okx/brczero/libs/cosmos-sdk/x/gov/legacy/v0_34" + v036gov "github.com/okx/brczero/libs/cosmos-sdk/x/gov/legacy/v0_36" + v034staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_34" + v036staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_36" + v036supply "github.com/okx/brczero/libs/cosmos-sdk/x/supply/legacy/v0_36" ) // Migrate migrates exported state from v0.34 to a v0.36 genesis state. diff --git a/libs/cosmos-sdk/x/genutil/legacy/v0_36/migrate_test.go b/libs/cosmos-sdk/x/genutil/legacy/v0_36/migrate_test.go index aa86e8a5a..b5072a3a4 100644 --- a/libs/cosmos-sdk/x/genutil/legacy/v0_36/migrate_test.go +++ b/libs/cosmos-sdk/x/genutil/legacy/v0_36/migrate_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" ) var basic034Gov = []byte(` diff --git a/libs/cosmos-sdk/x/genutil/legacy/v0_38/migrate.go b/libs/cosmos-sdk/x/genutil/legacy/v0_38/migrate.go index 3a947f41e..be60b84c4 100644 --- a/libs/cosmos-sdk/x/genutil/legacy/v0_38/migrate.go +++ b/libs/cosmos-sdk/x/genutil/legacy/v0_38/migrate.go @@ -1,15 +1,15 @@ package v038 import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - v036auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_36" - v038auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_38" - v036distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_36" - v038distr "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/legacy/v0_38" - v036genaccounts "github.com/okx/okbchain/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" - v036staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_36" - v038staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_38" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + v036auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_36" + v038auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_38" + v036distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_36" + v038distr "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/legacy/v0_38" + v036genaccounts "github.com/okx/brczero/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" + v036staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_36" + v038staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_38" ) // Migrate migrates exported state from v0.36/v0.37 to a v0.38 genesis state. diff --git a/libs/cosmos-sdk/x/genutil/legacy/v0_38/migrate_test.go b/libs/cosmos-sdk/x/genutil/legacy/v0_38/migrate_test.go index 929e8c63a..eba843d7c 100644 --- a/libs/cosmos-sdk/x/genutil/legacy/v0_38/migrate_test.go +++ b/libs/cosmos-sdk/x/genutil/legacy/v0_38/migrate_test.go @@ -3,11 +3,11 @@ package v038_test import ( "testing" - v036auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_36" - v036genaccounts "github.com/okx/okbchain/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" - v038 "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/legacy/v0_38" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" - v036staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_36" + v036auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_36" + v036genaccounts "github.com/okx/brczero/libs/cosmos-sdk/x/genaccounts/legacy/v0_36" + v038 "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/legacy/v0_38" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" + v036staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_36" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/genutil/legacy/v0_39/migrate.go b/libs/cosmos-sdk/x/genutil/legacy/v0_39/migrate.go index 871d3c4da..0507995c9 100644 --- a/libs/cosmos-sdk/x/genutil/legacy/v0_39/migrate.go +++ b/libs/cosmos-sdk/x/genutil/legacy/v0_39/migrate.go @@ -1,10 +1,10 @@ package v039 import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - v038auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_38" - v039auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_39" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + v038auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_38" + v039auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_39" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) // Migrate migrates exported state from v0.38 to a v0.39 genesis state. diff --git a/libs/cosmos-sdk/x/genutil/legacy/v0_39/migrate_test.go b/libs/cosmos-sdk/x/genutil/legacy/v0_39/migrate_test.go index c5f584220..554fc8128 100644 --- a/libs/cosmos-sdk/x/genutil/legacy/v0_39/migrate_test.go +++ b/libs/cosmos-sdk/x/genutil/legacy/v0_39/migrate_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - v038auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_38" - v039auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/legacy/v0_39" - v039 "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/legacy/v0_39" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + v038auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_38" + v039auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/legacy/v0_39" + v039 "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/legacy/v0_39" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) var genAuthState = []byte(`{ diff --git a/libs/cosmos-sdk/x/genutil/module.go b/libs/cosmos-sdk/x/genutil/module.go index b4c52a125..657aaa25d 100644 --- a/libs/cosmos-sdk/x/genutil/module.go +++ b/libs/cosmos-sdk/x/genutil/module.go @@ -7,13 +7,13 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) var ( diff --git a/libs/cosmos-sdk/x/genutil/types/codec.go b/libs/cosmos-sdk/x/genutil/types/codec.go index 8066ed80c..8dfab5e6e 100644 --- a/libs/cosmos-sdk/x/genutil/types/codec.go +++ b/libs/cosmos-sdk/x/genutil/types/codec.go @@ -1,10 +1,10 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // ModuleCdc defines a generic sealed codec to be used throughout this module diff --git a/libs/cosmos-sdk/x/genutil/types/expected_keepers.go b/libs/cosmos-sdk/x/genutil/types/expected_keepers.go index 3163fdca9..d7755eb46 100644 --- a/libs/cosmos-sdk/x/genutil/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/genutil/types/expected_keepers.go @@ -3,11 +3,11 @@ package types import ( "encoding/json" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) // StakingKeeper defines the expected staking keeper (noalias) diff --git a/libs/cosmos-sdk/x/genutil/types/genesis_state.go b/libs/cosmos-sdk/x/genutil/types/genesis_state.go index 09a8c9a08..7dca8c402 100644 --- a/libs/cosmos-sdk/x/genutil/types/genesis_state.go +++ b/libs/cosmos-sdk/x/genutil/types/genesis_state.go @@ -5,12 +5,12 @@ import ( "errors" "fmt" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // GenesisState defines the raw genesis transaction in JSON diff --git a/libs/cosmos-sdk/x/genutil/types/genesis_state_test.go b/libs/cosmos-sdk/x/genutil/types/genesis_state_test.go index 70d10d3af..76730ffb5 100644 --- a/libs/cosmos-sdk/x/genutil/types/genesis_state_test.go +++ b/libs/cosmos-sdk/x/genutil/types/genesis_state_test.go @@ -3,12 +3,12 @@ package types import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) var ( diff --git a/libs/cosmos-sdk/x/genutil/types/types.go b/libs/cosmos-sdk/x/genutil/types/types.go index 4d12942a6..1221d05e8 100644 --- a/libs/cosmos-sdk/x/genutil/types/types.go +++ b/libs/cosmos-sdk/x/genutil/types/types.go @@ -3,7 +3,7 @@ package types import ( "encoding/json" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) // DONTCOVER diff --git a/libs/cosmos-sdk/x/genutil/utils.go b/libs/cosmos-sdk/x/genutil/utils.go index b3bd7aca1..83f5370c3 100644 --- a/libs/cosmos-sdk/x/genutil/utils.go +++ b/libs/cosmos-sdk/x/genutil/utils.go @@ -5,12 +5,12 @@ import ( "path/filepath" "time" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/privval" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/privval" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // ExportGenesisFile creates and writes the genesis configuration to disk. An diff --git a/libs/cosmos-sdk/x/genutil/utils_test.go b/libs/cosmos-sdk/x/genutil/utils_test.go index 51b2282ac..43c127279 100644 --- a/libs/cosmos-sdk/x/genutil/utils_test.go +++ b/libs/cosmos-sdk/x/genutil/utils_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" + "github.com/okx/brczero/libs/cosmos-sdk/tests" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/gov/abci.go b/libs/cosmos-sdk/x/gov/abci.go index d6e4d8b8a..a796a5014 100644 --- a/libs/cosmos-sdk/x/gov/abci.go +++ b/libs/cosmos-sdk/x/gov/abci.go @@ -3,8 +3,8 @@ package gov import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // EndBlocker called every block, process inflation, update validator set. diff --git a/libs/cosmos-sdk/x/gov/abci_test.go b/libs/cosmos-sdk/x/gov/abci_test.go index ec47b2f33..65e7a5e87 100644 --- a/libs/cosmos-sdk/x/gov/abci_test.go +++ b/libs/cosmos-sdk/x/gov/abci_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/gov/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" ) func TestTickExpiredDepositPeriod(t *testing.T) { diff --git a/libs/cosmos-sdk/x/gov/alias.go b/libs/cosmos-sdk/x/gov/alias.go index ca61ca167..bbaadd1b9 100644 --- a/libs/cosmos-sdk/x/gov/alias.go +++ b/libs/cosmos-sdk/x/gov/alias.go @@ -3,8 +3,8 @@ package gov // nolint import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) const ( diff --git a/libs/cosmos-sdk/x/gov/client/cli/parse.go b/libs/cosmos-sdk/x/gov/client/cli/parse.go index 704a198b5..6a44c801a 100644 --- a/libs/cosmos-sdk/x/gov/client/cli/parse.go +++ b/libs/cosmos-sdk/x/gov/client/cli/parse.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/viper" - govutils "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/utils" + govutils "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/utils" ) func parseSubmitProposalFlags() (*proposal, error) { diff --git a/libs/cosmos-sdk/x/gov/client/cli/query.go b/libs/cosmos-sdk/x/gov/client/cli/query.go index f79bbae4f..784749fbe 100644 --- a/libs/cosmos-sdk/x/gov/client/cli/query.go +++ b/libs/cosmos-sdk/x/gov/client/cli/query.go @@ -8,14 +8,14 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - gcutils "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + gcutils "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/libs/cosmos-sdk/x/gov/client/cli/tx.go b/libs/cosmos-sdk/x/gov/client/cli/tx.go index 5271dc0b3..904919a70 100644 --- a/libs/cosmos-sdk/x/gov/client/cli/tx.go +++ b/libs/cosmos-sdk/x/gov/client/cli/tx.go @@ -8,16 +8,16 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - govutils "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + govutils "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // Proposal flags diff --git a/libs/cosmos-sdk/x/gov/client/proposal_handler.go b/libs/cosmos-sdk/x/gov/client/proposal_handler.go index 66e410263..4a8b0f9a5 100644 --- a/libs/cosmos-sdk/x/gov/client/proposal_handler.go +++ b/libs/cosmos-sdk/x/gov/client/proposal_handler.go @@ -1,12 +1,12 @@ package client import ( - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/rest" ) // function to create the rest handler diff --git a/libs/cosmos-sdk/x/gov/client/rest/query.go b/libs/cosmos-sdk/x/gov/client/rest/query.go index 75e4a3120..574a4173a 100644 --- a/libs/cosmos-sdk/x/gov/client/rest/query.go +++ b/libs/cosmos-sdk/x/gov/client/rest/query.go @@ -7,11 +7,11 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - gcutils "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + gcutils "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/libs/cosmos-sdk/x/gov/client/rest/rest.go b/libs/cosmos-sdk/x/gov/client/rest/rest.go index ca261222e..c0e66dc03 100644 --- a/libs/cosmos-sdk/x/gov/client/rest/rest.go +++ b/libs/cosmos-sdk/x/gov/client/rest/rest.go @@ -5,9 +5,9 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" ) // REST Variable names diff --git a/libs/cosmos-sdk/x/gov/client/rest/tx.go b/libs/cosmos-sdk/x/gov/client/rest/tx.go index d4c62474c..84bd4c5e9 100644 --- a/libs/cosmos-sdk/x/gov/client/rest/tx.go +++ b/libs/cosmos-sdk/x/gov/client/rest/tx.go @@ -6,12 +6,12 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - gcutils "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + gcutils "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router, phs []ProposalRESTHandler) { diff --git a/libs/cosmos-sdk/x/gov/client/utils/query.go b/libs/cosmos-sdk/x/gov/client/utils/query.go index d3375a276..8bc1763d5 100644 --- a/libs/cosmos-sdk/x/gov/client/utils/query.go +++ b/libs/cosmos-sdk/x/gov/client/utils/query.go @@ -3,11 +3,11 @@ package utils import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) const ( diff --git a/libs/cosmos-sdk/x/gov/client/utils/query_test.go b/libs/cosmos-sdk/x/gov/client/utils/query_test.go index 1950f6c72..11c23b9e6 100644 --- a/libs/cosmos-sdk/x/gov/client/utils/query_test.go +++ b/libs/cosmos-sdk/x/gov/client/utils/query_test.go @@ -3,19 +3,19 @@ package utils import ( "testing" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/tendermint/rpc/client/mock" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/rpc/client/mock" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) type TxSearchMock struct { diff --git a/libs/cosmos-sdk/x/gov/client/utils/utils.go b/libs/cosmos-sdk/x/gov/client/utils/utils.go index b15979a64..1fd35f553 100644 --- a/libs/cosmos-sdk/x/gov/client/utils/utils.go +++ b/libs/cosmos-sdk/x/gov/client/utils/utils.go @@ -1,6 +1,6 @@ package utils -import "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" +import "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" // NormalizeVoteOption - normalize user specified vote option func NormalizeVoteOption(option string) string { diff --git a/libs/cosmos-sdk/x/gov/genesis.go b/libs/cosmos-sdk/x/gov/genesis.go index a79a85a9c..39d5f5c62 100644 --- a/libs/cosmos-sdk/x/gov/genesis.go +++ b/libs/cosmos-sdk/x/gov/genesis.go @@ -3,8 +3,8 @@ package gov import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // InitGenesis - store genesis parameters diff --git a/libs/cosmos-sdk/x/gov/genesis_test.go b/libs/cosmos-sdk/x/gov/genesis_test.go index d07839cd0..39a0bb9ef 100644 --- a/libs/cosmos-sdk/x/gov/genesis_test.go +++ b/libs/cosmos-sdk/x/gov/genesis_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/keeper" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/gov/keeper" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) func TestImportExportQueues(t *testing.T) { diff --git a/libs/cosmos-sdk/x/gov/handler.go b/libs/cosmos-sdk/x/gov/handler.go index 4f9a717c9..7a2e58f05 100644 --- a/libs/cosmos-sdk/x/gov/handler.go +++ b/libs/cosmos-sdk/x/gov/handler.go @@ -3,9 +3,9 @@ package gov import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // NewHandler creates an sdk.Handler for all the gov type messages diff --git a/libs/cosmos-sdk/x/gov/handler_test.go b/libs/cosmos-sdk/x/gov/handler_test.go index a5badca63..fc4e03be8 100644 --- a/libs/cosmos-sdk/x/gov/handler_test.go +++ b/libs/cosmos-sdk/x/gov/handler_test.go @@ -4,9 +4,9 @@ import ( "strings" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/gov/keeper/deposit.go b/libs/cosmos-sdk/x/gov/keeper/deposit.go index 388a13a8c..45b5b98aa 100644 --- a/libs/cosmos-sdk/x/gov/keeper/deposit.go +++ b/libs/cosmos-sdk/x/gov/keeper/deposit.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // GetDeposit gets the deposit of a specific depositor on a specific proposal diff --git a/libs/cosmos-sdk/x/gov/keeper/deposit_test.go b/libs/cosmos-sdk/x/gov/keeper/deposit_test.go index 571d200c2..c3df2fccd 100644 --- a/libs/cosmos-sdk/x/gov/keeper/deposit_test.go +++ b/libs/cosmos-sdk/x/gov/keeper/deposit_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestDeposits(t *testing.T) { diff --git a/libs/cosmos-sdk/x/gov/keeper/invariants.go b/libs/cosmos-sdk/x/gov/keeper/invariants.go index a814cb730..126c38559 100644 --- a/libs/cosmos-sdk/x/gov/keeper/invariants.go +++ b/libs/cosmos-sdk/x/gov/keeper/invariants.go @@ -5,8 +5,8 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // RegisterInvariants registers all governance invariants diff --git a/libs/cosmos-sdk/x/gov/keeper/keeper.go b/libs/cosmos-sdk/x/gov/keeper/keeper.go index 41251e0f0..67a3ed297 100644 --- a/libs/cosmos-sdk/x/gov/keeper/keeper.go +++ b/libs/cosmos-sdk/x/gov/keeper/keeper.go @@ -4,12 +4,12 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // Keeper defines the governance module Keeper diff --git a/libs/cosmos-sdk/x/gov/keeper/keeper_test.go b/libs/cosmos-sdk/x/gov/keeper/keeper_test.go index e7403a7bf..912ce03ae 100644 --- a/libs/cosmos-sdk/x/gov/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/gov/keeper/keeper_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) func TestIncrementProposalNumber(t *testing.T) { diff --git a/libs/cosmos-sdk/x/gov/keeper/params.go b/libs/cosmos-sdk/x/gov/keeper/params.go index b98fa2091..2b33c66dc 100644 --- a/libs/cosmos-sdk/x/gov/keeper/params.go +++ b/libs/cosmos-sdk/x/gov/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // GetDepositParams returns the current DepositParams from the global param store diff --git a/libs/cosmos-sdk/x/gov/keeper/proposal.go b/libs/cosmos-sdk/x/gov/keeper/proposal.go index 3f0af3ea6..2fc260e28 100644 --- a/libs/cosmos-sdk/x/gov/keeper/proposal.go +++ b/libs/cosmos-sdk/x/gov/keeper/proposal.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // SubmitProposal create new proposal given a content diff --git a/libs/cosmos-sdk/x/gov/keeper/proposal_test.go b/libs/cosmos-sdk/x/gov/keeper/proposal_test.go index bb04539f5..7cb822bad 100644 --- a/libs/cosmos-sdk/x/gov/keeper/proposal_test.go +++ b/libs/cosmos-sdk/x/gov/keeper/proposal_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) func TestGetSetProposal(t *testing.T) { diff --git a/libs/cosmos-sdk/x/gov/keeper/querier.go b/libs/cosmos-sdk/x/gov/keeper/querier.go index 7b647d8fa..d35f6905d 100644 --- a/libs/cosmos-sdk/x/gov/keeper/querier.go +++ b/libs/cosmos-sdk/x/gov/keeper/querier.go @@ -1,13 +1,13 @@ package keeper import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // NewQuerier creates a new gov Querier instance diff --git a/libs/cosmos-sdk/x/gov/keeper/querier_test.go b/libs/cosmos-sdk/x/gov/keeper/querier_test.go index 09e1212ae..6aabb5eda 100644 --- a/libs/cosmos-sdk/x/gov/keeper/querier_test.go +++ b/libs/cosmos-sdk/x/gov/keeper/querier_test.go @@ -6,12 +6,12 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) const custom = "custom" diff --git a/libs/cosmos-sdk/x/gov/keeper/tally.go b/libs/cosmos-sdk/x/gov/keeper/tally.go index c2f5ee7fe..cdac48600 100644 --- a/libs/cosmos-sdk/x/gov/keeper/tally.go +++ b/libs/cosmos-sdk/x/gov/keeper/tally.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // TODO: Break into several smaller functions for clarity diff --git a/libs/cosmos-sdk/x/gov/keeper/tally_test.go b/libs/cosmos-sdk/x/gov/keeper/tally_test.go index 4a20de0ce..74b36bce5 100644 --- a/libs/cosmos-sdk/x/gov/keeper/tally_test.go +++ b/libs/cosmos-sdk/x/gov/keeper/tally_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" ) func TestTallyNoOneVotes(t *testing.T) { diff --git a/libs/cosmos-sdk/x/gov/keeper/test_common.go b/libs/cosmos-sdk/x/gov/keeper/test_common.go index c4c4b4233..ae00a0a53 100644 --- a/libs/cosmos-sdk/x/gov/keeper/test_common.go +++ b/libs/cosmos-sdk/x/gov/keeper/test_common.go @@ -10,23 +10,23 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) // dummy addresses used for testing diff --git a/libs/cosmos-sdk/x/gov/keeper/vote.go b/libs/cosmos-sdk/x/gov/keeper/vote.go index c4bc75285..b128a3635 100644 --- a/libs/cosmos-sdk/x/gov/keeper/vote.go +++ b/libs/cosmos-sdk/x/gov/keeper/vote.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // AddVote adds a vote on a specific proposal diff --git a/libs/cosmos-sdk/x/gov/keeper/vote_test.go b/libs/cosmos-sdk/x/gov/keeper/vote_test.go index 2055191ab..3160bb26a 100644 --- a/libs/cosmos-sdk/x/gov/keeper/vote_test.go +++ b/libs/cosmos-sdk/x/gov/keeper/vote_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) func TestVotes(t *testing.T) { diff --git a/libs/cosmos-sdk/x/gov/legacy/v0_34/types.go b/libs/cosmos-sdk/x/gov/legacy/v0_34/types.go index 903c22379..ac4917714 100644 --- a/libs/cosmos-sdk/x/gov/legacy/v0_34/types.go +++ b/libs/cosmos-sdk/x/gov/legacy/v0_34/types.go @@ -7,8 +7,8 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/libs/cosmos-sdk/x/gov/legacy/v0_36/migrate.go b/libs/cosmos-sdk/x/gov/legacy/v0_36/migrate.go index 3ae0cb542..2ebe48ddc 100644 --- a/libs/cosmos-sdk/x/gov/legacy/v0_36/migrate.go +++ b/libs/cosmos-sdk/x/gov/legacy/v0_36/migrate.go @@ -1,7 +1,7 @@ package v0_36 import ( - v034gov "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/legacy/v0_34" + v034gov "github.com/okx/brczero/libs/cosmos-sdk/x/gov/legacy/v0_34" ) // Migrate accepts exported genesis state from v0.34 and migrates it to v0.36 diff --git a/libs/cosmos-sdk/x/gov/legacy/v0_36/types.go b/libs/cosmos-sdk/x/gov/legacy/v0_36/types.go index 6c60e3701..c45ff1f58 100644 --- a/libs/cosmos-sdk/x/gov/legacy/v0_36/types.go +++ b/libs/cosmos-sdk/x/gov/legacy/v0_36/types.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034gov "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/legacy/v0_34" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + v034gov "github.com/okx/brczero/libs/cosmos-sdk/x/gov/legacy/v0_34" ) const ( diff --git a/libs/cosmos-sdk/x/gov/module.go b/libs/cosmos-sdk/x/gov/module.go index 1005972e9..77f594283 100644 --- a/libs/cosmos-sdk/x/gov/module.go +++ b/libs/cosmos-sdk/x/gov/module.go @@ -10,18 +10,18 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) var ( diff --git a/libs/cosmos-sdk/x/gov/simulation/decoder.go b/libs/cosmos-sdk/x/gov/simulation/decoder.go index d20c01c69..ceda5bd80 100644 --- a/libs/cosmos-sdk/x/gov/simulation/decoder.go +++ b/libs/cosmos-sdk/x/gov/simulation/decoder.go @@ -5,10 +5,10 @@ import ( "encoding/binary" "fmt" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // DecodeStore unmarshals the KVPair's Value to the corresponding gov type diff --git a/libs/cosmos-sdk/x/gov/simulation/decoder_test.go b/libs/cosmos-sdk/x/gov/simulation/decoder_test.go index ccf6d43d6..e0396b5f9 100644 --- a/libs/cosmos-sdk/x/gov/simulation/decoder_test.go +++ b/libs/cosmos-sdk/x/gov/simulation/decoder_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) var ( diff --git a/libs/cosmos-sdk/x/gov/simulation/genesis.go b/libs/cosmos-sdk/x/gov/simulation/genesis.go index 602726cc3..59994e411 100644 --- a/libs/cosmos-sdk/x/gov/simulation/genesis.go +++ b/libs/cosmos-sdk/x/gov/simulation/genesis.go @@ -7,12 +7,12 @@ import ( "math/rand" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // Simulation parameter constants diff --git a/libs/cosmos-sdk/x/gov/simulation/operations.go b/libs/cosmos-sdk/x/gov/simulation/operations.go index cdf3268e0..4c93f5c23 100644 --- a/libs/cosmos-sdk/x/gov/simulation/operations.go +++ b/libs/cosmos-sdk/x/gov/simulation/operations.go @@ -5,14 +5,14 @@ import ( "math/rand" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) var initialProposalID = uint64(100000000000000) diff --git a/libs/cosmos-sdk/x/gov/simulation/params.go b/libs/cosmos-sdk/x/gov/simulation/params.go index 9a4970b68..d759f9abd 100644 --- a/libs/cosmos-sdk/x/gov/simulation/params.go +++ b/libs/cosmos-sdk/x/gov/simulation/params.go @@ -7,9 +7,9 @@ import ( "fmt" "math/rand" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) const ( diff --git a/libs/cosmos-sdk/x/gov/simulation/proposals.go b/libs/cosmos-sdk/x/gov/simulation/proposals.go index fab47dd1e..2ea55b7dd 100644 --- a/libs/cosmos-sdk/x/gov/simulation/proposals.go +++ b/libs/cosmos-sdk/x/gov/simulation/proposals.go @@ -3,10 +3,10 @@ package simulation import ( "math/rand" - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // OpWeightSubmitTextProposal app params key for text proposal diff --git a/libs/cosmos-sdk/x/gov/test_common.go b/libs/cosmos-sdk/x/gov/test_common.go index 4017b711f..2b87de111 100644 --- a/libs/cosmos-sdk/x/gov/test_common.go +++ b/libs/cosmos-sdk/x/gov/test_common.go @@ -9,22 +9,22 @@ import ( "sort" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mock" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/gov/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mock" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) var ( diff --git a/libs/cosmos-sdk/x/gov/types/codec.go b/libs/cosmos-sdk/x/gov/types/codec.go index 934a84db9..da6df8559 100644 --- a/libs/cosmos-sdk/x/gov/types/codec.go +++ b/libs/cosmos-sdk/x/gov/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) var ModuleCdc = codec.New() diff --git a/libs/cosmos-sdk/x/gov/types/content.go b/libs/cosmos-sdk/x/gov/types/content.go index d2d78d2bb..c0e44b11a 100644 --- a/libs/cosmos-sdk/x/gov/types/content.go +++ b/libs/cosmos-sdk/x/gov/types/content.go @@ -3,8 +3,8 @@ package types import ( "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // Constants pertaining to a Content object diff --git a/libs/cosmos-sdk/x/gov/types/deposit.go b/libs/cosmos-sdk/x/gov/types/deposit.go index 367ae8935..f3836fd68 100644 --- a/libs/cosmos-sdk/x/gov/types/deposit.go +++ b/libs/cosmos-sdk/x/gov/types/deposit.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Deposit defines an amount deposited by an account address to an active proposal diff --git a/libs/cosmos-sdk/x/gov/types/errors.go b/libs/cosmos-sdk/x/gov/types/errors.go index 7edfee2fd..6bde0e607 100644 --- a/libs/cosmos-sdk/x/gov/types/errors.go +++ b/libs/cosmos-sdk/x/gov/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // x/gov module sentinel errors diff --git a/libs/cosmos-sdk/x/gov/types/expected_keepers.go b/libs/cosmos-sdk/x/gov/types/expected_keepers.go index 14fe650e7..ad36ddad8 100644 --- a/libs/cosmos-sdk/x/gov/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/gov/types/expected_keepers.go @@ -1,10 +1,10 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - stakingexported "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + stakingexported "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // ParamSubspace defines the expected Subspace interface for parameters (noalias) diff --git a/libs/cosmos-sdk/x/gov/types/genesis.go b/libs/cosmos-sdk/x/gov/types/genesis.go index 337917b81..97cba8401 100644 --- a/libs/cosmos-sdk/x/gov/types/genesis.go +++ b/libs/cosmos-sdk/x/gov/types/genesis.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GenesisState - all staking state that must be provided at genesis diff --git a/libs/cosmos-sdk/x/gov/types/keys.go b/libs/cosmos-sdk/x/gov/types/keys.go index 08787574f..ffebbec75 100644 --- a/libs/cosmos-sdk/x/gov/types/keys.go +++ b/libs/cosmos-sdk/x/gov/types/keys.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/gov/types/keys_test.go b/libs/cosmos-sdk/x/gov/types/keys_test.go index d4e656069..d2eb89c58 100644 --- a/libs/cosmos-sdk/x/gov/types/keys_test.go +++ b/libs/cosmos-sdk/x/gov/types/keys_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var addr = sdk.AccAddress(ed25519.GenPrivKey().PubKey().Address()) diff --git a/libs/cosmos-sdk/x/gov/types/msgs.go b/libs/cosmos-sdk/x/gov/types/msgs.go index c6f901c99..8b395c968 100644 --- a/libs/cosmos-sdk/x/gov/types/msgs.go +++ b/libs/cosmos-sdk/x/gov/types/msgs.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // Governance message types and routes diff --git a/libs/cosmos-sdk/x/gov/types/msgs_test.go b/libs/cosmos-sdk/x/gov/types/msgs_test.go index 5a20ae219..7069c8472 100644 --- a/libs/cosmos-sdk/x/gov/types/msgs_test.go +++ b/libs/cosmos-sdk/x/gov/types/msgs_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/libs/cosmos-sdk/x/gov/types/params.go b/libs/cosmos-sdk/x/gov/types/params.go index 695f96cb5..3630ffb9c 100644 --- a/libs/cosmos-sdk/x/gov/types/params.go +++ b/libs/cosmos-sdk/x/gov/types/params.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - params "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + params "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" ) // Default period for deposits & voting diff --git a/libs/cosmos-sdk/x/gov/types/proposal.go b/libs/cosmos-sdk/x/gov/types/proposal.go index 7c6765d33..6cbb02a02 100644 --- a/libs/cosmos-sdk/x/gov/types/proposal.go +++ b/libs/cosmos-sdk/x/gov/types/proposal.go @@ -6,8 +6,8 @@ import ( "strings" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // DefaultStartingProposalID is 1 diff --git a/libs/cosmos-sdk/x/gov/types/querier.go b/libs/cosmos-sdk/x/gov/types/querier.go index 6cc8e1c0c..561aed15b 100644 --- a/libs/cosmos-sdk/x/gov/types/querier.go +++ b/libs/cosmos-sdk/x/gov/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // DONTCOVER diff --git a/libs/cosmos-sdk/x/gov/types/router.go b/libs/cosmos-sdk/x/gov/types/router.go index 46d33db32..3535e6768 100644 --- a/libs/cosmos-sdk/x/gov/types/router.go +++ b/libs/cosmos-sdk/x/gov/types/router.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var _ Router = (*router)(nil) diff --git a/libs/cosmos-sdk/x/gov/types/tally.go b/libs/cosmos-sdk/x/gov/types/tally.go index a3befb880..19849d579 100644 --- a/libs/cosmos-sdk/x/gov/types/tally.go +++ b/libs/cosmos-sdk/x/gov/types/tally.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ValidatorGovInfo used for tallying diff --git a/libs/cosmos-sdk/x/gov/types/vote.go b/libs/cosmos-sdk/x/gov/types/vote.go index 37ef63319..94e538960 100644 --- a/libs/cosmos-sdk/x/gov/types/vote.go +++ b/libs/cosmos-sdk/x/gov/types/vote.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Vote diff --git a/libs/cosmos-sdk/x/mint/abci.go b/libs/cosmos-sdk/x/mint/abci.go index 4163848ca..a0e621d89 100644 --- a/libs/cosmos-sdk/x/mint/abci.go +++ b/libs/cosmos-sdk/x/mint/abci.go @@ -1,8 +1,8 @@ package mint import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" ) // BeginBlocker mints new tokens for the previous block. diff --git a/libs/cosmos-sdk/x/mint/abci_okchain.go b/libs/cosmos-sdk/x/mint/abci_okchain.go index 6dc305781..a50c643a5 100644 --- a/libs/cosmos-sdk/x/mint/abci_okchain.go +++ b/libs/cosmos-sdk/x/mint/abci_okchain.go @@ -2,8 +2,8 @@ package mint import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" ) func disableMining(minter *types.Minter) { diff --git a/libs/cosmos-sdk/x/mint/alias.go b/libs/cosmos-sdk/x/mint/alias.go index a57b2f6d3..1adb74b6e 100644 --- a/libs/cosmos-sdk/x/mint/alias.go +++ b/libs/cosmos-sdk/x/mint/alias.go @@ -3,9 +3,9 @@ package mint // nolint import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" - govtypes "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" + govtypes "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/libs/cosmos-sdk/x/mint/client/cli/query.go b/libs/cosmos-sdk/x/mint/client/cli/query.go index d97d6ea68..1be00ee3e 100644 --- a/libs/cosmos-sdk/x/mint/client/cli/query.go +++ b/libs/cosmos-sdk/x/mint/client/cli/query.go @@ -5,12 +5,12 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" ) // GetQueryCmd returns the cli query commands for the minting module. diff --git a/libs/cosmos-sdk/x/mint/client/cli/tx.go b/libs/cosmos-sdk/x/mint/client/cli/tx.go index 24bfe44d4..63a62db8c 100644 --- a/libs/cosmos-sdk/x/mint/client/cli/tx.go +++ b/libs/cosmos-sdk/x/mint/client/cli/tx.go @@ -3,16 +3,16 @@ package cli import ( "bufio" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - utils2 "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" - "github.com/okx/okbchain/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + utils2 "github.com/okx/brczero/libs/cosmos-sdk/x/mint/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/x/gov" "github.com/spf13/cobra" "strings" ) diff --git a/libs/cosmos-sdk/x/mint/client/proposal_handler.go b/libs/cosmos-sdk/x/mint/client/proposal_handler.go index 2b2220589..08afeef2e 100644 --- a/libs/cosmos-sdk/x/mint/client/proposal_handler.go +++ b/libs/cosmos-sdk/x/mint/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/client/rest" - govcli "github.com/okx/okbchain/x/gov/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/client/rest" + govcli "github.com/okx/brczero/x/gov/client" ) var ( diff --git a/libs/cosmos-sdk/x/mint/client/rest/query.go b/libs/cosmos-sdk/x/mint/client/rest/query.go index 981e1e955..33f98c8ff 100644 --- a/libs/cosmos-sdk/x/mint/client/rest/query.go +++ b/libs/cosmos-sdk/x/mint/client/rest/query.go @@ -6,9 +6,9 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/libs/cosmos-sdk/x/mint/client/rest/rest.go b/libs/cosmos-sdk/x/mint/client/rest/rest.go index ee6da3ec6..7f6e7f7e1 100644 --- a/libs/cosmos-sdk/x/mint/client/rest/rest.go +++ b/libs/cosmos-sdk/x/mint/client/rest/rest.go @@ -2,9 +2,9 @@ package rest import ( "github.com/gorilla/mux" - govRest "github.com/okx/okbchain/x/gov/client/rest" + govRest "github.com/okx/brczero/x/gov/client/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) // RegisterRoutes registers minting module REST handlers on the provided router. diff --git a/libs/cosmos-sdk/x/mint/client/utils/utils.go b/libs/cosmos-sdk/x/mint/client/utils/utils.go index 95b3dc040..544d46e8d 100644 --- a/libs/cosmos-sdk/x/mint/client/utils/utils.go +++ b/libs/cosmos-sdk/x/mint/client/utils/utils.go @@ -4,9 +4,9 @@ import ( "fmt" "io/ioutil" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" "github.com/pkg/errors" ) diff --git a/libs/cosmos-sdk/x/mint/genesis.go b/libs/cosmos-sdk/x/mint/genesis.go index caf3dbcef..326f16d0c 100644 --- a/libs/cosmos-sdk/x/mint/genesis.go +++ b/libs/cosmos-sdk/x/mint/genesis.go @@ -1,7 +1,7 @@ package mint import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // InitGenesis new mint genesis diff --git a/libs/cosmos-sdk/x/mint/internal/keeper/integration_test.go b/libs/cosmos-sdk/x/mint/internal/keeper/integration_test.go index c2030854a..0676f5036 100644 --- a/libs/cosmos-sdk/x/mint/internal/keeper/integration_test.go +++ b/libs/cosmos-sdk/x/mint/internal/keeper/integration_test.go @@ -1,11 +1,11 @@ package keeper_test import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" ) // returns context and an app with updated mint keeper diff --git a/libs/cosmos-sdk/x/mint/internal/keeper/keeper.go b/libs/cosmos-sdk/x/mint/internal/keeper/keeper.go index f741251cf..01ed30ab4 100644 --- a/libs/cosmos-sdk/x/mint/internal/keeper/keeper.go +++ b/libs/cosmos-sdk/x/mint/internal/keeper/keeper.go @@ -3,12 +3,12 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // Keeper of the mint store diff --git a/libs/cosmos-sdk/x/mint/internal/keeper/keeper_okchain.go b/libs/cosmos-sdk/x/mint/internal/keeper/keeper_okchain.go index 53b8c0e40..734ade137 100644 --- a/libs/cosmos-sdk/x/mint/internal/keeper/keeper_okchain.go +++ b/libs/cosmos-sdk/x/mint/internal/keeper/keeper_okchain.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" "github.com/pkg/errors" ) diff --git a/libs/cosmos-sdk/x/mint/internal/keeper/keeper_okchain_test.go b/libs/cosmos-sdk/x/mint/internal/keeper/keeper_okchain_test.go index 273172a6b..75ae8ea71 100644 --- a/libs/cosmos-sdk/x/mint/internal/keeper/keeper_okchain_test.go +++ b/libs/cosmos-sdk/x/mint/internal/keeper/keeper_okchain_test.go @@ -1,25 +1,27 @@ package keeper_test import ( - ethcmm "github.com/ethereum/go-ethereum/common" "math/big" "testing" "time" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - evm_types "github.com/okx/okbchain/x/evm/types" + ethcmm "github.com/ethereum/go-ethereum/common" + "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + evm_types "github.com/okx/brczero/x/evm/types" ) type TreasuresTestSuite struct { suite.Suite ctx sdk.Context - app *app.OKBChainApp + app *app.BRCZeroApp stateDB *evm_types.CommitStateDB codec *codec.Codec diff --git a/libs/cosmos-sdk/x/mint/internal/keeper/proposal.go b/libs/cosmos-sdk/x/mint/internal/keeper/proposal.go index a70062c5c..f5c817603 100644 --- a/libs/cosmos-sdk/x/mint/internal/keeper/proposal.go +++ b/libs/cosmos-sdk/x/mint/internal/keeper/proposal.go @@ -4,12 +4,12 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" - sdkGov "github.com/okx/okbchain/x/gov" - govKeeper "github.com/okx/okbchain/x/gov/keeper" - govTypes "github.com/okx/okbchain/x/gov/types" + sdkGov "github.com/okx/brczero/x/gov" + govKeeper "github.com/okx/brczero/x/gov/keeper" + govTypes "github.com/okx/brczero/x/gov/types" ) var _ govKeeper.ProposalHandler = (*Keeper)(nil) diff --git a/libs/cosmos-sdk/x/mint/internal/keeper/querier.go b/libs/cosmos-sdk/x/mint/internal/keeper/querier.go index d389e877c..72f230a22 100644 --- a/libs/cosmos-sdk/x/mint/internal/keeper/querier.go +++ b/libs/cosmos-sdk/x/mint/internal/keeper/querier.go @@ -1,12 +1,12 @@ package keeper import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" ) // NewQuerier returns a minting Querier handler. diff --git a/libs/cosmos-sdk/x/mint/internal/keeper/querier_test.go b/libs/cosmos-sdk/x/mint/internal/keeper/querier_test.go index 533b7db6d..02d78abe6 100644 --- a/libs/cosmos-sdk/x/mint/internal/keeper/querier_test.go +++ b/libs/cosmos-sdk/x/mint/internal/keeper/querier_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) func TestNewQuerier(t *testing.T) { diff --git a/libs/cosmos-sdk/x/mint/internal/types/codec.go b/libs/cosmos-sdk/x/mint/internal/types/codec.go index d49c3157e..b59aa6dd2 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/codec.go +++ b/libs/cosmos-sdk/x/mint/internal/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" ) const ( diff --git a/libs/cosmos-sdk/x/mint/internal/types/errors.go b/libs/cosmos-sdk/x/mint/internal/types/errors.go index 830a5d923..b372664af 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/errors.go +++ b/libs/cosmos-sdk/x/mint/internal/types/errors.go @@ -2,8 +2,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // NOTE: We can't use 1 since that error code is reserved for internal errors. diff --git a/libs/cosmos-sdk/x/mint/internal/types/expected_keepers.go b/libs/cosmos-sdk/x/mint/internal/types/expected_keepers.go index 0d235bd7f..48e344712 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/mint/internal/types/expected_keepers.go @@ -1,9 +1,9 @@ package types // noalias import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + govtypes "github.com/okx/brczero/x/gov/types" ) // StakingKeeper defines the expected staking keeper diff --git a/libs/cosmos-sdk/x/mint/internal/types/genesis.go b/libs/cosmos-sdk/x/mint/internal/types/genesis.go index 26505b6d5..cdb0006b2 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/genesis.go +++ b/libs/cosmos-sdk/x/mint/internal/types/genesis.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GenesisState - minter state diff --git a/libs/cosmos-sdk/x/mint/internal/types/minter.go b/libs/cosmos-sdk/x/mint/internal/types/minter.go index ce7af80df..c625cf591 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/minter.go +++ b/libs/cosmos-sdk/x/mint/internal/types/minter.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Minter represents the minting state. diff --git a/libs/cosmos-sdk/x/mint/internal/types/minter_okchain.go b/libs/cosmos-sdk/x/mint/internal/types/minter_okchain.go index 8b4c7b4f8..696d36f12 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/minter_okchain.go +++ b/libs/cosmos-sdk/x/mint/internal/types/minter_okchain.go @@ -3,8 +3,8 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type MinterCustom struct { diff --git a/libs/cosmos-sdk/x/mint/internal/types/minter_test.go b/libs/cosmos-sdk/x/mint/internal/types/minter_test.go index 3e8762d55..1e1b3abe7 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/minter_test.go +++ b/libs/cosmos-sdk/x/mint/internal/types/minter_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestNextInflation(t *testing.T) { diff --git a/libs/cosmos-sdk/x/mint/internal/types/params.go b/libs/cosmos-sdk/x/mint/internal/types/params.go index 899703988..6bd9646fb 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/params.go +++ b/libs/cosmos-sdk/x/mint/internal/types/params.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // Parameter store keys diff --git a/libs/cosmos-sdk/x/mint/internal/types/proposal.go b/libs/cosmos-sdk/x/mint/internal/types/proposal.go index 79fa9f6fa..f8513bc7c 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/proposal.go +++ b/libs/cosmos-sdk/x/mint/internal/types/proposal.go @@ -3,10 +3,10 @@ package types import ( "encoding/json" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/system" - "github.com/okx/okbchain/libs/tendermint/global" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/system" + "github.com/okx/brczero/libs/tendermint/global" + govtypes "github.com/okx/brczero/x/gov/types" "strings" ) diff --git a/libs/cosmos-sdk/x/mint/internal/types/proposal_test.go b/libs/cosmos-sdk/x/mint/internal/types/proposal_test.go index 7d3de886d..a710571aa 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/proposal_test.go +++ b/libs/cosmos-sdk/x/mint/internal/types/proposal_test.go @@ -1,13 +1,13 @@ package types import ( - "github.com/okx/okbchain/libs/tendermint/global" + "github.com/okx/brczero/libs/tendermint/global" "math/rand" "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - govtypes "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + govtypes "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) diff --git a/libs/cosmos-sdk/x/mint/internal/types/treasure.go b/libs/cosmos-sdk/x/mint/internal/types/treasure.go index f661a5f7c..d17dd5553 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/treasure.go +++ b/libs/cosmos-sdk/x/mint/internal/types/treasure.go @@ -3,7 +3,7 @@ package types import ( "bytes" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/pkg/errors" "sort" ) diff --git a/libs/cosmos-sdk/x/mint/internal/types/treasure_test.go b/libs/cosmos-sdk/x/mint/internal/types/treasure_test.go index 19c0e808e..fb8027b61 100644 --- a/libs/cosmos-sdk/x/mint/internal/types/treasure_test.go +++ b/libs/cosmos-sdk/x/mint/internal/types/treasure_test.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" "testing" ) diff --git a/libs/cosmos-sdk/x/mint/module.go b/libs/cosmos-sdk/x/mint/module.go index 76efe865b..2368ebb5a 100644 --- a/libs/cosmos-sdk/x/mint/module.go +++ b/libs/cosmos-sdk/x/mint/module.go @@ -3,22 +3,22 @@ package mint import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" "math/rand" "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/client/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/simulation" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/simulation" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) var ( diff --git a/libs/cosmos-sdk/x/mint/proposal_handler.go b/libs/cosmos-sdk/x/mint/proposal_handler.go index 82a852240..8499c1b49 100644 --- a/libs/cosmos-sdk/x/mint/proposal_handler.go +++ b/libs/cosmos-sdk/x/mint/proposal_handler.go @@ -1,10 +1,10 @@ package mint import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" - "github.com/okx/okbchain/x/common" - govTypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/x/common" + govTypes "github.com/okx/brczero/x/gov/types" ) // NewManageTreasuresProposalHandler handles "gov" type message in "mint" diff --git a/libs/cosmos-sdk/x/mint/proposal_handler_test.go b/libs/cosmos-sdk/x/mint/proposal_handler_test.go index 844cb4dd7..d395b4d1b 100644 --- a/libs/cosmos-sdk/x/mint/proposal_handler_test.go +++ b/libs/cosmos-sdk/x/mint/proposal_handler_test.go @@ -1,17 +1,19 @@ package mint_test import ( - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdktypes "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - govtypes "github.com/okx/okbchain/x/gov/types" - "github.com/stretchr/testify/suite" "testing" "time" + + "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdktypes "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + govtypes "github.com/okx/brczero/x/gov/types" ) var ( @@ -29,7 +31,7 @@ type MintTestSuite struct { ctx sdk.Context govHandler govtypes.Handler querier sdk.Querier - app *app.OKBChainApp + app *app.BRCZeroApp codec *codec.Codec } diff --git a/libs/cosmos-sdk/x/mint/simulation/decoder.go b/libs/cosmos-sdk/x/mint/simulation/decoder.go index 9d3f0ea03..eed8addb4 100644 --- a/libs/cosmos-sdk/x/mint/simulation/decoder.go +++ b/libs/cosmos-sdk/x/mint/simulation/decoder.go @@ -4,10 +4,10 @@ import ( "bytes" "fmt" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" ) // DecodeStore unmarshals the KVPair's Value to the corresponding mint type diff --git a/libs/cosmos-sdk/x/mint/simulation/decoder_test.go b/libs/cosmos-sdk/x/mint/simulation/decoder_test.go index 39c4cf05a..8bfc39404 100644 --- a/libs/cosmos-sdk/x/mint/simulation/decoder_test.go +++ b/libs/cosmos-sdk/x/mint/simulation/decoder_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" ) func makeTestCodec() (cdc *codec.Codec) { diff --git a/libs/cosmos-sdk/x/mint/simulation/genesis.go b/libs/cosmos-sdk/x/mint/simulation/genesis.go index e773907c6..da182646d 100644 --- a/libs/cosmos-sdk/x/mint/simulation/genesis.go +++ b/libs/cosmos-sdk/x/mint/simulation/genesis.go @@ -6,11 +6,11 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" ) // Simulation parameter constants diff --git a/libs/cosmos-sdk/x/mint/simulation/params.go b/libs/cosmos-sdk/x/mint/simulation/params.go index e5e9f14a0..5df3e171f 100644 --- a/libs/cosmos-sdk/x/mint/simulation/params.go +++ b/libs/cosmos-sdk/x/mint/simulation/params.go @@ -6,8 +6,8 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) const ( diff --git a/libs/cosmos-sdk/x/mock/app.go b/libs/cosmos-sdk/x/mock/app.go index d6ab3a4d4..fd17ba916 100644 --- a/libs/cosmos-sdk/x/mock/app.go +++ b/libs/cosmos-sdk/x/mock/app.go @@ -7,22 +7,22 @@ import ( "os" "sort" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) const chainID = "" diff --git a/libs/cosmos-sdk/x/mock/app_test.go b/libs/cosmos-sdk/x/mock/app_test.go index 4423b459d..cd5c15073 100644 --- a/libs/cosmos-sdk/x/mock/app_test.go +++ b/libs/cosmos-sdk/x/mock/app_test.go @@ -3,14 +3,14 @@ package mock import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) const msgRoute = "testMsg" diff --git a/libs/cosmos-sdk/x/mock/test_utils.go b/libs/cosmos-sdk/x/mock/test_utils.go index af10a7b0f..da0e68447 100644 --- a/libs/cosmos-sdk/x/mock/test_utils.go +++ b/libs/cosmos-sdk/x/mock/test_utils.go @@ -5,14 +5,14 @@ import ( "math/rand" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // BigInterval is a representation of the interval [lo, hi), where diff --git a/libs/cosmos-sdk/x/mock/types.go b/libs/cosmos-sdk/x/mock/types.go index 62f7213a9..7ef9920df 100644 --- a/libs/cosmos-sdk/x/mock/types.go +++ b/libs/cosmos-sdk/x/mock/types.go @@ -1,13 +1,13 @@ package mock import ( - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // DummySupplyKeeper defines a supply keeper used only for testing to avoid diff --git a/libs/cosmos-sdk/x/params/alias.go b/libs/cosmos-sdk/x/params/alias.go index a896bb67f..9d401d94c 100644 --- a/libs/cosmos-sdk/x/params/alias.go +++ b/libs/cosmos-sdk/x/params/alias.go @@ -3,8 +3,8 @@ package params // nolint import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/types" ) const ( diff --git a/libs/cosmos-sdk/x/params/client/cli/tx.go b/libs/cosmos-sdk/x/params/client/cli/tx.go index b31aad607..0b40d4896 100644 --- a/libs/cosmos-sdk/x/params/client/cli/tx.go +++ b/libs/cosmos-sdk/x/params/client/cli/tx.go @@ -7,15 +7,15 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - paramscutils "github.com/okx/okbchain/libs/cosmos-sdk/x/params/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + paramscutils "github.com/okx/brczero/libs/cosmos-sdk/x/params/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/types" ) // GetCmdSubmitProposal implements a command handler for submitting a parameter diff --git a/libs/cosmos-sdk/x/params/client/proposal_handler.go b/libs/cosmos-sdk/x/params/client/proposal_handler.go index 22c4b2307..0b69ba760 100644 --- a/libs/cosmos-sdk/x/params/client/proposal_handler.go +++ b/libs/cosmos-sdk/x/params/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - govclient "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/client/rest" + govclient "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/client/rest" ) // ProposalHandler handles param change proposals diff --git a/libs/cosmos-sdk/x/params/client/rest/rest.go b/libs/cosmos-sdk/x/params/client/rest/rest.go index e6e8c6656..a331994d6 100644 --- a/libs/cosmos-sdk/x/params/client/rest/rest.go +++ b/libs/cosmos-sdk/x/params/client/rest/rest.go @@ -3,14 +3,14 @@ package rest import ( "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - govrest "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/rest" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - paramscutils "github.com/okx/okbchain/libs/cosmos-sdk/x/params/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + govrest "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/rest" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + paramscutils "github.com/okx/brczero/libs/cosmos-sdk/x/params/client/utils" ) // ProposalRESTHandler returns a ProposalRESTHandler that exposes the param diff --git a/libs/cosmos-sdk/x/params/client/utils/utils.go b/libs/cosmos-sdk/x/params/client/utils/utils.go index 21ba93fcb..512653eac 100644 --- a/libs/cosmos-sdk/x/params/client/utils/utils.go +++ b/libs/cosmos-sdk/x/params/client/utils/utils.go @@ -4,10 +4,10 @@ import ( "encoding/json" "io/ioutil" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) type ( diff --git a/libs/cosmos-sdk/x/params/commmon_test.go b/libs/cosmos-sdk/x/params/commmon_test.go index fff2f3d5f..9a9378327 100644 --- a/libs/cosmos-sdk/x/params/commmon_test.go +++ b/libs/cosmos-sdk/x/params/commmon_test.go @@ -2,13 +2,13 @@ package params import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type invalid struct{} diff --git a/libs/cosmos-sdk/x/params/keeper.go b/libs/cosmos-sdk/x/params/keeper.go index 1f4d3fa2f..77716e394 100644 --- a/libs/cosmos-sdk/x/params/keeper.go +++ b/libs/cosmos-sdk/x/params/keeper.go @@ -3,12 +3,12 @@ package params import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // Keeper of the global paramstore diff --git a/libs/cosmos-sdk/x/params/keeper_test.go b/libs/cosmos-sdk/x/params/keeper_test.go index 14bca24c6..3d2c197c9 100644 --- a/libs/cosmos-sdk/x/params/keeper_test.go +++ b/libs/cosmos-sdk/x/params/keeper_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func validateNoOp(_ interface{}) error { return nil } diff --git a/libs/cosmos-sdk/x/params/module.go b/libs/cosmos-sdk/x/params/module.go index 307d513e9..8733fd3f1 100644 --- a/libs/cosmos-sdk/x/params/module.go +++ b/libs/cosmos-sdk/x/params/module.go @@ -7,13 +7,13 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/types" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) var ( diff --git a/libs/cosmos-sdk/x/params/proposal_handler.go b/libs/cosmos-sdk/x/params/proposal_handler.go index 4ac284d6d..383c30dfb 100644 --- a/libs/cosmos-sdk/x/params/proposal_handler.go +++ b/libs/cosmos-sdk/x/params/proposal_handler.go @@ -3,9 +3,9 @@ package params import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // NewParamChangeProposalHandler creates a new governance Handler for a ParamChangeProposal diff --git a/libs/cosmos-sdk/x/params/proposal_handler_test.go b/libs/cosmos-sdk/x/params/proposal_handler_test.go index c519a0c42..7cdf4e86f 100644 --- a/libs/cosmos-sdk/x/params/proposal_handler_test.go +++ b/libs/cosmos-sdk/x/params/proposal_handler_test.go @@ -3,18 +3,18 @@ package params_test import ( "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/types" ) func validateNoOp(_ interface{}) error { return nil } diff --git a/libs/cosmos-sdk/x/params/simulation/operations.go b/libs/cosmos-sdk/x/params/simulation/operations.go index 3f99b4e14..8707ba9b2 100644 --- a/libs/cosmos-sdk/x/params/simulation/operations.go +++ b/libs/cosmos-sdk/x/params/simulation/operations.go @@ -3,10 +3,10 @@ package simulation import ( "math/rand" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // SimulateParamChangeProposalContent returns random parameter change content. diff --git a/libs/cosmos-sdk/x/params/simulation/proposals.go b/libs/cosmos-sdk/x/params/simulation/proposals.go index d2fa45baf..e919665e2 100644 --- a/libs/cosmos-sdk/x/params/simulation/proposals.go +++ b/libs/cosmos-sdk/x/params/simulation/proposals.go @@ -1,8 +1,8 @@ package simulation import ( - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // OpWeightSubmitParamChangeProposal app params key for param change proposal diff --git a/libs/cosmos-sdk/x/params/subspace/common_test.go b/libs/cosmos-sdk/x/params/subspace/common_test.go index a30f33dd0..43015dfef 100644 --- a/libs/cosmos-sdk/x/params/subspace/common_test.go +++ b/libs/cosmos-sdk/x/params/subspace/common_test.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" ) var ( diff --git a/libs/cosmos-sdk/x/params/subspace/subspace.go b/libs/cosmos-sdk/x/params/subspace/subspace.go index a7e1330f7..82245ab8f 100644 --- a/libs/cosmos-sdk/x/params/subspace/subspace.go +++ b/libs/cosmos-sdk/x/params/subspace/subspace.go @@ -9,11 +9,11 @@ import ( "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" ) const ( diff --git a/libs/cosmos-sdk/x/params/subspace/subspace_test.go b/libs/cosmos-sdk/x/params/subspace/subspace_test.go index c7b927562..e66d6ff0e 100644 --- a/libs/cosmos-sdk/x/params/subspace/subspace_test.go +++ b/libs/cosmos-sdk/x/params/subspace/subspace_test.go @@ -5,15 +5,15 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" ) type SubspaceTestSuite struct { diff --git a/libs/cosmos-sdk/x/params/subspace/table.go b/libs/cosmos-sdk/x/params/subspace/table.go index 6bcf8814d..50abcbd9e 100644 --- a/libs/cosmos-sdk/x/params/subspace/table.go +++ b/libs/cosmos-sdk/x/params/subspace/table.go @@ -3,7 +3,7 @@ package subspace import ( "reflect" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type attribute struct { diff --git a/libs/cosmos-sdk/x/params/subspace/table_test.go b/libs/cosmos-sdk/x/params/subspace/table_test.go index 01a672d6d..ac5fc09c4 100644 --- a/libs/cosmos-sdk/x/params/subspace/table_test.go +++ b/libs/cosmos-sdk/x/params/subspace/table_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" ) func TestKeyTable(t *testing.T) { diff --git a/libs/cosmos-sdk/x/params/types/codec.go b/libs/cosmos-sdk/x/params/types/codec.go index af13f2f4f..e48dca9ad 100644 --- a/libs/cosmos-sdk/x/params/types/codec.go +++ b/libs/cosmos-sdk/x/params/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) var ModuleCdc *codec.Codec diff --git a/libs/cosmos-sdk/x/params/types/errors.go b/libs/cosmos-sdk/x/params/types/errors.go index fad73a332..8486e0894 100644 --- a/libs/cosmos-sdk/x/params/types/errors.go +++ b/libs/cosmos-sdk/x/params/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // x/params module sentinel errors diff --git a/libs/cosmos-sdk/x/params/types/proposal.go b/libs/cosmos-sdk/x/params/types/proposal.go index bf5a86b08..db944c6ed 100644 --- a/libs/cosmos-sdk/x/params/types/proposal.go +++ b/libs/cosmos-sdk/x/params/types/proposal.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) const ( diff --git a/libs/cosmos-sdk/x/simulation/account.go b/libs/cosmos-sdk/x/simulation/account.go index 3f4398db8..9b1544b00 100644 --- a/libs/cosmos-sdk/x/simulation/account.go +++ b/libs/cosmos-sdk/x/simulation/account.go @@ -3,10 +3,10 @@ package simulation import ( "math/rand" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Account contains a privkey, pubkey, address tuple diff --git a/libs/cosmos-sdk/x/simulation/account_test.go b/libs/cosmos-sdk/x/simulation/account_test.go index aee7ca480..1e575dafc 100644 --- a/libs/cosmos-sdk/x/simulation/account_test.go +++ b/libs/cosmos-sdk/x/simulation/account_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) func TestRandomAccounts(t *testing.T) { diff --git a/libs/cosmos-sdk/x/simulation/mock_tendermint.go b/libs/cosmos-sdk/x/simulation/mock_tendermint.go index 90d8d1efa..65c930d16 100644 --- a/libs/cosmos-sdk/x/simulation/mock_tendermint.go +++ b/libs/cosmos-sdk/x/simulation/mock_tendermint.go @@ -7,9 +7,9 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) type mockValidator struct { diff --git a/libs/cosmos-sdk/x/simulation/operation.go b/libs/cosmos-sdk/x/simulation/operation.go index 81c174ce4..a175ecc8d 100644 --- a/libs/cosmos-sdk/x/simulation/operation.go +++ b/libs/cosmos-sdk/x/simulation/operation.go @@ -6,8 +6,8 @@ import ( "sort" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Operation runs a state machine transition, and ensures the transition diff --git a/libs/cosmos-sdk/x/simulation/params.go b/libs/cosmos-sdk/x/simulation/params.go index 460df159e..067b596f6 100644 --- a/libs/cosmos-sdk/x/simulation/params.go +++ b/libs/cosmos-sdk/x/simulation/params.go @@ -5,9 +5,9 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) const ( diff --git a/libs/cosmos-sdk/x/simulation/rand_util.go b/libs/cosmos-sdk/x/simulation/rand_util.go index d82b965f6..1f9761ed1 100644 --- a/libs/cosmos-sdk/x/simulation/rand_util.go +++ b/libs/cosmos-sdk/x/simulation/rand_util.go @@ -6,7 +6,7 @@ import ( "math/rand" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/simulation/rand_util_test.go b/libs/cosmos-sdk/x/simulation/rand_util_test.go index c7b0f439e..90ea58ee7 100644 --- a/libs/cosmos-sdk/x/simulation/rand_util_test.go +++ b/libs/cosmos-sdk/x/simulation/rand_util_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) func TestRandSubsetCoins(t *testing.T) { diff --git a/libs/cosmos-sdk/x/simulation/simulate.go b/libs/cosmos-sdk/x/simulation/simulate.go index 5061d7611..e62410ccc 100644 --- a/libs/cosmos-sdk/x/simulation/simulate.go +++ b/libs/cosmos-sdk/x/simulation/simulate.go @@ -11,10 +11,10 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // AppStateFn returns the app state json bytes and the genesis accounts diff --git a/libs/cosmos-sdk/x/slashing/abci.go b/libs/cosmos-sdk/x/slashing/abci.go index 9617ff226..8a32f10be 100644 --- a/libs/cosmos-sdk/x/slashing/abci.go +++ b/libs/cosmos-sdk/x/slashing/abci.go @@ -1,9 +1,9 @@ package slashing import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // BeginBlocker check for infraction evidence or downtime of validators diff --git a/libs/cosmos-sdk/x/slashing/abci_test.go b/libs/cosmos-sdk/x/slashing/abci_test.go index 262b69399..7e0680f79 100644 --- a/libs/cosmos-sdk/x/slashing/abci_test.go +++ b/libs/cosmos-sdk/x/slashing/abci_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - slashingkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + slashingkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" ) func TestBeginBlocker(t *testing.T) { diff --git a/libs/cosmos-sdk/x/slashing/alias.go b/libs/cosmos-sdk/x/slashing/alias.go index 0fe69d7d7..b87396f73 100644 --- a/libs/cosmos-sdk/x/slashing/alias.go +++ b/libs/cosmos-sdk/x/slashing/alias.go @@ -3,8 +3,8 @@ package slashing // nolint import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) const ( diff --git a/libs/cosmos-sdk/x/slashing/app_test.go b/libs/cosmos-sdk/x/slashing/app_test.go index adbb59571..9779f7f23 100644 --- a/libs/cosmos-sdk/x/slashing/app_test.go +++ b/libs/cosmos-sdk/x/slashing/app_test.go @@ -6,19 +6,19 @@ import ( "strings" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mock" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/mock" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) var ( diff --git a/libs/cosmos-sdk/x/slashing/client/cli/query.go b/libs/cosmos-sdk/x/slashing/client/cli/query.go index 2e50f0f92..53a38b4cc 100644 --- a/libs/cosmos-sdk/x/slashing/client/cli/query.go +++ b/libs/cosmos-sdk/x/slashing/client/cli/query.go @@ -6,13 +6,13 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/libs/cosmos-sdk/x/slashing/client/cli/tx.go b/libs/cosmos-sdk/x/slashing/client/cli/tx.go index 95d13e6c3..21f897078 100644 --- a/libs/cosmos-sdk/x/slashing/client/cli/tx.go +++ b/libs/cosmos-sdk/x/slashing/client/cli/tx.go @@ -5,14 +5,14 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/libs/cosmos-sdk/x/slashing/client/rest/query.go b/libs/cosmos-sdk/x/slashing/client/rest/query.go index 36f109824..3195bc3d4 100644 --- a/libs/cosmos-sdk/x/slashing/client/rest/query.go +++ b/libs/cosmos-sdk/x/slashing/client/rest/query.go @@ -6,10 +6,10 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/libs/cosmos-sdk/x/slashing/client/rest/rest.go b/libs/cosmos-sdk/x/slashing/client/rest/rest.go index 07359e6b1..13884483c 100644 --- a/libs/cosmos-sdk/x/slashing/client/rest/rest.go +++ b/libs/cosmos-sdk/x/slashing/client/rest/rest.go @@ -3,7 +3,7 @@ package rest import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) // RegisterRoutes registers staking-related REST handlers to a router diff --git a/libs/cosmos-sdk/x/slashing/client/rest/tx.go b/libs/cosmos-sdk/x/slashing/client/rest/tx.go index a87d0ac81..3b96cd0e9 100644 --- a/libs/cosmos-sdk/x/slashing/client/rest/tx.go +++ b/libs/cosmos-sdk/x/slashing/client/rest/tx.go @@ -6,11 +6,11 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/libs/cosmos-sdk/x/slashing/genesis.go b/libs/cosmos-sdk/x/slashing/genesis.go index 69c403b52..d7da3b3e1 100644 --- a/libs/cosmos-sdk/x/slashing/genesis.go +++ b/libs/cosmos-sdk/x/slashing/genesis.go @@ -1,9 +1,9 @@ package slashing import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // InitGenesis initialize default parameters diff --git a/libs/cosmos-sdk/x/slashing/handler.go b/libs/cosmos-sdk/x/slashing/handler.go index 8e439d7e4..77dc237e9 100644 --- a/libs/cosmos-sdk/x/slashing/handler.go +++ b/libs/cosmos-sdk/x/slashing/handler.go @@ -1,9 +1,9 @@ package slashing import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // NewHandler creates an sdk.Handler for all the slashing type messages diff --git a/libs/cosmos-sdk/x/slashing/handler_test.go b/libs/cosmos-sdk/x/slashing/handler_test.go index e23ad9704..9cd54d35f 100644 --- a/libs/cosmos-sdk/x/slashing/handler_test.go +++ b/libs/cosmos-sdk/x/slashing/handler_test.go @@ -6,13 +6,13 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - slashingkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + slashingkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" ) func TestCannotUnjailUnlessJailed(t *testing.T) { diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/hooks.go b/libs/cosmos-sdk/x/slashing/internal/keeper/hooks.go index bc24dda68..37903c3a1 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/hooks.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/hooks.go @@ -4,10 +4,10 @@ package keeper import ( "time" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) func (k Keeper) AfterValidatorBonded(ctx sdk.Context, address sdk.ConsAddress, _ sdk.ValAddress) { diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/infractions.go b/libs/cosmos-sdk/x/slashing/internal/keeper/infractions.go index 644eaa57d..08b7bcffd 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/infractions.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/infractions.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // HandleValidatorSignature handles a validator signature, must be called once per validator per block. diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/keeper.go b/libs/cosmos-sdk/x/slashing/internal/keeper/keeper.go index 5bf03dd0e..2a33050c2 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/keeper.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/keeper.go @@ -3,12 +3,12 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // Keeper of the slashing store diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/keeper_test.go b/libs/cosmos-sdk/x/slashing/internal/keeper/keeper_test.go index 1358d9368..bbe2179af 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/keeper_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" ) // Test a new validator entering the validator set diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/params.go b/libs/cosmos-sdk/x/slashing/internal/keeper/params.go index 0e2e29ba2..440856381 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/params.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/params.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // SignedBlocksWindow - sliding window for downtime slashing diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/querier.go b/libs/cosmos-sdk/x/slashing/internal/keeper/querier.go index c87cc88c3..3982ce075 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/querier.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/querier.go @@ -1,13 +1,13 @@ package keeper import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // NewQuerier creates a new querier for slashing clients. diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/querier_test.go b/libs/cosmos-sdk/x/slashing/internal/keeper/querier_test.go index 27b2e9d02..b7e837a40 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/querier_test.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/querier_test.go @@ -3,11 +3,11 @@ package keeper import ( "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) func TestNewQuerier(t *testing.T) { diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/signing_info.go b/libs/cosmos-sdk/x/slashing/internal/keeper/signing_info.go index b5b77a12e..1a78f6d4b 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/signing_info.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/signing_info.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // GetValidatorSigningInfo retruns the ValidatorSigningInfo for a specific validator diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/signing_info_test.go b/libs/cosmos-sdk/x/slashing/internal/keeper/signing_info_test.go index 54b84b35e..afcff4f5d 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/signing_info_test.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/signing_info_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) func TestGetSetValidatorSigningInfo(t *testing.T) { diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/test_common.go b/libs/cosmos-sdk/x/slashing/internal/keeper/test_common.go index 77071d6dd..ea7e6f36d 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/test_common.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/test_common.go @@ -10,21 +10,21 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) // TODO remove dependencies on staking (should only refer to validator set type from sdk) diff --git a/libs/cosmos-sdk/x/slashing/internal/keeper/unjail.go b/libs/cosmos-sdk/x/slashing/internal/keeper/unjail.go index b14104c1d..6863608a0 100644 --- a/libs/cosmos-sdk/x/slashing/internal/keeper/unjail.go +++ b/libs/cosmos-sdk/x/slashing/internal/keeper/unjail.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // Unjail calls the staking Unjail function to unjail a validator if the diff --git a/libs/cosmos-sdk/x/slashing/internal/types/codec.go b/libs/cosmos-sdk/x/slashing/internal/types/codec.go index 77f1d13c8..1eef89a6f 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/codec.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // RegisterCodec registers concrete types on codec diff --git a/libs/cosmos-sdk/x/slashing/internal/types/errors.go b/libs/cosmos-sdk/x/slashing/internal/types/errors.go index 1cbeb04d8..0fd3be68b 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/errors.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // x/slashing module sentinel errors diff --git a/libs/cosmos-sdk/x/slashing/internal/types/expected_keepers.go b/libs/cosmos-sdk/x/slashing/internal/types/expected_keepers.go index fe3a393da..53e80952a 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/expected_keepers.go @@ -3,10 +3,10 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - stakingexported "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + stakingexported "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // AccountKeeper expected account keeper diff --git a/libs/cosmos-sdk/x/slashing/internal/types/genesis.go b/libs/cosmos-sdk/x/slashing/internal/types/genesis.go index a7eb784c9..bb6268e64 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/genesis.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/genesis.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GenesisState - all slashing state that must be provided at genesis diff --git a/libs/cosmos-sdk/x/slashing/internal/types/keys.go b/libs/cosmos-sdk/x/slashing/internal/types/keys.go index 66daebec2..f7c00fb19 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/keys.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/keys.go @@ -3,7 +3,7 @@ package types import ( "encoding/binary" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/slashing/internal/types/msg.go b/libs/cosmos-sdk/x/slashing/internal/types/msg.go index cc7d173e9..14ec2f4ec 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/msg.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/msg.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // verify interface at compile time diff --git a/libs/cosmos-sdk/x/slashing/internal/types/msg_test.go b/libs/cosmos-sdk/x/slashing/internal/types/msg_test.go index cd99bb252..1b89e872a 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/msg_test.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/msg_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestMsgUnjailGetSignBytes(t *testing.T) { diff --git a/libs/cosmos-sdk/x/slashing/internal/types/params.go b/libs/cosmos-sdk/x/slashing/internal/types/params.go index 5541daff5..cbb036823 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/params.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/params.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // Default parameter namespace diff --git a/libs/cosmos-sdk/x/slashing/internal/types/querier.go b/libs/cosmos-sdk/x/slashing/internal/types/querier.go index 833136a24..2db722e2e 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/querier.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // DONTCOVER diff --git a/libs/cosmos-sdk/x/slashing/internal/types/signing_info.go b/libs/cosmos-sdk/x/slashing/internal/types/signing_info.go index 937415134..09ab396c3 100644 --- a/libs/cosmos-sdk/x/slashing/internal/types/signing_info.go +++ b/libs/cosmos-sdk/x/slashing/internal/types/signing_info.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ValidatorSigningInfo defines the signing info for a validator diff --git a/libs/cosmos-sdk/x/slashing/module.go b/libs/cosmos-sdk/x/slashing/module.go index e87fc5476..c8b151fb7 100644 --- a/libs/cosmos-sdk/x/slashing/module.go +++ b/libs/cosmos-sdk/x/slashing/module.go @@ -8,18 +8,18 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/client/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/simulation" - stakingkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/simulation" + stakingkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" ) var ( diff --git a/libs/cosmos-sdk/x/slashing/simulation/decoder.go b/libs/cosmos-sdk/x/slashing/simulation/decoder.go index 7506227f3..4088aa2a5 100644 --- a/libs/cosmos-sdk/x/slashing/simulation/decoder.go +++ b/libs/cosmos-sdk/x/slashing/simulation/decoder.go @@ -4,12 +4,12 @@ import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/crypto" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // DecodeStore unmarshals the KVPair's Value to the corresponding slashing type diff --git a/libs/cosmos-sdk/x/slashing/simulation/decoder_test.go b/libs/cosmos-sdk/x/slashing/simulation/decoder_test.go index 597864328..36da42b95 100644 --- a/libs/cosmos-sdk/x/slashing/simulation/decoder_test.go +++ b/libs/cosmos-sdk/x/slashing/simulation/decoder_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // nolint:deadcode,unused,varcheck diff --git a/libs/cosmos-sdk/x/slashing/simulation/genesis.go b/libs/cosmos-sdk/x/slashing/simulation/genesis.go index 6cc96f40e..06453c05f 100644 --- a/libs/cosmos-sdk/x/slashing/simulation/genesis.go +++ b/libs/cosmos-sdk/x/slashing/simulation/genesis.go @@ -7,12 +7,12 @@ import ( "math/rand" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) // Simulation parameter constants diff --git a/libs/cosmos-sdk/x/slashing/simulation/operations.go b/libs/cosmos-sdk/x/slashing/simulation/operations.go index 3ecde3209..e6df6d65b 100644 --- a/libs/cosmos-sdk/x/slashing/simulation/operations.go +++ b/libs/cosmos-sdk/x/slashing/simulation/operations.go @@ -4,15 +4,15 @@ import ( "errors" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" - stakingkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" + stakingkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" ) // Simulation operation weights constants diff --git a/libs/cosmos-sdk/x/slashing/simulation/params.go b/libs/cosmos-sdk/x/slashing/simulation/params.go index 35203a87a..e54bf9d19 100644 --- a/libs/cosmos-sdk/x/slashing/simulation/params.go +++ b/libs/cosmos-sdk/x/slashing/simulation/params.go @@ -6,8 +6,8 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing/internal/types" ) const ( diff --git a/libs/cosmos-sdk/x/staking/abci.go b/libs/cosmos-sdk/x/staking/abci.go index 44e89b195..7bf565e87 100644 --- a/libs/cosmos-sdk/x/staking/abci.go +++ b/libs/cosmos-sdk/x/staking/abci.go @@ -1,10 +1,10 @@ package staking import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" ) // BeginBlocker will persist the current header and validator set as a historical entry diff --git a/libs/cosmos-sdk/x/staking/alias.go b/libs/cosmos-sdk/x/staking/alias.go index 70d4dd8dd..243744c19 100644 --- a/libs/cosmos-sdk/x/staking/alias.go +++ b/libs/cosmos-sdk/x/staking/alias.go @@ -3,9 +3,9 @@ package staking // nolint import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) const ( diff --git a/libs/cosmos-sdk/x/staking/app_test.go b/libs/cosmos-sdk/x/staking/app_test.go index 7d742c01b..972ca898a 100644 --- a/libs/cosmos-sdk/x/staking/app_test.go +++ b/libs/cosmos-sdk/x/staking/app_test.go @@ -3,17 +3,17 @@ package staking import ( "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mock" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/mock" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // getMockApp returns an initialized mock application for this module. diff --git a/libs/cosmos-sdk/x/staking/client/cli/flags.go b/libs/cosmos-sdk/x/staking/client/cli/flags.go index 2274fd81b..846085ad7 100644 --- a/libs/cosmos-sdk/x/staking/client/cli/flags.go +++ b/libs/cosmos-sdk/x/staking/client/cli/flags.go @@ -3,7 +3,7 @@ package cli import ( flag "github.com/spf13/pflag" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // nolint diff --git a/libs/cosmos-sdk/x/staking/client/cli/query.go b/libs/cosmos-sdk/x/staking/client/cli/query.go index 92a8da9a0..1bdb41c84 100644 --- a/libs/cosmos-sdk/x/staking/client/cli/query.go +++ b/libs/cosmos-sdk/x/staking/client/cli/query.go @@ -7,13 +7,13 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/libs/cosmos-sdk/x/staking/client/cli/tx.go b/libs/cosmos-sdk/x/staking/client/cli/tx.go index a98932d91..96eb6e39b 100644 --- a/libs/cosmos-sdk/x/staking/client/cli/tx.go +++ b/libs/cosmos-sdk/x/staking/client/cli/tx.go @@ -10,18 +10,18 @@ import ( flag "github.com/spf13/pflag" "github.com/spf13/viper" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto" - - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto" + + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/libs/cosmos-sdk/x/staking/client/cli/tx_test.go b/libs/cosmos-sdk/x/staking/client/cli/tx_test.go index 9900c62fe..54878c453 100644 --- a/libs/cosmos-sdk/x/staking/client/cli/tx_test.go +++ b/libs/cosmos-sdk/x/staking/client/cli/tx_test.go @@ -3,15 +3,15 @@ package cli import ( "testing" - tcmd "github.com/okx/okbchain/libs/tendermint/cmd/tendermint/commands" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/libs/log" + tcmd "github.com/okx/brczero/libs/tendermint/cmd/tendermint/commands" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestPrepareFlagsForTxCreateValidator(t *testing.T) { diff --git a/libs/cosmos-sdk/x/staking/client/cli/utils.go b/libs/cosmos-sdk/x/staking/client/cli/utils.go index 4fb4592a4..bb3bda660 100644 --- a/libs/cosmos-sdk/x/staking/client/cli/utils.go +++ b/libs/cosmos-sdk/x/staking/client/cli/utils.go @@ -3,8 +3,8 @@ package cli import ( "errors" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) func buildCommissionRates(rateStr, maxRateStr, maxChangeRateStr string) (commission types.CommissionRates, err error) { diff --git a/libs/cosmos-sdk/x/staking/client/rest/query.go b/libs/cosmos-sdk/x/staking/client/rest/query.go index 4b6760eed..c385585c2 100644 --- a/libs/cosmos-sdk/x/staking/client/rest/query.go +++ b/libs/cosmos-sdk/x/staking/client/rest/query.go @@ -8,10 +8,10 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/libs/cosmos-sdk/x/staking/client/rest/rest.go b/libs/cosmos-sdk/x/staking/client/rest/rest.go index 07359e6b1..13884483c 100644 --- a/libs/cosmos-sdk/x/staking/client/rest/rest.go +++ b/libs/cosmos-sdk/x/staking/client/rest/rest.go @@ -3,7 +3,7 @@ package rest import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) // RegisterRoutes registers staking-related REST handlers to a router diff --git a/libs/cosmos-sdk/x/staking/client/rest/tx.go b/libs/cosmos-sdk/x/staking/client/rest/tx.go index f09970604..10519a073 100644 --- a/libs/cosmos-sdk/x/staking/client/rest/tx.go +++ b/libs/cosmos-sdk/x/staking/client/rest/tx.go @@ -6,11 +6,11 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/libs/cosmos-sdk/x/staking/client/rest/utils.go b/libs/cosmos-sdk/x/staking/client/rest/utils.go index 8e48e1e03..766dd583b 100644 --- a/libs/cosmos-sdk/x/staking/client/rest/utils.go +++ b/libs/cosmos-sdk/x/staking/client/rest/utils.go @@ -6,11 +6,11 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // contains checks if the a given query contains one of the tx types diff --git a/libs/cosmos-sdk/x/staking/exported/exported.go b/libs/cosmos-sdk/x/staking/exported/exported.go index 271f1c1cd..66792010e 100644 --- a/libs/cosmos-sdk/x/staking/exported/exported.go +++ b/libs/cosmos-sdk/x/staking/exported/exported.go @@ -1,9 +1,9 @@ package exported import ( - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // DelegationI delegation bond for a delegated proof of stake system diff --git a/libs/cosmos-sdk/x/staking/genesis.go b/libs/cosmos-sdk/x/staking/genesis.go index 75d9bc5a5..e2fd997b6 100644 --- a/libs/cosmos-sdk/x/staking/genesis.go +++ b/libs/cosmos-sdk/x/staking/genesis.go @@ -3,12 +3,12 @@ package staking import ( "fmt" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // InitGenesis sets the pool and parameters for the provided keeper. For each diff --git a/libs/cosmos-sdk/x/staking/genesis_test.go b/libs/cosmos-sdk/x/staking/genesis_test.go index de9e09b4c..f548a9887 100644 --- a/libs/cosmos-sdk/x/staking/genesis_test.go +++ b/libs/cosmos-sdk/x/staking/genesis_test.go @@ -4,16 +4,16 @@ import ( "fmt" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/assert" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) func TestInitGenesis(t *testing.T) { diff --git a/libs/cosmos-sdk/x/staking/handler.go b/libs/cosmos-sdk/x/staking/handler.go index 938008e73..ee1884bbe 100644 --- a/libs/cosmos-sdk/x/staking/handler.go +++ b/libs/cosmos-sdk/x/staking/handler.go @@ -3,13 +3,13 @@ package staking import ( "time" - tmstrings "github.com/okx/okbchain/libs/tendermint/libs/strings" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmstrings "github.com/okx/brczero/libs/tendermint/libs/strings" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) func NewHandler(k keeper.Keeper) sdk.Handler { diff --git a/libs/cosmos-sdk/x/staking/handler_test.go b/libs/cosmos-sdk/x/staking/handler_test.go index 16ad0629e..3e2601e23 100644 --- a/libs/cosmos-sdk/x/staking/handler_test.go +++ b/libs/cosmos-sdk/x/staking/handler_test.go @@ -8,13 +8,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) func TestValidatorByPowerIndex(t *testing.T) { diff --git a/libs/cosmos-sdk/x/staking/keeper/alias_functions.go b/libs/cosmos-sdk/x/staking/keeper/alias_functions.go index 8b66d126e..22dfe92c9 100644 --- a/libs/cosmos-sdk/x/staking/keeper/alias_functions.go +++ b/libs/cosmos-sdk/x/staking/keeper/alias_functions.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) //_______________________________________________________________________ diff --git a/libs/cosmos-sdk/x/staking/keeper/delegation.go b/libs/cosmos-sdk/x/staking/keeper/delegation.go index 71cb265e6..f536618d9 100644 --- a/libs/cosmos-sdk/x/staking/keeper/delegation.go +++ b/libs/cosmos-sdk/x/staking/keeper/delegation.go @@ -5,9 +5,9 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // return a specific delegation diff --git a/libs/cosmos-sdk/x/staking/keeper/delegation_test.go b/libs/cosmos-sdk/x/staking/keeper/delegation_test.go index a59a780d7..3a6912882 100644 --- a/libs/cosmos-sdk/x/staking/keeper/delegation_test.go +++ b/libs/cosmos-sdk/x/staking/keeper/delegation_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/libs/cosmos-sdk/x/staking/keeper/historical_info.go b/libs/cosmos-sdk/x/staking/keeper/historical_info.go index 53cd43ba8..613edebf0 100644 --- a/libs/cosmos-sdk/x/staking/keeper/historical_info.go +++ b/libs/cosmos-sdk/x/staking/keeper/historical_info.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // GetHistoricalInfo gets the historical info at a given height diff --git a/libs/cosmos-sdk/x/staking/keeper/historical_info_test.go b/libs/cosmos-sdk/x/staking/keeper/historical_info_test.go index 781f2a6b1..d370448f0 100644 --- a/libs/cosmos-sdk/x/staking/keeper/historical_info_test.go +++ b/libs/cosmos-sdk/x/staking/keeper/historical_info_test.go @@ -4,10 +4,10 @@ import ( "sort" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/staking/keeper/hooks.go b/libs/cosmos-sdk/x/staking/keeper/hooks.go index 5cb1dc164..2eb974a4b 100644 --- a/libs/cosmos-sdk/x/staking/keeper/hooks.go +++ b/libs/cosmos-sdk/x/staking/keeper/hooks.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // Implements StakingHooks interface diff --git a/libs/cosmos-sdk/x/staking/keeper/invariants.go b/libs/cosmos-sdk/x/staking/keeper/invariants.go index ffdce2e45..0dcac522b 100644 --- a/libs/cosmos-sdk/x/staking/keeper/invariants.go +++ b/libs/cosmos-sdk/x/staking/keeper/invariants.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // RegisterInvariants registers all staking invariants diff --git a/libs/cosmos-sdk/x/staking/keeper/keeper.go b/libs/cosmos-sdk/x/staking/keeper/keeper.go index 49572e8dc..5c02f4a04 100644 --- a/libs/cosmos-sdk/x/staking/keeper/keeper.go +++ b/libs/cosmos-sdk/x/staking/keeper/keeper.go @@ -4,12 +4,12 @@ import ( "container/list" "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) const aminoCacheSize = 500 diff --git a/libs/cosmos-sdk/x/staking/keeper/keeper_test.go b/libs/cosmos-sdk/x/staking/keeper/keeper_test.go index a483b6a3f..b25b17bbc 100644 --- a/libs/cosmos-sdk/x/staking/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/staking/keeper/keeper_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) func TestParams(t *testing.T) { diff --git a/libs/cosmos-sdk/x/staking/keeper/params.go b/libs/cosmos-sdk/x/staking/keeper/params.go index 6fa6aa98f..c69f34cfc 100644 --- a/libs/cosmos-sdk/x/staking/keeper/params.go +++ b/libs/cosmos-sdk/x/staking/keeper/params.go @@ -3,9 +3,9 @@ package keeper import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // Default parameter namespace diff --git a/libs/cosmos-sdk/x/staking/keeper/pool.go b/libs/cosmos-sdk/x/staking/keeper/pool.go index 815bdd99b..a1746f506 100644 --- a/libs/cosmos-sdk/x/staking/keeper/pool.go +++ b/libs/cosmos-sdk/x/staking/keeper/pool.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // GetBondedPool returns the bonded tokens pool's module account diff --git a/libs/cosmos-sdk/x/staking/keeper/querier.go b/libs/cosmos-sdk/x/staking/keeper/querier.go index dd65a78fa..e7a597402 100644 --- a/libs/cosmos-sdk/x/staking/keeper/querier.go +++ b/libs/cosmos-sdk/x/staking/keeper/querier.go @@ -4,13 +4,13 @@ import ( "errors" "strings" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // creates a querier for staking REST endpoints diff --git a/libs/cosmos-sdk/x/staking/keeper/querier_test.go b/libs/cosmos-sdk/x/staking/keeper/querier_test.go index 9ba8a6379..b20c315da 100644 --- a/libs/cosmos-sdk/x/staking/keeper/querier_test.go +++ b/libs/cosmos-sdk/x/staking/keeper/querier_test.go @@ -4,12 +4,12 @@ import ( "fmt" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) var ( diff --git a/libs/cosmos-sdk/x/staking/keeper/query_utils.go b/libs/cosmos-sdk/x/staking/keeper/query_utils.go index 6366bcecc..2d7e6849b 100644 --- a/libs/cosmos-sdk/x/staking/keeper/query_utils.go +++ b/libs/cosmos-sdk/x/staking/keeper/query_utils.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // Return all validators that a delegator is bonded to. If maxRetrieve is supplied, the respective amount will be returned. diff --git a/libs/cosmos-sdk/x/staking/keeper/slash.go b/libs/cosmos-sdk/x/staking/keeper/slash.go index 0a34d1810..2952777b7 100644 --- a/libs/cosmos-sdk/x/staking/keeper/slash.go +++ b/libs/cosmos-sdk/x/staking/keeper/slash.go @@ -3,8 +3,8 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - types "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + types "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // Slash a validator for an infraction committed at a known height diff --git a/libs/cosmos-sdk/x/staking/keeper/slash_test.go b/libs/cosmos-sdk/x/staking/keeper/slash_test.go index 674889d20..9500e052e 100644 --- a/libs/cosmos-sdk/x/staking/keeper/slash_test.go +++ b/libs/cosmos-sdk/x/staking/keeper/slash_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // TODO integrate with test_common.go helper (CreateTestInput) diff --git a/libs/cosmos-sdk/x/staking/keeper/test_common.go b/libs/cosmos-sdk/x/staking/keeper/test_common.go index 0eca7b287..e819b71a7 100644 --- a/libs/cosmos-sdk/x/staking/keeper/test_common.go +++ b/libs/cosmos-sdk/x/staking/keeper/test_common.go @@ -9,22 +9,22 @@ import ( "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" ) // dummy addresses used for testing diff --git a/libs/cosmos-sdk/x/staking/keeper/val_state_change.go b/libs/cosmos-sdk/x/staking/keeper/val_state_change.go index 4ce412e2a..f19233d3c 100644 --- a/libs/cosmos-sdk/x/staking/keeper/val_state_change.go +++ b/libs/cosmos-sdk/x/staking/keeper/val_state_change.go @@ -5,10 +5,10 @@ import ( "fmt" "sort" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // Calculate the ValidatorUpdates for the current block diff --git a/libs/cosmos-sdk/x/staking/keeper/validator.go b/libs/cosmos-sdk/x/staking/keeper/validator.go index b156efda8..249f88f46 100644 --- a/libs/cosmos-sdk/x/staking/keeper/validator.go +++ b/libs/cosmos-sdk/x/staking/keeper/validator.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // Cache the amino decoding of validators, as it can be the case that repeated slashing calls diff --git a/libs/cosmos-sdk/x/staking/keeper/validator_test.go b/libs/cosmos-sdk/x/staking/keeper/validator_test.go index f9c7564f7..68ad30b54 100644 --- a/libs/cosmos-sdk/x/staking/keeper/validator_test.go +++ b/libs/cosmos-sdk/x/staking/keeper/validator_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/libs/cosmos-sdk/x/staking/legacy/v0_34/types.go b/libs/cosmos-sdk/x/staking/legacy/v0_34/types.go index ee3be74c7..d06fffe6d 100644 --- a/libs/cosmos-sdk/x/staking/legacy/v0_34/types.go +++ b/libs/cosmos-sdk/x/staking/legacy/v0_34/types.go @@ -5,10 +5,10 @@ package v0_34 import ( "time" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/staking/legacy/v0_36/migrate.go b/libs/cosmos-sdk/x/staking/legacy/v0_36/migrate.go index 5377f9f43..2267cc67b 100644 --- a/libs/cosmos-sdk/x/staking/legacy/v0_36/migrate.go +++ b/libs/cosmos-sdk/x/staking/legacy/v0_36/migrate.go @@ -3,7 +3,7 @@ package v0_36 import ( - v034staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_34" + v034staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_34" ) // Migrate accepts exported genesis state from v0.34 and migrates it to v0.36 diff --git a/libs/cosmos-sdk/x/staking/legacy/v0_36/types.go b/libs/cosmos-sdk/x/staking/legacy/v0_36/types.go index 04081fcdc..84d26d0e7 100644 --- a/libs/cosmos-sdk/x/staking/legacy/v0_36/types.go +++ b/libs/cosmos-sdk/x/staking/legacy/v0_36/types.go @@ -5,11 +5,11 @@ package v0_36 import ( "time" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_34" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + v034staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_34" ) const ( diff --git a/libs/cosmos-sdk/x/staking/legacy/v0_38/migrate.go b/libs/cosmos-sdk/x/staking/legacy/v0_38/migrate.go index fa7c39d80..c795d8af5 100644 --- a/libs/cosmos-sdk/x/staking/legacy/v0_38/migrate.go +++ b/libs/cosmos-sdk/x/staking/legacy/v0_38/migrate.go @@ -3,7 +3,7 @@ package v0_38 import ( - v036staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_36" + v036staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_36" ) // Migrate accepts exported genesis state from v0.36 or v0.37 and migrates it to diff --git a/libs/cosmos-sdk/x/staking/legacy/v0_38/types.go b/libs/cosmos-sdk/x/staking/legacy/v0_38/types.go index 7f79baade..f8f41dc44 100644 --- a/libs/cosmos-sdk/x/staking/legacy/v0_38/types.go +++ b/libs/cosmos-sdk/x/staking/legacy/v0_38/types.go @@ -5,12 +5,12 @@ package v0_38 import ( "time" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - v034staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_34" - v036staking "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/legacy/v0_36" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + v034staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_34" + v036staking "github.com/okx/brczero/libs/cosmos-sdk/x/staking/legacy/v0_36" ) const ( diff --git a/libs/cosmos-sdk/x/staking/module.go b/libs/cosmos-sdk/x/staking/module.go index 00b362b6c..4a9cc1ca6 100644 --- a/libs/cosmos-sdk/x/staking/module.go +++ b/libs/cosmos-sdk/x/staking/module.go @@ -9,20 +9,20 @@ import ( "github.com/spf13/cobra" flag "github.com/spf13/pflag" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/client/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) var ( diff --git a/libs/cosmos-sdk/x/staking/simulation/decoder.go b/libs/cosmos-sdk/x/staking/simulation/decoder.go index 9cabc6778..091621346 100644 --- a/libs/cosmos-sdk/x/staking/simulation/decoder.go +++ b/libs/cosmos-sdk/x/staking/simulation/decoder.go @@ -4,11 +4,11 @@ import ( "bytes" "fmt" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // DecodeStore unmarshals the KVPair's Value to the corresponding staking type diff --git a/libs/cosmos-sdk/x/staking/simulation/decoder_test.go b/libs/cosmos-sdk/x/staking/simulation/decoder_test.go index bd1e77588..1f3046140 100644 --- a/libs/cosmos-sdk/x/staking/simulation/decoder_test.go +++ b/libs/cosmos-sdk/x/staking/simulation/decoder_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) var ( diff --git a/libs/cosmos-sdk/x/staking/simulation/genesis.go b/libs/cosmos-sdk/x/staking/simulation/genesis.go index bc7a2c699..9f8ba1c28 100644 --- a/libs/cosmos-sdk/x/staking/simulation/genesis.go +++ b/libs/cosmos-sdk/x/staking/simulation/genesis.go @@ -7,12 +7,12 @@ import ( "math/rand" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // Simulation parameter constants diff --git a/libs/cosmos-sdk/x/staking/simulation/operations.go b/libs/cosmos-sdk/x/staking/simulation/operations.go index 94c338c78..3706eec38 100644 --- a/libs/cosmos-sdk/x/staking/simulation/operations.go +++ b/libs/cosmos-sdk/x/staking/simulation/operations.go @@ -4,14 +4,14 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // Simulation operation weights constants diff --git a/libs/cosmos-sdk/x/staking/simulation/params.go b/libs/cosmos-sdk/x/staking/simulation/params.go index 8de63ff43..cb82c1bfc 100644 --- a/libs/cosmos-sdk/x/staking/simulation/params.go +++ b/libs/cosmos-sdk/x/staking/simulation/params.go @@ -6,8 +6,8 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) const ( diff --git a/libs/cosmos-sdk/x/staking/test_common.go b/libs/cosmos-sdk/x/staking/test_common.go index 629383963..c0757f494 100644 --- a/libs/cosmos-sdk/x/staking/test_common.go +++ b/libs/cosmos-sdk/x/staking/test_common.go @@ -1,12 +1,12 @@ package staking import ( - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // nolint:deadcode,unused,varcheck diff --git a/libs/cosmos-sdk/x/staking/types/codec.go b/libs/cosmos-sdk/x/staking/types/codec.go index 3877ecce3..345ef583b 100644 --- a/libs/cosmos-sdk/x/staking/types/codec.go +++ b/libs/cosmos-sdk/x/staking/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // Register concrete types on codec codec diff --git a/libs/cosmos-sdk/x/staking/types/commission.go b/libs/cosmos-sdk/x/staking/types/commission.go index 4a637e8aa..bd91badea 100644 --- a/libs/cosmos-sdk/x/staking/types/commission.go +++ b/libs/cosmos-sdk/x/staking/types/commission.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type ( diff --git a/libs/cosmos-sdk/x/staking/types/commission_test.go b/libs/cosmos-sdk/x/staking/types/commission_test.go index fc9f22298..0104bf4d8 100644 --- a/libs/cosmos-sdk/x/staking/types/commission_test.go +++ b/libs/cosmos-sdk/x/staking/types/commission_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestCommissionValidate(t *testing.T) { diff --git a/libs/cosmos-sdk/x/staking/types/delegation.go b/libs/cosmos-sdk/x/staking/types/delegation.go index 2b365ecc1..dc10eb138 100644 --- a/libs/cosmos-sdk/x/staking/types/delegation.go +++ b/libs/cosmos-sdk/x/staking/types/delegation.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // DVPair is struct that just has a delegator-validator pair with no other data. diff --git a/libs/cosmos-sdk/x/staking/types/delegation_test.go b/libs/cosmos-sdk/x/staking/types/delegation_test.go index 55cc55a48..eb3750146 100644 --- a/libs/cosmos-sdk/x/staking/types/delegation_test.go +++ b/libs/cosmos-sdk/x/staking/types/delegation_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestDelegationEqual(t *testing.T) { diff --git a/libs/cosmos-sdk/x/staking/types/errors.go b/libs/cosmos-sdk/x/staking/types/errors.go index c7c7a894f..ce6f8e217 100644 --- a/libs/cosmos-sdk/x/staking/types/errors.go +++ b/libs/cosmos-sdk/x/staking/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // x/staking module sentinel errors diff --git a/libs/cosmos-sdk/x/staking/types/expected_keepers.go b/libs/cosmos-sdk/x/staking/types/expected_keepers.go index f0bbfda21..c48d2c0ca 100644 --- a/libs/cosmos-sdk/x/staking/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/staking/types/expected_keepers.go @@ -1,10 +1,10 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - stakingexported "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + stakingexported "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // DistributionKeeper expected distribution keeper (noalias) diff --git a/libs/cosmos-sdk/x/staking/types/genesis.go b/libs/cosmos-sdk/x/staking/types/genesis.go index 2594f008b..8eb8c4f03 100644 --- a/libs/cosmos-sdk/x/staking/types/genesis.go +++ b/libs/cosmos-sdk/x/staking/types/genesis.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GenesisState - all staking state that must be provided at genesis diff --git a/libs/cosmos-sdk/x/staking/types/historical_info.go b/libs/cosmos-sdk/x/staking/types/historical_info.go index 78674e44a..58d5903cb 100644 --- a/libs/cosmos-sdk/x/staking/types/historical_info.go +++ b/libs/cosmos-sdk/x/staking/types/historical_info.go @@ -3,10 +3,10 @@ package types import ( "sort" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // HistoricalInfo contains the historical information that gets stored at each height diff --git a/libs/cosmos-sdk/x/staking/types/historical_info_test.go b/libs/cosmos-sdk/x/staking/types/historical_info_test.go index 17753a726..840aea9dc 100644 --- a/libs/cosmos-sdk/x/staking/types/historical_info_test.go +++ b/libs/cosmos-sdk/x/staking/types/historical_info_test.go @@ -5,7 +5,7 @@ import ( "sort" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/staking/types/hooks.go b/libs/cosmos-sdk/x/staking/types/hooks.go index a6aad0931..1fb34ad39 100644 --- a/libs/cosmos-sdk/x/staking/types/hooks.go +++ b/libs/cosmos-sdk/x/staking/types/hooks.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // combine multiple staking hooks, all hook functions are run in array sequence diff --git a/libs/cosmos-sdk/x/staking/types/keys.go b/libs/cosmos-sdk/x/staking/types/keys.go index b2c744358..02fd4c01e 100644 --- a/libs/cosmos-sdk/x/staking/types/keys.go +++ b/libs/cosmos-sdk/x/staking/types/keys.go @@ -5,7 +5,7 @@ import ( "strconv" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/cosmos-sdk/x/staking/types/keys_test.go b/libs/cosmos-sdk/x/staking/types/keys_test.go index 044905daf..b103207ca 100644 --- a/libs/cosmos-sdk/x/staking/types/keys_test.go +++ b/libs/cosmos-sdk/x/staking/types/keys_test.go @@ -5,10 +5,10 @@ import ( "math/big" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/assert" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/libs/cosmos-sdk/x/staking/types/msg.go b/libs/cosmos-sdk/x/staking/types/msg.go index 990315cce..4c0fed8cf 100644 --- a/libs/cosmos-sdk/x/staking/types/msg.go +++ b/libs/cosmos-sdk/x/staking/types/msg.go @@ -4,11 +4,11 @@ import ( "bytes" "encoding/json" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" yaml "gopkg.in/yaml.v2" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // ensure Msg interface compliance at compile time diff --git a/libs/cosmos-sdk/x/staking/types/msg_test.go b/libs/cosmos-sdk/x/staking/types/msg_test.go index f398e3de7..d285742a2 100644 --- a/libs/cosmos-sdk/x/staking/types/msg_test.go +++ b/libs/cosmos-sdk/x/staking/types/msg_test.go @@ -6,10 +6,10 @@ import ( yaml "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/libs/cosmos-sdk/x/staking/types/params.go b/libs/cosmos-sdk/x/staking/types/params.go index 0f58a6986..a032b03dd 100644 --- a/libs/cosmos-sdk/x/staking/types/params.go +++ b/libs/cosmos-sdk/x/staking/types/params.go @@ -7,9 +7,9 @@ import ( "strings" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // Staking params default values diff --git a/libs/cosmos-sdk/x/staking/types/pool.go b/libs/cosmos-sdk/x/staking/types/pool.go index cc6395543..d9aaa3f5a 100644 --- a/libs/cosmos-sdk/x/staking/types/pool.go +++ b/libs/cosmos-sdk/x/staking/types/pool.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // names used as root for pool module accounts: diff --git a/libs/cosmos-sdk/x/staking/types/querier.go b/libs/cosmos-sdk/x/staking/types/querier.go index a3ae3058c..92bbee0f0 100644 --- a/libs/cosmos-sdk/x/staking/types/querier.go +++ b/libs/cosmos-sdk/x/staking/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // query endpoints supported by the staking Querier diff --git a/libs/cosmos-sdk/x/staking/types/test_utils.go b/libs/cosmos-sdk/x/staking/types/test_utils.go index 6d07726ce..b6081731d 100644 --- a/libs/cosmos-sdk/x/staking/types/test_utils.go +++ b/libs/cosmos-sdk/x/staking/types/test_utils.go @@ -1,10 +1,10 @@ package types import ( - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // nolint:deadcode,unused diff --git a/libs/cosmos-sdk/x/staking/types/validator.go b/libs/cosmos-sdk/x/staking/types/validator.go index 30d0ee82b..49167b2c4 100644 --- a/libs/cosmos-sdk/x/staking/types/validator.go +++ b/libs/cosmos-sdk/x/staking/types/validator.go @@ -7,15 +7,15 @@ import ( "strings" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + tmtypes "github.com/okx/brczero/libs/tendermint/types" yaml "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/exported" ) // nolint diff --git a/libs/cosmos-sdk/x/staking/types/validator_test.go b/libs/cosmos-sdk/x/staking/types/validator_test.go index 6013a9e25..56775d971 100644 --- a/libs/cosmos-sdk/x/staking/types/validator_test.go +++ b/libs/cosmos-sdk/x/staking/types/validator_test.go @@ -7,14 +7,14 @@ import ( "sort" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" yaml "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestValidatorTestEquivalent(t *testing.T) { diff --git a/libs/cosmos-sdk/x/supply/alias.go b/libs/cosmos-sdk/x/supply/alias.go index 391e77d86..9c444504a 100644 --- a/libs/cosmos-sdk/x/supply/alias.go +++ b/libs/cosmos-sdk/x/supply/alias.go @@ -6,8 +6,8 @@ package supply import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) const ( diff --git a/libs/cosmos-sdk/x/supply/client/cli/query.go b/libs/cosmos-sdk/x/supply/client/cli/query.go index 4064b737b..e7970b1d0 100644 --- a/libs/cosmos-sdk/x/supply/client/cli/query.go +++ b/libs/cosmos-sdk/x/supply/client/cli/query.go @@ -6,13 +6,13 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/libs/cosmos-sdk/x/supply/client/rest/query.go b/libs/cosmos-sdk/x/supply/client/rest/query.go index 0e4ea6a23..e745e1676 100644 --- a/libs/cosmos-sdk/x/supply/client/rest/query.go +++ b/libs/cosmos-sdk/x/supply/client/rest/query.go @@ -6,9 +6,9 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // RegisterRoutes registers staking-related REST handlers to a router diff --git a/libs/cosmos-sdk/x/supply/exported/exported.go b/libs/cosmos-sdk/x/supply/exported/exported.go index 480ccc0c0..3be64d422 100644 --- a/libs/cosmos-sdk/x/supply/exported/exported.go +++ b/libs/cosmos-sdk/x/supply/exported/exported.go @@ -1,9 +1,9 @@ package exported import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) // ModuleAccountI defines an account interface for modules that hold tokens in an escrow diff --git a/libs/cosmos-sdk/x/supply/genesis.go b/libs/cosmos-sdk/x/supply/genesis.go index 20e019415..3d7e70649 100644 --- a/libs/cosmos-sdk/x/supply/genesis.go +++ b/libs/cosmos-sdk/x/supply/genesis.go @@ -1,9 +1,9 @@ package supply import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // InitGenesis sets supply information for genesis. diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/account.go b/libs/cosmos-sdk/x/supply/internal/keeper/account.go index 6e554ee13..4158e770d 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/account.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/account.go @@ -1,10 +1,10 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // GetModuleAddress returns an address based on the module name diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/adapter.go b/libs/cosmos-sdk/x/supply/internal/keeper/adapter.go index 1e0a6199a..2d8afc267 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/adapter.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/adapter.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) var ( diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/bank.go b/libs/cosmos-sdk/x/supply/internal/keeper/bank.go index 62b8920cf..7c434f491 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/bank.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/bank.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // SendCoinsFromModuleToAccount transfers coins from a ModuleAccount to an AccAddress. diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/bank_test.go b/libs/cosmos-sdk/x/supply/internal/keeper/bank_test.go index 168cfeea8..5aa2f66a0 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/bank_test.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/bank_test.go @@ -3,13 +3,13 @@ package keeper_test import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) const initialPower = int64(100) diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/integration_test.go b/libs/cosmos-sdk/x/supply/internal/keeper/integration_test.go index 5369ac65f..5c39e2408 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/integration_test.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/integration_test.go @@ -1,13 +1,13 @@ package keeper_test import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) var ( diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/invariants.go b/libs/cosmos-sdk/x/supply/internal/keeper/invariants.go index 39e2ce7d4..870dcb5dd 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/invariants.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/invariants.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // RegisterInvariants register all supply invariants diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/keeper.go b/libs/cosmos-sdk/x/supply/internal/keeper/keeper.go index 0f487af3f..a533c4302 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/keeper.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/keeper.go @@ -3,12 +3,12 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // Keeper of the supply store diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/keeper_test.go b/libs/cosmos-sdk/x/supply/internal/keeper/keeper_test.go index 9355b6159..ff16d4ca6 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/keeper_test.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/keeper_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) func TestSupply(t *testing.T) { diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/querier.go b/libs/cosmos-sdk/x/supply/internal/keeper/querier.go index 9a6938991..533b60c8c 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/querier.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/querier.go @@ -1,12 +1,12 @@ package keeper import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // NewQuerier creates a querier for supply REST endpoints diff --git a/libs/cosmos-sdk/x/supply/internal/keeper/querier_test.go b/libs/cosmos-sdk/x/supply/internal/keeper/querier_test.go index 5455aaa67..21fa17d55 100644 --- a/libs/cosmos-sdk/x/supply/internal/keeper/querier_test.go +++ b/libs/cosmos-sdk/x/supply/internal/keeper/querier_test.go @@ -4,12 +4,12 @@ import ( "fmt" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - keep "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + keep "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) func TestNewQuerier(t *testing.T) { diff --git a/libs/cosmos-sdk/x/supply/internal/types/account.go b/libs/cosmos-sdk/x/supply/internal/types/account.go index 44d503406..a0d59bb0c 100644 --- a/libs/cosmos-sdk/x/supply/internal/types/account.go +++ b/libs/cosmos-sdk/x/supply/internal/types/account.go @@ -10,13 +10,13 @@ import ( "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) var ( diff --git a/libs/cosmos-sdk/x/supply/internal/types/account_test.go b/libs/cosmos-sdk/x/supply/internal/types/account_test.go index 59a12cdf1..e38fd3f7c 100644 --- a/libs/cosmos-sdk/x/supply/internal/types/account_test.go +++ b/libs/cosmos-sdk/x/supply/internal/types/account_test.go @@ -9,18 +9,18 @@ import ( "github.com/tendermint/go-amino" - tmcrypto "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/sr25519" + tmcrypto "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/sr25519" yaml "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/supply/internal/types/codec.go b/libs/cosmos-sdk/x/supply/internal/types/codec.go index c35661252..4daa6463f 100644 --- a/libs/cosmos-sdk/x/supply/internal/types/codec.go +++ b/libs/cosmos-sdk/x/supply/internal/types/codec.go @@ -3,8 +3,8 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" "github.com/tendermint/go-amino" ) diff --git a/libs/cosmos-sdk/x/supply/internal/types/errors.go b/libs/cosmos-sdk/x/supply/internal/types/errors.go index b0a93f52f..ac7932b20 100644 --- a/libs/cosmos-sdk/x/supply/internal/types/errors.go +++ b/libs/cosmos-sdk/x/supply/internal/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/libs/cosmos-sdk/x/supply/internal/types/expected_keepers.go b/libs/cosmos-sdk/x/supply/internal/types/expected_keepers.go index af3b5494e..f082cb027 100644 --- a/libs/cosmos-sdk/x/supply/internal/types/expected_keepers.go +++ b/libs/cosmos-sdk/x/supply/internal/types/expected_keepers.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) // AccountKeeper defines the expected account keeper (noalias) diff --git a/libs/cosmos-sdk/x/supply/internal/types/genesis.go b/libs/cosmos-sdk/x/supply/internal/types/genesis.go index ef4c72d87..2dd10934d 100644 --- a/libs/cosmos-sdk/x/supply/internal/types/genesis.go +++ b/libs/cosmos-sdk/x/supply/internal/types/genesis.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GenesisState is the supply state that must be provided at genesis. diff --git a/libs/cosmos-sdk/x/supply/internal/types/permissions.go b/libs/cosmos-sdk/x/supply/internal/types/permissions.go index 118a8b6da..ab299f05b 100644 --- a/libs/cosmos-sdk/x/supply/internal/types/permissions.go +++ b/libs/cosmos-sdk/x/supply/internal/types/permissions.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // permissions diff --git a/libs/cosmos-sdk/x/supply/internal/types/supply.go b/libs/cosmos-sdk/x/supply/internal/types/supply.go index d035ebe7d..05ecd10f3 100644 --- a/libs/cosmos-sdk/x/supply/internal/types/supply.go +++ b/libs/cosmos-sdk/x/supply/internal/types/supply.go @@ -5,8 +5,8 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // Implements Delegation interface diff --git a/libs/cosmos-sdk/x/supply/internal/types/supply_test.go b/libs/cosmos-sdk/x/supply/internal/types/supply_test.go index 5d84e384a..80ac17f38 100644 --- a/libs/cosmos-sdk/x/supply/internal/types/supply_test.go +++ b/libs/cosmos-sdk/x/supply/internal/types/supply_test.go @@ -6,7 +6,7 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/libs/cosmos-sdk/x/supply/legacy/v0_36/types.go b/libs/cosmos-sdk/x/supply/legacy/v0_36/types.go index 26bdc814f..54b8aacb4 100644 --- a/libs/cosmos-sdk/x/supply/legacy/v0_36/types.go +++ b/libs/cosmos-sdk/x/supply/legacy/v0_36/types.go @@ -3,7 +3,7 @@ package v0_36 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ModuleName = "supply" diff --git a/libs/cosmos-sdk/x/supply/module.go b/libs/cosmos-sdk/x/supply/module.go index 6b0777c0f..55c310025 100644 --- a/libs/cosmos-sdk/x/supply/module.go +++ b/libs/cosmos-sdk/x/supply/module.go @@ -8,17 +8,17 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/client/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/simulation" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/simulation" ) var ( diff --git a/libs/cosmos-sdk/x/supply/simulation/decoder.go b/libs/cosmos-sdk/x/supply/simulation/decoder.go index 9a5e14c0d..2298bc7b4 100644 --- a/libs/cosmos-sdk/x/supply/simulation/decoder.go +++ b/libs/cosmos-sdk/x/supply/simulation/decoder.go @@ -4,11 +4,11 @@ import ( "bytes" "fmt" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // DecodeStore unmarshals the KVPair's Value to the corresponding supply type diff --git a/libs/cosmos-sdk/x/supply/simulation/decoder_test.go b/libs/cosmos-sdk/x/supply/simulation/decoder_test.go index 280b398b7..cc62dcc1f 100644 --- a/libs/cosmos-sdk/x/supply/simulation/decoder_test.go +++ b/libs/cosmos-sdk/x/supply/simulation/decoder_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) func makeTestCodec() (cdc *codec.Codec) { diff --git a/libs/cosmos-sdk/x/supply/simulation/genesis.go b/libs/cosmos-sdk/x/supply/simulation/genesis.go index 90ffd0130..e5b72d02a 100644 --- a/libs/cosmos-sdk/x/supply/simulation/genesis.go +++ b/libs/cosmos-sdk/x/supply/simulation/genesis.go @@ -5,11 +5,11 @@ package simulation import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/internal/types" ) // RandomizedGenState generates a random GenesisState for supply diff --git a/libs/cosmos-sdk/x/upgrade/abci.go b/libs/cosmos-sdk/x/upgrade/abci.go index f5e741464..8032f572a 100644 --- a/libs/cosmos-sdk/x/upgrade/abci.go +++ b/libs/cosmos-sdk/x/upgrade/abci.go @@ -3,9 +3,9 @@ package upgrade import ( "fmt" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // BeginBlock will check if there is a scheduled plan and if it is ready to be executed. diff --git a/libs/cosmos-sdk/x/upgrade/abci_test.go b/libs/cosmos-sdk/x/upgrade/abci_test.go index 1aaed966c..f44bf27e2 100644 --- a/libs/cosmos-sdk/x/upgrade/abci_test.go +++ b/libs/cosmos-sdk/x/upgrade/abci_test.go @@ -5,18 +5,18 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" ) type TestSuite struct { diff --git a/libs/cosmos-sdk/x/upgrade/alias.go b/libs/cosmos-sdk/x/upgrade/alias.go index f9f8541e3..713eb8215 100644 --- a/libs/cosmos-sdk/x/upgrade/alias.go +++ b/libs/cosmos-sdk/x/upgrade/alias.go @@ -3,8 +3,8 @@ package upgrade // nolint import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/internal/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/internal/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/internal/types" ) const ( diff --git a/libs/cosmos-sdk/x/upgrade/client/cli/query.go b/libs/cosmos-sdk/x/upgrade/client/cli/query.go index 0d446b617..94a0fc30c 100644 --- a/libs/cosmos-sdk/x/upgrade/client/cli/query.go +++ b/libs/cosmos-sdk/x/upgrade/client/cli/query.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - upgrade "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + upgrade "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/internal/types" ) // GetPlanCmd returns the query upgrade plan command diff --git a/libs/cosmos-sdk/x/upgrade/client/cli/tx.go b/libs/cosmos-sdk/x/upgrade/client/cli/tx.go index 02ae90f9d..bafe53e40 100644 --- a/libs/cosmos-sdk/x/upgrade/client/cli/tx.go +++ b/libs/cosmos-sdk/x/upgrade/client/cli/tx.go @@ -5,17 +5,17 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/cli" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov" - upgrade "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov" + upgrade "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/internal/types" ) const ( diff --git a/libs/cosmos-sdk/x/upgrade/client/proposal_handler.go b/libs/cosmos-sdk/x/upgrade/client/proposal_handler.go index 63f64e42e..dd8da2438 100644 --- a/libs/cosmos-sdk/x/upgrade/client/proposal_handler.go +++ b/libs/cosmos-sdk/x/upgrade/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - govclient "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/client/rest" + govclient "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/client/rest" ) var ProposalHandler = govclient.NewProposalHandler(cli.GetCmdSubmitUpgradeProposal, rest.ProposalRESTHandler) diff --git a/libs/cosmos-sdk/x/upgrade/client/rest/query.go b/libs/cosmos-sdk/x/upgrade/client/rest/query.go index a096d6972..00e8226a8 100644 --- a/libs/cosmos-sdk/x/upgrade/client/rest/query.go +++ b/libs/cosmos-sdk/x/upgrade/client/rest/query.go @@ -7,9 +7,9 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - upgrade "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + upgrade "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/internal/types" ) // RegisterRoutes registers REST routes for the upgrade module under the path specified by routeName. diff --git a/libs/cosmos-sdk/x/upgrade/client/rest/tx.go b/libs/cosmos-sdk/x/upgrade/client/rest/tx.go index f665b2dbe..0520387c4 100644 --- a/libs/cosmos-sdk/x/upgrade/client/rest/tx.go +++ b/libs/cosmos-sdk/x/upgrade/client/rest/tx.go @@ -6,14 +6,14 @@ import ( "github.com/gorilla/mux" - govrest "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/rest" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/internal/types" + govrest "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/rest" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/internal/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/libs/cosmos-sdk/x/upgrade/handler.go b/libs/cosmos-sdk/x/upgrade/handler.go index 5ffd0288f..013c432c3 100644 --- a/libs/cosmos-sdk/x/upgrade/handler.go +++ b/libs/cosmos-sdk/x/upgrade/handler.go @@ -1,9 +1,9 @@ package upgrade import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" ) // NewSoftwareUpgradeProposalHandler creates a governance handler to manage new proposal types. diff --git a/libs/cosmos-sdk/x/upgrade/internal/keeper/keeper.go b/libs/cosmos-sdk/x/upgrade/internal/keeper/keeper.go index 547083c90..38e3c1ccf 100644 --- a/libs/cosmos-sdk/x/upgrade/internal/keeper/keeper.go +++ b/libs/cosmos-sdk/x/upgrade/internal/keeper/keeper.go @@ -4,13 +4,13 @@ import ( "encoding/binary" "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/internal/types" ) type Keeper struct { diff --git a/libs/cosmos-sdk/x/upgrade/internal/keeper/keeper_ibc.go b/libs/cosmos-sdk/x/upgrade/internal/keeper/keeper_ibc.go index 72bd90af2..0b285bc59 100644 --- a/libs/cosmos-sdk/x/upgrade/internal/keeper/keeper_ibc.go +++ b/libs/cosmos-sdk/x/upgrade/internal/keeper/keeper_ibc.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/internal/types" ) // GetUpgradedConsensusState set the expected upgraded consensus state for the next version of this chain diff --git a/libs/cosmos-sdk/x/upgrade/internal/keeper/querier.go b/libs/cosmos-sdk/x/upgrade/internal/keeper/querier.go index ebd82452b..e93a7c782 100644 --- a/libs/cosmos-sdk/x/upgrade/internal/keeper/querier.go +++ b/libs/cosmos-sdk/x/upgrade/internal/keeper/querier.go @@ -3,11 +3,11 @@ package keeper import ( "encoding/binary" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/internal/types" ) // NewQuerier creates a querier for upgrade cli and REST endpoints diff --git a/libs/cosmos-sdk/x/upgrade/internal/types/codec.go b/libs/cosmos-sdk/x/upgrade/internal/types/codec.go index f1c30b906..108a4b4cd 100644 --- a/libs/cosmos-sdk/x/upgrade/internal/types/codec.go +++ b/libs/cosmos-sdk/x/upgrade/internal/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // RegisterCodec registers concrete types on the Amino codec diff --git a/libs/cosmos-sdk/x/upgrade/internal/types/handler.go b/libs/cosmos-sdk/x/upgrade/internal/types/handler.go index c21862ac1..5adf04f1d 100644 --- a/libs/cosmos-sdk/x/upgrade/internal/types/handler.go +++ b/libs/cosmos-sdk/x/upgrade/internal/types/handler.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // UpgradeHandler specifies the type of function that is called when an upgrade is applied diff --git a/libs/cosmos-sdk/x/upgrade/internal/types/plan.go b/libs/cosmos-sdk/x/upgrade/internal/types/plan.go index 2050a7adf..ac0c1f3ff 100644 --- a/libs/cosmos-sdk/x/upgrade/internal/types/plan.go +++ b/libs/cosmos-sdk/x/upgrade/internal/types/plan.go @@ -5,8 +5,8 @@ import ( "strings" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // Plan specifies information about a planned upgrade and when it should occur diff --git a/libs/cosmos-sdk/x/upgrade/internal/types/plan_test.go b/libs/cosmos-sdk/x/upgrade/internal/types/plan_test.go index 9a29de791..9926cc609 100644 --- a/libs/cosmos-sdk/x/upgrade/internal/types/plan_test.go +++ b/libs/cosmos-sdk/x/upgrade/internal/types/plan_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func mustParseTime(s string) time.Time { diff --git a/libs/cosmos-sdk/x/upgrade/internal/types/proposal.go b/libs/cosmos-sdk/x/upgrade/internal/types/proposal.go index b7b1bdd85..def704da5 100644 --- a/libs/cosmos-sdk/x/upgrade/internal/types/proposal.go +++ b/libs/cosmos-sdk/x/upgrade/internal/types/proposal.go @@ -3,7 +3,7 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov" ) const ( diff --git a/libs/cosmos-sdk/x/upgrade/internal/types/proposal_test.go b/libs/cosmos-sdk/x/upgrade/internal/types/proposal_test.go index 321d2be0b..96861701d 100644 --- a/libs/cosmos-sdk/x/upgrade/internal/types/proposal_test.go +++ b/libs/cosmos-sdk/x/upgrade/internal/types/proposal_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov" ) type ProposalWrapper struct { diff --git a/libs/cosmos-sdk/x/upgrade/module.go b/libs/cosmos-sdk/x/upgrade/module.go index 05d02fcd1..b053f2273 100644 --- a/libs/cosmos-sdk/x/upgrade/module.go +++ b/libs/cosmos-sdk/x/upgrade/module.go @@ -5,15 +5,15 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/client/cli" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/client/rest" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/client/rest" ) // module codec diff --git a/libs/cosmos-sdk/x/upgrade/typesadapter/plan.go b/libs/cosmos-sdk/x/upgrade/typesadapter/plan.go index a5c0699ea..a77698d8c 100644 --- a/libs/cosmos-sdk/x/upgrade/typesadapter/plan.go +++ b/libs/cosmos-sdk/x/upgrade/typesadapter/plan.go @@ -2,8 +2,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) func (p Plan) String() string { diff --git a/libs/cosmos-sdk/x/upgrade/typesadapter/plan.pb.go b/libs/cosmos-sdk/x/upgrade/typesadapter/plan.pb.go index 389f2e97a..709a4b8b5 100644 --- a/libs/cosmos-sdk/x/upgrade/typesadapter/plan.pb.go +++ b/libs/cosmos-sdk/x/upgrade/typesadapter/plan.pb.go @@ -8,7 +8,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" _ "google.golang.org/protobuf/types/known/timestamppb" io "io" math "math" diff --git a/libs/iavl/basic_test.go b/libs/iavl/basic_test.go index 58ce6ce36..d9d21006d 100644 --- a/libs/iavl/basic_test.go +++ b/libs/iavl/basic_test.go @@ -7,7 +7,7 @@ import ( "sort" "testing" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/benchmarks/bench_test.go b/libs/iavl/benchmarks/bench_test.go index 056bbb35d..656db2e72 100644 --- a/libs/iavl/benchmarks/bench_test.go +++ b/libs/iavl/benchmarks/bench_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/iavl" - db "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/iavl" + db "github.com/okx/brczero/libs/tm-db" ) const historySize = 20 diff --git a/libs/iavl/benchmarks/cosmos-exim/main.go b/libs/iavl/benchmarks/cosmos-exim/main.go index d9ba0571b..81a6be119 100644 --- a/libs/iavl/benchmarks/cosmos-exim/main.go +++ b/libs/iavl/benchmarks/cosmos-exim/main.go @@ -6,8 +6,8 @@ import ( "os" "time" - "github.com/okx/okbchain/libs/iavl" - tmdb "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/iavl" + tmdb "github.com/okx/brczero/libs/tm-db" ) // stores is the list of stores in the CosmosHub database diff --git a/libs/iavl/benchmarks/hash_test.go b/libs/iavl/benchmarks/hash_test.go index 85261d0b9..cfff0c305 100644 --- a/libs/iavl/benchmarks/hash_test.go +++ b/libs/iavl/benchmarks/hash_test.go @@ -7,7 +7,7 @@ import ( "hash" "testing" - "github.com/okx/okbchain/libs/iavl" + "github.com/okx/brczero/libs/iavl" _ "crypto/sha256" diff --git a/libs/iavl/cmd/iaviewer/main.go b/libs/iavl/cmd/iaviewer/main.go index e5c5ebfc5..0480398e1 100644 --- a/libs/iavl/cmd/iaviewer/main.go +++ b/libs/iavl/cmd/iaviewer/main.go @@ -9,8 +9,8 @@ import ( "strconv" "strings" - "github.com/okx/okbchain/libs/iavl" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/iavl" + dbm "github.com/okx/brczero/libs/tm-db" ) // TODO: make this configurable? diff --git a/libs/iavl/doc.go b/libs/iavl/doc.go index 592862612..8c7b48c2c 100644 --- a/libs/iavl/doc.go +++ b/libs/iavl/doc.go @@ -9,8 +9,8 @@ // // Basic usage of MutableTree: // -// import "github.com/okx/okbchain/libs/iavl" -// import "github.com/okx/okbchain/libs/tm-db" +// import "github.com/okx/brczero/libs/iavl" +// import "github.com/okx/brczero/libs/tm-db" // ... // // tree := iavl.NewMutableTree(db.NewMemDB(), 128) diff --git a/libs/iavl/fast_iterator.go b/libs/iavl/fast_iterator.go index 1bd0ed45f..f6f7dd27b 100644 --- a/libs/iavl/fast_iterator.go +++ b/libs/iavl/fast_iterator.go @@ -3,7 +3,7 @@ package iavl import ( "errors" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) var errFastIteratorNilNdbGiven = errors.New("fast iterator must be created with a nodedb but it was nil") diff --git a/libs/iavl/fast_iterator_okc.go b/libs/iavl/fast_iterator_okc.go index 7ef2fdc3e..bb1b98b8c 100644 --- a/libs/iavl/fast_iterator_okc.go +++ b/libs/iavl/fast_iterator_okc.go @@ -1,6 +1,6 @@ package iavl -import dbm "github.com/okx/okbchain/libs/tm-db" +import dbm "github.com/okx/brczero/libs/tm-db" type FastIteratorWithCache struct { *UnsavedFastIterator diff --git a/libs/iavl/immutable_tree.go b/libs/iavl/immutable_tree.go index 56d6e9f42..0a35045a0 100644 --- a/libs/iavl/immutable_tree.go +++ b/libs/iavl/immutable_tree.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) // ImmutableTree contains the immutable tree at a given version. It is typically created by calling diff --git a/libs/iavl/import.go b/libs/iavl/import.go index 1a05983e8..2d3c7ba33 100644 --- a/libs/iavl/import.go +++ b/libs/iavl/import.go @@ -5,7 +5,7 @@ import ( "github.com/pkg/errors" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" ) // maxBatchSize is the maximum size of the import batch before flushing it to the database diff --git a/libs/iavl/import_test.go b/libs/iavl/import_test.go index 0b1fc470b..67e1a750d 100644 --- a/libs/iavl/import_test.go +++ b/libs/iavl/import_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" ) func ExampleImporter() { diff --git a/libs/iavl/iterator.go b/libs/iavl/iterator.go index d2501a1f1..5072126ae 100644 --- a/libs/iavl/iterator.go +++ b/libs/iavl/iterator.go @@ -6,7 +6,7 @@ package iavl import ( "errors" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) var errIteratorNilTreeGiven = errors.New("iterator must be created with an immutable tree but the tree was nil") diff --git a/libs/iavl/iterator_test.go b/libs/iavl/iterator_test.go index 40b7c9927..cb1e98599 100644 --- a/libs/iavl/iterator_test.go +++ b/libs/iavl/iterator_test.go @@ -5,7 +5,7 @@ import ( "sort" "testing" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/mock/db_mock.go b/libs/iavl/mock/db_mock.go index 02dcc28b7..0a93bb371 100644 --- a/libs/iavl/mock/db_mock.go +++ b/libs/iavl/mock/db_mock.go @@ -8,7 +8,7 @@ import ( reflect "reflect" gomock "github.com/golang/mock/gomock" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" ) // MockDB is a mock of DB interface. diff --git a/libs/iavl/mutable_tree.go b/libs/iavl/mutable_tree.go index 53d055b4d..dea396a7d 100644 --- a/libs/iavl/mutable_tree.go +++ b/libs/iavl/mutable_tree.go @@ -10,7 +10,7 @@ import ( "github.com/tendermint/go-amino" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/pkg/errors" ) diff --git a/libs/iavl/mutable_tree_brenchmark_test.go b/libs/iavl/mutable_tree_brenchmark_test.go index f550ccd4c..02e629e1b 100644 --- a/libs/iavl/mutable_tree_brenchmark_test.go +++ b/libs/iavl/mutable_tree_brenchmark_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/mutable_tree_oec.go b/libs/iavl/mutable_tree_oec.go index ea352b77d..fee05d33a 100644 --- a/libs/iavl/mutable_tree_oec.go +++ b/libs/iavl/mutable_tree_oec.go @@ -6,10 +6,10 @@ import ( "sort" "sync" - "github.com/okx/okbchain/libs/iavl/config" + "github.com/okx/brczero/libs/iavl/config" - "github.com/okx/okbchain/libs/system/trace" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/system/trace" + dbm "github.com/okx/brczero/libs/tm-db" ) const ( diff --git a/libs/iavl/mutable_tree_oec_test.go b/libs/iavl/mutable_tree_oec_test.go index dd7fc4b6f..497afcde4 100644 --- a/libs/iavl/mutable_tree_oec_test.go +++ b/libs/iavl/mutable_tree_oec_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/mutable_tree_test.go b/libs/iavl/mutable_tree_test.go index 9f568a854..ee6381829 100644 --- a/libs/iavl/mutable_tree_test.go +++ b/libs/iavl/mutable_tree_test.go @@ -11,9 +11,9 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/okx/okbchain/libs/iavl/mock" - "github.com/okx/okbchain/libs/tendermint/libs/rand" - db "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/iavl/mock" + "github.com/okx/brczero/libs/tendermint/libs/rand" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" diff --git a/libs/iavl/node.go b/libs/iavl/node.go index 31437f7d1..d7bf27bed 100644 --- a/libs/iavl/node.go +++ b/libs/iavl/node.go @@ -11,7 +11,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" amino "github.com/tendermint/go-amino" ) diff --git a/libs/iavl/node_ibc_adapter.go b/libs/iavl/node_ibc_adapter.go index 012aa170d..c21559ef3 100644 --- a/libs/iavl/node_ibc_adapter.go +++ b/libs/iavl/node_ibc_adapter.go @@ -2,7 +2,7 @@ package iavl import ( "bytes" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) type traversal struct { diff --git a/libs/iavl/nodedb.go b/libs/iavl/nodedb.go index d3a4eac5a..c830c5be1 100644 --- a/libs/iavl/nodedb.go +++ b/libs/iavl/nodedb.go @@ -9,8 +9,8 @@ import ( "strings" "sync" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + dbm "github.com/okx/brczero/libs/tm-db" cmap "github.com/orcaman/concurrent-map" "github.com/pkg/errors" "github.com/tendermint/go-amino" diff --git a/libs/iavl/nodedb_cache.go b/libs/iavl/nodedb_cache.go index 2ac20ec17..9b4b7de38 100644 --- a/libs/iavl/nodedb_cache.go +++ b/libs/iavl/nodedb_cache.go @@ -4,7 +4,7 @@ import ( "container/list" "sync" - "github.com/okx/okbchain/libs/iavl/config" + "github.com/okx/brczero/libs/iavl/config" "github.com/tendermint/go-amino" ) diff --git a/libs/iavl/nodedb_oec.go b/libs/iavl/nodedb_oec.go index 79f1594e4..a794a63a6 100644 --- a/libs/iavl/nodedb_oec.go +++ b/libs/iavl/nodedb_oec.go @@ -11,8 +11,8 @@ import ( "time" "github.com/go-errors/errors" - "github.com/okx/okbchain/libs/system/trace" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/system/trace" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/tendermint/go-amino" ) diff --git a/libs/iavl/nodedb_oec_test.go b/libs/iavl/nodedb_oec_test.go index 5dc903822..a115d0d9a 100644 --- a/libs/iavl/nodedb_oec_test.go +++ b/libs/iavl/nodedb_oec_test.go @@ -6,7 +6,7 @@ import ( "math/rand" "testing" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/nodedb_statistics.go b/libs/iavl/nodedb_statistics.go index 984e205e6..8fe554b15 100644 --- a/libs/iavl/nodedb_statistics.go +++ b/libs/iavl/nodedb_statistics.go @@ -2,7 +2,7 @@ package iavl import ( "fmt" - "github.com/okx/okbchain/libs/system/trace" + "github.com/okx/brczero/libs/system/trace" "sync/atomic" ) diff --git a/libs/iavl/nodedb_test.go b/libs/iavl/nodedb_test.go index a7fc646eb..6856172cd 100644 --- a/libs/iavl/nodedb_test.go +++ b/libs/iavl/nodedb_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/okx/okbchain/libs/iavl/mock" - db "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/iavl/mock" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/nodedb_version.go b/libs/iavl/nodedb_version.go index 77f5e7b04..ce44ab8f9 100644 --- a/libs/iavl/nodedb_version.go +++ b/libs/iavl/nodedb_version.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) // IsFastStorageStrategy check the db is FSS diff --git a/libs/iavl/nodedb_version_test.go b/libs/iavl/nodedb_version_test.go index d11a66f87..b4ad06aed 100644 --- a/libs/iavl/nodedb_version_test.go +++ b/libs/iavl/nodedb_version_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/golang/mock/gomock" - "github.com/okx/okbchain/libs/iavl/mock" + "github.com/okx/brczero/libs/iavl/mock" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/proof.go b/libs/iavl/proof.go index eb07c8cd6..296d10d0e 100644 --- a/libs/iavl/proof.go +++ b/libs/iavl/proof.go @@ -6,8 +6,8 @@ import ( "github.com/pkg/errors" - cmn "github.com/okx/okbchain/libs/iavl/common" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + cmn "github.com/okx/brczero/libs/iavl/common" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" amino "github.com/tendermint/go-amino" ) diff --git a/libs/iavl/proof_forgery_test.go b/libs/iavl/proof_forgery_test.go index 9908f1651..d4823e0ad 100644 --- a/libs/iavl/proof_forgery_test.go +++ b/libs/iavl/proof_forgery_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - db "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/proof_iavl_absence.go b/libs/iavl/proof_iavl_absence.go index fcdd5115f..0d2d6f0b3 100644 --- a/libs/iavl/proof_iavl_absence.go +++ b/libs/iavl/proof_iavl_absence.go @@ -5,7 +5,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) const ProofOpIAVLAbsence = "iavl:a" diff --git a/libs/iavl/proof_iavl_value.go b/libs/iavl/proof_iavl_value.go index 2898e6192..d59f9fb9d 100644 --- a/libs/iavl/proof_iavl_value.go +++ b/libs/iavl/proof_iavl_value.go @@ -5,7 +5,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) const ProofOpIAVLValue = "iavl:v" diff --git a/libs/iavl/proof_range.go b/libs/iavl/proof_range.go index b091aa1c1..68ef7d32b 100644 --- a/libs/iavl/proof_range.go +++ b/libs/iavl/proof_range.go @@ -8,7 +8,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) type RangeProof struct { diff --git a/libs/iavl/proof_test.go b/libs/iavl/proof_test.go index 5c028db80..29ea2b081 100644 --- a/libs/iavl/proof_test.go +++ b/libs/iavl/proof_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - cmn "github.com/okx/okbchain/libs/iavl/common" + cmn "github.com/okx/brczero/libs/iavl/common" amino "github.com/tendermint/go-amino" ) diff --git a/libs/iavl/repair.go b/libs/iavl/repair.go index 508fa4dca..8a22c764a 100644 --- a/libs/iavl/repair.go +++ b/libs/iavl/repair.go @@ -3,7 +3,7 @@ package iavl import ( "math" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/pkg/errors" ) diff --git a/libs/iavl/repair_test.go b/libs/iavl/repair_test.go index aead7b9be..f071a8651 100644 --- a/libs/iavl/repair_test.go +++ b/libs/iavl/repair_test.go @@ -8,7 +8,7 @@ import ( "path/filepath" "testing" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/testutils_test.go b/libs/iavl/testutils_test.go index d5785cbc4..b0f7a2dc3 100644 --- a/libs/iavl/testutils_test.go +++ b/libs/iavl/testutils_test.go @@ -10,9 +10,9 @@ import ( mrand "math/rand" - cmn "github.com/okx/okbchain/libs/iavl/common" - "github.com/okx/okbchain/libs/tendermint/libs/rand" - db "github.com/okx/okbchain/libs/tm-db" + cmn "github.com/okx/brczero/libs/iavl/common" + "github.com/okx/brczero/libs/tendermint/libs/rand" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" amino "github.com/tendermint/go-amino" ) diff --git a/libs/iavl/tree_fuzz_test.go b/libs/iavl/tree_fuzz_test.go index 1a41ff40f..92284e4bc 100644 --- a/libs/iavl/tree_fuzz_test.go +++ b/libs/iavl/tree_fuzz_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - cmn "github.com/okx/okbchain/libs/iavl/common" + cmn "github.com/okx/brczero/libs/iavl/common" ) // This file implement fuzz testing by generating programs and then running diff --git a/libs/iavl/tree_random_test.go b/libs/iavl/tree_random_test.go index 5ee3c8e9e..78502b725 100644 --- a/libs/iavl/tree_random_test.go +++ b/libs/iavl/tree_random_test.go @@ -13,7 +13,7 @@ import ( "github.com/stretchr/testify/require" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" ) func TestRandomOperations(t *testing.T) { diff --git a/libs/iavl/tree_test.go b/libs/iavl/tree_test.go index 3fa39d3a5..1e78e79f9 100644 --- a/libs/iavl/tree_test.go +++ b/libs/iavl/tree_test.go @@ -10,9 +10,9 @@ import ( "strconv" "testing" - cmn "github.com/okx/okbchain/libs/iavl/common" - "github.com/okx/okbchain/libs/tendermint/libs/rand" - db "github.com/okx/okbchain/libs/tm-db" + cmn "github.com/okx/brczero/libs/iavl/common" + "github.com/okx/brczero/libs/tendermint/libs/rand" + db "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/libs/iavl/unsaved_fast_iterator.go b/libs/iavl/unsaved_fast_iterator.go index 55318f89d..bfa5d8142 100644 --- a/libs/iavl/unsaved_fast_iterator.go +++ b/libs/iavl/unsaved_fast_iterator.go @@ -5,7 +5,7 @@ import ( "errors" "sort" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) var ( diff --git a/libs/iavl/unsaved_fast_iterator_okc.go b/libs/iavl/unsaved_fast_iterator_okc.go index 7fc61bf84..07895a517 100644 --- a/libs/iavl/unsaved_fast_iterator_okc.go +++ b/libs/iavl/unsaved_fast_iterator_okc.go @@ -1,6 +1,6 @@ package iavl -import dbm "github.com/okx/okbchain/libs/tm-db" +import dbm "github.com/okx/brczero/libs/tm-db" type UnsavedFastIteratorWithCache struct { *UnsavedFastIterator diff --git a/libs/iavl/util.go b/libs/iavl/util.go index 247f2eb82..aa9e6a1c4 100644 --- a/libs/iavl/util.go +++ b/libs/iavl/util.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) // PrintTree prints the whole tree in an indented form. diff --git a/libs/iavl/with_gcc_test.go b/libs/iavl/with_gcc_test.go index 0c24eb0b6..853894863 100644 --- a/libs/iavl/with_gcc_test.go +++ b/libs/iavl/with_gcc_test.go @@ -10,7 +10,7 @@ package iavl import ( "testing" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" ) func BenchmarkImmutableAvlTreeCLevelDB(b *testing.B) { diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/alias.go b/libs/ibc-go/modules/apps/27-interchain-accounts/alias.go index 16adeded9..c040afbe8 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/alias.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/alias.go @@ -1,6 +1,6 @@ package ica -import "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" +import "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" var ( ModuleCdc = types.ModuleCdc diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/client/cli/cli.go b/libs/ibc-go/modules/apps/27-interchain-accounts/client/cli/cli.go index e899e9519..2a86f4144 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/client/cli/cli.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/client/cli/cli.go @@ -1,10 +1,10 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - controllercli "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli" - hostcli "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + controllercli "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli" + hostcli "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli/cli.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli/cli.go index 9bdde6cdb..3676e5c48 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli/cli.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli/cli.go @@ -1,8 +1,8 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli/query.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli/query.go index 9ebf02a46..a1c02077c 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli/query.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/client/cli/query.go @@ -3,13 +3,13 @@ package cli import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/ibc_middleware.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/ibc_middleware.go index 77a6643ec..ae9a91ab3 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/ibc_middleware.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/ibc_middleware.go @@ -1,15 +1,15 @@ package controller import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var _ porttypes.Middleware = &IBCMiddleware{} diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/ibc_middleware_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/ibc_middleware_test.go index ebc3e657a..d407633a2 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/ibc_middleware_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/ibc_middleware_test.go @@ -4,19 +4,19 @@ import ( "fmt" "testing" - types2 "github.com/okx/okbchain/libs/tendermint/types" - - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - fee "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/tendermint/crypto" + types2 "github.com/okx/brczero/libs/tendermint/types" + + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + fee "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/suite" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/account.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/account.go index b58bc3d95..fba31d999 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/account.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/account.go @@ -1,11 +1,11 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // RegisterInterchainAccount is the entry point to registering an interchain account: diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/account_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/account_test.go index 2885e0010..27e5e2586 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/account_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/account_test.go @@ -1,10 +1,10 @@ package keeper_test import ( - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *KeeperTestSuite) TestRegisterInterchainAccount() { diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/events.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/events.go index e96e783fd..6a94365ce 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/events.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/events.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // EmitAcknowledgementEvent emits an event signalling a successful or failed acknowledgement and including the error diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/genesis.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/genesis.go index de2012b20..da5807bda 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/genesis.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/genesis.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // InitGenesis initializes the interchain accounts controller application state from a provided genesis state diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/genesis_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/genesis_test.go index f5cbd6e47..1ea86bb49 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/genesis_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/genesis_test.go @@ -1,10 +1,10 @@ package keeper_test import ( - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *KeeperTestSuite) TestInitGenesis() { diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/grpc_query.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/grpc_query.go index 16a929daa..a5ec2826b 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/grpc_query.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/grpc_query.go @@ -3,8 +3,8 @@ package keeper import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" ) var _ types.QueryServer = Keeper{} diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/handshake.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/handshake.go index 48694d852..a0e9d2e63 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/handshake.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/handshake.go @@ -4,11 +4,11 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // OnChanOpenInit performs basic validation of channel initialization. diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/handshake_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/handshake_test.go index b87d3fae4..2e3010af7 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/handshake_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/handshake_test.go @@ -1,11 +1,11 @@ package keeper_test import ( - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *KeeperTestSuite) TestOnChanOpenInit() { diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/keeper.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/keeper.go index 63958accb..9c5dc5c00 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/keeper.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/keeper.go @@ -4,18 +4,18 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/tendermint/libs/log" - - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - paramtypes "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/libs/tendermint/libs/log" + + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + paramtypes "github.com/okx/brczero/x/params" ) // Keeper defines the IBC interchain accounts controller keeper diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/keeper_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/keeper_test.go index 32ce28142..b0d2e09af 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/keeper_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/keeper_test.go @@ -3,13 +3,13 @@ package keeper_test import ( "testing" - types2 "github.com/okx/okbchain/libs/tendermint/types" + types2 "github.com/okx/brczero/libs/tendermint/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/tendermint/crypto" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/suite" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/params.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/params.go index df1c6787a..a497ef029 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/params.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" ) // IsControllerEnabled retrieves the controller enabled boolean from the paramstore. diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/params_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/params_test.go index c21ed3780..0713d3fb2 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/params_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/params_test.go @@ -1,6 +1,6 @@ package keeper_test -import "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" +import "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" func (suite *KeeperTestSuite) TestParams() { expParams := types.DefaultParams() diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/relay.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/relay.go index b38fcc189..6bf209c24 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/relay.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/relay.go @@ -1,12 +1,12 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // SendTx takes pre-built packet data containing messages to be executed on the host chain from an authentication module and attempts to send the packet. diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/relay_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/relay_test.go index 74e2441f5..9e9112fdc 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/relay_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper/relay_test.go @@ -1,14 +1,14 @@ package keeper_test import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) // TODO,再加 diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/errors.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/errors.go index d98d8167e..bfaf069a2 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/errors.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // ICA Controller sentinel errors diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/params.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/params.go index 3ed3bd210..4cdf6b96f 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/params.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/params.go @@ -3,7 +3,7 @@ package types import ( "fmt" - paramtypes "github.com/okx/okbchain/x/params" + paramtypes "github.com/okx/brczero/x/params" ) const ( diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/params_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/params_test.go index 55ffb2c84..1119f7b28 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/params_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types/params_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" "github.com/stretchr/testify/require" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/handler.go b/libs/ibc-go/modules/apps/27-interchain-accounts/handler.go index ebf392af2..dbfa89c1b 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/handler.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/handler.go @@ -3,11 +3,11 @@ package ica import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - controllerkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" - hostkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + controllerkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" + hostkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) func NewHandler(hostKeeper *hostkeeper.Keeper, ck *controllerkeeper.Keeper) sdk.Handler { diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli/cli.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli/cli.go index 43c20e938..df2bfba33 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli/cli.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli/cli.go @@ -1,8 +1,8 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli/query.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli/query.go index c4c75f72d..490d812df 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli/query.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/client/cli/query.go @@ -4,19 +4,19 @@ import ( "fmt" "strconv" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/ibc_module.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/ibc_module.go index a947d4ab2..f9828fc54 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/ibc_module.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/ibc_module.go @@ -1,15 +1,15 @@ package host import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibcporttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibcporttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/ibc_module_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/ibc_module_test.go index fc19ca355..d628fb542 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/ibc_module_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/ibc_module_test.go @@ -4,24 +4,24 @@ import ( "fmt" "testing" - types3 "github.com/okx/okbchain/libs/tendermint/types" + types3 "github.com/okx/brczero/libs/tendermint/types" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" + types2 "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" "github.com/gogo/protobuf/proto" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/tendermint/crypto" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/suite" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/account.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/account.go index adfc7db62..ff0e79da3 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/account.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/account.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" ) // RegisterInterchainAccount attempts to create a new account using the provided address and diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/account_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/account_test.go index ef151b4dc..fdb9e9770 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/account_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/account_test.go @@ -1,9 +1,9 @@ package keeper_test import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *KeeperTestSuite) TestRegisterInterchainAccount() { diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/events.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/events.go index d35edca9c..645c6b64f 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/events.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/events.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // EmitAcknowledgementEvent emits an event signalling a successful or failed acknowledgement and including the error diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/genesis.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/genesis.go index 4266f8c7a..71c863717 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/genesis.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/genesis.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // InitGenesis initializes the interchain accounts host application state from a provided genesis state diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/genesis_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/genesis_test.go index 0c013989f..ae1131858 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/genesis_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/genesis_test.go @@ -1,10 +1,10 @@ package keeper_test import ( - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *KeeperTestSuite) TestInitGenesis() { diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/grpc_query.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/grpc_query.go index 6206bcc67..ef0d8feaa 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/grpc_query.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/grpc_query.go @@ -3,8 +3,8 @@ package keeper import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" ) var _ types.QueryServer = Keeper{} diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/grpc_query_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/grpc_query_test.go index b562395f6..d424d93c9 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/grpc_query_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/grpc_query_test.go @@ -1,8 +1,8 @@ package keeper_test import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" ) func (suite *KeeperTestSuite) TestQueryParams() { diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/handshake.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/handshake.go index cdcc45383..5001c7203 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/handshake.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/handshake.go @@ -4,12 +4,12 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // OnChanOpenTry performs basic validation of the ICA channel diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go index 653b1078f..87b7014cf 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go @@ -1,11 +1,11 @@ package keeper_test import ( - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *KeeperTestSuite) TestOnChanOpenTry() { diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/keeper.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/keeper.go index ff1019d4a..284dd0c35 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/keeper.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/keeper.go @@ -4,18 +4,18 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/tendermint/libs/log" - - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - paramtypes "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/libs/tendermint/libs/log" + + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + paramtypes "github.com/okx/brczero/x/params" ) // Keeper defines the IBC interchain accounts host keeper diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/keeper_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/keeper_test.go index d3ffd7146..9c5432b90 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/keeper_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/keeper_test.go @@ -3,14 +3,14 @@ package keeper_test import ( "testing" - types2 "github.com/okx/okbchain/libs/tendermint/types" + types2 "github.com/okx/brczero/libs/tendermint/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/suite" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/params.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/params.go index 5f1ec0572..0bbfd70fa 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/params.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" ) // IsHostEnabled retrieves the host enabled boolean from the paramstore. diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/params_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/params_test.go index 02a64a622..41ae4af5f 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/params_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/params_test.go @@ -1,6 +1,6 @@ package keeper_test -import "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" +import "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" func (suite *KeeperTestSuite) TestParams() { expParams := types.DefaultParams() diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/relay.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/relay.go index 59584a9b5..62d85f77e 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/relay.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper/relay.go @@ -2,13 +2,13 @@ package keeper import ( "github.com/gogo/protobuf/proto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // OnRecvPacket handles a given interchain accounts packet on a destination host chain. diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/errors.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/errors.go index 97c59c8bd..aa8f9a6ff 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/errors.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // ICA Host sentinel errors diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/keys.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/keys.go index 26db3a347..4c5e506b5 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/keys.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/keys.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/params.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/params.go index 31cdaf98e..e719a610a 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/params.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/params.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - paramtypes "github.com/okx/okbchain/x/params" + paramtypes "github.com/okx/brczero/x/params" ) const ( diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/params_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/params_test.go index 8adb4f7be..c0769b88e 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/params_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/host/types/params_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" "github.com/stretchr/testify/require" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/module.go b/libs/ibc-go/modules/apps/27-interchain-accounts/module.go index 52f88f3fe..40d0b25f8 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/module.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/module.go @@ -4,31 +4,31 @@ import ( "context" "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" + "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/common" + "github.com/okx/brczero/libs/ibc-go/modules/apps/common" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/client/cli" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/client/cli" - controllertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" - hosttypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + controllertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + hosttypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - cliCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - anytypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" + cliCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + anytypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" "github.com/spf13/cobra" - controllerkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" - hostkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + controllerkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" + hostkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) var ( diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/account.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/account.go index 6bdbbb66a..0f97c22a8 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/account.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/account.go @@ -3,10 +3,10 @@ package types import ( "regexp" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) // DefaultMaxAddrLength defines the default maximum character length used in validation of addresses diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/account.pb.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/account.pb.go index 598a31c79..719cbd68d 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/account.pb.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/account.pb.go @@ -10,7 +10,7 @@ package types // math "math" // math_bits "math/bits" // -// types "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/typesadapter" +// types "github.com/okx/brczero/libs/cosmos-sdk/x/auth/typesadapter" // // _ "github.com/gogo/protobuf/gogoproto" // proto "github.com/gogo/protobuf/proto" diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/account_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/account_test.go index 7327d1047..4039eba03 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/account_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/account_test.go @@ -3,8 +3,8 @@ package types_test import ( "testing" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" "github.com/stretchr/testify/suite" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/amino_account.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/amino_account.go index 9677d2c30..21336fdfd 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/amino_account.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/amino_account.go @@ -4,10 +4,10 @@ import ( "errors" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/tendermint/crypto" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/tendermint/crypto" yaml "gopkg.in/yaml.v2" ) diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/codec.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/codec.go index f9d39c7b2..97db76d84 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/codec.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/codec.go @@ -1,10 +1,10 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // ModuleCdc references the global interchain accounts module codec. Note, the codec diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/codec_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/codec_test.go index f56adc45c..42c99b645 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/codec_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/codec_test.go @@ -1,9 +1,9 @@ package types_test import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" ) // caseRawBytes defines a helper struct, used for testing codec operations diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/errors.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/errors.go index c29adbc38..cdd8eaad6 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/errors.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/expected_keepers.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/expected_keepers.go index fa043605b..e2efc5843 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/expected_keepers.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/expected_keepers.go @@ -1,12 +1,12 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // AccountKeeper defines the expected account keeper diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/genesis.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/genesis.go index 1df1620e9..cce48e307 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/genesis.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/genesis.go @@ -1,9 +1,9 @@ package types import ( - controllertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" - hosttypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + controllertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + hosttypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // DefaultGenesis creates and returns the interchain accounts GenesisState diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/genesis.pb.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/genesis.pb.go index 80f9b4242..66a0e85d4 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/genesis.pb.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/genesis.pb.go @@ -11,8 +11,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - types "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" - types1 "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + types "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + types1 "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/keys_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/keys_test.go index 1419577c7..dc6da07c9 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/keys_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/keys_test.go @@ -1,6 +1,6 @@ package types_test -import "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" +import "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" func (suite *TypesTestSuite) TestKeyActiveChannel() { key := types.KeyActiveChannel("port-id", "connection-id") diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/metadata.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/metadata.go index 3a61221e8..6cabc00ff 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/metadata.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/metadata.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" ) const ( diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/metadata_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/metadata_test.go index 33b2b93ca..c930821a7 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/metadata_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/metadata_test.go @@ -1,8 +1,8 @@ package types_test import ( - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) // use TestVersion as metadata being compared against diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet.go index 68baf1afb..e480c0f11 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet.go @@ -1,9 +1,9 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // MaxMemoCharLength defines the maximum length for the InterchainAccountPacketData memo field diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet.pb.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet.pb.go index 8a37c6458..cb398eaf5 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet.pb.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet.pb.go @@ -9,7 +9,7 @@ import ( math "math" math_bits "math/bits" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet_test.go index 60589feb7..362ff39c2 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/packet_test.go @@ -1,7 +1,7 @@ package types_test import ( - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" ) var largeMemo = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum" diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/port.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/port.go index a18fd4b81..4cfb0612e 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/port.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/port.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // NewControllerPortID creates and returns a new prefixed controller port identifier using the provided owner string diff --git a/libs/ibc-go/modules/apps/27-interchain-accounts/types/port_test.go b/libs/ibc-go/modules/apps/27-interchain-accounts/types/port_test.go index 90d0d8470..9acbbbc21 100644 --- a/libs/ibc-go/modules/apps/27-interchain-accounts/types/port_test.go +++ b/libs/ibc-go/modules/apps/27-interchain-accounts/types/port_test.go @@ -3,9 +3,9 @@ package types_test import ( "fmt" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" ) func (suite *TypesTestSuite) TestNewControllerPortID() { diff --git a/libs/ibc-go/modules/apps/29-fee/alias.go b/libs/ibc-go/modules/apps/29-fee/alias.go index cc3a855d9..64d3f6f54 100644 --- a/libs/ibc-go/modules/apps/29-fee/alias.go +++ b/libs/ibc-go/modules/apps/29-fee/alias.go @@ -1,6 +1,6 @@ package fee -import "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" +import "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" var ( ModuleCdc = types.ModuleCdc diff --git a/libs/ibc-go/modules/apps/29-fee/client/cli/cli.go b/libs/ibc-go/modules/apps/29-fee/client/cli/cli.go index 82af0198e..c3bf8e550 100644 --- a/libs/ibc-go/modules/apps/29-fee/client/cli/cli.go +++ b/libs/ibc-go/modules/apps/29-fee/client/cli/cli.go @@ -1,9 +1,9 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/29-fee/client/cli/query.go b/libs/ibc-go/modules/apps/29-fee/client/cli/query.go index 109ff72c9..c38e7d0ad 100644 --- a/libs/ibc-go/modules/apps/29-fee/client/cli/query.go +++ b/libs/ibc-go/modules/apps/29-fee/client/cli/query.go @@ -4,18 +4,18 @@ import ( "fmt" "strconv" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/29-fee/client/cli/tx.go b/libs/ibc-go/modules/apps/29-fee/client/cli/tx.go index 9de249efd..3faec5124 100644 --- a/libs/ibc-go/modules/apps/29-fee/client/cli/tx.go +++ b/libs/ibc-go/modules/apps/29-fee/client/cli/tx.go @@ -6,16 +6,16 @@ import ( "strconv" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/29-fee/fee_test.go b/libs/ibc-go/modules/apps/29-fee/fee_test.go index a1fbfaa64..8a353fb8b 100644 --- a/libs/ibc-go/modules/apps/29-fee/fee_test.go +++ b/libs/ibc-go/modules/apps/29-fee/fee_test.go @@ -3,14 +3,14 @@ package fee_test import ( "testing" - types2 "github.com/okx/okbchain/libs/tendermint/types" + types2 "github.com/okx/brczero/libs/tendermint/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibcmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibcmock "github.com/okx/brczero/libs/ibc-go/testing/mock" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" "github.com/stretchr/testify/suite" ) diff --git a/libs/ibc-go/modules/apps/29-fee/handler.go b/libs/ibc-go/modules/apps/29-fee/handler.go index 9822b0917..83efc89bb 100644 --- a/libs/ibc-go/modules/apps/29-fee/handler.go +++ b/libs/ibc-go/modules/apps/29-fee/handler.go @@ -3,12 +3,12 @@ package fee import ( "fmt" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/keeper" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/keeper" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) func NewHandler(k keeper.Keeper) sdk.Handler { diff --git a/libs/ibc-go/modules/apps/29-fee/ibc_middleware.go b/libs/ibc-go/modules/apps/29-fee/ibc_middleware.go index 8a33f7bbf..503ac37c1 100644 --- a/libs/ibc-go/modules/apps/29-fee/ibc_middleware.go +++ b/libs/ibc-go/modules/apps/29-fee/ibc_middleware.go @@ -3,15 +3,15 @@ package fee import ( "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var _ porttypes.Middleware = &IBCMiddleware{} diff --git a/libs/ibc-go/modules/apps/29-fee/ibc_middleware_test.go b/libs/ibc-go/modules/apps/29-fee/ibc_middleware_test.go index 9ddfa84f4..5eae60e31 100644 --- a/libs/ibc-go/modules/apps/29-fee/ibc_middleware_test.go +++ b/libs/ibc-go/modules/apps/29-fee/ibc_middleware_test.go @@ -3,18 +3,18 @@ package fee_test import ( "fmt" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - transfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - fee "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibcmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + transfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + fee "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibcmock "github.com/okx/brczero/libs/ibc-go/testing/mock" ) var ( diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/escrow.go b/libs/ibc-go/modules/apps/29-fee/keeper/escrow.go index 5e1d43e17..6a8fae9bc 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/escrow.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/escrow.go @@ -4,10 +4,10 @@ import ( "bytes" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // escrowPacketFee sends the packet fee to the 29-fee module account to hold in escrow diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/escrow_test.go b/libs/ibc-go/modules/apps/29-fee/keeper/escrow_test.go index 7f779273a..25733fd24 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/escrow_test.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/escrow_test.go @@ -4,12 +4,12 @@ import ( "fmt" ethcmm "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - transfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + transfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/testing/mock" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" ) func (suite *KeeperTestSuite) TestDistributeFee() { diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/events.go b/libs/ibc-go/modules/apps/29-fee/keeper/events.go index 788aec435..b711df3b8 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/events.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/events.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // EmitIncentivizedPacketEvent emits an event containing information on the total amount of fees incentivizing diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/events_test.go b/libs/ibc-go/modules/apps/29-fee/keeper/events_test.go index 9f56706ff..a4814884f 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/events_test.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/events_test.go @@ -1,9 +1,9 @@ package keeper_test import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - abcitypes "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + abcitypes "github.com/okx/brczero/libs/tendermint/abci/types" ) func (suite *KeeperTestSuite) TestIncentivizePacketEvent() { diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/genesis.go b/libs/ibc-go/modules/apps/29-fee/keeper/genesis.go index 3f680a58b..77f300f9c 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/genesis.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/genesis.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" ) // InitGenesis initializes the fee middleware application state from a provided genesis state diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/genesis_test.go b/libs/ibc-go/modules/apps/29-fee/keeper/genesis_test.go index e1d59192b..353cbd361 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/genesis_test.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/genesis_test.go @@ -1,9 +1,9 @@ package keeper_test import ( - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *KeeperTestSuite) TestInitGenesis() { diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/grpc_query.go b/libs/ibc-go/modules/apps/29-fee/keeper/grpc_query.go index 9cec42a43..4e969e30e 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/grpc_query.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/grpc_query.go @@ -3,11 +3,11 @@ package keeper import ( "context" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/grpc_query_test.go b/libs/ibc-go/modules/apps/29-fee/keeper/grpc_query_test.go index 4fda1fd7a..0277433ea 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/grpc_query_test.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/grpc_query_test.go @@ -3,13 +3,13 @@ package keeper_test import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" ) func (suite *KeeperTestSuite) TestQueryIncentivizedPackets() { diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/keeper.go b/libs/ibc-go/modules/apps/29-fee/keeper/keeper.go index ae9285fb8..ab0430634 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/keeper.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/keeper.go @@ -1,14 +1,14 @@ package keeper import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - paramtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + paramtypes "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // Middleware must implement types.ChannelKeeper and types.PortKeeper expected interfaces diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/keeper_test.go b/libs/ibc-go/modules/apps/29-fee/keeper/keeper_test.go index 470a2b7de..06563045b 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/keeper_test.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/keeper_test.go @@ -4,16 +4,16 @@ import ( "fmt" "testing" - types2 "github.com/okx/okbchain/libs/tendermint/types" + types2 "github.com/okx/brczero/libs/tendermint/types" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibcmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibcmock "github.com/okx/brczero/libs/ibc-go/testing/mock" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" "github.com/stretchr/testify/suite" ) diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/msg_server.go b/libs/ibc-go/modules/apps/29-fee/keeper/msg_server.go index 54d3effa0..a3bf9294e 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/msg_server.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/msg_server.go @@ -3,10 +3,10 @@ package keeper import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) var _ types.MsgServer = Keeper{} diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/msg_server_test.go b/libs/ibc-go/modules/apps/29-fee/keeper/msg_server_test.go index 9db352fc2..8c3a36243 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/msg_server_test.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/msg_server_test.go @@ -3,14 +3,14 @@ package keeper_test import ( "fmt" - ibcmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - transfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + ibcmock "github.com/okx/brczero/libs/ibc-go/testing/mock" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + transfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *KeeperTestSuite) TestRegisterPayee() { diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/relay.go b/libs/ibc-go/modules/apps/29-fee/keeper/relay.go index 9f3b77402..737d7a732 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/relay.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/relay.go @@ -3,12 +3,12 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // SendPacket wraps IBC ChannelKeeper's SendPacket function diff --git a/libs/ibc-go/modules/apps/29-fee/keeper/relay_test.go b/libs/ibc-go/modules/apps/29-fee/keeper/relay_test.go index ec10f6c63..15c599783 100644 --- a/libs/ibc-go/modules/apps/29-fee/keeper/relay_test.go +++ b/libs/ibc-go/modules/apps/29-fee/keeper/relay_test.go @@ -1,11 +1,11 @@ package keeper_test import ( - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibcmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibcmock "github.com/okx/brczero/libs/ibc-go/testing/mock" ) func (suite *KeeperTestSuite) TestWriteAcknowledgementAsync() { diff --git a/libs/ibc-go/modules/apps/29-fee/module.go b/libs/ibc-go/modules/apps/29-fee/module.go index edd889fcf..9d7001694 100644 --- a/libs/ibc-go/modules/apps/29-fee/module.go +++ b/libs/ibc-go/modules/apps/29-fee/module.go @@ -4,22 +4,22 @@ import ( "context" "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/common" + "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" + "github.com/okx/brczero/libs/ibc-go/modules/apps/common" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/client/cli" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/client/cli" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/keeper" - cliCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + cliCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - anytypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + anytypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/29-fee/transfer_test.go b/libs/ibc-go/modules/apps/29-fee/transfer_test.go index cf2822ce6..863ab9b2c 100644 --- a/libs/ibc-go/modules/apps/29-fee/transfer_test.go +++ b/libs/ibc-go/modules/apps/29-fee/transfer_test.go @@ -1,12 +1,12 @@ package fee_test import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - transfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + transfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) // Integration test to ensure ics29 works with ics20 diff --git a/libs/ibc-go/modules/apps/29-fee/types/ack.go b/libs/ibc-go/modules/apps/29-fee/types/ack.go index 2fdbaffc2..773ed84dc 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/ack.go +++ b/libs/ibc-go/modules/apps/29-fee/types/ack.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // NewIncentivizedAcknowledgement creates a new instance of IncentivizedAcknowledgement diff --git a/libs/ibc-go/modules/apps/29-fee/types/codec.go b/libs/ibc-go/modules/apps/29-fee/types/codec.go index 83867d476..3e07794bc 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/codec.go +++ b/libs/ibc-go/modules/apps/29-fee/types/codec.go @@ -1,10 +1,10 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" ) // RegisterLegacyAminoCodec registers the necessary x/ibc 29-fee interfaces and concrete types diff --git a/libs/ibc-go/modules/apps/29-fee/types/errors.go b/libs/ibc-go/modules/apps/29-fee/types/errors.go index b144a3135..3f83d337a 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/errors.go +++ b/libs/ibc-go/modules/apps/29-fee/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // 29-fee sentinel errors diff --git a/libs/ibc-go/modules/apps/29-fee/types/expected_keepers.go b/libs/ibc-go/modules/apps/29-fee/types/expected_keepers.go index bd0847344..f471884a4 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/expected_keepers.go +++ b/libs/ibc-go/modules/apps/29-fee/types/expected_keepers.go @@ -1,11 +1,11 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // AccountKeeper defines the contract required for account APIs. diff --git a/libs/ibc-go/modules/apps/29-fee/types/fee.go b/libs/ibc-go/modules/apps/29-fee/types/fee.go index 45e6ddd25..ad4e1238f 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/fee.go +++ b/libs/ibc-go/modules/apps/29-fee/types/fee.go @@ -3,10 +3,10 @@ package types import ( "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // NewPacketFee creates and returns a new PacketFee struct including the incentivization fees, refund addres and relayers diff --git a/libs/ibc-go/modules/apps/29-fee/types/fee.pb.go b/libs/ibc-go/modules/apps/29-fee/types/fee.pb.go index f2ec735dd..24e086ffa 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/fee.pb.go +++ b/libs/ibc-go/modules/apps/29-fee/types/fee.pb.go @@ -9,8 +9,8 @@ import ( math "math" math_bits "math/bits" - github_com_cosmos_cosmos_sdk_types "github.com/okx/okbchain/libs/cosmos-sdk/types" - types1 "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + github_com_cosmos_cosmos_sdk_types "github.com/okx/brczero/libs/cosmos-sdk/types" + types1 "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" diff --git a/libs/ibc-go/modules/apps/29-fee/types/fee_test.go b/libs/ibc-go/modules/apps/29-fee/types/fee_test.go index 5fa0d5ae2..5168d2b01 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/fee_test.go +++ b/libs/ibc-go/modules/apps/29-fee/types/fee_test.go @@ -3,10 +3,10 @@ package types_test import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" ) diff --git a/libs/ibc-go/modules/apps/29-fee/types/genesis.go b/libs/ibc-go/modules/apps/29-fee/types/genesis.go index 4ad93e26d..d97b59541 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/genesis.go +++ b/libs/ibc-go/modules/apps/29-fee/types/genesis.go @@ -3,9 +3,9 @@ package types import ( "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // NewGenesisState creates a 29-fee GenesisState instance. diff --git a/libs/ibc-go/modules/apps/29-fee/types/genesis.pb.go b/libs/ibc-go/modules/apps/29-fee/types/genesis.pb.go index 7004834aa..bce50bea6 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/genesis.pb.go +++ b/libs/ibc-go/modules/apps/29-fee/types/genesis.pb.go @@ -9,7 +9,7 @@ import ( math "math" math_bits "math/bits" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" diff --git a/libs/ibc-go/modules/apps/29-fee/types/genesis_test.go b/libs/ibc-go/modules/apps/29-fee/types/genesis_test.go index 8ac1bbb2e..7646101fa 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/genesis_test.go +++ b/libs/ibc-go/modules/apps/29-fee/types/genesis_test.go @@ -3,11 +3,11 @@ package types_test import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" ) diff --git a/libs/ibc-go/modules/apps/29-fee/types/keys.go b/libs/ibc-go/modules/apps/29-fee/types/keys.go index dcb03747e..a6b83f386 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/keys.go +++ b/libs/ibc-go/modules/apps/29-fee/types/keys.go @@ -5,8 +5,8 @@ import ( "strconv" "strings" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) const ( diff --git a/libs/ibc-go/modules/apps/29-fee/types/keys_test.go b/libs/ibc-go/modules/apps/29-fee/types/keys_test.go index a663df537..df58ad97a 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/keys_test.go +++ b/libs/ibc-go/modules/apps/29-fee/types/keys_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" "github.com/stretchr/testify/require" ) diff --git a/libs/ibc-go/modules/apps/29-fee/types/msgs.go b/libs/ibc-go/modules/apps/29-fee/types/msgs.go index ac4bdcb4b..904e9c915 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/msgs.go +++ b/libs/ibc-go/modules/apps/29-fee/types/msgs.go @@ -3,13 +3,13 @@ package types import ( "strings" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/common" + "github.com/okx/brczero/libs/ibc-go/modules/apps/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) var ( diff --git a/libs/ibc-go/modules/apps/29-fee/types/msgs_test.go b/libs/ibc-go/modules/apps/29-fee/types/msgs_test.go index 220397f8b..4d5ceba54 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/msgs_test.go +++ b/libs/ibc-go/modules/apps/29-fee/types/msgs_test.go @@ -3,11 +3,11 @@ package types_test import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" ) diff --git a/libs/ibc-go/modules/apps/29-fee/types/query.pb.go b/libs/ibc-go/modules/apps/29-fee/types/query.pb.go index 2f9426385..a95bf4e76 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/query.pb.go +++ b/libs/ibc-go/modules/apps/29-fee/types/query.pb.go @@ -10,9 +10,9 @@ import ( math "math" math_bits "math/bits" - github_com_cosmos_cosmos_sdk_types "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + github_com_cosmos_cosmos_sdk_types "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" diff --git a/libs/ibc-go/modules/apps/29-fee/types/tx.pb.go b/libs/ibc-go/modules/apps/29-fee/types/tx.pb.go index a91d8086c..4cb007455 100644 --- a/libs/ibc-go/modules/apps/29-fee/types/tx.pb.go +++ b/libs/ibc-go/modules/apps/29-fee/types/tx.pb.go @@ -10,7 +10,7 @@ import ( math "math" math_bits "math/bits" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" diff --git a/libs/ibc-go/modules/apps/common/errors.go b/libs/ibc-go/modules/apps/common/errors.go index d641b8b71..8ac0d362c 100644 --- a/libs/ibc-go/modules/apps/common/errors.go +++ b/libs/ibc-go/modules/apps/common/errors.go @@ -4,11 +4,11 @@ import ( "errors" "fmt" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" "github.com/gogo/protobuf/proto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // IBC port sentinel errors diff --git a/libs/ibc-go/modules/apps/common/proxy.go b/libs/ibc-go/modules/apps/common/proxy.go index b5888ae1a..388c6d43c 100644 --- a/libs/ibc-go/modules/apps/common/proxy.go +++ b/libs/ibc-go/modules/apps/common/proxy.go @@ -3,11 +3,11 @@ package common import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/apps/common/upgrade.go b/libs/ibc-go/modules/apps/common/upgrade.go index 56c4c4535..50bf1597d 100644 --- a/libs/ibc-go/modules/apps/common/upgrade.go +++ b/libs/ibc-go/modules/apps/common/upgrade.go @@ -1,11 +1,11 @@ package common import ( - cosmost "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" - "github.com/okx/okbchain/libs/ibc-go/modules/core/base" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + cosmost "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" + "github.com/okx/brczero/libs/ibc-go/modules/core/base" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) var ( diff --git a/libs/ibc-go/modules/apps/transfer/alias.go b/libs/ibc-go/modules/apps/transfer/alias.go index 261977843..8199ebc14 100644 --- a/libs/ibc-go/modules/apps/transfer/alias.go +++ b/libs/ibc-go/modules/apps/transfer/alias.go @@ -1,8 +1,8 @@ package transfer import ( - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) var ( diff --git a/libs/ibc-go/modules/apps/transfer/client/cli/cli.go b/libs/ibc-go/modules/apps/transfer/client/cli/cli.go index 57246e3c9..ff4d40706 100644 --- a/libs/ibc-go/modules/apps/transfer/client/cli/cli.go +++ b/libs/ibc-go/modules/apps/transfer/client/cli/cli.go @@ -1,9 +1,9 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/transfer/client/cli/query.go b/libs/ibc-go/modules/apps/transfer/client/cli/query.go index 70cefd6cc..8df970908 100644 --- a/libs/ibc-go/modules/apps/transfer/client/cli/query.go +++ b/libs/ibc-go/modules/apps/transfer/client/cli/query.go @@ -2,13 +2,13 @@ package cli import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/transfer/client/cli/tx.go b/libs/ibc-go/modules/apps/transfer/client/cli/tx.go index 49505cd07..00af778b1 100644 --- a/libs/ibc-go/modules/apps/transfer/client/cli/tx.go +++ b/libs/ibc-go/modules/apps/transfer/client/cli/tx.go @@ -8,17 +8,17 @@ import ( "strings" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channelutils "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channelutils "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/client/utils" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/transfer/handler.go b/libs/ibc-go/modules/apps/transfer/handler.go index da1ad9d3e..e49e56ee7 100644 --- a/libs/ibc-go/modules/apps/transfer/handler.go +++ b/libs/ibc-go/modules/apps/transfer/handler.go @@ -1,11 +1,11 @@ package transfer import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) // NewHandler returns sdk.Handler for IBC token transfer module messages diff --git a/libs/ibc-go/modules/apps/transfer/ibc_module.go b/libs/ibc-go/modules/apps/transfer/ibc_module.go index d5f1132e2..efe9c951d 100644 --- a/libs/ibc-go/modules/apps/transfer/ibc_module.go +++ b/libs/ibc-go/modules/apps/transfer/ibc_module.go @@ -5,19 +5,19 @@ import ( "fmt" "strings" - types2 "github.com/okx/okbchain/libs/tendermint/types" + types2 "github.com/okx/brczero/libs/tendermint/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/apps/transfer/keeper/encoding.go b/libs/ibc-go/modules/apps/transfer/keeper/encoding.go index 24c2b1266..6ad9de98f 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/encoding.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/encoding.go @@ -1,7 +1,7 @@ package keeper import ( - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) // UnmarshalDenomTrace attempts to decode and return an DenomTrace object from diff --git a/libs/ibc-go/modules/apps/transfer/keeper/genesis.go b/libs/ibc-go/modules/apps/transfer/keeper/genesis.go index 7e5370af3..dadba1719 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/genesis.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/genesis.go @@ -3,8 +3,8 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) // InitGenesis initializes the ibc-transfer state and binds to PortID. diff --git a/libs/ibc-go/modules/apps/transfer/keeper/genesis_test.go b/libs/ibc-go/modules/apps/transfer/keeper/genesis_test.go index 25b2be2f2..a4e694eb1 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/genesis_test.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/genesis_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "fmt" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) func (suite *KeeperTestSuite) TestGenesis() { diff --git a/libs/ibc-go/modules/apps/transfer/keeper/grpc_query.go b/libs/ibc-go/modules/apps/transfer/keeper/grpc_query.go index 046db54ee..cfd57f14c 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/grpc_query.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/grpc_query.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/libs/ibc-go/modules/apps/transfer/keeper/hooks.go b/libs/ibc-go/modules/apps/transfer/keeper/hooks.go index fedf6a687..e4d69ba51 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/hooks.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/hooks.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) // SetHooks sets the hooks for the IBC transfer module diff --git a/libs/ibc-go/modules/apps/transfer/keeper/keeper.go b/libs/ibc-go/modules/apps/transfer/keeper/keeper.go index 6e8a0b3dd..c2438e900 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/keeper.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/keeper.go @@ -1,20 +1,20 @@ package keeper import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - paramtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + paramtypes "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // Keeper defines the IBC fungible transfer keeper diff --git a/libs/ibc-go/modules/apps/transfer/keeper/keeper_test.go b/libs/ibc-go/modules/apps/transfer/keeper/keeper_test.go index 6ecab65af..55df68d63 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/keeper_test.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/keeper_test.go @@ -1,15 +1,15 @@ package keeper_test import ( - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" "testing" "github.com/stretchr/testify/suite" // "github.com/tendermint/tendermint/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) type KeeperTestSuite struct { diff --git a/libs/ibc-go/modules/apps/transfer/keeper/mbt_relay_test.go b/libs/ibc-go/modules/apps/transfer/keeper/mbt_relay_test.go index ab43c17a4..0e2ce7d19 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/mbt_relay_test.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/mbt_relay_test.go @@ -6,17 +6,17 @@ package keeper_test import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/crypto" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/crypto" "strings" // "github.com/tendermint/tendermint/crypto" // sdk "github.com/cosmos/cosmos-sdk/types" // sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) type TlaBalance struct { diff --git a/libs/ibc-go/modules/apps/transfer/keeper/msg_server.go b/libs/ibc-go/modules/apps/transfer/keeper/msg_server.go index 08a809cfb..b6309b731 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/msg_server.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/msg_server.go @@ -3,8 +3,8 @@ package keeper import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) //var _ types.MsgServer = Keeper{} diff --git a/libs/ibc-go/modules/apps/transfer/keeper/params.go b/libs/ibc-go/modules/apps/transfer/keeper/params.go index 43f53c549..97659967f 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/params.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) // GetSendEnabled retrieves the send enabled boolean from the paramstore diff --git a/libs/ibc-go/modules/apps/transfer/keeper/relay.go b/libs/ibc-go/modules/apps/transfer/keeper/relay.go index 5a28bfbb0..0ca528220 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/relay.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/relay.go @@ -4,12 +4,12 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // SendTransfer handles transfer sending logic. There are 2 possible cases: diff --git a/libs/ibc-go/modules/apps/transfer/keeper/relay_test.go b/libs/ibc-go/modules/apps/transfer/keeper/relay_test.go index 941caa4af..de0103c32 100644 --- a/libs/ibc-go/modules/apps/transfer/keeper/relay_test.go +++ b/libs/ibc-go/modules/apps/transfer/keeper/relay_test.go @@ -3,15 +3,15 @@ package keeper_test import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) // test sending from chainA to chainB using both coin that orignate on diff --git a/libs/ibc-go/modules/apps/transfer/module.go b/libs/ibc-go/modules/apps/transfer/module.go index 0ee9cb80c..85f7a2b4a 100644 --- a/libs/ibc-go/modules/apps/transfer/module.go +++ b/libs/ibc-go/modules/apps/transfer/module.go @@ -9,23 +9,23 @@ import ( "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - simtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/client/cli" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + simtypes "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/client/cli" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/apps/transfer/module_test.go b/libs/ibc-go/modules/apps/transfer/module_test.go index 8b6f5528a..9fe34124b 100644 --- a/libs/ibc-go/modules/apps/transfer/module_test.go +++ b/libs/ibc-go/modules/apps/transfer/module_test.go @@ -4,11 +4,11 @@ import ( "math" "testing" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" "github.com/stretchr/testify/suite" ) diff --git a/libs/ibc-go/modules/apps/transfer/simulation/decoder.go b/libs/ibc-go/modules/apps/transfer/simulation/decoder.go index 4adc71c9d..668661afd 100644 --- a/libs/ibc-go/modules/apps/transfer/simulation/decoder.go +++ b/libs/ibc-go/modules/apps/transfer/simulation/decoder.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/tendermint/libs/kv" ) // TransferUnmarshaler defines the expected encoding store functions. diff --git a/libs/ibc-go/modules/apps/transfer/simulation/decoder_test.go b/libs/ibc-go/modules/apps/transfer/simulation/decoder_test.go index dd644c379..fef7e7ae9 100644 --- a/libs/ibc-go/modules/apps/transfer/simulation/decoder_test.go +++ b/libs/ibc-go/modules/apps/transfer/simulation/decoder_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/types/kv" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/types/kv" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" ) func TestDecodeStore(t *testing.T) { diff --git a/libs/ibc-go/modules/apps/transfer/simulation/genesis.go b/libs/ibc-go/modules/apps/transfer/simulation/genesis.go index 7aac4a256..bccb1e002 100644 --- a/libs/ibc-go/modules/apps/transfer/simulation/genesis.go +++ b/libs/ibc-go/modules/apps/transfer/simulation/genesis.go @@ -6,9 +6,9 @@ import ( "math/rand" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - simtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + simtypes "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) // Simulation parameter constants diff --git a/libs/ibc-go/modules/apps/transfer/simulation/genesis_test.go b/libs/ibc-go/modules/apps/transfer/simulation/genesis_test.go index 7c9848d68..00a2a2fa2 100644 --- a/libs/ibc-go/modules/apps/transfer/simulation/genesis_test.go +++ b/libs/ibc-go/modules/apps/transfer/simulation/genesis_test.go @@ -11,11 +11,11 @@ import ( // codectypes "github.com/cosmos/cosmos-sdk/codec/types" // "github.com/cosmos/cosmos-sdk/types/module" // simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - simtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + simtypes "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/libs/ibc-go/modules/apps/transfer/simulation/params.go b/libs/ibc-go/modules/apps/transfer/simulation/params.go index 2a47b787f..73c09618a 100644 --- a/libs/ibc-go/modules/apps/transfer/simulation/params.go +++ b/libs/ibc-go/modules/apps/transfer/simulation/params.go @@ -4,8 +4,8 @@ import ( "math/rand" gogotypes "github.com/gogo/protobuf/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) // ParamChanges defines the parameters that can be modified by param change proposals diff --git a/libs/ibc-go/modules/apps/transfer/transfer_test.go b/libs/ibc-go/modules/apps/transfer/transfer_test.go index 82ae3e034..39d87d531 100644 --- a/libs/ibc-go/modules/apps/transfer/transfer_test.go +++ b/libs/ibc-go/modules/apps/transfer/transfer_test.go @@ -5,11 +5,11 @@ import ( "github.com/stretchr/testify/suite" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) type TransferTestSuite struct { diff --git a/libs/ibc-go/modules/apps/transfer/types/codec.go b/libs/ibc-go/modules/apps/transfer/types/codec.go index 2db6bff54..5335054d5 100644 --- a/libs/ibc-go/modules/apps/transfer/types/codec.go +++ b/libs/ibc-go/modules/apps/transfer/types/codec.go @@ -1,12 +1,12 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" ) // RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types diff --git a/libs/ibc-go/modules/apps/transfer/types/coin.go b/libs/ibc-go/modules/apps/transfer/types/coin.go index 3416bba4b..abca461db 100644 --- a/libs/ibc-go/modules/apps/transfer/types/coin.go +++ b/libs/ibc-go/modules/apps/transfer/types/coin.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // SenderChainIsSource returns false if the denomination originally came diff --git a/libs/ibc-go/modules/apps/transfer/types/errors.go b/libs/ibc-go/modules/apps/transfer/types/errors.go index 4c9d928e5..3b2fb34dc 100644 --- a/libs/ibc-go/modules/apps/transfer/types/errors.go +++ b/libs/ibc-go/modules/apps/transfer/types/errors.go @@ -1,6 +1,6 @@ package types -import sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +import sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" // IBC channel sentinel errors var ( diff --git a/libs/ibc-go/modules/apps/transfer/types/expected_keepers.go b/libs/ibc-go/modules/apps/transfer/types/expected_keepers.go index be2c4484b..bb347681d 100644 --- a/libs/ibc-go/modules/apps/transfer/types/expected_keepers.go +++ b/libs/ibc-go/modules/apps/transfer/types/expected_keepers.go @@ -1,12 +1,12 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - exported2 "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + exported2 "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // AccountKeeper defines the contract required for account APIs. diff --git a/libs/ibc-go/modules/apps/transfer/types/genesis.go b/libs/ibc-go/modules/apps/transfer/types/genesis.go index 102c2e2c7..54e84c002 100644 --- a/libs/ibc-go/modules/apps/transfer/types/genesis.go +++ b/libs/ibc-go/modules/apps/transfer/types/genesis.go @@ -1,6 +1,6 @@ package types -import host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" +import host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" // NewGenesisState creates a new ibc-transfer GenesisState instance. func NewGenesisState(portID string, denomTraces Traces, params Params) *GenesisState { diff --git a/libs/ibc-go/modules/apps/transfer/types/genesis_test.go b/libs/ibc-go/modules/apps/transfer/types/genesis_test.go index d7b122de1..17600dfb2 100644 --- a/libs/ibc-go/modules/apps/transfer/types/genesis_test.go +++ b/libs/ibc-go/modules/apps/transfer/types/genesis_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) func TestValidateGenesis(t *testing.T) { diff --git a/libs/ibc-go/modules/apps/transfer/types/hooks.go b/libs/ibc-go/modules/apps/transfer/types/hooks.go index 3d3d1e96c..5880f6f56 100644 --- a/libs/ibc-go/modules/apps/transfer/types/hooks.go +++ b/libs/ibc-go/modules/apps/transfer/types/hooks.go @@ -1,6 +1,6 @@ package types -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" type TransferHooks interface { AfterSendTransfer( diff --git a/libs/ibc-go/modules/apps/transfer/types/keys.go b/libs/ibc-go/modules/apps/transfer/types/keys.go index 56aaa6812..3d6104641 100644 --- a/libs/ibc-go/modules/apps/transfer/types/keys.go +++ b/libs/ibc-go/modules/apps/transfer/types/keys.go @@ -4,7 +4,7 @@ import ( "crypto/sha256" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/libs/ibc-go/modules/apps/transfer/types/keys_test.go b/libs/ibc-go/modules/apps/transfer/types/keys_test.go index d7593642a..ea0679823 100644 --- a/libs/ibc-go/modules/apps/transfer/types/keys_test.go +++ b/libs/ibc-go/modules/apps/transfer/types/keys_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) // Test that there is domain separation between the port id and the channel id otherwise an diff --git a/libs/ibc-go/modules/apps/transfer/types/msg_adapter.go b/libs/ibc-go/modules/apps/transfer/types/msg_adapter.go index dc485a0b3..dfe3eef78 100644 --- a/libs/ibc-go/modules/apps/transfer/types/msg_adapter.go +++ b/libs/ibc-go/modules/apps/transfer/types/msg_adapter.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/system" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/system" ) // for denom convert wei to okb and reject okb direct diff --git a/libs/ibc-go/modules/apps/transfer/types/msgs.go b/libs/ibc-go/modules/apps/transfer/types/msgs.go index 84655a88d..e09f8fdc6 100644 --- a/libs/ibc-go/modules/apps/transfer/types/msgs.go +++ b/libs/ibc-go/modules/apps/transfer/types/msgs.go @@ -1,14 +1,14 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - //"github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + //"github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" "strings" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // msg types diff --git a/libs/ibc-go/modules/apps/transfer/types/msgs_test.go b/libs/ibc-go/modules/apps/transfer/types/msgs_test.go index db5d8c0fb..edc19ca87 100644 --- a/libs/ibc-go/modules/apps/transfer/types/msgs_test.go +++ b/libs/ibc-go/modules/apps/transfer/types/msgs_test.go @@ -2,15 +2,15 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "math/big" "testing" "github.com/stretchr/testify/require" - //"github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/secp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + //"github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/secp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" ) // define constants used for testing diff --git a/libs/ibc-go/modules/apps/transfer/types/packet.go b/libs/ibc-go/modules/apps/transfer/types/packet.go index f1ea4c2ce..56848e856 100644 --- a/libs/ibc-go/modules/apps/transfer/types/packet.go +++ b/libs/ibc-go/modules/apps/transfer/types/packet.go @@ -4,8 +4,8 @@ import ( "strings" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/libs/ibc-go/modules/apps/transfer/types/params.go b/libs/ibc-go/modules/apps/transfer/types/params.go index d5f9fc01c..4db9723b7 100644 --- a/libs/ibc-go/modules/apps/transfer/types/params.go +++ b/libs/ibc-go/modules/apps/transfer/types/params.go @@ -3,7 +3,7 @@ package types import ( "fmt" - paramtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + paramtypes "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) const ( diff --git a/libs/ibc-go/modules/apps/transfer/types/query.pb.go b/libs/ibc-go/modules/apps/transfer/types/query.pb.go index bcd65c4bb..b4ff78c7b 100644 --- a/libs/ibc-go/modules/apps/transfer/types/query.pb.go +++ b/libs/ibc-go/modules/apps/transfer/types/query.pb.go @@ -9,7 +9,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" diff --git a/libs/ibc-go/modules/apps/transfer/types/trace.go b/libs/ibc-go/modules/apps/transfer/types/trace.go index e0a0dad21..e774ee406 100644 --- a/libs/ibc-go/modules/apps/transfer/types/trace.go +++ b/libs/ibc-go/modules/apps/transfer/types/trace.go @@ -7,11 +7,11 @@ import ( "sort" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // ParseDenomTrace parses a string with the ibc prefix (denom trace) and the base denomination diff --git a/libs/ibc-go/modules/apps/transfer/types/tx.pb.go b/libs/ibc-go/modules/apps/transfer/types/tx.pb.go index af2d733d2..074b9d45d 100644 --- a/libs/ibc-go/modules/apps/transfer/types/tx.pb.go +++ b/libs/ibc-go/modules/apps/transfer/types/tx.pb.go @@ -6,8 +6,8 @@ package types import ( context "context" fmt "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/types" - types1 "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" + types1 "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" //types "github.com/cosmos/cosmos-sdk/types" //types1 "github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types" _ "github.com/gogo/protobuf/gogoproto" diff --git a/libs/ibc-go/modules/core/02-client/abci.go b/libs/ibc-go/modules/core/02-client/abci.go index a84f54580..fa0a237ee 100644 --- a/libs/ibc-go/modules/core/02-client/abci.go +++ b/libs/ibc-go/modules/core/02-client/abci.go @@ -1,10 +1,10 @@ package client import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" ) // BeginBlocker updates an existing localhost client with the latest block height. diff --git a/libs/ibc-go/modules/core/02-client/abci_test.go b/libs/ibc-go/modules/core/02-client/abci_test.go index 3e5233b82..3f4564a25 100644 --- a/libs/ibc-go/modules/core/02-client/abci_test.go +++ b/libs/ibc-go/modules/core/02-client/abci_test.go @@ -3,16 +3,16 @@ package client_test import ( "testing" - client "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client" + client "github.com/okx/brczero/libs/ibc-go/modules/core/02-client" "github.com/stretchr/testify/suite" // abci "github.com/tendermint/tendermint/abci/types" // tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - localhosttypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/09-localhost/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + localhosttypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/09-localhost/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) type ClientTestSuite struct { diff --git a/libs/ibc-go/modules/core/02-client/client/cli/cli.go b/libs/ibc-go/modules/core/02-client/client/cli/cli.go index af20cd3a2..e9288cb8a 100644 --- a/libs/ibc-go/modules/core/02-client/client/cli/cli.go +++ b/libs/ibc-go/modules/core/02-client/client/cli/cli.go @@ -1,10 +1,10 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/02-client/client/cli/query.go b/libs/ibc-go/modules/core/02-client/client/cli/query.go index 6c9c575fc..d7493285b 100644 --- a/libs/ibc-go/modules/core/02-client/client/cli/query.go +++ b/libs/ibc-go/modules/core/02-client/client/cli/query.go @@ -4,15 +4,15 @@ import ( "errors" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/client/utils" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/client/utils" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/02-client/client/cli/tx.go b/libs/ibc-go/modules/core/02-client/client/cli/tx.go index 0f0d2ddd3..50b39ce08 100644 --- a/libs/ibc-go/modules/core/02-client/client/cli/tx.go +++ b/libs/ibc-go/modules/core/02-client/client/cli/tx.go @@ -6,19 +6,19 @@ import ( "io/ioutil" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - govcli "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/cli" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - tmtypes "github.com/okx/okbchain/libs/tendermint/proto/types" - govtypes "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + govcli "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/cli" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + tmtypes "github.com/okx/brczero/libs/tendermint/proto/types" + govtypes "github.com/okx/brczero/x/gov/types" "github.com/pkg/errors" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/02-client/client/proposal_handler.go b/libs/ibc-go/modules/core/02-client/client/proposal_handler.go index a9a966ba4..4285e00cf 100644 --- a/libs/ibc-go/modules/core/02-client/client/proposal_handler.go +++ b/libs/ibc-go/modules/core/02-client/client/proposal_handler.go @@ -1,11 +1,11 @@ package client import ( - cliContext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/client/cli" - govclient "github.com/okx/okbchain/x/gov/client" - govrest "github.com/okx/okbchain/x/gov/client/rest" + cliContext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/client/cli" + govclient "github.com/okx/brczero/x/gov/client" + govrest "github.com/okx/brczero/x/gov/client/rest" "net/http" ) diff --git a/libs/ibc-go/modules/core/02-client/client/utils/utils.go b/libs/ibc-go/modules/core/02-client/client/utils/utils.go index 64a313d31..8f5ca3fe2 100644 --- a/libs/ibc-go/modules/core/02-client/client/utils/utils.go +++ b/libs/ibc-go/modules/core/02-client/client/utils/utils.go @@ -3,15 +3,15 @@ package utils import ( "context" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibcclient "github.com/okx/okbchain/libs/ibc-go/modules/core/client" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibcclient "github.com/okx/brczero/libs/ibc-go/modules/core/client" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // QueryClientState returns a client state. If prove is true, it performs an ABCI store query diff --git a/libs/ibc-go/modules/core/02-client/genesis.go b/libs/ibc-go/modules/core/02-client/genesis.go index 792fa3149..c91925289 100644 --- a/libs/ibc-go/modules/core/02-client/genesis.go +++ b/libs/ibc-go/modules/core/02-client/genesis.go @@ -3,10 +3,10 @@ package client import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // InitGenesis initializes the ibc client submodule's state from a provided genesis diff --git a/libs/ibc-go/modules/core/02-client/keeper/client.go b/libs/ibc-go/modules/core/02-client/keeper/client.go index 36a48d9bc..220bfd920 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/client.go +++ b/libs/ibc-go/modules/core/02-client/keeper/client.go @@ -3,10 +3,10 @@ package keeper import ( "encoding/hex" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // CreateClient creates a new client state and populates it with a given consensus diff --git a/libs/ibc-go/modules/core/02-client/keeper/client_test.go b/libs/ibc-go/modules/core/02-client/keeper/client_test.go index 02b31f408..a9a5c5cf7 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/client_test.go +++ b/libs/ibc-go/modules/core/02-client/keeper/client_test.go @@ -9,13 +9,13 @@ import ( // tmtypes "github.com/tendermint/tendermint/types" // upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - localhosttypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/09-localhost/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + localhosttypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/09-localhost/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) const ( diff --git a/libs/ibc-go/modules/core/02-client/keeper/encoding.go b/libs/ibc-go/modules/core/02-client/keeper/encoding.go index ea5f2f5c1..e2ac80cb1 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/encoding.go +++ b/libs/ibc-go/modules/core/02-client/keeper/encoding.go @@ -1,8 +1,8 @@ package keeper import ( - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // MustUnmarshalClientState attempts to decode and return an ClientState object from diff --git a/libs/ibc-go/modules/core/02-client/keeper/grpc_query.go b/libs/ibc-go/modules/core/02-client/keeper/grpc_query.go index cfd67e108..c5dafd009 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/grpc_query.go +++ b/libs/ibc-go/modules/core/02-client/keeper/grpc_query.go @@ -7,13 +7,13 @@ import ( "sort" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/libs/ibc-go/modules/core/02-client/keeper/keeper.go b/libs/ibc-go/modules/core/02-client/keeper/keeper.go index 48af9943d..28928bdfd 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/keeper.go +++ b/libs/ibc-go/modules/core/02-client/keeper/keeper.go @@ -6,20 +6,20 @@ import ( "reflect" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - lite "github.com/okx/okbchain/libs/tendermint/lite2" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + lite "github.com/okx/brczero/libs/tendermint/lite2" ) type Keeper struct { diff --git a/libs/ibc-go/modules/core/02-client/keeper/keeper_test.go b/libs/ibc-go/modules/core/02-client/keeper/keeper_test.go index f49126963..f184d5ff4 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/keeper_test.go +++ b/libs/ibc-go/modules/core/02-client/keeper/keeper_test.go @@ -5,26 +5,26 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - tmproto "github.com/okx/okbchain/libs/tendermint/abci/types" - stakingtypes "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + tmproto "github.com/okx/brczero/libs/tendermint/abci/types" + stakingtypes "github.com/okx/brczero/x/staking/types" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - // tmproto "github.com/okx/okbchain/libs/tendermint/proto/tendermint/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + // tmproto "github.com/okx/brczero/libs/tendermint/proto/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/suite" // stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - localhosttypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/09-localhost/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibctestingmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + localhosttypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/09-localhost/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibctestingmock "github.com/okx/brczero/libs/ibc-go/testing/mock" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) const ( diff --git a/libs/ibc-go/modules/core/02-client/keeper/params.go b/libs/ibc-go/modules/core/02-client/keeper/params.go index b4f042719..842749076 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/params.go +++ b/libs/ibc-go/modules/core/02-client/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" ) // GetAllowedClients retrieves the receive enabled boolean from the paramstore diff --git a/libs/ibc-go/modules/core/02-client/keeper/params_test.go b/libs/ibc-go/modules/core/02-client/keeper/params_test.go index e0820f023..f1670d1bf 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/params_test.go +++ b/libs/ibc-go/modules/core/02-client/keeper/params_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" ) func (suite *KeeperTestSuite) TestParams() { diff --git a/libs/ibc-go/modules/core/02-client/keeper/proposal.go b/libs/ibc-go/modules/core/02-client/keeper/proposal.go index 4a8537727..96649dedb 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/proposal.go +++ b/libs/ibc-go/modules/core/02-client/keeper/proposal.go @@ -1,11 +1,11 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // ClientUpdateProposal will try to update the client with the new header if and only if diff --git a/libs/ibc-go/modules/core/02-client/keeper/proposal_test.go b/libs/ibc-go/modules/core/02-client/keeper/proposal_test.go index 18249560c..7ed7184d3 100644 --- a/libs/ibc-go/modules/core/02-client/keeper/proposal_test.go +++ b/libs/ibc-go/modules/core/02-client/keeper/proposal_test.go @@ -1,14 +1,14 @@ package keeper_test import ( - govtypes "github.com/okx/okbchain/x/gov/types" + govtypes "github.com/okx/brczero/x/gov/types" // govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" // upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *KeeperTestSuite) TestClientUpdateProposal() { diff --git a/libs/ibc-go/modules/core/02-client/module.go b/libs/ibc-go/modules/core/02-client/module.go index df03aa508..cf81c0a03 100644 --- a/libs/ibc-go/modules/core/02-client/module.go +++ b/libs/ibc-go/modules/core/02-client/module.go @@ -2,10 +2,10 @@ package client import ( "github.com/gogo/protobuf/grpc" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/client/cli" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/client/cli" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/02-client/proposal_handler.go b/libs/ibc-go/modules/core/02-client/proposal_handler.go index cacb14d7d..658a7bcbd 100644 --- a/libs/ibc-go/modules/core/02-client/proposal_handler.go +++ b/libs/ibc-go/modules/core/02-client/proposal_handler.go @@ -1,11 +1,11 @@ package client import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + govtypes "github.com/okx/brczero/x/gov/types" ) // NewClientUpdateProposalHandler defines the client update proposal handler diff --git a/libs/ibc-go/modules/core/02-client/simulation/decoder.go b/libs/ibc-go/modules/core/02-client/simulation/decoder.go index 156026b87..b08e39fa8 100644 --- a/libs/ibc-go/modules/core/02-client/simulation/decoder.go +++ b/libs/ibc-go/modules/core/02-client/simulation/decoder.go @@ -4,10 +4,10 @@ import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/keeper" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/keeper" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/tendermint/libs/kv" ) var _ ClientUnmarshaler = (*keeper.Keeper)(nil) diff --git a/libs/ibc-go/modules/core/02-client/simulation/decoder_test.go b/libs/ibc-go/modules/core/02-client/simulation/decoder_test.go index ab678a67d..6d4a2438d 100644 --- a/libs/ibc-go/modules/core/02-client/simulation/decoder_test.go +++ b/libs/ibc-go/modules/core/02-client/simulation/decoder_test.go @@ -5,17 +5,17 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/types/kv" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/types/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" "github.com/stretchr/testify/require" // "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) func TestDecodeStore(t *testing.T) { diff --git a/libs/ibc-go/modules/core/02-client/simulation/genesis.go b/libs/ibc-go/modules/core/02-client/simulation/genesis.go index a8d276a51..ab7e9bdbf 100644 --- a/libs/ibc-go/modules/core/02-client/simulation/genesis.go +++ b/libs/ibc-go/modules/core/02-client/simulation/genesis.go @@ -3,8 +3,8 @@ package simulation import ( "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" ) // GenClientGenesis returns the default client genesis state. diff --git a/libs/ibc-go/modules/core/02-client/types/client.go b/libs/ibc-go/modules/core/02-client/types/client.go index f3b7b7052..b24212a2a 100644 --- a/libs/ibc-go/modules/core/02-client/types/client.go +++ b/libs/ibc-go/modules/core/02-client/types/client.go @@ -7,10 +7,10 @@ import ( "strings" "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // UnpackInterfaces implements UnpackInterfacesMesssage.UnpackInterfaces diff --git a/libs/ibc-go/modules/core/02-client/types/client.pb.go b/libs/ibc-go/modules/core/02-client/types/client.pb.go index 78bca01b5..19264950e 100644 --- a/libs/ibc-go/modules/core/02-client/types/client.pb.go +++ b/libs/ibc-go/modules/core/02-client/types/client.pb.go @@ -7,8 +7,8 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - types1 "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/typesadapter" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + types1 "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/typesadapter" io "io" math "math" math_bits "math/bits" diff --git a/libs/ibc-go/modules/core/02-client/types/client_test.go b/libs/ibc-go/modules/core/02-client/types/client_test.go index 8b90ab0a6..2712c8c17 100644 --- a/libs/ibc-go/modules/core/02-client/types/client_test.go +++ b/libs/ibc-go/modules/core/02-client/types/client_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *TypesTestSuite) TestMarshalConsensusStateWithHeight() { diff --git a/libs/ibc-go/modules/core/02-client/types/codec.go b/libs/ibc-go/modules/core/02-client/types/codec.go index 91a712ad2..25edb03de 100644 --- a/libs/ibc-go/modules/core/02-client/types/codec.go +++ b/libs/ibc-go/modules/core/02-client/types/codec.go @@ -2,14 +2,14 @@ package types import ( "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/x/gov/types" ) func init() { diff --git a/libs/ibc-go/modules/core/02-client/types/codec_test.go b/libs/ibc-go/modules/core/02-client/types/codec_test.go index 2e6b631bf..52a4bb820 100644 --- a/libs/ibc-go/modules/core/02-client/types/codec_test.go +++ b/libs/ibc-go/modules/core/02-client/types/codec_test.go @@ -1,14 +1,14 @@ package types_test import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" // codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - localhosttypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/09-localhost/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + localhosttypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/09-localhost/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) type caseAny struct { diff --git a/libs/ibc-go/modules/core/02-client/types/encoding.go b/libs/ibc-go/modules/core/02-client/types/encoding.go index 04a62f469..c0bb9943c 100644 --- a/libs/ibc-go/modules/core/02-client/types/encoding.go +++ b/libs/ibc-go/modules/core/02-client/types/encoding.go @@ -3,8 +3,8 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // MustUnmarshalClientState attempts to decode and return an ClientState object from diff --git a/libs/ibc-go/modules/core/02-client/types/encoding_test.go b/libs/ibc-go/modules/core/02-client/types/encoding_test.go index 6f56664c4..5a0d0f5d5 100644 --- a/libs/ibc-go/modules/core/02-client/types/encoding_test.go +++ b/libs/ibc-go/modules/core/02-client/types/encoding_test.go @@ -1,8 +1,8 @@ package types_test import ( - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" ) func (suite *TypesTestSuite) TestMarshalHeader() { diff --git a/libs/ibc-go/modules/core/02-client/types/errors.go b/libs/ibc-go/modules/core/02-client/types/errors.go index 0e2c24067..a0dc09151 100644 --- a/libs/ibc-go/modules/core/02-client/types/errors.go +++ b/libs/ibc-go/modules/core/02-client/types/errors.go @@ -1,6 +1,6 @@ package types -import sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +import sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" // IBC client sentinel errors var ( diff --git a/libs/ibc-go/modules/core/02-client/types/events.go b/libs/ibc-go/modules/core/02-client/types/events.go index 1b61a2249..766da2661 100644 --- a/libs/ibc-go/modules/core/02-client/types/events.go +++ b/libs/ibc-go/modules/core/02-client/types/events.go @@ -3,7 +3,7 @@ package types import ( "fmt" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // IBC client events diff --git a/libs/ibc-go/modules/core/02-client/types/genesis.go b/libs/ibc-go/modules/core/02-client/types/genesis.go index ba21aa94d..6b3e4e9be 100644 --- a/libs/ibc-go/modules/core/02-client/types/genesis.go +++ b/libs/ibc-go/modules/core/02-client/types/genesis.go @@ -4,9 +4,9 @@ import ( "fmt" "sort" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // ClientsConsensusStates defines a slice of ClientConsensusStates that supports the sort interface diff --git a/libs/ibc-go/modules/core/02-client/types/genesis_test.go b/libs/ibc-go/modules/core/02-client/types/genesis_test.go index e95bbb0ef..1929428d7 100644 --- a/libs/ibc-go/modules/core/02-client/types/genesis_test.go +++ b/libs/ibc-go/modules/core/02-client/types/genesis_test.go @@ -1,19 +1,19 @@ package types_test import ( - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "time" // tmtypes "github.com/tendermint/tendermint/types" - client "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - localhosttypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/09-localhost/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibctestingmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" + client "github.com/okx/brczero/libs/ibc-go/modules/core/02-client" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + localhosttypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/09-localhost/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibctestingmock "github.com/okx/brczero/libs/ibc-go/testing/mock" ) const ( diff --git a/libs/ibc-go/modules/core/02-client/types/height.go b/libs/ibc-go/modules/core/02-client/types/height.go index a09835c21..df31b8005 100644 --- a/libs/ibc-go/modules/core/02-client/types/height.go +++ b/libs/ibc-go/modules/core/02-client/types/height.go @@ -7,9 +7,9 @@ import ( "strconv" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var _ exported.Height = (*Height)(nil) diff --git a/libs/ibc-go/modules/core/02-client/types/height_test.go b/libs/ibc-go/modules/core/02-client/types/height_test.go index ba1a1cab9..715cfe37a 100644 --- a/libs/ibc-go/modules/core/02-client/types/height_test.go +++ b/libs/ibc-go/modules/core/02-client/types/height_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" ) func TestZeroHeight(t *testing.T) { diff --git a/libs/ibc-go/modules/core/02-client/types/keys.go b/libs/ibc-go/modules/core/02-client/types/keys.go index e362ef3c0..9ce05e4b5 100644 --- a/libs/ibc-go/modules/core/02-client/types/keys.go +++ b/libs/ibc-go/modules/core/02-client/types/keys.go @@ -6,8 +6,8 @@ import ( "strconv" "strings" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) const ( diff --git a/libs/ibc-go/modules/core/02-client/types/keys_test.go b/libs/ibc-go/modules/core/02-client/types/keys_test.go index d300e482a..1354606d7 100644 --- a/libs/ibc-go/modules/core/02-client/types/keys_test.go +++ b/libs/ibc-go/modules/core/02-client/types/keys_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" ) // tests ParseClientIdentifier and IsValidClientID diff --git a/libs/ibc-go/modules/core/02-client/types/msgs.go b/libs/ibc-go/modules/core/02-client/types/msgs.go index e5295b0d6..6b908dded 100644 --- a/libs/ibc-go/modules/core/02-client/types/msgs.go +++ b/libs/ibc-go/modules/core/02-client/types/msgs.go @@ -1,11 +1,11 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // message types for the IBC client diff --git a/libs/ibc-go/modules/core/02-client/types/msgs_test.go b/libs/ibc-go/modules/core/02-client/types/msgs_test.go index 6b132ca7c..f4508240f 100644 --- a/libs/ibc-go/modules/core/02-client/types/msgs_test.go +++ b/libs/ibc-go/modules/core/02-client/types/msgs_test.go @@ -7,11 +7,11 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - solomachinetypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/06-solomachine/types" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + solomachinetypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/06-solomachine/types" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) type TypesTestSuite struct { diff --git a/libs/ibc-go/modules/core/02-client/types/params.go b/libs/ibc-go/modules/core/02-client/types/params.go index cfa841285..1949a7813 100644 --- a/libs/ibc-go/modules/core/02-client/types/params.go +++ b/libs/ibc-go/modules/core/02-client/types/params.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - paramtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + paramtypes "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/core/02-client/types/params_test.go b/libs/ibc-go/modules/core/02-client/types/params_test.go index 42e832321..493f358d4 100644 --- a/libs/ibc-go/modules/core/02-client/types/params_test.go +++ b/libs/ibc-go/modules/core/02-client/types/params_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) func TestValidateParams(t *testing.T) { diff --git a/libs/ibc-go/modules/core/02-client/types/proposal.go b/libs/ibc-go/modules/core/02-client/types/proposal.go index 0c46f72cd..6f2c7fb12 100644 --- a/libs/ibc-go/modules/core/02-client/types/proposal.go +++ b/libs/ibc-go/modules/core/02-client/types/proposal.go @@ -2,12 +2,12 @@ package types import ( "fmt" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - types "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/typesadapter" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - chaingov "github.com/okx/okbchain/x/gov/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + types "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/typesadapter" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + chaingov "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/libs/ibc-go/modules/core/02-client/types/proposal_test.go b/libs/ibc-go/modules/core/02-client/types/proposal_test.go index a00fc4355..8bf34adff 100644 --- a/libs/ibc-go/modules/core/02-client/types/proposal_test.go +++ b/libs/ibc-go/modules/core/02-client/types/proposal_test.go @@ -1,14 +1,14 @@ package types_test import ( - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" // "github.com/cosmos/cosmos-sdk/codec" // codectypes "github.com/cosmos/cosmos-sdk/codec/types" // govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" // upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *TypesTestSuite) testValidateBasic() { diff --git a/libs/ibc-go/modules/core/02-client/types/query.go b/libs/ibc-go/modules/core/02-client/types/query.go index 2acf5d5f7..b900ccd91 100644 --- a/libs/ibc-go/modules/core/02-client/types/query.go +++ b/libs/ibc-go/modules/core/02-client/types/query.go @@ -1,8 +1,8 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/core/02-client/types/query.pb.go b/libs/ibc-go/modules/core/02-client/types/query.pb.go index 2a339858a..e96c2dec9 100644 --- a/libs/ibc-go/modules/core/02-client/types/query.pb.go +++ b/libs/ibc-go/modules/core/02-client/types/query.pb.go @@ -13,8 +13,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - types "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - query "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + types "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + query "github.com/okx/brczero/libs/cosmos-sdk/types/query" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" diff --git a/libs/ibc-go/modules/core/02-client/types/stake.go b/libs/ibc-go/modules/core/02-client/types/stake.go index 6523d32b3..9a4ef5f95 100644 --- a/libs/ibc-go/modules/core/02-client/types/stake.go +++ b/libs/ibc-go/modules/core/02-client/types/stake.go @@ -1,11 +1,11 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - stakingtypes "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + stakingtypes "github.com/okx/brczero/x/staking/types" ) // StakingKeeper expected staking keeper diff --git a/libs/ibc-go/modules/core/02-client/types/tx.pb.go b/libs/ibc-go/modules/core/02-client/types/tx.pb.go index 3b64a82bd..a6bb9936d 100644 --- a/libs/ibc-go/modules/core/02-client/types/tx.pb.go +++ b/libs/ibc-go/modules/core/02-client/types/tx.pb.go @@ -9,7 +9,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/libs/ibc-go/modules/core/03-connection/client/cli/cli.go b/libs/ibc-go/modules/core/03-connection/client/cli/cli.go index 1365db519..972f65a0c 100644 --- a/libs/ibc-go/modules/core/03-connection/client/cli/cli.go +++ b/libs/ibc-go/modules/core/03-connection/client/cli/cli.go @@ -1,9 +1,9 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/03-connection/client/cli/query.go b/libs/ibc-go/modules/core/03-connection/client/cli/query.go index 54f2e1591..4679f0ae5 100644 --- a/libs/ibc-go/modules/core/03-connection/client/cli/query.go +++ b/libs/ibc-go/modules/core/03-connection/client/cli/query.go @@ -2,15 +2,15 @@ package cli import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - utils "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/client/utils" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + utils "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/client/utils" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/03-connection/client/utils/utils.go b/libs/ibc-go/modules/core/03-connection/client/utils/utils.go index 0c0a3f940..f4e4cb835 100644 --- a/libs/ibc-go/modules/core/03-connection/client/utils/utils.go +++ b/libs/ibc-go/modules/core/03-connection/client/utils/utils.go @@ -3,16 +3,16 @@ package utils import ( "context" "fmt" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/client/utils" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibcclient "github.com/okx/okbchain/libs/ibc-go/modules/core/client" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/client/utils" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibcclient "github.com/okx/brczero/libs/ibc-go/modules/core/client" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" "io/ioutil" "github.com/pkg/errors" diff --git a/libs/ibc-go/modules/core/03-connection/genesis.go b/libs/ibc-go/modules/core/03-connection/genesis.go index 0bb9d7c3a..627d81b1f 100644 --- a/libs/ibc-go/modules/core/03-connection/genesis.go +++ b/libs/ibc-go/modules/core/03-connection/genesis.go @@ -1,9 +1,9 @@ package connection import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" ) // InitGenesis initializes the ibc connection submodule's state from a provided genesis diff --git a/libs/ibc-go/modules/core/03-connection/keeper/events.go b/libs/ibc-go/modules/core/03-connection/keeper/events.go index 4739e7670..71fb7258b 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/events.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/events.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" ) // EmitConnectionOpenTryEvent emits a connection open try event diff --git a/libs/ibc-go/modules/core/03-connection/keeper/grpc_query.go b/libs/ibc-go/modules/core/03-connection/keeper/grpc_query.go index f8cc72699..a56ca8d1f 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/grpc_query.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/grpc_query.go @@ -3,14 +3,14 @@ package keeper import ( "context" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/common" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/common" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/libs/ibc-go/modules/core/03-connection/keeper/handshake.go b/libs/ibc-go/modules/core/03-connection/keeper/handshake.go index 0178da464..9d9950598 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/handshake.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/handshake.go @@ -3,16 +3,16 @@ package keeper import ( "bytes" - types2 "github.com/okx/okbchain/libs/tendermint/types" + types2 "github.com/okx/brczero/libs/tendermint/types" //"github.com/cosmos/cosmos-sdk/telemetry" "github.com/gogo/protobuf/proto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // ConnOpenInit initialises a connection attempt on chain A. The generated connection identifier diff --git a/libs/ibc-go/modules/core/03-connection/keeper/handshake_test.go b/libs/ibc-go/modules/core/03-connection/keeper/handshake_test.go index 382f7aee2..aa2cceef1 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/handshake_test.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/handshake_test.go @@ -3,12 +3,12 @@ package keeper_test import ( "time" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) // TestConnOpenInit - chainA initializes (INIT state) a connection with diff --git a/libs/ibc-go/modules/core/03-connection/keeper/keeper.go b/libs/ibc-go/modules/core/03-connection/keeper/keeper.go index 27cd542f3..2ecc33af7 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/keeper.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/keeper.go @@ -1,18 +1,18 @@ package keeper import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - - paramtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/common" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + + paramtypes "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/common" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // Keeper defines the IBC connection keeper diff --git a/libs/ibc-go/modules/core/03-connection/keeper/keeper_test.go b/libs/ibc-go/modules/core/03-connection/keeper/keeper_test.go index 0d32abb1c..9f68c6f7c 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/keeper_test.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/keeper_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) type KeeperTestSuite struct { diff --git a/libs/ibc-go/modules/core/03-connection/keeper/params.go b/libs/ibc-go/modules/core/03-connection/keeper/params.go index 64c5bbf0c..0e9f5f385 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/params.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" ) // GetMaxExpectedTimePerBlock retrieves the maximum expected time per block from the paramstore diff --git a/libs/ibc-go/modules/core/03-connection/keeper/params_test.go b/libs/ibc-go/modules/core/03-connection/keeper/params_test.go index 6ad88ddfb..a9ce32d38 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/params_test.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/params_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" ) func (suite *KeeperTestSuite) TestParams() { diff --git a/libs/ibc-go/modules/core/03-connection/keeper/v4keeper.go b/libs/ibc-go/modules/core/03-connection/keeper/v4keeper.go index af3eec172..c53a47598 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/v4keeper.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/v4keeper.go @@ -1,12 +1,12 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) func (k Keeper) ConnOpenTryV4( diff --git a/libs/ibc-go/modules/core/03-connection/keeper/verify.go b/libs/ibc-go/modules/core/03-connection/keeper/verify.go index 23e61ba98..66e7fc1eb 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/verify.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/verify.go @@ -3,10 +3,10 @@ package keeper import ( "math" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // VerifyClientState verifies a proof of a client state of the running machine diff --git a/libs/ibc-go/modules/core/03-connection/keeper/verify_test.go b/libs/ibc-go/modules/core/03-connection/keeper/verify_test.go index 410a79bb1..3940b6ee8 100644 --- a/libs/ibc-go/modules/core/03-connection/keeper/verify_test.go +++ b/libs/ibc-go/modules/core/03-connection/keeper/verify_test.go @@ -4,14 +4,14 @@ import ( "fmt" "time" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibcmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibcmock "github.com/okx/brczero/libs/ibc-go/testing/mock" ) var defaultTimeoutHeight = clienttypes.NewHeight(0, 100000) diff --git a/libs/ibc-go/modules/core/03-connection/module.go b/libs/ibc-go/modules/core/03-connection/module.go index 652462f9f..cb8ca6574 100644 --- a/libs/ibc-go/modules/core/03-connection/module.go +++ b/libs/ibc-go/modules/core/03-connection/module.go @@ -2,10 +2,10 @@ package connection import ( "github.com/gogo/protobuf/grpc" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/client/cli" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/client/cli" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/03-connection/simulation/decoder.go b/libs/ibc-go/modules/core/03-connection/simulation/decoder.go index 973c9009d..2eb8a868b 100644 --- a/libs/ibc-go/modules/core/03-connection/simulation/decoder.go +++ b/libs/ibc-go/modules/core/03-connection/simulation/decoder.go @@ -4,11 +4,11 @@ import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/common" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/common" + "github.com/okx/brczero/libs/tendermint/libs/kv" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/libs/ibc-go/modules/core/03-connection/simulation/decoder_test.go b/libs/ibc-go/modules/core/03-connection/simulation/decoder_test.go index 3590d1b80..440a72431 100644 --- a/libs/ibc-go/modules/core/03-connection/simulation/decoder_test.go +++ b/libs/ibc-go/modules/core/03-connection/simulation/decoder_test.go @@ -2,17 +2,17 @@ package simulation_test import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/types/kv" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/types/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" "testing" "github.com/stretchr/testify/require" // "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) func TestDecodeStore(t *testing.T) { diff --git a/libs/ibc-go/modules/core/03-connection/simulation/genesis.go b/libs/ibc-go/modules/core/03-connection/simulation/genesis.go index f3854859c..2099924e9 100644 --- a/libs/ibc-go/modules/core/03-connection/simulation/genesis.go +++ b/libs/ibc-go/modules/core/03-connection/simulation/genesis.go @@ -3,8 +3,8 @@ package simulation import ( "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" ) // GenConnectionGenesis returns the default connection genesis state. diff --git a/libs/ibc-go/modules/core/03-connection/types/codec.go b/libs/ibc-go/modules/core/03-connection/types/codec.go index 083df1cac..70e20cd25 100644 --- a/libs/ibc-go/modules/core/03-connection/types/codec.go +++ b/libs/ibc-go/modules/core/03-connection/types/codec.go @@ -1,11 +1,11 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // RegisterInterfaces register the ibc interfaces submodule implementations to protobuf diff --git a/libs/ibc-go/modules/core/03-connection/types/connection.go b/libs/ibc-go/modules/core/03-connection/types/connection.go index faade13e0..797e1bf5d 100644 --- a/libs/ibc-go/modules/core/03-connection/types/connection.go +++ b/libs/ibc-go/modules/core/03-connection/types/connection.go @@ -1,10 +1,10 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var _ exported.ConnectionI = (*ConnectionEnd)(nil) diff --git a/libs/ibc-go/modules/core/03-connection/types/connection.pb.go b/libs/ibc-go/modules/core/03-connection/types/connection.pb.go index bb47c6209..14f40df7c 100644 --- a/libs/ibc-go/modules/core/03-connection/types/connection.pb.go +++ b/libs/ibc-go/modules/core/03-connection/types/connection.pb.go @@ -7,7 +7,7 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" io "io" math "math" math_bits "math/bits" diff --git a/libs/ibc-go/modules/core/03-connection/types/connection_test.go b/libs/ibc-go/modules/core/03-connection/types/connection_test.go index 2fffa5bd6..fe11364a7 100644 --- a/libs/ibc-go/modules/core/03-connection/types/connection_test.go +++ b/libs/ibc-go/modules/core/03-connection/types/connection_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) var ( diff --git a/libs/ibc-go/modules/core/03-connection/types/errors.go b/libs/ibc-go/modules/core/03-connection/types/errors.go index bd0d64a53..f722905e9 100644 --- a/libs/ibc-go/modules/core/03-connection/types/errors.go +++ b/libs/ibc-go/modules/core/03-connection/types/errors.go @@ -1,6 +1,6 @@ package types -import sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +import sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" // IBC connection sentinel errors var ( diff --git a/libs/ibc-go/modules/core/03-connection/types/events.go b/libs/ibc-go/modules/core/03-connection/types/events.go index 452088944..78fbf3476 100644 --- a/libs/ibc-go/modules/core/03-connection/types/events.go +++ b/libs/ibc-go/modules/core/03-connection/types/events.go @@ -3,7 +3,7 @@ package types import ( "fmt" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // IBC connection events diff --git a/libs/ibc-go/modules/core/03-connection/types/expected_keepers.go b/libs/ibc-go/modules/core/03-connection/types/expected_keepers.go index ef7656841..2d511b040 100644 --- a/libs/ibc-go/modules/core/03-connection/types/expected_keepers.go +++ b/libs/ibc-go/modules/core/03-connection/types/expected_keepers.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // ClientKeeper expected account IBC client keeper diff --git a/libs/ibc-go/modules/core/03-connection/types/genesis.go b/libs/ibc-go/modules/core/03-connection/types/genesis.go index 0fb2a3227..2a38fa434 100644 --- a/libs/ibc-go/modules/core/03-connection/types/genesis.go +++ b/libs/ibc-go/modules/core/03-connection/types/genesis.go @@ -3,7 +3,7 @@ package types import ( "fmt" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // NewConnectionPaths creates a ConnectionPaths instance. diff --git a/libs/ibc-go/modules/core/03-connection/types/genesis_test.go b/libs/ibc-go/modules/core/03-connection/types/genesis_test.go index 7fc2755bd..6dc69a995 100644 --- a/libs/ibc-go/modules/core/03-connection/types/genesis_test.go +++ b/libs/ibc-go/modules/core/03-connection/types/genesis_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func TestValidateGenesis(t *testing.T) { diff --git a/libs/ibc-go/modules/core/03-connection/types/keys.go b/libs/ibc-go/modules/core/03-connection/types/keys.go index 4c5fe5115..39a59f747 100644 --- a/libs/ibc-go/modules/core/03-connection/types/keys.go +++ b/libs/ibc-go/modules/core/03-connection/types/keys.go @@ -4,8 +4,8 @@ import ( "fmt" "regexp" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) const ( diff --git a/libs/ibc-go/modules/core/03-connection/types/keys_test.go b/libs/ibc-go/modules/core/03-connection/types/keys_test.go index a3b4a4303..ed055af36 100644 --- a/libs/ibc-go/modules/core/03-connection/types/keys_test.go +++ b/libs/ibc-go/modules/core/03-connection/types/keys_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" ) // tests ParseConnectionSequence and IsValidConnectionID diff --git a/libs/ibc-go/modules/core/03-connection/types/msgs.go b/libs/ibc-go/modules/core/03-connection/types/msgs.go index a0d96a346..9f72803c8 100644 --- a/libs/ibc-go/modules/core/03-connection/types/msgs.go +++ b/libs/ibc-go/modules/core/03-connection/types/msgs.go @@ -1,13 +1,13 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/core/03-connection/types/msgs_test.go b/libs/ibc-go/modules/core/03-connection/types/msgs_test.go index 0807b0009..521304b5b 100644 --- a/libs/ibc-go/modules/core/03-connection/types/msgs_test.go +++ b/libs/ibc-go/modules/core/03-connection/types/msgs_test.go @@ -7,18 +7,18 @@ import ( "github.com/stretchr/testify/suite" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) var ( diff --git a/libs/ibc-go/modules/core/03-connection/types/param.go b/libs/ibc-go/modules/core/03-connection/types/param.go index d446259a8..893305899 100644 --- a/libs/ibc-go/modules/core/03-connection/types/param.go +++ b/libs/ibc-go/modules/core/03-connection/types/param.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - paramtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + paramtypes "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // DefaultTimePerBlock is the default value for maximum expected time per block (in nanoseconds). diff --git a/libs/ibc-go/modules/core/03-connection/types/params_test.go b/libs/ibc-go/modules/core/03-connection/types/params_test.go index cfb54f555..dc5510735 100644 --- a/libs/ibc-go/modules/core/03-connection/types/params_test.go +++ b/libs/ibc-go/modules/core/03-connection/types/params_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" "github.com/stretchr/testify/require" ) diff --git a/libs/ibc-go/modules/core/03-connection/types/query.go b/libs/ibc-go/modules/core/03-connection/types/query.go index 7d1d6c187..49f953785 100644 --- a/libs/ibc-go/modules/core/03-connection/types/query.go +++ b/libs/ibc-go/modules/core/03-connection/types/query.go @@ -1,9 +1,9 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/core/03-connection/types/query.pb.go b/libs/ibc-go/modules/core/03-connection/types/query.pb.go index dd7abf461..f273f2b33 100644 --- a/libs/ibc-go/modules/core/03-connection/types/query.pb.go +++ b/libs/ibc-go/modules/core/03-connection/types/query.pb.go @@ -6,9 +6,9 @@ package types import ( context "context" fmt "fmt" - types1 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + types1 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" //types1 "github.com/cosmos/cosmos-sdk/codec/types" //query "github.com/cosmos/cosmos-sdk/types/query" diff --git a/libs/ibc-go/modules/core/03-connection/types/tx.pb.go b/libs/ibc-go/modules/core/03-connection/types/tx.pb.go index c4e001862..27ea27f47 100644 --- a/libs/ibc-go/modules/core/03-connection/types/tx.pb.go +++ b/libs/ibc-go/modules/core/03-connection/types/tx.pb.go @@ -6,8 +6,8 @@ package types import ( context "context" fmt "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - types1 "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + types1 "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" //types "github.com/cosmos/cosmos-sdk/codec/types" //types1 "github.com/cosmos/cosmos-sdk/x/ibc/core/02-client/types" diff --git a/libs/ibc-go/modules/core/03-connection/types/version.go b/libs/ibc-go/modules/core/03-connection/types/version.go index a83cf635a..d79087a54 100644 --- a/libs/ibc-go/modules/core/03-connection/types/version.go +++ b/libs/ibc-go/modules/core/03-connection/types/version.go @@ -3,8 +3,8 @@ package types import ( "strings" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/core/03-connection/types/version_test.go b/libs/ibc-go/modules/core/03-connection/types/version_test.go index c7a6481ab..ed852cbcf 100644 --- a/libs/ibc-go/modules/core/03-connection/types/version_test.go +++ b/libs/ibc-go/modules/core/03-connection/types/version_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func TestValidateVersion(t *testing.T) { diff --git a/libs/ibc-go/modules/core/04-channel/client/cli/cli.go b/libs/ibc-go/modules/core/04-channel/client/cli/cli.go index aa99818a4..e00ff489c 100644 --- a/libs/ibc-go/modules/core/04-channel/client/cli/cli.go +++ b/libs/ibc-go/modules/core/04-channel/client/cli/cli.go @@ -1,10 +1,10 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/04-channel/client/cli/query.go b/libs/ibc-go/modules/core/04-channel/client/cli/query.go index cec969e83..dbef92bba 100644 --- a/libs/ibc-go/modules/core/04-channel/client/cli/query.go +++ b/libs/ibc-go/modules/core/04-channel/client/cli/query.go @@ -2,15 +2,15 @@ package cli import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/client/utils" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/client/utils" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" "github.com/spf13/cobra" "strconv" ) diff --git a/libs/ibc-go/modules/core/04-channel/client/utils/utils.go b/libs/ibc-go/modules/core/04-channel/client/utils/utils.go index 17442f588..214cf0037 100644 --- a/libs/ibc-go/modules/core/04-channel/client/utils/utils.go +++ b/libs/ibc-go/modules/core/04-channel/client/utils/utils.go @@ -4,14 +4,14 @@ package utils import ( "context" "encoding/binary" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/client/utils" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibcclient "github.com/okx/okbchain/libs/ibc-go/modules/core/client" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/client/utils" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibcclient "github.com/okx/brczero/libs/ibc-go/modules/core/client" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // QueryChannel returns a channel end. diff --git a/libs/ibc-go/modules/core/04-channel/genesis.go b/libs/ibc-go/modules/core/04-channel/genesis.go index 9b7244553..5a555004c 100644 --- a/libs/ibc-go/modules/core/04-channel/genesis.go +++ b/libs/ibc-go/modules/core/04-channel/genesis.go @@ -1,9 +1,9 @@ package channel import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // InitGenesis initializes the ibc channel submodule's state from a provided genesis diff --git a/libs/ibc-go/modules/core/04-channel/handler.go b/libs/ibc-go/modules/core/04-channel/handler.go index 7d204d170..8a8b1d5e4 100644 --- a/libs/ibc-go/modules/core/04-channel/handler.go +++ b/libs/ibc-go/modules/core/04-channel/handler.go @@ -1,11 +1,11 @@ package channel import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // HandleMsgChannelOpenInit defines the sdk.Handler for MsgChannelOpenInit diff --git a/libs/ibc-go/modules/core/04-channel/keeper/events.go b/libs/ibc-go/modules/core/04-channel/keeper/events.go index f38326eae..e55f45204 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/events.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/events.go @@ -4,10 +4,10 @@ import ( "encoding/hex" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // EmitSendPacketEvent emits an event with packet data along with other packet information for relayer diff --git a/libs/ibc-go/modules/core/04-channel/keeper/grpc_query.go b/libs/ibc-go/modules/core/04-channel/keeper/grpc_query.go index 52238290d..8379b866c 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/grpc_query.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/grpc_query.go @@ -5,14 +5,14 @@ import ( "strconv" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" diff --git a/libs/ibc-go/modules/core/04-channel/keeper/handshake.go b/libs/ibc-go/modules/core/04-channel/keeper/handshake.go index 673d67d40..b5a072d8c 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/handshake.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/handshake.go @@ -1,14 +1,14 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // CounterpartyHops returns the connection hops of the counterparty channel. diff --git a/libs/ibc-go/modules/core/04-channel/keeper/handshake_test.go b/libs/ibc-go/modules/core/04-channel/keeper/handshake_test.go index 8dbbbccf8..77f5d66eb 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/handshake_test.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/handshake_test.go @@ -3,16 +3,16 @@ package keeper_test import ( "fmt" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" // capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) type testCase = struct { diff --git a/libs/ibc-go/modules/core/04-channel/keeper/handshake_v4.go b/libs/ibc-go/modules/core/04-channel/keeper/handshake_v4.go index 22e6870b7..4a56984cd 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/handshake_v4.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/handshake_v4.go @@ -3,14 +3,14 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // ChanOpenInit is called by a module to initiate a channel opening handshake with diff --git a/libs/ibc-go/modules/core/04-channel/keeper/keeper.go b/libs/ibc-go/modules/core/04-channel/keeper/keeper.go index da52fcddf..bee2e4c9b 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/keeper.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/keeper.go @@ -4,20 +4,20 @@ import ( "strconv" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/common" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/tendermint/libs/log" - db "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/common" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/tendermint/libs/log" + db "github.com/okx/brczero/libs/tm-db" ) // Keeper defines the IBC channel keeper diff --git a/libs/ibc-go/modules/core/04-channel/keeper/keeper_test.go b/libs/ibc-go/modules/core/04-channel/keeper/keeper_test.go index 1d68d3805..1a4abf44e 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/keeper_test.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/keeper_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) // KeeperTestSuite is a testing suite to test keeper functions. diff --git a/libs/ibc-go/modules/core/04-channel/keeper/packet.go b/libs/ibc-go/modules/core/04-channel/keeper/packet.go index 225b19674..f85e7598b 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/packet.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/packet.go @@ -4,14 +4,14 @@ import ( "bytes" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // SendPacket is called by a module in order to send an IBC packet on a channel diff --git a/libs/ibc-go/modules/core/04-channel/keeper/packet_test.go b/libs/ibc-go/modules/core/04-channel/keeper/packet_test.go index 14abdb18f..597a22bc7 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/packet_test.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/packet_test.go @@ -4,17 +4,17 @@ import ( "errors" "fmt" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibcmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibcmock "github.com/okx/brczero/libs/ibc-go/testing/mock" ) var ( diff --git a/libs/ibc-go/modules/core/04-channel/keeper/timeout.go b/libs/ibc-go/modules/core/04-channel/keeper/timeout.go index fe4676335..acbc5cdd2 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/timeout.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/timeout.go @@ -3,15 +3,15 @@ package keeper import ( "bytes" - types2 "github.com/okx/okbchain/libs/tendermint/types" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + types2 "github.com/okx/brczero/libs/tendermint/types" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // TimeoutPacket is called by a module which originally attempted to send a diff --git a/libs/ibc-go/modules/core/04-channel/keeper/timeout_test.go b/libs/ibc-go/modules/core/04-channel/keeper/timeout_test.go index 2bbd420f5..01e226d35 100644 --- a/libs/ibc-go/modules/core/04-channel/keeper/timeout_test.go +++ b/libs/ibc-go/modules/core/04-channel/keeper/timeout_test.go @@ -3,18 +3,18 @@ package keeper_test import ( "errors" "fmt" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" // sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" // capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) // TestTimeoutPacket test the TimeoutPacket call on chainA by ensuring the timeout has passed diff --git a/libs/ibc-go/modules/core/04-channel/module.go b/libs/ibc-go/modules/core/04-channel/module.go index c4269e40e..862982c83 100644 --- a/libs/ibc-go/modules/core/04-channel/module.go +++ b/libs/ibc-go/modules/core/04-channel/module.go @@ -2,10 +2,10 @@ package channel import ( "github.com/gogo/protobuf/grpc" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/client/cli" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/client/cli" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/04-channel/simulation/decoder.go b/libs/ibc-go/modules/core/04-channel/simulation/decoder.go index bc2363562..b4db37429 100644 --- a/libs/ibc-go/modules/core/04-channel/simulation/decoder.go +++ b/libs/ibc-go/modules/core/04-channel/simulation/decoder.go @@ -4,12 +4,12 @@ import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/common" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/common" + "github.com/okx/brczero/libs/tendermint/libs/kv" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/libs/ibc-go/modules/core/04-channel/simulation/decoder_test.go b/libs/ibc-go/modules/core/04-channel/simulation/decoder_test.go index 0a7fb663c..1049bdbf6 100644 --- a/libs/ibc-go/modules/core/04-channel/simulation/decoder_test.go +++ b/libs/ibc-go/modules/core/04-channel/simulation/decoder_test.go @@ -2,17 +2,17 @@ package simulation_test import ( "fmt" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" "testing" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/kv" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/kv" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) func TestDecodeStore(t *testing.T) { diff --git a/libs/ibc-go/modules/core/04-channel/simulation/genesis.go b/libs/ibc-go/modules/core/04-channel/simulation/genesis.go index cd6b17b1c..78b2d0bb8 100644 --- a/libs/ibc-go/modules/core/04-channel/simulation/genesis.go +++ b/libs/ibc-go/modules/core/04-channel/simulation/genesis.go @@ -3,8 +3,8 @@ package simulation import ( "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // GenChannelGenesis returns the default channel genesis state. diff --git a/libs/ibc-go/modules/core/04-channel/types/acknowledgement.go b/libs/ibc-go/modules/core/04-channel/types/acknowledgement.go index d629c4426..42c19b009 100644 --- a/libs/ibc-go/modules/core/04-channel/types/acknowledgement.go +++ b/libs/ibc-go/modules/core/04-channel/types/acknowledgement.go @@ -4,8 +4,8 @@ import ( "reflect" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // NewResultAcknowledgement returns a new instance of Acknowledgement using an Acknowledgement_Result diff --git a/libs/ibc-go/modules/core/04-channel/types/acknowledgement_test.go b/libs/ibc-go/modules/core/04-channel/types/acknowledgement_test.go index c863c0f3f..61c5d5afc 100644 --- a/libs/ibc-go/modules/core/04-channel/types/acknowledgement_test.go +++ b/libs/ibc-go/modules/core/04-channel/types/acknowledgement_test.go @@ -1,6 +1,6 @@ package types_test -import "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" +import "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" // tests acknowledgement.ValidateBasic and acknowledgement.GetBytes func (suite TypesTestSuite) TestAcknowledgement() { diff --git a/libs/ibc-go/modules/core/04-channel/types/acknowledgement_v4.go b/libs/ibc-go/modules/core/04-channel/types/acknowledgement_v4.go index b0607b165..9de48e48a 100644 --- a/libs/ibc-go/modules/core/04-channel/types/acknowledgement_v4.go +++ b/libs/ibc-go/modules/core/04-channel/types/acknowledgement_v4.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/libs/ibc-go/modules/core/04-channel/types/channel.go b/libs/ibc-go/modules/core/04-channel/types/channel.go index 9b4139e9f..5d77928c6 100644 --- a/libs/ibc-go/modules/core/04-channel/types/channel.go +++ b/libs/ibc-go/modules/core/04-channel/types/channel.go @@ -1,9 +1,9 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/core/04-channel/types/channel.pb.go b/libs/ibc-go/modules/core/04-channel/types/channel.pb.go index d4c3c715f..fa58018fc 100644 --- a/libs/ibc-go/modules/core/04-channel/types/channel.pb.go +++ b/libs/ibc-go/modules/core/04-channel/types/channel.pb.go @@ -11,7 +11,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/libs/ibc-go/modules/core/04-channel/types/channel_test.go b/libs/ibc-go/modules/core/04-channel/types/channel_test.go index 465023c78..fa75668d3 100644 --- a/libs/ibc-go/modules/core/04-channel/types/channel_test.go +++ b/libs/ibc-go/modules/core/04-channel/types/channel_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) func TestChannelValidateBasic(t *testing.T) { diff --git a/libs/ibc-go/modules/core/04-channel/types/codec.go b/libs/ibc-go/modules/core/04-channel/types/codec.go index 3482a8f42..83fc6aa23 100644 --- a/libs/ibc-go/modules/core/04-channel/types/codec.go +++ b/libs/ibc-go/modules/core/04-channel/types/codec.go @@ -1,12 +1,12 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var SubModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) diff --git a/libs/ibc-go/modules/core/04-channel/types/errors.go b/libs/ibc-go/modules/core/04-channel/types/errors.go index 31b85d555..1ad41839d 100644 --- a/libs/ibc-go/modules/core/04-channel/types/errors.go +++ b/libs/ibc-go/modules/core/04-channel/types/errors.go @@ -1,6 +1,6 @@ package types -import sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +import sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" // IBC channel sentinel errors var ( diff --git a/libs/ibc-go/modules/core/04-channel/types/events.go b/libs/ibc-go/modules/core/04-channel/types/events.go index 059e9d7a7..f20293cc1 100644 --- a/libs/ibc-go/modules/core/04-channel/types/events.go +++ b/libs/ibc-go/modules/core/04-channel/types/events.go @@ -3,7 +3,7 @@ package types import ( "fmt" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // IBC channel events diff --git a/libs/ibc-go/modules/core/04-channel/types/excepted_keeper.go b/libs/ibc-go/modules/core/04-channel/types/excepted_keeper.go index 969f25b9f..d4318b20d 100644 --- a/libs/ibc-go/modules/core/04-channel/types/excepted_keeper.go +++ b/libs/ibc-go/modules/core/04-channel/types/excepted_keeper.go @@ -1,10 +1,10 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // ClientKeeper expected account IBC client keeper diff --git a/libs/ibc-go/modules/core/04-channel/types/genesis.go b/libs/ibc-go/modules/core/04-channel/types/genesis.go index 9f866d5df..cb3480b70 100644 --- a/libs/ibc-go/modules/core/04-channel/types/genesis.go +++ b/libs/ibc-go/modules/core/04-channel/types/genesis.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) // NewPacketState creates a new PacketState instance. diff --git a/libs/ibc-go/modules/core/04-channel/types/genesis_test.go b/libs/ibc-go/modules/core/04-channel/types/genesis_test.go index 3872eac2e..b95eb5089 100644 --- a/libs/ibc-go/modules/core/04-channel/types/genesis_test.go +++ b/libs/ibc-go/modules/core/04-channel/types/genesis_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) const ( diff --git a/libs/ibc-go/modules/core/04-channel/types/keys.go b/libs/ibc-go/modules/core/04-channel/types/keys.go index 3b1b54c02..176ae535e 100644 --- a/libs/ibc-go/modules/core/04-channel/types/keys.go +++ b/libs/ibc-go/modules/core/04-channel/types/keys.go @@ -4,8 +4,8 @@ import ( "fmt" "regexp" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) const ( diff --git a/libs/ibc-go/modules/core/04-channel/types/keys_test.go b/libs/ibc-go/modules/core/04-channel/types/keys_test.go index 37d9e69dd..1fabc3812 100644 --- a/libs/ibc-go/modules/core/04-channel/types/keys_test.go +++ b/libs/ibc-go/modules/core/04-channel/types/keys_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // tests ParseChannelSequence and IsValidChannelID diff --git a/libs/ibc-go/modules/core/04-channel/types/msgs.go b/libs/ibc-go/modules/core/04-channel/types/msgs.go index e42609fb2..ccc14338f 100644 --- a/libs/ibc-go/modules/core/04-channel/types/msgs.go +++ b/libs/ibc-go/modules/core/04-channel/types/msgs.go @@ -3,11 +3,11 @@ package types import ( "encoding/base64" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) var _ sdk.Msg = &MsgChannelOpenInit{} diff --git a/libs/ibc-go/modules/core/04-channel/types/msgs_test.go b/libs/ibc-go/modules/core/04-channel/types/msgs_test.go index 26db3d05c..005404963 100644 --- a/libs/ibc-go/modules/core/04-channel/types/msgs_test.go +++ b/libs/ibc-go/modules/core/04-channel/types/msgs_test.go @@ -4,11 +4,11 @@ import ( "fmt" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/suite" @@ -19,12 +19,12 @@ import ( // "github.com/cosmos/cosmos-sdk/store/rootmulti" // storetypes "github.com/cosmos/cosmos-sdk/store/types" // sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) const ( diff --git a/libs/ibc-go/modules/core/04-channel/types/packet.go b/libs/ibc-go/modules/core/04-channel/types/packet.go index 8321f9728..230c7390f 100644 --- a/libs/ibc-go/modules/core/04-channel/types/packet.go +++ b/libs/ibc-go/modules/core/04-channel/types/packet.go @@ -3,12 +3,12 @@ package types import ( "crypto/sha256" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // CommitPacket returns the packet commitment bytes. The commitment consists of: diff --git a/libs/ibc-go/modules/core/04-channel/types/packet_test.go b/libs/ibc-go/modules/core/04-channel/types/packet_test.go index 30dd9f3e7..6904f31b5 100644 --- a/libs/ibc-go/modules/core/04-channel/types/packet_test.go +++ b/libs/ibc-go/modules/core/04-channel/types/packet_test.go @@ -1,16 +1,16 @@ package types_test import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "testing" "github.com/stretchr/testify/require" // "github.com/cosmos/cosmos-sdk/codec" // codectypes "github.com/cosmos/cosmos-sdk/codec/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) func TestCommitPacket(t *testing.T) { diff --git a/libs/ibc-go/modules/core/04-channel/types/query.go b/libs/ibc-go/modules/core/04-channel/types/query.go index 397c69ea1..32f2cda12 100644 --- a/libs/ibc-go/modules/core/04-channel/types/query.go +++ b/libs/ibc-go/modules/core/04-channel/types/query.go @@ -1,9 +1,9 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/core/04-channel/types/query.pb.go b/libs/ibc-go/modules/core/04-channel/types/query.pb.go index 40e7b5874..2e089a47e 100644 --- a/libs/ibc-go/modules/core/04-channel/types/query.pb.go +++ b/libs/ibc-go/modules/core/04-channel/types/query.pb.go @@ -6,9 +6,9 @@ package types import ( context "context" fmt "fmt" - types1 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + types1 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" //types1 "github.com/cosmos/cosmos-sdk/codec/types" //query "github.com/cosmos/cosmos-sdk/types/query" diff --git a/libs/ibc-go/modules/core/04-channel/types/tx.pb.go b/libs/ibc-go/modules/core/04-channel/types/tx.pb.go index f126430f0..8e2140db3 100644 --- a/libs/ibc-go/modules/core/04-channel/types/tx.pb.go +++ b/libs/ibc-go/modules/core/04-channel/types/tx.pb.go @@ -13,7 +13,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/libs/ibc-go/modules/core/05-port/keeper/grpc_query.go b/libs/ibc-go/modules/core/05-port/keeper/grpc_query.go index b54356296..ac7959e5b 100644 --- a/libs/ibc-go/modules/core/05-port/keeper/grpc_query.go +++ b/libs/ibc-go/modules/core/05-port/keeper/grpc_query.go @@ -3,13 +3,13 @@ package keeper import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) var _ types.QueryServer = (*Keeper)(nil) diff --git a/libs/ibc-go/modules/core/05-port/keeper/grpc_query_test.go b/libs/ibc-go/modules/core/05-port/keeper/grpc_query_test.go index 91972cd1d..80bc580f1 100644 --- a/libs/ibc-go/modules/core/05-port/keeper/grpc_query_test.go +++ b/libs/ibc-go/modules/core/05-port/keeper/grpc_query_test.go @@ -2,13 +2,13 @@ package keeper_test import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // sdk "github.com/cosmos/cosmos-sdk/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + "github.com/okx/brczero/libs/ibc-go/testing/mock" ) func (suite *KeeperTestSuite) TestAppVersion() { diff --git a/libs/ibc-go/modules/core/05-port/keeper/keeper.go b/libs/ibc-go/modules/core/05-port/keeper/keeper.go index 52cc8ad39..8bed21206 100644 --- a/libs/ibc-go/modules/core/05-port/keeper/keeper.go +++ b/libs/ibc-go/modules/core/05-port/keeper/keeper.go @@ -3,12 +3,12 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/tendermint/libs/log" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // Keeper defines the IBC connection keeper diff --git a/libs/ibc-go/modules/core/05-port/keeper/keeper_test.go b/libs/ibc-go/modules/core/05-port/keeper/keeper_test.go index c32176104..384946e71 100644 --- a/libs/ibc-go/modules/core/05-port/keeper/keeper_test.go +++ b/libs/ibc-go/modules/core/05-port/keeper/keeper_test.go @@ -3,13 +3,13 @@ package keeper_test import ( "testing" - tmproto "github.com/okx/okbchain/libs/tendermint/abci/types" + tmproto "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/keeper" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/keeper" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) var ( diff --git a/libs/ibc-go/modules/core/05-port/keeper/v4.go b/libs/ibc-go/modules/core/05-port/keeper/v4.go index 3641efeb9..80e9bcf70 100644 --- a/libs/ibc-go/modules/core/05-port/keeper/v4.go +++ b/libs/ibc-go/modules/core/05-port/keeper/v4.go @@ -1,6 +1,6 @@ package keeper -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" func (k Keeper) IsBound(ctx sdk.Context, portID string) bool { return k.isBound(ctx, portID) diff --git a/libs/ibc-go/modules/core/05-port/module.go b/libs/ibc-go/modules/core/05-port/module.go index 5c48c2995..3e8541d0f 100644 --- a/libs/ibc-go/modules/core/05-port/module.go +++ b/libs/ibc-go/modules/core/05-port/module.go @@ -2,7 +2,7 @@ package port import ( "github.com/gogo/protobuf/grpc" - "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" ) // Name returns the IBC port ICS name. diff --git a/libs/ibc-go/modules/core/05-port/types/errors.go b/libs/ibc-go/modules/core/05-port/types/errors.go index eda65bff1..5ba9d90b7 100644 --- a/libs/ibc-go/modules/core/05-port/types/errors.go +++ b/libs/ibc-go/modules/core/05-port/types/errors.go @@ -1,6 +1,6 @@ package types -import sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +import sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" // IBC port sentinel errors var ( diff --git a/libs/ibc-go/modules/core/05-port/types/facaded.go b/libs/ibc-go/modules/core/05-port/types/facaded.go index 01a5eef13..3c253ebeb 100644 --- a/libs/ibc-go/modules/core/05-port/types/facaded.go +++ b/libs/ibc-go/modules/core/05-port/types/facaded.go @@ -1,12 +1,12 @@ package types import ( - "github.com/okx/okbchain/libs/ibc-go/modules/core/common" + "github.com/okx/brczero/libs/ibc-go/modules/core/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var ( diff --git a/libs/ibc-go/modules/core/05-port/types/module.go b/libs/ibc-go/modules/core/05-port/types/module.go index 1043f71a6..c46eb8739 100644 --- a/libs/ibc-go/modules/core/05-port/types/module.go +++ b/libs/ibc-go/modules/core/05-port/types/module.go @@ -1,10 +1,10 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // IBCModule defines an interface that implements all the callbacks diff --git a/libs/ibc-go/modules/core/05-port/types/query.pb.go b/libs/ibc-go/modules/core/05-port/types/query.pb.go index 4d21285dc..9063f771c 100644 --- a/libs/ibc-go/modules/core/05-port/types/query.pb.go +++ b/libs/ibc-go/modules/core/05-port/types/query.pb.go @@ -6,7 +6,7 @@ package types import ( context "context" fmt "fmt" - types "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + types "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" diff --git a/libs/ibc-go/modules/core/05-port/types/router.go b/libs/ibc-go/modules/core/05-port/types/router.go index 9525981a4..00d89904f 100644 --- a/libs/ibc-go/modules/core/05-port/types/router.go +++ b/libs/ibc-go/modules/core/05-port/types/router.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // The router is a map from module name to the IBCModule diff --git a/libs/ibc-go/modules/core/23-commitment/types/codec.go b/libs/ibc-go/modules/core/23-commitment/types/codec.go index 79d65dd3d..387422cd4 100644 --- a/libs/ibc-go/modules/core/23-commitment/types/codec.go +++ b/libs/ibc-go/modules/core/23-commitment/types/codec.go @@ -1,8 +1,8 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // RegisterInterfaces registers the commitment interfaces to protobuf Any. diff --git a/libs/ibc-go/modules/core/23-commitment/types/commitment_test.go b/libs/ibc-go/modules/core/23-commitment/types/commitment_test.go index bd2dbd355..b6628edd1 100644 --- a/libs/ibc-go/modules/core/23-commitment/types/commitment_test.go +++ b/libs/ibc-go/modules/core/23-commitment/types/commitment_test.go @@ -3,10 +3,10 @@ package types_test import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - "github.com/okx/okbchain/libs/cosmos-sdk/store/rootmulti" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + "github.com/okx/brczero/libs/cosmos-sdk/store/rootmulti" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/suite" // "github.com/cosmos/cosmos-sdk/store/iavl" diff --git a/libs/ibc-go/modules/core/23-commitment/types/errors.go b/libs/ibc-go/modules/core/23-commitment/types/errors.go index 8fe398147..4232c6adc 100644 --- a/libs/ibc-go/modules/core/23-commitment/types/errors.go +++ b/libs/ibc-go/modules/core/23-commitment/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // SubModuleName is the error codespace diff --git a/libs/ibc-go/modules/core/23-commitment/types/merkle.go b/libs/ibc-go/modules/core/23-commitment/types/merkle.go index e8511f09f..58fcf5c44 100644 --- a/libs/ibc-go/modules/core/23-commitment/types/merkle.go +++ b/libs/ibc-go/modules/core/23-commitment/types/merkle.go @@ -7,9 +7,9 @@ import ( ics23 "github.com/confio/ics23/go" "github.com/gogo/protobuf/proto" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/tendermint/proto/crypto" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/tendermint/proto/crypto" ) var _ exported.Root = (*MerkleRoot)(nil) diff --git a/libs/ibc-go/modules/core/23-commitment/types/merkle_test.go b/libs/ibc-go/modules/core/23-commitment/types/merkle_test.go index d7a819aea..a86b58efe 100644 --- a/libs/ibc-go/modules/core/23-commitment/types/merkle_test.go +++ b/libs/ibc-go/modules/core/23-commitment/types/merkle_test.go @@ -2,13 +2,13 @@ package types_test import ( "fmt" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "testing" "github.com/stretchr/testify/require" // abci "github.com/tendermint/tendermint/abci/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" ) func (suite *MerkleTestSuite) TestVerifyMembership() { diff --git a/libs/ibc-go/modules/core/23-commitment/types/utils.go b/libs/ibc-go/modules/core/23-commitment/types/utils.go index ecc1c7382..30206e73f 100644 --- a/libs/ibc-go/modules/core/23-commitment/types/utils.go +++ b/libs/ibc-go/modules/core/23-commitment/types/utils.go @@ -2,8 +2,8 @@ package types import ( ics23 "github.com/confio/ics23/go" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) // ConvertProofs converts crypto.ProofOps into MerkleProof diff --git a/libs/ibc-go/modules/core/23-commitment/types/utils_test.go b/libs/ibc-go/modules/core/23-commitment/types/utils_test.go index c971f759d..43c77b8f4 100644 --- a/libs/ibc-go/modules/core/23-commitment/types/utils_test.go +++ b/libs/ibc-go/modules/core/23-commitment/types/utils_test.go @@ -2,13 +2,13 @@ package types_test import ( "fmt" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" // abci "github.com/tendermint/tendermint/abci/types" // crypto "github.com/tendermint/tendermint/proto/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" ) func (suite *MerkleTestSuite) TestConvertProofs() { diff --git a/libs/ibc-go/modules/core/24-host/errors.go b/libs/ibc-go/modules/core/24-host/errors.go index 261725fdc..682e3526e 100644 --- a/libs/ibc-go/modules/core/24-host/errors.go +++ b/libs/ibc-go/modules/core/24-host/errors.go @@ -1,6 +1,6 @@ package host -import sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +import sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" // SubModuleName defines the ICS 24 host const SubModuleName = "host" diff --git a/libs/ibc-go/modules/core/24-host/keys.go b/libs/ibc-go/modules/core/24-host/keys.go index 1d48c836f..dd8bba834 100644 --- a/libs/ibc-go/modules/core/24-host/keys.go +++ b/libs/ibc-go/modules/core/24-host/keys.go @@ -3,7 +3,7 @@ package host import ( "fmt" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) const ( diff --git a/libs/ibc-go/modules/core/24-host/parse.go b/libs/ibc-go/modules/core/24-host/parse.go index ffbb441a8..654e21ad1 100644 --- a/libs/ibc-go/modules/core/24-host/parse.go +++ b/libs/ibc-go/modules/core/24-host/parse.go @@ -4,7 +4,7 @@ import ( "strconv" "strings" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // ParseIdentifier parses the sequence from the identifier using the provided prefix. This function diff --git a/libs/ibc-go/modules/core/24-host/parse_test.go b/libs/ibc-go/modules/core/24-host/parse_test.go index 274583d3a..e41f5834e 100644 --- a/libs/ibc-go/modules/core/24-host/parse_test.go +++ b/libs/ibc-go/modules/core/24-host/parse_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) func TestParseIdentifier(t *testing.T) { diff --git a/libs/ibc-go/modules/core/24-host/validate.go b/libs/ibc-go/modules/core/24-host/validate.go index 2c342812c..e0d6347e6 100644 --- a/libs/ibc-go/modules/core/24-host/validate.go +++ b/libs/ibc-go/modules/core/24-host/validate.go @@ -4,7 +4,7 @@ import ( "regexp" "strings" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // DefaultMaxCharacterLength defines the default maximum character length used diff --git a/libs/ibc-go/modules/core/alias.go b/libs/ibc-go/modules/core/alias.go index e38554ad7..6e9fd742f 100644 --- a/libs/ibc-go/modules/core/alias.go +++ b/libs/ibc-go/modules/core/alias.go @@ -1,9 +1,9 @@ package ibc import ( - "github.com/okx/okbchain/libs/ibc-go/modules/core/common" - "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/common" + "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" ) type ( diff --git a/libs/ibc-go/modules/core/ante/ante.go b/libs/ibc-go/modules/core/ante/ante.go index 7b6ed101e..c1ffd3972 100644 --- a/libs/ibc-go/modules/core/ante/ante.go +++ b/libs/ibc-go/modules/core/ante/ante.go @@ -1,11 +1,11 @@ package ante import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + "github.com/okx/brczero/libs/tendermint/types" ) type AnteDecorator struct { diff --git a/libs/ibc-go/modules/core/ante/ante_test.go b/libs/ibc-go/modules/core/ante/ante_test.go index eabefff79..df1154727 100644 --- a/libs/ibc-go/modules/core/ante/ante_test.go +++ b/libs/ibc-go/modules/core/ante/ante_test.go @@ -4,16 +4,16 @@ import ( "math/big" "testing" - appante "github.com/okx/okbchain/app/ante" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" - helpers2 "github.com/okx/okbchain/libs/ibc-go/testing/simapp/helpers" - evmtypes "github.com/okx/okbchain/x/evm/types" + appante "github.com/okx/brczero/app/ante" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/testing/mock" + helpers2 "github.com/okx/brczero/libs/ibc-go/testing/simapp/helpers" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/stretchr/testify/suite" ) diff --git a/libs/ibc-go/modules/core/base/base.go b/libs/ibc-go/modules/core/base/base.go index 749246bde..f23761377 100644 --- a/libs/ibc-go/modules/core/base/base.go +++ b/libs/ibc-go/modules/core/base/base.go @@ -1,10 +1,10 @@ package base import ( - cosmost "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + cosmost "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) var ( diff --git a/libs/ibc-go/modules/core/client/cli/cli.go b/libs/ibc-go/modules/core/client/cli/cli.go index 81b30e78f..3cea70126 100644 --- a/libs/ibc-go/modules/core/client/cli/cli.go +++ b/libs/ibc-go/modules/core/client/cli/cli.go @@ -3,17 +3,17 @@ package cli import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - ibcclient "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client" - connection "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection" - channel "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + ibcclient "github.com/okx/brczero/libs/ibc-go/modules/core/02-client" + connection "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection" + channel "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/client/query.go b/libs/ibc-go/modules/core/client/query.go index bfe9bb0ab..6f35fde04 100644 --- a/libs/ibc-go/modules/core/client/query.go +++ b/libs/ibc-go/modules/core/client/query.go @@ -3,11 +3,11 @@ package client import ( "fmt" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) // QueryTendermintProof performs an ABCI query with the given key and returns diff --git a/libs/ibc-go/modules/core/common/codec.go b/libs/ibc-go/modules/core/common/codec.go index 39bb40640..9c3569840 100644 --- a/libs/ibc-go/modules/core/common/codec.go +++ b/libs/ibc-go/modules/core/common/codec.go @@ -1,9 +1,9 @@ package common import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - conntypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + conntypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) func MustMarshalChannel(cdc *codec.CodecProxy, c *types.Channel) []byte { diff --git a/libs/ibc-go/modules/core/common/selector.go b/libs/ibc-go/modules/core/common/selector.go index 2b698c4d8..d140d48a1 100644 --- a/libs/ibc-go/modules/core/common/selector.go +++ b/libs/ibc-go/modules/core/common/selector.go @@ -4,7 +4,7 @@ import ( "errors" "sort" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/libs/ibc-go/modules/core/exported/client.go b/libs/ibc-go/modules/core/exported/client.go index 8f38f2b7a..2bf9c835b 100644 --- a/libs/ibc-go/modules/core/exported/client.go +++ b/libs/ibc-go/modules/core/exported/client.go @@ -3,8 +3,8 @@ package exported import ( ics23 "github.com/confio/ics23/go" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Status represents the status of a client diff --git a/libs/ibc-go/modules/core/genesis.go b/libs/ibc-go/modules/core/genesis.go index 2e335e4c1..35a0f95b0 100644 --- a/libs/ibc-go/modules/core/genesis.go +++ b/libs/ibc-go/modules/core/genesis.go @@ -1,12 +1,12 @@ package ibc import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - client "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client" - connection "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection" - channel "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel" - "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + client "github.com/okx/brczero/libs/ibc-go/modules/core/02-client" + connection "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection" + channel "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel" + "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" ) // InitGenesis initializes the ibc state from a provided genesis diff --git a/libs/ibc-go/modules/core/genesis_test.go b/libs/ibc-go/modules/core/genesis_test.go index 82ede1242..5efec2c52 100644 --- a/libs/ibc-go/modules/core/genesis_test.go +++ b/libs/ibc-go/modules/core/genesis_test.go @@ -3,22 +3,22 @@ package ibc_test import ( "testing" - tmproto "github.com/okx/okbchain/libs/tendermint/abci/types" + tmproto "github.com/okx/brczero/libs/tendermint/abci/types" - // tmproto "github.com/okx/okbchain/libs/tendermint/proto/tendermint/types" + // tmproto "github.com/okx/brczero/libs/tendermint/proto/tendermint/types" "github.com/stretchr/testify/suite" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - localhosttypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/09-localhost/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + localhosttypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/09-localhost/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) const ( diff --git a/libs/ibc-go/modules/core/handler.go b/libs/ibc-go/modules/core/handler.go index f6d15644a..e5b0ac036 100644 --- a/libs/ibc-go/modules/core/handler.go +++ b/libs/ibc-go/modules/core/handler.go @@ -1,13 +1,13 @@ package ibc import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" ) // NewHandler defines the IBC handler diff --git a/libs/ibc-go/modules/core/keeper/facaded.go b/libs/ibc-go/modules/core/keeper/facaded.go index 7f3d5f591..f13f52862 100644 --- a/libs/ibc-go/modules/core/keeper/facaded.go +++ b/libs/ibc-go/modules/core/keeper/facaded.go @@ -3,12 +3,12 @@ package keeper import ( "context" - "github.com/okx/okbchain/libs/ibc-go/modules/core/common" + "github.com/okx/brczero/libs/ibc-go/modules/core/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltyeps "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltyeps "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) var _ IBCServerKeeper = (*FacadedKeeper)(nil) diff --git a/libs/ibc-go/modules/core/keeper/grpc_query.go b/libs/ibc-go/modules/core/keeper/grpc_query.go index 4114d9044..dc237396b 100644 --- a/libs/ibc-go/modules/core/keeper/grpc_query.go +++ b/libs/ibc-go/modules/core/keeper/grpc_query.go @@ -2,13 +2,13 @@ package keeper import ( "context" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" ) // ClientState implements the IBC QueryServer interface diff --git a/libs/ibc-go/modules/core/keeper/keeper.go b/libs/ibc-go/modules/core/keeper/keeper.go index 8ec196fb2..5945aa511 100644 --- a/libs/ibc-go/modules/core/keeper/keeper.go +++ b/libs/ibc-go/modules/core/keeper/keeper.go @@ -1,20 +1,20 @@ package keeper import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - paramtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - clientkeeper "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/keeper" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectionkeeper "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/keeper" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channelkeeper "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/keeper" - portkeeper "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/keeper" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + paramtypes "github.com/okx/brczero/libs/cosmos-sdk/x/params" + clientkeeper "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/keeper" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectionkeeper "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/keeper" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channelkeeper "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/keeper" + portkeeper "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/keeper" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" ) var _ types.QueryServer = (*Keeper)(nil) diff --git a/libs/ibc-go/modules/core/keeper/migrations.go b/libs/ibc-go/modules/core/keeper/migrations.go index b4a7e55f4..ea1def31c 100644 --- a/libs/ibc-go/modules/core/keeper/migrations.go +++ b/libs/ibc-go/modules/core/keeper/migrations.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - //clientkeeper "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/keeper" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + //clientkeeper "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/keeper" ) // Migrator is a struct for handling in-place store migrations. diff --git a/libs/ibc-go/modules/core/keeper/msg_server.go b/libs/ibc-go/modules/core/keeper/msg_server.go index 376dd4bae..7543b377f 100644 --- a/libs/ibc-go/modules/core/keeper/msg_server.go +++ b/libs/ibc-go/modules/core/keeper/msg_server.go @@ -5,12 +5,12 @@ import ( //"github.com/armon/go-metrics" //"github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" ) var _ clienttypes.MsgServer = Keeper{} diff --git a/libs/ibc-go/modules/core/keeper/msg_server_test.go b/libs/ibc-go/modules/core/keeper/msg_server_test.go index c7a9ca5ce..f93ef4648 100644 --- a/libs/ibc-go/modules/core/keeper/msg_server_test.go +++ b/libs/ibc-go/modules/core/keeper/msg_server_test.go @@ -6,18 +6,18 @@ import ( "github.com/stretchr/testify/suite" // sdk "github.com/cosmos/cosmos-sdk/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibcmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" - types2 "github.com/okx/okbchain/libs/ibc-go/testing/simapp/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibcmock "github.com/okx/brczero/libs/ibc-go/testing/mock" + types2 "github.com/okx/brczero/libs/ibc-go/testing/simapp/types" ) const height = 10 diff --git a/libs/ibc-go/modules/core/keeper/params.go b/libs/ibc-go/modules/core/keeper/params.go index 21eeed024..1e5991bfc 100644 --- a/libs/ibc-go/modules/core/keeper/params.go +++ b/libs/ibc-go/modules/core/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" ) // GetIbcEnabled retrieves the ibc enabled boolean from the param store diff --git a/libs/ibc-go/modules/core/keeper/v4_keeper.go b/libs/ibc-go/modules/core/keeper/v4_keeper.go index 39e54c454..bedb18f90 100644 --- a/libs/ibc-go/modules/core/keeper/v4_keeper.go +++ b/libs/ibc-go/modules/core/keeper/v4_keeper.go @@ -4,15 +4,15 @@ import ( "context" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/params" - ptypes "github.com/okx/okbchain/x/params/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/params" + ptypes "github.com/okx/brczero/x/params/types" ) var ( diff --git a/libs/ibc-go/modules/core/module.go b/libs/ibc-go/modules/core/module.go index dba54d266..377fc3a89 100644 --- a/libs/ibc-go/modules/core/module.go +++ b/libs/ibc-go/modules/core/module.go @@ -5,27 +5,27 @@ import ( "encoding/json" "fmt" - ibcclient "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client" + ibcclient "github.com/okx/brczero/libs/ibc-go/modules/core/02-client" "math/rand" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - simulation2 "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/client/cli" - "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + simulation2 "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/client/cli" + "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/cobra" ) diff --git a/libs/ibc-go/modules/core/simulation/decoder.go b/libs/ibc-go/modules/core/simulation/decoder.go index 6eaffcf0d..b4c20a358 100644 --- a/libs/ibc-go/modules/core/simulation/decoder.go +++ b/libs/ibc-go/modules/core/simulation/decoder.go @@ -3,13 +3,13 @@ package simulation import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - clientsim "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/simulation" - connectionsim "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/simulation" - channelsim "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/simulation" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + clientsim "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/simulation" + connectionsim "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/simulation" + channelsim "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/simulation" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + "github.com/okx/brczero/libs/tendermint/libs/kv" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/libs/ibc-go/modules/core/simulation/decoder_test.go b/libs/ibc-go/modules/core/simulation/decoder_test.go index 3cb5776ae..e42e5eb81 100644 --- a/libs/ibc-go/modules/core/simulation/decoder_test.go +++ b/libs/ibc-go/modules/core/simulation/decoder_test.go @@ -4,19 +4,19 @@ import ( "fmt" "testing" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" "github.com/stretchr/testify/require" //"github.com/cosmos/cosmos-sdk/types/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/types/kv" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/simulation" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + "github.com/okx/brczero/libs/cosmos-sdk/types/kv" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/simulation" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) func TestDecodeStore(t *testing.T) { diff --git a/libs/ibc-go/modules/core/simulation/genesis.go b/libs/ibc-go/modules/core/simulation/genesis.go index 3f7d66224..5d9a7849a 100644 --- a/libs/ibc-go/modules/core/simulation/genesis.go +++ b/libs/ibc-go/modules/core/simulation/genesis.go @@ -5,15 +5,15 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - clientsims "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/simulation" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectionsims "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/simulation" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channelsims "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/simulation" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + clientsims "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/simulation" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectionsims "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/simulation" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channelsims "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/simulation" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" ) // DONTCOVER diff --git a/libs/ibc-go/modules/core/simulation/genesis_test.go b/libs/ibc-go/modules/core/simulation/genesis_test.go index 61371bb57..26eb6b6fd 100644 --- a/libs/ibc-go/modules/core/simulation/genesis_test.go +++ b/libs/ibc-go/modules/core/simulation/genesis_test.go @@ -2,9 +2,9 @@ package simulation_test import ( "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - simtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + simtypes "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" "math/rand" "testing" @@ -14,9 +14,9 @@ import ( // codectypes "github.com/cosmos/cosmos-sdk/codec/types" // "github.com/cosmos/cosmos-sdk/types/module" // simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/libs/ibc-go/modules/core/types/codec.go b/libs/ibc-go/modules/core/types/codec.go index 296f5c1a4..f6e0e21c3 100644 --- a/libs/ibc-go/modules/core/types/codec.go +++ b/libs/ibc-go/modules/core/types/codec.go @@ -1,15 +1,15 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - solomachinetypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/06-solomachine/types" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - localhosttypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/09-localhost/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + solomachinetypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/06-solomachine/types" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + localhosttypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/09-localhost/types" ) var ModuleCdc *codec.Codec diff --git a/libs/ibc-go/modules/core/types/errors.go b/libs/ibc-go/modules/core/types/errors.go index 8dd05cd83..2e4357948 100644 --- a/libs/ibc-go/modules/core/types/errors.go +++ b/libs/ibc-go/modules/core/types/errors.go @@ -1,8 +1,8 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) var ErrIbcDisabled = sdkerrors.Register(host.ModuleName, 1, "IBC are disabled") diff --git a/libs/ibc-go/modules/core/types/genesis.go b/libs/ibc-go/modules/core/types/genesis.go index 30e9cb74c..86e6b051b 100644 --- a/libs/ibc-go/modules/core/types/genesis.go +++ b/libs/ibc-go/modules/core/types/genesis.go @@ -1,10 +1,10 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) var _ codectypes.UnpackInterfacesMessage = GenesisState{} diff --git a/libs/ibc-go/modules/core/types/genesis.pb.go b/libs/ibc-go/modules/core/types/genesis.pb.go index a07718682..72f5812cc 100644 --- a/libs/ibc-go/modules/core/types/genesis.pb.go +++ b/libs/ibc-go/modules/core/types/genesis.pb.go @@ -9,9 +9,9 @@ import ( math "math" math_bits "math/bits" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - conntypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltyeps "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + conntypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltyeps "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" diff --git a/libs/ibc-go/modules/core/types/keys.go b/libs/ibc-go/modules/core/types/keys.go index d2b773ce6..d7e6e46bb 100644 --- a/libs/ibc-go/modules/core/types/keys.go +++ b/libs/ibc-go/modules/core/types/keys.go @@ -6,8 +6,8 @@ import ( "strconv" "strings" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" ) const ( diff --git a/libs/ibc-go/modules/core/types/params.go b/libs/ibc-go/modules/core/types/params.go index 7b72b4d7a..b282629ee 100644 --- a/libs/ibc-go/modules/core/types/params.go +++ b/libs/ibc-go/modules/core/types/params.go @@ -3,7 +3,7 @@ package types import ( "fmt" - paramtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + paramtypes "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // DefaultIbcEnabled enabled diff --git a/libs/ibc-go/modules/core/types/query.go b/libs/ibc-go/modules/core/types/query.go index 734b0b29f..9a1b7c034 100644 --- a/libs/ibc-go/modules/core/types/query.go +++ b/libs/ibc-go/modules/core/types/query.go @@ -2,14 +2,14 @@ package types import ( "github.com/gogo/protobuf/grpc" - client "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connection "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channel "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - port "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" + client "github.com/okx/brczero/libs/ibc-go/modules/core/02-client" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connection "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channel "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + port "github.com/okx/brczero/libs/ibc-go/modules/core/05-port" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" ) // QueryService defines the IBC interfaces that the gRPC query server must implement diff --git a/libs/ibc-go/modules/core/types/query.pb.go b/libs/ibc-go/modules/core/types/query.pb.go index 3bda3c313..04cb9b6ad 100644 --- a/libs/ibc-go/modules/core/types/query.pb.go +++ b/libs/ibc-go/modules/core/types/query.pb.go @@ -13,8 +13,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - _ "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - _ "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + _ "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + _ "github.com/okx/brczero/libs/cosmos-sdk/types/query" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/module.go b/libs/ibc-go/modules/light-clients/06-solomachine/module.go index bf1f647d2..12b465c8e 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/module.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/module.go @@ -1,6 +1,6 @@ package solomachine -import "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/06-solomachine/types" +import "github.com/okx/brczero/libs/ibc-go/modules/light-clients/06-solomachine/types" // Name returns the solo machine client name. func Name() string { diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/client_state.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/client_state.go index 3a0026642..88d41204d 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/client_state.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/client_state.go @@ -2,15 +2,15 @@ package types import ( ics23 "github.com/confio/ics23/go" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" "reflect" ) diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/codec.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/codec.go index 4cb614558..171fb71c1 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/codec.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/codec.go @@ -1,12 +1,12 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // RegisterInterfaces register the ibc channel submodule interfaces to protobuf diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/consensus_state.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/consensus_state.go index 0f7b43db1..18dfeb174 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/consensus_state.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/consensus_state.go @@ -1,10 +1,10 @@ package types import ( - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" "strings" ) diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/errors.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/errors.go index 64b30edb5..7ee90e222 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/errors.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/errors.go @@ -1,6 +1,6 @@ package types -import sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +import sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" const ( SubModuleName = "solo machine" diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/header.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/header.go index 9385e1926..7e31af6ea 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/header.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/header.go @@ -1,10 +1,10 @@ package types import ( - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" "strings" ) diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/misbehaviour.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/misbehaviour.go index 464502cd9..d0f802854 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/misbehaviour.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/misbehaviour.go @@ -2,10 +2,10 @@ package types import ( "bytes" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) var _ exported.Misbehaviour = &Misbehaviour{} diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/misbehaviour_handle.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/misbehaviour_handle.go index d0f5d6d1d..a4a70cadc 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/misbehaviour_handle.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/misbehaviour_handle.go @@ -1,11 +1,11 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // CheckMisbehaviourAndUpdateState determines whether or not the currently registered diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/proof.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/proof.go index 5f35b5ac9..4c77cff7b 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/proof.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/proof.go @@ -1,16 +1,16 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types/multisig" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/types/multisig" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // VerifySignature verifies if the the provided public key generated the signature diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/proposal_handle.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/proposal_handle.go index 4d9abe855..b56d8f0ff 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/proposal_handle.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/proposal_handle.go @@ -1,11 +1,11 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" "reflect" ) diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/solomachine.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/solomachine.go index 496f7e248..16cda03b6 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/solomachine.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/solomachine.go @@ -1,9 +1,9 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // Interface implementation checks. diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/solomachine.pb.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/solomachine.pb.go index 2d3c09356..71b99bec7 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/solomachine.pb.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/solomachine.pb.go @@ -7,9 +7,9 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - types1 "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - types2 "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + types1 "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + types2 "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" io "io" math "math" math_bits "math/bits" diff --git a/libs/ibc-go/modules/light-clients/06-solomachine/types/update.go b/libs/ibc-go/modules/light-clients/06-solomachine/types/update.go index f84e42ded..d2b953e89 100644 --- a/libs/ibc-go/modules/light-clients/06-solomachine/types/update.go +++ b/libs/ibc-go/modules/light-clients/06-solomachine/types/update.go @@ -1,11 +1,11 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // CheckHeaderAndUpdateState checks if the provided header is valid and updates diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/client_state.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/client_state.go index 36877ed0c..19530d090 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/client_state.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/client_state.go @@ -1,22 +1,22 @@ package types import ( - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "strings" "time" ics23 "github.com/confio/ics23/go" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - common2 "github.com/okx/okbchain/libs/ibc-go/modules/core/common" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - lite "github.com/okx/okbchain/libs/tendermint/lite2" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + common2 "github.com/okx/brczero/libs/ibc-go/modules/core/common" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + lite "github.com/okx/brczero/libs/tendermint/lite2" ) var _ exported.ClientState = (*ClientState)(nil) diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/client_state_test.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/client_state_test.go index 72e674d03..feb7b35a4 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/client_state_test.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/client_state_test.go @@ -5,14 +5,14 @@ import ( ics23 "github.com/confio/ics23/go" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibcmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibcmock "github.com/okx/brczero/libs/ibc-go/testing/mock" ) const ( diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/codec.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/codec.go index 41136f083..832919464 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/codec.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/codec.go @@ -1,9 +1,9 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // RegisterInterfaces registers the tendermint concrete client-related diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/consensus_state.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/consensus_state.go index cd2c92041..d6f8f7694 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/consensus_state.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/consensus_state.go @@ -1,12 +1,12 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes"github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes"github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "time" ) diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/consensus_state_test.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/consensus_state_test.go index 989eb61ed..b5359fdff 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/consensus_state_test.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/consensus_state_test.go @@ -3,9 +3,9 @@ package types_test import ( "time" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" ) func (suite *TendermintTestSuite) TestConsensusStateValidateBasic() { diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/errors.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/errors.go index 06fad6adb..69f7c4044 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/errors.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/fraction.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/fraction.go index fd68468b8..ae8a2eca3 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/fraction.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/fraction.go @@ -1,7 +1,7 @@ package types import ( - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" ) // DefaultTrustLevel is the tendermint light client default trust level diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/genesis.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/genesis.go index 915fea392..8dd86f146 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/genesis.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/genesis.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // ExportMetadata exports all the consensus metadata in the client store so they can be included in clients genesis diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/genesis_test.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/genesis_test.go index 48dd87d6a..cb20a4f42 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/genesis_test.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/genesis_test.go @@ -1,11 +1,11 @@ package types_test import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) // expected export ordering: diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/header.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/header.go index aa1a4a4eb..91b317f48 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/header.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/header.go @@ -4,11 +4,11 @@ import ( "bytes" "time" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) var _ exported.Header = &Header{} diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/header_test.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/header_test.go index 895b12a51..503188dfa 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/header_test.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/header_test.go @@ -3,11 +3,11 @@ package types_test import ( "time" - keys "github.com/okx/okbchain/libs/tendermint/proto/crypto/keys" + keys "github.com/okx/brczero/libs/tendermint/proto/crypto/keys" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" ) func (suite *TendermintTestSuite) TestGetHeight() { diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour.go index c715455d8..d5d10fb04 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour.go @@ -3,12 +3,12 @@ package types import ( "time" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) var _ exported.Misbehaviour = &Misbehaviour{} diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go index 2e46b94d5..5835142e4 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_handle.go @@ -4,12 +4,12 @@ import ( "bytes" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // CheckMisbehaviourAndUpdateState determines whether or not two conflicting diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_test.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_test.go index 86b2631c2..182915e9f 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_test.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/misbehaviour_test.go @@ -1,11 +1,11 @@ package types_test import ( - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" ) func (suite *TendermintTestSuite) TestMisbehaviour() { diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/proposal_handle.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/proposal_handle.go index 45fdbfea9..83a1ffc08 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/proposal_handle.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/proposal_handle.go @@ -4,13 +4,13 @@ import ( "reflect" "time" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // CheckSubstituteAndUpdateState will try to update the client with the state of the diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/proposal_handle_test.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/proposal_handle_test.go index 3b643cb1d..ff8bd4ee1 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/proposal_handle_test.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/proposal_handle_test.go @@ -3,12 +3,12 @@ package types_test import ( "time" - types2 "github.com/okx/okbchain/libs/tendermint/types" + types2 "github.com/okx/brczero/libs/tendermint/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) var ( diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/store.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/store.go index f4e6abc12..be97bcd0d 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/store.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/store.go @@ -5,13 +5,13 @@ import ( "encoding/binary" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) /* diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/store_test.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/store_test.go index 26e51c818..6269c24c5 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/store_test.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/store_test.go @@ -4,13 +4,13 @@ import ( "math" "time" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - solomachinetypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/06-solomachine/types" - "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + solomachinetypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/06-solomachine/types" + "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" ) func (suite *TendermintTestSuite) TestGetConsensusState() { diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/tendermint.pb.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/tendermint.pb.go index 65b88204b..5be5fb1da 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/tendermint.pb.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/tendermint.pb.go @@ -6,10 +6,10 @@ package types import ( fmt "fmt" _go "github.com/confio/ics23/go" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - types1 "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - types2 "github.com/okx/okbchain/libs/tendermint/proto/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + types1 "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + types2 "github.com/okx/brczero/libs/tendermint/proto/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/tendermint_test.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/tendermint_test.go index dec2a66e0..4940c3a6d 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/tendermint_test.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/tendermint_test.go @@ -4,18 +4,18 @@ import ( "testing" "time" - tmproto "github.com/okx/okbchain/libs/tendermint/abci/types" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmproto "github.com/okx/brczero/libs/tendermint/abci/types" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - ibctestingmock "github.com/okx/okbchain/libs/ibc-go/testing/mock" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + ibctestingmock "github.com/okx/brczero/libs/ibc-go/testing/mock" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) const ( diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/update.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/update.go index 3059a026a..96fa34a91 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/update.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/update.go @@ -5,14 +5,14 @@ import ( "reflect" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - lite "github.com/okx/okbchain/libs/tendermint/lite2" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + lite "github.com/okx/brczero/libs/tendermint/lite2" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // CheckHeaderAndUpdateState checks if the provided header is valid, and if valid it will: diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/upgrade.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/upgrade.go index 4342d3e26..9b1db9705 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/upgrade.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/upgrade.go @@ -3,12 +3,12 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // VerifyUpgradeAndUpdateState checks if the upgraded client has been committed by the current client diff --git a/libs/ibc-go/modules/light-clients/07-tendermint/types/upgrade_test.go b/libs/ibc-go/modules/light-clients/07-tendermint/types/upgrade_test.go index 2b9702e3f..de66927a0 100644 --- a/libs/ibc-go/modules/light-clients/07-tendermint/types/upgrade_test.go +++ b/libs/ibc-go/modules/light-clients/07-tendermint/types/upgrade_test.go @@ -1,12 +1,12 @@ package types_test import ( - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - upgradetypes "github.com/okx/okbchain/libs/ibc-go/testing/simapp/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + upgradetypes "github.com/okx/brczero/libs/ibc-go/testing/simapp/types" ) var ( diff --git a/libs/ibc-go/modules/light-clients/09-localhost/module.go b/libs/ibc-go/modules/light-clients/09-localhost/module.go index 9b092fe19..b78821f32 100644 --- a/libs/ibc-go/modules/light-clients/09-localhost/module.go +++ b/libs/ibc-go/modules/light-clients/09-localhost/module.go @@ -1,6 +1,6 @@ package localhost -import "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/09-localhost/types" +import "github.com/okx/brczero/libs/ibc-go/modules/light-clients/09-localhost/types" // Name returns the IBC client name func Name() string { diff --git a/libs/ibc-go/modules/light-clients/09-localhost/types/client_state.go b/libs/ibc-go/modules/light-clients/09-localhost/types/client_state.go index 43276b71c..23f922e3c 100644 --- a/libs/ibc-go/modules/light-clients/09-localhost/types/client_state.go +++ b/libs/ibc-go/modules/light-clients/09-localhost/types/client_state.go @@ -4,14 +4,14 @@ import ( "bytes" "encoding/binary" ics23 "github.com/confio/ics23/go" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" "reflect" "strings" ) diff --git a/libs/ibc-go/modules/light-clients/09-localhost/types/client_state_test.go b/libs/ibc-go/modules/light-clients/09-localhost/types/client_state_test.go index 17ce2021b..ee7dfdc43 100644 --- a/libs/ibc-go/modules/light-clients/09-localhost/types/client_state_test.go +++ b/libs/ibc-go/modules/light-clients/09-localhost/types/client_state_test.go @@ -1,15 +1,15 @@ package types_test import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/09-localhost/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + "github.com/okx/brczero/libs/ibc-go/modules/light-clients/09-localhost/types" ) const ( diff --git a/libs/ibc-go/modules/light-clients/09-localhost/types/codec.go b/libs/ibc-go/modules/light-clients/09-localhost/types/codec.go index 9dec91582..3737ee190 100644 --- a/libs/ibc-go/modules/light-clients/09-localhost/types/codec.go +++ b/libs/ibc-go/modules/light-clients/09-localhost/types/codec.go @@ -1,8 +1,8 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // RegisterInterfaces register the ibc interfaces submodule implementations to protobuf diff --git a/libs/ibc-go/modules/light-clients/09-localhost/types/errors.go b/libs/ibc-go/modules/light-clients/09-localhost/types/errors.go index 9f15cac1b..63b21fa22 100644 --- a/libs/ibc-go/modules/light-clients/09-localhost/types/errors.go +++ b/libs/ibc-go/modules/light-clients/09-localhost/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // Localhost sentinel errors diff --git a/libs/ibc-go/modules/light-clients/09-localhost/types/localhost.pb.go b/libs/ibc-go/modules/light-clients/09-localhost/types/localhost.pb.go index e6ab2b246..7d5c522e0 100644 --- a/libs/ibc-go/modules/light-clients/09-localhost/types/localhost.pb.go +++ b/libs/ibc-go/modules/light-clients/09-localhost/types/localhost.pb.go @@ -7,7 +7,7 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" io "io" math "math" math_bits "math/bits" diff --git a/libs/ibc-go/modules/light-clients/09-localhost/types/localhost_test.go b/libs/ibc-go/modules/light-clients/09-localhost/types/localhost_test.go index e0b6638ef..5523e80a3 100644 --- a/libs/ibc-go/modules/light-clients/09-localhost/types/localhost_test.go +++ b/libs/ibc-go/modules/light-clients/09-localhost/types/localhost_test.go @@ -3,14 +3,14 @@ package types_test import ( "testing" - tmproto "github.com/okx/okbchain/libs/tendermint/abci/types" + tmproto "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) const ( diff --git a/libs/ibc-go/testing/app.go b/libs/ibc-go/testing/app.go index d978145b8..b4ec91228 100644 --- a/libs/ibc-go/testing/app.go +++ b/libs/ibc-go/testing/app.go @@ -2,38 +2,38 @@ package ibctesting import ( "encoding/json" - staking "github.com/okx/okbchain/x/staking/types" + staking "github.com/okx/brczero/x/staking/types" "testing" "time" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/client" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" - //cryptocodec "github.com/okx/okbchain/app/crypto/ethsecp256k1" + //cryptocodec "github.com/okx/brczero/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" - //authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + //authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/evm" - evmtypes "github.com/okx/okbchain/x/evm/types" - stakingkeeper "github.com/okx/okbchain/x/staking" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/evm" + evmtypes "github.com/okx/brczero/x/evm/types" + stakingkeeper "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) var DefaultTestingAppInit func() (TestingApp, map[string]json.RawMessage) = SetupTestingApp diff --git a/libs/ibc-go/testing/chain.go b/libs/ibc-go/testing/chain.go index 7ce3c63f5..06dc49f49 100644 --- a/libs/ibc-go/testing/chain.go +++ b/libs/ibc-go/testing/chain.go @@ -6,46 +6,46 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/tendermint/crypto" - - "github.com/okx/okbchain/libs/cosmos-sdk/client" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - //cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - - //banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/types" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmproto "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmprototypes "github.com/okx/okbchain/libs/tendermint/proto/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - tmprotoversion "github.com/okx/okbchain/libs/tendermint/version" - tmversion "github.com/okx/okbchain/libs/tendermint/version" - stakingtypes "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/tendermint/crypto" + + "github.com/okx/brczero/libs/cosmos-sdk/client" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + //cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + + //banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank/types" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmproto "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmprototypes "github.com/okx/brczero/libs/tendermint/proto/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + tmprotoversion "github.com/okx/brczero/libs/tendermint/version" + tmversion "github.com/okx/brczero/libs/tendermint/version" + stakingtypes "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - apptypes "github.com/okx/okbchain/app/types" - okbcapptypes "github.com/okx/okbchain/app/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + apptypes "github.com/okx/brczero/app/types" + okbcapptypes "github.com/okx/brczero/app/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + "github.com/okx/brczero/libs/ibc-go/testing/mock" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" ) type TestChainI interface { diff --git a/libs/ibc-go/testing/chain_test.go b/libs/ibc-go/testing/chain_test.go index 6dffc4bcb..27d61503d 100644 --- a/libs/ibc-go/testing/chain_test.go +++ b/libs/ibc-go/testing/chain_test.go @@ -3,11 +3,11 @@ package ibctesting_test import ( "testing" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/require" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/testing/mock" ) func TestCreateSortedSignerArray(t *testing.T) { diff --git a/libs/ibc-go/testing/config.go b/libs/ibc-go/testing/config.go index 57bd4688e..d94d9b2cf 100644 --- a/libs/ibc-go/testing/config.go +++ b/libs/ibc-go/testing/config.go @@ -3,11 +3,11 @@ package ibctesting import ( "time" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + "github.com/okx/brczero/libs/ibc-go/testing/mock" ) type ClientConfig interface { diff --git a/libs/ibc-go/testing/coordinator.go b/libs/ibc-go/testing/coordinator.go index 49699ac9d..8aec5263a 100644 --- a/libs/ibc-go/testing/coordinator.go +++ b/libs/ibc-go/testing/coordinator.go @@ -6,7 +6,7 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" ) diff --git a/libs/ibc-go/testing/endpoint.go b/libs/ibc-go/testing/endpoint.go index 0c1c4ef61..9db94d81f 100644 --- a/libs/ibc-go/testing/endpoint.go +++ b/libs/ibc-go/testing/endpoint.go @@ -3,18 +3,18 @@ package ibctesting import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // sdk "github.com/cosmos/cosmos-sdk/types" "github.com/stretchr/testify/require" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" ) // Endpoint is a which represents a channel endpoint and its associated diff --git a/libs/ibc-go/testing/events.go b/libs/ibc-go/testing/events.go index 80fd72db1..8035f5bee 100644 --- a/libs/ibc-go/testing/events.go +++ b/libs/ibc-go/testing/events.go @@ -4,10 +4,10 @@ import ( "fmt" "strconv" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // ParseClientIDFromEvents parses events emitted from a MsgCreateClient and returns the diff --git a/libs/ibc-go/testing/mock/ibc_app.go b/libs/ibc-go/testing/mock/ibc_app.go index 8d450ed25..9a2cc4181 100644 --- a/libs/ibc-go/testing/mock/ibc_app.go +++ b/libs/ibc-go/testing/mock/ibc_app.go @@ -1,11 +1,11 @@ package mock import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // MockIBCApp contains IBC application module callbacks as defined in 05-port. diff --git a/libs/ibc-go/testing/mock/ibc_module.go b/libs/ibc-go/testing/mock/ibc_module.go index 55876f317..bd8b8661e 100644 --- a/libs/ibc-go/testing/mock/ibc_module.go +++ b/libs/ibc-go/testing/mock/ibc_module.go @@ -7,11 +7,11 @@ import ( "strconv" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // IBCModule implements the ICS26 callbacks for testing/mock. diff --git a/libs/ibc-go/testing/mock/mock.go b/libs/ibc-go/testing/mock/mock.go index 932d35ac1..ac700b51d 100644 --- a/libs/ibc-go/testing/mock/mock.go +++ b/libs/ibc-go/testing/mock/mock.go @@ -8,19 +8,19 @@ import ( "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/cobra" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) const ( diff --git a/libs/ibc-go/testing/mock/privval.go b/libs/ibc-go/testing/mock/privval.go index 7be69bb61..96819c57c 100644 --- a/libs/ibc-go/testing/mock/privval.go +++ b/libs/ibc-go/testing/mock/privval.go @@ -1,10 +1,10 @@ package mock import ( - "github.com/okx/okbchain/libs/tendermint/crypto" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" ) var _ tmtypes.PrivValidator = PV{} diff --git a/libs/ibc-go/testing/mock/privval_test.go b/libs/ibc-go/testing/mock/privval_test.go index ed0b36df5..1b7d733eb 100644 --- a/libs/ibc-go/testing/mock/privval_test.go +++ b/libs/ibc-go/testing/mock/privval_test.go @@ -7,7 +7,7 @@ package mock_test // tmproto "github.com/tendermint/tendermint/proto/tendermint/types" // tmtypes "github.com/tendermint/tendermint/types" -// "github.com/okx/okbchain/libs/ibc-go/testing/mock" +// "github.com/okx/brczero/libs/ibc-go/testing/mock" // ) const chainID = "testChain" diff --git a/libs/ibc-go/testing/path.go b/libs/ibc-go/testing/path.go index 33606f380..2fe01d136 100644 --- a/libs/ibc-go/testing/path.go +++ b/libs/ibc-go/testing/path.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" ) // Path contains two endpoints representing two chains connected over IBC diff --git a/libs/ibc-go/testing/simapp/adapter/capability/module.go b/libs/ibc-go/testing/simapp/adapter/capability/module.go index efeb3ff1e..3ff37fca2 100644 --- a/libs/ibc-go/testing/simapp/adapter/capability/module.go +++ b/libs/ibc-go/testing/simapp/adapter/capability/module.go @@ -2,13 +2,13 @@ package capability import ( "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilityModule "github.com/okx/okbchain/libs/cosmos-sdk/x/capability" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilityModule "github.com/okx/brczero/libs/cosmos-sdk/x/capability" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + types2 "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) type CapabilityModuleAdapter struct { diff --git a/libs/ibc-go/testing/simapp/adapter/codec.go b/libs/ibc-go/testing/simapp/adapter/codec.go index 68e049df7..1fbd39d89 100644 --- a/libs/ibc-go/testing/simapp/adapter/codec.go +++ b/libs/ibc-go/testing/simapp/adapter/codec.go @@ -1,6 +1,6 @@ package adapter -import "github.com/okx/okbchain/libs/cosmos-sdk/codec" +import "github.com/okx/brczero/libs/cosmos-sdk/codec" var ( //amino = codec.NewLegacyAmino() diff --git a/libs/ibc-go/testing/simapp/adapter/core/module.go b/libs/ibc-go/testing/simapp/adapter/core/module.go index 537c82f5b..9766e4926 100644 --- a/libs/ibc-go/testing/simapp/adapter/core/module.go +++ b/libs/ibc-go/testing/simapp/adapter/core/module.go @@ -4,13 +4,13 @@ import ( "encoding/json" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/core/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/core/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) type CoreModule struct { diff --git a/libs/ibc-go/testing/simapp/adapter/evm/module.go b/libs/ibc-go/testing/simapp/adapter/evm/module.go index 54cfc447e..736016713 100644 --- a/libs/ibc-go/testing/simapp/adapter/evm/module.go +++ b/libs/ibc-go/testing/simapp/adapter/evm/module.go @@ -2,11 +2,11 @@ package evm import ( "encoding/json" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm" + "github.com/okx/brczero/x/evm/types" ) type EvmModuleAdapter struct { diff --git a/libs/ibc-go/testing/simapp/adapter/fee/module.go b/libs/ibc-go/testing/simapp/adapter/fee/module.go index acf858b07..043e4c659 100644 --- a/libs/ibc-go/testing/simapp/adapter/fee/module.go +++ b/libs/ibc-go/testing/simapp/adapter/fee/module.go @@ -3,13 +3,13 @@ package fee import ( "encoding/json" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - fee "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/keeper" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + fee "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee" + "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/keeper" ) type TestFeeAppModuleBaisc struct { diff --git a/libs/ibc-go/testing/simapp/adapter/ica/module.go b/libs/ibc-go/testing/simapp/adapter/ica/module.go index 040c11f20..98674f887 100644 --- a/libs/ibc-go/testing/simapp/adapter/ica/module.go +++ b/libs/ibc-go/testing/simapp/adapter/ica/module.go @@ -3,15 +3,15 @@ package ica import ( "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - ica "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts" - controllerkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" - hostkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + ica "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts" + controllerkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" + hostkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) type TestICAModuleBaisc struct { diff --git a/libs/ibc-go/testing/simapp/adapter/staking/module.go b/libs/ibc-go/testing/simapp/adapter/staking/module.go index 6dd405645..4689441c6 100644 --- a/libs/ibc-go/testing/simapp/adapter/staking/module.go +++ b/libs/ibc-go/testing/simapp/adapter/staking/module.go @@ -2,12 +2,12 @@ package staking import ( "encoding/json" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/staking" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + types2 "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/staking" + "github.com/okx/brczero/x/staking/types" ) type StakingModule struct { diff --git a/libs/ibc-go/testing/simapp/adapter/staking/staking.go b/libs/ibc-go/testing/simapp/adapter/staking/staking.go index 5fa78ff98..d7c85ae06 100644 --- a/libs/ibc-go/testing/simapp/adapter/staking/staking.go +++ b/libs/ibc-go/testing/simapp/adapter/staking/staking.go @@ -2,13 +2,13 @@ package staking import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + types2 "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/x/staking/types" ) type StakingKeeper struct { diff --git a/libs/ibc-go/testing/simapp/adapter/transfer/module.go b/libs/ibc-go/testing/simapp/adapter/transfer/module.go index c3e6487a7..b5a9c3c11 100644 --- a/libs/ibc-go/testing/simapp/adapter/transfer/module.go +++ b/libs/ibc-go/testing/simapp/adapter/transfer/module.go @@ -4,17 +4,17 @@ import ( "encoding/json" "fmt" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/keeper" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/keeper" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) var ( diff --git a/libs/ibc-go/testing/simapp/app.go b/libs/ibc-go/testing/simapp/app.go index 9f39ba77e..ce43e5eb1 100644 --- a/libs/ibc-go/testing/simapp/app.go +++ b/libs/ibc-go/testing/simapp/app.go @@ -14,97 +14,97 @@ import ( "google.golang.org/grpc/encoding" "google.golang.org/grpc/encoding/proto" - appante "github.com/okx/okbchain/app/ante" - chaincodec "github.com/okx/okbchain/app/codec" - appconfig "github.com/okx/okbchain/app/config" - "github.com/okx/okbchain/app/refund" - chain "github.com/okx/okbchain/app/types" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/app/utils/sanity" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - upgradetypes "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authante "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - capabilityModule "github.com/okx/okbchain/libs/cosmos-sdk/x/capability" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - govclient "github.com/okx/okbchain/libs/cosmos-sdk/x/mint/client" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - icacontroller "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller" - icacontrollerkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" - icacontrollertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" - icahost "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host" - icahostkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" - icahosttypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - ibcfee "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee" - ibcfeekeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/keeper" - ibcfeetypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - ibctransfer "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer" - ibctransferkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/keeper" - ibctransfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" - ibcclient "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client" - ibcclienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - ibcporttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - ibchost "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibccommon "github.com/okx/okbchain/libs/ibc-go/modules/core/common" - ibckeeper "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter/capability" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter/core" - evm2 "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter/evm" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter/fee" - ica2 "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter/ica" - staking2 "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter/staking" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/adapter/transfer" - "github.com/okx/okbchain/libs/system" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - commonversion "github.com/okx/okbchain/x/common/version" - distr "github.com/okx/okbchain/x/distribution" - "github.com/okx/okbchain/x/erc20" - erc20client "github.com/okx/okbchain/x/erc20/client" - "github.com/okx/okbchain/x/evidence" - "github.com/okx/okbchain/x/evm" - evmclient "github.com/okx/okbchain/x/evm/client" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/genutil" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/icamauth" - icamauthkeeper "github.com/okx/okbchain/x/icamauth/keeper" - icamauthtypes "github.com/okx/okbchain/x/icamauth/types" - "github.com/okx/okbchain/x/params" - paramsclient "github.com/okx/okbchain/x/params/client" - "github.com/okx/okbchain/x/slashing" - "github.com/okx/okbchain/x/staking" - stakingclient "github.com/okx/okbchain/x/staking/client" - "github.com/okx/okbchain/x/token" - "github.com/okx/okbchain/x/wasm" - wasmclient "github.com/okx/okbchain/x/wasm/client" - wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" + appante "github.com/okx/brczero/app/ante" + chaincodec "github.com/okx/brczero/app/codec" + appconfig "github.com/okx/brczero/app/config" + "github.com/okx/brczero/app/refund" + chain "github.com/okx/brczero/app/types" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/app/utils/sanity" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + upgradetypes "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authante "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + capabilityModule "github.com/okx/brczero/libs/cosmos-sdk/x/capability" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + govclient "github.com/okx/brczero/libs/cosmos-sdk/x/mint/client" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + icacontroller "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller" + icacontrollerkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" + icacontrollertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/types" + icahost "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host" + icahostkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/keeper" + icahosttypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/host/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + ibcfee "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee" + ibcfeekeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/keeper" + ibcfeetypes "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + ibctransfer "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer" + ibctransferkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/keeper" + ibctransfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" + ibcclient "github.com/okx/brczero/libs/ibc-go/modules/core/02-client" + ibcclienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + ibcporttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + ibchost "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibccommon "github.com/okx/brczero/libs/ibc-go/modules/core/common" + ibckeeper "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + "github.com/okx/brczero/libs/ibc-go/testing/mock" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter/capability" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter/core" + evm2 "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter/evm" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter/fee" + ica2 "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter/ica" + staking2 "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter/staking" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/adapter/transfer" + "github.com/okx/brczero/libs/system" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/cli" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + commonversion "github.com/okx/brczero/x/common/version" + distr "github.com/okx/brczero/x/distribution" + "github.com/okx/brczero/x/erc20" + erc20client "github.com/okx/brczero/x/erc20/client" + "github.com/okx/brczero/x/evidence" + "github.com/okx/brczero/x/evm" + evmclient "github.com/okx/brczero/x/evm/client" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/genutil" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/icamauth" + icamauthkeeper "github.com/okx/brczero/x/icamauth/keeper" + icamauthtypes "github.com/okx/brczero/x/icamauth/types" + "github.com/okx/brczero/x/params" + paramsclient "github.com/okx/brczero/x/params/client" + "github.com/okx/brczero/x/slashing" + "github.com/okx/brczero/x/staking" + stakingclient "github.com/okx/brczero/x/staking/client" + "github.com/okx/brczero/x/token" + "github.com/okx/brczero/x/wasm" + wasmclient "github.com/okx/brczero/x/wasm/client" + wasmkeeper "github.com/okx/brczero/x/wasm/keeper" ) func init() { @@ -845,8 +845,8 @@ func (app *SimApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abc // EndBlocker updates every end block func (app *SimApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock { - // if appconfig.GetOkbcConfig().GetEnableDynamicGp() { - // GlobalGpIndex = CalBlockGasPriceIndex(app.blockGasPrice, appconfig.GetOkbcConfig().GetDynamicGpWeight()) + // if appconfig.GetBRCZeroConfig().GetEnableDynamicGp() { + // GlobalGpIndex = CalBlockGasPriceIndex(app.blockGasPrice, appconfig.GetBRCZeroConfig().GetDynamicGpWeight()) // app.blockGasPrice = app.blockGasPrice[:0] // } diff --git a/libs/ibc-go/testing/simapp/config.go b/libs/ibc-go/testing/simapp/config.go index 06b2af2ea..ef71e972a 100644 --- a/libs/ibc-go/testing/simapp/config.go +++ b/libs/ibc-go/testing/simapp/config.go @@ -3,7 +3,7 @@ package simapp import ( "flag" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // List of available flags for the simulator diff --git a/libs/ibc-go/testing/simapp/encoding.go b/libs/ibc-go/testing/simapp/encoding.go index de2dcb598..f238ab0d2 100644 --- a/libs/ibc-go/testing/simapp/encoding.go +++ b/libs/ibc-go/testing/simapp/encoding.go @@ -1,9 +1,9 @@ package simapp import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - simappparams "github.com/okx/okbchain/libs/ibc-go/testing/simapp/params" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + simappparams "github.com/okx/brczero/libs/ibc-go/testing/simapp/params" ) // MakeTestEncodingConfig creates an EncodingConfig for testing. This function diff --git a/libs/ibc-go/testing/simapp/export.go b/libs/ibc-go/testing/simapp/export.go index 0bb5d1282..741b2aab1 100644 --- a/libs/ibc-go/testing/simapp/export.go +++ b/libs/ibc-go/testing/simapp/export.go @@ -4,14 +4,14 @@ import ( "encoding/json" "log" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/slashing" - "github.com/okx/okbchain/x/staking" - "github.com/okx/okbchain/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/slashing" + "github.com/okx/brczero/x/staking" + "github.com/okx/brczero/x/staking/exported" //slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" //stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" ) diff --git a/libs/ibc-go/testing/simapp/genesis_account.go b/libs/ibc-go/testing/simapp/genesis_account.go index a82b22e0f..f5b0fb513 100644 --- a/libs/ibc-go/testing/simapp/genesis_account.go +++ b/libs/ibc-go/testing/simapp/genesis_account.go @@ -2,11 +2,11 @@ package simapp import ( "errors" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) var _ authexported.GenesisAccount = (*SimGenesisAccount)(nil) diff --git a/libs/ibc-go/testing/simapp/genesis_account_test.go b/libs/ibc-go/testing/simapp/genesis_account_test.go index 64390915d..27c667949 100644 --- a/libs/ibc-go/testing/simapp/genesis_account_test.go +++ b/libs/ibc-go/testing/simapp/genesis_account_test.go @@ -4,14 +4,14 @@ import ( "testing" "time" - //"github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/secp256k1" + //"github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/secp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/ibc-go/testing/simapp" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" ) diff --git a/libs/ibc-go/testing/simapp/helpers/test_helpers.go b/libs/ibc-go/testing/simapp/helpers/test_helpers.go index 7dd00633b..ce8c5252f 100644 --- a/libs/ibc-go/testing/simapp/helpers/test_helpers.go +++ b/libs/ibc-go/testing/simapp/helpers/test_helpers.go @@ -4,27 +4,27 @@ import ( "math/rand" "time" - ica "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" + ica "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" - ibcfee "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee" + ibcfee "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee" - chaincodec "github.com/okx/okbchain/app/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - signing2 "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibcsigning" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - capabilityModule "github.com/okx/okbchain/libs/cosmos-sdk/x/capability" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - ibctransfer "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/x/icamauth" + chaincodec "github.com/okx/brczero/app/codec" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + signing2 "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibcsigning" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + capabilityModule "github.com/okx/brczero/libs/cosmos-sdk/x/capability" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + ibctransfer "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/x/icamauth" ) // SimAppChainID hardcoded chainID for simulation diff --git a/libs/ibc-go/testing/simapp/params/encoding.go b/libs/ibc-go/testing/simapp/params/encoding.go index 2ab872e48..bde0532b5 100644 --- a/libs/ibc-go/testing/simapp/params/encoding.go +++ b/libs/ibc-go/testing/simapp/params/encoding.go @@ -1,8 +1,8 @@ package params import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" ) // EncodingConfig specifies the concrete encoding types to use for a given app. diff --git a/libs/ibc-go/testing/simapp/params/proto.go b/libs/ibc-go/testing/simapp/params/proto.go index 93596c12e..785342dd3 100644 --- a/libs/ibc-go/testing/simapp/params/proto.go +++ b/libs/ibc-go/testing/simapp/params/proto.go @@ -4,7 +4,7 @@ package params import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" ) // MakeTestEncodingConfig creates an EncodingConfig for a non-amino based test configuration. diff --git a/libs/ibc-go/testing/simapp/sim_bench_test.go b/libs/ibc-go/testing/simapp/sim_bench_test.go index 839390bae..8bf55eb49 100644 --- a/libs/ibc-go/testing/simapp/sim_bench_test.go +++ b/libs/ibc-go/testing/simapp/sim_bench_test.go @@ -5,13 +5,13 @@ import ( "os" "testing" - tmproto "github.com/okx/okbchain/libs/tendermint/abci/types" + tmproto "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // Profile with: -// /usr/local/go/bin/go test -benchmem -run=^$ github.com/okx/okbchain/libs/ibc-go/modules/testing/simapp -bench ^BenchmarkFullAppSimulation$ -Commit=true -cpuprofile cpu.out +// /usr/local/go/bin/go test -benchmem -run=^$ github.com/okx/brczero/libs/ibc-go/modules/testing/simapp -bench ^BenchmarkFullAppSimulation$ -Commit=true -cpuprofile cpu.out func BenchmarkFullAppSimulation(b *testing.B) { b.ReportAllocs() config, db, dir, logger, _, err := SetupSimulation("goleveldb-app-sim", "Simulation") diff --git a/libs/ibc-go/testing/simapp/sim_test.go b/libs/ibc-go/testing/simapp/sim_test.go index 4645e596a..f43589888 100644 --- a/libs/ibc-go/testing/simapp/sim_test.go +++ b/libs/ibc-go/testing/simapp/sim_test.go @@ -7,28 +7,28 @@ import ( "os" "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - distrtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - evidencetypes "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - minttypes "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - paramtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - slashingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - ibctransfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - ibchost "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/helpers" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + distrtypes "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + evidencetypes "github.com/okx/brczero/libs/cosmos-sdk/x/evidence" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + minttypes "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + paramtypes "github.com/okx/brczero/libs/cosmos-sdk/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + slashingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/slashing" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + ibctransfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + ibchost "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/helpers" ) // Get flags every time the simulator is run diff --git a/libs/ibc-go/testing/simapp/state.go b/libs/ibc-go/testing/simapp/state.go index 5adcb8ea7..a626284db 100644 --- a/libs/ibc-go/testing/simapp/state.go +++ b/libs/ibc-go/testing/simapp/state.go @@ -8,22 +8,22 @@ import ( "math/rand" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - // tmjson "github.com/okx/okbchain/libs/tendermint/libs/json" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + // tmjson "github.com/okx/brczero/libs/tendermint/libs/json" + tmtypes "github.com/okx/brczero/libs/tendermint/types" //stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" //banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" + banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank" // authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" //simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - simtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - simappparams "github.com/okx/okbchain/libs/ibc-go/testing/simapp/params" + simtypes "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + simappparams "github.com/okx/brczero/libs/ibc-go/testing/simapp/params" ) // AppStateFn returns the initial application state using a genesis or the simulation parameters. diff --git a/libs/ibc-go/testing/simapp/test_helpers.go b/libs/ibc-go/testing/simapp/test_helpers.go index dcb36833f..506455e29 100644 --- a/libs/ibc-go/testing/simapp/test_helpers.go +++ b/libs/ibc-go/testing/simapp/test_helpers.go @@ -5,30 +5,30 @@ import ( "encoding/hex" "encoding/json" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/client" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" "math/big" "strconv" "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmproto "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmproto "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - minttypes "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/helpers" - cryptotypes2 "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + minttypes "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/helpers" + cryptotypes2 "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" ) // DefaultConsensusParams defines the default Tendermint consensus params used in diff --git a/libs/ibc-go/testing/simapp/types.go b/libs/ibc-go/testing/simapp/types.go index f6f52f74e..03ac37a63 100644 --- a/libs/ibc-go/testing/simapp/types.go +++ b/libs/ibc-go/testing/simapp/types.go @@ -2,12 +2,12 @@ package simapp import ( "encoding/json" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" - //"github.com/okx/okbchain/libs/cosmos-sdk/server/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" + //"github.com/okx/brczero/libs/cosmos-sdk/server/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" ) // App implements the common methods for a Cosmos SDK-based application diff --git a/libs/ibc-go/testing/simapp/types/account.go b/libs/ibc-go/testing/simapp/types/account.go index 46b7faff4..4d36738df 100644 --- a/libs/ibc-go/testing/simapp/types/account.go +++ b/libs/ibc-go/testing/simapp/types/account.go @@ -1,8 +1,8 @@ package types import ( - cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "time" ) diff --git a/libs/ibc-go/testing/simapp/utils.go b/libs/ibc-go/testing/simapp/utils.go index c59425df5..cd82b225a 100644 --- a/libs/ibc-go/testing/simapp/utils.go +++ b/libs/ibc-go/testing/simapp/utils.go @@ -5,17 +5,17 @@ import ( "fmt" "io/ioutil" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/tendermint/libs/kv" // simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - simtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/ibc-go/testing/simapp/helpers" + simtypes "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/ibc-go/testing/simapp/helpers" ) // SetupSimulation creates the config, db (levelDB), temporary directory and logger for diff --git a/libs/ibc-go/testing/simapp/utils_test.go b/libs/ibc-go/testing/simapp/utils_test.go index 648ff69bc..e61766fcf 100644 --- a/libs/ibc-go/testing/simapp/utils_test.go +++ b/libs/ibc-go/testing/simapp/utils_test.go @@ -2,17 +2,17 @@ package simapp import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" "testing" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) func makeCodec(bm module.BasicManager) types.InterfaceRegistry { diff --git a/libs/ibc-go/testing/solomachine.go b/libs/ibc-go/testing/solomachine.go index 6eecbdf20..9f87d2171 100644 --- a/libs/ibc-go/testing/solomachine.go +++ b/libs/ibc-go/testing/solomachine.go @@ -1,17 +1,17 @@ package ibctesting import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx/signing" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - solomachinetypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/06-solomachine/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx/signing" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + solomachinetypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/06-solomachine/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" "testing" ) @@ -28,11 +28,11 @@ import ( // cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" // "github.com/cosmos/cosmos-sdk/crypto/types/multisig" // "github.com/cosmos/cosmos-sdk/types/tx/signing" -// clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" -// commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" -// host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" -// "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" -// solomachinetypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/06-solomachine/types" +// clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" +// commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" +// host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" +// "github.com/okx/brczero/libs/ibc-go/modules/core/exported" +// solomachinetypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/06-solomachine/types" // ) // Solomachine is a testing helper used to simulate a counterparty diff --git a/libs/ibc-go/testing/values.go b/libs/ibc-go/testing/values.go index 4549418db..aeece6911 100644 --- a/libs/ibc-go/testing/values.go +++ b/libs/ibc-go/testing/values.go @@ -8,16 +8,16 @@ import ( "strconv" "time" - ibcfeetypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" + ibcfeetypes "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - ibctransfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" + ibctransfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + "github.com/okx/brczero/libs/ibc-go/testing/mock" ) const ( diff --git a/libs/system/trace/persist/statistics.go b/libs/system/trace/persist/statistics.go index e7ce52e3e..d541ceddb 100644 --- a/libs/system/trace/persist/statistics.go +++ b/libs/system/trace/persist/statistics.go @@ -3,7 +3,7 @@ package persist import ( "fmt" - "github.com/okx/okbchain/libs/system/trace" + "github.com/okx/brczero/libs/system/trace" ) var stats *statistics diff --git a/libs/system/trace/pprof.go b/libs/system/trace/pprof.go index 2240dcc43..4dd9bf2b4 100644 --- a/libs/system/trace/pprof.go +++ b/libs/system/trace/pprof.go @@ -7,7 +7,7 @@ import ( "runtime/pprof" "time" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) const ( diff --git a/libs/system/trace/summary.go b/libs/system/trace/summary.go index 18a648a80..544cfd74c 100644 --- a/libs/system/trace/summary.go +++ b/libs/system/trace/summary.go @@ -2,7 +2,7 @@ package trace import ( "fmt" - //"github.com/okx/okbchain/libs/tendermint/libs/log" + //"github.com/okx/brczero/libs/tendermint/libs/log" ) var sum *Summary diff --git a/libs/tendermint/abci/client/client.go b/libs/tendermint/abci/client/client.go index 9fb92719e..7cef08df3 100644 --- a/libs/tendermint/abci/client/client.go +++ b/libs/tendermint/abci/client/client.go @@ -3,8 +3,8 @@ package abcicli import ( "sync" - "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/service" ) const ( diff --git a/libs/tendermint/abci/client/local_client.go b/libs/tendermint/abci/client/local_client.go index 168741c7a..93314e3ed 100644 --- a/libs/tendermint/abci/client/local_client.go +++ b/libs/tendermint/abci/client/local_client.go @@ -3,8 +3,8 @@ package abcicli import ( "sync" - "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/service" ) var _ Client = (*localClient)(nil) diff --git a/libs/tendermint/abci/example/counter/counter.go b/libs/tendermint/abci/example/counter/counter.go index 9783cddd0..27d84ce66 100644 --- a/libs/tendermint/abci/example/counter/counter.go +++ b/libs/tendermint/abci/example/counter/counter.go @@ -6,10 +6,10 @@ import ( "fmt" "math/big" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/abci/example/code" - "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/abci/example/code" + "github.com/okx/brczero/libs/tendermint/abci/types" ) type MockExTxInfo struct { diff --git a/libs/tendermint/abci/example/kvstore/helpers.go b/libs/tendermint/abci/example/kvstore/helpers.go index 536b09703..c2ec72155 100644 --- a/libs/tendermint/abci/example/kvstore/helpers.go +++ b/libs/tendermint/abci/example/kvstore/helpers.go @@ -1,8 +1,8 @@ package kvstore import ( - "github.com/okx/okbchain/libs/tendermint/abci/types" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/abci/types" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) // RandVal creates one random validator, with a key derived diff --git a/libs/tendermint/abci/example/kvstore/kvstore.go b/libs/tendermint/abci/example/kvstore/kvstore.go index 74fefc386..983031e37 100644 --- a/libs/tendermint/abci/example/kvstore/kvstore.go +++ b/libs/tendermint/abci/example/kvstore/kvstore.go @@ -7,14 +7,14 @@ import ( "fmt" "math/big" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/abci/example/code" - "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/abci/example/code" + "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/version" ) var ( diff --git a/libs/tendermint/abci/example/kvstore/kvstore_test.go b/libs/tendermint/abci/example/kvstore/kvstore_test.go index 35a96b1c6..d90e941da 100644 --- a/libs/tendermint/abci/example/kvstore/kvstore_test.go +++ b/libs/tendermint/abci/example/kvstore/kvstore_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/require" - abcicli "github.com/okx/okbchain/libs/tendermint/abci/client" - "github.com/okx/okbchain/libs/tendermint/abci/example/code" - "github.com/okx/okbchain/libs/tendermint/abci/types" + abcicli "github.com/okx/brczero/libs/tendermint/abci/client" + "github.com/okx/brczero/libs/tendermint/abci/example/code" + "github.com/okx/brczero/libs/tendermint/abci/types" ) const ( diff --git a/libs/tendermint/abci/example/kvstore/persistent_kvstore.go b/libs/tendermint/abci/example/kvstore/persistent_kvstore.go index 452e9f6e2..729581b8a 100644 --- a/libs/tendermint/abci/example/kvstore/persistent_kvstore.go +++ b/libs/tendermint/abci/example/kvstore/persistent_kvstore.go @@ -7,13 +7,13 @@ import ( "strconv" "strings" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/abci/example/code" - "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/code" + "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/abci/tests/benchmarks/parallel/parallel.go b/libs/tendermint/abci/tests/benchmarks/parallel/parallel.go index d20c8e918..606b97484 100644 --- a/libs/tendermint/abci/tests/benchmarks/parallel/parallel.go +++ b/libs/tendermint/abci/tests/benchmarks/parallel/parallel.go @@ -5,8 +5,8 @@ import ( "fmt" "log" - "github.com/okx/okbchain/libs/tendermint/abci/types" - tmnet "github.com/okx/okbchain/libs/tendermint/libs/net" + "github.com/okx/brczero/libs/tendermint/abci/types" + tmnet "github.com/okx/brczero/libs/tendermint/libs/net" ) func main() { diff --git a/libs/tendermint/abci/tests/benchmarks/simple/simple.go b/libs/tendermint/abci/tests/benchmarks/simple/simple.go index d2f3aa35b..b4ef0c269 100644 --- a/libs/tendermint/abci/tests/benchmarks/simple/simple.go +++ b/libs/tendermint/abci/tests/benchmarks/simple/simple.go @@ -7,8 +7,8 @@ import ( "log" "reflect" - "github.com/okx/okbchain/libs/tendermint/abci/types" - tmnet "github.com/okx/okbchain/libs/tendermint/libs/net" + "github.com/okx/brczero/libs/tendermint/abci/types" + tmnet "github.com/okx/brczero/libs/tendermint/libs/net" ) func main() { diff --git a/libs/tendermint/abci/tests/server/client.go b/libs/tendermint/abci/tests/server/client.go index 53d653e17..d1b1885fd 100644 --- a/libs/tendermint/abci/tests/server/client.go +++ b/libs/tendermint/abci/tests/server/client.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - abcicli "github.com/okx/okbchain/libs/tendermint/abci/client" - "github.com/okx/okbchain/libs/tendermint/abci/types" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + abcicli "github.com/okx/brczero/libs/tendermint/abci/client" + "github.com/okx/brczero/libs/tendermint/abci/types" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) func InitChain(client abcicli.Client) error { diff --git a/libs/tendermint/abci/types/amino.go b/libs/tendermint/abci/types/amino.go index c4d147356..ee8ed2b6d 100644 --- a/libs/tendermint/abci/types/amino.go +++ b/libs/tendermint/abci/types/amino.go @@ -6,7 +6,7 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/kv" "github.com/tendermint/go-amino" ) diff --git a/libs/tendermint/abci/types/amino_test.go b/libs/tendermint/abci/types/amino_test.go index 62484d907..68dd1ad2e 100644 --- a/libs/tendermint/abci/types/amino_test.go +++ b/libs/tendermint/abci/types/amino_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/kv" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" diff --git a/libs/tendermint/abci/types/messages_test.go b/libs/tendermint/abci/types/messages_test.go index 2cb954c8f..20601c7c0 100644 --- a/libs/tendermint/abci/types/messages_test.go +++ b/libs/tendermint/abci/types/messages_test.go @@ -9,7 +9,7 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/kv" ) func TestMarshalJSON(t *testing.T) { diff --git a/libs/tendermint/abci/types/types.pb.go b/libs/tendermint/abci/types/types.pb.go index 73ca2776a..aabf5ccba 100644 --- a/libs/tendermint/abci/types/types.pb.go +++ b/libs/tendermint/abci/types/types.pb.go @@ -15,8 +15,8 @@ import ( golang_proto "github.com/golang/protobuf/proto" _ "github.com/golang/protobuf/ptypes/duration" _ "github.com/golang/protobuf/ptypes/timestamp" - merkle "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - kv "github.com/okx/okbchain/libs/tendermint/libs/kv" + merkle "github.com/okx/brczero/libs/tendermint/crypto/merkle" + kv "github.com/okx/brczero/libs/tendermint/libs/kv" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/libs/tendermint/abci/types/typespb_test.go b/libs/tendermint/abci/types/typespb_test.go index 99bea13cd..ad761edf8 100644 --- a/libs/tendermint/abci/types/typespb_test.go +++ b/libs/tendermint/abci/types/typespb_test.go @@ -17,8 +17,8 @@ import ( golang_proto "github.com/golang/protobuf/proto" _ "github.com/golang/protobuf/ptypes/duration" _ "github.com/golang/protobuf/ptypes/timestamp" - _ "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - _ "github.com/okx/okbchain/libs/tendermint/libs/kv" + _ "github.com/okx/brczero/libs/tendermint/crypto/merkle" + _ "github.com/okx/brczero/libs/tendermint/libs/kv" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/libs/tendermint/abci/version/version.go b/libs/tendermint/abci/version/version.go index 3f2ae24be..f404d26e0 100644 --- a/libs/tendermint/abci/version/version.go +++ b/libs/tendermint/abci/version/version.go @@ -1,7 +1,7 @@ package version import ( - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/version" ) // TODO: eliminate this after some version refactor diff --git a/libs/tendermint/behaviour/peer_behaviour.go b/libs/tendermint/behaviour/peer_behaviour.go index c83851bf0..7d0fbfa71 100644 --- a/libs/tendermint/behaviour/peer_behaviour.go +++ b/libs/tendermint/behaviour/peer_behaviour.go @@ -1,7 +1,7 @@ package behaviour import ( - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p" ) // PeerBehaviour is a struct describing a behaviour a peer performed. diff --git a/libs/tendermint/behaviour/reporter.go b/libs/tendermint/behaviour/reporter.go index 3f0ffbbf7..150bafb8b 100644 --- a/libs/tendermint/behaviour/reporter.go +++ b/libs/tendermint/behaviour/reporter.go @@ -4,7 +4,7 @@ import ( "errors" "sync" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p" ) // Reporter provides an interface for reactors to report the behaviour diff --git a/libs/tendermint/behaviour/reporter_test.go b/libs/tendermint/behaviour/reporter_test.go index 7b5c2cb34..c18a38e5e 100644 --- a/libs/tendermint/behaviour/reporter_test.go +++ b/libs/tendermint/behaviour/reporter_test.go @@ -4,8 +4,8 @@ import ( "sync" "testing" - bh "github.com/okx/okbchain/libs/tendermint/behaviour" - "github.com/okx/okbchain/libs/tendermint/p2p" + bh "github.com/okx/brczero/libs/tendermint/behaviour" + "github.com/okx/brczero/libs/tendermint/p2p" ) // TestMockReporter tests the MockReporter's ability to store reported diff --git a/libs/tendermint/blockchain/v0/codec.go b/libs/tendermint/blockchain/v0/codec.go index ca3e3c145..d1e69c55e 100644 --- a/libs/tendermint/blockchain/v0/codec.go +++ b/libs/tendermint/blockchain/v0/codec.go @@ -3,7 +3,7 @@ package v0 import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/blockchain/v0/pool.go b/libs/tendermint/blockchain/v0/pool.go index fcb4ff385..f4678648a 100644 --- a/libs/tendermint/blockchain/v0/pool.go +++ b/libs/tendermint/blockchain/v0/pool.go @@ -8,11 +8,11 @@ import ( "sync/atomic" "time" - flow "github.com/okx/okbchain/libs/tendermint/libs/flowrate" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + flow "github.com/okx/brczero/libs/tendermint/libs/flowrate" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) /* diff --git a/libs/tendermint/blockchain/v0/pool_test.go b/libs/tendermint/blockchain/v0/pool_test.go index 545ec878f..e8a77b1ca 100644 --- a/libs/tendermint/blockchain/v0/pool_test.go +++ b/libs/tendermint/blockchain/v0/pool_test.go @@ -8,10 +8,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) func init() { diff --git a/libs/tendermint/blockchain/v0/reactor.go b/libs/tendermint/blockchain/v0/reactor.go index 51e664ef9..29dab1ee1 100644 --- a/libs/tendermint/blockchain/v0/reactor.go +++ b/libs/tendermint/blockchain/v0/reactor.go @@ -9,11 +9,11 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/blockchain/v0/reactor_test.go b/libs/tendermint/blockchain/v0/reactor_test.go index 7b6cbe3bc..6ee7559c7 100644 --- a/libs/tendermint/blockchain/v0/reactor_test.go +++ b/libs/tendermint/blockchain/v0/reactor_test.go @@ -9,18 +9,18 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/assert" - dbm "github.com/okx/okbchain/libs/tm-db" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/mock" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + dbm "github.com/okx/brczero/libs/tm-db" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/mock" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) var config *cfg.Config diff --git a/libs/tendermint/blockchain/v1/codec.go b/libs/tendermint/blockchain/v1/codec.go index 718a06bd7..8e227e534 100644 --- a/libs/tendermint/blockchain/v1/codec.go +++ b/libs/tendermint/blockchain/v1/codec.go @@ -3,7 +3,7 @@ package v1 import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/blockchain/v1/peer.go b/libs/tendermint/blockchain/v1/peer.go index 919f554e4..77ad2ddcf 100644 --- a/libs/tendermint/blockchain/v1/peer.go +++ b/libs/tendermint/blockchain/v1/peer.go @@ -5,10 +5,10 @@ import ( "math" "time" - flow "github.com/okx/okbchain/libs/tendermint/libs/flowrate" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + flow "github.com/okx/brczero/libs/tendermint/libs/flowrate" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) //-------- diff --git a/libs/tendermint/blockchain/v1/peer_test.go b/libs/tendermint/blockchain/v1/peer_test.go index c4c2ab4d8..45caec4f5 100644 --- a/libs/tendermint/blockchain/v1/peer_test.go +++ b/libs/tendermint/blockchain/v1/peer_test.go @@ -8,10 +8,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) func TestPeerMonitor(t *testing.T) { diff --git a/libs/tendermint/blockchain/v1/pool.go b/libs/tendermint/blockchain/v1/pool.go index 2231968b5..cfd2f7178 100644 --- a/libs/tendermint/blockchain/v1/pool.go +++ b/libs/tendermint/blockchain/v1/pool.go @@ -3,9 +3,9 @@ package v1 import ( "sort" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) // BlockPool keeps track of the fast sync peers, block requests and block responses. diff --git a/libs/tendermint/blockchain/v1/pool_test.go b/libs/tendermint/blockchain/v1/pool_test.go index ca54b9c0d..d7e08756e 100644 --- a/libs/tendermint/blockchain/v1/pool_test.go +++ b/libs/tendermint/blockchain/v1/pool_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) type testPeer struct { diff --git a/libs/tendermint/blockchain/v1/reactor.go b/libs/tendermint/blockchain/v1/reactor.go index 2fcad9a6e..6aaa344e4 100644 --- a/libs/tendermint/blockchain/v1/reactor.go +++ b/libs/tendermint/blockchain/v1/reactor.go @@ -8,12 +8,12 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/behaviour" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/behaviour" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/blockchain/v1/reactor_fsm.go b/libs/tendermint/blockchain/v1/reactor_fsm.go index 5f0b5ac11..5c1aa65be 100644 --- a/libs/tendermint/blockchain/v1/reactor_fsm.go +++ b/libs/tendermint/blockchain/v1/reactor_fsm.go @@ -6,9 +6,9 @@ import ( "sync" "time" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) // Blockchain Reactor State diff --git a/libs/tendermint/blockchain/v1/reactor_fsm_test.go b/libs/tendermint/blockchain/v1/reactor_fsm_test.go index d2981a68a..ee8f22033 100644 --- a/libs/tendermint/blockchain/v1/reactor_fsm_test.go +++ b/libs/tendermint/blockchain/v1/reactor_fsm_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) type lastBlockRequestT struct { diff --git a/libs/tendermint/blockchain/v1/reactor_test.go b/libs/tendermint/blockchain/v1/reactor_test.go index c69c24282..af3f3c600 100644 --- a/libs/tendermint/blockchain/v1/reactor_test.go +++ b/libs/tendermint/blockchain/v1/reactor_test.go @@ -12,18 +12,18 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/mock" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + dbm "github.com/okx/brczero/libs/tm-db" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/mock" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) var config *cfg.Config diff --git a/libs/tendermint/blockchain/v2/codec.go b/libs/tendermint/blockchain/v2/codec.go index 018c08058..237b0f30d 100644 --- a/libs/tendermint/blockchain/v2/codec.go +++ b/libs/tendermint/blockchain/v2/codec.go @@ -3,7 +3,7 @@ package v2 import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/blockchain/v2/io.go b/libs/tendermint/blockchain/v2/io.go index 446130678..a92051ace 100644 --- a/libs/tendermint/blockchain/v2/io.go +++ b/libs/tendermint/blockchain/v2/io.go @@ -3,9 +3,9 @@ package v2 import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) type iIO interface { diff --git a/libs/tendermint/blockchain/v2/processor.go b/libs/tendermint/blockchain/v2/processor.go index 20c08444d..0d6e83882 100644 --- a/libs/tendermint/blockchain/v2/processor.go +++ b/libs/tendermint/blockchain/v2/processor.go @@ -2,9 +2,9 @@ package v2 import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/p2p" - tmState "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/p2p" + tmState "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) // Events generated by the processor: diff --git a/libs/tendermint/blockchain/v2/processor_context.go b/libs/tendermint/blockchain/v2/processor_context.go index b78bcd327..b3447e3e0 100644 --- a/libs/tendermint/blockchain/v2/processor_context.go +++ b/libs/tendermint/blockchain/v2/processor_context.go @@ -3,8 +3,8 @@ package v2 import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) type processorContext interface { diff --git a/libs/tendermint/blockchain/v2/processor_test.go b/libs/tendermint/blockchain/v2/processor_test.go index f41ee64de..376a224c0 100644 --- a/libs/tendermint/blockchain/v2/processor_test.go +++ b/libs/tendermint/blockchain/v2/processor_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/p2p" - tmState "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/p2p" + tmState "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) // pcBlock is a test helper structure with simple types. Its purpose is to help with test readability. diff --git a/libs/tendermint/blockchain/v2/reactor.go b/libs/tendermint/blockchain/v2/reactor.go index c64028810..f9d82212e 100644 --- a/libs/tendermint/blockchain/v2/reactor.go +++ b/libs/tendermint/blockchain/v2/reactor.go @@ -8,11 +8,11 @@ import ( "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/behaviour" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/behaviour" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) //------------------------------------- diff --git a/libs/tendermint/blockchain/v2/reactor_test.go b/libs/tendermint/blockchain/v2/reactor_test.go index fb2a21783..098458a3f 100644 --- a/libs/tendermint/blockchain/v2/reactor_test.go +++ b/libs/tendermint/blockchain/v2/reactor_test.go @@ -8,23 +8,23 @@ import ( "testing" "time" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/pkg/errors" "github.com/stretchr/testify/assert" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/behaviour" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/mock" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/behaviour" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/mock" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) type mockPeer struct { diff --git a/libs/tendermint/blockchain/v2/routine.go b/libs/tendermint/blockchain/v2/routine.go index ece55bd6b..32e1887ad 100644 --- a/libs/tendermint/blockchain/v2/routine.go +++ b/libs/tendermint/blockchain/v2/routine.go @@ -6,7 +6,7 @@ import ( "github.com/Workiva/go-datastructures/queue" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) type handleFunc = func(event Event) (Event, error) diff --git a/libs/tendermint/blockchain/v2/scheduler.go b/libs/tendermint/blockchain/v2/scheduler.go index 178c91d2b..8460fd156 100644 --- a/libs/tendermint/blockchain/v2/scheduler.go +++ b/libs/tendermint/blockchain/v2/scheduler.go @@ -7,8 +7,8 @@ import ( "sort" "time" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) // Events generated by the scheduler: diff --git a/libs/tendermint/blockchain/v2/scheduler_test.go b/libs/tendermint/blockchain/v2/scheduler_test.go index 2fdcd1646..47c7a395e 100644 --- a/libs/tendermint/blockchain/v2/scheduler_test.go +++ b/libs/tendermint/blockchain/v2/scheduler_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) type scTestParams struct { diff --git a/libs/tendermint/cmd/priv_val_server/main.go b/libs/tendermint/cmd/priv_val_server/main.go index 33ed62f77..f08d260be 100644 --- a/libs/tendermint/cmd/priv_val_server/main.go +++ b/libs/tendermint/cmd/priv_val_server/main.go @@ -5,12 +5,12 @@ import ( "os" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmnet "github.com/okx/okbchain/libs/tendermint/libs/net" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmnet "github.com/okx/brczero/libs/tendermint/libs/net" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/privval" ) func main() { diff --git a/libs/tendermint/cmd/tendermint/commands/codec.go b/libs/tendermint/cmd/tendermint/commands/codec.go index b0cc79caa..550a0d364 100644 --- a/libs/tendermint/cmd/tendermint/commands/codec.go +++ b/libs/tendermint/cmd/tendermint/commands/codec.go @@ -3,7 +3,7 @@ package commands import ( amino "github.com/tendermint/go-amino" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/cmd/tendermint/commands/debug/debug.go b/libs/tendermint/cmd/tendermint/commands/debug/debug.go index 9ca96b74c..d5eb69ed0 100644 --- a/libs/tendermint/cmd/tendermint/commands/debug/debug.go +++ b/libs/tendermint/cmd/tendermint/commands/debug/debug.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) var ( diff --git a/libs/tendermint/cmd/tendermint/commands/debug/dump.go b/libs/tendermint/cmd/tendermint/commands/debug/dump.go index 947e592f5..f0629ff4c 100644 --- a/libs/tendermint/cmd/tendermint/commands/debug/dump.go +++ b/libs/tendermint/cmd/tendermint/commands/debug/dump.go @@ -11,9 +11,9 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/cli" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" ) var dumpCmd = &cobra.Command{ diff --git a/libs/tendermint/cmd/tendermint/commands/debug/kill.go b/libs/tendermint/cmd/tendermint/commands/debug/kill.go index 8e0974ab6..c7361fd5d 100644 --- a/libs/tendermint/cmd/tendermint/commands/debug/kill.go +++ b/libs/tendermint/cmd/tendermint/commands/debug/kill.go @@ -14,9 +14,9 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/cli" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" ) var killCmd = &cobra.Command{ diff --git a/libs/tendermint/cmd/tendermint/commands/debug/util.go b/libs/tendermint/cmd/tendermint/commands/debug/util.go index fceb11669..345bbea6e 100644 --- a/libs/tendermint/cmd/tendermint/commands/debug/util.go +++ b/libs/tendermint/cmd/tendermint/commands/debug/util.go @@ -10,8 +10,8 @@ import ( "github.com/pkg/errors" - cfg "github.com/okx/okbchain/libs/tendermint/config" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" + cfg "github.com/okx/brczero/libs/tendermint/config" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" ) // dumpStatus gets node status state dump from the Tendermint RPC and writes it diff --git a/libs/tendermint/cmd/tendermint/commands/gen_node_key.go b/libs/tendermint/cmd/tendermint/commands/gen_node_key.go index efedfcc08..6306dca4d 100644 --- a/libs/tendermint/cmd/tendermint/commands/gen_node_key.go +++ b/libs/tendermint/cmd/tendermint/commands/gen_node_key.go @@ -5,8 +5,8 @@ import ( "github.com/spf13/cobra" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/p2p" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/p2p" ) // GenNodeKeyCmd allows the generation of a node key. It prints node's ID to diff --git a/libs/tendermint/cmd/tendermint/commands/gen_validator.go b/libs/tendermint/cmd/tendermint/commands/gen_validator.go index 5e0d2febe..bed1e943d 100644 --- a/libs/tendermint/cmd/tendermint/commands/gen_validator.go +++ b/libs/tendermint/cmd/tendermint/commands/gen_validator.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/privval" ) // GenValidatorCmd allows the generation of a keypair for a diff --git a/libs/tendermint/cmd/tendermint/commands/init.go b/libs/tendermint/cmd/tendermint/commands/init.go index d438dab8d..534772290 100644 --- a/libs/tendermint/cmd/tendermint/commands/init.go +++ b/libs/tendermint/cmd/tendermint/commands/init.go @@ -6,13 +6,13 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - cfg "github.com/okx/okbchain/libs/tendermint/config" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/privval" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + cfg "github.com/okx/brczero/libs/tendermint/config" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) // InitFilesCmd initialises a fresh Tendermint Core instance. diff --git a/libs/tendermint/cmd/tendermint/commands/lite.go b/libs/tendermint/cmd/tendermint/commands/lite.go index 29c918cb2..de45220e6 100644 --- a/libs/tendermint/cmd/tendermint/commands/lite.go +++ b/libs/tendermint/cmd/tendermint/commands/lite.go @@ -9,17 +9,17 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - lite "github.com/okx/okbchain/libs/tendermint/lite2" - lproxy "github.com/okx/okbchain/libs/tendermint/lite2/proxy" - lrpc "github.com/okx/okbchain/libs/tendermint/lite2/rpc" - dbs "github.com/okx/okbchain/libs/tendermint/lite2/store/db" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" - rpcserver "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + lite "github.com/okx/brczero/libs/tendermint/lite2" + lproxy "github.com/okx/brczero/libs/tendermint/lite2/proxy" + lrpc "github.com/okx/brczero/libs/tendermint/lite2/rpc" + dbs "github.com/okx/brczero/libs/tendermint/lite2/store/db" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" + rpcserver "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" ) // LiteCmd represents the base command when called without any subcommands diff --git a/libs/tendermint/cmd/tendermint/commands/probe_upnp.go b/libs/tendermint/cmd/tendermint/commands/probe_upnp.go index fd3219c95..2f1d048ef 100644 --- a/libs/tendermint/cmd/tendermint/commands/probe_upnp.go +++ b/libs/tendermint/cmd/tendermint/commands/probe_upnp.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/tendermint/p2p/upnp" + "github.com/okx/brczero/libs/tendermint/p2p/upnp" ) // ProbeUpnpCmd adds capabilities to test the UPnP functionality. diff --git a/libs/tendermint/cmd/tendermint/commands/replay.go b/libs/tendermint/cmd/tendermint/commands/replay.go index a99ac1531..72fe2fa67 100644 --- a/libs/tendermint/cmd/tendermint/commands/replay.go +++ b/libs/tendermint/cmd/tendermint/commands/replay.go @@ -3,7 +3,7 @@ package commands import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/consensus" ) // ReplayCmd allows replaying of messages from the WAL. diff --git a/libs/tendermint/cmd/tendermint/commands/reset_priv_validator.go b/libs/tendermint/cmd/tendermint/commands/reset_priv_validator.go index c06b9abe6..651a20d79 100644 --- a/libs/tendermint/cmd/tendermint/commands/reset_priv_validator.go +++ b/libs/tendermint/cmd/tendermint/commands/reset_priv_validator.go @@ -5,9 +5,9 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/privval" ) // ResetAllCmd removes the database of this Tendermint core diff --git a/libs/tendermint/cmd/tendermint/commands/root.go b/libs/tendermint/cmd/tendermint/commands/root.go index 86df4adab..5510d3cac 100644 --- a/libs/tendermint/cmd/tendermint/commands/root.go +++ b/libs/tendermint/cmd/tendermint/commands/root.go @@ -7,10 +7,10 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - tmflags "github.com/okx/okbchain/libs/tendermint/libs/cli/flags" - "github.com/okx/okbchain/libs/tendermint/libs/log" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/cli" + tmflags "github.com/okx/brczero/libs/tendermint/libs/cli/flags" + "github.com/okx/brczero/libs/tendermint/libs/log" ) var ( diff --git a/libs/tendermint/cmd/tendermint/commands/root_test.go b/libs/tendermint/cmd/tendermint/commands/root_test.go index 793ff5602..c8772aa70 100644 --- a/libs/tendermint/cmd/tendermint/commands/root_test.go +++ b/libs/tendermint/cmd/tendermint/commands/root_test.go @@ -13,9 +13,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/cli" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" ) var ( diff --git a/libs/tendermint/cmd/tendermint/commands/run_node.go b/libs/tendermint/cmd/tendermint/commands/run_node.go index 2b5477074..58e348866 100644 --- a/libs/tendermint/cmd/tendermint/commands/run_node.go +++ b/libs/tendermint/cmd/tendermint/commands/run_node.go @@ -11,10 +11,10 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - cfg "github.com/okx/okbchain/libs/tendermint/config" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - nm "github.com/okx/okbchain/libs/tendermint/node" - "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + nm "github.com/okx/brczero/libs/tendermint/node" + "github.com/okx/brczero/libs/tendermint/types" ) var ( diff --git a/libs/tendermint/cmd/tendermint/commands/show_node_id.go b/libs/tendermint/cmd/tendermint/commands/show_node_id.go index 7fe752973..086ed3cb5 100644 --- a/libs/tendermint/cmd/tendermint/commands/show_node_id.go +++ b/libs/tendermint/cmd/tendermint/commands/show_node_id.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p" ) // ShowNodeIDCmd dumps node's ID to the standard output. diff --git a/libs/tendermint/cmd/tendermint/commands/show_validator.go b/libs/tendermint/cmd/tendermint/commands/show_validator.go index e8477a36f..511b43453 100644 --- a/libs/tendermint/cmd/tendermint/commands/show_validator.go +++ b/libs/tendermint/cmd/tendermint/commands/show_validator.go @@ -6,8 +6,8 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/privval" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/privval" ) // ShowValidatorCmd adds capabilities for showing the validator info. diff --git a/libs/tendermint/cmd/tendermint/commands/testnet.go b/libs/tendermint/cmd/tendermint/commands/testnet.go index a7ea4a021..42a2ebc33 100644 --- a/libs/tendermint/cmd/tendermint/commands/testnet.go +++ b/libs/tendermint/cmd/tendermint/commands/testnet.go @@ -11,13 +11,13 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/privval" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) var ( diff --git a/libs/tendermint/cmd/tendermint/commands/version.go b/libs/tendermint/cmd/tendermint/commands/version.go index bab7c7e13..bc4c9ca2d 100644 --- a/libs/tendermint/cmd/tendermint/commands/version.go +++ b/libs/tendermint/cmd/tendermint/commands/version.go @@ -5,7 +5,7 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/version" ) // VersionCmd ... diff --git a/libs/tendermint/cmd/tendermint/main.go b/libs/tendermint/cmd/tendermint/main.go index 7a898fc5d..a08725699 100644 --- a/libs/tendermint/cmd/tendermint/main.go +++ b/libs/tendermint/cmd/tendermint/main.go @@ -4,11 +4,11 @@ import ( "os" "path/filepath" - cmd "github.com/okx/okbchain/libs/tendermint/cmd/tendermint/commands" - "github.com/okx/okbchain/libs/tendermint/cmd/tendermint/commands/debug" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - nm "github.com/okx/okbchain/libs/tendermint/node" + cmd "github.com/okx/brczero/libs/tendermint/cmd/tendermint/commands" + "github.com/okx/brczero/libs/tendermint/cmd/tendermint/commands/debug" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/cli" + nm "github.com/okx/brczero/libs/tendermint/node" ) func main() { diff --git a/libs/tendermint/config/config.go b/libs/tendermint/config/config.go index 0d9335d75..563385e7b 100644 --- a/libs/tendermint/config/config.go +++ b/libs/tendermint/config/config.go @@ -2,13 +2,13 @@ package config import ( "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "net/http" "os" "path/filepath" "time" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" "github.com/pkg/errors" ) diff --git a/libs/tendermint/config/toml.go b/libs/tendermint/config/toml.go index 8378b3fd4..352aca4a0 100644 --- a/libs/tendermint/config/toml.go +++ b/libs/tendermint/config/toml.go @@ -7,7 +7,7 @@ import ( "path/filepath" "text/template" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" ) // DefaultDirPerm is the default permissions used when creating directories. diff --git a/libs/tendermint/consensus/block_transport.go b/libs/tendermint/consensus/block_transport.go index c29c07142..c52617cdd 100644 --- a/libs/tendermint/consensus/block_transport.go +++ b/libs/tendermint/consensus/block_transport.go @@ -2,8 +2,8 @@ package consensus import ( "fmt" - "github.com/okx/okbchain/libs/system/trace" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/system/trace" + "github.com/okx/brczero/libs/tendermint/libs/log" "sync" "time" ) diff --git a/libs/tendermint/consensus/byzantine_test.go b/libs/tendermint/consensus/byzantine_test.go index edb08ceea..5f74c213a 100644 --- a/libs/tendermint/consensus/byzantine_test.go +++ b/libs/tendermint/consensus/byzantine_test.go @@ -9,10 +9,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/p2p" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/p2p" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) //---------------------------------------------- diff --git a/libs/tendermint/consensus/codec.go b/libs/tendermint/consensus/codec.go index ae9e15604..60b44c256 100644 --- a/libs/tendermint/consensus/codec.go +++ b/libs/tendermint/consensus/codec.go @@ -3,7 +3,7 @@ package consensus import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/consensus/common_test.go b/libs/tendermint/consensus/common_test.go index 5759d954e..049418552 100644 --- a/libs/tendermint/consensus/common_test.go +++ b/libs/tendermint/consensus/common_test.go @@ -17,25 +17,25 @@ import ( "github.com/pkg/errors" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" - - abcicli "github.com/okx/okbchain/libs/tendermint/abci/client" - "github.com/okx/okbchain/libs/tendermint/abci/example/counter" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/privval" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + dbm "github.com/okx/brczero/libs/tm-db" + + abcicli "github.com/okx/brczero/libs/tendermint/abci/client" + "github.com/okx/brczero/libs/tendermint/abci/example/counter" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/privval" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) const ( diff --git a/libs/tendermint/consensus/consensus.go b/libs/tendermint/consensus/consensus.go index 06c1aa08f..40a7b72f6 100644 --- a/libs/tendermint/consensus/consensus.go +++ b/libs/tendermint/consensus/consensus.go @@ -6,16 +6,16 @@ import ( "sync" "time" - "github.com/okx/okbchain/libs/system/trace" - cfg "github.com/okx/okbchain/libs/tendermint/config" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmevents "github.com/okx/okbchain/libs/tendermint/libs/events" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/p2p" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/system/trace" + cfg "github.com/okx/brczero/libs/tendermint/config" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/crypto" + tmevents "github.com/okx/brczero/libs/tendermint/libs/events" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/p2p" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" "github.com/pkg/errors" "github.com/spf13/viper" ) diff --git a/libs/tendermint/consensus/consensus_commit.go b/libs/tendermint/consensus/consensus_commit.go index 6f4ca9a7b..a5862246c 100644 --- a/libs/tendermint/consensus/consensus_commit.go +++ b/libs/tendermint/consensus/consensus_commit.go @@ -4,16 +4,16 @@ import ( "bytes" "encoding/hex" "fmt" - "github.com/okx/okbchain/libs/iavl" - iavlcfg "github.com/okx/okbchain/libs/iavl/config" - "github.com/okx/okbchain/libs/system/trace" - cfg "github.com/okx/okbchain/libs/tendermint/config" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/libs/fail" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/iavl" + iavlcfg "github.com/okx/brczero/libs/iavl/config" + "github.com/okx/brczero/libs/system/trace" + cfg "github.com/okx/brczero/libs/tendermint/config" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/libs/fail" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" "time" ) diff --git a/libs/tendermint/consensus/consensus_main_routine.go b/libs/tendermint/consensus/consensus_main_routine.go index 4bc59535c..18fe55b61 100644 --- a/libs/tendermint/consensus/consensus_main_routine.go +++ b/libs/tendermint/consensus/consensus_main_routine.go @@ -3,11 +3,11 @@ package consensus import ( "bytes" "fmt" - cfg "github.com/okx/okbchain/libs/tendermint/config" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/libs/fail" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + cfg "github.com/okx/brczero/libs/tendermint/config" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/libs/fail" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" "reflect" "runtime/debug" "time" diff --git a/libs/tendermint/consensus/consensus_new_round.go b/libs/tendermint/consensus/consensus_new_round.go index 2a7d0009e..020182f91 100644 --- a/libs/tendermint/consensus/consensus_new_round.go +++ b/libs/tendermint/consensus/consensus_new_round.go @@ -2,9 +2,9 @@ package consensus import ( "fmt" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) //----------------------------------------------------------------------------- diff --git a/libs/tendermint/consensus/consensus_precommit.go b/libs/tendermint/consensus/consensus_precommit.go index 37dd056d6..056192bde 100644 --- a/libs/tendermint/consensus/consensus_precommit.go +++ b/libs/tendermint/consensus/consensus_precommit.go @@ -2,9 +2,9 @@ package consensus import ( "fmt" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/libs/automation" - "github.com/okx/okbchain/libs/tendermint/types" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/libs/automation" + "github.com/okx/brczero/libs/tendermint/types" ) // Enter: `timeoutPrevote` after any +2/3 prevotes. diff --git a/libs/tendermint/consensus/consensus_prevote.go b/libs/tendermint/consensus/consensus_prevote.go index f720eac86..ff16c3449 100644 --- a/libs/tendermint/consensus/consensus_prevote.go +++ b/libs/tendermint/consensus/consensus_prevote.go @@ -2,9 +2,9 @@ package consensus import ( "fmt" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/libs/automation" - "github.com/okx/okbchain/libs/tendermint/types" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/libs/automation" + "github.com/okx/brczero/libs/tendermint/types" ) // Enter: `timeoutPropose` after entering Propose. diff --git a/libs/tendermint/consensus/consensus_propose.go b/libs/tendermint/consensus/consensus_propose.go index 4ba90e73b..14b727e43 100644 --- a/libs/tendermint/consensus/consensus_propose.go +++ b/libs/tendermint/consensus/consensus_propose.go @@ -5,11 +5,11 @@ import ( "fmt" "strings" - cfg "github.com/okx/okbchain/libs/tendermint/config" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/libs/automation" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/libs/automation" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) // SetProposal inputs a proposal. diff --git a/libs/tendermint/consensus/consensus_vote.go b/libs/tendermint/consensus/consensus_vote.go index 90004a238..ba801dadd 100644 --- a/libs/tendermint/consensus/consensus_vote.go +++ b/libs/tendermint/consensus/consensus_vote.go @@ -4,10 +4,10 @@ import ( "bytes" "encoding/hex" "fmt" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" "time" ) diff --git a/libs/tendermint/consensus/invalid_test.go b/libs/tendermint/consensus/invalid_test.go index b04ff11f4..8e54d0511 100644 --- a/libs/tendermint/consensus/invalid_test.go +++ b/libs/tendermint/consensus/invalid_test.go @@ -3,11 +3,11 @@ package consensus import ( "testing" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) //---------------------------------------------- diff --git a/libs/tendermint/consensus/mempool_test.go b/libs/tendermint/consensus/mempool_test.go index dbcf4885f..741db3e61 100644 --- a/libs/tendermint/consensus/mempool_test.go +++ b/libs/tendermint/consensus/mempool_test.go @@ -11,13 +11,13 @@ import ( "github.com/stretchr/testify/assert" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/abci/example/code" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/code" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) // for testing diff --git a/libs/tendermint/consensus/metrics.go b/libs/tendermint/consensus/metrics.go index 7e6dd29e1..549ac10fc 100644 --- a/libs/tendermint/consensus/metrics.go +++ b/libs/tendermint/consensus/metrics.go @@ -4,7 +4,7 @@ import ( "github.com/go-kit/kit/metrics" "github.com/go-kit/kit/metrics/discard" "github.com/go-kit/kit/metrics/prometheus" - "github.com/okx/okbchain/libs/tendermint/libs/fastmetrics" + "github.com/okx/brczero/libs/tendermint/libs/fastmetrics" stdprometheus "github.com/prometheus/client_golang/prometheus" ) diff --git a/libs/tendermint/consensus/reactor.go b/libs/tendermint/consensus/reactor.go index 0015c2668..309d7ad72 100644 --- a/libs/tendermint/consensus/reactor.go +++ b/libs/tendermint/consensus/reactor.go @@ -3,8 +3,8 @@ package consensus import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/libs/automation" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/libs/automation" "reflect" "sync" "time" @@ -13,14 +13,14 @@ import ( amino "github.com/tendermint/go-amino" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/libs/bits" - tmevents "github.com/okx/okbchain/libs/tendermint/libs/events" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/libs/bits" + tmevents "github.com/okx/brczero/libs/tendermint/libs/events" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) type bpType int diff --git a/libs/tendermint/consensus/reactor_test.go b/libs/tendermint/consensus/reactor_test.go index 828c7dafe..f34155d33 100644 --- a/libs/tendermint/consensus/reactor_test.go +++ b/libs/tendermint/consensus/reactor_test.go @@ -14,23 +14,23 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" - - abcicli "github.com/okx/okbchain/libs/tendermint/abci/client" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/libs/bits" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/p2p/mock" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + + abcicli "github.com/okx/brczero/libs/tendermint/abci/client" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/libs/bits" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p/mock" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" ) //---------------------------------------------- diff --git a/libs/tendermint/consensus/replay.go b/libs/tendermint/consensus/replay.go index a2e955b3f..be0949eae 100644 --- a/libs/tendermint/consensus/replay.go +++ b/libs/tendermint/consensus/replay.go @@ -11,16 +11,16 @@ import ( //"strings" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - //auto "github.com/okx/okbchain/libs/tendermint/libs/autofile" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/mock" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/libs/tendermint/version" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + //auto "github.com/okx/brczero/libs/tendermint/libs/autofile" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/mock" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/version" ) var crc32c = crc32.MakeTable(crc32.Castagnoli) diff --git a/libs/tendermint/consensus/replay_file.go b/libs/tendermint/consensus/replay_file.go index 2bc6a313e..6768e6f56 100644 --- a/libs/tendermint/consensus/replay_file.go +++ b/libs/tendermint/consensus/replay_file.go @@ -9,17 +9,17 @@ import ( "strconv" "strings" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/pkg/errors" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/mock" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/mock" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/consensus/state_test.go b/libs/tendermint/consensus/state_test.go index a9ce9d758..ecfee0a32 100644 --- a/libs/tendermint/consensus/state_test.go +++ b/libs/tendermint/consensus/state_test.go @@ -10,12 +10,12 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - cstypes "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - p2pmock "github.com/okx/okbchain/libs/tendermint/p2p/mock" - "github.com/okx/okbchain/libs/tendermint/types" + cstypes "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + p2pmock "github.com/okx/brczero/libs/tendermint/p2p/mock" + "github.com/okx/brczero/libs/tendermint/types" ) /* diff --git a/libs/tendermint/consensus/ticker.go b/libs/tendermint/consensus/ticker.go index 744d227a1..037f215b4 100644 --- a/libs/tendermint/consensus/ticker.go +++ b/libs/tendermint/consensus/ticker.go @@ -3,8 +3,8 @@ package consensus import ( "time" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/service" ) var ( diff --git a/libs/tendermint/consensus/types/codec.go b/libs/tendermint/consensus/types/codec.go index ba8aac67e..699acff23 100644 --- a/libs/tendermint/consensus/types/codec.go +++ b/libs/tendermint/consensus/types/codec.go @@ -3,7 +3,7 @@ package types import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/consensus/types/height_vote_set.go b/libs/tendermint/consensus/types/height_vote_set.go index c96556da6..11d627504 100644 --- a/libs/tendermint/consensus/types/height_vote_set.go +++ b/libs/tendermint/consensus/types/height_vote_set.go @@ -6,8 +6,8 @@ import ( "strings" "sync" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) type RoundVoteSet struct { diff --git a/libs/tendermint/consensus/types/height_vote_set_test.go b/libs/tendermint/consensus/types/height_vote_set_test.go index 1ab874512..b9437cc02 100644 --- a/libs/tendermint/consensus/types/height_vote_set_test.go +++ b/libs/tendermint/consensus/types/height_vote_set_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) var config *cfg.Config // NOTE: must be reset for each _test.go file diff --git a/libs/tendermint/consensus/types/peer_round_state.go b/libs/tendermint/consensus/types/peer_round_state.go index b7aa5c516..4b559c585 100644 --- a/libs/tendermint/consensus/types/peer_round_state.go +++ b/libs/tendermint/consensus/types/peer_round_state.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/tendermint/libs/bits" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/bits" + "github.com/okx/brczero/libs/tendermint/types" ) //----------------------------------------------------------------------------- diff --git a/libs/tendermint/consensus/types/round_state.go b/libs/tendermint/consensus/types/round_state.go index f78c9afcb..daf830b71 100644 --- a/libs/tendermint/consensus/types/round_state.go +++ b/libs/tendermint/consensus/types/round_state.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/types" ) //----------------------------------------------------------------------------- diff --git a/libs/tendermint/consensus/types/round_state_test.go b/libs/tendermint/consensus/types/round_state_test.go index 8f01fd03b..d3892e57e 100644 --- a/libs/tendermint/consensus/types/round_state_test.go +++ b/libs/tendermint/consensus/types/round_state_test.go @@ -5,11 +5,11 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) func BenchmarkRoundStateDeepCopy(b *testing.B) { diff --git a/libs/tendermint/consensus/wal.go b/libs/tendermint/consensus/wal.go index b58836697..7fe6bef4c 100644 --- a/libs/tendermint/consensus/wal.go +++ b/libs/tendermint/consensus/wal.go @@ -12,12 +12,12 @@ import ( amino "github.com/tendermint/go-amino" - auto "github.com/okx/okbchain/libs/tendermint/libs/autofile" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + auto "github.com/okx/brczero/libs/tendermint/libs/autofile" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) const ( diff --git a/libs/tendermint/consensus/wal_generator.go b/libs/tendermint/consensus/wal_generator.go index 6b9258c05..65bc674c2 100644 --- a/libs/tendermint/consensus/wal_generator.go +++ b/libs/tendermint/consensus/wal_generator.go @@ -4,7 +4,7 @@ import ( "bufio" "bytes" "fmt" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" "io" "path/filepath" "testing" @@ -12,18 +12,18 @@ import ( "github.com/pkg/errors" - db "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/mock" - "github.com/okx/okbchain/libs/tendermint/privval" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" + db "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/mock" + "github.com/okx/brczero/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" ) // WALGenerateNBlocks generates a consensus WAL. It does this by spinning up a diff --git a/libs/tendermint/consensus/wal_test.go b/libs/tendermint/consensus/wal_test.go index 5b9a2e520..b4d8cea75 100644 --- a/libs/tendermint/consensus/wal_test.go +++ b/libs/tendermint/consensus/wal_test.go @@ -15,12 +15,12 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/consensus/types" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/libs/autofile" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/consensus/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/libs/autofile" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) const ( diff --git a/libs/tendermint/crypto/crypto.go b/libs/tendermint/crypto/crypto.go index eca4d5ab2..92e626efa 100644 --- a/libs/tendermint/crypto/crypto.go +++ b/libs/tendermint/crypto/crypto.go @@ -1,8 +1,8 @@ package crypto import ( - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/libs/bytes" ) const ( diff --git a/libs/tendermint/crypto/ed25519/bench_test.go b/libs/tendermint/crypto/ed25519/bench_test.go index d38f15d88..323c879d8 100644 --- a/libs/tendermint/crypto/ed25519/bench_test.go +++ b/libs/tendermint/crypto/ed25519/bench_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/internal/benchmarking" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/internal/benchmarking" ) func BenchmarkKeyGeneration(b *testing.B) { diff --git a/libs/tendermint/crypto/ed25519/ed25519.go b/libs/tendermint/crypto/ed25519/ed25519.go index 5651871f2..8639cdc42 100644 --- a/libs/tendermint/crypto/ed25519/ed25519.go +++ b/libs/tendermint/crypto/ed25519/ed25519.go @@ -9,8 +9,8 @@ import ( amino "github.com/tendermint/go-amino" "golang.org/x/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) //------------------------------------- diff --git a/libs/tendermint/crypto/ed25519/ed25519_test.go b/libs/tendermint/crypto/ed25519/ed25519_test.go index b5f87a3a2..b191f88cd 100644 --- a/libs/tendermint/crypto/ed25519/ed25519_test.go +++ b/libs/tendermint/crypto/ed25519/ed25519_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" ) func TestSignAndValidateEd25519(t *testing.T) { diff --git a/libs/tendermint/crypto/encoding/amino/amino.go b/libs/tendermint/crypto/encoding/amino/amino.go index 8595829ec..2be72c591 100644 --- a/libs/tendermint/crypto/encoding/amino/amino.go +++ b/libs/tendermint/crypto/encoding/amino/amino.go @@ -5,11 +5,11 @@ import ( "errors" "reflect" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/crypto/sr25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/sr25519" "github.com/tendermint/go-amino" ) diff --git a/libs/tendermint/crypto/encoding/amino/encode_test.go b/libs/tendermint/crypto/encoding/amino/encode_test.go index 7d23280ef..af5a3ef68 100644 --- a/libs/tendermint/crypto/encoding/amino/encode_test.go +++ b/libs/tendermint/crypto/encoding/amino/encode_test.go @@ -10,11 +10,11 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/crypto/sr25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/sr25519" ) type byter interface { diff --git a/libs/tendermint/crypto/encoding/codec.go b/libs/tendermint/crypto/encoding/codec.go index 9af02e0ce..182ffcf70 100644 --- a/libs/tendermint/crypto/encoding/codec.go +++ b/libs/tendermint/crypto/encoding/codec.go @@ -4,10 +4,10 @@ import ( "errors" "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - pc "github.com/okx/okbchain/libs/tendermint/proto/crypto/keys" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + pc "github.com/okx/brczero/libs/tendermint/proto/crypto/keys" ) type PubKeyType uint8 diff --git a/libs/tendermint/crypto/example_test.go b/libs/tendermint/crypto/example_test.go index 9ed0c49c9..2e24b2f3b 100644 --- a/libs/tendermint/crypto/example_test.go +++ b/libs/tendermint/crypto/example_test.go @@ -17,7 +17,7 @@ package crypto_test import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) func ExampleSha256() { diff --git a/libs/tendermint/crypto/internal/benchmarking/bench.go b/libs/tendermint/crypto/internal/benchmarking/bench.go index 5d663f701..c10a75db4 100644 --- a/libs/tendermint/crypto/internal/benchmarking/bench.go +++ b/libs/tendermint/crypto/internal/benchmarking/bench.go @@ -4,7 +4,7 @@ import ( "io" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) // The code in this file is adapted from agl/ed25519. diff --git a/libs/tendermint/crypto/merkle/hash.go b/libs/tendermint/crypto/merkle/hash.go index 17100f447..9326221b9 100644 --- a/libs/tendermint/crypto/merkle/hash.go +++ b/libs/tendermint/crypto/merkle/hash.go @@ -2,7 +2,7 @@ package merkle import ( "bytes" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" "sync" ) diff --git a/libs/tendermint/crypto/merkle/ibc_adapter_tree.go b/libs/tendermint/crypto/merkle/ibc_adapter_tree.go index a8e134bf8..04736670c 100644 --- a/libs/tendermint/crypto/merkle/ibc_adapter_tree.go +++ b/libs/tendermint/crypto/merkle/ibc_adapter_tree.go @@ -1,6 +1,6 @@ package merkle -import "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" +import "github.com/okx/brczero/libs/tendermint/crypto/tmhash" func HashFromByteSlices(items [][]byte) []byte { switch len(items) { diff --git a/libs/tendermint/crypto/merkle/proof_simple_value.go b/libs/tendermint/crypto/merkle/proof_simple_value.go index d83ac4136..e1a767cd5 100644 --- a/libs/tendermint/crypto/merkle/proof_simple_value.go +++ b/libs/tendermint/crypto/merkle/proof_simple_value.go @@ -6,7 +6,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) const ProofOpSimpleValue = "simple:v" diff --git a/libs/tendermint/crypto/merkle/rfc6962_test.go b/libs/tendermint/crypto/merkle/rfc6962_test.go index f8636ff3d..e35126823 100644 --- a/libs/tendermint/crypto/merkle/rfc6962_test.go +++ b/libs/tendermint/crypto/merkle/rfc6962_test.go @@ -20,7 +20,7 @@ import ( "encoding/hex" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) func TestRFC6962Hasher(t *testing.T) { diff --git a/libs/tendermint/crypto/merkle/simple_map.go b/libs/tendermint/crypto/merkle/simple_map.go index 5630d7f1f..2cc3ed06e 100644 --- a/libs/tendermint/crypto/merkle/simple_map.go +++ b/libs/tendermint/crypto/merkle/simple_map.go @@ -5,8 +5,8 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/libs/kv" ) // Merkle tree from a map. diff --git a/libs/tendermint/crypto/merkle/simple_proof.go b/libs/tendermint/crypto/merkle/simple_proof.go index 3377da3d0..ea752c38d 100644 --- a/libs/tendermint/crypto/merkle/simple_proof.go +++ b/libs/tendermint/crypto/merkle/simple_proof.go @@ -7,7 +7,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) const ( diff --git a/libs/tendermint/crypto/merkle/simple_proof_ibc.go b/libs/tendermint/crypto/merkle/simple_proof_ibc.go index 71d07691e..151a73e11 100644 --- a/libs/tendermint/crypto/merkle/simple_proof_ibc.go +++ b/libs/tendermint/crypto/merkle/simple_proof_ibc.go @@ -1,6 +1,6 @@ package merkle -import cryptomerkel "github.com/okx/okbchain/libs/tendermint/proto/crypto/merkle" +import cryptomerkel "github.com/okx/brczero/libs/tendermint/proto/crypto/merkle" func (sp *SimpleProof) ToProto() *cryptomerkel.SimpleProof { if sp == nil { diff --git a/libs/tendermint/crypto/merkle/simple_tree_test.go b/libs/tendermint/crypto/merkle/simple_tree_test.go index 1f6ed24e5..2380b688a 100644 --- a/libs/tendermint/crypto/merkle/simple_tree_test.go +++ b/libs/tendermint/crypto/merkle/simple_tree_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - . "github.com/okx/okbchain/libs/tendermint/libs/test" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + . "github.com/okx/brczero/libs/tendermint/libs/test" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) type testItem []byte diff --git a/libs/tendermint/crypto/multisig/bitarray/compact_bit_array_test.go b/libs/tendermint/crypto/multisig/bitarray/compact_bit_array_test.go index aec471548..e0b13473c 100644 --- a/libs/tendermint/crypto/multisig/bitarray/compact_bit_array_test.go +++ b/libs/tendermint/crypto/multisig/bitarray/compact_bit_array_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) func randCompactBitArray(bits int) (*CompactBitArray, []byte) { diff --git a/libs/tendermint/crypto/multisig/codec.go b/libs/tendermint/crypto/multisig/codec.go index 0f973f25b..c154dfdf6 100644 --- a/libs/tendermint/crypto/multisig/codec.go +++ b/libs/tendermint/crypto/multisig/codec.go @@ -3,10 +3,10 @@ package multisig import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/crypto/sr25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/sr25519" ) // TODO: Figure out API for others to either add their own pubkey types, or diff --git a/libs/tendermint/crypto/multisig/multisignature.go b/libs/tendermint/crypto/multisig/multisignature.go index e40ece4d9..f8b17e404 100644 --- a/libs/tendermint/crypto/multisig/multisignature.go +++ b/libs/tendermint/crypto/multisig/multisignature.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig/bitarray" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/multisig/bitarray" ) // Multisignature is used to represent the signature object used in the multisigs. diff --git a/libs/tendermint/crypto/multisig/threshold_pubkey.go b/libs/tendermint/crypto/multisig/threshold_pubkey.go index 324939798..0ebf852b6 100644 --- a/libs/tendermint/crypto/multisig/threshold_pubkey.go +++ b/libs/tendermint/crypto/multisig/threshold_pubkey.go @@ -1,7 +1,7 @@ package multisig import ( - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) // PubKeyMultisigThreshold implements a K of N threshold multisig. diff --git a/libs/tendermint/crypto/multisig/threshold_pubkey_test.go b/libs/tendermint/crypto/multisig/threshold_pubkey_test.go index c5e577fbc..6481afbf8 100644 --- a/libs/tendermint/crypto/multisig/threshold_pubkey_test.go +++ b/libs/tendermint/crypto/multisig/threshold_pubkey_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/crypto/sr25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/sr25519" ) // This tests multisig functionality, but it expects the first k signatures to be valid diff --git a/libs/tendermint/crypto/random_test.go b/libs/tendermint/crypto/random_test.go index f4a4d7100..6702fd5c8 100644 --- a/libs/tendermint/crypto/random_test.go +++ b/libs/tendermint/crypto/random_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) // the purpose of this test is primarily to ensure that the randomness diff --git a/libs/tendermint/crypto/secp256k1/bench_test.go b/libs/tendermint/crypto/secp256k1/bench_test.go index 7a4d23b57..f7693abad 100644 --- a/libs/tendermint/crypto/secp256k1/bench_test.go +++ b/libs/tendermint/crypto/secp256k1/bench_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/internal/benchmarking" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/internal/benchmarking" ) func BenchmarkKeyGeneration(b *testing.B) { diff --git a/libs/tendermint/crypto/secp256k1/secp256k1.go b/libs/tendermint/crypto/secp256k1/secp256k1.go index 12e51ff09..39bc95632 100644 --- a/libs/tendermint/crypto/secp256k1/secp256k1.go +++ b/libs/tendermint/crypto/secp256k1/secp256k1.go @@ -13,7 +13,7 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) //------------------------------------- diff --git a/libs/tendermint/crypto/secp256k1/secp256k1_cgo.go b/libs/tendermint/crypto/secp256k1/secp256k1_cgo.go index 04471a398..77eef7c20 100644 --- a/libs/tendermint/crypto/secp256k1/secp256k1_cgo.go +++ b/libs/tendermint/crypto/secp256k1/secp256k1_cgo.go @@ -4,8 +4,8 @@ package secp256k1 import ( - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1/internal/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1/internal/secp256k1" ) // Sign creates an ECDSA signature on curve Secp256k1, using SHA256 on the msg. diff --git a/libs/tendermint/crypto/secp256k1/secp256k1_nocgo.go b/libs/tendermint/crypto/secp256k1/secp256k1_nocgo.go index ede49429b..a79f26a7f 100644 --- a/libs/tendermint/crypto/secp256k1/secp256k1_nocgo.go +++ b/libs/tendermint/crypto/secp256k1/secp256k1_nocgo.go @@ -8,7 +8,7 @@ import ( secp256k1 "github.com/btcsuite/btcd/btcec" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) // used to reject malleable signatures diff --git a/libs/tendermint/crypto/secp256k1/secp256k1_test.go b/libs/tendermint/crypto/secp256k1/secp256k1_test.go index dff06f48d..5e46e6206 100644 --- a/libs/tendermint/crypto/secp256k1/secp256k1_test.go +++ b/libs/tendermint/crypto/secp256k1/secp256k1_test.go @@ -9,8 +9,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" underlyingSecp256k1 "github.com/btcsuite/btcd/btcec" ) diff --git a/libs/tendermint/crypto/sr25519/bench_test.go b/libs/tendermint/crypto/sr25519/bench_test.go index 9d1ec008f..7be633e45 100644 --- a/libs/tendermint/crypto/sr25519/bench_test.go +++ b/libs/tendermint/crypto/sr25519/bench_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/internal/benchmarking" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/internal/benchmarking" ) func BenchmarkKeyGeneration(b *testing.B) { diff --git a/libs/tendermint/crypto/sr25519/codec.go b/libs/tendermint/crypto/sr25519/codec.go index 735e87f06..49eb8ce7f 100644 --- a/libs/tendermint/crypto/sr25519/codec.go +++ b/libs/tendermint/crypto/sr25519/codec.go @@ -3,7 +3,7 @@ package sr25519 import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) var _ crypto.PrivKey = PrivKeySr25519{} diff --git a/libs/tendermint/crypto/sr25519/privkey.go b/libs/tendermint/crypto/sr25519/privkey.go index 26fa4b932..ab4072789 100644 --- a/libs/tendermint/crypto/sr25519/privkey.go +++ b/libs/tendermint/crypto/sr25519/privkey.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" schnorrkel "github.com/ChainSafe/go-schnorrkel" ) diff --git a/libs/tendermint/crypto/sr25519/pubkey.go b/libs/tendermint/crypto/sr25519/pubkey.go index f1927d5b1..82bb16a95 100644 --- a/libs/tendermint/crypto/sr25519/pubkey.go +++ b/libs/tendermint/crypto/sr25519/pubkey.go @@ -6,8 +6,8 @@ import ( "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" schnorrkel "github.com/ChainSafe/go-schnorrkel" ) diff --git a/libs/tendermint/crypto/sr25519/sr25519_test.go b/libs/tendermint/crypto/sr25519/sr25519_test.go index e91d70cd4..efea32fa9 100644 --- a/libs/tendermint/crypto/sr25519/sr25519_test.go +++ b/libs/tendermint/crypto/sr25519/sr25519_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/sr25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/sr25519" ) func TestSignAndValidateSr25519(t *testing.T) { diff --git a/libs/tendermint/crypto/tmhash/hash_test.go b/libs/tendermint/crypto/tmhash/hash_test.go index 8a11a48b7..468f96d83 100644 --- a/libs/tendermint/crypto/tmhash/hash_test.go +++ b/libs/tendermint/crypto/tmhash/hash_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) func TestHash(t *testing.T) { diff --git a/libs/tendermint/crypto/xsalsa20symmetric/symmetric.go b/libs/tendermint/crypto/xsalsa20symmetric/symmetric.go index 2d5ddfc6d..acbfccb39 100644 --- a/libs/tendermint/crypto/xsalsa20symmetric/symmetric.go +++ b/libs/tendermint/crypto/xsalsa20symmetric/symmetric.go @@ -6,7 +6,7 @@ import ( "golang.org/x/crypto/nacl/secretbox" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) // TODO, make this into a struct that implements crypto.Symmetric. diff --git a/libs/tendermint/crypto/xsalsa20symmetric/symmetric_test.go b/libs/tendermint/crypto/xsalsa20symmetric/symmetric_test.go index a5484fadb..2f9756237 100644 --- a/libs/tendermint/crypto/xsalsa20symmetric/symmetric_test.go +++ b/libs/tendermint/crypto/xsalsa20symmetric/symmetric_test.go @@ -8,7 +8,7 @@ import ( "golang.org/x/crypto/bcrypt" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) func TestSimple(t *testing.T) { diff --git a/libs/tendermint/delta/redis-cgi/cgi.go b/libs/tendermint/delta/redis-cgi/cgi.go index 639a3ca49..2a490bab9 100644 --- a/libs/tendermint/delta/redis-cgi/cgi.go +++ b/libs/tendermint/delta/redis-cgi/cgi.go @@ -4,8 +4,8 @@ import ( "context" "fmt" "github.com/go-redis/redis/v8" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/types" "sync" "time" ) diff --git a/libs/tendermint/delta/redis-cgi/cgi_test.go b/libs/tendermint/delta/redis-cgi/cgi_test.go index ad829bb70..ce5bb8049 100644 --- a/libs/tendermint/delta/redis-cgi/cgi_test.go +++ b/libs/tendermint/delta/redis-cgi/cgi_test.go @@ -2,7 +2,7 @@ package redis_cgi import ( "github.com/alicebob/miniredis/v2" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/stretchr/testify/require" "testing" "time" diff --git a/libs/tendermint/evidence/codec.go b/libs/tendermint/evidence/codec.go index 6a57186d2..3162bd45a 100644 --- a/libs/tendermint/evidence/codec.go +++ b/libs/tendermint/evidence/codec.go @@ -3,8 +3,8 @@ package evidence import ( amino "github.com/tendermint/go-amino" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/types" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/evidence/pool.go b/libs/tendermint/evidence/pool.go index cdad9a2de..aac03b474 100644 --- a/libs/tendermint/evidence/pool.go +++ b/libs/tendermint/evidence/pool.go @@ -5,13 +5,13 @@ import ( "sync" "time" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/consensus" - clist "github.com/okx/okbchain/libs/tendermint/libs/clist" - "github.com/okx/okbchain/libs/tendermint/libs/log" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/consensus" + clist "github.com/okx/brczero/libs/tendermint/libs/clist" + "github.com/okx/brczero/libs/tendermint/libs/log" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) // Pool maintains a pool of valid evidence diff --git a/libs/tendermint/evidence/pool_test.go b/libs/tendermint/evidence/pool_test.go index 34413a14f..8e33ea6e8 100644 --- a/libs/tendermint/evidence/pool_test.go +++ b/libs/tendermint/evidence/pool_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/assert" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) func TestMain(m *testing.M) { diff --git a/libs/tendermint/evidence/reactor.go b/libs/tendermint/evidence/reactor.go index 9b00c24bc..50aee1528 100644 --- a/libs/tendermint/evidence/reactor.go +++ b/libs/tendermint/evidence/reactor.go @@ -7,10 +7,10 @@ import ( amino "github.com/tendermint/go-amino" - clist "github.com/okx/okbchain/libs/tendermint/libs/clist" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + clist "github.com/okx/brczero/libs/tendermint/libs/clist" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/evidence/reactor_test.go b/libs/tendermint/evidence/reactor_test.go index 2a4b1e0c3..a2182131c 100644 --- a/libs/tendermint/evidence/reactor_test.go +++ b/libs/tendermint/evidence/reactor_test.go @@ -8,18 +8,18 @@ import ( "time" "github.com/go-kit/kit/log/term" - "github.com/okx/okbchain/libs/tendermint/libs/cmap" + "github.com/okx/brczero/libs/tendermint/libs/cmap" "github.com/stretchr/testify/assert" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) // mockPeer for testing the PeerSet diff --git a/libs/tendermint/evidence/store.go b/libs/tendermint/evidence/store.go index d57b2a7dc..83a008f6d 100644 --- a/libs/tendermint/evidence/store.go +++ b/libs/tendermint/evidence/store.go @@ -2,10 +2,10 @@ package evidence import ( "fmt" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/types" ) /* diff --git a/libs/tendermint/evidence/store_test.go b/libs/tendermint/evidence/store_test.go index 31a490e39..aab613548 100644 --- a/libs/tendermint/evidence/store_test.go +++ b/libs/tendermint/evidence/store_test.go @@ -4,11 +4,11 @@ import ( "testing" "time" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) //------------------------------------------- diff --git a/libs/tendermint/libs/autofile/autofile.go b/libs/tendermint/libs/autofile/autofile.go index 68831320c..dee6e813a 100644 --- a/libs/tendermint/libs/autofile/autofile.go +++ b/libs/tendermint/libs/autofile/autofile.go @@ -8,7 +8,7 @@ import ( "syscall" "time" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) /* AutoFile usage diff --git a/libs/tendermint/libs/autofile/autofile_test.go b/libs/tendermint/libs/autofile/autofile_test.go index 8e897079f..771f9dd7b 100644 --- a/libs/tendermint/libs/autofile/autofile_test.go +++ b/libs/tendermint/libs/autofile/autofile_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" ) func TestSIGHUP(t *testing.T) { diff --git a/libs/tendermint/libs/autofile/cmd/logjack.go b/libs/tendermint/libs/autofile/cmd/logjack.go index 09b2b641d..edd4cbb01 100644 --- a/libs/tendermint/libs/autofile/cmd/logjack.go +++ b/libs/tendermint/libs/autofile/cmd/logjack.go @@ -8,8 +8,8 @@ import ( "strconv" "strings" - auto "github.com/okx/okbchain/libs/tendermint/libs/autofile" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + auto "github.com/okx/brczero/libs/tendermint/libs/autofile" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" ) const Version = "0.0.1" diff --git a/libs/tendermint/libs/autofile/group.go b/libs/tendermint/libs/autofile/group.go index 1048e53c5..f31fe9333 100644 --- a/libs/tendermint/libs/autofile/group.go +++ b/libs/tendermint/libs/autofile/group.go @@ -13,7 +13,7 @@ import ( "sync" "time" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/service" ) const ( diff --git a/libs/tendermint/libs/autofile/group_test.go b/libs/tendermint/libs/autofile/group_test.go index 4eb30c1e2..64edffed9 100644 --- a/libs/tendermint/libs/autofile/group_test.go +++ b/libs/tendermint/libs/autofile/group_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) func createTestGroupWithHeadSizeLimit(t *testing.T, headSizeLimit int64) *Group { diff --git a/libs/tendermint/libs/automation/automation.go b/libs/tendermint/libs/automation/automation.go index 7adf4277b..bdd34fcca 100644 --- a/libs/tendermint/libs/automation/automation.go +++ b/libs/tendermint/libs/automation/automation.go @@ -3,7 +3,7 @@ package automation import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/spf13/viper" "io/ioutil" "sync" diff --git a/libs/tendermint/libs/bech32/bech32_test.go b/libs/tendermint/libs/bech32/bech32_test.go index ad2597053..79cb0a2ac 100644 --- a/libs/tendermint/libs/bech32/bech32_test.go +++ b/libs/tendermint/libs/bech32/bech32_test.go @@ -5,7 +5,7 @@ import ( "crypto/sha256" "testing" - "github.com/okx/okbchain/libs/tendermint/libs/bech32" + "github.com/okx/brczero/libs/tendermint/libs/bech32" ) func TestEncodeAndDecode(t *testing.T) { diff --git a/libs/tendermint/libs/bits/bit_array.go b/libs/tendermint/libs/bits/bit_array.go index 194b748d1..a7ae5dc1c 100644 --- a/libs/tendermint/libs/bits/bit_array.go +++ b/libs/tendermint/libs/bits/bit_array.go @@ -7,9 +7,9 @@ import ( "strings" "sync" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - tmprotobits "github.com/okx/okbchain/libs/tendermint/proto/libs/bits" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + tmprotobits "github.com/okx/brczero/libs/tendermint/proto/libs/bits" ) // BitArray is a thread-safe implementation of a bit array. diff --git a/libs/tendermint/libs/bits/bit_array_test.go b/libs/tendermint/libs/bits/bit_array_test.go index cad2ed8b5..1e366755c 100644 --- a/libs/tendermint/libs/bits/bit_array_test.go +++ b/libs/tendermint/libs/bits/bit_array_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) func randBitArray(bits int) (*BitArray, []byte) { diff --git a/libs/tendermint/libs/cli/flags/log_level.go b/libs/tendermint/libs/cli/flags/log_level.go index e7c3fb96b..a8745407d 100644 --- a/libs/tendermint/libs/cli/flags/log_level.go +++ b/libs/tendermint/libs/cli/flags/log_level.go @@ -6,7 +6,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) const ( diff --git a/libs/tendermint/libs/cli/flags/log_level_test.go b/libs/tendermint/libs/cli/flags/log_level_test.go index e7a0716f4..444733448 100644 --- a/libs/tendermint/libs/cli/flags/log_level_test.go +++ b/libs/tendermint/libs/cli/flags/log_level_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - tmflags "github.com/okx/okbchain/libs/tendermint/libs/cli/flags" - "github.com/okx/okbchain/libs/tendermint/libs/log" + tmflags "github.com/okx/brczero/libs/tendermint/libs/cli/flags" + "github.com/okx/brczero/libs/tendermint/libs/log" ) const ( diff --git a/libs/tendermint/libs/clist/clist_test.go b/libs/tendermint/libs/clist/clist_test.go index 038261c79..288f21441 100644 --- a/libs/tendermint/libs/clist/clist_test.go +++ b/libs/tendermint/libs/clist/clist_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) func TestPanicOnMaxLength(t *testing.T) { diff --git a/libs/tendermint/libs/events/events.go b/libs/tendermint/libs/events/events.go index 888b9bb66..a2e0be908 100644 --- a/libs/tendermint/libs/events/events.go +++ b/libs/tendermint/libs/events/events.go @@ -5,7 +5,7 @@ import ( "fmt" "sync" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/service" ) // ErrListenerWasRemoved is returned by AddEvent if the listener was removed. diff --git a/libs/tendermint/libs/events/events_test.go b/libs/tendermint/libs/events/events_test.go index 336a94ed8..82cab4904 100644 --- a/libs/tendermint/libs/events/events_test.go +++ b/libs/tendermint/libs/events/events_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/libs/rand" ) // TestAddListenerForEventFireOnce sets up an EventSwitch, subscribes a single diff --git a/libs/tendermint/libs/log/filter_test.go b/libs/tendermint/libs/log/filter_test.go index e4b02db66..e00d82d89 100644 --- a/libs/tendermint/libs/log/filter_test.go +++ b/libs/tendermint/libs/log/filter_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) func TestVariousLevels(t *testing.T) { diff --git a/libs/tendermint/libs/log/tm_logger_test.go b/libs/tendermint/libs/log/tm_logger_test.go index d11fe034e..69f426a4d 100644 --- a/libs/tendermint/libs/log/tm_logger_test.go +++ b/libs/tendermint/libs/log/tm_logger_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) func TestLoggerLogsItsErrors(t *testing.T) { diff --git a/libs/tendermint/libs/log/tmfmt_logger.go b/libs/tendermint/libs/log/tmfmt_logger.go index 8efd3911e..9735834bc 100644 --- a/libs/tendermint/libs/log/tmfmt_logger.go +++ b/libs/tendermint/libs/log/tmfmt_logger.go @@ -3,7 +3,7 @@ package log import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "io" "sync" "time" diff --git a/libs/tendermint/libs/log/tmfmt_logger_test.go b/libs/tendermint/libs/log/tmfmt_logger_test.go index d7eb5584d..e402eb6e6 100644 --- a/libs/tendermint/libs/log/tmfmt_logger_test.go +++ b/libs/tendermint/libs/log/tmfmt_logger_test.go @@ -6,7 +6,7 @@ import ( "testing" kitlog "github.com/go-kit/kit/log" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) //func TestTMFmtLogger(t *testing.T) { diff --git a/libs/tendermint/libs/log/tracing_logger_test.go b/libs/tendermint/libs/log/tracing_logger_test.go index e2ed442cb..76c88bc14 100644 --- a/libs/tendermint/libs/log/tracing_logger_test.go +++ b/libs/tendermint/libs/log/tracing_logger_test.go @@ -9,7 +9,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) func TestTracingLogger(t *testing.T) { diff --git a/libs/tendermint/libs/pubsub/example_test.go b/libs/tendermint/libs/pubsub/example_test.go index 8a12e76e3..d34350f33 100644 --- a/libs/tendermint/libs/pubsub/example_test.go +++ b/libs/tendermint/libs/pubsub/example_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/libs/pubsub" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" ) func TestExample(t *testing.T) { diff --git a/libs/tendermint/libs/pubsub/pubsub.go b/libs/tendermint/libs/pubsub/pubsub.go index 38022d3e8..98430ffbf 100644 --- a/libs/tendermint/libs/pubsub/pubsub.go +++ b/libs/tendermint/libs/pubsub/pubsub.go @@ -40,7 +40,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/service" ) type operation int diff --git a/libs/tendermint/libs/pubsub/pubsub_test.go b/libs/tendermint/libs/pubsub/pubsub_test.go index e63df8695..0e090e27d 100644 --- a/libs/tendermint/libs/pubsub/pubsub_test.go +++ b/libs/tendermint/libs/pubsub/pubsub_test.go @@ -10,10 +10,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/libs/pubsub" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" ) const ( diff --git a/libs/tendermint/libs/pubsub/query/empty_test.go b/libs/tendermint/libs/pubsub/query/empty_test.go index a2b4bdee3..dd9658735 100644 --- a/libs/tendermint/libs/pubsub/query/empty_test.go +++ b/libs/tendermint/libs/pubsub/query/empty_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" ) func TestEmptyQueryMatchesAnything(t *testing.T) { diff --git a/libs/tendermint/libs/pubsub/query/fuzz_test/main.go b/libs/tendermint/libs/pubsub/query/fuzz_test/main.go index b0953e827..6f62619bf 100644 --- a/libs/tendermint/libs/pubsub/query/fuzz_test/main.go +++ b/libs/tendermint/libs/pubsub/query/fuzz_test/main.go @@ -3,7 +3,7 @@ package fuzz_test import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" ) func Fuzz(data []byte) int { diff --git a/libs/tendermint/libs/pubsub/query/parser_test.go b/libs/tendermint/libs/pubsub/query/parser_test.go index 042516951..6f7da6d33 100644 --- a/libs/tendermint/libs/pubsub/query/parser_test.go +++ b/libs/tendermint/libs/pubsub/query/parser_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" ) // TODO: fuzzy testing? diff --git a/libs/tendermint/libs/pubsub/query/query_test.go b/libs/tendermint/libs/pubsub/query/query_test.go index dddc19e0b..ac2793c57 100644 --- a/libs/tendermint/libs/pubsub/query/query_test.go +++ b/libs/tendermint/libs/pubsub/query/query_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" ) func TestMatches(t *testing.T) { diff --git a/libs/tendermint/libs/service/service.go b/libs/tendermint/libs/service/service.go index 2ddd9e184..a32677a48 100644 --- a/libs/tendermint/libs/service/service.go +++ b/libs/tendermint/libs/service/service.go @@ -5,7 +5,7 @@ import ( "fmt" "sync/atomic" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) var ( diff --git a/libs/tendermint/libs/tempfile/tempfile_test.go b/libs/tendermint/libs/tempfile/tempfile_test.go index ca56ab521..d3438840e 100644 --- a/libs/tendermint/libs/tempfile/tempfile_test.go +++ b/libs/tendermint/libs/tempfile/tempfile_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) func TestWriteFileAtomic(t *testing.T) { diff --git a/libs/tendermint/libs/test/mutate.go b/libs/tendermint/libs/test/mutate.go index ea220672d..5a8bfffea 100644 --- a/libs/tendermint/libs/test/mutate.go +++ b/libs/tendermint/libs/test/mutate.go @@ -1,7 +1,7 @@ package test import ( - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) // Contract: !bytes.Equal(input, output) && len(input) >= len(output) diff --git a/libs/tendermint/lite/base_verifier.go b/libs/tendermint/lite/base_verifier.go index 20c450c22..e3c94ac33 100644 --- a/libs/tendermint/lite/base_verifier.go +++ b/libs/tendermint/lite/base_verifier.go @@ -5,8 +5,8 @@ import ( "github.com/pkg/errors" - lerr "github.com/okx/okbchain/libs/tendermint/lite/errors" - "github.com/okx/okbchain/libs/tendermint/types" + lerr "github.com/okx/brczero/libs/tendermint/lite/errors" + "github.com/okx/brczero/libs/tendermint/types" ) var _ Verifier = (*BaseVerifier)(nil) diff --git a/libs/tendermint/lite/base_verifier_test.go b/libs/tendermint/lite/base_verifier_test.go index 18794527c..1b2e3f2ce 100644 --- a/libs/tendermint/lite/base_verifier_test.go +++ b/libs/tendermint/lite/base_verifier_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - lerr "github.com/okx/okbchain/libs/tendermint/lite/errors" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + lerr "github.com/okx/brczero/libs/tendermint/lite/errors" + "github.com/okx/brczero/libs/tendermint/types" ) func TestBaseCert(t *testing.T) { diff --git a/libs/tendermint/lite/client/provider.go b/libs/tendermint/lite/client/provider.go index 022c60e7f..2c9208cc7 100644 --- a/libs/tendermint/lite/client/provider.go +++ b/libs/tendermint/lite/client/provider.go @@ -8,13 +8,13 @@ package client import ( "fmt" - log "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/lite" - lerr "github.com/okx/okbchain/libs/tendermint/lite/errors" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/tendermint/types" + log "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/lite" + lerr "github.com/okx/brczero/libs/tendermint/lite/errors" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/types" ) // SignStatusClient combines a SignClient and StatusClient. diff --git a/libs/tendermint/lite/client/provider_test.go b/libs/tendermint/lite/client/provider_test.go index 1af6a2fdd..710f92a75 100644 --- a/libs/tendermint/lite/client/provider_test.go +++ b/libs/tendermint/lite/client/provider_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - rpctest "github.com/okx/okbchain/libs/tendermint/rpc/test" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + rpctest "github.com/okx/brczero/libs/tendermint/rpc/test" + "github.com/okx/brczero/libs/tendermint/types" ) func TestMain(m *testing.M) { diff --git a/libs/tendermint/lite/commit.go b/libs/tendermint/lite/commit.go index 4025ae3fd..819304a4f 100644 --- a/libs/tendermint/lite/commit.go +++ b/libs/tendermint/lite/commit.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) // FullCommit contains a SignedHeader (the block header and a commit that signs it), diff --git a/libs/tendermint/lite/dbprovider.go b/libs/tendermint/lite/dbprovider.go index 9e1c2075b..507745a15 100644 --- a/libs/tendermint/lite/dbprovider.go +++ b/libs/tendermint/lite/dbprovider.go @@ -5,13 +5,13 @@ import ( "regexp" "strconv" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" amino "github.com/tendermint/go-amino" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - log "github.com/okx/okbchain/libs/tendermint/libs/log" - lerr "github.com/okx/okbchain/libs/tendermint/lite/errors" - "github.com/okx/okbchain/libs/tendermint/types" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + log "github.com/okx/brczero/libs/tendermint/libs/log" + lerr "github.com/okx/brczero/libs/tendermint/lite/errors" + "github.com/okx/brczero/libs/tendermint/types" ) var _ PersistentProvider = (*DBProvider)(nil) diff --git a/libs/tendermint/lite/dynamic_verifier.go b/libs/tendermint/lite/dynamic_verifier.go index a50e0b734..f9034fe8f 100644 --- a/libs/tendermint/lite/dynamic_verifier.go +++ b/libs/tendermint/lite/dynamic_verifier.go @@ -5,9 +5,9 @@ import ( "fmt" "sync" - log "github.com/okx/okbchain/libs/tendermint/libs/log" - lerr "github.com/okx/okbchain/libs/tendermint/lite/errors" - "github.com/okx/okbchain/libs/tendermint/types" + log "github.com/okx/brczero/libs/tendermint/libs/log" + lerr "github.com/okx/brczero/libs/tendermint/lite/errors" + "github.com/okx/brczero/libs/tendermint/types" ) const sizeOfPendingMap = 1024 diff --git a/libs/tendermint/lite/dynamic_verifier_test.go b/libs/tendermint/lite/dynamic_verifier_test.go index 4d7ee2fa6..7ab587436 100644 --- a/libs/tendermint/lite/dynamic_verifier_test.go +++ b/libs/tendermint/lite/dynamic_verifier_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - log "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + log "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/types" ) const testChainID = "inquiry-test" diff --git a/libs/tendermint/lite/helpers.go b/libs/tendermint/lite/helpers.go index cf308e78f..3edcb6453 100644 --- a/libs/tendermint/lite/helpers.go +++ b/libs/tendermint/lite/helpers.go @@ -1,12 +1,12 @@ package lite import ( - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) // PrivKeys is a helper type for testing. diff --git a/libs/tendermint/lite/multiprovider.go b/libs/tendermint/lite/multiprovider.go index fe9c99d64..fe4a339a4 100644 --- a/libs/tendermint/lite/multiprovider.go +++ b/libs/tendermint/lite/multiprovider.go @@ -1,9 +1,9 @@ package lite import ( - log "github.com/okx/okbchain/libs/tendermint/libs/log" - lerr "github.com/okx/okbchain/libs/tendermint/lite/errors" - "github.com/okx/okbchain/libs/tendermint/types" + log "github.com/okx/brczero/libs/tendermint/libs/log" + lerr "github.com/okx/brczero/libs/tendermint/lite/errors" + "github.com/okx/brczero/libs/tendermint/types" ) var _ PersistentProvider = (*multiProvider)(nil) diff --git a/libs/tendermint/lite/provider.go b/libs/tendermint/lite/provider.go index 53f16940d..bfe7593d7 100644 --- a/libs/tendermint/lite/provider.go +++ b/libs/tendermint/lite/provider.go @@ -1,8 +1,8 @@ package lite import ( - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/types" ) // Provider provides information for the lite client to sync validators. diff --git a/libs/tendermint/lite/provider_test.go b/libs/tendermint/lite/provider_test.go index a3ab86946..7f9c3370a 100644 --- a/libs/tendermint/lite/provider_test.go +++ b/libs/tendermint/lite/provider_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - log "github.com/okx/okbchain/libs/tendermint/libs/log" - lerr "github.com/okx/okbchain/libs/tendermint/lite/errors" - "github.com/okx/okbchain/libs/tendermint/types" + log "github.com/okx/brczero/libs/tendermint/libs/log" + lerr "github.com/okx/brczero/libs/tendermint/lite/errors" + "github.com/okx/brczero/libs/tendermint/types" ) // missingProvider doesn't store anything, always a miss. diff --git a/libs/tendermint/lite/proxy/block.go b/libs/tendermint/lite/proxy/block.go index 83d09b8f8..8203e7b0e 100644 --- a/libs/tendermint/lite/proxy/block.go +++ b/libs/tendermint/lite/proxy/block.go @@ -4,7 +4,7 @@ import ( "bytes" "errors" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) func ValidateBlockMeta(meta *types.BlockMeta, sh types.SignedHeader) error { diff --git a/libs/tendermint/lite/proxy/proof.go b/libs/tendermint/lite/proxy/proof.go index 8621d2511..bef4973aa 100644 --- a/libs/tendermint/lite/proxy/proof.go +++ b/libs/tendermint/lite/proxy/proof.go @@ -1,7 +1,7 @@ package proxy import ( - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) func defaultProofRuntime() *merkle.ProofRuntime { diff --git a/libs/tendermint/lite/proxy/proxy.go b/libs/tendermint/lite/proxy/proxy.go index 1be4f7980..57adef70d 100644 --- a/libs/tendermint/lite/proxy/proxy.go +++ b/libs/tendermint/lite/proxy/proxy.go @@ -6,14 +6,14 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpcserver "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/rpc/client" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpcserver "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/lite/proxy/query.go b/libs/tendermint/lite/proxy/query.go index 5907f274d..5d6271bea 100644 --- a/libs/tendermint/lite/proxy/query.go +++ b/libs/tendermint/lite/proxy/query.go @@ -7,14 +7,14 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/global" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/lite" - lerr "github.com/okx/okbchain/libs/tendermint/lite/errors" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/global" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/lite" + lerr "github.com/okx/brczero/libs/tendermint/lite/errors" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/types" ) // GetWithProof will query the key on the given node, and verify it has diff --git a/libs/tendermint/lite/proxy/query_test.go b/libs/tendermint/lite/proxy/query_test.go index 1bda8cc79..be516b0df 100644 --- a/libs/tendermint/lite/proxy/query_test.go +++ b/libs/tendermint/lite/proxy/query_test.go @@ -9,16 +9,16 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/lite" - certclient "github.com/okx/okbchain/libs/tendermint/lite/client" - nm "github.com/okx/okbchain/libs/tendermint/node" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - rpclocal "github.com/okx/okbchain/libs/tendermint/rpc/client/local" - rpctest "github.com/okx/okbchain/libs/tendermint/rpc/test" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/lite" + certclient "github.com/okx/brczero/libs/tendermint/lite/client" + nm "github.com/okx/brczero/libs/tendermint/node" + "github.com/okx/brczero/libs/tendermint/rpc/client" + rpclocal "github.com/okx/brczero/libs/tendermint/rpc/client/local" + rpctest "github.com/okx/brczero/libs/tendermint/rpc/test" + "github.com/okx/brczero/libs/tendermint/types" ) var node *nm.Node diff --git a/libs/tendermint/lite/proxy/validate_test.go b/libs/tendermint/lite/proxy/validate_test.go index 3c36b02f0..a61c52e5a 100644 --- a/libs/tendermint/lite/proxy/validate_test.go +++ b/libs/tendermint/lite/proxy/validate_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/lite/proxy" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/lite/proxy" + "github.com/okx/brczero/libs/tendermint/types" ) var ( diff --git a/libs/tendermint/lite/proxy/verifier.go b/libs/tendermint/lite/proxy/verifier.go index 71b911a6d..859708d0b 100644 --- a/libs/tendermint/lite/proxy/verifier.go +++ b/libs/tendermint/lite/proxy/verifier.go @@ -3,13 +3,13 @@ package proxy import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/lite" - lclient "github.com/okx/okbchain/libs/tendermint/lite/client" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/lite" + lclient "github.com/okx/brczero/libs/tendermint/lite/client" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) func NewVerifier( diff --git a/libs/tendermint/lite/proxy/wrapper.go b/libs/tendermint/lite/proxy/wrapper.go index e665ad2f7..3bf6f1c0b 100644 --- a/libs/tendermint/lite/proxy/wrapper.go +++ b/libs/tendermint/lite/proxy/wrapper.go @@ -3,12 +3,12 @@ package proxy import ( "context" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/lite" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/lite" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) var _ rpcclient.Client = Wrapper{} diff --git a/libs/tendermint/lite/types.go b/libs/tendermint/lite/types.go index 205a3257c..eac7d8ae7 100644 --- a/libs/tendermint/lite/types.go +++ b/libs/tendermint/lite/types.go @@ -1,7 +1,7 @@ package lite import ( - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) // Verifier checks the votes to make sure the block really is signed properly. diff --git a/libs/tendermint/lite2/client.go b/libs/tendermint/lite2/client.go index 2ba757661..1dd03b7d6 100644 --- a/libs/tendermint/lite2/client.go +++ b/libs/tendermint/lite2/client.go @@ -9,11 +9,11 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - "github.com/okx/okbchain/libs/tendermint/lite2/provider" - "github.com/okx/okbchain/libs/tendermint/lite2/store" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + "github.com/okx/brczero/libs/tendermint/lite2/provider" + "github.com/okx/brczero/libs/tendermint/lite2/store" + "github.com/okx/brczero/libs/tendermint/types" ) type mode byte diff --git a/libs/tendermint/lite2/client_benchmark_test.go b/libs/tendermint/lite2/client_benchmark_test.go index 9e9738e8b..3dd0f847a 100644 --- a/libs/tendermint/lite2/client_benchmark_test.go +++ b/libs/tendermint/lite2/client_benchmark_test.go @@ -4,13 +4,13 @@ import ( "testing" "time" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/libs/log" - lite "github.com/okx/okbchain/libs/tendermint/lite2" - "github.com/okx/okbchain/libs/tendermint/lite2/provider" - mockp "github.com/okx/okbchain/libs/tendermint/lite2/provider/mock" - dbs "github.com/okx/okbchain/libs/tendermint/lite2/store/db" + "github.com/okx/brczero/libs/tendermint/libs/log" + lite "github.com/okx/brczero/libs/tendermint/lite2" + "github.com/okx/brczero/libs/tendermint/lite2/provider" + mockp "github.com/okx/brczero/libs/tendermint/lite2/provider/mock" + dbs "github.com/okx/brczero/libs/tendermint/lite2/store/db" ) // NOTE: block is produced every minute. Make sure the verification time diff --git a/libs/tendermint/lite2/client_test.go b/libs/tendermint/lite2/client_test.go index e7916fbc4..b8a6cd6fd 100644 --- a/libs/tendermint/lite2/client_test.go +++ b/libs/tendermint/lite2/client_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/tendermint/libs/log" - lite "github.com/okx/okbchain/libs/tendermint/lite2" - "github.com/okx/okbchain/libs/tendermint/lite2/provider" - mockp "github.com/okx/okbchain/libs/tendermint/lite2/provider/mock" - dbs "github.com/okx/okbchain/libs/tendermint/lite2/store/db" - "github.com/okx/okbchain/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/tendermint/libs/log" + lite "github.com/okx/brczero/libs/tendermint/lite2" + "github.com/okx/brczero/libs/tendermint/lite2/provider" + mockp "github.com/okx/brczero/libs/tendermint/lite2/provider/mock" + dbs "github.com/okx/brczero/libs/tendermint/lite2/store/db" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/lite2/errors.go b/libs/tendermint/lite2/errors.go index d3e8386cc..eacde0c8e 100644 --- a/libs/tendermint/lite2/errors.go +++ b/libs/tendermint/lite2/errors.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) // ErrOldHeaderExpired means the old (trusted) header has expired according to diff --git a/libs/tendermint/lite2/example_test.go b/libs/tendermint/lite2/example_test.go index 17c9f2a39..ef180b12d 100644 --- a/libs/tendermint/lite2/example_test.go +++ b/libs/tendermint/lite2/example_test.go @@ -8,14 +8,14 @@ import ( "testing" "time" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - lite "github.com/okx/okbchain/libs/tendermint/lite2" - "github.com/okx/okbchain/libs/tendermint/lite2/provider" - httpp "github.com/okx/okbchain/libs/tendermint/lite2/provider/http" - dbs "github.com/okx/okbchain/libs/tendermint/lite2/store/db" - rpctest "github.com/okx/okbchain/libs/tendermint/rpc/test" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + lite "github.com/okx/brczero/libs/tendermint/lite2" + "github.com/okx/brczero/libs/tendermint/lite2/provider" + httpp "github.com/okx/brczero/libs/tendermint/lite2/provider/http" + dbs "github.com/okx/brczero/libs/tendermint/lite2/store/db" + rpctest "github.com/okx/brczero/libs/tendermint/rpc/test" ) // Automatically getting new headers and verifying them. diff --git a/libs/tendermint/lite2/helpers_test.go b/libs/tendermint/lite2/helpers_test.go index 545a34ebd..bfd278256 100644 --- a/libs/tendermint/lite2/helpers_test.go +++ b/libs/tendermint/lite2/helpers_test.go @@ -4,12 +4,12 @@ import ( "sort" "time" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) // privKeys is a helper type for testing. diff --git a/libs/tendermint/lite2/ibc_verify.go b/libs/tendermint/lite2/ibc_verify.go index ecfe2cbdb..3f0e718fb 100644 --- a/libs/tendermint/lite2/ibc_verify.go +++ b/libs/tendermint/lite2/ibc_verify.go @@ -3,8 +3,8 @@ package lite import ( "time" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - "github.com/okx/okbchain/libs/tendermint/types" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + "github.com/okx/brczero/libs/tendermint/types" ) func IBCVerify( diff --git a/libs/tendermint/lite2/provider/http/http.go b/libs/tendermint/lite2/provider/http/http.go index 67d305ad1..dbbe20fb4 100644 --- a/libs/tendermint/lite2/provider/http/http.go +++ b/libs/tendermint/lite2/provider/http/http.go @@ -6,10 +6,10 @@ import ( "regexp" "strings" - "github.com/okx/okbchain/libs/tendermint/lite2/provider" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/lite2/provider" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" + "github.com/okx/brczero/libs/tendermint/types" ) // This is very brittle, see: https://github.com/tendermint/tendermint/issues/4740 diff --git a/libs/tendermint/lite2/provider/http/http_test.go b/libs/tendermint/lite2/provider/http/http_test.go index d31017333..9e9f93df5 100644 --- a/libs/tendermint/lite2/provider/http/http_test.go +++ b/libs/tendermint/lite2/provider/http/http_test.go @@ -8,13 +8,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - "github.com/okx/okbchain/libs/tendermint/lite2/provider" - "github.com/okx/okbchain/libs/tendermint/lite2/provider/http" - litehttp "github.com/okx/okbchain/libs/tendermint/lite2/provider/http" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - rpctest "github.com/okx/okbchain/libs/tendermint/rpc/test" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + "github.com/okx/brczero/libs/tendermint/lite2/provider" + "github.com/okx/brczero/libs/tendermint/lite2/provider/http" + litehttp "github.com/okx/brczero/libs/tendermint/lite2/provider/http" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + rpctest "github.com/okx/brczero/libs/tendermint/rpc/test" + "github.com/okx/brczero/libs/tendermint/types" ) func TestNewProvider(t *testing.T) { diff --git a/libs/tendermint/lite2/provider/mock/deadmock.go b/libs/tendermint/lite2/provider/mock/deadmock.go index 1188ec20b..240150d7e 100644 --- a/libs/tendermint/lite2/provider/mock/deadmock.go +++ b/libs/tendermint/lite2/provider/mock/deadmock.go @@ -3,8 +3,8 @@ package mock import ( "errors" - "github.com/okx/okbchain/libs/tendermint/lite2/provider" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/lite2/provider" + "github.com/okx/brczero/libs/tendermint/types" ) type deadMock struct { diff --git a/libs/tendermint/lite2/provider/mock/mock.go b/libs/tendermint/lite2/provider/mock/mock.go index 45faca805..ee45d9147 100644 --- a/libs/tendermint/lite2/provider/mock/mock.go +++ b/libs/tendermint/lite2/provider/mock/mock.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/tendermint/lite2/provider" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/lite2/provider" + "github.com/okx/brczero/libs/tendermint/types" ) type mock struct { diff --git a/libs/tendermint/lite2/provider/provider.go b/libs/tendermint/lite2/provider/provider.go index 149c2294d..618751a5b 100644 --- a/libs/tendermint/lite2/provider/provider.go +++ b/libs/tendermint/lite2/provider/provider.go @@ -1,7 +1,7 @@ package provider import ( - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) // Provider provides information for the lite client to sync (verification diff --git a/libs/tendermint/lite2/proxy/proxy.go b/libs/tendermint/lite2/proxy/proxy.go index 52afcaf9c..4bb0c713c 100644 --- a/libs/tendermint/lite2/proxy/proxy.go +++ b/libs/tendermint/lite2/proxy/proxy.go @@ -9,11 +9,11 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - lrpc "github.com/okx/okbchain/libs/tendermint/lite2/rpc" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpcserver "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + lrpc "github.com/okx/brczero/libs/tendermint/lite2/rpc" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpcserver "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" ) // A Proxy defines parameters for running an HTTP server proxy. diff --git a/libs/tendermint/lite2/proxy/routes.go b/libs/tendermint/lite2/proxy/routes.go index c1808fdf4..e6e80bce7 100644 --- a/libs/tendermint/lite2/proxy/routes.go +++ b/libs/tendermint/lite2/proxy/routes.go @@ -1,12 +1,12 @@ package proxy import ( - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - lrpc "github.com/okx/okbchain/libs/tendermint/lite2/rpc" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpcserver "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + lrpc "github.com/okx/brczero/libs/tendermint/lite2/rpc" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpcserver "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/types" ) func RPCRoutes(c *lrpc.Client) map[string]*rpcserver.RPCFunc { diff --git a/libs/tendermint/lite2/rpc/client.go b/libs/tendermint/lite2/rpc/client.go index ec44881ef..437d6149f 100644 --- a/libs/tendermint/lite2/rpc/client.go +++ b/libs/tendermint/lite2/rpc/client.go @@ -9,16 +9,16 @@ import ( "strings" "time" - "github.com/okx/okbchain/libs/tendermint/mempool" - - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - service "github.com/okx/okbchain/libs/tendermint/libs/service" - lite "github.com/okx/okbchain/libs/tendermint/lite2" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/mempool" + + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + service "github.com/okx/brczero/libs/tendermint/libs/service" + lite "github.com/okx/brczero/libs/tendermint/lite2" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/types" ) var errNegOrZeroHeight = errors.New("negative or zero height") diff --git a/libs/tendermint/lite2/rpc/proof.go b/libs/tendermint/lite2/rpc/proof.go index e2a7f21e0..e34042e54 100644 --- a/libs/tendermint/lite2/rpc/proof.go +++ b/libs/tendermint/lite2/rpc/proof.go @@ -1,7 +1,7 @@ package rpc import ( - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" ) func defaultProofRuntime() *merkle.ProofRuntime { diff --git a/libs/tendermint/lite2/rpc/query_test.go b/libs/tendermint/lite2/rpc/query_test.go index 8960de23c..3ad3d0fc1 100644 --- a/libs/tendermint/lite2/rpc/query_test.go +++ b/libs/tendermint/lite2/rpc/query_test.go @@ -9,14 +9,14 @@ package rpc // "github.com/stretchr/testify/assert" // "github.com/stretchr/testify/require" -// "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" -// "github.com/okx/okbchain/libs/tendermint/crypto/merkle" -// "github.com/okx/okbchain/libs/tendermint/lite" -// certclient "github.com/okx/okbchain/libs/tendermint/lite/client" -// nm "github.com/okx/okbchain/libs/tendermint/node" -// "github.com/okx/okbchain/libs/tendermint/rpc/client" -// rpctest "github.com/okx/okbchain/libs/tendermint/rpc/test" -// "github.com/okx/okbchain/libs/tendermint/types" +// "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" +// "github.com/okx/brczero/libs/tendermint/crypto/merkle" +// "github.com/okx/brczero/libs/tendermint/lite" +// certclient "github.com/okx/brczero/libs/tendermint/lite/client" +// nm "github.com/okx/brczero/libs/tendermint/node" +// "github.com/okx/brczero/libs/tendermint/rpc/client" +// rpctest "github.com/okx/brczero/libs/tendermint/rpc/test" +// "github.com/okx/brczero/libs/tendermint/types" //) //var node *nm.Node diff --git a/libs/tendermint/lite2/setup.go b/libs/tendermint/lite2/setup.go index 047b91395..a16cf2d39 100644 --- a/libs/tendermint/lite2/setup.go +++ b/libs/tendermint/lite2/setup.go @@ -3,9 +3,9 @@ package lite import ( "time" - "github.com/okx/okbchain/libs/tendermint/lite2/provider" - "github.com/okx/okbchain/libs/tendermint/lite2/provider/http" - "github.com/okx/okbchain/libs/tendermint/lite2/store" + "github.com/okx/brczero/libs/tendermint/lite2/provider" + "github.com/okx/brczero/libs/tendermint/lite2/provider/http" + "github.com/okx/brczero/libs/tendermint/lite2/store" ) // NewHTTPClient initiates an instance of a lite client using HTTP addresses diff --git a/libs/tendermint/lite2/store/db/db.go b/libs/tendermint/lite2/store/db/db.go index 8a89b43df..c155bbd4a 100644 --- a/libs/tendermint/lite2/store/db/db.go +++ b/libs/tendermint/lite2/store/db/db.go @@ -7,13 +7,13 @@ import ( "strconv" "sync" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/pkg/errors" "github.com/tendermint/go-amino" - cryptoAmino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/lite2/store" - "github.com/okx/okbchain/libs/tendermint/types" + cryptoAmino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/lite2/store" + "github.com/okx/brczero/libs/tendermint/types" ) var ( diff --git a/libs/tendermint/lite2/store/db/db_test.go b/libs/tendermint/lite2/store/db/db_test.go index 3e82289a9..4c3c29486 100644 --- a/libs/tendermint/lite2/store/db/db_test.go +++ b/libs/tendermint/lite2/store/db/db_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) func TestLast_FirstSignedHeaderHeight(t *testing.T) { diff --git a/libs/tendermint/lite2/store/store.go b/libs/tendermint/lite2/store/store.go index 5cdd53e0d..2d18aa920 100644 --- a/libs/tendermint/lite2/store/store.go +++ b/libs/tendermint/lite2/store/store.go @@ -1,6 +1,6 @@ package store -import "github.com/okx/okbchain/libs/tendermint/types" +import "github.com/okx/brczero/libs/tendermint/types" // Store is anything that can persistenly store headers. type Store interface { diff --git a/libs/tendermint/lite2/trust_options.go b/libs/tendermint/lite2/trust_options.go index 4b41c8f38..42d3e3281 100644 --- a/libs/tendermint/lite2/trust_options.go +++ b/libs/tendermint/lite2/trust_options.go @@ -5,7 +5,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) // TrustOptions are the trust parameters needed when a new light client diff --git a/libs/tendermint/lite2/verifier.go b/libs/tendermint/lite2/verifier.go index 78349914e..63a6e3193 100644 --- a/libs/tendermint/lite2/verifier.go +++ b/libs/tendermint/lite2/verifier.go @@ -6,8 +6,8 @@ import ( "github.com/pkg/errors" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - "github.com/okx/okbchain/libs/tendermint/types" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + "github.com/okx/brczero/libs/tendermint/types" ) var ( diff --git a/libs/tendermint/lite2/verifier_test.go b/libs/tendermint/lite2/verifier_test.go index a8eac7a40..ed7c12b8f 100644 --- a/libs/tendermint/lite2/verifier_test.go +++ b/libs/tendermint/lite2/verifier_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/assert" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - lite "github.com/okx/okbchain/libs/tendermint/lite2" - "github.com/okx/okbchain/libs/tendermint/types" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + lite "github.com/okx/brczero/libs/tendermint/lite2" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/mempool/address_record.go b/libs/tendermint/mempool/address_record.go index f85c7a1a0..f4135ac27 100644 --- a/libs/tendermint/mempool/address_record.go +++ b/libs/tendermint/mempool/address_record.go @@ -3,8 +3,8 @@ package mempool import ( "sync" - "github.com/okx/okbchain/libs/tendermint/libs/clist" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/clist" + "github.com/okx/brczero/libs/tendermint/types" ) type elementManager interface { diff --git a/libs/tendermint/mempool/bench_test.go b/libs/tendermint/mempool/bench_test.go index d99cb2779..06530a689 100644 --- a/libs/tendermint/mempool/bench_test.go +++ b/libs/tendermint/mempool/bench_test.go @@ -4,8 +4,8 @@ import ( "encoding/binary" "testing" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - "github.com/okx/okbchain/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + "github.com/okx/brczero/libs/tendermint/proxy" ) func BenchmarkReap(b *testing.B) { diff --git a/libs/tendermint/mempool/cache_test.go b/libs/tendermint/mempool/cache_test.go index 5cb8d0912..46f38493c 100644 --- a/libs/tendermint/mempool/cache_test.go +++ b/libs/tendermint/mempool/cache_test.go @@ -4,10 +4,10 @@ import ( "crypto/rand" "testing" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/require" ) diff --git a/libs/tendermint/mempool/clist_mempool.go b/libs/tendermint/mempool/clist_mempool.go index 61371674e..85f67f8c9 100644 --- a/libs/tendermint/mempool/clist_mempool.go +++ b/libs/tendermint/mempool/clist_mempool.go @@ -16,14 +16,14 @@ import ( "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/clist" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/clist" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/types" ) type TxInfoParser interface { diff --git a/libs/tendermint/mempool/clist_mempool_test.go b/libs/tendermint/mempool/clist_mempool_test.go index f70880495..7ee7ad424 100644 --- a/libs/tendermint/mempool/clist_mempool_test.go +++ b/libs/tendermint/mempool/clist_mempool_test.go @@ -12,21 +12,21 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/tendermint/libs/clist" + "github.com/okx/brczero/libs/tendermint/libs/clist" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/abci/example/counter" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/counter" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/mempool/exchain_pending_pool.go b/libs/tendermint/mempool/exchain_pending_pool.go index 58b005d53..52fe13ca7 100644 --- a/libs/tendermint/mempool/exchain_pending_pool.go +++ b/libs/tendermint/mempool/exchain_pending_pool.go @@ -5,8 +5,8 @@ import ( "strings" "sync" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/mempool/exchain_pending_pool_test.go b/libs/tendermint/mempool/exchain_pending_pool_test.go index b60ea9c66..ed2c92c3f 100644 --- a/libs/tendermint/mempool/exchain_pending_pool_test.go +++ b/libs/tendermint/mempool/exchain_pending_pool_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/assert" ) diff --git a/libs/tendermint/mempool/exchain_simulate.go b/libs/tendermint/mempool/exchain_simulate.go index ab566f78e..8250f8ef0 100644 --- a/libs/tendermint/mempool/exchain_simulate.go +++ b/libs/tendermint/mempool/exchain_simulate.go @@ -1,6 +1,6 @@ package mempool -import abci "github.com/okx/okbchain/libs/tendermint/abci/types" +import abci "github.com/okx/brczero/libs/tendermint/abci/types" // SimulationResponse defines the response generated when a transaction is successfully // simulated by the Baseapp. diff --git a/libs/tendermint/mempool/gasqueue.go b/libs/tendermint/mempool/gasqueue.go index 6f22bcb02..ddc7658a7 100644 --- a/libs/tendermint/mempool/gasqueue.go +++ b/libs/tendermint/mempool/gasqueue.go @@ -6,7 +6,7 @@ import ( "sort" "sync" - "github.com/okx/okbchain/libs/tendermint/libs/clist" + "github.com/okx/brczero/libs/tendermint/libs/clist" ) type GasTxQueue struct { diff --git a/libs/tendermint/mempool/mempool.go b/libs/tendermint/mempool/mempool.go index 118f57fda..98470fcde 100644 --- a/libs/tendermint/mempool/mempool.go +++ b/libs/tendermint/mempool/mempool.go @@ -4,10 +4,10 @@ import ( "crypto/sha256" "fmt" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) // Mempool defines the mempool interface. diff --git a/libs/tendermint/mempool/metrics.go b/libs/tendermint/mempool/metrics.go index e13cde16d..3932cd340 100644 --- a/libs/tendermint/mempool/metrics.go +++ b/libs/tendermint/mempool/metrics.go @@ -3,7 +3,7 @@ package mempool import ( "github.com/go-kit/kit/metrics" "github.com/go-kit/kit/metrics/discard" - "github.com/okx/okbchain/libs/tendermint/libs/fastmetrics" + "github.com/okx/brczero/libs/tendermint/libs/fastmetrics" stdprometheus "github.com/prometheus/client_golang/prometheus" ) diff --git a/libs/tendermint/mempool/perf.go b/libs/tendermint/mempool/perf.go index 07cdce9ca..a6900695d 100644 --- a/libs/tendermint/mempool/perf.go +++ b/libs/tendermint/mempool/perf.go @@ -4,14 +4,14 @@ import ( "bytes" "encoding/hex" "fmt" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p" "github.com/spf13/viper" "io/ioutil" "os" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" ) func (memR *Reactor) press() { diff --git a/libs/tendermint/mempool/pgu.go b/libs/tendermint/mempool/pgu.go index 86d949e93..bf0dbb262 100644 --- a/libs/tendermint/mempool/pgu.go +++ b/libs/tendermint/mempool/pgu.go @@ -5,10 +5,10 @@ import ( "path/filepath" "sync" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - db "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + db "github.com/okx/brczero/libs/tm-db" "github.com/spf13/viper" ) diff --git a/libs/tendermint/mempool/reactor.go b/libs/tendermint/mempool/reactor.go index 63e109b35..b8226f588 100644 --- a/libs/tendermint/mempool/reactor.go +++ b/libs/tendermint/mempool/reactor.go @@ -10,12 +10,12 @@ import ( "github.com/ethereum/go-ethereum/common" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/clist" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/clist" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" "github.com/tendermint/go-amino" ) diff --git a/libs/tendermint/mempool/reactor_test.go b/libs/tendermint/mempool/reactor_test.go index 13c1ac6b7..a440fdace 100644 --- a/libs/tendermint/mempool/reactor_test.go +++ b/libs/tendermint/mempool/reactor_test.go @@ -10,18 +10,18 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/fortytw2/leaktest" "github.com/go-kit/kit/log/term" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - rrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/p2p/mock" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + rrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p/mock" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/types" "github.com/pkg/errors" "github.com/stretchr/testify/assert" ) diff --git a/libs/tendermint/mempool/recommended_gasprice.go b/libs/tendermint/mempool/recommended_gasprice.go index 13811c85f..a49f4e1a0 100644 --- a/libs/tendermint/mempool/recommended_gasprice.go +++ b/libs/tendermint/mempool/recommended_gasprice.go @@ -5,9 +5,9 @@ import ( "math/big" "sort" - "github.com/okx/okbchain/libs/system/trace" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/system/trace" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/types" ) type GPOConfig struct { diff --git a/libs/tendermint/mempool/recommended_gasprice_test.go b/libs/tendermint/mempool/recommended_gasprice_test.go index 17781caec..5125562cb 100644 --- a/libs/tendermint/mempool/recommended_gasprice_test.go +++ b/libs/tendermint/mempool/recommended_gasprice_test.go @@ -7,10 +7,10 @@ import ( "github.com/ethereum/go-ethereum/params" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/types" ) // tx for recommended gas price test diff --git a/libs/tendermint/mempool/txqueue.go b/libs/tendermint/mempool/txqueue.go index 6ea7d66a1..51534e0a5 100644 --- a/libs/tendermint/mempool/txqueue.go +++ b/libs/tendermint/mempool/txqueue.go @@ -4,8 +4,8 @@ import ( "crypto/sha256" "sync" - "github.com/okx/okbchain/libs/tendermint/libs/clist" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/clist" + "github.com/okx/brczero/libs/tendermint/types" ) type ITransactionQueue interface { diff --git a/libs/tendermint/mock/mempool.go b/libs/tendermint/mock/mempool.go index 0ae9e2825..4ce9ce019 100644 --- a/libs/tendermint/mock/mempool.go +++ b/libs/tendermint/mock/mempool.go @@ -4,13 +4,13 @@ import ( "crypto/sha256" "fmt" - "github.com/okx/okbchain/libs/system/trace" + "github.com/okx/brczero/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/clist" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/clist" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/types" ) // Mempool is an empty implementation of a Mempool, useful for testing. diff --git a/libs/tendermint/node/codec.go b/libs/tendermint/node/codec.go index 56756eb7c..e5ce8c375 100644 --- a/libs/tendermint/node/codec.go +++ b/libs/tendermint/node/codec.go @@ -3,7 +3,7 @@ package node import ( amino "github.com/tendermint/go-amino" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/node/id.go b/libs/tendermint/node/id.go index 395a5609f..9d99c84a0 100644 --- a/libs/tendermint/node/id.go +++ b/libs/tendermint/node/id.go @@ -3,7 +3,7 @@ package node import ( "time" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) type ID struct { diff --git a/libs/tendermint/node/node.go b/libs/tendermint/node/node.go index d5275b705..13e4412b8 100644 --- a/libs/tendermint/node/node.go +++ b/libs/tendermint/node/node.go @@ -10,10 +10,10 @@ import ( "strings" "time" - blockindex "github.com/okx/okbchain/libs/tendermint/state/indexer" - bloxkindexnull "github.com/okx/okbchain/libs/tendermint/state/indexer/block/null" + blockindex "github.com/okx/brczero/libs/tendermint/state/indexer" + bloxkindexnull "github.com/okx/brczero/libs/tendermint/state/indexer/block/null" - "github.com/okx/okbchain/libs/tendermint/global" + "github.com/okx/brczero/libs/tendermint/global" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" @@ -22,39 +22,39 @@ import ( amino "github.com/tendermint/go-amino" - dbm "github.com/okx/okbchain/libs/tm-db" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - bcv0 "github.com/okx/okbchain/libs/tendermint/blockchain/v0" - bcv1 "github.com/okx/okbchain/libs/tendermint/blockchain/v1" - bcv2 "github.com/okx/okbchain/libs/tendermint/blockchain/v2" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/consensus" - cs "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/evidence" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - "github.com/okx/okbchain/libs/tendermint/libs/service" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/p2p/pex" - "github.com/okx/okbchain/libs/tendermint/privval" - "github.com/okx/okbchain/libs/tendermint/proxy" - rpccore "github.com/okx/okbchain/libs/tendermint/rpc/core" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - grpccore "github.com/okx/okbchain/libs/tendermint/rpc/grpc" - rpcserver "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" - sm "github.com/okx/okbchain/libs/tendermint/state" - blockindexer "github.com/okx/okbchain/libs/tendermint/state/indexer/block/kv" - "github.com/okx/okbchain/libs/tendermint/state/txindex" - "github.com/okx/okbchain/libs/tendermint/state/txindex/kv" - "github.com/okx/okbchain/libs/tendermint/state/txindex/null" - "github.com/okx/okbchain/libs/tendermint/store" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" - "github.com/okx/okbchain/libs/tendermint/version" + dbm "github.com/okx/brczero/libs/tm-db" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + bcv0 "github.com/okx/brczero/libs/tendermint/blockchain/v0" + bcv1 "github.com/okx/brczero/libs/tendermint/blockchain/v1" + bcv2 "github.com/okx/brczero/libs/tendermint/blockchain/v2" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/consensus" + cs "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/evidence" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + "github.com/okx/brczero/libs/tendermint/libs/service" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p/pex" + "github.com/okx/brczero/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/proxy" + rpccore "github.com/okx/brczero/libs/tendermint/rpc/core" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + grpccore "github.com/okx/brczero/libs/tendermint/rpc/grpc" + rpcserver "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" + sm "github.com/okx/brczero/libs/tendermint/state" + blockindexer "github.com/okx/brczero/libs/tendermint/state/indexer/block/kv" + "github.com/okx/brczero/libs/tendermint/state/txindex" + "github.com/okx/brczero/libs/tendermint/state/txindex/kv" + "github.com/okx/brczero/libs/tendermint/state/txindex/null" + "github.com/okx/brczero/libs/tendermint/store" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/version" ) //------------------------------------------------------------------------------ diff --git a/libs/tendermint/node/node_test.go b/libs/tendermint/node/node_test.go index b8dcb1b9a..d9c741b5f 100644 --- a/libs/tendermint/node/node_test.go +++ b/libs/tendermint/node/node_test.go @@ -12,23 +12,23 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/evidence" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/p2p" - p2pmock "github.com/okx/okbchain/libs/tendermint/p2p/mock" - "github.com/okx/okbchain/libs/tendermint/privval" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" - "github.com/okx/okbchain/libs/tendermint/version" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/evidence" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/p2p" + p2pmock "github.com/okx/brczero/libs/tendermint/p2p/mock" + "github.com/okx/brczero/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/version" ) func TestNodeStartStop(t *testing.T) { diff --git a/libs/tendermint/p2p/base_reactor.go b/libs/tendermint/p2p/base_reactor.go index cd6a2fd0b..a5a76a41f 100644 --- a/libs/tendermint/p2p/base_reactor.go +++ b/libs/tendermint/p2p/base_reactor.go @@ -1,8 +1,8 @@ package p2p import ( - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) // Reactor is responsible for handling incoming messages on one or more diff --git a/libs/tendermint/p2p/codec.go b/libs/tendermint/p2p/codec.go index 6d5862173..17001efb8 100644 --- a/libs/tendermint/p2p/codec.go +++ b/libs/tendermint/p2p/codec.go @@ -3,7 +3,7 @@ package p2p import ( amino "github.com/tendermint/go-amino" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/p2p/conn/codec.go b/libs/tendermint/p2p/conn/codec.go index bc45c3f00..b7a30a453 100644 --- a/libs/tendermint/p2p/conn/codec.go +++ b/libs/tendermint/p2p/conn/codec.go @@ -3,7 +3,7 @@ package conn import ( amino "github.com/tendermint/go-amino" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" ) var cdc *amino.Codec = amino.NewCodec() diff --git a/libs/tendermint/p2p/conn/connection.go b/libs/tendermint/p2p/conn/connection.go index b66bb1ade..cb3324cf3 100644 --- a/libs/tendermint/p2p/conn/connection.go +++ b/libs/tendermint/p2p/conn/connection.go @@ -19,11 +19,11 @@ import ( amino "github.com/tendermint/go-amino" - flow "github.com/okx/okbchain/libs/tendermint/libs/flowrate" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/libs/timer" + flow "github.com/okx/brczero/libs/tendermint/libs/flowrate" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/timer" ) const ( diff --git a/libs/tendermint/p2p/conn/connection_test.go b/libs/tendermint/p2p/conn/connection_test.go index 91278b3b6..5a0574cea 100644 --- a/libs/tendermint/p2p/conn/connection_test.go +++ b/libs/tendermint/p2p/conn/connection_test.go @@ -19,7 +19,7 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) const maxPingPongPacketSize = 1024 // bytes diff --git a/libs/tendermint/p2p/conn/secret_connection.go b/libs/tendermint/p2p/conn/secret_connection.go index 7fba66b04..ac22af84c 100644 --- a/libs/tendermint/p2p/conn/secret_connection.go +++ b/libs/tendermint/p2p/conn/secret_connection.go @@ -20,9 +20,9 @@ import ( "golang.org/x/crypto/hkdf" "golang.org/x/crypto/nacl/box" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/async" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/async" ) // 4 + 1024 == 1028 total frame size diff --git a/libs/tendermint/p2p/conn/secret_connection_test.go b/libs/tendermint/p2p/conn/secret_connection_test.go index 542bd5534..39c0c265c 100644 --- a/libs/tendermint/p2p/conn/secret_connection_test.go +++ b/libs/tendermint/p2p/conn/secret_connection_test.go @@ -17,12 +17,12 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/libs/async" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/libs/async" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) type kvstoreConn struct { diff --git a/libs/tendermint/p2p/fuzz.go b/libs/tendermint/p2p/fuzz.go index 476575afc..b7ec06441 100644 --- a/libs/tendermint/p2p/fuzz.go +++ b/libs/tendermint/p2p/fuzz.go @@ -5,8 +5,8 @@ import ( "sync" "time" - "github.com/okx/okbchain/libs/tendermint/config" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/config" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) // FuzzedConnection wraps any net.Conn and depending on the mode either delays diff --git a/libs/tendermint/p2p/key.go b/libs/tendermint/p2p/key.go index 0518ada06..a35041611 100644 --- a/libs/tendermint/p2p/key.go +++ b/libs/tendermint/p2p/key.go @@ -6,9 +6,9 @@ import ( "fmt" "io/ioutil" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" ) // ID is a hex-encoded crypto.Address diff --git a/libs/tendermint/p2p/key_test.go b/libs/tendermint/p2p/key_test.go index 84b338a31..ef3ac97db 100644 --- a/libs/tendermint/p2p/key_test.go +++ b/libs/tendermint/p2p/key_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) func TestLoadOrGenNodeKey(t *testing.T) { diff --git a/libs/tendermint/p2p/metrics.go b/libs/tendermint/p2p/metrics.go index 78d1c08ca..321bb914b 100644 --- a/libs/tendermint/p2p/metrics.go +++ b/libs/tendermint/p2p/metrics.go @@ -4,7 +4,7 @@ import ( "github.com/go-kit/kit/metrics" "github.com/go-kit/kit/metrics/discard" "github.com/go-kit/kit/metrics/prometheus" - "github.com/okx/okbchain/libs/tendermint/libs/fastmetrics" + "github.com/okx/brczero/libs/tendermint/libs/fastmetrics" stdprometheus "github.com/prometheus/client_golang/prometheus" ) diff --git a/libs/tendermint/p2p/mock/peer.go b/libs/tendermint/p2p/mock/peer.go index 02084f225..91583b626 100644 --- a/libs/tendermint/p2p/mock/peer.go +++ b/libs/tendermint/p2p/mock/peer.go @@ -3,10 +3,10 @@ package mock import ( "net" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) type Peer struct { diff --git a/libs/tendermint/p2p/mock/reactor.go b/libs/tendermint/p2p/mock/reactor.go index 33e19491e..c66854671 100644 --- a/libs/tendermint/p2p/mock/reactor.go +++ b/libs/tendermint/p2p/mock/reactor.go @@ -1,9 +1,9 @@ package mock import ( - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) type Reactor struct { diff --git a/libs/tendermint/p2p/node_info.go b/libs/tendermint/p2p/node_info.go index c733668f2..f13c53fcb 100644 --- a/libs/tendermint/p2p/node_info.go +++ b/libs/tendermint/p2p/node_info.go @@ -4,9 +4,9 @@ import ( "fmt" "reflect" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmstrings "github.com/okx/okbchain/libs/tendermint/libs/strings" - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmstrings "github.com/okx/brczero/libs/tendermint/libs/strings" + "github.com/okx/brczero/libs/tendermint/version" ) const ( diff --git a/libs/tendermint/p2p/node_info_test.go b/libs/tendermint/p2p/node_info_test.go index 80ed5867f..9e9ff8b2c 100644 --- a/libs/tendermint/p2p/node_info_test.go +++ b/libs/tendermint/p2p/node_info_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" ) func TestNodeInfoValidate(t *testing.T) { diff --git a/libs/tendermint/p2p/peer.go b/libs/tendermint/p2p/peer.go index b9d76524f..b4dd8a670 100644 --- a/libs/tendermint/p2p/peer.go +++ b/libs/tendermint/p2p/peer.go @@ -7,11 +7,11 @@ import ( "github.com/go-kit/kit/metrics" - "github.com/okx/okbchain/libs/tendermint/libs/cmap" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/cmap" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/service" - tmconn "github.com/okx/okbchain/libs/tendermint/p2p/conn" + tmconn "github.com/okx/brczero/libs/tendermint/p2p/conn" ) const metricsTickerDuration = 10 * time.Second diff --git a/libs/tendermint/p2p/peer_set_test.go b/libs/tendermint/p2p/peer_set_test.go index 650fa3ae5..da646cbbe 100644 --- a/libs/tendermint/p2p/peer_set_test.go +++ b/libs/tendermint/p2p/peer_set_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/service" ) // mockPeer for testing the PeerSet diff --git a/libs/tendermint/p2p/peer_test.go b/libs/tendermint/p2p/peer_test.go index 906e5faae..0694a6167 100644 --- a/libs/tendermint/p2p/peer_test.go +++ b/libs/tendermint/p2p/peer_test.go @@ -14,13 +14,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/config" - tmconn "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/config" + tmconn "github.com/okx/brczero/libs/tendermint/p2p/conn" ) func TestPeerBasic(t *testing.T) { diff --git a/libs/tendermint/p2p/pex/addrbook.go b/libs/tendermint/p2p/pex/addrbook.go index 949aff716..7571cb9d0 100644 --- a/libs/tendermint/p2p/pex/addrbook.go +++ b/libs/tendermint/p2p/pex/addrbook.go @@ -15,11 +15,11 @@ import ( "time" "github.com/minio/highwayhash" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/crypto" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/p2p" ) const ( diff --git a/libs/tendermint/p2p/pex/addrbook_test.go b/libs/tendermint/p2p/pex/addrbook_test.go index 03f1941e7..03eccf002 100644 --- a/libs/tendermint/p2p/pex/addrbook_test.go +++ b/libs/tendermint/p2p/pex/addrbook_test.go @@ -13,10 +13,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/p2p" ) // FIXME These tests should not rely on .(*addrBook) assertions diff --git a/libs/tendermint/p2p/pex/errors.go b/libs/tendermint/p2p/pex/errors.go index 179e0d528..8a45c51c1 100644 --- a/libs/tendermint/p2p/pex/errors.go +++ b/libs/tendermint/p2p/pex/errors.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p" ) type ErrAddrBookNonRoutable struct { diff --git a/libs/tendermint/p2p/pex/file.go b/libs/tendermint/p2p/pex/file.go index 0d06c79cd..23cc6225a 100644 --- a/libs/tendermint/p2p/pex/file.go +++ b/libs/tendermint/p2p/pex/file.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "github.com/okx/okbchain/libs/tendermint/libs/tempfile" + "github.com/okx/brczero/libs/tendermint/libs/tempfile" ) /* Loading & Saving */ diff --git a/libs/tendermint/p2p/pex/known_address.go b/libs/tendermint/p2p/pex/known_address.go index ede3b6e5a..56cb8f993 100644 --- a/libs/tendermint/p2p/pex/known_address.go +++ b/libs/tendermint/p2p/pex/known_address.go @@ -3,7 +3,7 @@ package pex import ( "time" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p" ) // knownAddress tracks information about a known network address diff --git a/libs/tendermint/p2p/pex/pex_reactor.go b/libs/tendermint/p2p/pex/pex_reactor.go index cef0b89d7..aa43d0eb1 100644 --- a/libs/tendermint/p2p/pex/pex_reactor.go +++ b/libs/tendermint/p2p/pex/pex_reactor.go @@ -10,13 +10,13 @@ import ( "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/cmap" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - "github.com/okx/okbchain/libs/tendermint/libs/rand" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/libs/cmap" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + "github.com/okx/brczero/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) type Peer = p2p.Peer diff --git a/libs/tendermint/p2p/pex/pex_reactor_test.go b/libs/tendermint/p2p/pex/pex_reactor_test.go index e52280b17..30fd35dd1 100644 --- a/libs/tendermint/p2p/pex/pex_reactor_test.go +++ b/libs/tendermint/p2p/pex/pex_reactor_test.go @@ -11,10 +11,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/p2p/mock" + "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p/mock" ) var ( diff --git a/libs/tendermint/p2p/switch.go b/libs/tendermint/p2p/switch.go index a7336de77..013da8dce 100644 --- a/libs/tendermint/p2p/switch.go +++ b/libs/tendermint/p2p/switch.go @@ -8,11 +8,11 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/cmap" - "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/cmap" + "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) const ( diff --git a/libs/tendermint/p2p/switch_test.go b/libs/tendermint/p2p/switch_test.go index 063172f6f..33321f93e 100644 --- a/libs/tendermint/p2p/switch_test.go +++ b/libs/tendermint/p2p/switch_test.go @@ -20,10 +20,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) var ( diff --git a/libs/tendermint/p2p/test_util.go b/libs/tendermint/p2p/test_util.go index 5de3b55e1..2b1d51d0e 100644 --- a/libs/tendermint/p2p/test_util.go +++ b/libs/tendermint/p2p/test_util.go @@ -7,14 +7,14 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmnet "github.com/okx/okbchain/libs/tendermint/libs/net" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - - "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmnet "github.com/okx/brczero/libs/tendermint/libs/net" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + + "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) const testCh = 0x01 diff --git a/libs/tendermint/p2p/transport.go b/libs/tendermint/p2p/transport.go index 283196c05..d3e12632b 100644 --- a/libs/tendermint/p2p/transport.go +++ b/libs/tendermint/p2p/transport.go @@ -9,8 +9,8 @@ import ( "github.com/pkg/errors" "golang.org/x/net/netutil" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) const ( diff --git a/libs/tendermint/p2p/transport_test.go b/libs/tendermint/p2p/transport_test.go index a41487583..0aa0f7838 100644 --- a/libs/tendermint/p2p/transport_test.go +++ b/libs/tendermint/p2p/transport_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) var defaultNodeName = "host_peer" diff --git a/libs/tendermint/p2p/trust/metric.go b/libs/tendermint/p2p/trust/metric.go index a9643ad40..063210692 100644 --- a/libs/tendermint/p2p/trust/metric.go +++ b/libs/tendermint/p2p/trust/metric.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/service" ) //--------------------------------------------------------------------------------------- diff --git a/libs/tendermint/p2p/trust/store.go b/libs/tendermint/p2p/trust/store.go index 85867eb52..b1bab1f48 100644 --- a/libs/tendermint/p2p/trust/store.go +++ b/libs/tendermint/p2p/trust/store.go @@ -9,9 +9,9 @@ import ( "sync" "time" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/service" ) const defaultStorePeriodicSaveInterval = 1 * time.Minute diff --git a/libs/tendermint/p2p/trust/store_test.go b/libs/tendermint/p2p/trust/store_test.go index 920428458..e1225284a 100644 --- a/libs/tendermint/p2p/trust/store_test.go +++ b/libs/tendermint/p2p/trust/store_test.go @@ -9,10 +9,10 @@ import ( "os" "testing" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) func TestTrustMetricStoreSaveLoad(t *testing.T) { diff --git a/libs/tendermint/p2p/types.go b/libs/tendermint/p2p/types.go index 0433b7564..00745c6fe 100644 --- a/libs/tendermint/p2p/types.go +++ b/libs/tendermint/p2p/types.go @@ -1,7 +1,7 @@ package p2p import ( - "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/p2p/conn" ) type ChannelDescriptor = conn.ChannelDescriptor diff --git a/libs/tendermint/p2p/upnp/probe.go b/libs/tendermint/p2p/upnp/probe.go index 05ba0a0ae..57a25c22f 100644 --- a/libs/tendermint/p2p/upnp/probe.go +++ b/libs/tendermint/p2p/upnp/probe.go @@ -5,7 +5,7 @@ import ( "net" "time" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) type Capabilities struct { diff --git a/libs/tendermint/privval/codec.go b/libs/tendermint/privval/codec.go index f76e56dfc..43252d096 100644 --- a/libs/tendermint/privval/codec.go +++ b/libs/tendermint/privval/codec.go @@ -3,7 +3,7 @@ package privval import ( amino "github.com/tendermint/go-amino" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/privval/file.go b/libs/tendermint/privval/file.go index a1a44ccd1..b6484de3c 100644 --- a/libs/tendermint/privval/file.go +++ b/libs/tendermint/privval/file.go @@ -7,13 +7,13 @@ import ( "io/ioutil" "time" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/libs/tempfile" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/libs/tempfile" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) // TODO: type ? diff --git a/libs/tendermint/privval/file_ibc_adapter.go b/libs/tendermint/privval/file_ibc_adapter.go index 98510680f..8d6592cee 100644 --- a/libs/tendermint/privval/file_ibc_adapter.go +++ b/libs/tendermint/privval/file_ibc_adapter.go @@ -4,10 +4,10 @@ import ( "bytes" "fmt" "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/tendermint/libs/protoio" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/libs/protoio" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" "time" ) diff --git a/libs/tendermint/privval/file_test.go b/libs/tendermint/privval/file_test.go index 7e3677f7b..d72193f41 100644 --- a/libs/tendermint/privval/file_test.go +++ b/libs/tendermint/privval/file_test.go @@ -11,9 +11,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) func TestGenLoadValidator(t *testing.T) { diff --git a/libs/tendermint/privval/messages.go b/libs/tendermint/privval/messages.go index f3212c3d8..ac98e6569 100644 --- a/libs/tendermint/privval/messages.go +++ b/libs/tendermint/privval/messages.go @@ -3,8 +3,8 @@ package privval import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/types" ) // SignerMessage is sent between Signer Clients and Servers. diff --git a/libs/tendermint/privval/retry_signer_client.go b/libs/tendermint/privval/retry_signer_client.go index a2e3b5972..ee41b1e7e 100644 --- a/libs/tendermint/privval/retry_signer_client.go +++ b/libs/tendermint/privval/retry_signer_client.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/types" ) // RetrySignerClient wraps SignerClient adding retry for each operation (except diff --git a/libs/tendermint/privval/signer_client.go b/libs/tendermint/privval/signer_client.go index aaf2fc7bc..34bc80ea5 100644 --- a/libs/tendermint/privval/signer_client.go +++ b/libs/tendermint/privval/signer_client.go @@ -5,8 +5,8 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/types" ) // SignerClient implements PrivValidator. diff --git a/libs/tendermint/privval/signer_client_test.go b/libs/tendermint/privval/signer_client_test.go index 229450d7a..3a6e35851 100644 --- a/libs/tendermint/privval/signer_client_test.go +++ b/libs/tendermint/privval/signer_client_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/types" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/types" ) type signerTestCase struct { diff --git a/libs/tendermint/privval/signer_dialer_endpoint.go b/libs/tendermint/privval/signer_dialer_endpoint.go index 2630eed33..04f366830 100644 --- a/libs/tendermint/privval/signer_dialer_endpoint.go +++ b/libs/tendermint/privval/signer_dialer_endpoint.go @@ -3,8 +3,8 @@ package privval import ( "time" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/service" ) const ( diff --git a/libs/tendermint/privval/signer_endpoint.go b/libs/tendermint/privval/signer_endpoint.go index 3287fa6f2..5124f2d65 100644 --- a/libs/tendermint/privval/signer_endpoint.go +++ b/libs/tendermint/privval/signer_endpoint.go @@ -8,7 +8,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/service" ) const ( diff --git a/libs/tendermint/privval/signer_listener_endpoint.go b/libs/tendermint/privval/signer_listener_endpoint.go index c1e600adb..8ce933fbd 100644 --- a/libs/tendermint/privval/signer_listener_endpoint.go +++ b/libs/tendermint/privval/signer_listener_endpoint.go @@ -6,8 +6,8 @@ import ( "sync" "time" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/service" ) // SignerListenerEndpointOption sets an optional parameter on the SignerListenerEndpoint. diff --git a/libs/tendermint/privval/signer_listener_endpoint_test.go b/libs/tendermint/privval/signer_listener_endpoint_test.go index 8a1acc4d1..78cc52c5c 100644 --- a/libs/tendermint/privval/signer_listener_endpoint_test.go +++ b/libs/tendermint/privval/signer_listener_endpoint_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmnet "github.com/okx/okbchain/libs/tendermint/libs/net" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmnet "github.com/okx/brczero/libs/tendermint/libs/net" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/types" ) var ( diff --git a/libs/tendermint/privval/signer_requestHandler.go b/libs/tendermint/privval/signer_requestHandler.go index 075cc67a0..3cb8101a0 100644 --- a/libs/tendermint/privval/signer_requestHandler.go +++ b/libs/tendermint/privval/signer_requestHandler.go @@ -3,8 +3,8 @@ package privval import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/types" ) func DefaultValidationRequestHandler( diff --git a/libs/tendermint/privval/signer_server.go b/libs/tendermint/privval/signer_server.go index 05f670a96..c6a1594ac 100644 --- a/libs/tendermint/privval/signer_server.go +++ b/libs/tendermint/privval/signer_server.go @@ -4,8 +4,8 @@ import ( "io" "sync" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/types" ) // ValidationRequestHandlerFunc handles different remoteSigner requests diff --git a/libs/tendermint/privval/socket_dialers.go b/libs/tendermint/privval/socket_dialers.go index d3cb27dea..94d1debda 100644 --- a/libs/tendermint/privval/socket_dialers.go +++ b/libs/tendermint/privval/socket_dialers.go @@ -6,9 +6,9 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmnet "github.com/okx/okbchain/libs/tendermint/libs/net" - p2pconn "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/crypto" + tmnet "github.com/okx/brczero/libs/tendermint/libs/net" + p2pconn "github.com/okx/brczero/libs/tendermint/p2p/conn" ) // Socket errors. diff --git a/libs/tendermint/privval/socket_dialers_test.go b/libs/tendermint/privval/socket_dialers_test.go index 209e7ccc0..d2b5dfcd9 100644 --- a/libs/tendermint/privval/socket_dialers_test.go +++ b/libs/tendermint/privval/socket_dialers_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" ) func getDialerTestCases(t *testing.T) []dialerTestCase { diff --git a/libs/tendermint/privval/socket_listeners.go b/libs/tendermint/privval/socket_listeners.go index 62184bf1a..d917edd2a 100644 --- a/libs/tendermint/privval/socket_listeners.go +++ b/libs/tendermint/privval/socket_listeners.go @@ -4,8 +4,8 @@ import ( "net" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - p2pconn "github.com/okx/okbchain/libs/tendermint/p2p/conn" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + p2pconn "github.com/okx/brczero/libs/tendermint/p2p/conn" ) const ( diff --git a/libs/tendermint/privval/socket_listeners_test.go b/libs/tendermint/privval/socket_listeners_test.go index 7b4a87dd7..5e9784877 100644 --- a/libs/tendermint/privval/socket_listeners_test.go +++ b/libs/tendermint/privval/socket_listeners_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" ) //------------------------------------------- diff --git a/libs/tendermint/privval/utils.go b/libs/tendermint/privval/utils.go index d9f65f97f..9f442722a 100644 --- a/libs/tendermint/privval/utils.go +++ b/libs/tendermint/privval/utils.go @@ -6,9 +6,9 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmnet "github.com/okx/okbchain/libs/tendermint/libs/net" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmnet "github.com/okx/brczero/libs/tendermint/libs/net" ) // IsConnTimeout returns a boolean indicating whether the error is known to diff --git a/libs/tendermint/proto/blockchain/msgs.pb.go b/libs/tendermint/proto/blockchain/msgs.pb.go index 8c48be637..3ad4b1b94 100644 --- a/libs/tendermint/proto/blockchain/msgs.pb.go +++ b/libs/tendermint/proto/blockchain/msgs.pb.go @@ -7,7 +7,7 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - types "github.com/okx/okbchain/libs/tendermint/proto/types" + types "github.com/okx/brczero/libs/tendermint/proto/types" math "math" ) diff --git a/libs/tendermint/proto/consensus/msgs.pb.go b/libs/tendermint/proto/consensus/msgs.pb.go index 3440e9f33..4be4fc5f6 100644 --- a/libs/tendermint/proto/consensus/msgs.pb.go +++ b/libs/tendermint/proto/consensus/msgs.pb.go @@ -7,8 +7,8 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - bits "github.com/okx/okbchain/libs/tendermint/proto/libs/bits" - types "github.com/okx/okbchain/libs/tendermint/proto/types" + bits "github.com/okx/brczero/libs/tendermint/proto/libs/bits" + types "github.com/okx/brczero/libs/tendermint/proto/types" math "math" ) diff --git a/libs/tendermint/proto/consensus/walmsgs.pb.go b/libs/tendermint/proto/consensus/walmsgs.pb.go index 828325da6..c85f58178 100644 --- a/libs/tendermint/proto/consensus/walmsgs.pb.go +++ b/libs/tendermint/proto/consensus/walmsgs.pb.go @@ -9,7 +9,7 @@ import ( proto "github.com/gogo/protobuf/proto" _ "github.com/golang/protobuf/ptypes/duration" _ "github.com/golang/protobuf/ptypes/timestamp" - types "github.com/okx/okbchain/libs/tendermint/proto/types" + types "github.com/okx/brczero/libs/tendermint/proto/types" math "math" time "time" ) diff --git a/libs/tendermint/proto/privval/msgs.pb.go b/libs/tendermint/proto/privval/msgs.pb.go index 479904732..cc963c5b7 100644 --- a/libs/tendermint/proto/privval/msgs.pb.go +++ b/libs/tendermint/proto/privval/msgs.pb.go @@ -7,8 +7,8 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - keys "github.com/okx/okbchain/libs/tendermint/proto/crypto/keys" - types "github.com/okx/okbchain/libs/tendermint/proto/types" + keys "github.com/okx/brczero/libs/tendermint/proto/crypto/keys" + types "github.com/okx/brczero/libs/tendermint/proto/types" math "math" ) diff --git a/libs/tendermint/proto/privval/types.pb.go b/libs/tendermint/proto/privval/types.pb.go index 0cd1e60da..8cfcd97f5 100644 --- a/libs/tendermint/proto/privval/types.pb.go +++ b/libs/tendermint/proto/privval/types.pb.go @@ -7,7 +7,7 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - keys "github.com/okx/okbchain/libs/tendermint/proto/crypto/keys" + keys "github.com/okx/brczero/libs/tendermint/proto/crypto/keys" math "math" ) diff --git a/libs/tendermint/proto/state/types.pb.go b/libs/tendermint/proto/state/types.pb.go index de8840626..c2bc073ce 100644 --- a/libs/tendermint/proto/state/types.pb.go +++ b/libs/tendermint/proto/state/types.pb.go @@ -8,9 +8,9 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/golang/protobuf/ptypes/timestamp" - types "github.com/okx/okbchain/libs/tendermint/abci/types" - types1 "github.com/okx/okbchain/libs/tendermint/proto/types" - version "github.com/okx/okbchain/libs/tendermint/proto/version" + types "github.com/okx/brczero/libs/tendermint/abci/types" + types1 "github.com/okx/brczero/libs/tendermint/proto/types" + version "github.com/okx/brczero/libs/tendermint/proto/version" math "math" time "time" ) diff --git a/libs/tendermint/proto/types/evidence.pb.go b/libs/tendermint/proto/types/evidence.pb.go index ef5762d34..c49de40a2 100644 --- a/libs/tendermint/proto/types/evidence.pb.go +++ b/libs/tendermint/proto/types/evidence.pb.go @@ -8,7 +8,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/golang/protobuf/ptypes/timestamp" - keys "github.com/okx/okbchain/libs/tendermint/proto/crypto/keys" + keys "github.com/okx/brczero/libs/tendermint/proto/crypto/keys" math "math" time "time" ) diff --git a/libs/tendermint/proto/types/types.pb.go b/libs/tendermint/proto/types/types.pb.go index 5f6191f80..3ff67ac4f 100644 --- a/libs/tendermint/proto/types/types.pb.go +++ b/libs/tendermint/proto/types/types.pb.go @@ -9,9 +9,9 @@ import ( github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" proto "github.com/golang/protobuf/proto" _ "github.com/golang/protobuf/ptypes/timestamp" - merkle "github.com/okx/okbchain/libs/tendermint/proto/crypto/merkle" - bits "github.com/okx/okbchain/libs/tendermint/proto/libs/bits" - version "github.com/okx/okbchain/libs/tendermint/proto/version" + merkle "github.com/okx/brczero/libs/tendermint/proto/crypto/merkle" + bits "github.com/okx/brczero/libs/tendermint/proto/libs/bits" + version "github.com/okx/brczero/libs/tendermint/proto/version" "io" math "math" math_bits "math/bits" diff --git a/libs/tendermint/proto/types/validator.pb.go b/libs/tendermint/proto/types/validator.pb.go index cc8d6e718..f15c8261b 100644 --- a/libs/tendermint/proto/types/validator.pb.go +++ b/libs/tendermint/proto/types/validator.pb.go @@ -7,7 +7,7 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" - keys "github.com/okx/okbchain/libs/tendermint/proto/crypto/keys" + keys "github.com/okx/brczero/libs/tendermint/proto/crypto/keys" io "io" math "math" math_bits "math/bits" diff --git a/libs/tendermint/proto/types/validator_adapter.pb.go b/libs/tendermint/proto/types/validator_adapter.pb.go index c459bc22e..32da82707 100644 --- a/libs/tendermint/proto/types/validator_adapter.pb.go +++ b/libs/tendermint/proto/types/validator_adapter.pb.go @@ -7,7 +7,7 @@ import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - pc "github.com/okx/okbchain/libs/tendermint/proto/crypto/keys" + pc "github.com/okx/brczero/libs/tendermint/proto/crypto/keys" io "io" math "math" ) diff --git a/libs/tendermint/proxy/app_conn.go b/libs/tendermint/proxy/app_conn.go index c772ace32..2a2c5b797 100644 --- a/libs/tendermint/proxy/app_conn.go +++ b/libs/tendermint/proxy/app_conn.go @@ -1,8 +1,8 @@ package proxy import ( - abcicli "github.com/okx/okbchain/libs/tendermint/abci/client" - "github.com/okx/okbchain/libs/tendermint/abci/types" + abcicli "github.com/okx/brczero/libs/tendermint/abci/client" + "github.com/okx/brczero/libs/tendermint/abci/types" ) //---------------------------------------------------------------------------------------- diff --git a/libs/tendermint/proxy/app_conn_test.go b/libs/tendermint/proxy/app_conn_test.go index 9aa27f056..1b58d4dbc 100644 --- a/libs/tendermint/proxy/app_conn_test.go +++ b/libs/tendermint/proxy/app_conn_test.go @@ -1,8 +1,8 @@ package proxy import ( - abcicli "github.com/okx/okbchain/libs/tendermint/abci/client" - "github.com/okx/okbchain/libs/tendermint/abci/types" + abcicli "github.com/okx/brczero/libs/tendermint/abci/client" + "github.com/okx/brczero/libs/tendermint/abci/types" ) //---------------------------------------- diff --git a/libs/tendermint/proxy/client.go b/libs/tendermint/proxy/client.go index 7dd9b85b5..24358bd7e 100644 --- a/libs/tendermint/proxy/client.go +++ b/libs/tendermint/proxy/client.go @@ -3,10 +3,10 @@ package proxy import ( "sync" - abcicli "github.com/okx/okbchain/libs/tendermint/abci/client" - "github.com/okx/okbchain/libs/tendermint/abci/example/counter" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - "github.com/okx/okbchain/libs/tendermint/abci/types" + abcicli "github.com/okx/brczero/libs/tendermint/abci/client" + "github.com/okx/brczero/libs/tendermint/abci/example/counter" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + "github.com/okx/brczero/libs/tendermint/abci/types" ) // NewABCIClient returns newly connected client diff --git a/libs/tendermint/proxy/multi_app_conn.go b/libs/tendermint/proxy/multi_app_conn.go index 4cea72193..90dc80d4b 100644 --- a/libs/tendermint/proxy/multi_app_conn.go +++ b/libs/tendermint/proxy/multi_app_conn.go @@ -3,7 +3,7 @@ package proxy import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/libs/service" ) //----------------------------- diff --git a/libs/tendermint/proxy/version.go b/libs/tendermint/proxy/version.go index 63777b8f2..f16875a94 100644 --- a/libs/tendermint/proxy/version.go +++ b/libs/tendermint/proxy/version.go @@ -1,8 +1,8 @@ package proxy import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/version" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/version" ) // RequestInfo contains all the information for sending diff --git a/libs/tendermint/rpc/client/codec.go b/libs/tendermint/rpc/client/codec.go index c1431f1de..a70c8ca57 100644 --- a/libs/tendermint/rpc/client/codec.go +++ b/libs/tendermint/rpc/client/codec.go @@ -3,7 +3,7 @@ package client import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/rpc/client/event_test.go b/libs/tendermint/rpc/client/event_test.go index e48486a64..b622a132c 100644 --- a/libs/tendermint/rpc/client/event_test.go +++ b/libs/tendermint/rpc/client/event_test.go @@ -10,12 +10,12 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/rpc/client" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/types" ) var waitForEventTimeout = 30 * time.Second diff --git a/libs/tendermint/rpc/client/examples_test.go b/libs/tendermint/rpc/client/examples_test.go index 428d97278..823b28266 100644 --- a/libs/tendermint/rpc/client/examples_test.go +++ b/libs/tendermint/rpc/client/examples_test.go @@ -5,10 +5,10 @@ import ( "fmt" "log" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctest "github.com/okx/okbchain/libs/tendermint/rpc/test" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctest "github.com/okx/brczero/libs/tendermint/rpc/test" ) func ExampleHTTP_simple() { diff --git a/libs/tendermint/rpc/client/helpers.go b/libs/tendermint/rpc/client/helpers.go index 01dfe6b7c..d281772fd 100644 --- a/libs/tendermint/rpc/client/helpers.go +++ b/libs/tendermint/rpc/client/helpers.go @@ -6,7 +6,7 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) // Waiter is informed of current height, decided whether to quit early diff --git a/libs/tendermint/rpc/client/helpers_test.go b/libs/tendermint/rpc/client/helpers_test.go index e129e26f2..0977cd526 100644 --- a/libs/tendermint/rpc/client/helpers_test.go +++ b/libs/tendermint/rpc/client/helpers_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - "github.com/okx/okbchain/libs/tendermint/rpc/client/mock" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/rpc/client" + "github.com/okx/brczero/libs/tendermint/rpc/client/mock" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" ) func TestWaitForHeight(t *testing.T) { diff --git a/libs/tendermint/rpc/client/http/http.go b/libs/tendermint/rpc/client/http/http.go index d269a426a..9f2ab3b67 100644 --- a/libs/tendermint/rpc/client/http/http.go +++ b/libs/tendermint/rpc/client/http/http.go @@ -12,14 +12,14 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - "github.com/okx/okbchain/libs/tendermint/libs/service" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - jsonrpcclient "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/client" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + "github.com/okx/brczero/libs/tendermint/libs/service" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + jsonrpcclient "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/client" + "github.com/okx/brczero/libs/tendermint/types" ) /* diff --git a/libs/tendermint/rpc/client/interface.go b/libs/tendermint/rpc/client/interface.go index 65c7599a7..36ce35d3a 100644 --- a/libs/tendermint/rpc/client/interface.go +++ b/libs/tendermint/rpc/client/interface.go @@ -24,10 +24,10 @@ import ( "context" "crypto/sha256" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/service" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/service" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/types" ) // Client wraps most important rpc calls a client would make if you want to diff --git a/libs/tendermint/rpc/client/local/local.go b/libs/tendermint/rpc/client/local/local.go index 218f71ab4..5d120e3aa 100644 --- a/libs/tendermint/rpc/client/local/local.go +++ b/libs/tendermint/rpc/client/local/local.go @@ -7,16 +7,16 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - tmquery "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - nm "github.com/okx/okbchain/libs/tendermint/node" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/client" - "github.com/okx/okbchain/libs/tendermint/rpc/core" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + tmquery "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + nm "github.com/okx/brczero/libs/tendermint/node" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/client" + "github.com/okx/brczero/libs/tendermint/rpc/core" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/types" ) /* diff --git a/libs/tendermint/rpc/client/main_test.go b/libs/tendermint/rpc/client/main_test.go index f477acecf..a64a97497 100644 --- a/libs/tendermint/rpc/client/main_test.go +++ b/libs/tendermint/rpc/client/main_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - nm "github.com/okx/okbchain/libs/tendermint/node" - rpctest "github.com/okx/okbchain/libs/tendermint/rpc/test" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + nm "github.com/okx/brczero/libs/tendermint/node" + rpctest "github.com/okx/brczero/libs/tendermint/rpc/test" ) var node *nm.Node diff --git a/libs/tendermint/rpc/client/mock/abci.go b/libs/tendermint/rpc/client/mock/abci.go index f8859791c..b692e8c51 100644 --- a/libs/tendermint/rpc/client/mock/abci.go +++ b/libs/tendermint/rpc/client/mock/abci.go @@ -1,12 +1,12 @@ package mock import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/rpc/client" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/types" ) // ABCIApp will send all abci related request to the named app, diff --git a/libs/tendermint/rpc/client/mock/abci_test.go b/libs/tendermint/rpc/client/mock/abci_test.go index 9f9a41335..3018e1ccf 100644 --- a/libs/tendermint/rpc/client/mock/abci_test.go +++ b/libs/tendermint/rpc/client/mock/abci_test.go @@ -9,13 +9,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - "github.com/okx/okbchain/libs/tendermint/rpc/client/mock" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/rpc/client" + "github.com/okx/brczero/libs/tendermint/rpc/client/mock" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/types" ) func TestABCIMock(t *testing.T) { diff --git a/libs/tendermint/rpc/client/mock/client.go b/libs/tendermint/rpc/client/mock/client.go index b21b7d34d..ae592d8ba 100644 --- a/libs/tendermint/rpc/client/mock/client.go +++ b/libs/tendermint/rpc/client/mock/client.go @@ -17,13 +17,13 @@ want to directly call a tendermint node in process, you can use the import ( "reflect" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - "github.com/okx/okbchain/libs/tendermint/rpc/core" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/rpc/client" + "github.com/okx/brczero/libs/tendermint/rpc/core" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/types" ) // Client wraps arbitrary implementations of the various interfaces. diff --git a/libs/tendermint/rpc/client/mock/status.go b/libs/tendermint/rpc/client/mock/status.go index cc67f0906..5b384e54e 100644 --- a/libs/tendermint/rpc/client/mock/status.go +++ b/libs/tendermint/rpc/client/mock/status.go @@ -1,8 +1,8 @@ package mock import ( - "github.com/okx/okbchain/libs/tendermint/rpc/client" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/rpc/client" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" ) // StatusMock returns the result specified by the Call diff --git a/libs/tendermint/rpc/client/mock/status_test.go b/libs/tendermint/rpc/client/mock/status_test.go index 29f25755c..cce85c59d 100644 --- a/libs/tendermint/rpc/client/mock/status_test.go +++ b/libs/tendermint/rpc/client/mock/status_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/rpc/client/mock" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/rpc/client/mock" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" ) func TestStatus(t *testing.T) { diff --git a/libs/tendermint/rpc/client/rpc_test.go b/libs/tendermint/rpc/client/rpc_test.go index f5eedc0d6..0d8bc74c8 100644 --- a/libs/tendermint/rpc/client/rpc_test.go +++ b/libs/tendermint/rpc/client/rpc_test.go @@ -14,21 +14,21 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/privval" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - rpchttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" - rpclocal "github.com/okx/okbchain/libs/tendermint/rpc/client/local" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/client" - rpctest "github.com/okx/okbchain/libs/tendermint/rpc/test" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/rpc/client" + rpchttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" + rpclocal "github.com/okx/brczero/libs/tendermint/rpc/client/local" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/client" + rpctest "github.com/okx/brczero/libs/tendermint/rpc/test" + "github.com/okx/brczero/libs/tendermint/types" ) func getHTTPClient() *rpchttp.HTTP { diff --git a/libs/tendermint/rpc/core/abci.go b/libs/tendermint/rpc/core/abci.go index c854b9e36..fec7674ed 100644 --- a/libs/tendermint/rpc/core/abci.go +++ b/libs/tendermint/rpc/core/abci.go @@ -1,11 +1,11 @@ package core import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/proxy" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/proxy" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) // ABCIQuery queries the application for some information. diff --git a/libs/tendermint/rpc/core/blocks.go b/libs/tendermint/rpc/core/blocks.go index 08dd84fb8..8d4d985b1 100644 --- a/libs/tendermint/rpc/core/blocks.go +++ b/libs/tendermint/rpc/core/blocks.go @@ -5,17 +5,17 @@ import ( "fmt" "sort" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - nullblockindexer "github.com/okx/okbchain/libs/tendermint/state/indexer/block/null" + nullblockindexer "github.com/okx/brczero/libs/tendermint/state/indexer/block/null" - tmquery "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" + tmquery "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) // BlockchainInfo gets block headers for minHeight <= height <= maxHeight. diff --git a/libs/tendermint/rpc/core/blocks_test.go b/libs/tendermint/rpc/core/blocks_test.go index e99becb87..13a54d2b0 100644 --- a/libs/tendermint/rpc/core/blocks_test.go +++ b/libs/tendermint/rpc/core/blocks_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) func TestBlockchainInfo(t *testing.T) { diff --git a/libs/tendermint/rpc/core/consensus.go b/libs/tendermint/rpc/core/consensus.go index 2ccae4102..91cf3baed 100644 --- a/libs/tendermint/rpc/core/consensus.go +++ b/libs/tendermint/rpc/core/consensus.go @@ -1,12 +1,12 @@ package core import ( - cm "github.com/okx/okbchain/libs/tendermint/consensus" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + cm "github.com/okx/brczero/libs/tendermint/consensus" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) // Validators gets the validator set at the given block height. diff --git a/libs/tendermint/rpc/core/dev.go b/libs/tendermint/rpc/core/dev.go index cdabb479a..04e78d15c 100644 --- a/libs/tendermint/rpc/core/dev.go +++ b/libs/tendermint/rpc/core/dev.go @@ -4,8 +4,8 @@ import ( "os" "runtime/pprof" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) // UnsafeFlushMempool removes all transactions from the mempool. diff --git a/libs/tendermint/rpc/core/env.go b/libs/tendermint/rpc/core/env.go index 30651ee34..7099671d6 100644 --- a/libs/tendermint/rpc/core/env.go +++ b/libs/tendermint/rpc/core/env.go @@ -4,20 +4,20 @@ import ( "fmt" "time" - blockindex "github.com/okx/okbchain/libs/tendermint/state/indexer" - - dbm "github.com/okx/okbchain/libs/tm-db" - - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/libs/log" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/state/txindex" - "github.com/okx/okbchain/libs/tendermint/types" + blockindex "github.com/okx/brczero/libs/tendermint/state/indexer" + + dbm "github.com/okx/brczero/libs/tm-db" + + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/libs/log" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/state/txindex" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/rpc/core/events.go b/libs/tendermint/rpc/core/events.go index 0b46c7090..85d8e810b 100644 --- a/libs/tendermint/rpc/core/events.go +++ b/libs/tendermint/rpc/core/events.go @@ -6,11 +6,11 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/config" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - tmquery "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/config" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + tmquery "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) const ( diff --git a/libs/tendermint/rpc/core/evidence.go b/libs/tendermint/rpc/core/evidence.go index 2c784ec70..32a24d5e7 100644 --- a/libs/tendermint/rpc/core/evidence.go +++ b/libs/tendermint/rpc/core/evidence.go @@ -1,10 +1,10 @@ package core import ( - "github.com/okx/okbchain/libs/tendermint/evidence" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/evidence" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/types" ) // BroadcastEvidence broadcasts evidence of the misbehavior. diff --git a/libs/tendermint/rpc/core/health.go b/libs/tendermint/rpc/core/health.go index 7ae8dfb11..be73c411f 100644 --- a/libs/tendermint/rpc/core/health.go +++ b/libs/tendermint/rpc/core/health.go @@ -1,8 +1,8 @@ package core import ( - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) // Health gets node health. Returns empty result (200 OK) on success, no diff --git a/libs/tendermint/rpc/core/ibc_adapter.go b/libs/tendermint/rpc/core/ibc_adapter.go index 30ebc15da..71d3a9cf7 100644 --- a/libs/tendermint/rpc/core/ibc_adapter.go +++ b/libs/tendermint/rpc/core/ibc_adapter.go @@ -1,9 +1,9 @@ package core import ( - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - "github.com/okx/okbchain/libs/tendermint/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/types" //coretypes "github.com/tendermint/tendermint/rpc/core/types" ) diff --git a/libs/tendermint/rpc/core/ibc_utils.go b/libs/tendermint/rpc/core/ibc_utils.go index 3968ed668..f0324cebd 100644 --- a/libs/tendermint/rpc/core/ibc_utils.go +++ b/libs/tendermint/rpc/core/ibc_utils.go @@ -1,9 +1,9 @@ package core import ( - "github.com/okx/okbchain/libs/tendermint/proto/version" - coretypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/proto/version" + coretypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/types" ) func ConvBlock2CM40Block(r *types.Block) *types.CM40Block { diff --git a/libs/tendermint/rpc/core/mempool.go b/libs/tendermint/rpc/core/mempool.go index 341980a78..d26875528 100644 --- a/libs/tendermint/rpc/core/mempool.go +++ b/libs/tendermint/rpc/core/mempool.go @@ -8,13 +8,13 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/config" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/config" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/types" ) //----------------------------------------------------------------------------- diff --git a/libs/tendermint/rpc/core/net.go b/libs/tendermint/rpc/core/net.go index bc47a7fe2..efdf5f28c 100644 --- a/libs/tendermint/rpc/core/net.go +++ b/libs/tendermint/rpc/core/net.go @@ -5,9 +5,9 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/p2p" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/p2p" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) // NetInfo returns network info. diff --git a/libs/tendermint/rpc/core/net_test.go b/libs/tendermint/rpc/core/net_test.go index 4067084fe..1619118ce 100644 --- a/libs/tendermint/rpc/core/net_test.go +++ b/libs/tendermint/rpc/core/net_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/p2p" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/p2p" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) func TestUnsafeDialSeeds(t *testing.T) { diff --git a/libs/tendermint/rpc/core/routes.go b/libs/tendermint/rpc/core/routes.go index d22424f14..27e7df713 100644 --- a/libs/tendermint/rpc/core/routes.go +++ b/libs/tendermint/rpc/core/routes.go @@ -1,7 +1,7 @@ package core import ( - rpc "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" + rpc "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" ) // TODO: better system than "unsafe" prefix diff --git a/libs/tendermint/rpc/core/status.go b/libs/tendermint/rpc/core/status.go index a245921f6..abd155f14 100644 --- a/libs/tendermint/rpc/core/status.go +++ b/libs/tendermint/rpc/core/status.go @@ -3,12 +3,12 @@ package core import ( "time" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/p2p" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/p2p" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) // Status returns Tendermint status including node info, pubkey, latest block diff --git a/libs/tendermint/rpc/core/tx.go b/libs/tendermint/rpc/core/tx.go index 3799246c0..f06f178c5 100644 --- a/libs/tendermint/rpc/core/tx.go +++ b/libs/tendermint/rpc/core/tx.go @@ -6,12 +6,12 @@ import ( "github.com/pkg/errors" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmquery "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" - "github.com/okx/okbchain/libs/tendermint/state/txindex/null" - "github.com/okx/okbchain/libs/tendermint/types" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmquery "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/state/txindex/null" + "github.com/okx/brczero/libs/tendermint/types" ) // Tx allows you to query the transaction results. `nil` could mean the diff --git a/libs/tendermint/rpc/core/types/codec.go b/libs/tendermint/rpc/core/types/codec.go index 7578ef72c..97404b3a0 100644 --- a/libs/tendermint/rpc/core/types/codec.go +++ b/libs/tendermint/rpc/core/types/codec.go @@ -3,7 +3,7 @@ package coretypes import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) func RegisterAmino(cdc *amino.Codec) { diff --git a/libs/tendermint/rpc/core/types/ibc_adapter.go b/libs/tendermint/rpc/core/types/ibc_adapter.go index f2e7b924f..82a5d66e9 100644 --- a/libs/tendermint/rpc/core/types/ibc_adapter.go +++ b/libs/tendermint/rpc/core/types/ibc_adapter.go @@ -1,8 +1,8 @@ package coretypes import ( - "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/version" ) type CM40ResultBlock struct { diff --git a/libs/tendermint/rpc/core/types/responses.go b/libs/tendermint/rpc/core/types/responses.go index 3a63274ce..896f86914 100644 --- a/libs/tendermint/rpc/core/types/responses.go +++ b/libs/tendermint/rpc/core/types/responses.go @@ -4,11 +4,11 @@ import ( "encoding/json" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/types" ) // List of blocks diff --git a/libs/tendermint/rpc/core/types/responses_test.go b/libs/tendermint/rpc/core/types/responses_test.go index 56fbb70dd..53284613d 100644 --- a/libs/tendermint/rpc/core/types/responses_test.go +++ b/libs/tendermint/rpc/core/types/responses_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/p2p" ) func TestStatusIndexer(t *testing.T) { diff --git a/libs/tendermint/rpc/grpc/api.go b/libs/tendermint/rpc/grpc/api.go index 456a3a0ff..cc4422c6d 100644 --- a/libs/tendermint/rpc/grpc/api.go +++ b/libs/tendermint/rpc/grpc/api.go @@ -3,9 +3,9 @@ package coregrpc import ( "context" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - core "github.com/okx/okbchain/libs/tendermint/rpc/core" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + core "github.com/okx/brczero/libs/tendermint/rpc/core" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) type broadcastAPI struct { diff --git a/libs/tendermint/rpc/grpc/client_server.go b/libs/tendermint/rpc/grpc/client_server.go index 695fc3d63..69b12a772 100644 --- a/libs/tendermint/rpc/grpc/client_server.go +++ b/libs/tendermint/rpc/grpc/client_server.go @@ -6,7 +6,7 @@ import ( "golang.org/x/net/context" "google.golang.org/grpc" - tmnet "github.com/okx/okbchain/libs/tendermint/libs/net" + tmnet "github.com/okx/brczero/libs/tendermint/libs/net" ) // Config is an gRPC server configuration. diff --git a/libs/tendermint/rpc/grpc/grpc_test.go b/libs/tendermint/rpc/grpc/grpc_test.go index 485056d80..9dec69b0a 100644 --- a/libs/tendermint/rpc/grpc/grpc_test.go +++ b/libs/tendermint/rpc/grpc/grpc_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - cfg "github.com/okx/okbchain/libs/tendermint/config" - core_grpc "github.com/okx/okbchain/libs/tendermint/rpc/grpc" - rpctest "github.com/okx/okbchain/libs/tendermint/rpc/test" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + cfg "github.com/okx/brczero/libs/tendermint/config" + core_grpc "github.com/okx/brczero/libs/tendermint/rpc/grpc" + rpctest "github.com/okx/brczero/libs/tendermint/rpc/test" ) func TestMain(m *testing.M) { diff --git a/libs/tendermint/rpc/grpc/types.pb.go b/libs/tendermint/rpc/grpc/types.pb.go index 01121bda7..fab50b171 100644 --- a/libs/tendermint/rpc/grpc/types.pb.go +++ b/libs/tendermint/rpc/grpc/types.pb.go @@ -10,7 +10,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" golang_proto "github.com/golang/protobuf/proto" - types "github.com/okx/okbchain/libs/tendermint/abci/types" + types "github.com/okx/brczero/libs/tendermint/abci/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/libs/tendermint/rpc/grpc/typespb_test.go b/libs/tendermint/rpc/grpc/typespb_test.go index adab6de6f..dfef620ea 100644 --- a/libs/tendermint/rpc/grpc/typespb_test.go +++ b/libs/tendermint/rpc/grpc/typespb_test.go @@ -10,7 +10,7 @@ import ( github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" proto "github.com/gogo/protobuf/proto" golang_proto "github.com/golang/protobuf/proto" - _ "github.com/okx/okbchain/libs/tendermint/abci/types" + _ "github.com/okx/brczero/libs/tendermint/abci/types" math "math" math_rand "math/rand" testing "testing" diff --git a/libs/tendermint/rpc/jsonrpc/client/cm39_converters.go b/libs/tendermint/rpc/jsonrpc/client/cm39_converters.go index 5f7c469b6..0b8baa858 100644 --- a/libs/tendermint/rpc/jsonrpc/client/cm39_converters.go +++ b/libs/tendermint/rpc/jsonrpc/client/cm39_converters.go @@ -1,11 +1,11 @@ package client import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - merkle "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - coretypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + merkle "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + coretypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/types" ) type CM39ResultBroadcastTxCommit struct { diff --git a/libs/tendermint/rpc/jsonrpc/client/cm39_http_json_client.go b/libs/tendermint/rpc/jsonrpc/client/cm39_http_json_client.go index c334caf65..0095610ff 100644 --- a/libs/tendermint/rpc/jsonrpc/client/cm39_http_json_client.go +++ b/libs/tendermint/rpc/jsonrpc/client/cm39_http_json_client.go @@ -6,10 +6,10 @@ import ( "io/ioutil" "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - coretypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + coretypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) type decoder interface { diff --git a/libs/tendermint/rpc/jsonrpc/client/decode.go b/libs/tendermint/rpc/jsonrpc/client/decode.go index 05b84848e..a26b647dd 100644 --- a/libs/tendermint/rpc/jsonrpc/client/decode.go +++ b/libs/tendermint/rpc/jsonrpc/client/decode.go @@ -7,7 +7,7 @@ import ( amino "github.com/tendermint/go-amino" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) func unmarshalResponseBytes( diff --git a/libs/tendermint/rpc/jsonrpc/client/http_json_client.go b/libs/tendermint/rpc/jsonrpc/client/http_json_client.go index 4bae3bcbf..9f94d660a 100644 --- a/libs/tendermint/rpc/jsonrpc/client/http_json_client.go +++ b/libs/tendermint/rpc/jsonrpc/client/http_json_client.go @@ -14,7 +14,7 @@ import ( "github.com/pkg/errors" amino "github.com/tendermint/go-amino" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) const ( diff --git a/libs/tendermint/rpc/jsonrpc/client/http_uri_client.go b/libs/tendermint/rpc/jsonrpc/client/http_uri_client.go index 140272abe..969a1d931 100644 --- a/libs/tendermint/rpc/jsonrpc/client/http_uri_client.go +++ b/libs/tendermint/rpc/jsonrpc/client/http_uri_client.go @@ -8,7 +8,7 @@ import ( amino "github.com/tendermint/go-amino" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) const ( diff --git a/libs/tendermint/rpc/jsonrpc/client/integration_test.go b/libs/tendermint/rpc/jsonrpc/client/integration_test.go index 57309126f..5c8fd1588 100644 --- a/libs/tendermint/rpc/jsonrpc/client/integration_test.go +++ b/libs/tendermint/rpc/jsonrpc/client/integration_test.go @@ -16,7 +16,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) func TestWSClientReconnectWithJitter(t *testing.T) { diff --git a/libs/tendermint/rpc/jsonrpc/client/ws_client.go b/libs/tendermint/rpc/jsonrpc/client/ws_client.go index 9d8b00efc..819bc1e4d 100644 --- a/libs/tendermint/rpc/jsonrpc/client/ws_client.go +++ b/libs/tendermint/rpc/jsonrpc/client/ws_client.go @@ -15,9 +15,9 @@ import ( amino "github.com/tendermint/go-amino" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/libs/service" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/libs/service" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) const ( diff --git a/libs/tendermint/rpc/jsonrpc/client/ws_client_test.go b/libs/tendermint/rpc/jsonrpc/client/ws_client_test.go index 3f72832b3..df1b74c1e 100644 --- a/libs/tendermint/rpc/jsonrpc/client/ws_client_test.go +++ b/libs/tendermint/rpc/jsonrpc/client/ws_client_test.go @@ -12,9 +12,9 @@ import ( "github.com/gorilla/websocket" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) var wsCallTimeout = 5 * time.Second diff --git a/libs/tendermint/rpc/jsonrpc/jsonrpc_test.go b/libs/tendermint/rpc/jsonrpc/jsonrpc_test.go index fe55d985d..f042c600b 100644 --- a/libs/tendermint/rpc/jsonrpc/jsonrpc_test.go +++ b/libs/tendermint/rpc/jsonrpc/jsonrpc_test.go @@ -18,13 +18,13 @@ import ( amino "github.com/tendermint/go-amino" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" - client "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/client" - server "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + client "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/client" + server "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) // Client and Server should work over tcp or unix sockets diff --git a/libs/tendermint/rpc/jsonrpc/server/http_json_handler.go b/libs/tendermint/rpc/jsonrpc/server/http_json_handler.go index c93b5e342..8cb167d14 100644 --- a/libs/tendermint/rpc/jsonrpc/server/http_json_handler.go +++ b/libs/tendermint/rpc/jsonrpc/server/http_json_handler.go @@ -13,8 +13,8 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) /////////////////////////////////////////////////////////////////////////////// diff --git a/libs/tendermint/rpc/jsonrpc/server/http_json_handler_test.go b/libs/tendermint/rpc/jsonrpc/server/http_json_handler_test.go index d77e93750..9db6cd5c2 100644 --- a/libs/tendermint/rpc/jsonrpc/server/http_json_handler_test.go +++ b/libs/tendermint/rpc/jsonrpc/server/http_json_handler_test.go @@ -14,8 +14,8 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) func testMux() *http.ServeMux { diff --git a/libs/tendermint/rpc/jsonrpc/server/http_server.go b/libs/tendermint/rpc/jsonrpc/server/http_server.go index c6758974d..b5aac1a65 100644 --- a/libs/tendermint/rpc/jsonrpc/server/http_server.go +++ b/libs/tendermint/rpc/jsonrpc/server/http_server.go @@ -15,8 +15,8 @@ import ( "github.com/pkg/errors" "golang.org/x/net/netutil" - "github.com/okx/okbchain/libs/tendermint/libs/log" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) // Config is a RPC server configuration. diff --git a/libs/tendermint/rpc/jsonrpc/server/http_server_test.go b/libs/tendermint/rpc/jsonrpc/server/http_server_test.go index b118acf9c..0f6aa885d 100644 --- a/libs/tendermint/rpc/jsonrpc/server/http_server_test.go +++ b/libs/tendermint/rpc/jsonrpc/server/http_server_test.go @@ -15,7 +15,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) func TestMaxOpenConnections(t *testing.T) { diff --git a/libs/tendermint/rpc/jsonrpc/server/http_uri_handler.go b/libs/tendermint/rpc/jsonrpc/server/http_uri_handler.go index 25da2a46c..62e3b1b25 100644 --- a/libs/tendermint/rpc/jsonrpc/server/http_uri_handler.go +++ b/libs/tendermint/rpc/jsonrpc/server/http_uri_handler.go @@ -11,8 +11,8 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) /////////////////////////////////////////////////////////////////////////////// diff --git a/libs/tendermint/rpc/jsonrpc/server/parse_test.go b/libs/tendermint/rpc/jsonrpc/server/parse_test.go index 0e3c27d93..0601373f3 100644 --- a/libs/tendermint/rpc/jsonrpc/server/parse_test.go +++ b/libs/tendermint/rpc/jsonrpc/server/parse_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/assert" amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) func TestParseJSONMap(t *testing.T) { diff --git a/libs/tendermint/rpc/jsonrpc/server/rpc_func.go b/libs/tendermint/rpc/jsonrpc/server/rpc_func.go index 4504c3295..87f17825a 100644 --- a/libs/tendermint/rpc/jsonrpc/server/rpc_func.go +++ b/libs/tendermint/rpc/jsonrpc/server/rpc_func.go @@ -9,7 +9,7 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // RegisterRPCFuncs adds a route for each function in the funcMap, as well as diff --git a/libs/tendermint/rpc/jsonrpc/server/ws_handler.go b/libs/tendermint/rpc/jsonrpc/server/ws_handler.go index f9adb101e..cecd5cc0f 100644 --- a/libs/tendermint/rpc/jsonrpc/server/ws_handler.go +++ b/libs/tendermint/rpc/jsonrpc/server/ws_handler.go @@ -14,9 +14,9 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/service" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/service" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) /////////////////////////////////////////////////////////////////////////////// diff --git a/libs/tendermint/rpc/jsonrpc/server/ws_handler_test.go b/libs/tendermint/rpc/jsonrpc/server/ws_handler_test.go index 33cbb7d1b..cc595a216 100644 --- a/libs/tendermint/rpc/jsonrpc/server/ws_handler_test.go +++ b/libs/tendermint/rpc/jsonrpc/server/ws_handler_test.go @@ -10,8 +10,8 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" - types "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + types "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) func TestWebsocketManagerHandler(t *testing.T) { diff --git a/libs/tendermint/rpc/jsonrpc/test/main.go b/libs/tendermint/rpc/jsonrpc/test/main.go index be5266104..1fada87c7 100644 --- a/libs/tendermint/rpc/jsonrpc/test/main.go +++ b/libs/tendermint/rpc/jsonrpc/test/main.go @@ -7,10 +7,10 @@ import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - rpcserver "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/server" - rpctypes "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + rpcserver "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/server" + rpctypes "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/types" ) var routes = map[string]*rpcserver.RPCFunc{ diff --git a/libs/tendermint/rpc/jsonrpc/types/types.go b/libs/tendermint/rpc/jsonrpc/types/types.go index b431219c8..ecff157c2 100644 --- a/libs/tendermint/rpc/jsonrpc/types/types.go +++ b/libs/tendermint/rpc/jsonrpc/types/types.go @@ -8,7 +8,7 @@ import ( "reflect" "strings" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" "github.com/pkg/errors" diff --git a/libs/tendermint/rpc/test/helpers.go b/libs/tendermint/rpc/test/helpers.go index ff6d0611d..cda226720 100644 --- a/libs/tendermint/rpc/test/helpers.go +++ b/libs/tendermint/rpc/test/helpers.go @@ -8,18 +8,18 @@ import ( "strings" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - - cfg "github.com/okx/okbchain/libs/tendermint/config" - tmnet "github.com/okx/okbchain/libs/tendermint/libs/net" - nm "github.com/okx/okbchain/libs/tendermint/node" - "github.com/okx/okbchain/libs/tendermint/p2p" - "github.com/okx/okbchain/libs/tendermint/privval" - "github.com/okx/okbchain/libs/tendermint/proxy" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - core_grpc "github.com/okx/okbchain/libs/tendermint/rpc/grpc" - rpcclient "github.com/okx/okbchain/libs/tendermint/rpc/jsonrpc/client" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + + cfg "github.com/okx/brczero/libs/tendermint/config" + tmnet "github.com/okx/brczero/libs/tendermint/libs/net" + nm "github.com/okx/brczero/libs/tendermint/node" + "github.com/okx/brczero/libs/tendermint/p2p" + "github.com/okx/brczero/libs/tendermint/privval" + "github.com/okx/brczero/libs/tendermint/proxy" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + core_grpc "github.com/okx/brczero/libs/tendermint/rpc/grpc" + rpcclient "github.com/okx/brczero/libs/tendermint/rpc/jsonrpc/client" ) // Options helps with specifying some parameters for our RPC testing for greater diff --git a/libs/tendermint/scripts/json2wal/main.go b/libs/tendermint/scripts/json2wal/main.go index 5790157fd..385cdb39e 100644 --- a/libs/tendermint/scripts/json2wal/main.go +++ b/libs/tendermint/scripts/json2wal/main.go @@ -16,8 +16,8 @@ import ( amino "github.com/tendermint/go-amino" - cs "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/types" + cs "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/scripts/wal2json/main.go b/libs/tendermint/scripts/wal2json/main.go index f3672da5a..6c8a65723 100644 --- a/libs/tendermint/scripts/wal2json/main.go +++ b/libs/tendermint/scripts/wal2json/main.go @@ -14,8 +14,8 @@ import ( amino "github.com/tendermint/go-amino" - cs "github.com/okx/okbchain/libs/tendermint/consensus" - "github.com/okx/okbchain/libs/tendermint/types" + cs "github.com/okx/brczero/libs/tendermint/consensus" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/state/codec.go b/libs/tendermint/state/codec.go index e9d76cee8..a1ab45464 100644 --- a/libs/tendermint/state/codec.go +++ b/libs/tendermint/state/codec.go @@ -3,7 +3,7 @@ package state import ( amino "github.com/tendermint/go-amino" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/state/execution.go b/libs/tendermint/state/execution.go index f53b6ff24..87506291a 100644 --- a/libs/tendermint/state/execution.go +++ b/libs/tendermint/state/execution.go @@ -7,18 +7,18 @@ import ( "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/global" - "github.com/okx/okbchain/libs/tendermint/libs/automation" - "github.com/okx/okbchain/libs/tendermint/libs/fail" - "github.com/okx/okbchain/libs/tendermint/libs/log" - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/global" + "github.com/okx/brczero/libs/tendermint/libs/automation" + "github.com/okx/brczero/libs/tendermint/libs/fail" + "github.com/okx/brczero/libs/tendermint/libs/log" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" + dbm "github.com/okx/brczero/libs/tm-db" ) // ----------------------------------------------------------------------------- diff --git a/libs/tendermint/state/execution_context.go b/libs/tendermint/state/execution_context.go index 713701248..62cfb97fd 100644 --- a/libs/tendermint/state/execution_context.go +++ b/libs/tendermint/state/execution_context.go @@ -3,8 +3,8 @@ package state import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/types" "time" ) diff --git a/libs/tendermint/state/execution_dds.go b/libs/tendermint/state/execution_dds.go index a7943ef1c..04c144629 100644 --- a/libs/tendermint/state/execution_dds.go +++ b/libs/tendermint/state/execution_dds.go @@ -2,19 +2,19 @@ package state import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/system/trace" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/system/trace" "sync/atomic" "time" - "github.com/okx/okbchain/libs/iavl" - "github.com/okx/okbchain/libs/system" - "github.com/okx/okbchain/libs/tendermint/delta" - redis_cgi "github.com/okx/okbchain/libs/tendermint/delta/redis-cgi" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/iavl" + "github.com/okx/brczero/libs/system" + "github.com/okx/brczero/libs/tendermint/delta" + redis_cgi "github.com/okx/brczero/libs/tendermint/delta/redis-cgi" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) type identityMapType map[string]int64 diff --git a/libs/tendermint/state/execution_dds_payload.go b/libs/tendermint/state/execution_dds_payload.go index 45ae97b52..99fa53a53 100644 --- a/libs/tendermint/state/execution_dds_payload.go +++ b/libs/tendermint/state/execution_dds_payload.go @@ -3,7 +3,7 @@ package state import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) func unmarshalTreeDeltaMap(input []byte) (interface{}, error) { diff --git a/libs/tendermint/state/execution_dds_test.go b/libs/tendermint/state/execution_dds_test.go index 30f2509f2..e5e5257d6 100644 --- a/libs/tendermint/state/execution_dds_test.go +++ b/libs/tendermint/state/execution_dds_test.go @@ -7,12 +7,12 @@ import ( "time" "github.com/alicebob/miniredis/v2" - "github.com/okx/okbchain/libs/iavl" - redis_cgi "github.com/okx/okbchain/libs/tendermint/delta/redis-cgi" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/iavl" + redis_cgi "github.com/okx/brczero/libs/tendermint/delta/redis-cgi" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" ) diff --git a/libs/tendermint/state/execution_parallel.go b/libs/tendermint/state/execution_parallel.go index 3baab41ff..211207682 100644 --- a/libs/tendermint/state/execution_parallel.go +++ b/libs/tendermint/state/execution_parallel.go @@ -3,12 +3,12 @@ package state import ( "fmt" - "github.com/okx/okbchain/libs/system/trace" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/system/trace" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) func execBlockOnProxyAppAsync( diff --git a/libs/tendermint/state/execution_task.go b/libs/tendermint/state/execution_task.go index dfa9ef8ab..823b0131e 100644 --- a/libs/tendermint/state/execution_task.go +++ b/libs/tendermint/state/execution_task.go @@ -5,13 +5,13 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/system/trace" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/automation" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/system/trace" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/automation" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" ) type executionResult struct { diff --git a/libs/tendermint/state/execution_test.go b/libs/tendermint/state/execution_test.go index 07dfb917a..563afd870 100644 --- a/libs/tendermint/state/execution_test.go +++ b/libs/tendermint/state/execution_test.go @@ -7,16 +7,16 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/abci/example/kvstore" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/mock" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/abci/example/kvstore" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/mock" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) var ( diff --git a/libs/tendermint/state/export_test.go b/libs/tendermint/state/export_test.go index 72fe2b459..7c3e6085d 100644 --- a/libs/tendermint/state/export_test.go +++ b/libs/tendermint/state/export_test.go @@ -1,10 +1,10 @@ package state import ( - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/types" ) // diff --git a/libs/tendermint/state/helpers_test.go b/libs/tendermint/state/helpers_test.go index 2ae81ec75..cc9d53f0c 100644 --- a/libs/tendermint/state/helpers_test.go +++ b/libs/tendermint/state/helpers_test.go @@ -5,16 +5,16 @@ import ( "fmt" "time" - dbm "github.com/okx/okbchain/libs/tm-db" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/proxy" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + dbm "github.com/okx/brczero/libs/tm-db" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/proxy" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) type paramsChangeTestCase struct { diff --git a/libs/tendermint/state/indexer/block.go b/libs/tendermint/state/indexer/block.go index 4f19dd6ab..7c35aae06 100644 --- a/libs/tendermint/state/indexer/block.go +++ b/libs/tendermint/state/indexer/block.go @@ -3,8 +3,8 @@ package indexer import ( "context" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/types" ) // BlockIndexer defines an interface contract for indexing block events. diff --git a/libs/tendermint/state/indexer/block/kv/kv.go b/libs/tendermint/state/indexer/block/kv/kv.go index 5f9656e9c..f0d118ae9 100644 --- a/libs/tendermint/state/indexer/block/kv/kv.go +++ b/libs/tendermint/state/indexer/block/kv/kv.go @@ -8,13 +8,13 @@ import ( "strconv" "strings" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/state/indexer" + "github.com/okx/brczero/libs/tendermint/state/indexer" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/google/orderedcode" ) diff --git a/libs/tendermint/state/indexer/block/kv/util.go b/libs/tendermint/state/indexer/block/kv/util.go index e71b15a3f..5ebf3d87a 100644 --- a/libs/tendermint/state/indexer/block/kv/util.go +++ b/libs/tendermint/state/indexer/block/kv/util.go @@ -6,8 +6,8 @@ import ( "strconv" "github.com/google/orderedcode" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/types" ) func intInSlice(a int, list []int) bool { diff --git a/libs/tendermint/state/indexer/block/null/null.go b/libs/tendermint/state/indexer/block/null/null.go index 25a7dc89b..18be91158 100644 --- a/libs/tendermint/state/indexer/block/null/null.go +++ b/libs/tendermint/state/indexer/block/null/null.go @@ -4,9 +4,9 @@ import ( "context" "errors" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - "github.com/okx/okbchain/libs/tendermint/state/indexer" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/state/indexer" + "github.com/okx/brczero/libs/tendermint/types" ) var _ indexer.BlockIndexer = (*BlockerIndexer)(nil) diff --git a/libs/tendermint/state/indexer/query_range.go b/libs/tendermint/state/indexer/query_range.go index fc26df598..63aea4be5 100644 --- a/libs/tendermint/state/indexer/query_range.go +++ b/libs/tendermint/state/indexer/query_range.go @@ -3,7 +3,7 @@ package indexer import ( "time" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" ) type QueryRanges map[string]QueryRange diff --git a/libs/tendermint/state/main_test.go b/libs/tendermint/state/main_test.go index 64c7ce750..d82838fd9 100644 --- a/libs/tendermint/state/main_test.go +++ b/libs/tendermint/state/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) func TestMain(m *testing.M) { diff --git a/libs/tendermint/state/services.go b/libs/tendermint/state/services.go index cfb6bbc2f..9408916ec 100644 --- a/libs/tendermint/state/services.go +++ b/libs/tendermint/state/services.go @@ -1,7 +1,7 @@ package state import ( - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) //------------------------------------------------------ diff --git a/libs/tendermint/state/state.go b/libs/tendermint/state/state.go index ce2b0ec1a..5b0c96ea2 100644 --- a/libs/tendermint/state/state.go +++ b/libs/tendermint/state/state.go @@ -6,9 +6,9 @@ import ( "io/ioutil" "time" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/version" ) // database keys diff --git a/libs/tendermint/state/state_ibc_adapter.go b/libs/tendermint/state/state_ibc_adapter.go index 74e503e51..aaa14e3e9 100644 --- a/libs/tendermint/state/state_ibc_adapter.go +++ b/libs/tendermint/state/state_ibc_adapter.go @@ -1,7 +1,7 @@ package state import ( - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/version" ) func (v Version) UpgradeToIBCVersion() Version { diff --git a/libs/tendermint/state/state_test.go b/libs/tendermint/state/state_test.go index 8259aa0ac..dd37bff61 100644 --- a/libs/tendermint/state/state_test.go +++ b/libs/tendermint/state/state_test.go @@ -12,16 +12,16 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/tendermint/libs/rand" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) // setupTestCase does setup common to all test cases. diff --git a/libs/tendermint/state/store.go b/libs/tendermint/state/store.go index c4745f342..ed4405058 100644 --- a/libs/tendermint/state/store.go +++ b/libs/tendermint/state/store.go @@ -7,11 +7,11 @@ import ( "github.com/tendermint/go-amino" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/pkg/errors" ) diff --git a/libs/tendermint/state/store_test.go b/libs/tendermint/state/store_test.go index 2d2b8829c..a7bf524a6 100644 --- a/libs/tendermint/state/store_test.go +++ b/libs/tendermint/state/store_test.go @@ -8,18 +8,18 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/kv" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - cfg "github.com/okx/okbchain/libs/tendermint/config" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) func TestStoreLoadValidators(t *testing.T) { diff --git a/libs/tendermint/state/test_common.go b/libs/tendermint/state/test_common.go index de3afbb9d..5f963c609 100644 --- a/libs/tendermint/state/test_common.go +++ b/libs/tendermint/state/test_common.go @@ -5,18 +5,18 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/iavl" - "github.com/okx/okbchain/libs/tendermint/libs/log" - - dbm "github.com/okx/okbchain/libs/tm-db" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/proxy" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/iavl" + "github.com/okx/brczero/libs/tendermint/libs/log" + + dbm "github.com/okx/brczero/libs/tm-db" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/proxy" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) var ( diff --git a/libs/tendermint/state/tx_filter.go b/libs/tendermint/state/tx_filter.go index 5ac81cdca..2387674c7 100644 --- a/libs/tendermint/state/tx_filter.go +++ b/libs/tendermint/state/tx_filter.go @@ -1,8 +1,8 @@ package state import ( - mempl "github.com/okx/okbchain/libs/tendermint/mempool" - "github.com/okx/okbchain/libs/tendermint/types" + mempl "github.com/okx/brczero/libs/tendermint/mempool" + "github.com/okx/brczero/libs/tendermint/types" ) // TxPreCheck returns a function to filter transactions before processing. diff --git a/libs/tendermint/state/tx_filter_test.go b/libs/tendermint/state/tx_filter_test.go index 0f4c0f64f..f1ce553fb 100644 --- a/libs/tendermint/state/tx_filter_test.go +++ b/libs/tendermint/state/tx_filter_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" ) func TestTxFilter(t *testing.T) { diff --git a/libs/tendermint/state/txindex/indexer.go b/libs/tendermint/state/txindex/indexer.go index 1a26c20d3..caa92da4c 100644 --- a/libs/tendermint/state/txindex/indexer.go +++ b/libs/tendermint/state/txindex/indexer.go @@ -4,8 +4,8 @@ import ( "context" "errors" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/types" ) // TxIndexer interface defines methods to index and search transactions. diff --git a/libs/tendermint/state/txindex/indexer_service.go b/libs/tendermint/state/txindex/indexer_service.go index 0be8a8b10..8af0145f1 100644 --- a/libs/tendermint/state/txindex/indexer_service.go +++ b/libs/tendermint/state/txindex/indexer_service.go @@ -3,10 +3,10 @@ package txindex import ( "context" - "github.com/okx/okbchain/libs/tendermint/libs/service" - "github.com/okx/okbchain/libs/tendermint/state/indexer" + "github.com/okx/brczero/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/state/indexer" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/state/txindex/indexer_service_test.go b/libs/tendermint/state/txindex/indexer_service_test.go index c0a7b8c3d..40de29d8f 100644 --- a/libs/tendermint/state/txindex/indexer_service_test.go +++ b/libs/tendermint/state/txindex/indexer_service_test.go @@ -4,18 +4,18 @@ import ( "testing" "time" - blockindexer "github.com/okx/okbchain/libs/tendermint/state/indexer/block/kv" + blockindexer "github.com/okx/brczero/libs/tendermint/state/indexer/block/kv" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - db "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/state/txindex" - "github.com/okx/okbchain/libs/tendermint/state/txindex/kv" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/state/txindex" + "github.com/okx/brczero/libs/tendermint/state/txindex/kv" + "github.com/okx/brczero/libs/tendermint/types" ) func TestIndexerServiceIndexesBlocks(t *testing.T) { diff --git a/libs/tendermint/state/txindex/kv/kv.go b/libs/tendermint/state/txindex/kv/kv.go index 49413da30..7353f0736 100644 --- a/libs/tendermint/state/txindex/kv/kv.go +++ b/libs/tendermint/state/txindex/kv/kv.go @@ -11,12 +11,12 @@ import ( "github.com/pkg/errors" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - tmstring "github.com/okx/okbchain/libs/tendermint/libs/strings" - "github.com/okx/okbchain/libs/tendermint/state/txindex" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + tmstring "github.com/okx/brczero/libs/tendermint/libs/strings" + "github.com/okx/brczero/libs/tendermint/state/txindex" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/libs/tendermint/state/txindex/kv/kv_bench_test.go b/libs/tendermint/state/txindex/kv/kv_bench_test.go index c2f9579d1..9185d9de7 100644 --- a/libs/tendermint/state/txindex/kv/kv_bench_test.go +++ b/libs/tendermint/state/txindex/kv/kv_bench_test.go @@ -7,12 +7,12 @@ import ( "io/ioutil" "testing" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/types" ) func BenchmarkTxSearch(b *testing.B) { diff --git a/libs/tendermint/state/txindex/kv/kv_test.go b/libs/tendermint/state/txindex/kv/kv_test.go index adf3b5bd3..87ec63278 100644 --- a/libs/tendermint/state/txindex/kv/kv_test.go +++ b/libs/tendermint/state/txindex/kv/kv_test.go @@ -10,14 +10,14 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - db "github.com/okx/okbchain/libs/tm-db" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/state/txindex" - "github.com/okx/okbchain/libs/tendermint/types" + db "github.com/okx/brczero/libs/tm-db" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/state/txindex" + "github.com/okx/brczero/libs/tendermint/types" ) func TestTxIndex(t *testing.T) { diff --git a/libs/tendermint/state/txindex/null/null.go b/libs/tendermint/state/txindex/null/null.go index 4563a186b..fe725c719 100644 --- a/libs/tendermint/state/txindex/null/null.go +++ b/libs/tendermint/state/txindex/null/null.go @@ -4,9 +4,9 @@ import ( "context" "errors" - "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - "github.com/okx/okbchain/libs/tendermint/state/txindex" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + "github.com/okx/brczero/libs/tendermint/state/txindex" + "github.com/okx/brczero/libs/tendermint/types" ) var _ txindex.TxIndexer = (*TxIndex)(nil) diff --git a/libs/tendermint/state/validation.go b/libs/tendermint/state/validation.go index 1851d88c2..ddf5b2298 100644 --- a/libs/tendermint/state/validation.go +++ b/libs/tendermint/state/validation.go @@ -5,10 +5,10 @@ import ( "errors" "fmt" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/types" ) //----------------------------------------------------- diff --git a/libs/tendermint/state/validation_test.go b/libs/tendermint/state/validation_test.go index 57baa05c5..cf3b67a10 100644 --- a/libs/tendermint/state/validation_test.go +++ b/libs/tendermint/state/validation_test.go @@ -6,13 +6,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/mock" - sm "github.com/okx/okbchain/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/mock" + sm "github.com/okx/brczero/libs/tendermint/state" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) const validationTestsStopHeight int64 = 10 diff --git a/libs/tendermint/store/codec.go b/libs/tendermint/store/codec.go index 3416fc7c6..d890e64de 100644 --- a/libs/tendermint/store/codec.go +++ b/libs/tendermint/store/codec.go @@ -3,7 +3,7 @@ package store import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/store/store.go b/libs/tendermint/store/store.go index bffaddd97..8458b8adb 100644 --- a/libs/tendermint/store/store.go +++ b/libs/tendermint/store/store.go @@ -11,10 +11,10 @@ import ( "github.com/pkg/errors" - db "github.com/okx/okbchain/libs/tm-db" - dbm "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" ) /* diff --git a/libs/tendermint/store/store_test.go b/libs/tendermint/store/store_test.go index 532615eaa..8efe11069 100644 --- a/libs/tendermint/store/store_test.go +++ b/libs/tendermint/store/store_test.go @@ -11,18 +11,18 @@ import ( "testing" "time" - db "github.com/okx/okbchain/libs/tm-db" - dbm "github.com/okx/okbchain/libs/tm-db" + db "github.com/okx/brczero/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/log" - sm "github.com/okx/okbchain/libs/tendermint/state" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/log" + sm "github.com/okx/brczero/libs/tendermint/state" - "github.com/okx/okbchain/libs/tendermint/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) // A cleanupFunc cleans up any config / test files created for a particular diff --git a/libs/tendermint/test/app/grpc_client.go b/libs/tendermint/test/app/grpc_client.go index eed4b0465..a590a755e 100644 --- a/libs/tendermint/test/app/grpc_client.go +++ b/libs/tendermint/test/app/grpc_client.go @@ -9,7 +9,7 @@ import ( amino "github.com/tendermint/go-amino" - coregrpc "github.com/okx/okbchain/libs/tendermint/rpc/grpc" + coregrpc "github.com/okx/brczero/libs/tendermint/rpc/grpc" ) var grpcAddr = "tcp://localhost:36656" diff --git a/libs/tendermint/types/block.go b/libs/tendermint/types/block.go index f4539c5ed..f1e029357 100644 --- a/libs/tendermint/types/block.go +++ b/libs/tendermint/types/block.go @@ -10,23 +10,23 @@ import ( "time" gogotypes "github.com/gogo/protobuf/types" - "github.com/okx/okbchain/libs/system/trace" - "github.com/okx/okbchain/libs/tendermint/libs/compress" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/system/trace" + "github.com/okx/brczero/libs/tendermint/libs/compress" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" "github.com/tendermint/go-amino" "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/libs/bits" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" - tmversion "github.com/okx/okbchain/libs/tendermint/proto/version" - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/libs/bits" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" + tmversion "github.com/okx/brczero/libs/tendermint/proto/version" + "github.com/okx/brczero/libs/tendermint/version" ) const ( diff --git a/libs/tendermint/types/block_ibc.go b/libs/tendermint/types/block_ibc.go index e6dd47f93..c58a853c4 100644 --- a/libs/tendermint/types/block_ibc.go +++ b/libs/tendermint/types/block_ibc.go @@ -1,7 +1,7 @@ package types import ( - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" ) func (sh SignedHeader) ValidateBasicForIBC(chainID string) error { diff --git a/libs/tendermint/types/block_test.go b/libs/tendermint/types/block_test.go index 8038e8dd3..4e054f751 100644 --- a/libs/tendermint/types/block_test.go +++ b/libs/tendermint/types/block_test.go @@ -19,14 +19,14 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/libs/bits" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/libs/bits" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/version" ) func TestMain(m *testing.M) { diff --git a/libs/tendermint/types/canonical.go b/libs/tendermint/types/canonical.go index a982431ab..b5134e72f 100644 --- a/libs/tendermint/types/canonical.go +++ b/libs/tendermint/types/canonical.go @@ -3,8 +3,8 @@ package types import ( "time" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) // Canonical* wraps the structs in types for amino encoding them for use in SignBytes / the Signable interface. diff --git a/libs/tendermint/types/codec.go b/libs/tendermint/types/codec.go index ab5526053..5a5727ad4 100644 --- a/libs/tendermint/types/codec.go +++ b/libs/tendermint/types/codec.go @@ -3,7 +3,7 @@ package types import ( amino "github.com/tendermint/go-amino" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" ) var cdc = amino.NewCodec() diff --git a/libs/tendermint/types/db.go b/libs/tendermint/types/db.go index b0d32edf2..fcc064739 100644 --- a/libs/tendermint/types/db.go +++ b/libs/tendermint/types/db.go @@ -1,6 +1,6 @@ package types -import dbm "github.com/okx/okbchain/libs/tm-db" +import dbm "github.com/okx/brczero/libs/tm-db" // DBBackend This is set at compile time. var DBBackend = string(dbm.GoLevelDBBackend) diff --git a/libs/tendermint/types/deltas.go b/libs/tendermint/types/deltas.go index f684b347c..61fce2825 100644 --- a/libs/tendermint/types/deltas.go +++ b/libs/tendermint/types/deltas.go @@ -4,11 +4,11 @@ import ( "bytes" "fmt" "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/libs/iavl" + "github.com/okx/brczero/libs/iavl" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/libs/compress" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/libs/compress" "github.com/tendermint/go-amino" ) diff --git a/libs/tendermint/types/deltas_test.go b/libs/tendermint/types/deltas_test.go index 499f46b89..5abb846a8 100644 --- a/libs/tendermint/types/deltas_test.go +++ b/libs/tendermint/types/deltas_test.go @@ -3,7 +3,7 @@ package types import ( "bytes" "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/libs/iavl" + "github.com/okx/brczero/libs/iavl" "math" "testing" "time" diff --git a/libs/tendermint/types/encoding_helper.go b/libs/tendermint/types/encoding_helper.go index 21e754fbd..44cd6ac6f 100644 --- a/libs/tendermint/types/encoding_helper.go +++ b/libs/tendermint/types/encoding_helper.go @@ -2,9 +2,9 @@ package types import ( //gogotypes "github.com/gogo/protobuf/types" - //"github.com/okx/okbchain/libs/tendermint/libs/bytes" + //"github.com/okx/brczero/libs/tendermint/libs/bytes" gogotypes "github.com/gogo/protobuf/types" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/bytes" ) // cdcEncode returns nil if the input is nil, otherwise returns diff --git a/libs/tendermint/types/event_bus.go b/libs/tendermint/types/event_bus.go index 6df8b2f9e..449037ebf 100644 --- a/libs/tendermint/types/event_bus.go +++ b/libs/tendermint/types/event_bus.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - "github.com/okx/okbchain/libs/tendermint/libs/service" + "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + "github.com/okx/brczero/libs/tendermint/libs/service" ) const defaultCapacity = 0 diff --git a/libs/tendermint/types/event_bus_test.go b/libs/tendermint/types/event_bus_test.go index d7c7883d2..61c36c0a4 100644 --- a/libs/tendermint/types/event_bus_test.go +++ b/libs/tendermint/types/event_bus_test.go @@ -10,11 +10,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/kv" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - tmquery "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/kv" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + tmquery "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) func TestEventBusPublishEventTx(t *testing.T) { diff --git a/libs/tendermint/types/events.go b/libs/tendermint/types/events.go index 554092f24..129a8383c 100644 --- a/libs/tendermint/types/events.go +++ b/libs/tendermint/types/events.go @@ -5,9 +5,9 @@ import ( amino "github.com/tendermint/go-amino" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmpubsub "github.com/okx/okbchain/libs/tendermint/libs/pubsub" - tmquery "github.com/okx/okbchain/libs/tendermint/libs/pubsub/query" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmpubsub "github.com/okx/brczero/libs/tendermint/libs/pubsub" + tmquery "github.com/okx/brczero/libs/tendermint/libs/pubsub/query" ) // Reserved event types (alphabetically sorted). diff --git a/libs/tendermint/types/events_cm40.go b/libs/tendermint/types/events_cm40.go index 6a72c8084..4bb286cf9 100644 --- a/libs/tendermint/types/events_cm40.go +++ b/libs/tendermint/types/events_cm40.go @@ -1,7 +1,7 @@ package types import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) type CM40EventDataNewBlock struct { diff --git a/libs/tendermint/types/evidence.go b/libs/tendermint/types/evidence.go index d050fb74e..f33e78154 100644 --- a/libs/tendermint/types/evidence.go +++ b/libs/tendermint/types/evidence.go @@ -9,12 +9,12 @@ import ( "github.com/pkg/errors" amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto" - cryptoenc "github.com/okx/okbchain/libs/tendermint/crypto/encoding" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" + "github.com/okx/brczero/libs/tendermint/crypto" + cryptoenc "github.com/okx/brczero/libs/tendermint/crypto/encoding" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" ) const ( diff --git a/libs/tendermint/types/evidence_test.go b/libs/tendermint/types/evidence_test.go index 709b53bc4..1dd580729 100644 --- a/libs/tendermint/types/evidence_test.go +++ b/libs/tendermint/types/evidence_test.go @@ -5,14 +5,14 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) type voteData struct { diff --git a/libs/tendermint/types/from.go b/libs/tendermint/types/from.go index fb92bb30f..75a5e70a6 100644 --- a/libs/tendermint/types/from.go +++ b/libs/tendermint/types/from.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/tendermint/proto/version" + "github.com/okx/brczero/libs/tendermint/proto/version" ) func (e CM40EventDataNewBlock) From(block EventDataNewBlock) CM40EventDataNewBlock { diff --git a/libs/tendermint/types/genesis.go b/libs/tendermint/types/genesis.go index 743d64b88..19db1b1ba 100644 --- a/libs/tendermint/types/genesis.go +++ b/libs/tendermint/types/genesis.go @@ -9,10 +9,10 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/crypto" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) const ( diff --git a/libs/tendermint/types/genesis_test.go b/libs/tendermint/types/genesis_test.go index 57c3db903..5d9544b26 100644 --- a/libs/tendermint/types/genesis_test.go +++ b/libs/tendermint/types/genesis_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) func TestGenesisBad(t *testing.T) { diff --git a/libs/tendermint/types/ibc.go b/libs/tendermint/types/ibc.go index f61b9d9d3..511aaf5c4 100644 --- a/libs/tendermint/types/ibc.go +++ b/libs/tendermint/types/ibc.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/tendermint/libs/protoio" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" + "github.com/okx/brczero/libs/tendermint/libs/protoio" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" ) // CanonicalizeVote transforms the given Proposal to a CanonicalProposal. diff --git a/libs/tendermint/types/ibc_adapter.go b/libs/tendermint/types/ibc_adapter.go index 25f63419b..d9f17544d 100644 --- a/libs/tendermint/types/ibc_adapter.go +++ b/libs/tendermint/types/ibc_adapter.go @@ -4,13 +4,13 @@ import ( "sync" "time" - "github.com/okx/okbchain/libs/tendermint/version" + "github.com/okx/brczero/libs/tendermint/version" - ce "github.com/okx/okbchain/libs/tendermint/crypto/encoding" - "github.com/okx/okbchain/libs/tendermint/libs/bits" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" - tmversion "github.com/okx/okbchain/libs/tendermint/proto/version" + ce "github.com/okx/brczero/libs/tendermint/crypto/encoding" + "github.com/okx/brczero/libs/tendermint/libs/bits" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" + tmversion "github.com/okx/brczero/libs/tendermint/proto/version" ) type CM40Block struct { diff --git a/libs/tendermint/types/milestone.go b/libs/tendermint/types/milestone.go index 333b88bca..c17b4cd86 100644 --- a/libs/tendermint/types/milestone.go +++ b/libs/tendermint/types/milestone.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" ) // Disable followings after milestoneMercuryHeight diff --git a/libs/tendermint/types/params.go b/libs/tendermint/types/params.go index ae6795c9d..23dd5c1fa 100644 --- a/libs/tendermint/types/params.go +++ b/libs/tendermint/types/params.go @@ -5,9 +5,9 @@ import ( "github.com/pkg/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmstrings "github.com/okx/okbchain/libs/tendermint/libs/strings" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmstrings "github.com/okx/brczero/libs/tendermint/libs/strings" ) const ( diff --git a/libs/tendermint/types/params_test.go b/libs/tendermint/types/params_test.go index d23360682..c1662b433 100644 --- a/libs/tendermint/types/params_test.go +++ b/libs/tendermint/types/params_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) var ( diff --git a/libs/tendermint/types/part_set.go b/libs/tendermint/types/part_set.go index 12611cbb1..2b8e3ddb3 100644 --- a/libs/tendermint/types/part_set.go +++ b/libs/tendermint/types/part_set.go @@ -10,11 +10,11 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/libs/bits" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/libs/bits" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" ) var ( diff --git a/libs/tendermint/types/part_set_test.go b/libs/tendermint/types/part_set_test.go index a403190eb..0339b69bb 100644 --- a/libs/tendermint/types/part_set_test.go +++ b/libs/tendermint/types/part_set_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) const ( diff --git a/libs/tendermint/types/priv_validator.go b/libs/tendermint/types/priv_validator.go index 704760a47..7ecc74ea6 100644 --- a/libs/tendermint/types/priv_validator.go +++ b/libs/tendermint/types/priv_validator.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" ) // PrivValidator defines the functionality of a local Tendermint validator diff --git a/libs/tendermint/types/proposal.go b/libs/tendermint/types/proposal.go index ae90c37f0..94a4601c2 100644 --- a/libs/tendermint/types/proposal.go +++ b/libs/tendermint/types/proposal.go @@ -5,9 +5,9 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) var ( diff --git a/libs/tendermint/types/proposal_test.go b/libs/tendermint/types/proposal_test.go index cd2db4c6a..45d25b1d4 100644 --- a/libs/tendermint/types/proposal_test.go +++ b/libs/tendermint/types/proposal_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) var testProposal *Proposal diff --git a/libs/tendermint/types/proto3_test.go b/libs/tendermint/types/proto3_test.go index 513e9405f..669416693 100644 --- a/libs/tendermint/types/proto3_test.go +++ b/libs/tendermint/types/proto3_test.go @@ -7,7 +7,7 @@ import ( "github.com/golang/protobuf/proto" // nolint: staticcheck // still used by gogoproto "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/libs/tendermint/types/proto3" + "github.com/okx/brczero/libs/tendermint/types/proto3" ) func TestProto3Compatibility(t *testing.T) { diff --git a/libs/tendermint/types/protobuf.go b/libs/tendermint/types/protobuf.go index 3c728c682..385652ab0 100644 --- a/libs/tendermint/types/protobuf.go +++ b/libs/tendermint/types/protobuf.go @@ -5,11 +5,11 @@ import ( "reflect" "time" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/crypto/sr25519" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/sr25519" ) //------------------------------------------------------- diff --git a/libs/tendermint/types/protobuf_test.go b/libs/tendermint/types/protobuf_test.go index 327832b4c..477951552 100644 --- a/libs/tendermint/types/protobuf_test.go +++ b/libs/tendermint/types/protobuf_test.go @@ -10,11 +10,11 @@ import ( amino "github.com/tendermint/go-amino" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/version" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/version" ) func TestABCIPubKey(t *testing.T) { diff --git a/libs/tendermint/types/results.go b/libs/tendermint/types/results.go index 023377918..0adb01ada 100644 --- a/libs/tendermint/types/results.go +++ b/libs/tendermint/types/results.go @@ -3,10 +3,10 @@ package types import ( gobytes "bytes" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/bytes" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" "github.com/tendermint/go-amino" ) diff --git a/libs/tendermint/types/results_test.go b/libs/tendermint/types/results_test.go index e165dba75..ead928819 100644 --- a/libs/tendermint/types/results_test.go +++ b/libs/tendermint/types/results_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) func TestABCIResults(t *testing.T) { diff --git a/libs/tendermint/types/signable.go b/libs/tendermint/types/signable.go index 301ce7afb..8269d64fb 100644 --- a/libs/tendermint/types/signable.go +++ b/libs/tendermint/types/signable.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" ) var ( diff --git a/libs/tendermint/types/tx.go b/libs/tendermint/types/tx.go index d72693833..86687cb97 100644 --- a/libs/tendermint/types/tx.go +++ b/libs/tendermint/types/tx.go @@ -10,11 +10,11 @@ import ( "github.com/ethereum/go-ethereum/rlp" "github.com/tendermint/go-amino" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/etherhash" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/etherhash" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" ) // Tx is an arbitrary byte array. diff --git a/libs/tendermint/types/tx_test.go b/libs/tendermint/types/tx_test.go index f9a886b54..81bb271c3 100644 --- a/libs/tendermint/types/tx_test.go +++ b/libs/tendermint/types/tx_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/assert" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - ctest "github.com/okx/okbchain/libs/tendermint/libs/test" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + ctest "github.com/okx/brczero/libs/tendermint/libs/test" ) func makeTxs(cnt, size int) Txs { diff --git a/libs/tendermint/types/validation.go b/libs/tendermint/types/validation.go index 68d8839aa..6aee43e9e 100644 --- a/libs/tendermint/types/validation.go +++ b/libs/tendermint/types/validation.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) // ValidateTime does a basic time validation ensuring time does not drift too diff --git a/libs/tendermint/types/validator.go b/libs/tendermint/types/validator.go index 905723b84..95159c090 100644 --- a/libs/tendermint/types/validator.go +++ b/libs/tendermint/types/validator.go @@ -6,10 +6,10 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/tendermint/crypto" - ce "github.com/okx/okbchain/libs/tendermint/crypto/encoding" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" + "github.com/okx/brczero/libs/tendermint/crypto" + ce "github.com/okx/brczero/libs/tendermint/crypto/encoding" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" ) // Volatile state for each Validator diff --git a/libs/tendermint/types/validator_set.go b/libs/tendermint/types/validator_set.go index d1640948e..c64b583ff 100644 --- a/libs/tendermint/types/validator_set.go +++ b/libs/tendermint/types/validator_set.go @@ -10,9 +10,9 @@ import ( "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" ) const ( diff --git a/libs/tendermint/types/validator_set_ibc.go b/libs/tendermint/types/validator_set_ibc.go index 43a29fac4..fa9b4cd8b 100644 --- a/libs/tendermint/types/validator_set_ibc.go +++ b/libs/tendermint/types/validator_set_ibc.go @@ -3,8 +3,8 @@ package types import ( "bytes" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" ) func (vals *ValidatorSet) IBCVerifyCommitLightTrusting(chainID string, blockID BlockID, diff --git a/libs/tendermint/types/validator_set_test.go b/libs/tendermint/types/validator_set_test.go index 5f80d6817..b96c4613a 100644 --- a/libs/tendermint/types/validator_set_test.go +++ b/libs/tendermint/types/validator_set_test.go @@ -13,10 +13,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - tmmath "github.com/okx/okbchain/libs/tendermint/libs/math" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + tmmath "github.com/okx/brczero/libs/tendermint/libs/math" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" ) func TestValidatorSetBasic(t *testing.T) { diff --git a/libs/tendermint/types/validator_test.go b/libs/tendermint/types/validator_test.go index 2daaf4751..cf7eb8719 100644 --- a/libs/tendermint/types/validator_test.go +++ b/libs/tendermint/types/validator_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" ) diff --git a/libs/tendermint/types/vote.go b/libs/tendermint/types/vote.go index 6fbbee799..9efe4be74 100644 --- a/libs/tendermint/types/vote.go +++ b/libs/tendermint/types/vote.go @@ -8,9 +8,9 @@ import ( "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - tmproto "github.com/okx/okbchain/libs/tendermint/proto/types" + "github.com/okx/brczero/libs/tendermint/crypto" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + tmproto "github.com/okx/brczero/libs/tendermint/proto/types" ) const ( diff --git a/libs/tendermint/types/vote_set.go b/libs/tendermint/types/vote_set.go index 15843b09d..951c81273 100644 --- a/libs/tendermint/types/vote_set.go +++ b/libs/tendermint/types/vote_set.go @@ -3,13 +3,13 @@ package types import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/automation" + "github.com/okx/brczero/libs/tendermint/libs/automation" "strings" "sync" "github.com/pkg/errors" - "github.com/okx/okbchain/libs/tendermint/libs/bits" + "github.com/okx/brczero/libs/tendermint/libs/bits" ) const ( diff --git a/libs/tendermint/types/vote_set_test.go b/libs/tendermint/types/vote_set_test.go index fe0947e64..c1acc4828 100644 --- a/libs/tendermint/types/vote_set_test.go +++ b/libs/tendermint/types/vote_set_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmrand "github.com/okx/okbchain/libs/tendermint/libs/rand" - tmtime "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/crypto" + tmrand "github.com/okx/brczero/libs/tendermint/libs/rand" + tmtime "github.com/okx/brczero/libs/tendermint/types/time" ) // NOTE: privValidators are in order diff --git a/libs/tendermint/types/vote_test.go b/libs/tendermint/types/vote_test.go index 96a1b7083..633a67f1b 100644 --- a/libs/tendermint/types/vote_test.go +++ b/libs/tendermint/types/vote_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" ) func examplePrevote() *Vote { diff --git a/libs/tm-db/boltdb.go b/libs/tm-db/boltdb.go index b098edfd7..ca4839a8e 100644 --- a/libs/tm-db/boltdb.go +++ b/libs/tm-db/boltdb.go @@ -8,7 +8,7 @@ import ( "os" "path/filepath" - "github.com/okx/okbchain/libs/tm-db/common" + "github.com/okx/brczero/libs/tm-db/common" "github.com/pkg/errors" "go.etcd.io/bbolt" ) diff --git a/libs/tm-db/cleveldb.go b/libs/tm-db/cleveldb.go index a87d5dc21..480ca3452 100644 --- a/libs/tm-db/cleveldb.go +++ b/libs/tm-db/cleveldb.go @@ -8,7 +8,7 @@ import ( "path/filepath" "github.com/jmhodges/levigo" - "github.com/okx/okbchain/libs/tm-db/common" + "github.com/okx/brczero/libs/tm-db/common" ) func init() { diff --git a/libs/tm-db/memdb.go b/libs/tm-db/memdb.go index ee19cdc21..60f107081 100644 --- a/libs/tm-db/memdb.go +++ b/libs/tm-db/memdb.go @@ -6,7 +6,7 @@ import ( "sync" "github.com/google/btree" - "github.com/okx/okbchain/libs/tm-db/common" + "github.com/okx/brczero/libs/tm-db/common" ) const ( diff --git a/libs/tm-db/remotedb/batch.go b/libs/tm-db/remotedb/batch.go index 11a1b80b8..33ccc250a 100644 --- a/libs/tm-db/remotedb/batch.go +++ b/libs/tm-db/remotedb/batch.go @@ -3,8 +3,8 @@ package remotedb import ( "github.com/pkg/errors" - db "github.com/okx/okbchain/libs/tm-db" - protodb "github.com/okx/okbchain/libs/tm-db/remotedb/proto" + db "github.com/okx/brczero/libs/tm-db" + protodb "github.com/okx/brczero/libs/tm-db/remotedb/proto" ) type batch struct { diff --git a/libs/tm-db/remotedb/grpcdb/client.go b/libs/tm-db/remotedb/grpcdb/client.go index 9c5a4e594..5d4a4e94c 100644 --- a/libs/tm-db/remotedb/grpcdb/client.go +++ b/libs/tm-db/remotedb/grpcdb/client.go @@ -4,7 +4,7 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials" - protodb "github.com/okx/okbchain/libs/tm-db/remotedb/proto" + protodb "github.com/okx/brczero/libs/tm-db/remotedb/proto" ) // NewClient creates a gRPC client connected to the bound gRPC server at serverAddr. diff --git a/libs/tm-db/remotedb/grpcdb/example_test.go b/libs/tm-db/remotedb/grpcdb/example_test.go index 60cae1af0..cbcf579a9 100644 --- a/libs/tm-db/remotedb/grpcdb/example_test.go +++ b/libs/tm-db/remotedb/grpcdb/example_test.go @@ -5,8 +5,8 @@ import ( "context" "log" - grpcdb "github.com/okx/okbchain/libs/tm-db/remotedb/grpcdb" - protodb "github.com/okx/okbchain/libs/tm-db/remotedb/proto" + grpcdb "github.com/okx/brczero/libs/tm-db/remotedb/grpcdb" + protodb "github.com/okx/brczero/libs/tm-db/remotedb/proto" ) func Example() { diff --git a/libs/tm-db/remotedb/grpcdb/server.go b/libs/tm-db/remotedb/grpcdb/server.go index 3c6d0cdbd..e179095ed 100644 --- a/libs/tm-db/remotedb/grpcdb/server.go +++ b/libs/tm-db/remotedb/grpcdb/server.go @@ -9,8 +9,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/credentials" - db "github.com/okx/okbchain/libs/tm-db" - protodb "github.com/okx/okbchain/libs/tm-db/remotedb/proto" + db "github.com/okx/brczero/libs/tm-db" + protodb "github.com/okx/brczero/libs/tm-db/remotedb/proto" ) // ListenAndServe is a blocking function that sets up a gRPC based diff --git a/libs/tm-db/remotedb/iterator.go b/libs/tm-db/remotedb/iterator.go index 0acbf5b02..82e555061 100644 --- a/libs/tm-db/remotedb/iterator.go +++ b/libs/tm-db/remotedb/iterator.go @@ -3,8 +3,8 @@ package remotedb import ( "fmt" - db "github.com/okx/okbchain/libs/tm-db" - protodb "github.com/okx/okbchain/libs/tm-db/remotedb/proto" + db "github.com/okx/brczero/libs/tm-db" + protodb "github.com/okx/brczero/libs/tm-db/remotedb/proto" ) func makeIterator(dic protodb.DB_IteratorClient) db.Iterator { diff --git a/libs/tm-db/remotedb/remotedb.go b/libs/tm-db/remotedb/remotedb.go index 7dcc25cf2..61027dc53 100644 --- a/libs/tm-db/remotedb/remotedb.go +++ b/libs/tm-db/remotedb/remotedb.go @@ -4,12 +4,12 @@ import ( "context" "fmt" - "github.com/okx/okbchain/libs/tm-db/common" + "github.com/okx/brczero/libs/tm-db/common" "github.com/pkg/errors" - db "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/libs/tm-db/remotedb/grpcdb" - protodb "github.com/okx/okbchain/libs/tm-db/remotedb/proto" + db "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/libs/tm-db/remotedb/grpcdb" + protodb "github.com/okx/brczero/libs/tm-db/remotedb/proto" ) type RemoteDB struct { diff --git a/libs/tm-db/remotedb/remotedb_test.go b/libs/tm-db/remotedb/remotedb_test.go index 8fa4c61a1..e94790028 100644 --- a/libs/tm-db/remotedb/remotedb_test.go +++ b/libs/tm-db/remotedb/remotedb_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tm-db/remotedb" - "github.com/okx/okbchain/libs/tm-db/remotedb/grpcdb" + "github.com/okx/brczero/libs/tm-db/remotedb" + "github.com/okx/brczero/libs/tm-db/remotedb/grpcdb" ) func TestRemoteDB(t *testing.T) { diff --git a/networks/local/node/wrapper.sh b/networks/local/node/wrapper.sh index 1dd583324..ced6e30dd 100755 --- a/networks/local/node/wrapper.sh +++ b/networks/local/node/wrapper.sh @@ -4,7 +4,7 @@ ## Input parameters ## ID=${ID:-0} -LOG=${LOG:-okbchaind.log} +LOG=${LOG:-brczerod.log} ## ## Run binary with all parameters @@ -12,8 +12,8 @@ LOG=${LOG:-okbchaind.log} export OKBCHAINDHOME="/okbchaind/node${ID}/okbchaind" if [ -d "$(dirname "${OKBCHAINDHOME}"/"${LOG}")" ]; then - okbchaind --chain-id okbchain-1 --home "${OKBCHAINDHOME}" "$@" | tee "${OKBCHAINDHOME}/${LOG}" + brczerod --chain-id okbchain-1 --home "${OKBCHAINDHOME}" "$@" | tee "${OKBCHAINDHOME}/${LOG}" else - okbchaind --chain-id okbchain-1 --home "${OKBCHAINDHOME}" "$@" + brczerod --chain-id okbchain-1 --home "${OKBCHAINDHOME}" "$@" fi diff --git a/x/common/coin_test.go b/x/common/coin_test.go index 6efbeae2e..20fee5057 100644 --- a/x/common/coin_test.go +++ b/x/common/coin_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/x/common/consensus.go b/x/common/consensus.go index 4a797cff7..9f51c54a5 100644 --- a/x/common/consensus.go +++ b/x/common/consensus.go @@ -3,7 +3,7 @@ package common import ( "fmt" - "github.com/okx/okbchain/x/params/subspace" + "github.com/okx/brczero/x/params/subspace" ) type ConsensusType string diff --git a/x/common/const.go b/x/common/const.go index 6d2380263..13d539a78 100644 --- a/x/common/const.go +++ b/x/common/const.go @@ -1,7 +1,7 @@ package common import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // const diff --git a/x/common/errors.go b/x/common/errors.go index f44817149..d0c097b9a 100644 --- a/x/common/errors.go +++ b/x/common/errors.go @@ -4,10 +4,10 @@ import ( "encoding/json" "fmt" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // const uint32 diff --git a/x/common/monitor/port.go b/x/common/monitor/port.go index 937869ac6..4556e45df 100644 --- a/x/common/monitor/port.go +++ b/x/common/monitor/port.go @@ -3,7 +3,7 @@ package monitor import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/server" + "github.com/okx/brczero/libs/cosmos-sdk/server" "github.com/spf13/viper" "os/exec" "strconv" diff --git a/x/common/monitor/tendermint.go b/x/common/monitor/tendermint.go index d797e970d..4c2dfb0e5 100644 --- a/x/common/monitor/tendermint.go +++ b/x/common/monitor/tendermint.go @@ -2,9 +2,9 @@ package monitor import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - tmcli "github.com/okx/okbchain/libs/tendermint/rpc/client" - tmhttp "github.com/okx/okbchain/libs/tendermint/rpc/client/http" + "github.com/okx/brczero/libs/cosmos-sdk/server" + tmcli "github.com/okx/brczero/libs/tendermint/rpc/client" + tmhttp "github.com/okx/brczero/libs/tendermint/rpc/client/http" "github.com/spf13/viper" "strings" "sync" diff --git a/x/common/perf/performance.go b/x/common/perf/performance.go index a367b260e..6d062e7b9 100644 --- a/x/common/perf/performance.go +++ b/x/common/perf/performance.go @@ -2,9 +2,9 @@ package perf import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/common/monitor" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/common/monitor" "sync" "time" ) diff --git a/x/common/proto/keeper.go b/x/common/proto/keeper.go index a13143607..17390ba90 100644 --- a/x/common/proto/keeper.go +++ b/x/common/proto/keeper.go @@ -2,8 +2,8 @@ package proto import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ProtocolDefinition is the struct of app-upgrade detail info diff --git a/x/common/proto/keeper_test.go b/x/common/proto/keeper_test.go index e903f4f6a..c07475007 100644 --- a/x/common/proto/keeper_test.go +++ b/x/common/proto/keeper_test.go @@ -3,7 +3,7 @@ package proto import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/x/common/proto/keys.go b/x/common/proto/keys.go index b6728996e..8c7b7a562 100644 --- a/x/common/proto/keys.go +++ b/x/common/proto/keys.go @@ -1,7 +1,7 @@ package proto import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // keys diff --git a/x/common/proto/test_common.go b/x/common/proto/test_common.go index b03c466bc..feefe997c 100644 --- a/x/common/proto/test_common.go +++ b/x/common/proto/test_common.go @@ -4,11 +4,11 @@ import ( "os" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/x/common/rest_v2.go b/x/common/rest_v2.go index c151b0546..978f27e10 100644 --- a/x/common/rest_v2.go +++ b/x/common/rest_v2.go @@ -8,7 +8,7 @@ import ( "strconv" jsoniter "github.com/json-iterator/go" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) // const diff --git a/x/common/syscoin_test.go b/x/common/syscoin_test.go index 8f82ea692..a0c9281e2 100644 --- a/x/common/syscoin_test.go +++ b/x/common/syscoin_test.go @@ -1,12 +1,12 @@ package common import ( - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "github.com/stretchr/testify/require" "strings" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ---------------------------------------------------------------------------- diff --git a/x/common/syscoins_test.go b/x/common/syscoins_test.go index f3ad074cf..3c006a366 100644 --- a/x/common/syscoins_test.go +++ b/x/common/syscoins_test.go @@ -1,12 +1,12 @@ package common import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" "github.com/stretchr/testify/assert" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/x/common/util.go b/x/common/util.go index 292dc5a15..f7413a78a 100644 --- a/x/common/util.go +++ b/x/common/util.go @@ -14,14 +14,14 @@ import ( "testing" "time" - "github.com/okx/okbchain/x/params/subspace" + "github.com/okx/brczero/x/params/subspace" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - apptypes "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + apptypes "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" ) const ( diff --git a/x/common/util_test.go b/x/common/util_test.go index 5180ec654..4702eb0e1 100644 --- a/x/common/util_test.go +++ b/x/common/util_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - apptypes "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + apptypes "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/abci.go b/x/distribution/abci.go index 3ce1d9c9b..f2b77833b 100644 --- a/x/distribution/abci.go +++ b/x/distribution/abci.go @@ -1,12 +1,12 @@ package distribution import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/common" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/keeper" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 c9f3b6da4..a96617931 100644 --- a/x/distribution/abci_test.go +++ b/x/distribution/abci_test.go @@ -3,8 +3,8 @@ package distribution import ( "testing" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/distribution/keeper" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/distribution/keeper" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/alias.go b/x/distribution/alias.go index 00ff616e6..b7db4a572 100644 --- a/x/distribution/alias.go +++ b/x/distribution/alias.go @@ -1,14 +1,14 @@ // nolint // autogenerated code using github.com/rigelrozanski/multitool // aliases generated for the following subdirectories: -// ALIASGEN: github.com/okx/okbchain/x/distribution/keeper -// ALIASGEN: github.com/okx/okbchain/x/distribution/types -// ALIASGEN: github.com/okx/okbchain/x/distribution/client +// ALIASGEN: github.com/okx/brczero/x/distribution/keeper +// ALIASGEN: github.com/okx/brczero/x/distribution/types +// ALIASGEN: github.com/okx/brczero/x/distribution/client package distribution import ( - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/distribution/types" ) const ( diff --git a/x/distribution/alias_distr_proposal.go b/x/distribution/alias_distr_proposal.go index a53a0169a..3db37a75b 100644 --- a/x/distribution/alias_distr_proposal.go +++ b/x/distribution/alias_distr_proposal.go @@ -1,12 +1,12 @@ // nolint // aliases generated for the following subdirectories: -// ALIASGEN: github.com/okx/okbchain/x/distribution/types -// ALIASGEN: github.com/okx/okbchain/x/distribution/client +// ALIASGEN: github.com/okx/brczero/x/distribution/types +// ALIASGEN: github.com/okx/brczero/x/distribution/client package distribution import ( - "github.com/okx/okbchain/x/distribution/client" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/client" + "github.com/okx/brczero/x/distribution/types" ) var ( diff --git a/x/distribution/client/cli/query.go b/x/distribution/client/cli/query.go index 4a2dce052..177e1b0d5 100644 --- a/x/distribution/client/cli/query.go +++ b/x/distribution/client/cli/query.go @@ -6,15 +6,15 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - - "github.com/okx/okbchain/x/distribution/client/common" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + + "github.com/okx/brczero/x/distribution/client/common" + "github.com/okx/brczero/x/distribution/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/distribution/client/cli/query_distr_proposal.go b/x/distribution/client/cli/query_distr_proposal.go index 6aa25698b..94206ee78 100644 --- a/x/distribution/client/cli/query_distr_proposal.go +++ b/x/distribution/client/cli/query_distr_proposal.go @@ -6,13 +6,13 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" - "github.com/okx/okbchain/x/distribution/client/common" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/client/common" + "github.com/okx/brczero/x/distribution/types" ) // GetCmdQueryDelegatorRewards implements the query delegator rewards command. diff --git a/x/distribution/client/cli/tx.go b/x/distribution/client/cli/tx.go index f795438fd..b15b124ac 100644 --- a/x/distribution/client/cli/tx.go +++ b/x/distribution/client/cli/tx.go @@ -7,18 +7,18 @@ import ( "os" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/distribution/client/common" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/distribution/client/common" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/gov" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/x/distribution/client/cli/tx_distr_proposal.go b/x/distribution/client/cli/tx_distr_proposal.go index 2edbdf50c..682053823 100644 --- a/x/distribution/client/cli/tx_distr_proposal.go +++ b/x/distribution/client/cli/tx_distr_proposal.go @@ -6,15 +6,15 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/gov" "github.com/spf13/cobra" ) diff --git a/x/distribution/client/cli/utils.go b/x/distribution/client/cli/utils.go index a21c5cc7e..357023885 100644 --- a/x/distribution/client/cli/utils.go +++ b/x/distribution/client/cli/utils.go @@ -3,8 +3,8 @@ package cli import ( "io/ioutil" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type ( diff --git a/x/distribution/client/cli/utils_distr_proposal.go b/x/distribution/client/cli/utils_distr_proposal.go index bde30ef5f..6bdf9a596 100644 --- a/x/distribution/client/cli/utils_distr_proposal.go +++ b/x/distribution/client/cli/utils_distr_proposal.go @@ -3,8 +3,8 @@ package cli import ( "io/ioutil" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type ( diff --git a/x/distribution/client/common/common.go b/x/distribution/client/common/common.go index bc467124e..b70d5e4ca 100644 --- a/x/distribution/client/common/common.go +++ b/x/distribution/client/common/common.go @@ -5,12 +5,12 @@ import ( "fmt" "os" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/distribution/types" - staking "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/distribution/types" + staking "github.com/okx/brczero/x/staking/types" ) // QueryParams actually queries distribution params diff --git a/x/distribution/client/common/common_distr_proposal.go b/x/distribution/client/common/common_distr_proposal.go index 6b1f069f1..92a5a6408 100644 --- a/x/distribution/client/common/common_distr_proposal.go +++ b/x/distribution/client/common/common_distr_proposal.go @@ -3,10 +3,10 @@ package common import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" ) // QueryDelegatorValidators returns delegator's list of validators diff --git a/x/distribution/client/proposal_handler.go b/x/distribution/client/proposal_handler.go index 31c13ed78..eef504f44 100644 --- a/x/distribution/client/proposal_handler.go +++ b/x/distribution/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okx/okbchain/x/distribution/client/cli" - "github.com/okx/okbchain/x/distribution/client/rest" - govclient "github.com/okx/okbchain/x/gov/client" + "github.com/okx/brczero/x/distribution/client/cli" + "github.com/okx/brczero/x/distribution/client/rest" + govclient "github.com/okx/brczero/x/gov/client" ) // param change proposal handler diff --git a/x/distribution/client/rest/query.go b/x/distribution/client/rest/query.go index 015805a6a..d1fadce37 100644 --- a/x/distribution/client/rest/query.go +++ b/x/distribution/client/rest/query.go @@ -6,13 +6,13 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" - comm "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/distribution/client/common" - "github.com/okx/okbchain/x/distribution/types" + comm "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/distribution/client/common" + "github.com/okx/brczero/x/distribution/types" ) 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 74b4d7873..77b9cebac 100644 --- a/x/distribution/client/rest/rest.go +++ b/x/distribution/client/rest/rest.go @@ -5,15 +5,15 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - - comm "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/gov" - govrest "github.com/okx/okbchain/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + + comm "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/gov" + govrest "github.com/okx/brczero/x/gov/client/rest" ) // RegisterRoutes register distribution REST routes. diff --git a/x/distribution/client/rest/rest_distr_proposal.go b/x/distribution/client/rest/rest_distr_proposal.go index de3c20489..35a3e2c53 100644 --- a/x/distribution/client/rest/rest_distr_proposal.go +++ b/x/distribution/client/rest/rest_distr_proposal.go @@ -3,15 +3,15 @@ package rest import ( "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - - comm "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/gov" - govrest "github.com/okx/okbchain/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + + comm "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/gov" + govrest "github.com/okx/brczero/x/gov/client/rest" ) // ChangeDistributionTypeProposalRESTHandler returns a ChangeDistributionTypeProposal that exposes the change distribution type REST handler with a given sub-route. diff --git a/x/distribution/client/rest/tx.go b/x/distribution/client/rest/tx.go index 7012c3d5a..2bdbcdeba 100644 --- a/x/distribution/client/rest/tx.go +++ b/x/distribution/client/rest/tx.go @@ -4,17 +4,17 @@ import ( "fmt" "net/http" - comm "github.com/okx/okbchain/x/common" + comm "github.com/okx/brczero/x/common" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/distribution/client/common" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/client/common" + "github.com/okx/brczero/x/distribution/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router, _ string) { diff --git a/x/distribution/client/rest/utils.go b/x/distribution/client/rest/utils.go index 9157d1e47..8a30a5218 100644 --- a/x/distribution/client/rest/utils.go +++ b/x/distribution/client/rest/utils.go @@ -1,8 +1,8 @@ package rest import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" ) type ( diff --git a/x/distribution/client/rest/utils_distr_proposal.go b/x/distribution/client/rest/utils_distr_proposal.go index be25b8f12..bf665ad57 100644 --- a/x/distribution/client/rest/utils_distr_proposal.go +++ b/x/distribution/client/rest/utils_distr_proposal.go @@ -1,8 +1,8 @@ package rest import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" ) type ( diff --git a/x/distribution/distribution_suit_test.go b/x/distribution/distribution_suit_test.go index 6d664c2e1..604db602d 100644 --- a/x/distribution/distribution_suit_test.go +++ b/x/distribution/distribution_suit_test.go @@ -4,12 +4,12 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) diff --git a/x/distribution/genesis.go b/x/distribution/genesis.go index 4ad1e10f5..20b464efe 100644 --- a/x/distribution/genesis.go +++ b/x/distribution/genesis.go @@ -3,9 +3,9 @@ package distribution import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" ) // InitGenesis sets distribution information for genesis diff --git a/x/distribution/genesis_test.go b/x/distribution/genesis_test.go index 2b85bfcb0..4e8cb0554 100644 --- a/x/distribution/genesis_test.go +++ b/x/distribution/genesis_test.go @@ -3,9 +3,9 @@ package distribution import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/handler.go b/x/distribution/handler.go index 493819549..5ae585fbb 100644 --- a/x/distribution/handler.go +++ b/x/distribution/handler.go @@ -1,10 +1,10 @@ package distribution import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/distribution/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/distribution/types" + govtypes "github.com/okx/brczero/x/gov/types" ) // NewHandler manages all distribution tx diff --git a/x/distribution/handler_distr_proposal.go b/x/distribution/handler_distr_proposal.go index 904828420..9a66ede09 100644 --- a/x/distribution/handler_distr_proposal.go +++ b/x/distribution/handler_distr_proposal.go @@ -1,9 +1,9 @@ package distribution import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/distribution/types" ) func handleMsgWithdrawDelegatorReward(ctx sdk.Context, msg types.MsgWithdrawDelegatorReward, k keeper.Keeper) (*sdk.Result, error) { diff --git a/x/distribution/handler_test.go b/x/distribution/handler_test.go index ade0dddda..7798e0e1d 100644 --- a/x/distribution/handler_test.go +++ b/x/distribution/handler_test.go @@ -3,14 +3,14 @@ package distribution import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking" - stakingtypes "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/staking" + stakingtypes "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) diff --git a/x/distribution/keeper/alias_functions.go b/x/distribution/keeper/alias_functions.go index fc7adf24a..2ea612631 100644 --- a/x/distribution/keeper/alias_functions.go +++ b/x/distribution/keeper/alias_functions.go @@ -1,10 +1,10 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" ) // GetDistributionAccount returns the distribution ModuleAccount diff --git a/x/distribution/keeper/allocation.go b/x/distribution/keeper/allocation.go index 02428a02d..96666416d 100644 --- a/x/distribution/keeper/allocation.go +++ b/x/distribution/keeper/allocation.go @@ -3,12 +3,12 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking/exported" - stakingexported "github.com/okx/okbchain/x/staking/exported" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/staking/exported" + stakingexported "github.com/okx/brczero/x/staking/exported" ) var ( diff --git a/x/distribution/keeper/allocation_distr_proposal.go b/x/distribution/keeper/allocation_distr_proposal.go index 65dc6f6b6..b317abbfd 100644 --- a/x/distribution/keeper/allocation_distr_proposal.go +++ b/x/distribution/keeper/allocation_distr_proposal.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/staking/exported" ) const ( diff --git a/x/distribution/keeper/allocation_distr_proposal_test.go b/x/distribution/keeper/allocation_distr_proposal_test.go index 67ff59de7..95b28e970 100644 --- a/x/distribution/keeper/allocation_distr_proposal_test.go +++ b/x/distribution/keeper/allocation_distr_proposal_test.go @@ -3,19 +3,19 @@ package keeper import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/allocation_test.go b/x/distribution/keeper/allocation_test.go index dae89e900..2eda462d5 100644 --- a/x/distribution/keeper/allocation_test.go +++ b/x/distribution/keeper/allocation_test.go @@ -5,12 +5,12 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/staking" ) func TestAllocateTokensToValidatorWithCommission(t *testing.T) { diff --git a/x/distribution/keeper/delegation.go b/x/distribution/keeper/delegation.go index 8afc194a7..18988e25f 100644 --- a/x/distribution/keeper/delegation.go +++ b/x/distribution/keeper/delegation.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" - stakingexported "github.com/okx/okbchain/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" + stakingexported "github.com/okx/brczero/x/staking/exported" ) // initialize starting info for a new delegation diff --git a/x/distribution/keeper/delegation_test.go b/x/distribution/keeper/delegation_test.go index b887b8c9c..34048c824 100644 --- a/x/distribution/keeper/delegation_test.go +++ b/x/distribution/keeper/delegation_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking" - stakingtypes "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/staking" + stakingtypes "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/hooks.go b/x/distribution/keeper/hooks.go index 03a45dc23..73e8d77df 100644 --- a/x/distribution/keeper/hooks.go +++ b/x/distribution/keeper/hooks.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - stakingtypes "github.com/okx/okbchain/x/staking/types" + stakingtypes "github.com/okx/brczero/x/staking/types" ) // Hooks is struct of keepers from other module diff --git a/x/distribution/keeper/hooks_distr_proposal.go b/x/distribution/keeper/hooks_distr_proposal.go index 300f7e458..1118fd087 100644 --- a/x/distribution/keeper/hooks_distr_proposal.go +++ b/x/distribution/keeper/hooks_distr_proposal.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" ) func (h Hooks) afterValidatorRemovedForDistributionProposal(ctx sdk.Context, _ sdk.ConsAddress, valAddr sdk.ValAddress) { diff --git a/x/distribution/keeper/hooks_distr_proposal_test.go b/x/distribution/keeper/hooks_distr_proposal_test.go index f54eecc5e..1c73e85d0 100644 --- a/x/distribution/keeper/hooks_distr_proposal_test.go +++ b/x/distribution/keeper/hooks_distr_proposal_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/hooks_test.go b/x/distribution/keeper/hooks_test.go index 6a7e33a49..54ebc84c3 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/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/invariants.go b/x/distribution/keeper/invariants.go index fe653f27b..20bc96c30 100644 --- a/x/distribution/keeper/invariants.go +++ b/x/distribution/keeper/invariants.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking/exported" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/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 0da8ff8d3..88fb09716 100644 --- a/x/distribution/keeper/invariants_test.go +++ b/x/distribution/keeper/invariants_test.go @@ -3,8 +3,8 @@ package keeper import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/keeper.go b/x/distribution/keeper/keeper.go index cd7fe2d93..c808f9628 100644 --- a/x/distribution/keeper/keeper.go +++ b/x/distribution/keeper/keeper.go @@ -3,12 +3,12 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/params" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" ) // Keeper of the distribution store diff --git a/x/distribution/keeper/keeper_distr_proposal.go b/x/distribution/keeper/keeper_distr_proposal.go index f9098c581..0c32ff118 100644 --- a/x/distribution/keeper/keeper_distr_proposal.go +++ b/x/distribution/keeper/keeper_distr_proposal.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" - govTypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" + govTypes "github.com/okx/brczero/x/gov/types" ) // withdraw rewards from a delegation diff --git a/x/distribution/keeper/keeper_test.go b/x/distribution/keeper/keeper_test.go index 88f1b384e..1ce49522c 100644 --- a/x/distribution/keeper/keeper_test.go +++ b/x/distribution/keeper/keeper_test.go @@ -3,8 +3,8 @@ package keeper import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/params.go b/x/distribution/keeper/params.go index c4775450d..029a64ee2 100644 --- a/x/distribution/keeper/params.go +++ b/x/distribution/keeper/params.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" ) // GetParams returns the total set of distribution parameters. diff --git a/x/distribution/keeper/params_distr_proposal.go b/x/distribution/keeper/params_distr_proposal.go index 2cffa1351..1f4be31ad 100644 --- a/x/distribution/keeper/params_distr_proposal.go +++ b/x/distribution/keeper/params_distr_proposal.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" ) func (k Keeper) GetDistributionType(ctx sdk.Context) (distrType uint32) { diff --git a/x/distribution/keeper/proposal_handler.go b/x/distribution/keeper/proposal_handler.go index 112f27c43..74c4832cb 100644 --- a/x/distribution/keeper/proposal_handler.go +++ b/x/distribution/keeper/proposal_handler.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" ) // HandleCommunityPoolSpendProposal is a handler for executing a passed community spend proposal diff --git a/x/distribution/keeper/proposal_handler_distr_proposal.go b/x/distribution/keeper/proposal_handler_distr_proposal.go index bf68114f4..1ee9c82c1 100644 --- a/x/distribution/keeper/proposal_handler_distr_proposal.go +++ b/x/distribution/keeper/proposal_handler_distr_proposal.go @@ -3,8 +3,8 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" ) // HandleChangeDistributionTypeProposal is a handler for executing a passed change distribution type proposal diff --git a/x/distribution/keeper/proposal_handler_test.go b/x/distribution/keeper/proposal_handler_test.go index e2727f9df..dbfc13394 100644 --- a/x/distribution/keeper/proposal_handler_test.go +++ b/x/distribution/keeper/proposal_handler_test.go @@ -3,8 +3,8 @@ package keeper import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/querier.go b/x/distribution/keeper/querier.go index b6088d902..564d002f2 100644 --- a/x/distribution/keeper/querier.go +++ b/x/distribution/keeper/querier.go @@ -1,12 +1,12 @@ package keeper import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - comm "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + comm "github.com/okx/brczero/x/common" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" ) // NewQuerier creates a querier for distribution REST endpoints diff --git a/x/distribution/keeper/querier_distr_proposal.go b/x/distribution/keeper/querier_distr_proposal.go index 4897deaef..1c158b199 100644 --- a/x/distribution/keeper/querier_distr_proposal.go +++ b/x/distribution/keeper/querier_distr_proposal.go @@ -3,12 +3,12 @@ package keeper import ( "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - comm "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + comm "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/distribution/types" ) func queryDelegationRewards(ctx sdk.Context, _ []string, req abci.RequestQuery, k Keeper) ([]byte, error) { diff --git a/x/distribution/keeper/querier_distr_proposal_test.go b/x/distribution/keeper/querier_distr_proposal_test.go index 8632a7076..588286cca 100644 --- a/x/distribution/keeper/querier_distr_proposal_test.go +++ b/x/distribution/keeper/querier_distr_proposal_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" ) diff --git a/x/distribution/keeper/querier_test.go b/x/distribution/keeper/querier_test.go index 39f16f24c..9c04f9d25 100644 --- a/x/distribution/keeper/querier_test.go +++ b/x/distribution/keeper/querier_test.go @@ -3,9 +3,9 @@ package keeper import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/distribution/types" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" ) diff --git a/x/distribution/keeper/store.go b/x/distribution/keeper/store.go index 3d4dc8c3c..93029503e 100644 --- a/x/distribution/keeper/store.go +++ b/x/distribution/keeper/store.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/types" ) // GetDelegatorWithdrawAddr returns the delegator withdraw address, defaulting to the delegator address diff --git a/x/distribution/keeper/store_distr_proposal.go b/x/distribution/keeper/store_distr_proposal.go index 19f8077ab..d5401245c 100644 --- a/x/distribution/keeper/store_distr_proposal.go +++ b/x/distribution/keeper/store_distr_proposal.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" ) // get the starting info associated with a delegator diff --git a/x/distribution/keeper/test_common.go b/x/distribution/keeper/test_common.go index 09ca6061a..466a7ec83 100644 --- a/x/distribution/keeper/test_common.go +++ b/x/distribution/keeper/test_common.go @@ -3,24 +3,24 @@ package keeper import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/keeper/test_common_distr_proposal.go b/x/distribution/keeper/test_common_distr_proposal.go index 6ef574174..e7471ce2b 100644 --- a/x/distribution/keeper/test_common_distr_proposal.go +++ b/x/distribution/keeper/test_common_distr_proposal.go @@ -3,11 +3,11 @@ package keeper import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" ) diff --git a/x/distribution/keeper/validator.go b/x/distribution/keeper/validator.go index 85151a7a9..275975d90 100644 --- a/x/distribution/keeper/validator.go +++ b/x/distribution/keeper/validator.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/exported" + "github.com/okx/brczero/x/staking/exported" ) // initialize rewards for a new validator diff --git a/x/distribution/keeper/validator_distr_proposal.go b/x/distribution/keeper/validator_distr_proposal.go index 65fe89d3a..d7daf8189 100644 --- a/x/distribution/keeper/validator_distr_proposal.go +++ b/x/distribution/keeper/validator_distr_proposal.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/staking/exported" ) func (k Keeper) initializeValidatorDistrProposal(ctx sdk.Context, val exported.ValidatorI) { diff --git a/x/distribution/module.go b/x/distribution/module.go index 7c75100cf..a7ca0d75c 100644 --- a/x/distribution/module.go +++ b/x/distribution/module.go @@ -2,21 +2,21 @@ package distribution import ( "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" "math/rand" "github.com/gorilla/mux" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/distribution/client/cli" - "github.com/okx/okbchain/x/distribution/client/rest" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/client/cli" + "github.com/okx/brczero/x/distribution/client/rest" + "github.com/okx/brczero/x/distribution/types" ) var ( diff --git a/x/distribution/module_test.go b/x/distribution/module_test.go index 07263be17..f7a4d82f3 100644 --- a/x/distribution/module_test.go +++ b/x/distribution/module_test.go @@ -3,10 +3,10 @@ package distribution import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/msg_convert.go b/x/distribution/msg_convert.go index 99e443d31..23ed55d5c 100644 --- a/x/distribution/msg_convert.go +++ b/x/distribution/msg_convert.go @@ -3,12 +3,12 @@ package distribution import ( "encoding/json" "errors" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/distribution/types" ) var ( diff --git a/x/distribution/msg_convert_test.go b/x/distribution/msg_convert_test.go index 5d4023180..06c3abdf0 100644 --- a/x/distribution/msg_convert_test.go +++ b/x/distribution/msg_convert_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/proposal_handler_distr_proposal_test.go b/x/distribution/proposal_handler_distr_proposal_test.go index d779cd554..69f99efca 100644 --- a/x/distribution/proposal_handler_distr_proposal_test.go +++ b/x/distribution/proposal_handler_distr_proposal_test.go @@ -3,10 +3,10 @@ package distribution import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/distribution/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/distribution/types" + govtypes "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/proposal_handler_test.go b/x/distribution/proposal_handler_test.go index a448f3a53..e4704466c 100644 --- a/x/distribution/proposal_handler_test.go +++ b/x/distribution/proposal_handler_test.go @@ -5,12 +5,12 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + govtypes "github.com/okx/brczero/x/gov/types" - "github.com/okx/okbchain/x/distribution/keeper" - "github.com/okx/okbchain/x/distribution/types" + "github.com/okx/brczero/x/distribution/keeper" + "github.com/okx/brczero/x/distribution/types" ) var ( diff --git a/x/distribution/types/codec.go b/x/distribution/types/codec.go index d669b2213..c24446d23 100644 --- a/x/distribution/types/codec.go +++ b/x/distribution/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" ) // RegisterCodec registers concrete types on codec codec diff --git a/x/distribution/types/delegator.go b/x/distribution/types/delegator.go index efe4846e0..00bd71c2e 100644 --- a/x/distribution/types/delegator.go +++ b/x/distribution/types/delegator.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // starting info for a delegator reward period diff --git a/x/distribution/types/errors.go b/x/distribution/types/errors.go index dcc6fa88c..072f8c4f6 100644 --- a/x/distribution/types/errors.go +++ b/x/distribution/types/errors.go @@ -2,8 +2,8 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/x/distribution/types/errors_distr_proposal.go b/x/distribution/types/errors_distr_proposal.go index 85411529d..46a76bee1 100644 --- a/x/distribution/types/errors_distr_proposal.go +++ b/x/distribution/types/errors_distr_proposal.go @@ -2,8 +2,8 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/x/distribution/types/expected_keepers.go b/x/distribution/types/expected_keepers.go index 624f61226..fe9dcdd9f 100644 --- a/x/distribution/types/expected_keepers.go +++ b/x/distribution/types/expected_keepers.go @@ -1,11 +1,11 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/x/common" - govtypes "github.com/okx/okbchain/x/gov/types" - stakingexported "github.com/okx/okbchain/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/x/common" + govtypes "github.com/okx/brczero/x/gov/types" + stakingexported "github.com/okx/brczero/x/staking/exported" ) // StakingKeeper expected staking keeper (noalias) diff --git a/x/distribution/types/fee_pool.go b/x/distribution/types/fee_pool.go index 07855c776..559bde00a 100644 --- a/x/distribution/types/fee_pool.go +++ b/x/distribution/types/fee_pool.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // FeePool is the struct of the global fee pool for distribution diff --git a/x/distribution/types/fee_pool_test.go b/x/distribution/types/fee_pool_test.go index f67c84ca9..b7abcd4c5 100644 --- a/x/distribution/types/fee_pool_test.go +++ b/x/distribution/types/fee_pool_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestValidateGenesis(t *testing.T) { diff --git a/x/distribution/types/genesis.go b/x/distribution/types/genesis.go index 617ba6698..746b37a12 100644 --- a/x/distribution/types/genesis.go +++ b/x/distribution/types/genesis.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // DelegatorWithdrawInfo is the address for where distributions rewards are withdrawn to by default diff --git a/x/distribution/types/keys.go b/x/distribution/types/keys.go index 11c396e04..070488e6a 100644 --- a/x/distribution/types/keys.go +++ b/x/distribution/types/keys.go @@ -1,6 +1,6 @@ package types -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" const ( // ModuleName is the module name constant used in many places @@ -15,7 +15,7 @@ const ( // QuerierRoute is the querier route for distribution QuerierRoute = ModuleName - // ShortUseByCli added for okbchaincli + // ShortUseByCli added for brczerocli ShortUseByCli = "distr" ) diff --git a/x/distribution/types/keys_distr_proposal.go b/x/distribution/types/keys_distr_proposal.go index e90d8ae5a..8aef8b230 100644 --- a/x/distribution/types/keys_distr_proposal.go +++ b/x/distribution/types/keys_distr_proposal.go @@ -2,7 +2,7 @@ package types import ( "encoding/binary" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/x/distribution/types/msg.go b/x/distribution/types/msg.go index 63e2f24cd..b3578e180 100644 --- a/x/distribution/types/msg.go +++ b/x/distribution/types/msg.go @@ -2,7 +2,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Verify interface at compile time diff --git a/x/distribution/types/msg_distr_proposal.go b/x/distribution/types/msg_distr_proposal.go index cc77ee59b..56335d08f 100644 --- a/x/distribution/types/msg_distr_proposal.go +++ b/x/distribution/types/msg_distr_proposal.go @@ -2,7 +2,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Verify interface at compile time diff --git a/x/distribution/types/msg_test.go b/x/distribution/types/msg_test.go index c9cfd3cb4..8d2f4383d 100644 --- a/x/distribution/types/msg_test.go +++ b/x/distribution/types/msg_test.go @@ -3,10 +3,10 @@ package types import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/x/distribution/types/params.go b/x/distribution/types/params.go index c869f5bba..fa93d6ab5 100644 --- a/x/distribution/types/params.go +++ b/x/distribution/types/params.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/params" ) const ( diff --git a/x/distribution/types/params_test.go b/x/distribution/types/params_test.go index 49087ab96..dc7319d91 100644 --- a/x/distribution/types/params_test.go +++ b/x/distribution/types/params_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/types/proposal.go b/x/distribution/types/proposal.go index 7169a42bb..a5ab47fca 100644 --- a/x/distribution/types/proposal.go +++ b/x/distribution/types/proposal.go @@ -2,12 +2,12 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/x/gov/types" + govtypes "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/x/distribution/types/proposal_distr_proposal.go b/x/distribution/types/proposal_distr_proposal.go index 2e9d86a65..9e5a2b424 100644 --- a/x/distribution/types/proposal_distr_proposal.go +++ b/x/distribution/types/proposal_distr_proposal.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/x/distribution/types/proposal_distr_proposal_test.go b/x/distribution/types/proposal_distr_proposal_test.go index aef5d1f2e..cf08984cc 100644 --- a/x/distribution/types/proposal_distr_proposal_test.go +++ b/x/distribution/types/proposal_distr_proposal_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/tendermint/global" - exgovtypes "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/tendermint/global" + exgovtypes "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) diff --git a/x/distribution/types/proposal_test.go b/x/distribution/types/proposal_test.go index 0134d884e..5f5d38b99 100644 --- a/x/distribution/types/proposal_test.go +++ b/x/distribution/types/proposal_test.go @@ -3,8 +3,8 @@ package types import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" ) diff --git a/x/distribution/types/querier.go b/x/distribution/types/querier.go index 43929460b..3c7e6a182 100644 --- a/x/distribution/types/querier.go +++ b/x/distribution/types/querier.go @@ -1,6 +1,6 @@ package types -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // querier keys const ( diff --git a/x/distribution/types/querier_distr_proposal.go b/x/distribution/types/querier_distr_proposal.go index 7ffa2f2a6..9448d1c75 100644 --- a/x/distribution/types/querier_distr_proposal.go +++ b/x/distribution/types/querier_distr_proposal.go @@ -1,6 +1,6 @@ package types -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // querier keys const ( diff --git a/x/distribution/types/query.go b/x/distribution/types/query.go index f3fd9a476..94a5a1db5 100644 --- a/x/distribution/types/query.go +++ b/x/distribution/types/query.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // QueryDelegatorTotalRewardsResponse defines the properties of diff --git a/x/distribution/types/validator.go b/x/distribution/types/validator.go index 4a8bf35d0..843a9bdfb 100644 --- a/x/distribution/types/validator.go +++ b/x/distribution/types/validator.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ValidatorAccumulatedCommission is the accumulated commission for a validator diff --git a/x/distribution/types/validator_distr_proposal.go b/x/distribution/types/validator_distr_proposal.go index 7c581777d..a41e98448 100644 --- a/x/distribution/types/validator_distr_proposal.go +++ b/x/distribution/types/validator_distr_proposal.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // historical rewards for a validator diff --git a/x/erc20/alias.go b/x/erc20/alias.go index 97ea1f887..805d41e82 100644 --- a/x/erc20/alias.go +++ b/x/erc20/alias.go @@ -1,8 +1,8 @@ package erc20 import ( - "github.com/okx/okbchain/x/erc20/keeper" - "github.com/okx/okbchain/x/erc20/types" + "github.com/okx/brczero/x/erc20/keeper" + "github.com/okx/brczero/x/erc20/types" ) // nolint diff --git a/x/erc20/client/cli/query.go b/x/erc20/client/cli/query.go index 566397170..8764559e5 100644 --- a/x/erc20/client/cli/query.go +++ b/x/erc20/client/cli/query.go @@ -4,12 +4,13 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/x/erc20/types" "github.com/spf13/cobra" + + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/x/erc20/types" ) // GetQueryCmd defines erc20 module queries through the cli @@ -36,7 +37,7 @@ func GetCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command { Short: "Query all the modifiable parameters of gov proposal", Long: strings.TrimSpace(`Query the all the parameters for the governance process: -$ okbchaincli query erc20 params +$ brczerocli query erc20 params `), Args: cobra.NoArgs, RunE: func(_ *cobra.Command, _ []string) error { @@ -61,7 +62,7 @@ func GetCmdQueryTokenMapping(queryRoute string, cdc *codec.Codec) *cobra.Command Short: "Query all token mapping of denom and contract", Long: strings.TrimSpace(`Query all mapping of denom and contract: -$ okbchaincli query erc20 token-mapping +$ brczerocli query erc20 token-mapping `), Args: cobra.NoArgs, RunE: func(_ *cobra.Command, _ []string) error { @@ -85,7 +86,7 @@ func GetCmdTemplateContract(queryRoute string, cdc *codec.Codec) *cobra.Command Use: "contract-template", Short: "Query contract-template and note the return value is not available to post as proposal", Long: strings.TrimSpace(`Query all mapping of denom and contract: -$ okbchaincli query erc20 contract-template +$ brczerocli query erc20 contract-template `), Args: cobra.NoArgs, RunE: func(_ *cobra.Command, _ []string) error { diff --git a/x/erc20/client/cli/tx.go b/x/erc20/client/cli/tx.go index bcb64eaed..5965bbd68 100644 --- a/x/erc20/client/cli/tx.go +++ b/x/erc20/client/cli/tx.go @@ -8,16 +8,16 @@ import ( "strings" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - govcli "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/client/cli" - "github.com/okx/okbchain/x/erc20/types" - "github.com/okx/okbchain/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + govcli "github.com/okx/brczero/libs/cosmos-sdk/x/gov/client/cli" + "github.com/okx/brczero/x/erc20/types" + "github.com/okx/brczero/x/gov" "github.com/spf13/cobra" ) diff --git a/x/erc20/client/proposal_handler.go b/x/erc20/client/proposal_handler.go index 80f04a7e6..1948f595b 100644 --- a/x/erc20/client/proposal_handler.go +++ b/x/erc20/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okx/okbchain/x/erc20/client/cli" - "github.com/okx/okbchain/x/erc20/client/rest" - govcli "github.com/okx/okbchain/x/gov/client" + "github.com/okx/brczero/x/erc20/client/cli" + "github.com/okx/brczero/x/erc20/client/rest" + govcli "github.com/okx/brczero/x/gov/client" ) var ( diff --git a/x/erc20/client/rest/rest.go b/x/erc20/client/rest/rest.go index 672b3ff24..41019300b 100644 --- a/x/erc20/client/rest/rest.go +++ b/x/erc20/client/rest/rest.go @@ -6,11 +6,11 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - comm "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/erc20/types" - govRest "github.com/okx/okbchain/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + comm "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/erc20/types" + govRest "github.com/okx/brczero/x/gov/client/rest" ) // RegisterRoutes - Central function to define routes that get registered by the main application diff --git a/x/erc20/genesis.go b/x/erc20/genesis.go index 2e2f7a4cc..ba8013627 100644 --- a/x/erc20/genesis.go +++ b/x/erc20/genesis.go @@ -4,9 +4,9 @@ import ( "fmt" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/erc20/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/erc20/types" ) // InitGenesis initializes genesis state based on exported genesis diff --git a/x/erc20/genesis_test.go b/x/erc20/genesis_test.go index b266894b0..935e6eb68 100644 --- a/x/erc20/genesis_test.go +++ b/x/erc20/genesis_test.go @@ -1,8 +1,8 @@ package erc20_test import ( - "github.com/okx/okbchain/x/erc20" - "github.com/okx/okbchain/x/erc20/types" + "github.com/okx/brczero/x/erc20" + "github.com/okx/brczero/x/erc20/types" ) func (suite *Erc20TestSuite) TestInitGenesis() { diff --git a/x/erc20/handler.go b/x/erc20/handler.go index dcf7c3daa..fad25aa6e 100644 --- a/x/erc20/handler.go +++ b/x/erc20/handler.go @@ -1,8 +1,8 @@ package erc20 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // NewHandler returns a handler for erc20 type messages. diff --git a/x/erc20/handler_test.go b/x/erc20/handler_test.go index 7a90266c6..103c681f3 100644 --- a/x/erc20/handler_test.go +++ b/x/erc20/handler_test.go @@ -4,12 +4,13 @@ import ( "testing" "time" - "github.com/okx/okbchain/app" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/erc20" - "github.com/okx/okbchain/x/erc20/types" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/erc20" + "github.com/okx/brczero/x/erc20/types" ) type Erc20TestSuite struct { @@ -17,7 +18,7 @@ type Erc20TestSuite struct { ctx sdk.Context handler sdk.Handler - app *app.OKBChainApp + app *app.BRCZeroApp } func TestErc20TestSuite(t *testing.T) { diff --git a/x/erc20/keeper/evm_log_handler.go b/x/erc20/keeper/evm_log_handler.go index 56e1ca371..0524f39f8 100644 --- a/x/erc20/keeper/evm_log_handler.go +++ b/x/erc20/keeper/evm_log_handler.go @@ -8,10 +8,10 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/erc20/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/erc20/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) var ( diff --git a/x/erc20/keeper/evm_log_handler_test.go b/x/erc20/keeper/evm_log_handler_test.go index ee1c38963..d8ca4858b 100644 --- a/x/erc20/keeper/evm_log_handler_test.go +++ b/x/erc20/keeper/evm_log_handler_test.go @@ -6,18 +6,18 @@ import ( "math/big" "time" - "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - commitmenttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/23-commitment/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibctmtypes "github.com/okx/okbchain/libs/ibc-go/modules/light-clients/07-tendermint/types" - ibctesting "github.com/okx/okbchain/libs/ibc-go/testing" + "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + commitmenttypes "github.com/okx/brczero/libs/ibc-go/modules/core/23-commitment/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibctmtypes "github.com/okx/brczero/libs/ibc-go/modules/light-clients/07-tendermint/types" + ibctesting "github.com/okx/brczero/libs/ibc-go/testing" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - types2 "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - "github.com/okx/okbchain/x/erc20/keeper" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + types2 "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/x/erc20/keeper" ) const CorrectIbcDenom2 = "ibc/3EF3B49764DB0E2284467F8BF7A08C18EACACB30E1AD7ABA8E892F1F679443F9" diff --git a/x/erc20/keeper/expected_keeper.go b/x/erc20/keeper/expected_keeper.go index fe9ed7bb7..961721acb 100644 --- a/x/erc20/keeper/expected_keeper.go +++ b/x/erc20/keeper/expected_keeper.go @@ -1,14 +1,14 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + govtypes "github.com/okx/brczero/x/gov/types" ) // GovKeeper defines the expected gov Keeper diff --git a/x/erc20/keeper/expected_keeper_innertx.go b/x/erc20/keeper/expected_keeper_innertx.go index d595010d4..b80520338 100644 --- a/x/erc20/keeper/expected_keeper_innertx.go +++ b/x/erc20/keeper/expected_keeper_innertx.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) type EvmKeeper interface { diff --git a/x/erc20/keeper/ibc.go b/x/erc20/keeper/ibc.go index 0ce19a8ed..f83b6feef 100644 --- a/x/erc20/keeper/ibc.go +++ b/x/erc20/keeper/ibc.go @@ -8,13 +8,13 @@ import ( "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - ibctransfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - ibcclienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/erc20/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + ibctransfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + ibcclienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/erc20/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) // OnMintVouchers after minting vouchers on this chain diff --git a/x/erc20/keeper/ibc_hooks.go b/x/erc20/keeper/ibc_hooks.go index b94735190..475235726 100644 --- a/x/erc20/keeper/ibc_hooks.go +++ b/x/erc20/keeper/ibc_hooks.go @@ -1,10 +1,10 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - trensferTypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - "github.com/okx/okbchain/x/erc20/types" - "github.com/okx/okbchain/x/evm/watcher" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + trensferTypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + "github.com/okx/brczero/x/erc20/types" + "github.com/okx/brczero/x/evm/watcher" ) var ( diff --git a/x/erc20/keeper/ibc_test.go b/x/erc20/keeper/ibc_test.go index 3ec74bf50..252e4dc8c 100644 --- a/x/erc20/keeper/ibc_test.go +++ b/x/erc20/keeper/ibc_test.go @@ -6,10 +6,10 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - erc20Keeper "github.com/okx/okbchain/x/erc20/keeper" - "github.com/okx/okbchain/x/erc20/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + erc20Keeper "github.com/okx/brczero/x/erc20/keeper" + "github.com/okx/brczero/x/erc20/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) const ( diff --git a/x/erc20/keeper/invariants.go b/x/erc20/keeper/invariants.go index add556713..3e83def61 100644 --- a/x/erc20/keeper/invariants.go +++ b/x/erc20/keeper/invariants.go @@ -1,7 +1,7 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // RegisterInvariants registers the erc20 module invariants diff --git a/x/erc20/keeper/keeper.go b/x/erc20/keeper/keeper.go index 0184fefec..b4ae18fa9 100644 --- a/x/erc20/keeper/keeper.go +++ b/x/erc20/keeper/keeper.go @@ -5,12 +5,12 @@ import ( "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/erc20/types" - "github.com/okx/okbchain/x/params" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/erc20/types" + "github.com/okx/brczero/x/params" ) // Keeper wraps the CommitStateDB, allowing us to pass in SDK context while adhering diff --git a/x/erc20/keeper/keeper_test.go b/x/erc20/keeper/keeper_test.go index 1cd1bc333..efcca4630 100644 --- a/x/erc20/keeper/keeper_test.go +++ b/x/erc20/keeper/keeper_test.go @@ -11,16 +11,16 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/app" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - minttypes "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - transfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/x/erc20/keeper" - "github.com/okx/okbchain/x/erc20/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + minttypes "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + transfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/x/erc20/keeper" + "github.com/okx/brczero/x/erc20/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) var ( @@ -35,7 +35,7 @@ type KeeperTestSuite struct { suite.Suite ctx sdk.Context - app *app.OKBChainApp + app *app.BRCZeroApp querier sdk.Querier } diff --git a/x/erc20/keeper/params.go b/x/erc20/keeper/params.go index 6621717f6..965731f59 100644 --- a/x/erc20/keeper/params.go +++ b/x/erc20/keeper/params.go @@ -3,9 +3,9 @@ package keeper import ( "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/erc20/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/erc20/types" ) // GetParams returns the total set of erc20 parameters. diff --git a/x/erc20/keeper/params_test.go b/x/erc20/keeper/params_test.go index 358a7029b..e8944f378 100644 --- a/x/erc20/keeper/params_test.go +++ b/x/erc20/keeper/params_test.go @@ -3,8 +3,8 @@ package keeper_test import ( "errors" - erc20Keeper "github.com/okx/okbchain/x/erc20/keeper" - "github.com/okx/okbchain/x/erc20/types" + erc20Keeper "github.com/okx/brczero/x/erc20/keeper" + "github.com/okx/brczero/x/erc20/types" ) func (suite *KeeperTestSuite) TestGetSourceChannelID() { diff --git a/x/erc20/keeper/proposal.go b/x/erc20/keeper/proposal.go index 66a31f1e8..06990d91c 100644 --- a/x/erc20/keeper/proposal.go +++ b/x/erc20/keeper/proposal.go @@ -4,11 +4,11 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/erc20/types" - sdkGov "github.com/okx/okbchain/x/gov" - govKeeper "github.com/okx/okbchain/x/gov/keeper" - govTypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/erc20/types" + sdkGov "github.com/okx/brczero/x/gov" + govKeeper "github.com/okx/brczero/x/gov/keeper" + govTypes "github.com/okx/brczero/x/gov/types" ) var _ govKeeper.ProposalHandler = (*Keeper)(nil) diff --git a/x/erc20/keeper/proposal_test.go b/x/erc20/keeper/proposal_test.go index cdb85002a..5be0f1a33 100644 --- a/x/erc20/keeper/proposal_test.go +++ b/x/erc20/keeper/proposal_test.go @@ -5,9 +5,9 @@ import ( "time" ethcmn "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/erc20/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/erc20/types" + govtypes "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/erc20/keeper/querier.go b/x/erc20/keeper/querier.go index 62f27e0dd..b60dba3bf 100644 --- a/x/erc20/keeper/querier.go +++ b/x/erc20/keeper/querier.go @@ -5,13 +5,13 @@ import ( "fmt" ethcmm "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - transfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/erc20/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + transfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/erc20/types" ) // NewQuerier is the module level router for state queries diff --git a/x/erc20/keeper/querier_test.go b/x/erc20/keeper/querier_test.go index c18a6f052..97a852e64 100644 --- a/x/erc20/keeper/querier_test.go +++ b/x/erc20/keeper/querier_test.go @@ -4,8 +4,8 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/erc20/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/erc20/types" ) func (suite *KeeperTestSuite) TestQuerier() { diff --git a/x/erc20/module.go b/x/erc20/module.go index 1f8ec475c..fef560acf 100644 --- a/x/erc20/module.go +++ b/x/erc20/module.go @@ -6,14 +6,14 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/erc20/client/cli" - "github.com/okx/okbchain/x/erc20/keeper" - "github.com/okx/okbchain/x/erc20/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/erc20/client/cli" + "github.com/okx/brczero/x/erc20/keeper" + "github.com/okx/brczero/x/erc20/types" ) var _ module.AppModuleBasic = AppModuleBasic{} diff --git a/x/erc20/proposal_handler.go b/x/erc20/proposal_handler.go index 1887a2c27..95924b8e1 100644 --- a/x/erc20/proposal_handler.go +++ b/x/erc20/proposal_handler.go @@ -2,13 +2,13 @@ package erc20 import ( ethcmm "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/erc20/types" - govTypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/erc20/types" + govTypes "github.com/okx/brczero/x/gov/types" ) // NewProposalHandler handles "gov" type message in "erc20" diff --git a/x/erc20/types/codec.go b/x/erc20/types/codec.go index de335c9ea..6d8448ec4 100644 --- a/x/erc20/types/codec.go +++ b/x/erc20/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" ) // ModuleCdc defines the erc20 module's codec diff --git a/x/erc20/types/contract.go b/x/erc20/types/contract.go index 6cd6cb8dd..5312efaf5 100644 --- a/x/erc20/types/contract.go +++ b/x/erc20/types/contract.go @@ -8,8 +8,8 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // CompiledContract contains compiled bytecode and abi diff --git a/x/erc20/types/errors.go b/x/erc20/types/errors.go index a820d8355..0303f17bb 100644 --- a/x/erc20/types/errors.go +++ b/x/erc20/types/errors.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/x/erc20/types/params.go b/x/erc20/types/params.go index cc96decce..e1ac53edf 100644 --- a/x/erc20/types/params.go +++ b/x/erc20/types/params.go @@ -5,7 +5,7 @@ import ( "gopkg.in/yaml.v2" - "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/x/params" ) const ( diff --git a/x/erc20/types/proposal.go b/x/erc20/types/proposal.go index 0c035cde4..7bb8c5d10 100644 --- a/x/erc20/types/proposal.go +++ b/x/erc20/types/proposal.go @@ -2,13 +2,13 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "strings" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/x/erc20/types/types.go b/x/erc20/types/types.go index ac6b04083..26ce362b2 100644 --- a/x/erc20/types/types.go +++ b/x/erc20/types/types.go @@ -3,7 +3,7 @@ package types import ( "strings" - ibctransferType "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" + ibctransferType "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" ) const ( diff --git a/x/evidence/abci.go b/x/evidence/abci.go index 1819a67e0..9f4250cc8 100644 --- a/x/evidence/abci.go +++ b/x/evidence/abci.go @@ -3,10 +3,10 @@ package evidence import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // BeginBlocker iterates through and handles any newly discovered evidence of diff --git a/x/evidence/alias.go b/x/evidence/alias.go index 359022b57..2c4d4fcac 100644 --- a/x/evidence/alias.go +++ b/x/evidence/alias.go @@ -1,8 +1,8 @@ package evidence import ( - "github.com/okx/okbchain/x/evidence/internal/keeper" - "github.com/okx/okbchain/x/evidence/internal/types" + "github.com/okx/brczero/x/evidence/internal/keeper" + "github.com/okx/brczero/x/evidence/internal/types" ) // nolint diff --git a/x/evidence/client/cli/query.go b/x/evidence/client/cli/query.go index 4bb823d1a..c766a9b68 100644 --- a/x/evidence/client/cli/query.go +++ b/x/evidence/client/cli/query.go @@ -8,13 +8,13 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/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 9cabb6b17..387b48961 100644 --- a/x/evidence/client/cli/tx.go +++ b/x/evidence/client/cli/tx.go @@ -1,10 +1,10 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/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 486caea75..bbd2d2a9a 100644 --- a/x/evidence/client/evidence_handler.go +++ b/x/evidence/client/evidence_handler.go @@ -3,9 +3,9 @@ package client import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/x/evidence/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/x/evidence/client/rest" ) type ( diff --git a/x/evidence/client/rest/query.go b/x/evidence/client/rest/query.go index eec1bb5bd..ca5453f6c 100644 --- a/x/evidence/client/rest/query.go +++ b/x/evidence/client/rest/query.go @@ -5,10 +5,10 @@ import ( "net/http" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/x/evidence/internal/types" + "github.com/okx/brczero/x/evidence/internal/types" "github.com/gorilla/mux" ) diff --git a/x/evidence/client/rest/rest.go b/x/evidence/client/rest/rest.go index 4e067ce96..4e022300c 100644 --- a/x/evidence/client/rest/rest.go +++ b/x/evidence/client/rest/rest.go @@ -3,7 +3,7 @@ package rest import ( "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" "github.com/gorilla/mux" ) diff --git a/x/evidence/client/rest/tx.go b/x/evidence/client/rest/tx.go index e36a4b332..ded7c4bc7 100644 --- a/x/evidence/client/rest/tx.go +++ b/x/evidence/client/rest/tx.go @@ -1,7 +1,7 @@ package rest import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" "github.com/gorilla/mux" ) diff --git a/x/evidence/exported/evidence.go b/x/evidence/exported/evidence.go index dfef15cbd..9641aaede 100644 --- a/x/evidence/exported/evidence.go +++ b/x/evidence/exported/evidence.go @@ -1,9 +1,9 @@ package exported import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" ) // Evidence defines the contract which concrete evidence types of misbehavior diff --git a/x/evidence/genesis.go b/x/evidence/genesis.go index 5cdfed769..4949c8b9c 100644 --- a/x/evidence/genesis.go +++ b/x/evidence/genesis.go @@ -3,7 +3,7 @@ package evidence import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // InitGenesis initializes the evidence module's state from a provided genesis diff --git a/x/evidence/genesis_test.go b/x/evidence/genesis_test.go index 593caf0e4..ae0a4ec6d 100644 --- a/x/evidence/genesis_test.go +++ b/x/evidence/genesis_test.go @@ -4,18 +4,18 @@ import ( "os" "testing" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/app" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evidence" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/x/evidence/internal/types" "github.com/stretchr/testify/suite" ) @@ -27,10 +27,10 @@ type GenesisTestSuite struct { keeper evidence.Keeper } -func MakeOKEXApp() *app.OKBChainApp { +func MakeOKEXApp() *app.BRCZeroApp { genesisState := app.NewDefaultGenesisState() db := dbm.NewMemDB() - okexapp := app.NewOKBChainApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) + okexapp := app.NewBRCZeroApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) stateBytes, err := codec.MarshalJSONIndent(okexapp.Codec(), genesisState) if err != nil { diff --git a/x/evidence/handler.go b/x/evidence/handler.go index 079f77c8a..9ab9968ba 100644 --- a/x/evidence/handler.go +++ b/x/evidence/handler.go @@ -1,8 +1,8 @@ package evidence import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) func NewHandler(k Keeper) sdk.Handler { diff --git a/x/evidence/handler_test.go b/x/evidence/handler_test.go index 287f382bf..8de16a2ca 100644 --- a/x/evidence/handler_test.go +++ b/x/evidence/handler_test.go @@ -3,12 +3,12 @@ package evidence_test import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence" - "github.com/okx/okbchain/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evidence" + "github.com/okx/brczero/x/evidence/internal/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/suite" ) diff --git a/x/evidence/internal/keeper/infraction.go b/x/evidence/internal/keeper/infraction.go index 1630ca5e4..e66c2093c 100644 --- a/x/evidence/internal/keeper/infraction.go +++ b/x/evidence/internal/keeper/infraction.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence/internal/types" + "github.com/okx/brczero/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 935c9f2dc..2ad830d4f 100644 --- a/x/evidence/internal/keeper/infraction_test.go +++ b/x/evidence/internal/keeper/infraction_test.go @@ -3,12 +3,12 @@ package keeper_test import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence/internal/types" - "github.com/okx/okbchain/x/staking" - stakingtypes "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evidence/internal/types" + "github.com/okx/brczero/x/staking" + stakingtypes "github.com/okx/brczero/x/staking/types" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) const EPOCH = 252 diff --git a/x/evidence/internal/keeper/keeper.go b/x/evidence/internal/keeper/keeper.go index a739b61e1..7afb2b9cd 100644 --- a/x/evidence/internal/keeper/keeper.go +++ b/x/evidence/internal/keeper/keeper.go @@ -3,16 +3,16 @@ package keeper import ( "fmt" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/libs/tendermint/libs/log" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/types" - "github.com/okx/okbchain/x/params" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/libs/log" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/x/evidence/internal/types" + "github.com/okx/brczero/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 f09c1b4c9..2679cf6c5 100644 --- a/x/evidence/internal/keeper/keeper_test.go +++ b/x/evidence/internal/keeper/keeper_test.go @@ -2,25 +2,26 @@ package keeper_test import ( "encoding/hex" - staking "github.com/okx/okbchain/x/staking/types" "os" "testing" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/x/evidence" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/keeper" - "github.com/okx/okbchain/x/evidence/internal/types" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + staking "github.com/okx/brczero/x/staking/types" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/x/evidence" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/x/evidence/internal/keeper" + "github.com/okx/brczero/x/evidence/internal/types" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/suite" ) @@ -59,13 +60,13 @@ type KeeperTestSuite struct { ctx sdk.Context querier sdk.Querier keeper keeper.Keeper - app *app.OKBChainApp + app *app.BRCZeroApp } -func MakeOKEXApp() *app.OKBChainApp { +func MakeOKEXApp() *app.BRCZeroApp { genesisState := app.NewDefaultGenesisState() db := dbm.NewMemDB() - okexapp := app.NewOKBChainApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) + okexapp := app.NewBRCZeroApp(log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, nil, true, map[int64]bool{}, 0) stateBytes, err := codec.MarshalJSONIndent(okexapp.Codec(), genesisState) if err != nil { diff --git a/x/evidence/internal/keeper/params.go b/x/evidence/internal/keeper/params.go index 7862be14a..fb9d589bc 100644 --- a/x/evidence/internal/keeper/params.go +++ b/x/evidence/internal/keeper/params.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 28450bb7d..11cdf8e4d 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/okx/okbchain/x/evidence/internal/types" + "github.com/okx/brczero/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 2f28e7eb6..58532e313 100644 --- a/x/evidence/internal/keeper/querier.go +++ b/x/evidence/internal/keeper/querier.go @@ -3,14 +3,14 @@ package keeper import ( "encoding/hex" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/types" - - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/x/evidence/internal/types" + + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) func NewQuerier(k Keeper) sdk.Querier { diff --git a/x/evidence/internal/keeper/querier_test.go b/x/evidence/internal/keeper/querier_test.go index fcb03437e..5c4b19d16 100644 --- a/x/evidence/internal/keeper/querier_test.go +++ b/x/evidence/internal/keeper/querier_test.go @@ -3,10 +3,10 @@ package keeper_test import ( "strings" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/types" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/x/evidence/internal/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) const ( diff --git a/x/evidence/internal/types/codec.go b/x/evidence/internal/types/codec.go index 7bae1d439..71ee8b951 100644 --- a/x/evidence/internal/types/codec.go +++ b/x/evidence/internal/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/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 5dac280f7..28b20c475 100644 --- a/x/evidence/internal/types/codec_test.go +++ b/x/evidence/internal/types/codec_test.go @@ -3,13 +3,13 @@ package types_test import ( "testing" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/x/evidence/internal/types" ) var _ exported.Evidence = (*testEvidence)(nil) diff --git a/x/evidence/internal/types/errors.go b/x/evidence/internal/types/errors.go index 5d63ede1c..bb875d882 100644 --- a/x/evidence/internal/types/errors.go +++ b/x/evidence/internal/types/errors.go @@ -2,7 +2,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const BaseEvidenceError = 9001 diff --git a/x/evidence/internal/types/evidence.go b/x/evidence/internal/types/evidence.go index 261cb6cd2..d86ec591a 100644 --- a/x/evidence/internal/types/evidence.go +++ b/x/evidence/internal/types/evidence.go @@ -4,12 +4,12 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence/exported" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" "gopkg.in/yaml.v2" ) diff --git a/x/evidence/internal/types/evidence_test.go b/x/evidence/internal/types/evidence_test.go index c184d5f1a..3f53e9ef2 100644 --- a/x/evidence/internal/types/evidence_test.go +++ b/x/evidence/internal/types/evidence_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 08b65128a..365529c5b 100644 --- a/x/evidence/internal/types/expected_keepers.go +++ b/x/evidence/internal/types/expected_keepers.go @@ -3,10 +3,10 @@ package types import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - stakingexported "github.com/okx/okbchain/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + stakingexported "github.com/okx/brczero/x/staking/exported" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" ) type ( diff --git a/x/evidence/internal/types/genesis.go b/x/evidence/internal/types/genesis.go index d2fbce071..bdefd400b 100644 --- a/x/evidence/internal/types/genesis.go +++ b/x/evidence/internal/types/genesis.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/okx/okbchain/x/evidence/exported" + "github.com/okx/brczero/x/evidence/exported" ) // DONTCOVER diff --git a/x/evidence/internal/types/genesis_test.go b/x/evidence/internal/types/genesis_test.go index f15b2e017..678557658 100644 --- a/x/evidence/internal/types/genesis_test.go +++ b/x/evidence/internal/types/genesis_test.go @@ -3,11 +3,11 @@ package types_test import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/types" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/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 60ed97738..b946ac839 100644 --- a/x/evidence/internal/types/msgs.go +++ b/x/evidence/internal/types/msgs.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/evidence/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/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 7b4d6f770..8f2c5dcf3 100644 --- a/x/evidence/internal/types/msgs_test.go +++ b/x/evidence/internal/types/msgs_test.go @@ -3,11 +3,11 @@ package types_test import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/x/evidence/internal/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" ) diff --git a/x/evidence/internal/types/params.go b/x/evidence/internal/types/params.go index 0c76bd7cd..439985a79 100644 --- a/x/evidence/internal/types/params.go +++ b/x/evidence/internal/types/params.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/x/params" "gopkg.in/yaml.v2" ) diff --git a/x/evidence/internal/types/router.go b/x/evidence/internal/types/router.go index f135d2356..91184386c 100644 --- a/x/evidence/internal/types/router.go +++ b/x/evidence/internal/types/router.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evidence/exported" ) type ( diff --git a/x/evidence/internal/types/router_test.go b/x/evidence/internal/types/router_test.go index 13e9f47b2..26f332b56 100644 --- a/x/evidence/internal/types/router_test.go +++ b/x/evidence/internal/types/router_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence/exported" - "github.com/okx/okbchain/x/evidence/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evidence/exported" + "github.com/okx/brczero/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 5d489e71c..64dd12afe 100644 --- a/x/evidence/internal/types/test_util.go +++ b/x/evidence/internal/types/test_util.go @@ -11,15 +11,15 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evidence/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evidence/exported" "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmbytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmbytes "github.com/okx/brczero/libs/tendermint/libs/bytes" ) var ( diff --git a/x/evidence/module.go b/x/evidence/module.go index c9a9b1dca..2fe5e65bf 100644 --- a/x/evidence/module.go +++ b/x/evidence/module.go @@ -4,16 +4,16 @@ import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/x/evidence/client" - "github.com/okx/okbchain/x/evidence/client/cli" - "github.com/okx/okbchain/x/evidence/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/x/evidence/client" + "github.com/okx/brczero/x/evidence/client/cli" + "github.com/okx/brczero/x/evidence/client/rest" "github.com/gorilla/mux" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/cobra" ) diff --git a/x/evm/alias.go b/x/evm/alias.go index 4f7ba7dce..b66976891 100644 --- a/x/evm/alias.go +++ b/x/evm/alias.go @@ -1,10 +1,10 @@ package evm import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/keeper" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/keeper" + "github.com/okx/brczero/x/evm/types" ) // nolint diff --git a/x/evm/client/cli/query.go b/x/evm/client/cli/query.go index 47cc1e582..022eee577 100644 --- a/x/evm/client/cli/query.go +++ b/x/evm/client/cli/query.go @@ -7,17 +7,18 @@ import ( "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/x/evm/client/rest" - "github.com/okx/okbchain/x/evm/client/utils" - "github.com/okx/okbchain/x/evm/types" "github.com/pkg/errors" "github.com/spf13/cobra" + + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/x/evm/client/rest" + "github.com/okx/brczero/x/evm/client/utils" + "github.com/okx/brczero/x/evm/types" ) // GetQueryCmd defines evm module queries through the cli @@ -279,7 +280,7 @@ func GetCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command { Short: "Query all the modifiable parameters of gov proposal", Long: strings.TrimSpace(`Query the all the parameters for the governance process: -$ okbchaincli query evm params +$ brczerocli query evm params `), Args: cobra.NoArgs, RunE: func(_ *cobra.Command, _ []string) error { diff --git a/x/evm/client/cli/tx.go b/x/evm/client/cli/tx.go index 0da517715..c6d099c07 100644 --- a/x/evm/client/cli/tx.go +++ b/x/evm/client/cli/tx.go @@ -5,16 +5,16 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - evmutils "github.com/okx/okbchain/x/evm/client/utils" - "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/gov" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + evmutils "github.com/okx/brczero/x/evm/client/utils" + "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/gov" "github.com/spf13/cobra" ) diff --git a/x/evm/client/cli/utils.go b/x/evm/client/cli/utils.go index a491279c6..e99becc95 100644 --- a/x/evm/client/cli/utils.go +++ b/x/evm/client/cli/utils.go @@ -8,7 +8,7 @@ import ( "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func accountToHex(addr string) (string, error) { diff --git a/x/evm/client/cli/utils_test.go b/x/evm/client/cli/utils_test.go index ed03fa2c8..05c6f16a7 100644 --- a/x/evm/client/cli/utils_test.go +++ b/x/evm/client/cli/utils_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" ) diff --git a/x/evm/client/proposal_handler.go b/x/evm/client/proposal_handler.go index 9978bf970..77e1e967f 100644 --- a/x/evm/client/proposal_handler.go +++ b/x/evm/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okx/okbchain/x/evm/client/cli" - "github.com/okx/okbchain/x/evm/client/rest" - govcli "github.com/okx/okbchain/x/gov/client" + "github.com/okx/brczero/x/evm/client/cli" + "github.com/okx/brczero/x/evm/client/rest" + govcli "github.com/okx/brczero/x/gov/client" ) var ( diff --git a/x/evm/client/rest/query.go b/x/evm/client/rest/query.go index d57c3ac8d..b33780af6 100644 --- a/x/evm/client/rest/query.go +++ b/x/evm/client/rest/query.go @@ -6,12 +6,12 @@ import ( ethcommon "github.com/ethereum/go-ethereum/common" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - comm "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/evm/client/utils" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + comm "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/evm/client/utils" + evmtypes "github.com/okx/brczero/x/evm/types" ) func registerQueryRoutes(cliCtx clientCtx.CLIContext, r *mux.Router) { diff --git a/x/evm/client/rest/rest.go b/x/evm/client/rest/rest.go index 28c93a70b..1f38ceb36 100644 --- a/x/evm/client/rest/rest.go +++ b/x/evm/client/rest/rest.go @@ -9,26 +9,26 @@ import ( "strings" "time" - authrest "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/rest" + authrest "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/rest" - "github.com/okx/okbchain/x/evm/client/utils" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/x/evm/client/utils" + "github.com/okx/brczero/x/evm/watcher" ethcommon "github.com/ethereum/go-ethereum/common" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/rpc" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - tmliteProxy "github.com/okx/okbchain/libs/tendermint/lite/proxy" - "github.com/okx/okbchain/libs/tendermint/rpc/client" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/x/common" - evmtypes "github.com/okx/okbchain/x/evm/types" - govRest "github.com/okx/okbchain/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/rpc" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + tmliteProxy "github.com/okx/brczero/libs/tendermint/lite/proxy" + "github.com/okx/brczero/libs/tendermint/rpc/client" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/x/common" + evmtypes "github.com/okx/brczero/x/evm/types" + govRest "github.com/okx/brczero/x/gov/client/rest" ) // RegisterRoutes - Central function to define routes that get registered by the main application diff --git a/x/evm/client/rest/rest_proposal.go b/x/evm/client/rest/rest_proposal.go index 789ab22bf..405fcef6f 100644 --- a/x/evm/client/rest/rest_proposal.go +++ b/x/evm/client/rest/rest_proposal.go @@ -3,14 +3,14 @@ package rest import ( "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - comm "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/gov" - govrest "github.com/okx/okbchain/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + comm "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/gov" + govrest "github.com/okx/brczero/x/gov/client/rest" ) type ManageSysContractAddressProposalReq struct { diff --git a/x/evm/client/utils/utils.go b/x/evm/client/utils/utils.go index b3b0f77ce..6eeec40e9 100644 --- a/x/evm/client/utils/utils.go +++ b/x/evm/client/utils/utils.go @@ -4,9 +4,9 @@ import ( "fmt" "io/ioutil" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" "github.com/pkg/errors" ) diff --git a/x/evm/client/utils/utils_test.go b/x/evm/client/utils/utils_test.go index f04eb1971..cac3e2448 100644 --- a/x/evm/client/utils/utils_test.go +++ b/x/evm/client/utils/utils_test.go @@ -4,9 +4,9 @@ import ( "os" "testing" - chain "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + chain "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" "github.com/stretchr/testify/require" ) diff --git a/x/evm/evm2cm.go b/x/evm/evm2cm.go index 3715a2067..5689346fa 100644 --- a/x/evm/evm2cm.go +++ b/x/evm/evm2cm.go @@ -6,9 +6,9 @@ import ( "fmt" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" ) var ( diff --git a/x/evm/evm2cm_test.go b/x/evm/evm2cm_test.go index 08fc95f9f..23e318a38 100644 --- a/x/evm/evm2cm_test.go +++ b/x/evm/evm2cm_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - etypes "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + etypes "github.com/okx/brczero/x/evm/types" "github.com/stretchr/testify/require" ) diff --git a/x/evm/export_operation.go b/x/evm/export_operation.go index d1a058adf..a8b0acadf 100644 --- a/x/evm/export_operation.go +++ b/x/evm/export_operation.go @@ -14,10 +14,10 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/evm/types" ) const ( diff --git a/x/evm/genesis.go b/x/evm/genesis.go index aecdae7fa..e900a24ac 100644 --- a/x/evm/genesis.go +++ b/x/evm/genesis.go @@ -4,12 +4,12 @@ import ( "fmt" ethcmn "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/types" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/types" "github.com/spf13/viper" ) diff --git a/x/evm/genesis_test.go b/x/evm/genesis_test.go index d8d8a7d1e..ae3c69ee2 100644 --- a/x/evm/genesis_test.go +++ b/x/evm/genesis_test.go @@ -1,30 +1,32 @@ package evm_test import ( - "github.com/okx/okbchain/libs/system" "os" "path/filepath" "strings" + "github.com/okx/brczero/libs/system" + "github.com/ethereum/go-ethereum/common" ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/evm" - "github.com/okx/okbchain/x/evm/types" "github.com/spf13/viper" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/simapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/evm" + "github.com/okx/brczero/x/evm/types" ) func (suite *EvmTestSuite) TestExportImport() { @@ -290,7 +292,7 @@ func (suite *EvmTestSuite) TestInit() { suite.SetupTest() // reset values db := dbm.NewMemDB() - chain := app.NewOKBChainApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, 0) + chain := app.NewBRCZeroApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, 0) genesisState := app.NewDefaultGenesisState() tc.malleate(&genesisState) diff --git a/x/evm/handler.go b/x/evm/handler.go index 4cde21681..8e7ae472c 100644 --- a/x/evm/handler.go +++ b/x/evm/handler.go @@ -1,14 +1,14 @@ package evm import ( - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/x/evm/txs" - "github.com/okx/okbchain/x/evm/txs/base" - "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/x/evm/txs" + "github.com/okx/brczero/x/evm/txs/base" + "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" ) // NewHandler returns a handler for Ethermint type messages. diff --git a/x/evm/handler_test.go b/x/evm/handler_test.go index b0e811527..6bce79e50 100644 --- a/x/evm/handler_test.go +++ b/x/evm/handler_test.go @@ -12,20 +12,21 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm" - "github.com/okx/okbchain/x/evm/keeper" - "github.com/okx/okbchain/x/evm/types" - govtypes "github.com/okx/okbchain/x/gov/types" "github.com/status-im/keycard-go/hexutils" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm" + "github.com/okx/brczero/x/evm/keeper" + "github.com/okx/brczero/x/evm/types" + govtypes "github.com/okx/brczero/x/gov/types" ) // erc20 contract with params: @@ -40,7 +41,7 @@ type EvmTestSuite struct { handler sdk.Handler govHandler govtypes.Handler querier sdk.Querier - app *app.OKBChainApp + app *app.BRCZeroApp stateDB *types.CommitStateDB codec *codec.Codec } @@ -781,7 +782,7 @@ type EvmContractBlockedListTestSuite struct { ctx sdk.Context handler sdk.Handler - app *app.OKBChainApp + app *app.BRCZeroApp stateDB *types.CommitStateDB // global data for test diff --git a/x/evm/keeper/abci.go b/x/evm/keeper/abci.go index b499967a2..a7956af34 100644 --- a/x/evm/keeper/abci.go +++ b/x/evm/keeper/abci.go @@ -3,18 +3,18 @@ package keeper import ( "math/big" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/x/evm/watcher" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/ethereum/go-ethereum/common" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/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 079d4dce0..d9b5be5a3 100644 --- a/x/evm/keeper/abci_test.go +++ b/x/evm/keeper/abci_test.go @@ -4,10 +4,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/okx/okbchain/app/crypto/ethsecp256k1" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" "github.com/spf13/viper" "math/big" "os" diff --git a/x/evm/keeper/evm2cm.go b/x/evm/keeper/evm2cm.go index db7248e43..c4a634940 100644 --- a/x/evm/keeper/evm2cm.go +++ b/x/evm/keeper/evm2cm.go @@ -1,9 +1,9 @@ package keeper import ( - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" ) // SetSysContractAddress set system contract address to store diff --git a/x/evm/keeper/evm_hooks.go b/x/evm/keeper/evm_hooks.go index 179acfa02..125905e95 100644 --- a/x/evm/keeper/evm_hooks.go +++ b/x/evm/keeper/evm_hooks.go @@ -3,9 +3,9 @@ package keeper import ( "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerror "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerror "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/evm/types" ) var ( diff --git a/x/evm/keeper/evm_hooks_test.go b/x/evm/keeper/evm_hooks_test.go index b0e5ce657..cee85adb1 100644 --- a/x/evm/keeper/evm_hooks_test.go +++ b/x/evm/keeper/evm_hooks_test.go @@ -6,9 +6,9 @@ import ( "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/keeper" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/keeper" + "github.com/okx/brczero/x/evm/types" ) // LogRecordHook records all the logs diff --git a/x/evm/keeper/expected_keeper.go b/x/evm/keeper/expected_keeper.go index a34a4c654..11e7399e9 100644 --- a/x/evm/keeper/expected_keeper.go +++ b/x/evm/keeper/expected_keeper.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/x/gov/types" ) // GovKeeper defines the expected gov Keeper diff --git a/x/evm/keeper/invariants.go b/x/evm/keeper/invariants.go index 0d0ebb1a6..11445cf38 100644 --- a/x/evm/keeper/invariants.go +++ b/x/evm/keeper/invariants.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/x/evm/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/x/evm/types" ) const ( diff --git a/x/evm/keeper/invariants_test.go b/x/evm/keeper/invariants_test.go index 86f900d84..023246d6f 100644 --- a/x/evm/keeper/invariants_test.go +++ b/x/evm/keeper/invariants_test.go @@ -3,11 +3,11 @@ package keeper_test import ( "math/big" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" ethcmn "github.com/ethereum/go-ethereum/common" ) diff --git a/x/evm/keeper/keeper.go b/x/evm/keeper/keeper.go index 4cf7dc909..d0af9e69c 100644 --- a/x/evm/keeper/keeper.go +++ b/x/evm/keeper/keeper.go @@ -12,16 +12,16 @@ import ( "github.com/ethereum/go-ethereum/core/vm" lru "github.com/hashicorp/golang-lru" - app "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" - "github.com/okx/okbchain/x/params" + app "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" + "github.com/okx/brczero/x/params" ) const ( diff --git a/x/evm/keeper/keeper_direct.go b/x/evm/keeper/keeper_direct.go index 967895f22..5073cf00e 100644 --- a/x/evm/keeper/keeper_direct.go +++ b/x/evm/keeper/keeper_direct.go @@ -4,9 +4,9 @@ import ( "fmt" ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" ) // SetCodeDirectly commit code into db with no cache diff --git a/x/evm/keeper/keeper_mpt.go b/x/evm/keeper/keeper_mpt.go index aed50d262..238449a8d 100644 --- a/x/evm/keeper/keeper_mpt.go +++ b/x/evm/keeper/keeper_mpt.go @@ -3,9 +3,9 @@ package keeper import ( "encoding/binary" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" ) /* diff --git a/x/evm/keeper/keeper_parallel.go b/x/evm/keeper/keeper_parallel.go index 2b42a7bae..df52e9065 100644 --- a/x/evm/keeper/keeper_parallel.go +++ b/x/evm/keeper/keeper_parallel.go @@ -4,11 +4,11 @@ import ( "math/big" "sync" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/x/evm/types" ) func (k *Keeper) FixLog(tx []sdk.Tx, logIndex []int, hasEnterEvmTx []bool, anteErrs []error, resp []abci.ResponseDeliverTx) [][]byte { diff --git a/x/evm/keeper/keeper_test.go b/x/evm/keeper/keeper_test.go index 3f17dbf86..56ea70d5a 100644 --- a/x/evm/keeper/keeper_test.go +++ b/x/evm/keeper/keeper_test.go @@ -1,23 +1,24 @@ package keeper_test import ( - dbm "github.com/okx/okbchain/libs/tm-db" "math/big" "testing" "time" + dbm "github.com/okx/brczero/libs/tm-db" + ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/keeper" - "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/app" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/keeper" + "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" "github.com/spf13/viper" "github.com/stretchr/testify/suite" @@ -35,7 +36,7 @@ type KeeperTestSuite struct { ctx sdk.Context querier sdk.Querier - app *app.OKBChainApp + app *app.BRCZeroApp stateDB *types.CommitStateDB address ethcmn.Address } diff --git a/x/evm/keeper/params.go b/x/evm/keeper/params.go index 3f8d4c2d6..e2f2dfd8b 100644 --- a/x/evm/keeper/params.go +++ b/x/evm/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 1c3f067d1..4a2aad948 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/okx/okbchain/x/evm/types" + "github.com/okx/brczero/x/evm/types" ) func (suite *KeeperTestSuite) TestParams() { diff --git a/x/evm/keeper/proposal.go b/x/evm/keeper/proposal.go index 0d698523a..39a9f37a1 100644 --- a/x/evm/keeper/proposal.go +++ b/x/evm/keeper/proposal.go @@ -4,11 +4,11 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" - sdkGov "github.com/okx/okbchain/x/gov" - govKeeper "github.com/okx/okbchain/x/gov/keeper" - govTypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" + sdkGov "github.com/okx/brczero/x/gov" + govKeeper "github.com/okx/brczero/x/gov/keeper" + govTypes "github.com/okx/brczero/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 5a776ba06..06ddc594f 100644 --- a/x/evm/keeper/proposal_test.go +++ b/x/evm/keeper/proposal_test.go @@ -4,12 +4,12 @@ import ( "time" ethcmn "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/x/evm/types" - govtypes "github.com/okx/okbchain/x/gov/types" - staking_types "github.com/okx/okbchain/x/staking/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/x/evm/types" + govtypes "github.com/okx/brczero/x/gov/types" + staking_types "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" ) diff --git a/x/evm/keeper/querier.go b/x/evm/keeper/querier.go index d47faf244..e966dd02f 100644 --- a/x/evm/keeper/querier.go +++ b/x/evm/keeper/querier.go @@ -6,14 +6,14 @@ import ( "strconv" ethcmn "github.com/ethereum/go-ethereum/common" - apptypes "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/app/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/types" + apptypes "github.com/okx/brczero/app/types" + "github.com/okx/brczero/app/utils" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/types" ) // NewQuerier is the module level router for state queries diff --git a/x/evm/keeper/querier_test.go b/x/evm/keeper/querier_test.go index 6ade5202a..98cb82258 100644 --- a/x/evm/keeper/querier_test.go +++ b/x/evm/keeper/querier_test.go @@ -4,8 +4,8 @@ import ( "fmt" ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/types" "math/big" ) diff --git a/x/evm/keeper/statedb.go b/x/evm/keeper/statedb.go index fb68133a2..71fe30439 100644 --- a/x/evm/keeper/statedb.go +++ b/x/evm/keeper/statedb.go @@ -3,9 +3,9 @@ package keeper import ( "math/big" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/x/evm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ethcmn "github.com/ethereum/go-ethereum/common" ) diff --git a/x/evm/keeper/statedb_mpt_test.go b/x/evm/keeper/statedb_mpt_test.go index a7644f5c0..c6a12d032 100644 --- a/x/evm/keeper/statedb_mpt_test.go +++ b/x/evm/keeper/statedb_mpt_test.go @@ -4,11 +4,11 @@ import ( "fmt" ethcmn "github.com/ethereum/go-ethereum/common" ethcrypto "github.com/ethereum/go-ethereum/crypto" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/types" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (suite *KeeperMptTestSuite) TestCommitStateDB_CommitMpt() { diff --git a/x/evm/keeper/statedb_test.go b/x/evm/keeper/statedb_test.go index a7bc6a868..52936504f 100644 --- a/x/evm/keeper/statedb_test.go +++ b/x/evm/keeper/statedb_test.go @@ -2,17 +2,17 @@ package keeper_test import ( "fmt" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "math/big" ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" ) func (suite *KeeperTestSuite) TestBloomFilter() { diff --git a/x/evm/legacy/v0_16/types.go b/x/evm/legacy/v0_16/types.go index bd34d704b..11506d5fd 100644 --- a/x/evm/legacy/v0_16/types.go +++ b/x/evm/legacy/v0_16/types.go @@ -4,7 +4,7 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type ( diff --git a/x/evm/legacy/v0_18/Migrate.go b/x/evm/legacy/v0_18/Migrate.go index 124bf2694..822dcf0fd 100644 --- a/x/evm/legacy/v0_18/Migrate.go +++ b/x/evm/legacy/v0_18/Migrate.go @@ -1,8 +1,8 @@ package v018 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/legacy/v0_16" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/legacy/v0_16" ) const ( diff --git a/x/evm/legacy/v0_18/types.go b/x/evm/legacy/v0_18/types.go index c9bd58642..a4f5e6552 100644 --- a/x/evm/legacy/v0_18/types.go +++ b/x/evm/legacy/v0_18/types.go @@ -1,8 +1,8 @@ package v018 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/legacy/v0_16" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/legacy/v0_16" ) type ( diff --git a/x/evm/module.go b/x/evm/module.go index e332b8eeb..a4a484093 100644 --- a/x/evm/module.go +++ b/x/evm/module.go @@ -4,15 +4,15 @@ import ( "encoding/json" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/client/cli" - "github.com/okx/okbchain/x/evm/keeper" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/client/cli" + "github.com/okx/brczero/x/evm/keeper" + "github.com/okx/brczero/x/evm/types" "github.com/spf13/cobra" ) diff --git a/x/evm/proposal_handler.go b/x/evm/proposal_handler.go index 6ec4a9f64..1355da194 100644 --- a/x/evm/proposal_handler.go +++ b/x/evm/proposal_handler.go @@ -1,11 +1,11 @@ package evm import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" - govTypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" + govTypes "github.com/okx/brczero/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 66a136a09..59243f9e6 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/okx/okbchain/x/evm" - "github.com/okx/okbchain/x/evm/types" - govtypes "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/evm" + "github.com/okx/brczero/x/evm/types" + govtypes "github.com/okx/brczero/x/gov/types" ) func (suite *EvmTestSuite) TestProposalHandler_ManageContractDeploymentWhitelistProposal() { diff --git a/x/evm/txs/base/base.go b/x/evm/txs/base/base.go index 5b9874f9a..82586708c 100644 --- a/x/evm/txs/base/base.go +++ b/x/evm/txs/base/base.go @@ -5,11 +5,11 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - bam "github.com/okx/okbchain/libs/system/trace" - "github.com/okx/okbchain/x/evm/keeper" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + bam "github.com/okx/brczero/libs/system/trace" + "github.com/okx/brczero/x/evm/keeper" + "github.com/okx/brczero/x/evm/types" ) // Keeper alias of keeper.Keeper, to solve import circle. also evm.Keeper is alias keeper.Keeper diff --git a/x/evm/txs/base/common.go b/x/evm/txs/base/common.go index 84b851225..599199ae0 100644 --- a/x/evm/txs/base/common.go +++ b/x/evm/txs/base/common.go @@ -5,10 +5,10 @@ import ( "sync" "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/evm/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/evm/types" ) var commitStateDBPool = &sync.Pool{ diff --git a/x/evm/txs/base/common_test.go b/x/evm/txs/base/common_test.go index b97261387..6bb87c833 100644 --- a/x/evm/txs/base/common_test.go +++ b/x/evm/txs/base/common_test.go @@ -6,10 +6,10 @@ import ( "testing" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethereumTx "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethereumTx "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" ) func Test_getSender(t *testing.T) { diff --git a/x/evm/txs/check/check.go b/x/evm/txs/check/check.go index fcedea015..d8a96ec0c 100644 --- a/x/evm/txs/check/check.go +++ b/x/evm/txs/check/check.go @@ -1,7 +1,7 @@ package check import ( - "github.com/okx/okbchain/x/evm/txs/base" + "github.com/okx/brczero/x/evm/txs/base" ) type Tx struct { diff --git a/x/evm/txs/deliver/deliver.go b/x/evm/txs/deliver/deliver.go index 07ed887e0..7ff24b4d9 100644 --- a/x/evm/txs/deliver/deliver.go +++ b/x/evm/txs/deliver/deliver.go @@ -4,15 +4,15 @@ import ( "fmt" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/x/evm/watcher" - "github.com/okx/okbchain/app/refund" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - bam "github.com/okx/okbchain/libs/system/trace" - "github.com/okx/okbchain/x/evm/keeper" - "github.com/okx/okbchain/x/evm/txs/base" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app/refund" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + bam "github.com/okx/brczero/libs/system/trace" + "github.com/okx/brczero/x/evm/keeper" + "github.com/okx/brczero/x/evm/txs/base" + "github.com/okx/brczero/x/evm/types" ) type Tx struct { diff --git a/x/evm/txs/factory.go b/x/evm/txs/factory.go index 3bddc5531..9182bb4f9 100644 --- a/x/evm/txs/factory.go +++ b/x/evm/txs/factory.go @@ -2,10 +2,10 @@ package txs import ( "fmt" - "github.com/okx/okbchain/x/evm/txs/base" - "github.com/okx/okbchain/x/evm/txs/check" - "github.com/okx/okbchain/x/evm/txs/deliver" - "github.com/okx/okbchain/x/evm/txs/tracetxlog" + "github.com/okx/brczero/x/evm/txs/base" + "github.com/okx/brczero/x/evm/txs/check" + "github.com/okx/brczero/x/evm/txs/deliver" + "github.com/okx/brczero/x/evm/txs/tracetxlog" ) type factory struct { diff --git a/x/evm/txs/factory_test.go b/x/evm/txs/factory_test.go index a4a157288..f92072cda 100644 --- a/x/evm/txs/factory_test.go +++ b/x/evm/txs/factory_test.go @@ -1,11 +1,11 @@ package txs import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/txs/base" - "github.com/okx/okbchain/x/evm/txs/check" - "github.com/okx/okbchain/x/evm/txs/deliver" - "github.com/okx/okbchain/x/evm/txs/tracetxlog" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/txs/base" + "github.com/okx/brczero/x/evm/txs/check" + "github.com/okx/brczero/x/evm/txs/deliver" + "github.com/okx/brczero/x/evm/txs/tracetxlog" "reflect" "testing" ) diff --git a/x/evm/txs/tracetxlog/tracetxlog.go b/x/evm/txs/tracetxlog/tracetxlog.go index 825e590b4..ef3791e50 100644 --- a/x/evm/txs/tracetxlog/tracetxlog.go +++ b/x/evm/txs/tracetxlog/tracetxlog.go @@ -2,9 +2,9 @@ package tracetxlog import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/txs/base" - "github.com/okx/okbchain/x/evm/txs/check" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/txs/base" + "github.com/okx/brczero/x/evm/txs/check" ) // tx trace tx log depends on check tx diff --git a/x/evm/txs/tx.go b/x/evm/txs/tx.go index 64b9b703e..bae264847 100644 --- a/x/evm/txs/tx.go +++ b/x/evm/txs/tx.go @@ -1,11 +1,11 @@ package txs import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - bam "github.com/okx/okbchain/libs/system/trace" - "github.com/okx/okbchain/x/evm/txs/base" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + bam "github.com/okx/brczero/libs/system/trace" + "github.com/okx/brczero/x/evm/txs/base" + "github.com/okx/brczero/x/evm/types" ) type Tx interface { diff --git a/x/evm/txs/tx_test.go b/x/evm/txs/tx_test.go index bc6d03fb8..a53136208 100644 --- a/x/evm/txs/tx_test.go +++ b/x/evm/txs/tx_test.go @@ -8,12 +8,12 @@ import ( "time" ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/x/evm/txs/base" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/x/evm/txs/base" + "github.com/okx/brczero/x/evm/types" ) var sdkResult sdk.Result diff --git a/x/evm/types/abi_test.go b/x/evm/types/abi_test.go index 731ed3b0b..320769b0e 100644 --- a/x/evm/types/abi_test.go +++ b/x/evm/types/abi_test.go @@ -3,7 +3,7 @@ package types import ( "fmt" "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/okx/okbchain/libs/tendermint/libs/rand" + "github.com/okx/brczero/libs/tendermint/libs/rand" "github.com/stretchr/testify/require" "testing" ) diff --git a/x/evm/types/access_list_test.go b/x/evm/types/access_list_test.go index 019e887ad..3243512f5 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/okx/okbchain/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/ethsecp256k1" ) type AccessListTestSuite struct { diff --git a/x/evm/types/address_list.go b/x/evm/types/address_list.go index 8a50ac906..ccd5d4b6f 100644 --- a/x/evm/types/address_list.go +++ b/x/evm/types/address_list.go @@ -8,7 +8,7 @@ import ( "testing" lru "github.com/hashicorp/golang-lru" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/pkg/errors" "github.com/stretchr/testify/require" ) diff --git a/x/evm/types/address_list_test.go b/x/evm/types/address_list_test.go index 30e97961e..6a533bd33 100644 --- a/x/evm/types/address_list_test.go +++ b/x/evm/types/address_list_test.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/x/evm/types/bloombits.go b/x/evm/types/bloombits.go index 74c8b0eb6..f03bcb6bf 100644 --- a/x/evm/types/bloombits.go +++ b/x/evm/types/bloombits.go @@ -17,8 +17,8 @@ package types import ( "encoding/binary" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" "time" "github.com/ethereum/go-ethereum/common" diff --git a/x/evm/types/chain_config.go b/x/evm/types/chain_config.go index e741c7392..005763370 100644 --- a/x/evm/types/chain_config.go +++ b/x/evm/types/chain_config.go @@ -9,8 +9,8 @@ import ( "gopkg.in/yaml.v2" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/params" diff --git a/x/evm/types/chain_config_test.go b/x/evm/types/chain_config_test.go index 095658985..fcff626d8 100644 --- a/x/evm/types/chain_config_test.go +++ b/x/evm/types/chain_config_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" ) diff --git a/x/evm/types/codec.go b/x/evm/types/codec.go index 0056970e5..a8ee8b316 100644 --- a/x/evm/types/codec.go +++ b/x/evm/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" "github.com/tendermint/go-amino" ) diff --git a/x/evm/types/codec_test.go b/x/evm/types/codec_test.go index 62e39ffff..12aefeab7 100644 --- a/x/evm/types/codec_test.go +++ b/x/evm/types/codec_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" ) diff --git a/x/evm/types/codec_tx_test.go b/x/evm/types/codec_tx_test.go index f1f76550d..636b748a0 100644 --- a/x/evm/types/codec_tx_test.go +++ b/x/evm/types/codec_tx_test.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "math/big" "strings" "testing" @@ -9,9 +9,9 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" ) diff --git a/x/evm/types/contract_verifier.go b/x/evm/types/contract_verifier.go index c6d24d68e..c4ea37f77 100644 --- a/x/evm/types/contract_verifier.go +++ b/x/evm/types/contract_verifier.go @@ -5,7 +5,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/vm" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "math/big" ) diff --git a/x/evm/types/contract_verifier_test.go b/x/evm/types/contract_verifier_test.go index 450a20617..93ed9153a 100644 --- a/x/evm/types/contract_verifier_test.go +++ b/x/evm/types/contract_verifier_test.go @@ -5,8 +5,8 @@ import ( "github.com/ethereum/go-ethereum/common/hexutil" ethstate "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/vm" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" ) func (suite *StateDBTestSuite) TestContractVerifier_Verify() { diff --git a/x/evm/types/decoder.go b/x/evm/types/decoder.go index 0157c56ac..a398981bb 100644 --- a/x/evm/types/decoder.go +++ b/x/evm/types/decoder.go @@ -5,14 +5,14 @@ import ( "fmt" "github.com/golang/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - typestx "github.com/okx/okbchain/libs/cosmos-sdk/types/tx" - ibctxdecoder "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/tendermint/global" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + typestx "github.com/okx/brczero/libs/cosmos-sdk/types/tx" + ibctxdecoder "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/tendermint/global" + "github.com/okx/brczero/libs/tendermint/types" ) const IGNORE_HEIGHT_CHECKING = -1 diff --git a/x/evm/types/errors.go b/x/evm/types/errors.go index 0571e24ea..eb8d20ec0 100644 --- a/x/evm/types/errors.go +++ b/x/evm/types/errors.go @@ -5,8 +5,8 @@ import ( "fmt" ethcmn "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // NOTE: We can't use 1 since that error code is reserved for internal errors. diff --git a/x/evm/types/expected_keepers.go b/x/evm/types/expected_keepers.go index ecfa85959..e013f9128 100644 --- a/x/evm/types/expected_keepers.go +++ b/x/evm/types/expected_keepers.go @@ -1,10 +1,10 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // AccountKeeper defines the expected account keeper interface diff --git a/x/evm/types/genesis_test.go b/x/evm/types/genesis_test.go index 4de8c67b1..0de626596 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/okx/okbchain/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/ethsecp256k1" "github.com/stretchr/testify/require" ) diff --git a/x/evm/types/gu_factor.go b/x/evm/types/gu_factor.go index 2e1cba613..e5e4fd768 100644 --- a/x/evm/types/gu_factor.go +++ b/x/evm/types/gu_factor.go @@ -6,7 +6,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/core/vm" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "math/big" ) diff --git a/x/evm/types/gu_factor_test.go b/x/evm/types/gu_factor_test.go index 665d5582a..2f195f647 100644 --- a/x/evm/types/gu_factor_test.go +++ b/x/evm/types/gu_factor_test.go @@ -2,7 +2,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" "testing" ) diff --git a/x/evm/types/ibcdecoder_test.go b/x/evm/types/ibcdecoder_test.go index 8c0a2ba11..6379c1cec 100644 --- a/x/evm/types/ibcdecoder_test.go +++ b/x/evm/types/ibcdecoder_test.go @@ -1,25 +1,25 @@ package types import ( - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "math/big" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - types3 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/tx" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - types4 "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/libs/ibc-go/testing/mock" - helpers2 "github.com/okx/okbchain/libs/ibc-go/testing/simapp/helpers" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/x/evm/types/testdata" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + types3 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/tx" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + types4 "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/libs/ibc-go/testing/mock" + helpers2 "github.com/okx/brczero/libs/ibc-go/testing/simapp/helpers" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/x/evm/types/testdata" "github.com/stretchr/testify/require" "google.golang.org/protobuf/encoding/protowire" ) diff --git a/x/evm/types/indexer.go b/x/evm/types/indexer.go index 982a18d1d..1f9bd0786 100644 --- a/x/evm/types/indexer.go +++ b/x/evm/types/indexer.go @@ -8,9 +8,9 @@ import ( "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/spf13/viper" ) diff --git a/x/evm/types/indexer_test.go b/x/evm/types/indexer_test.go index 37f4618a3..b086d694e 100644 --- a/x/evm/types/indexer_test.go +++ b/x/evm/types/indexer_test.go @@ -6,11 +6,11 @@ import ( "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/stretchr/testify/require" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" ) func TestIndexer_ProcessSection(t *testing.T) { diff --git a/x/evm/types/interface.go b/x/evm/types/interface.go index acf6ce9f7..b3df45b8b 100644 --- a/x/evm/types/interface.go +++ b/x/evm/types/interface.go @@ -3,7 +3,7 @@ package types import ( "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Event Hooks diff --git a/x/evm/types/journal.go b/x/evm/types/journal.go index f48226b8f..8d8ce1403 100644 --- a/x/evm/types/journal.go +++ b/x/evm/types/journal.go @@ -2,8 +2,8 @@ package types import ( ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ripemd = ethcmn.HexToAddress("0000000000000000000000000000000000000003") diff --git a/x/evm/types/journal_test.go b/x/evm/types/journal_test.go index 3fd2a40ae..1c628ce69 100644 --- a/x/evm/types/journal_test.go +++ b/x/evm/types/journal_test.go @@ -2,28 +2,28 @@ package types import ( "bytes" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" "os" "testing" ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - sdkcodec "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmlog "github.com/okx/okbchain/libs/tendermint/libs/log" - tmdb "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + sdkcodec "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmlog "github.com/okx/brczero/libs/tendermint/libs/log" + tmdb "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/params" "github.com/stretchr/testify/suite" ) diff --git a/x/evm/types/key.go b/x/evm/types/key.go index 8b24e2c53..fea3ec87e 100644 --- a/x/evm/types/key.go +++ b/x/evm/types/key.go @@ -2,7 +2,7 @@ package types import ( ethcmn "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/x/evm/types/logs_test.go b/x/evm/types/logs_test.go index 6e5c22cec..3fb27a903 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/okx/okbchain/app/crypto/ethsecp256k1" + "github.com/okx/brczero/app/crypto/ethsecp256k1" "github.com/stretchr/testify/require" ethcmn "github.com/ethereum/go-ethereum/common" diff --git a/x/evm/types/msg_evm.go b/x/evm/types/msg_evm.go index b0960767e..69b9a421a 100644 --- a/x/evm/types/msg_evm.go +++ b/x/evm/types/msg_evm.go @@ -11,12 +11,12 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" - "github.com/okx/okbchain/app/types" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ante" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/app/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ante" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/tendermint/go-amino" ) diff --git a/x/evm/types/msg_evm_stdtx.go b/x/evm/types/msg_evm_stdtx.go index ec88c6a80..264ae25f6 100644 --- a/x/evm/types/msg_evm_stdtx.go +++ b/x/evm/types/msg_evm_stdtx.go @@ -3,7 +3,7 @@ package types import ( "math/big" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) //___________________std tx______________________ diff --git a/x/evm/types/msg_test.go b/x/evm/types/msg_test.go index 9447078c0..2143630ac 100644 --- a/x/evm/types/msg_test.go +++ b/x/evm/types/msg_test.go @@ -3,7 +3,7 @@ package types import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "math/big" "math/rand" "strings" @@ -11,30 +11,30 @@ import ( "encoding/hex" - ibcfee "github.com/okx/okbchain/libs/ibc-go/modules/apps/29-fee" + ibcfee "github.com/okx/brczero/libs/ibc-go/modules/apps/29-fee" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" - chaincodec "github.com/okx/okbchain/app/codec" + chaincodec "github.com/okx/brczero/app/codec" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/rlp" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - ibctxdecode "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - ibctransfer "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + ibctxdecode "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + ibctransfer "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) func newSdkAddress() sdk.AccAddress { diff --git a/x/evm/types/params.go b/x/evm/types/params.go index fbad384c1..9d44f612b 100644 --- a/x/evm/types/params.go +++ b/x/evm/types/params.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/core/vm" - "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/x/params" ) const ( diff --git a/x/evm/types/proposal.go b/x/evm/types/proposal.go index b72f2efcf..a50eef5ce 100644 --- a/x/evm/types/proposal.go +++ b/x/evm/types/proposal.go @@ -2,11 +2,12 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/system" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/system" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/x/gov/types" ) const ( @@ -373,9 +374,9 @@ func (mp ManageContractMethodBlockedListProposal) String() string { return strings.TrimSpace(builder.String()) } -// FixShortAddr is to fix the short address problem in the OKBC test-net. +// FixShortAddr is to fix the short address problem in the BRCZero test-net. // The normal len(BlockedContract.Address) should be 20, -// but there are some BlockedContract.Address in OKBC test-net that have a length of 4. +// but there are some BlockedContract.Address in BRCZero test-net that have a length of 4. // The fix is to pad the leading bits of the short address with zeros until the length is 20. func (mp *ManageContractMethodBlockedListProposal) FixShortAddr() { for i := 0; i < len(mp.ContractList); i++ { diff --git a/x/evm/types/proposal_test.go b/x/evm/types/proposal_test.go index 4f8ce763a..c46a01915 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/okx/okbchain/x/gov/types" + govtypes "github.com/okx/brczero/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 e8bba7996..04897200b 100644 --- a/x/evm/types/state_object.go +++ b/x/evm/types/state_object.go @@ -14,9 +14,9 @@ import ( ethcrypto "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" lru "github.com/hashicorp/golang-lru" - "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) const keccak256HashSize = 100000 diff --git a/x/evm/types/state_object_mpt.go b/x/evm/types/state_object_mpt.go index 17cc1b4e0..733ff7ff0 100644 --- a/x/evm/types/state_object_mpt.go +++ b/x/evm/types/state_object_mpt.go @@ -4,13 +4,13 @@ import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" ethcmn "github.com/ethereum/go-ethereum/common" ethstate "github.com/ethereum/go-ethereum/core/state" types2 "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/rlp" - "github.com/okx/okbchain/app/types" + "github.com/okx/brczero/app/types" ) const ( diff --git a/x/evm/types/state_transition.go b/x/evm/types/state_transition.go index 4232a1cb3..70193b219 100644 --- a/x/evm/types/state_transition.go +++ b/x/evm/types/state_transition.go @@ -14,11 +14,11 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/vm" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/innertx" - "github.com/okx/okbchain/libs/system/trace" + types2 "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/innertx" + "github.com/okx/brczero/libs/system/trace" ) // StateTransition defines data to transitionDB in evm diff --git a/x/evm/types/state_transition_test.go b/x/evm/types/state_transition_test.go index 3e347032f..b730318db 100644 --- a/x/evm/types/state_transition_test.go +++ b/x/evm/types/state_transition_test.go @@ -5,11 +5,11 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/types" "math/big" ) diff --git a/x/evm/types/statedb.go b/x/evm/types/statedb.go index c0323feda..2b64f1277 100644 --- a/x/evm/types/statedb.go +++ b/x/evm/types/statedb.go @@ -9,22 +9,22 @@ import ( "sync" "github.com/VictoriaMetrics/fastcache" - ethermint "github.com/okx/okbchain/app/types" + ethermint "github.com/okx/brczero/app/types" "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/system/trace" + "github.com/okx/brczero/libs/system/trace" "github.com/ethereum/go-ethereum/common" ethcmn "github.com/ethereum/go-ethereum/common" ethstate "github.com/ethereum/go-ethereum/core/state" ethtypes "github.com/ethereum/go-ethereum/core/types" ethvm "github.com/ethereum/go-ethereum/core/vm" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" ) var ( diff --git a/x/evm/types/statedb_mpt.go b/x/evm/types/statedb_mpt.go index 132aab063..04255ce85 100644 --- a/x/evm/types/statedb_mpt.go +++ b/x/evm/types/statedb_mpt.go @@ -3,16 +3,16 @@ package types import ( "errors" "fmt" - ethermint "github.com/okx/okbchain/app/types" + ethermint "github.com/okx/brczero/app/types" ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/rawdb" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" "github.com/ethereum/go-ethereum/trie" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" ) func (csdb *CommitStateDB) CommitMpt(prefetcher *mpt.TriePrefetcher) (ethcmn.Hash, error) { diff --git a/x/evm/types/statedb_mpt_test.go b/x/evm/types/statedb_mpt_test.go index 94bb80be8..96ed2f886 100644 --- a/x/evm/types/statedb_mpt_test.go +++ b/x/evm/types/statedb_mpt_test.go @@ -3,9 +3,9 @@ package types_test import ( ethcmn "github.com/ethereum/go-ethereum/common" ethcrypto "github.com/ethereum/go-ethereum/crypto" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - dbm "github.com/okx/okbchain/libs/tm-db" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/spf13/viper" "github.com/stretchr/testify/suite" "testing" diff --git a/x/evm/types/statedb_protect.go b/x/evm/types/statedb_protect.go index 0f950e03f..3e4b26a77 100644 --- a/x/evm/types/statedb_protect.go +++ b/x/evm/types/statedb_protect.go @@ -6,9 +6,9 @@ import ( "github.com/ethereum/go-ethereum/core/rawdb" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/rlp" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (csdb *CommitStateDB) ProtectStateDBEnvironment(ctx sdk.Context) { diff --git a/x/evm/types/statedb_protect_test.go b/x/evm/types/statedb_protect_test.go index b00891e09..08f95af6b 100644 --- a/x/evm/types/statedb_protect_test.go +++ b/x/evm/types/statedb_protect_test.go @@ -2,26 +2,28 @@ package types_test import ( "bytes" + "testing" + ethcmn "github.com/ethereum/go-ethereum/common" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/cmd/okbchaind/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/types" "github.com/stretchr/testify/suite" - "testing" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/cmd/brczerod/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/types" ) type StateDB_ProtectTestSuite struct { suite.Suite ctx sdk.Context - app *app.OKBChainApp + app *app.BRCZeroApp stateDB *types.CommitStateDB address ethcmn.Address stateObject types.StateObject diff --git a/x/evm/types/statedb_test.go b/x/evm/types/statedb_test.go index 83900a1ba..c91c02029 100644 --- a/x/evm/types/statedb_test.go +++ b/x/evm/types/statedb_test.go @@ -2,29 +2,32 @@ package types_test import ( "fmt" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/spf13/viper" "math/big" "testing" + "github.com/spf13/viper" + + dbm "github.com/okx/brczero/libs/tm-db" + ethcmn "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/evm/types" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/evm/types" ) type StateDBTestSuite struct { suite.Suite ctx sdk.Context - app *app.OKBChainApp + app *app.BRCZeroApp stateDB *types.CommitStateDB address ethcmn.Address stateObject types.StateObject diff --git a/x/evm/types/storage.go b/x/evm/types/storage.go index 523a65d32..640951477 100644 --- a/x/evm/types/storage.go +++ b/x/evm/types/storage.go @@ -6,7 +6,7 @@ import ( "fmt" ethcmn "github.com/ethereum/go-ethereum/common" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // Storage represents the account Storage map as a slice of single key value diff --git a/x/evm/types/testdata/animal.go b/x/evm/types/testdata/animal.go index e3a48ebbb..67d8112c2 100644 --- a/x/evm/types/testdata/animal.go +++ b/x/evm/types/testdata/animal.go @@ -5,7 +5,7 @@ package testdata import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/gogo/protobuf/proto" ) diff --git a/x/evm/types/testdata/codec.go b/x/evm/types/testdata/codec.go index 902d95d73..192688775 100644 --- a/x/evm/types/testdata/codec.go +++ b/x/evm/types/testdata/codec.go @@ -3,10 +3,10 @@ package testdata import ( amino "github.com/tendermint/go-amino" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" ) func NewTestInterfaceRegistry() types.InterfaceRegistry { diff --git a/x/evm/types/testdata/grpc_query.go b/x/evm/types/testdata/grpc_query.go index 9d7e12e77..1f5a1733d 100644 --- a/x/evm/types/testdata/grpc_query.go +++ b/x/evm/types/testdata/grpc_query.go @@ -6,7 +6,7 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" ) type QueryImpl struct{} diff --git a/x/evm/types/testdata/query.pb.go b/x/evm/types/testdata/query.pb.go index adcd164b8..10954115a 100644 --- a/x/evm/types/testdata/query.pb.go +++ b/x/evm/types/testdata/query.pb.go @@ -6,7 +6,7 @@ package testdata import ( context "context" fmt "fmt" - types "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + types "github.com/okx/brczero/libs/cosmos-sdk/codec/types" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" diff --git a/x/evm/types/testdata/testdata.pb.go b/x/evm/types/testdata/testdata.pb.go index b381a942f..bedb46271 100644 --- a/x/evm/types/testdata/testdata.pb.go +++ b/x/evm/types/testdata/testdata.pb.go @@ -5,7 +5,7 @@ package testdata import ( fmt "fmt" - types "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + types "github.com/okx/brczero/libs/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" diff --git a/x/evm/types/testdata/tx.go b/x/evm/types/testdata/tx.go index 41fd154d0..6b1e478ca 100644 --- a/x/evm/types/testdata/tx.go +++ b/x/evm/types/testdata/tx.go @@ -2,9 +2,9 @@ package testdata import ( "encoding/json" - ibcmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" + ibcmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // KeyTestPubAddr generates a new secp256k1 keypair. diff --git a/x/evm/types/testdata/unknonwnproto.pb.go b/x/evm/types/testdata/unknonwnproto.pb.go index 67e05cca2..c71c9ccf9 100644 --- a/x/evm/types/testdata/unknonwnproto.pb.go +++ b/x/evm/types/testdata/unknonwnproto.pb.go @@ -6,8 +6,8 @@ package testdata import ( encoding_binary "encoding/binary" fmt "fmt" - types "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - tx "github.com/okx/okbchain/libs/cosmos-sdk/types/tx" + types "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + tx "github.com/okx/brczero/libs/cosmos-sdk/types/tx" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" diff --git a/x/evm/types/tracer.go b/x/evm/types/tracer.go index 13e521b7d..acab20261 100644 --- a/x/evm/types/tracer.go +++ b/x/evm/types/tracer.go @@ -12,7 +12,7 @@ import ( "github.com/ethereum/go-ethereum/eth/tracers" "github.com/ethereum/go-ethereum/eth/tracers/logger" json "github.com/json-iterator/go" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type TraceConfig struct { diff --git a/x/evm/types/tx_data.go b/x/evm/types/tx_data.go index 614c11390..0361dcea8 100644 --- a/x/evm/types/tx_data.go +++ b/x/evm/types/tx_data.go @@ -7,7 +7,7 @@ import ( "github.com/tendermint/go-amino" - "github.com/okx/okbchain/app/utils" + "github.com/okx/brczero/app/utils" ethcmn "github.com/ethereum/go-ethereum/common" ) diff --git a/x/evm/types/utils.go b/x/evm/types/utils.go index e16e4e2d9..c2b0f09d6 100644 --- a/x/evm/types/utils.go +++ b/x/evm/types/utils.go @@ -17,8 +17,8 @@ import ( "github.com/tendermint/go-amino" "golang.org/x/crypto/sha3" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) type KV struct { diff --git a/x/evm/types/utils_test.go b/x/evm/types/utils_test.go index ae4e4ebcc..4a8885bd5 100644 --- a/x/evm/types/utils_test.go +++ b/x/evm/types/utils_test.go @@ -12,10 +12,11 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/rlp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/global" "github.com/stretchr/testify/require" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/global" ) func TestEvmDataEncoding(t *testing.T) { @@ -355,7 +356,7 @@ func BenchmarkEthAddressStringer(b *testing.B) { _ = addr.String() } }) - b.Run("okbc stringer", func(b *testing.B) { + b.Run("brczero stringer", func(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { _ = EthAddressStringer(addr).String() @@ -373,7 +374,7 @@ func BenchmarkEthHashStringer(b *testing.B) { _ = h.String() } }) - b.Run("okbc stringer", func(b *testing.B) { + b.Run("brczero stringer", func(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { _ = EthHashStringer(h).String() diff --git a/x/evm/watcher/codec.go b/x/evm/watcher/codec.go index 4958b3bd9..68d85a136 100644 --- a/x/evm/watcher/codec.go +++ b/x/evm/watcher/codec.go @@ -1,10 +1,10 @@ package watcher import ( - cryptocodec "github.com/okx/okbchain/app/crypto/ethsecp256k1" - app "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + cryptocodec "github.com/okx/brczero/app/crypto/ethsecp256k1" + app "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) var WatchCdc *codec.Codec diff --git a/x/evm/watcher/db.go b/x/evm/watcher/db.go index 5b968a1d8..53e355d1c 100644 --- a/x/evm/watcher/db.go +++ b/x/evm/watcher/db.go @@ -7,11 +7,11 @@ import ( "path/filepath" "sync" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - dbm "github.com/okx/okbchain/libs/tm-db" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + dbm "github.com/okx/brczero/libs/tm-db" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/spf13/viper" ) diff --git a/x/evm/watcher/evmtx.go b/x/evm/watcher/evmtx.go index 6534abad8..0229f85cd 100644 --- a/x/evm/watcher/evmtx.go +++ b/x/evm/watcher/evmtx.go @@ -2,7 +2,7 @@ package watcher import ( ethcmn "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/x/evm/types" ) type evmTx struct { diff --git a/x/evm/watcher/infura.go b/x/evm/watcher/infura.go index 432851208..390214480 100644 --- a/x/evm/watcher/infura.go +++ b/x/evm/watcher/infura.go @@ -1,6 +1,6 @@ package watcher -import "github.com/okx/okbchain/x/evm/types" +import "github.com/okx/brczero/x/evm/types" type InfuraKeeper interface { OnSaveTransactionReceipt(*TransactionReceipt) diff --git a/x/evm/watcher/proto/types.proto b/x/evm/watcher/proto/types.proto index b9a4bd3d6..a3f1fbf7b 100644 --- a/x/evm/watcher/proto/types.proto +++ b/x/evm/watcher/proto/types.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package x.evm.watcher.proto; -option go_package = "github.com/okx/okbchain/x/evm/watcher/proto"; +option go_package = "github.com/okx/brczero/x/evm/watcher/proto"; message Transaction { bytes BlockHash = 1; diff --git a/x/evm/watcher/proto_types.go b/x/evm/watcher/proto_types.go index 4a0c8d5a6..177d81c86 100644 --- a/x/evm/watcher/proto_types.go +++ b/x/evm/watcher/proto_types.go @@ -4,7 +4,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" - prototypes "github.com/okx/okbchain/x/evm/watcher/proto" + prototypes "github.com/okx/brczero/x/evm/watcher/proto" ) func transactionToProto(tr *Transaction) *prototypes.Transaction { diff --git a/x/evm/watcher/querier.go b/x/evm/watcher/querier.go index 17e6cd996..8e49a359b 100644 --- a/x/evm/watcher/querier.go +++ b/x/evm/watcher/querier.go @@ -13,12 +13,12 @@ import ( "github.com/gogo/protobuf/proto" lru "github.com/hashicorp/golang-lru" - "github.com/okx/okbchain/app/rpc/namespaces/eth/state" - "github.com/okx/okbchain/app/types" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - prototypes "github.com/okx/okbchain/x/evm/watcher/proto" + "github.com/okx/brczero/app/rpc/namespaces/eth/state" + "github.com/okx/brczero/app/types" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + evmtypes "github.com/okx/brczero/x/evm/types" + prototypes "github.com/okx/brczero/x/evm/watcher/proto" ) const MsgFunctionDisable = "fast query function has been disabled" diff --git a/x/evm/watcher/tx.go b/x/evm/watcher/tx.go index f34f9b471..50628a334 100644 --- a/x/evm/watcher/tx.go +++ b/x/evm/watcher/tx.go @@ -4,10 +4,10 @@ import ( "fmt" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tm "github.com/okx/okbchain/libs/tendermint/abci/types" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tm "github.com/okx/brczero/libs/tendermint/abci/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/x/evm/types" ) type WatchTx interface { diff --git a/x/evm/watcher/tx_watcher.go b/x/evm/watcher/tx_watcher.go index 0c6ddd9ee..da49cab50 100644 --- a/x/evm/watcher/tx_watcher.go +++ b/x/evm/watcher/tx_watcher.go @@ -4,8 +4,8 @@ import ( "sync" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" ) // TxWatcher cache watch data when run tx diff --git a/x/evm/watcher/types.go b/x/evm/watcher/types.go index 569efdefa..7a5bd953e 100644 --- a/x/evm/watcher/types.go +++ b/x/evm/watcher/types.go @@ -16,14 +16,14 @@ import ( "github.com/status-im/keycard-go/hexutils" "github.com/tendermint/go-amino" - app "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/merkle" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - "github.com/okx/okbchain/x/evm/types" + app "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/merkle" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + "github.com/okx/brczero/x/evm/types" ) var ( diff --git a/x/evm/watcher/utils.go b/x/evm/watcher/utils.go index 9f852830a..e990674e0 100644 --- a/x/evm/watcher/utils.go +++ b/x/evm/watcher/utils.go @@ -4,15 +4,15 @@ import ( "math/big" "time" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" - evmtypes "github.com/okx/okbchain/x/evm/types" + evmtypes "github.com/okx/brczero/x/evm/types" ) // NewTransaction returns a transaction that will serialize to the RPC diff --git a/x/evm/watcher/watcher.go b/x/evm/watcher/watcher.go index b3d0b40d5..c42e06b9a 100644 --- a/x/evm/watcher/watcher.go +++ b/x/evm/watcher/watcher.go @@ -7,16 +7,16 @@ import ( "github.com/ethereum/go-ethereum/common" jsoniter "github.com/json-iterator/go" - "github.com/okx/okbchain/app/rpc/namespaces/eth/state" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/libs/tendermint/libs/log" - ctypes "github.com/okx/okbchain/libs/tendermint/rpc/core/types" - tmstate "github.com/okx/okbchain/libs/tendermint/state" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - evmtypes "github.com/okx/okbchain/x/evm/types" + "github.com/okx/brczero/app/rpc/namespaces/eth/state" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/libs/tendermint/libs/log" + ctypes "github.com/okx/brczero/libs/tendermint/rpc/core/types" + tmstate "github.com/okx/brczero/libs/tendermint/state" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/spf13/viper" "github.com/tendermint/go-amino" ) diff --git a/x/evm/watcher/watcher_encoder_test.go b/x/evm/watcher/watcher_encoder_test.go index 716cd2a24..7f5d1d593 100644 --- a/x/evm/watcher/watcher_encoder_test.go +++ b/x/evm/watcher/watcher_encoder_test.go @@ -7,8 +7,8 @@ import ( "testing" jsoniter "github.com/json-iterator/go" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/evm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/evm/types" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" ) diff --git a/x/evm/watcher/watcher_test.go b/x/evm/watcher/watcher_test.go index d8efa60da..208830c66 100644 --- a/x/evm/watcher/watcher_test.go +++ b/x/evm/watcher/watcher_test.go @@ -3,37 +3,40 @@ package watcher_test import ( "encoding/hex" "fmt" - ethcommon "github.com/ethereum/go-ethereum/common" - chaincodec "github.com/okx/okbchain/app/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" "math/big" "os" "strings" "testing" "time" + ethcommon "github.com/ethereum/go-ethereum/common" + + chaincodec "github.com/okx/brczero/app/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + ethcrypto "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/ethereum/go-ethereum/common" ethcmn "github.com/ethereum/go-ethereum/common" jsoniter "github.com/json-iterator/go" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/crypto/tmhash" - "github.com/okx/okbchain/x/evm" - "github.com/okx/okbchain/x/evm/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" "github.com/spf13/viper" "github.com/status-im/keycard-go/hexutils" "github.com/stretchr/testify/require" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/tmhash" + "github.com/okx/brczero/x/evm" + "github.com/okx/brczero/x/evm/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" ) var json = jsoniter.ConfigCompatibleWithStandardLibrary @@ -55,7 +58,7 @@ func calcHash(kvs []KV) []byte { type WatcherTestSt struct { ctx sdk.Context - app *app.OKBChainApp + app *app.BRCZeroApp handler sdk.Handler } diff --git a/x/feesplit/alias.go b/x/feesplit/alias.go index d85889993..9c6cedcaa 100644 --- a/x/feesplit/alias.go +++ b/x/feesplit/alias.go @@ -1,8 +1,8 @@ package feesplit import ( - "github.com/okx/okbchain/x/feesplit/keeper" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/x/feesplit/keeper" + "github.com/okx/brczero/x/feesplit/types" ) const ( diff --git a/x/feesplit/client/cli/query.go b/x/feesplit/client/cli/query.go index e1b5d8b2e..1b33e1edb 100644 --- a/x/feesplit/client/cli/query.go +++ b/x/feesplit/client/cli/query.go @@ -3,14 +3,14 @@ package cli import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/x/feesplit/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/feesplit/client/cli/tx.go b/x/feesplit/client/cli/tx.go index 3a0076b1a..9e25e0a1b 100644 --- a/x/feesplit/client/cli/tx.go +++ b/x/feesplit/client/cli/tx.go @@ -6,18 +6,18 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - fsutils "github.com/okx/okbchain/x/feesplit/client/utils" - "github.com/okx/okbchain/x/feesplit/types" - govTypes "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + fsutils "github.com/okx/brczero/x/feesplit/client/utils" + "github.com/okx/brczero/x/feesplit/types" + govTypes "github.com/okx/brczero/x/gov/types" "github.com/spf13/cobra" ) diff --git a/x/feesplit/client/proposal_handler.go b/x/feesplit/client/proposal_handler.go index 234274f30..28bcf805e 100644 --- a/x/feesplit/client/proposal_handler.go +++ b/x/feesplit/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okx/okbchain/x/feesplit/client/cli" - "github.com/okx/okbchain/x/feesplit/client/rest" - govcli "github.com/okx/okbchain/x/gov/client" + "github.com/okx/brczero/x/feesplit/client/cli" + "github.com/okx/brczero/x/feesplit/client/rest" + govcli "github.com/okx/brczero/x/gov/client" ) var ( diff --git a/x/feesplit/client/rest/rest.go b/x/feesplit/client/rest/rest.go index a634ec688..2ff34c35f 100644 --- a/x/feesplit/client/rest/rest.go +++ b/x/feesplit/client/rest/rest.go @@ -8,13 +8,13 @@ import ( ethcmn "github.com/ethereum/go-ethereum/common" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - comm "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/feesplit/types" - govRest "github.com/okx/okbchain/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + comm "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/feesplit/types" + govRest "github.com/okx/brczero/x/gov/client/rest" ) func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/feesplit/client/utils/utils.go b/x/feesplit/client/utils/utils.go index 4c2db143c..da71b125a 100644 --- a/x/feesplit/client/utils/utils.go +++ b/x/feesplit/client/utils/utils.go @@ -3,9 +3,9 @@ package utils import ( "io/ioutil" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/feesplit/types" ) type FeeSplitSharesProposalJSON struct { diff --git a/x/feesplit/genesis.go b/x/feesplit/genesis.go index 38a7d4a67..8962c6d43 100644 --- a/x/feesplit/genesis.go +++ b/x/feesplit/genesis.go @@ -1,10 +1,10 @@ package feesplit import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/feesplit/keeper" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/x/feesplit/keeper" + "github.com/okx/brczero/x/feesplit/types" ) // InitGenesis import module genesis diff --git a/x/feesplit/genesis_test.go b/x/feesplit/genesis_test.go index b652b9b7c..4c87fb1c5 100644 --- a/x/feesplit/genesis_test.go +++ b/x/feesplit/genesis_test.go @@ -5,19 +5,20 @@ import ( "testing" "time" - "github.com/okx/okbchain/app" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/feesplit" - "github.com/okx/okbchain/x/feesplit/types" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/feesplit" + "github.com/okx/brczero/x/feesplit/types" ) type GenesisTestSuite struct { suite.Suite ctx sdk.Context - app *app.OKBChainApp + app *app.BRCZeroApp genesis types.GenesisState } diff --git a/x/feesplit/handler.go b/x/feesplit/handler.go index 5d51fd3e5..2fa98a802 100644 --- a/x/feesplit/handler.go +++ b/x/feesplit/handler.go @@ -4,10 +4,10 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/feesplit/keeper" - "github.com/okx/okbchain/x/feesplit/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/feesplit/keeper" + "github.com/okx/brczero/x/feesplit/types" ) // NewHandler defines the fees module handler instance diff --git a/x/feesplit/handler_test.go b/x/feesplit/handler_test.go index 65ce80cc0..ac93c8ea6 100644 --- a/x/feesplit/handler_test.go +++ b/x/feesplit/handler_test.go @@ -8,15 +8,16 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/feesplit" - "github.com/okx/okbchain/x/feesplit/types" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/feesplit" + "github.com/okx/brczero/x/feesplit/types" ) type FeeSplitTestSuite struct { @@ -24,7 +25,7 @@ type FeeSplitTestSuite struct { ctx sdk.Context handler sdk.Handler - app *app.OKBChainApp + app *app.BRCZeroApp } func TestFeeSplitTestSuite(t *testing.T) { diff --git a/x/feesplit/keeper/evm_hooks.go b/x/feesplit/keeper/evm_hooks.go index 71b47610d..5c0f9188d 100644 --- a/x/feesplit/keeper/evm_hooks.go +++ b/x/feesplit/keeper/evm_hooks.go @@ -5,9 +5,9 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/feesplit/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/feesplit/types" ) var _ evmtypes.EvmHooks = Hooks{} diff --git a/x/feesplit/keeper/fee_splits.go b/x/feesplit/keeper/fee_splits.go index 4ee472916..b65427f1b 100644 --- a/x/feesplit/keeper/fee_splits.go +++ b/x/feesplit/keeper/fee_splits.go @@ -4,10 +4,10 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/feesplit/types" ) // GetFeeSplits returns all registered FeeSplits. diff --git a/x/feesplit/keeper/fee_splits_test.go b/x/feesplit/keeper/fee_splits_test.go index 4b0c528a4..263757ed1 100644 --- a/x/feesplit/keeper/fee_splits_test.go +++ b/x/feesplit/keeper/fee_splits_test.go @@ -4,9 +4,9 @@ import ( "fmt" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/feesplit/types" ) func (suite *KeeperTestSuite) TestGetFees() { diff --git a/x/feesplit/keeper/keeper.go b/x/feesplit/keeper/keeper.go index c7c04cd77..ded963d2d 100644 --- a/x/feesplit/keeper/keeper.go +++ b/x/feesplit/keeper/keeper.go @@ -5,12 +5,12 @@ import ( "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/feesplit/types" - "github.com/okx/okbchain/x/params" + ethermint "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/feesplit/types" + "github.com/okx/brczero/x/params" ) // Keeper of this module maintains collections of fee splits for contracts diff --git a/x/feesplit/keeper/keeper_test.go b/x/feesplit/keeper/keeper_test.go index 5372563f5..1fb944500 100644 --- a/x/feesplit/keeper/keeper_test.go +++ b/x/feesplit/keeper/keeper_test.go @@ -4,13 +4,14 @@ import ( "testing" "time" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/feesplit/keeper" - "github.com/okx/okbchain/x/feesplit/types" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/feesplit/keeper" + "github.com/okx/brczero/x/feesplit/types" ) var ( @@ -27,7 +28,7 @@ type KeeperTestSuite struct { suite.Suite ctx sdk.Context - app *app.OKBChainApp + app *app.BRCZeroApp querier sdk.Querier } diff --git a/x/feesplit/keeper/params.go b/x/feesplit/keeper/params.go index fad1baa83..8129a9d68 100644 --- a/x/feesplit/keeper/params.go +++ b/x/feesplit/keeper/params.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/x/feesplit/types" ) // GetParamsWithCache returns the total set of fees parameters from cache。 diff --git a/x/feesplit/keeper/params_test.go b/x/feesplit/keeper/params_test.go index 2b747593c..471613cbe 100644 --- a/x/feesplit/keeper/params_test.go +++ b/x/feesplit/keeper/params_test.go @@ -1,6 +1,6 @@ package keeper_test -import "github.com/okx/okbchain/x/feesplit/types" +import "github.com/okx/brczero/x/feesplit/types" func (suite *KeeperTestSuite) TestParams() { params := suite.app.FeeSplitKeeper.GetParams(suite.ctx) diff --git a/x/feesplit/keeper/proposal.go b/x/feesplit/keeper/proposal.go index d50ff58ee..e28eb7870 100644 --- a/x/feesplit/keeper/proposal.go +++ b/x/feesplit/keeper/proposal.go @@ -4,11 +4,11 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/feesplit/types" - sdkGov "github.com/okx/okbchain/x/gov" - govKeeper "github.com/okx/okbchain/x/gov/keeper" - govTypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/feesplit/types" + sdkGov "github.com/okx/brczero/x/gov" + govKeeper "github.com/okx/brczero/x/gov/keeper" + govTypes "github.com/okx/brczero/x/gov/types" ) var _ govKeeper.ProposalHandler = (*Keeper)(nil) diff --git a/x/feesplit/keeper/querier.go b/x/feesplit/keeper/querier.go index 123832bff..491764359 100644 --- a/x/feesplit/keeper/querier.go +++ b/x/feesplit/keeper/querier.go @@ -6,13 +6,13 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/feesplit/types" ) // NewQuerier is the module level router for state queries diff --git a/x/feesplit/keeper/querier_test.go b/x/feesplit/keeper/querier_test.go index 9ef27a9b2..10c3fb15a 100644 --- a/x/feesplit/keeper/querier_test.go +++ b/x/feesplit/keeper/querier_test.go @@ -3,11 +3,11 @@ package keeper_test import ( "fmt" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/feesplit/types" ) func (suite *KeeperTestSuite) TestFeeSplits() { diff --git a/x/feesplit/module.go b/x/feesplit/module.go index 71b4c6e52..77d462c6d 100644 --- a/x/feesplit/module.go +++ b/x/feesplit/module.go @@ -6,15 +6,15 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/feesplit/client/cli" - "github.com/okx/okbchain/x/feesplit/keeper" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/feesplit/client/cli" + "github.com/okx/brczero/x/feesplit/keeper" + "github.com/okx/brczero/x/feesplit/types" ) // type check to ensure the interface is properly implemented diff --git a/x/feesplit/msg_convert.go b/x/feesplit/msg_convert.go index 4b9ba3de3..b6fa72615 100644 --- a/x/feesplit/msg_convert.go +++ b/x/feesplit/msg_convert.go @@ -3,12 +3,12 @@ package feesplit import ( "encoding/json" "errors" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/feesplit/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/feesplit/types" ) var ( diff --git a/x/feesplit/msg_convert_test.go b/x/feesplit/msg_convert_test.go index d86e9fda5..84a200e15 100644 --- a/x/feesplit/msg_convert_test.go +++ b/x/feesplit/msg_convert_test.go @@ -5,8 +5,8 @@ import ( "testing" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/feesplit/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/feesplit/types" "github.com/stretchr/testify/require" ) diff --git a/x/feesplit/proposal_handler.go b/x/feesplit/proposal_handler.go index 6c29cfd16..5ce6657ca 100644 --- a/x/feesplit/proposal_handler.go +++ b/x/feesplit/proposal_handler.go @@ -2,11 +2,11 @@ package feesplit import ( ethcommon "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/feesplit/types" - govTypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/feesplit/types" + govTypes "github.com/okx/brczero/x/gov/types" ) // NewProposalHandler handles "gov" type message in "feesplit" diff --git a/x/feesplit/types/cache.go b/x/feesplit/types/cache.go index 3d9a3d9cb..971673ee4 100644 --- a/x/feesplit/types/cache.go +++ b/x/feesplit/types/cache.go @@ -6,7 +6,7 @@ import ( "github.com/ethereum/go-ethereum/common" lru "github.com/hashicorp/golang-lru" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const cacheSize = 1024 diff --git a/x/feesplit/types/codec.go b/x/feesplit/types/codec.go index 59b58cbda..06f2e647d 100644 --- a/x/feesplit/types/codec.go +++ b/x/feesplit/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" ) // ModuleCdc defines the feesplit module's codec diff --git a/x/feesplit/types/errors.go b/x/feesplit/types/errors.go index ef2f0e63f..bd0d7a3c7 100644 --- a/x/feesplit/types/errors.go +++ b/x/feesplit/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const DefaultCodespace string = ModuleName diff --git a/x/feesplit/types/fee_split.go b/x/feesplit/types/fee_split.go index 79c3bc5c5..5e32e0ddf 100644 --- a/x/feesplit/types/fee_split.go +++ b/x/feesplit/types/fee_split.go @@ -4,8 +4,8 @@ import ( "bytes" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // FeeSplit defines an instance that organizes fee distribution conditions for diff --git a/x/feesplit/types/fee_split_test.go b/x/feesplit/types/fee_split_test.go index fc1dd72f2..552285f5c 100644 --- a/x/feesplit/types/fee_split_test.go +++ b/x/feesplit/types/fee_split_test.go @@ -4,9 +4,9 @@ import ( "testing" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mock" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mock" "github.com/stretchr/testify/suite" ) diff --git a/x/feesplit/types/genesis_test.go b/x/feesplit/types/genesis_test.go index 4ff6aa4c0..2b797c892 100644 --- a/x/feesplit/types/genesis_test.go +++ b/x/feesplit/types/genesis_test.go @@ -5,8 +5,8 @@ import ( "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/suite" ) diff --git a/x/feesplit/types/interfaces.go b/x/feesplit/types/interfaces.go index b23afa767..8cfab6e6e 100644 --- a/x/feesplit/types/interfaces.go +++ b/x/feesplit/types/interfaces.go @@ -1,10 +1,10 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + govtypes "github.com/okx/brczero/x/gov/types" ) // AccountKeeper defines the expected interface needed to retrieve account info. diff --git a/x/feesplit/types/keys.go b/x/feesplit/types/keys.go index 27011c89d..2f05ab54e 100644 --- a/x/feesplit/types/keys.go +++ b/x/feesplit/types/keys.go @@ -1,6 +1,6 @@ package types -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // constants const ( diff --git a/x/feesplit/types/msg.go b/x/feesplit/types/msg.go index fe0c3b1bc..82206ece7 100644 --- a/x/feesplit/types/msg.go +++ b/x/feesplit/types/msg.go @@ -5,8 +5,8 @@ import ( "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/x/feesplit/types/msg_test.go b/x/feesplit/types/msg_test.go index 89a5203f5..e7f54962b 100644 --- a/x/feesplit/types/msg_test.go +++ b/x/feesplit/types/msg_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/suite" - "github.com/okx/okbchain/app/crypto/ethsecp256k1" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/app/crypto/ethsecp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" diff --git a/x/feesplit/types/params.go b/x/feesplit/types/params.go index 8d5d58803..32acfe83f 100644 --- a/x/feesplit/types/params.go +++ b/x/feesplit/types/params.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/params" "gopkg.in/yaml.v2" ) diff --git a/x/feesplit/types/params_test.go b/x/feesplit/types/params_test.go index ecbdb28b9..8ae6169d6 100644 --- a/x/feesplit/types/params_test.go +++ b/x/feesplit/types/params_test.go @@ -3,8 +3,8 @@ package types import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/params" "github.com/stretchr/testify/require" ) diff --git a/x/feesplit/types/proposal.go b/x/feesplit/types/proposal.go index 42cbadecc..56bbbcdd2 100644 --- a/x/feesplit/types/proposal.go +++ b/x/feesplit/types/proposal.go @@ -2,11 +2,11 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/x/feesplit/types/querier.go b/x/feesplit/types/querier.go index 1e8219ab0..47ee186eb 100644 --- a/x/feesplit/types/querier.go +++ b/x/feesplit/types/querier.go @@ -2,8 +2,8 @@ package types import ( _ "github.com/gogo/protobuf/gogoproto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - query "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + query "github.com/okx/brczero/libs/cosmos-sdk/types/query" _ "google.golang.org/genproto/googleapis/api/annotations" ) diff --git a/x/genutil/alias.go b/x/genutil/alias.go index 3dba733f8..a18e541e2 100644 --- a/x/genutil/alias.go +++ b/x/genutil/alias.go @@ -1,10 +1,10 @@ package genutil import ( - "github.com/okx/okbchain/x/genutil/types" + "github.com/okx/brczero/x/genutil/types" - sdkgenutil "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - sdkgenutiltypes "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + sdkgenutil "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + sdkgenutiltypes "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) // const diff --git a/x/genutil/client/cli/alias.go b/x/genutil/client/cli/alias.go index 6be894bfa..4e4e0c51f 100644 --- a/x/genutil/client/cli/alias.go +++ b/x/genutil/client/cli/alias.go @@ -1,7 +1,7 @@ package cli import ( - genutilcli "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/client/cli" + genutilcli "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/client/cli" ) type ( diff --git a/x/genutil/client/cli/collect.go b/x/genutil/client/cli/collect.go index 1295f7793..36064c096 100644 --- a/x/genutil/client/cli/collect.go +++ b/x/genutil/client/cli/collect.go @@ -2,17 +2,17 @@ package cli import ( "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" "path/filepath" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/libs/cli" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - "github.com/okx/okbchain/x/genutil" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + "github.com/okx/brczero/x/genutil" ) const flagGenTxDir = "gentx-dir" diff --git a/x/genutil/client/cli/gentx.go b/x/genutil/client/cli/gentx.go index a07ec9d4c..f2ee9ad99 100644 --- a/x/genutil/client/cli/gentx.go +++ b/x/genutil/client/cli/gentx.go @@ -10,19 +10,19 @@ import ( "os" "path/filepath" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - kbkeys "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/genutil" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + kbkeys "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/genutil" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/x/genutil/client/cli/init.go b/x/genutil/client/cli/init.go index 55077117f..95cd5f3ac 100644 --- a/x/genutil/client/cli/init.go +++ b/x/genutil/client/cli/init.go @@ -3,22 +3,22 @@ package cli import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" "os" "path/filepath" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/cli" - tmos "github.com/okx/okbchain/libs/tendermint/libs/os" - "github.com/okx/okbchain/libs/tendermint/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/cli" + tmos "github.com/okx/brczero/libs/tendermint/libs/os" + "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/x/genutil" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/x/genutil" ) const ( diff --git a/x/genutil/client/cli/migrate.go b/x/genutil/client/cli/migrate.go index 00dc99dd9..b006537db 100644 --- a/x/genutil/client/cli/migrate.go +++ b/x/genutil/client/cli/migrate.go @@ -4,15 +4,15 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - extypes "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - v018 "github.com/okx/okbchain/x/genutil/client/legacy/v0_18" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + extypes "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + v018 "github.com/okx/brczero/x/genutil/client/legacy/v0_18" ) var migrationMap = extypes.MigrationMap{ diff --git a/x/genutil/client/legacy/v0_18/migrate.go b/x/genutil/client/legacy/v0_18/migrate.go index 65f39490e..478273730 100644 --- a/x/genutil/client/legacy/v0_18/migrate.go +++ b/x/genutil/client/legacy/v0_18/migrate.go @@ -1,12 +1,12 @@ package v018 import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - v016evm "github.com/okx/okbchain/x/evm/legacy/v0_16" - v018evm "github.com/okx/okbchain/x/evm/legacy/v0_18" - v011staking "github.com/okx/okbchain/x/staking/legacy/v0_11" - v018staking "github.com/okx/okbchain/x/staking/legacy/v0_18" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + v016evm "github.com/okx/brczero/x/evm/legacy/v0_16" + v018evm "github.com/okx/brczero/x/evm/legacy/v0_18" + v011staking "github.com/okx/brczero/x/staking/legacy/v0_11" + v018staking "github.com/okx/brczero/x/staking/legacy/v0_18" ) // Migrate migrates exported state from v0.16 to a v0.17 genesis state. diff --git a/x/genutil/client/legacy/v0_18/migrate_test.go b/x/genutil/client/legacy/v0_18/migrate_test.go index c674b75f5..8eba6411d 100644 --- a/x/genutil/client/legacy/v0_18/migrate_test.go +++ b/x/genutil/client/legacy/v0_18/migrate_test.go @@ -1,10 +1,10 @@ package v018 import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - v018evm "github.com/okx/okbchain/x/evm/legacy/v0_18" - v018staking "github.com/okx/okbchain/x/staking/legacy/v0_18" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + v018evm "github.com/okx/brczero/x/evm/legacy/v0_18" + v018staking "github.com/okx/brczero/x/staking/legacy/v0_18" "github.com/stretchr/testify/require" "testing" ) diff --git a/x/genutil/collect.go b/x/genutil/collect.go index 2bb442b33..8f8daf85a 100644 --- a/x/genutil/collect.go +++ b/x/genutil/collect.go @@ -12,15 +12,15 @@ import ( "sort" "strings" - stakingtypes "github.com/okx/okbchain/x/staking/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + stakingtypes "github.com/okx/brczero/x/staking/types" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // GenAppStateFromConfig gets the genesis app state from the config diff --git a/x/genutil/genesis.go b/x/genutil/genesis.go index dee98b91a..e8b52f536 100644 --- a/x/genutil/genesis.go +++ b/x/genutil/genesis.go @@ -1,11 +1,11 @@ package genutil import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/genutil/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/genutil/types" ) // InitGenesis - initialize accounts and deliver genesis transactions diff --git a/x/genutil/gentx.go b/x/genutil/gentx.go index a94b288fc..7c17f1047 100644 --- a/x/genutil/gentx.go +++ b/x/genutil/gentx.go @@ -6,13 +6,13 @@ import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - stakingtypes "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + stakingtypes "github.com/okx/brczero/x/staking/types" ) // ValidateAccountInGenesis checks that the provided key has sufficient coins in the genesis accounts diff --git a/x/genutil/module.go b/x/genutil/module.go index eba775825..8d9440a7d 100644 --- a/x/genutil/module.go +++ b/x/genutil/module.go @@ -3,14 +3,14 @@ package genutil import ( "encoding/json" - "github.com/okx/okbchain/x/genutil/types" + "github.com/okx/brczero/x/genutil/types" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/cobra" ) diff --git a/x/genutil/types/alias.go b/x/genutil/types/alias.go index 08a0f3f74..4c09badd7 100644 --- a/x/genutil/types/alias.go +++ b/x/genutil/types/alias.go @@ -1,7 +1,7 @@ package types import ( - sdkgenutiltypes "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" + sdkgenutiltypes "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" ) // const diff --git a/x/genutil/types/codec.go b/x/genutil/types/codec.go index dbaae92a3..9370913e4 100644 --- a/x/genutil/types/codec.go +++ b/x/genutil/types/codec.go @@ -1,11 +1,11 @@ package types import ( - stakingtypes "github.com/okx/okbchain/x/staking/types" + stakingtypes "github.com/okx/brczero/x/staking/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // ModuleCdc defines a generic sealed codec to be used throughout this module diff --git a/x/genutil/types/genesis_state.go b/x/genutil/types/genesis_state.go index 45c767fd0..9b4f7d1ac 100644 --- a/x/genutil/types/genesis_state.go +++ b/x/genutil/types/genesis_state.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - stakingtypes "github.com/okx/okbchain/x/staking/types" + stakingtypes "github.com/okx/brczero/x/staking/types" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" ) // GenesisState defines the raw genesis transaction in JSON diff --git a/x/gov/alias.go b/x/gov/alias.go index 7dd8628ea..55603ec99 100644 --- a/x/gov/alias.go +++ b/x/gov/alias.go @@ -4,8 +4,8 @@ package gov import ( - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/x/gov/ante/ante.go b/x/gov/ante/ante.go index 361d81f92..7d9408cb5 100644 --- a/x/gov/ante/ante.go +++ b/x/gov/ante/ante.go @@ -2,19 +2,19 @@ package ante import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - wasmtypes "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + wasmtypes "github.com/okx/brczero/x/wasm/types" ethcmn "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params" - paramstypes "github.com/okx/okbchain/x/params/types" - stakingkeeper "github.com/okx/okbchain/x/staking/exported" - stakingtypes "github.com/okx/okbchain/x/staking/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params" + paramstypes "github.com/okx/brczero/x/params/types" + stakingkeeper "github.com/okx/brczero/x/staking/exported" + stakingtypes "github.com/okx/brczero/x/staking/types" ) type AnteDecorator struct { diff --git a/x/gov/client/cli/parse.go b/x/gov/client/cli/parse.go index 4aa75f5d9..fb78d152b 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/okx/okbchain/x/gov/client/utils" + govutils "github.com/okx/brczero/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 02bd76f9c..d967d9f3f 100644 --- a/x/gov/client/cli/query.go +++ b/x/gov/client/cli/query.go @@ -8,15 +8,15 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/x/gov/client/utils" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/x/gov/client/utils" + + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/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 c6b0a7f93..d243b5f6a 100644 --- a/x/gov/client/cli/tx.go +++ b/x/gov/client/cli/tx.go @@ -3,22 +3,22 @@ package cli import ( "bufio" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" "strconv" "strings" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" - govutils "github.com/okx/okbchain/x/gov/client/utils" - "github.com/okx/okbchain/x/gov/types" + govutils "github.com/okx/brczero/x/gov/client/utils" + "github.com/okx/brczero/x/gov/types" ) // Proposal flags diff --git a/x/gov/client/proposal_handler.go b/x/gov/client/proposal_handler.go index 399448d93..8d4200152 100644 --- a/x/gov/client/proposal_handler.go +++ b/x/gov/client/proposal_handler.go @@ -1,12 +1,12 @@ package client import ( - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/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 a1aece10a..5ef56016f 100644 --- a/x/gov/client/rest/rest.go +++ b/x/gov/client/rest/rest.go @@ -7,12 +7,12 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - gcutils "github.com/okx/okbchain/x/gov/client/utils" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + gcutils "github.com/okx/brczero/x/gov/client/utils" + "github.com/okx/brczero/x/gov/types" ) // REST Variable names diff --git a/x/gov/client/utils/query.go b/x/gov/client/utils/query.go index 6b00d98a8..78b2de66d 100644 --- a/x/gov/client/utils/query.go +++ b/x/gov/client/utils/query.go @@ -3,10 +3,10 @@ package utils import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/x/gov/client/utils/utils.go b/x/gov/client/utils/utils.go index 0aee092b6..5b756776e 100644 --- a/x/gov/client/utils/utils.go +++ b/x/gov/client/utils/utils.go @@ -1,6 +1,6 @@ package utils -import "github.com/okx/okbchain/x/gov/types" +import "github.com/okx/brczero/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 579432a12..e67b63ec5 100644 --- a/x/gov/endblocker.go +++ b/x/gov/endblocker.go @@ -3,12 +3,12 @@ package gov import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/gov/types" - "github.com/okx/okbchain/x/common/perf" - "github.com/okx/okbchain/x/gov/keeper" + "github.com/okx/brczero/x/common/perf" + "github.com/okx/brczero/x/gov/keeper" ) // EndBlocker called every block, process inflation, update validator set. diff --git a/x/gov/genesis.go b/x/gov/genesis.go index abf1b6c95..6ac5a4fe8 100644 --- a/x/gov/genesis.go +++ b/x/gov/genesis.go @@ -6,9 +6,9 @@ import ( "strconv" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/gov/types" ) // GenesisState - all staking state that must be provided at genesis diff --git a/x/gov/handler.go b/x/gov/handler.go index 665f616b4..ed785e05d 100644 --- a/x/gov/handler.go +++ b/x/gov/handler.go @@ -3,11 +3,11 @@ package gov import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/gov/types" ) // NewHandler handle all "gov" type messages. diff --git a/x/gov/invariants.go b/x/gov/invariants.go index ec82ea161..44a18f73e 100644 --- a/x/gov/invariants.go +++ b/x/gov/invariants.go @@ -3,10 +3,10 @@ package gov import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/gov/types" ) // RegisterInvariants registers all governance invariants diff --git a/x/gov/keeper/deposit.go b/x/gov/keeper/deposit.go index a4c4dab25..e7ca21ba7 100644 --- a/x/gov/keeper/deposit.go +++ b/x/gov/keeper/deposit.go @@ -3,8 +3,8 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov/types" ) // SetDeposit sets the deposit of a specific depositor on a specific proposal diff --git a/x/gov/keeper/expected_keepers.go b/x/gov/keeper/expected_keepers.go index 386de2bf2..79e736a1d 100644 --- a/x/gov/keeper/expected_keepers.go +++ b/x/gov/keeper/expected_keepers.go @@ -1,10 +1,10 @@ package keeper import ( - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - stakingexported "github.com/okx/okbchain/x/staking/exported" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + stakingexported "github.com/okx/brczero/x/staking/exported" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // BankKeeper defines expected bank keeper diff --git a/x/gov/keeper/keeper.go b/x/gov/keeper/keeper.go index 281156a30..9458724fd 100644 --- a/x/gov/keeper/keeper.go +++ b/x/gov/keeper/keeper.go @@ -4,15 +4,15 @@ import ( "fmt" "time" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/staking/exported" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/params" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/staking/exported" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/params" ) // Keeper defines governance keeper diff --git a/x/gov/keeper/proposal.go b/x/gov/keeper/proposal.go index 6607a2295..23b655c70 100644 --- a/x/gov/keeper/proposal.go +++ b/x/gov/keeper/proposal.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 8ae314ebd..e28b3e777 100644 --- a/x/gov/keeper/proposal_handler_router.go +++ b/x/gov/keeper/proposal_handler_router.go @@ -4,9 +4,9 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/gov/types" ) var ( diff --git a/x/gov/keeper/querier.go b/x/gov/keeper/querier.go index 4845ac137..e5de17b0b 100644 --- a/x/gov/keeper/querier.go +++ b/x/gov/keeper/querier.go @@ -1,12 +1,12 @@ package keeper import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/common" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/common" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/gov/types" ) // NewQuerier returns all query handlers diff --git a/x/gov/keeper/router.go b/x/gov/keeper/router.go index 40261ad62..a87b6a84d 100644 --- a/x/gov/keeper/router.go +++ b/x/gov/keeper/router.go @@ -4,7 +4,7 @@ import ( "fmt" "regexp" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/gov/types" ) var ( diff --git a/x/gov/keeper/tally.go b/x/gov/keeper/tally.go index eed4d11b3..06d3e17c9 100644 --- a/x/gov/keeper/tally.go +++ b/x/gov/keeper/tally.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/staking/exported" ) // validatorGovInfo used for tallying diff --git a/x/gov/keeper/vote.go b/x/gov/keeper/vote.go index ac94213f3..0db026347 100644 --- a/x/gov/keeper/vote.go +++ b/x/gov/keeper/vote.go @@ -2,8 +2,8 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov/types" ) // AddVote adds a vote on a specific proposal diff --git a/x/gov/module.go b/x/gov/module.go index 175551f34..c943246df 100644 --- a/x/gov/module.go +++ b/x/gov/module.go @@ -5,18 +5,18 @@ import ( "math/rand" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/gov/client" - "github.com/okx/okbchain/x/gov/client/cli" - "github.com/okx/okbchain/x/gov/client/rest" - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/wasm/watcher" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/gov/client" + "github.com/okx/brczero/x/gov/client/cli" + "github.com/okx/brczero/x/gov/client/rest" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/wasm/watcher" "github.com/spf13/cobra" ) diff --git a/x/gov/module_adapter.go b/x/gov/module_adapter.go index dfcd1224a..f968bd72e 100644 --- a/x/gov/module_adapter.go +++ b/x/gov/module_adapter.go @@ -2,16 +2,16 @@ package gov import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" "github.com/spf13/cobra" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/gov/types" "github.com/grpc-ecosystem/grpc-gateway/runtime" - anytypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - GovCli "github.com/okx/okbchain/x/gov/client/cli" + anytypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + GovCli "github.com/okx/brczero/x/gov/client/cli" ) var ( diff --git a/x/gov/types/codec.go b/x/gov/types/codec.go index 5236389ed..e9824e999 100644 --- a/x/gov/types/codec.go +++ b/x/gov/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" ) // module codec diff --git a/x/gov/types/content.go b/x/gov/types/content.go index 0470ba1f8..fe6ba5398 100644 --- a/x/gov/types/content.go +++ b/x/gov/types/content.go @@ -3,7 +3,7 @@ package types import ( "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Constants pertaining to a Content object diff --git a/x/gov/types/deposit.go b/x/gov/types/deposit.go index 6a6022f87..dd0a65e1d 100644 --- a/x/gov/types/deposit.go +++ b/x/gov/types/deposit.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Deposit diff --git a/x/gov/types/errors.go b/x/gov/types/errors.go index d024f776e..bf38fd2ca 100644 --- a/x/gov/types/errors.go +++ b/x/gov/types/errors.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/x/gov/types/errors_test.go b/x/gov/types/errors_test.go index ce76894c6..1de09b1e2 100644 --- a/x/gov/types/errors_test.go +++ b/x/gov/types/errors_test.go @@ -1,7 +1,7 @@ package types import ( - sdkerror "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerror "github.com/okx/brczero/libs/cosmos-sdk/types/errors" "testing" "github.com/stretchr/testify/require" diff --git a/x/gov/types/keys.go b/x/gov/types/keys.go index 2bb384de8..f6c5bf309 100644 --- a/x/gov/types/keys.go +++ b/x/gov/types/keys.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/x/gov/types/msgs.go b/x/gov/types/msgs.go index bb196e315..0c3bf804c 100644 --- a/x/gov/types/msgs.go +++ b/x/gov/types/msgs.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Governance message types and routes diff --git a/x/gov/types/params.go b/x/gov/types/params.go index 0c6331a83..379097d4d 100644 --- a/x/gov/types/params.go +++ b/x/gov/types/params.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/params/subspace" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/params/subspace" ) // Parameter store key diff --git a/x/gov/types/proposal.go b/x/gov/types/proposal.go index efdcd365b..04ab8af0f 100644 --- a/x/gov/types/proposal.go +++ b/x/gov/types/proposal.go @@ -6,7 +6,7 @@ import ( "strings" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Proposal defines a struct used by the governance module to allow for voting diff --git a/x/gov/types/querier.go b/x/gov/types/querier.go index fd7e46bce..210b8f339 100644 --- a/x/gov/types/querier.go +++ b/x/gov/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // query endpoints supported by the governance Querier diff --git a/x/gov/types/vote.go b/x/gov/types/vote.go index 04898e62a..4496a1afe 100644 --- a/x/gov/types/vote.go +++ b/x/gov/types/vote.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Vote diff --git a/x/gov/ut/deposit_test.go b/x/gov/ut/deposit_test.go index e8e8cc3c6..90f301487 100644 --- a/x/gov/ut/deposit_test.go +++ b/x/gov/ut/deposit_test.go @@ -4,10 +4,10 @@ import ( ethcmm "github.com/ethereum/go-ethereum/common" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params" - paramsTypes "github.com/okx/okbchain/x/params/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params" + paramsTypes "github.com/okx/brczero/x/params/types" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/endblocker_test.go b/x/gov/ut/endblocker_test.go index fe1979f2b..4ed42caf0 100644 --- a/x/gov/ut/endblocker_test.go +++ b/x/gov/ut/endblocker_test.go @@ -4,12 +4,12 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params" - paramsTypes "github.com/okx/okbchain/x/params/types" - "github.com/okx/okbchain/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params" + paramsTypes "github.com/okx/brczero/x/params/types" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/genesis_test.go b/x/gov/ut/genesis_test.go index 85a0677f9..5290ee079 100644 --- a/x/gov/ut/genesis_test.go +++ b/x/gov/ut/genesis_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/handler_test.go b/x/gov/ut/handler_test.go index 406c1a5fb..9dea7c6c6 100644 --- a/x/gov/ut/handler_test.go +++ b/x/gov/ut/handler_test.go @@ -4,11 +4,11 @@ import ( ethcmm "github.com/ethereum/go-ethereum/common" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/cli/flags" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/cli/flags" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/invariants_test.go b/x/gov/ut/invariants_test.go index 6e3b76a42..0ba148888 100644 --- a/x/gov/ut/invariants_test.go +++ b/x/gov/ut/invariants_test.go @@ -3,9 +3,9 @@ package ut import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/keeper_test.go b/x/gov/ut/keeper_test.go index 93ef81619..79b813345 100644 --- a/x/gov/ut/keeper_test.go +++ b/x/gov/ut/keeper_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/module_test.go b/x/gov/ut/module_test.go index 96e28e28e..96edef93c 100644 --- a/x/gov/ut/module_test.go +++ b/x/gov/ut/module_test.go @@ -3,20 +3,20 @@ package ut import ( "testing" - "github.com/okx/okbchain/x/gov" - - chaincodec "github.com/okx/okbchain/app/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - cliLcd "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - ibctransfer "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/gov/client" - "github.com/okx/okbchain/x/gov/client/rest" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/gov" + + chaincodec "github.com/okx/brczero/app/codec" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + cliLcd "github.com/okx/brczero/libs/cosmos-sdk/client/lcd" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + ibctransfer "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/gov/client" + "github.com/okx/brczero/x/gov/client/rest" + "github.com/okx/brczero/x/gov/types" "github.com/spf13/cobra" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/proposal_handler_router_test.go b/x/gov/ut/proposal_handler_router_test.go index fe519b652..d6e25a702 100644 --- a/x/gov/ut/proposal_handler_router_test.go +++ b/x/gov/ut/proposal_handler_router_test.go @@ -3,8 +3,8 @@ package ut import ( "testing" - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/proposal_test.go b/x/gov/ut/proposal_test.go index 3a98ca37c..159a5880a 100644 --- a/x/gov/ut/proposal_test.go +++ b/x/gov/ut/proposal_test.go @@ -3,8 +3,8 @@ package ut import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/querier_test.go b/x/gov/ut/querier_test.go index ec36610e1..5ee04455e 100644 --- a/x/gov/ut/querier_test.go +++ b/x/gov/ut/querier_test.go @@ -4,13 +4,13 @@ import ( "strings" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/cli/flags" - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/cli/flags" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/tally_test.go b/x/gov/ut/tally_test.go index 06708785e..5cab17c18 100644 --- a/x/gov/ut/tally_test.go +++ b/x/gov/ut/tally_test.go @@ -4,12 +4,12 @@ import ( "testing" "time" - "github.com/okx/okbchain/x/gov/keeper" + "github.com/okx/brczero/x/gov/keeper" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/staking" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/test_common.go b/x/gov/ut/test_common.go index 258179514..cbe1f5a04 100644 --- a/x/gov/ut/test_common.go +++ b/x/gov/ut/test_common.go @@ -2,30 +2,30 @@ package ut import ( "bytes" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "strconv" "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/gov/keeper" - "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/staking" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/gov/keeper" + "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/staking" "github.com/stretchr/testify/require" ) diff --git a/x/gov/ut/vote_test.go b/x/gov/ut/vote_test.go index 82efd0b51..434b65410 100644 --- a/x/gov/ut/vote_test.go +++ b/x/gov/ut/vote_test.go @@ -4,10 +4,10 @@ import ( "fmt" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/x/gov/types" ) func TestKeeper_AddVote(t *testing.T) { diff --git a/x/icamauth/client/cli/query.go b/x/icamauth/client/cli/query.go index ffaa2a110..6d1ad7816 100644 --- a/x/icamauth/client/cli/query.go +++ b/x/icamauth/client/cli/query.go @@ -1,12 +1,12 @@ package cli import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/x/icamauth/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/x/icamauth/types" "github.com/spf13/cobra" ) diff --git a/x/icamauth/client/cli/tx.go b/x/icamauth/client/cli/tx.go index 54efdbbd1..d77a257e6 100644 --- a/x/icamauth/client/cli/tx.go +++ b/x/icamauth/client/cli/tx.go @@ -5,18 +5,18 @@ import ( "fmt" "io/ioutil" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/client" - clicontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/icamauth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + + "github.com/okx/brczero/libs/cosmos-sdk/client" + clicontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + types2 "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/icamauth/types" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/x/icamauth/handler.go b/x/icamauth/handler.go index d5f158184..f76eccdb0 100644 --- a/x/icamauth/handler.go +++ b/x/icamauth/handler.go @@ -3,10 +3,10 @@ package icamauth import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/icamauth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/icamauth/types" ) // NewHandler returns sdk.Handler for IBC token transfer module messages diff --git a/x/icamauth/ibc_module.go b/x/icamauth/ibc_module.go index f5e57144d..2c7add3f3 100644 --- a/x/icamauth/ibc_module.go +++ b/x/icamauth/ibc_module.go @@ -1,14 +1,14 @@ package icamauth import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/x/icamauth/keeper" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/x/icamauth/keeper" ) var _ porttypes.IBCModule = IBCModule{} diff --git a/x/icamauth/keeper/grpc_query.go b/x/icamauth/keeper/grpc_query.go index 9ccc35e7d..efc2a987d 100644 --- a/x/icamauth/keeper/grpc_query.go +++ b/x/icamauth/keeper/grpc_query.go @@ -3,9 +3,9 @@ package keeper import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - "github.com/okx/okbchain/x/icamauth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + "github.com/okx/brczero/x/icamauth/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/icamauth/keeper/keeper.go b/x/icamauth/keeper/keeper.go index 746b92f17..f37d8e84a 100644 --- a/x/icamauth/keeper/keeper.go +++ b/x/icamauth/keeper/keeper.go @@ -3,14 +3,14 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - icacontrollerkeeper "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/icamauth/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + icacontrollerkeeper "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/controller/keeper" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/icamauth/types" ) type Keeper struct { diff --git a/x/icamauth/keeper/msg_server.go b/x/icamauth/keeper/msg_server.go index 21bea5d7c..4c9435927 100644 --- a/x/icamauth/keeper/msg_server.go +++ b/x/icamauth/keeper/msg_server.go @@ -4,13 +4,13 @@ import ( "context" "time" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - icatypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/27-interchain-accounts/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/x/icamauth/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + icatypes "github.com/okx/brczero/libs/ibc-go/modules/apps/27-interchain-accounts/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + "github.com/okx/brczero/x/icamauth/types" ) var _ types.MsgServer = msgServer{} diff --git a/x/icamauth/module.go b/x/icamauth/module.go index ff4835b92..00e9a4d10 100644 --- a/x/icamauth/module.go +++ b/x/icamauth/module.go @@ -4,20 +4,20 @@ import ( "context" "encoding/json" - "github.com/okx/okbchain/x/icamauth/keeper" + "github.com/okx/brczero/x/icamauth/keeper" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/icamauth/client/cli" + "github.com/okx/brczero/x/icamauth/client/cli" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/x/icamauth/types" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/x/icamauth/types" "github.com/spf13/cobra" ) diff --git a/x/icamauth/types/codec.go b/x/icamauth/types/codec.go index c0b9c722d..6606a7f14 100644 --- a/x/icamauth/types/codec.go +++ b/x/icamauth/types/codec.go @@ -1,10 +1,10 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - cdctypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + cdctypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" ) var ( diff --git a/x/icamauth/types/errors.go b/x/icamauth/types/errors.go index 5e59f3b79..b9a99a47d 100644 --- a/x/icamauth/types/errors.go +++ b/x/icamauth/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/x/icamauth/types/msgs.go b/x/icamauth/types/msgs.go index cd091c3d7..e139b8510 100644 --- a/x/icamauth/types/msgs.go +++ b/x/icamauth/types/msgs.go @@ -4,13 +4,13 @@ import ( fmt "fmt" "strings" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/common" + "github.com/okx/brczero/libs/ibc-go/modules/apps/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" proto "github.com/gogo/protobuf/proto" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/x/icamauth/types/tx.pb.go b/x/icamauth/types/tx.pb.go index b75b0abd8..79ee13e1b 100644 --- a/x/icamauth/types/tx.pb.go +++ b/x/icamauth/types/tx.pb.go @@ -10,7 +10,7 @@ import ( math "math" math_bits "math/bits" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" diff --git a/x/infura/alias.go b/x/infura/alias.go index 1899e6611..91d9b46fb 100644 --- a/x/infura/alias.go +++ b/x/infura/alias.go @@ -1,6 +1,6 @@ package infura -import "github.com/okx/okbchain/x/infura/types" +import "github.com/okx/brczero/x/infura/types" const ( ModuleName = types.ModuleName diff --git a/x/infura/beginblocker.go b/x/infura/beginblocker.go index ec31de525..34fdacbcb 100644 --- a/x/infura/beginblocker.go +++ b/x/infura/beginblocker.go @@ -1,7 +1,7 @@ package infura import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // BeginBlocker runs the logic of BeginBlocker with version 0. diff --git a/x/infura/cache.go b/x/infura/cache.go index 36d15868c..466078315 100644 --- a/x/infura/cache.go +++ b/x/infura/cache.go @@ -1,8 +1,8 @@ package infura import ( - evmtypes "github.com/okx/okbchain/x/evm/types" - evm "github.com/okx/okbchain/x/evm/watcher" + evmtypes "github.com/okx/brczero/x/evm/types" + evm "github.com/okx/brczero/x/evm/watcher" ) const defaultCacheCap = 2000 diff --git a/x/infura/distrlock/redis_distr_state_lock.go b/x/infura/distrlock/redis_distr_state_lock.go index 8a1b054a1..963ec9e71 100644 --- a/x/infura/distrlock/redis_distr_state_lock.go +++ b/x/infura/distrlock/redis_distr_state_lock.go @@ -5,7 +5,7 @@ import ( "time" "github.com/go-redis/redis/v8" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" ) var unlockScript = redis.NewScript(` diff --git a/x/infura/endblocker.go b/x/infura/endblocker.go index 966ded2c8..589e0da3f 100644 --- a/x/infura/endblocker.go +++ b/x/infura/endblocker.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func EndBlocker(ctx sdk.Context, k Keeper) { diff --git a/x/infura/engine.go b/x/infura/engine.go index 209d75618..2d3f841d7 100644 --- a/x/infura/engine.go +++ b/x/infura/engine.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/infura/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/infura/types" "gorm.io/driver/mysql" "gorm.io/gorm" "gorm.io/gorm/logger" diff --git a/x/infura/expected_keeper.go b/x/infura/expected_keeper.go index 226005ca3..b24efadfa 100644 --- a/x/infura/expected_keeper.go +++ b/x/infura/expected_keeper.go @@ -1,6 +1,6 @@ package infura -import evm "github.com/okx/okbchain/x/evm/watcher" +import evm "github.com/okx/brczero/x/evm/watcher" type EvmKeeper interface { SetObserverKeeper(keeper evm.InfuraKeeper) diff --git a/x/infura/keeper.go b/x/infura/keeper.go index f750e9894..62334bf44 100644 --- a/x/infura/keeper.go +++ b/x/infura/keeper.go @@ -1,10 +1,10 @@ package infura import ( - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/common/monitor" - evmtypes "github.com/okx/okbchain/x/evm/types" - evm "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/common/monitor" + evmtypes "github.com/okx/brczero/x/evm/types" + evm "github.com/okx/brczero/x/evm/watcher" ) // nolint diff --git a/x/infura/module.go b/x/infura/module.go index a3c22d882..51a961607 100644 --- a/x/infura/module.go +++ b/x/infura/module.go @@ -4,11 +4,11 @@ import ( "encoding/json" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/cobra" ) diff --git a/x/infura/stream.go b/x/infura/stream.go index f811958cd..ed1f81e2b 100644 --- a/x/infura/stream.go +++ b/x/infura/stream.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/viper" "github.com/google/uuid" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/infura/distrlock" - "github.com/okx/okbchain/x/infura/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/infura/distrlock" + "github.com/okx/brczero/x/infura/types" ) const ( diff --git a/x/infura/task.go b/x/infura/task.go index 8ead2ac51..88945571a 100644 --- a/x/infura/task.go +++ b/x/infura/task.go @@ -3,7 +3,7 @@ package infura import ( "encoding/json" - "github.com/okx/okbchain/x/infura/types" + "github.com/okx/brczero/x/infura/types" ) type TaskConst int diff --git a/x/infura/types/types.go b/x/infura/types/types.go index 006d8d49d..e1dc95e6f 100644 --- a/x/infura/types/types.go +++ b/x/infura/types/types.go @@ -3,10 +3,10 @@ package types import ( "time" - evmtypes "github.com/okx/okbchain/x/evm/types" + evmtypes "github.com/okx/brczero/x/evm/types" "github.com/ethereum/go-ethereum/common/hexutil" - evm "github.com/okx/okbchain/x/evm/watcher" + evm "github.com/okx/brczero/x/evm/watcher" "gorm.io/gorm" ) diff --git a/x/params/alias.go b/x/params/alias.go index 12fed7822..75387ed40 100644 --- a/x/params/alias.go +++ b/x/params/alias.go @@ -1,8 +1,8 @@ package params import ( - sdkparams "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/x/params/types" + sdkparams "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/x/params/types" ) // const diff --git a/x/params/client/cli/commit_upgrade.go b/x/params/client/cli/commit_upgrade.go index 741e81bb4..97024b26e 100644 --- a/x/params/client/cli/commit_upgrade.go +++ b/x/params/client/cli/commit_upgrade.go @@ -6,15 +6,15 @@ import ( "os" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - govTypes "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + govTypes "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params/types" "github.com/spf13/cobra" ) diff --git a/x/params/client/cli/query.go b/x/params/client/cli/query.go index e695530ad..ba2d85da3 100644 --- a/x/params/client/cli/query.go +++ b/x/params/client/cli/query.go @@ -2,14 +2,16 @@ package cli import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" "strings" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + + "github.com/okx/brczero/x/params/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" "github.com/spf13/cobra" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // GetQueryCmd returns the cli query commands for this module @@ -36,7 +38,7 @@ func GetCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command { Short: "Query parameters of params", Long: strings.TrimSpace(`Query parameters of params: -$ okbchaincli query params params +$ brczerocli query params params `), Args: cobra.NoArgs, RunE: func(_ *cobra.Command, _ []string) error { diff --git a/x/params/client/cli/query_upgrade.go b/x/params/client/cli/query_upgrade.go index 213395305..d27a71b5a 100644 --- a/x/params/client/cli/query_upgrade.go +++ b/x/params/client/cli/query_upgrade.go @@ -4,10 +4,11 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/x/params/types" "github.com/spf13/cobra" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/x/params/types" ) func GetCmdQueryUpgrade(queryRoute string, cdc *codec.Codec) *cobra.Command { @@ -17,7 +18,7 @@ func GetCmdQueryUpgrade(queryRoute string, cdc *codec.Codec) *cobra.Command { Short: "Query info of upgrade", Long: strings.TrimSpace(`Query info of a upgrade, query all upgrade if 'name' is omitted: -$ okbchaincli query params upgrade +$ brczerocli query params upgrade `), RunE: func(_ *cobra.Command, args []string) error { cliCtx := context.NewCLIContext().WithCodec(cdc) diff --git a/x/params/client/cli/tx.go b/x/params/client/cli/tx.go index f052e6a06..84630a60f 100644 --- a/x/params/client/cli/tx.go +++ b/x/params/client/cli/tx.go @@ -3,20 +3,20 @@ package cli import ( "bufio" "fmt" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" "github.com/spf13/cobra" - govTypes "github.com/okx/okbchain/x/gov/types" - paramscutils "github.com/okx/okbchain/x/params/client/utils" - "github.com/okx/okbchain/x/params/types" + govTypes "github.com/okx/brczero/x/gov/types" + paramscutils "github.com/okx/brczero/x/params/client/utils" + "github.com/okx/brczero/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 16c7debc3..3d9d501da 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/okx/okbchain/x/gov/client" - "github.com/okx/okbchain/x/params/client/cli" - "github.com/okx/okbchain/x/params/client/rest" + govclient "github.com/okx/brczero/x/gov/client" + "github.com/okx/brczero/x/params/client/cli" + "github.com/okx/brczero/x/params/client/rest" ) // ProposalHandler is the param change proposal handler in cmsdk diff --git a/x/params/client/rest/paramter_change_proposal.go b/x/params/client/rest/paramter_change_proposal.go index f536829ea..5b9b248e8 100644 --- a/x/params/client/rest/paramter_change_proposal.go +++ b/x/params/client/rest/paramter_change_proposal.go @@ -3,14 +3,14 @@ package rest import ( "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/x/gov" - govrest "github.com/okx/okbchain/x/gov/client/rest" - paramscutils "github.com/okx/okbchain/x/params/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/x/gov" + govrest "github.com/okx/brczero/x/gov/client/rest" + paramscutils "github.com/okx/brczero/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/client/rest/upgrade_proposal.go b/x/params/client/rest/upgrade_proposal.go index 176db714b..99c57576f 100644 --- a/x/params/client/rest/upgrade_proposal.go +++ b/x/params/client/rest/upgrade_proposal.go @@ -3,13 +3,13 @@ package rest import ( "net/http" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/gov" - govrest "github.com/okx/okbchain/x/gov/client/rest" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/gov" + govrest "github.com/okx/brczero/x/gov/client/rest" + "github.com/okx/brczero/x/params/types" ) // UpgradeProposalReq defines a upgrade proposal request body diff --git a/x/params/client/utils/utils.go b/x/params/client/utils/utils.go index 7c553c974..47862bf9f 100644 --- a/x/params/client/utils/utils.go +++ b/x/params/client/utils/utils.go @@ -4,10 +4,10 @@ import ( "encoding/json" "io/ioutil" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) type ( diff --git a/x/params/codec.go b/x/params/codec.go index aa44c7669..95991bacb 100644 --- a/x/params/codec.go +++ b/x/params/codec.go @@ -1,9 +1,9 @@ package params import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" + "github.com/okx/brczero/x/params/types" ) // ModuleCdc is the codec of module diff --git a/x/params/expected_keepers.go b/x/params/expected_keepers.go index 28cc786ab..afa7be5b4 100644 --- a/x/params/expected_keepers.go +++ b/x/params/expected_keepers.go @@ -1,7 +1,7 @@ package params import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // BankKeeper shows the expected action of bank keeper diff --git a/x/params/keeper.go b/x/params/keeper.go index 4ceca06a4..bbc14ee2f 100644 --- a/x/params/keeper.go +++ b/x/params/keeper.go @@ -3,12 +3,12 @@ package params import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - stypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkparams "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + stypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkparams "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/params/types" ) // Keeper is the struct of params keeper diff --git a/x/params/keeper_test.go b/x/params/keeper_test.go index c98b410c0..b087514c9 100644 --- a/x/params/keeper_test.go +++ b/x/params/keeper_test.go @@ -1,15 +1,15 @@ package params import ( - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/x/params/types" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmdb "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmdb "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/suite" ) diff --git a/x/params/keeper_upgrade.go b/x/params/keeper_upgrade.go index afa7227af..60b8cc4a4 100644 --- a/x/params/keeper_upgrade.go +++ b/x/params/keeper_upgrade.go @@ -3,8 +3,8 @@ package params import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/params/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/params/types" ) // ClaimReadyForUpgrade tells Keeper that someone has get ready for the upgrade. diff --git a/x/params/keeper_upgrade_test.go b/x/params/keeper_upgrade_test.go index 65dfc2593..0c6767e9f 100644 --- a/x/params/keeper_upgrade_test.go +++ b/x/params/keeper_upgrade_test.go @@ -5,13 +5,13 @@ import ( "reflect" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmdb "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/store" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmdb "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/params/types" "github.com/stretchr/testify/suite" ) diff --git a/x/params/module.go b/x/params/module.go index d9bcdedce..c87ea4be7 100644 --- a/x/params/module.go +++ b/x/params/module.go @@ -3,20 +3,20 @@ package params import ( "encoding/json" "fmt" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" "math/rand" - "github.com/okx/okbchain/x/params/client/cli" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/x/params/client/cli" + "github.com/okx/brczero/x/params/types" "github.com/gorilla/mux" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) var ( diff --git a/x/params/proposal_handler.go b/x/params/proposal_handler.go index 96e3681f4..4aac9dd67 100644 --- a/x/params/proposal_handler.go +++ b/x/params/proposal_handler.go @@ -5,12 +5,12 @@ import ( "math" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - sdkparams "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/x/common" - govtypes "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + sdkparams "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/x/common" + govtypes "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params/types" ) // NewParamChangeProposalHandler returns the rollback function of the param proposal handler diff --git a/x/params/proposal_handler_test.go b/x/params/proposal_handler_test.go index 7f47563c3..112db9508 100644 --- a/x/params/proposal_handler_test.go +++ b/x/params/proposal_handler_test.go @@ -4,18 +4,18 @@ import ( "fmt" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmdb "github.com/okx/okbchain/libs/tm-db" - govtypes "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmdb "github.com/okx/brczero/libs/tm-db" + govtypes "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params/types" "github.com/stretchr/testify/suite" ) diff --git a/x/params/querier.go b/x/params/querier.go index 0d6286e32..bd2acd827 100644 --- a/x/params/querier.go +++ b/x/params/querier.go @@ -2,12 +2,12 @@ package params import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/x/params/types" ) // NewQuerier returns all query handlers diff --git a/x/params/subspace/alias.go b/x/params/subspace/alias.go index 601684263..05cd4328e 100644 --- a/x/params/subspace/alias.go +++ b/x/params/subspace/alias.go @@ -1,7 +1,7 @@ package subspace import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" ) type ( diff --git a/x/params/types/alias.go b/x/params/types/alias.go index ab8bd8095..4e4554cf8 100644 --- a/x/params/types/alias.go +++ b/x/params/types/alias.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/types" ) type ( diff --git a/x/params/types/errors.go b/x/params/types/errors.go index 5d661b2ee..be65da4f1 100644 --- a/x/params/types/errors.go +++ b/x/params/types/errors.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // Param module codespace constants diff --git a/x/params/types/parameter_change_proposal.go b/x/params/types/parameter_change_proposal.go index d1e43033f..4962d822a 100644 --- a/x/params/types/parameter_change_proposal.go +++ b/x/params/types/parameter_change_proposal.go @@ -2,15 +2,15 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/types" - govtypes "github.com/okx/okbchain/x/gov/types" + govtypes "github.com/okx/brczero/x/gov/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkparams "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkparams "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) // Assert ParameterChangeProposal implements govtypes.Content at compile-time diff --git a/x/params/types/params.go b/x/params/types/params.go index 4b425b8f7..047781025 100644 --- a/x/params/types/params.go +++ b/x/params/types/params.go @@ -4,12 +4,12 @@ import ( "fmt" "time" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkparams "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkparams "github.com/okx/brczero/libs/cosmos-sdk/x/params" ) const ( diff --git a/x/params/types/params_block.go b/x/params/types/params_block.go index 5d5534002..28b020398 100644 --- a/x/params/types/params_block.go +++ b/x/params/types/params_block.go @@ -2,8 +2,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" ) const ( diff --git a/x/params/types/params_gas.go b/x/params/types/params_gas.go index a881a7337..78f8ce3e5 100644 --- a/x/params/types/params_gas.go +++ b/x/params/types/params_gas.go @@ -2,10 +2,10 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params/subspace" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/libs/cosmos-sdk/x/params/subspace" + "github.com/okx/brczero/x/common" - stypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + stypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" ) const ( diff --git a/x/params/types/upgrade_cache.go b/x/params/types/upgrade_cache.go index 766ca8dbf..df08cb098 100644 --- a/x/params/types/upgrade_cache.go +++ b/x/params/types/upgrade_cache.go @@ -4,10 +4,10 @@ import ( "fmt" "sync" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" ) var ( diff --git a/x/params/types/upgrade_cache_test.go b/x/params/types/upgrade_cache_test.go index 1cfc0a21b..27cc2e4b3 100644 --- a/x/params/types/upgrade_cache_test.go +++ b/x/params/types/upgrade_cache_test.go @@ -4,14 +4,14 @@ import ( "fmt" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/system" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmdb "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/system" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmdb "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/suite" ) diff --git a/x/params/types/upgrade_proposal.go b/x/params/types/upgrade_proposal.go index d2866eed2..3221f6e41 100644 --- a/x/params/types/upgrade_proposal.go +++ b/x/params/types/upgrade_proposal.go @@ -2,12 +2,12 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkgovtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkgovtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + govtypes "github.com/okx/brczero/x/gov/types" ) type UpgradeStatus uint32 diff --git a/x/params/upgrade_executor.go b/x/params/upgrade_executor.go index 696399501..0496dfe12 100644 --- a/x/params/upgrade_executor.go +++ b/x/params/upgrade_executor.go @@ -4,10 +4,10 @@ import ( "fmt" "math" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - govtypes "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + govtypes "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params/types" ) func NewUpgradeProposalHandler(k *Keeper) govtypes.Handler { diff --git a/x/params/upgrade_executor_test.go b/x/params/upgrade_executor_test.go index 089fe130b..e1ec61c77 100644 --- a/x/params/upgrade_executor_test.go +++ b/x/params/upgrade_executor_test.go @@ -5,14 +5,14 @@ import ( "math" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmdb "github.com/okx/okbchain/libs/tm-db" - govtypes "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params/types" + "github.com/okx/brczero/libs/cosmos-sdk/store" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmdb "github.com/okx/brczero/libs/tm-db" + govtypes "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/suite" ) diff --git a/x/slashing/abci.go b/x/slashing/abci.go index 9617ff226..8a32f10be 100644 --- a/x/slashing/abci.go +++ b/x/slashing/abci.go @@ -1,9 +1,9 @@ package slashing import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // BeginBlocker check for infraction evidence or downtime of validators diff --git a/x/slashing/alias.go b/x/slashing/alias.go index e02337a81..d443670bb 100644 --- a/x/slashing/alias.go +++ b/x/slashing/alias.go @@ -3,8 +3,8 @@ package slashing // nolint import ( - "github.com/okx/okbchain/x/slashing/internal/keeper" - "github.com/okx/okbchain/x/slashing/internal/types" + "github.com/okx/brczero/x/slashing/internal/keeper" + "github.com/okx/brczero/x/slashing/internal/types" ) const ( diff --git a/x/slashing/client/cli/query.go b/x/slashing/client/cli/query.go index 47a6a060a..b36ffcd6b 100644 --- a/x/slashing/client/cli/query.go +++ b/x/slashing/client/cli/query.go @@ -6,13 +6,13 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" + "github.com/okx/brczero/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 ca0dc51c7..bf25f8f5a 100644 --- a/x/slashing/client/cli/tx.go +++ b/x/slashing/client/cli/tx.go @@ -5,14 +5,14 @@ import ( "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/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 f506e4f4e..c37c31a03 100644 --- a/x/slashing/client/rest/query.go +++ b/x/slashing/client/rest/query.go @@ -6,10 +6,10 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/x/slashing/internal/types" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/slashing/client/rest/rest.go b/x/slashing/client/rest/rest.go index 07359e6b1..13884483c 100644 --- a/x/slashing/client/rest/rest.go +++ b/x/slashing/client/rest/rest.go @@ -3,7 +3,7 @@ package rest import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) // RegisterRoutes registers staking-related REST handlers to a router diff --git a/x/slashing/client/rest/tx.go b/x/slashing/client/rest/tx.go index 06003ab25..56ed8c2b2 100644 --- a/x/slashing/client/rest/tx.go +++ b/x/slashing/client/rest/tx.go @@ -6,11 +6,11 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/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 1fd297019..fd9178f68 100644 --- a/x/slashing/genesis.go +++ b/x/slashing/genesis.go @@ -1,9 +1,9 @@ package slashing import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" - "github.com/okx/okbchain/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/slashing/internal/types" + "github.com/okx/brczero/x/staking/exported" ) // InitGenesis initialize default parameters diff --git a/x/slashing/handler.go b/x/slashing/handler.go index 8945c5462..48d0f9976 100644 --- a/x/slashing/handler.go +++ b/x/slashing/handler.go @@ -1,11 +1,11 @@ package slashing import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - types2 "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + types2 "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/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 958a4416b..611ab8ace 100644 --- a/x/slashing/internal/keeper/hooks.go +++ b/x/slashing/internal/keeper/hooks.go @@ -4,10 +4,10 @@ package keeper import ( "time" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 1675f1959..509dfa699 100644 --- a/x/slashing/internal/keeper/infractions.go +++ b/x/slashing/internal/keeper/infractions.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 d87673a14..9ffcdbceb 100644 --- a/x/slashing/internal/keeper/keeper.go +++ b/x/slashing/internal/keeper/keeper.go @@ -3,12 +3,12 @@ package keeper import ( "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 7a07d3204..ffe1bd525 100644 --- a/x/slashing/internal/keeper/keeper_okexchain.go +++ b/x/slashing/internal/keeper/keeper_okexchain.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 daffa4253..00418d56e 100644 --- a/x/slashing/internal/keeper/params.go +++ b/x/slashing/internal/keeper/params.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 eaa3da102..88df6ae14 100644 --- a/x/slashing/internal/keeper/querier.go +++ b/x/slashing/internal/keeper/querier.go @@ -1,13 +1,13 @@ package keeper import ( - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/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 8943f841a..0342685e8 100644 --- a/x/slashing/internal/keeper/signing_info.go +++ b/x/slashing/internal/keeper/signing_info.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 7f4f14611..fe1d7101e 100644 --- a/x/slashing/internal/keeper/test_common.go +++ b/x/slashing/internal/keeper/test_common.go @@ -8,27 +8,27 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/slashing/internal/types" - "github.com/okx/okbchain/x/staking" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/slashing/internal/types" + "github.com/okx/brczero/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 a2f52331c..16c5b7384 100644 --- a/x/slashing/internal/keeper/unjail.go +++ b/x/slashing/internal/keeper/unjail.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/slashing/internal/types" ) // Unjail calls the staking Unjail function to unjail a validator if the diff --git a/x/slashing/internal/types/codec.go b/x/slashing/internal/types/codec.go index 77f1d13c8..1eef89a6f 100644 --- a/x/slashing/internal/types/codec.go +++ b/x/slashing/internal/types/codec.go @@ -1,7 +1,7 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" ) // RegisterCodec registers concrete types on codec diff --git a/x/slashing/internal/types/errors.go b/x/slashing/internal/types/errors.go index 6e49fe207..e4130f62b 100644 --- a/x/slashing/internal/types/errors.go +++ b/x/slashing/internal/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const BaseSlashingError = 5001 diff --git a/x/slashing/internal/types/expected_keepers.go b/x/slashing/internal/types/expected_keepers.go index 99d5b76f3..a51d493a4 100644 --- a/x/slashing/internal/types/expected_keepers.go +++ b/x/slashing/internal/types/expected_keepers.go @@ -3,11 +3,11 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/params" - stakingexported "github.com/okx/okbchain/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/params" + stakingexported "github.com/okx/brczero/x/staking/exported" ) // AccountKeeper expected account keeper diff --git a/x/slashing/internal/types/genesis.go b/x/slashing/internal/types/genesis.go index a7eb784c9..bb6268e64 100644 --- a/x/slashing/internal/types/genesis.go +++ b/x/slashing/internal/types/genesis.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GenesisState - all slashing state that must be provided at genesis diff --git a/x/slashing/internal/types/keys.go b/x/slashing/internal/types/keys.go index 66daebec2..f7c00fb19 100644 --- a/x/slashing/internal/types/keys.go +++ b/x/slashing/internal/types/keys.go @@ -3,7 +3,7 @@ package types import ( "encoding/binary" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/x/slashing/internal/types/msg.go b/x/slashing/internal/types/msg.go index cc7d173e9..14ec2f4ec 100644 --- a/x/slashing/internal/types/msg.go +++ b/x/slashing/internal/types/msg.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // verify interface at compile time diff --git a/x/slashing/internal/types/params.go b/x/slashing/internal/types/params.go index 0af689012..c4e4ea65b 100644 --- a/x/slashing/internal/types/params.go +++ b/x/slashing/internal/types/params.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/params" ) // Default parameter namespace diff --git a/x/slashing/internal/types/querier.go b/x/slashing/internal/types/querier.go index 833136a24..2db722e2e 100644 --- a/x/slashing/internal/types/querier.go +++ b/x/slashing/internal/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // DONTCOVER diff --git a/x/slashing/internal/types/signing_info.go b/x/slashing/internal/types/signing_info.go index b8983c016..8821d0a1f 100644 --- a/x/slashing/internal/types/signing_info.go +++ b/x/slashing/internal/types/signing_info.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type ValStatus byte diff --git a/x/slashing/module.go b/x/slashing/module.go index 2ee611cb2..5ead5e49f 100644 --- a/x/slashing/module.go +++ b/x/slashing/module.go @@ -8,18 +8,18 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/x/slashing/client/cli" - "github.com/okx/okbchain/x/slashing/client/rest" - "github.com/okx/okbchain/x/slashing/internal/types" - "github.com/okx/okbchain/x/slashing/simulation" - stakingkeeper "github.com/okx/okbchain/x/staking/keeper" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/x/slashing/client/cli" + "github.com/okx/brczero/x/slashing/client/rest" + "github.com/okx/brczero/x/slashing/internal/types" + "github.com/okx/brczero/x/slashing/simulation" + stakingkeeper "github.com/okx/brczero/x/staking/keeper" ) var ( diff --git a/x/slashing/simulation/decoder.go b/x/slashing/simulation/decoder.go index 5d1464e22..0bdc98134 100644 --- a/x/slashing/simulation/decoder.go +++ b/x/slashing/simulation/decoder.go @@ -4,12 +4,12 @@ import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmkv "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/crypto" + tmkv "github.com/okx/brczero/libs/tendermint/libs/kv" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 f6877ebcf..8a08fbae6 100644 --- a/x/slashing/simulation/genesis.go +++ b/x/slashing/simulation/genesis.go @@ -7,12 +7,12 @@ import ( "math/rand" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/x/slashing/internal/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/x/slashing/internal/types" ) // Simulation parameter constants diff --git a/x/slashing/simulation/operations.go b/x/slashing/simulation/operations.go index 879a6cc51..85d3296c0 100644 --- a/x/slashing/simulation/operations.go +++ b/x/slashing/simulation/operations.go @@ -3,12 +3,12 @@ package simulation import ( "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/x/slashing/internal/keeper" - "github.com/okx/okbchain/x/slashing/internal/types" - stakingkeeper "github.com/okx/okbchain/x/staking/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/x/slashing/internal/keeper" + "github.com/okx/brczero/x/slashing/internal/types" + stakingkeeper "github.com/okx/brczero/x/staking/keeper" ) // Simulation operation weights constants diff --git a/x/slashing/simulation/params.go b/x/slashing/simulation/params.go index 3f7b83863..941fb89f9 100644 --- a/x/slashing/simulation/params.go +++ b/x/slashing/simulation/params.go @@ -6,8 +6,8 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/x/slashing/internal/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/x/slashing/internal/types" ) const ( diff --git a/x/staking/abci.go b/x/staking/abci.go index b820e97c8..6a323ea5e 100644 --- a/x/staking/abci.go +++ b/x/staking/abci.go @@ -3,12 +3,12 @@ package staking import ( "fmt" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/x/staking/types" ) // BeginBlocker will persist the current header and validator set as a historical entry diff --git a/x/staking/alias.go b/x/staking/alias.go index 3c95d9fb8..d73bac4ff 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/okx/okbchain/x/staking/keeper -// ALIASGEN: github.com/okx/okbchain/x/staking/types -// ALIASGEN: github.com/okx/okbchain/x/staking/exported +// ALIASGEN: github.com/okx/brczero/x/staking/keeper +// ALIASGEN: github.com/okx/brczero/x/staking/types +// ALIASGEN: github.com/okx/brczero/x/staking/exported package staking import ( - "github.com/okx/okbchain/x/staking/exported" - "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/x/staking/exported" + "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/x/staking/types" ) const ( diff --git a/x/staking/alias_distr_proposal.go b/x/staking/alias_distr_proposal.go index 88509433c..f0e0fccdb 100644 --- a/x/staking/alias_distr_proposal.go +++ b/x/staking/alias_distr_proposal.go @@ -1,9 +1,9 @@ // nolint -// ALIASGEN: github.com/okx/okbchain/x/staking/types +// ALIASGEN: github.com/okx/brczero/x/staking/types package staking import ( - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/x/staking/types" ) var ( diff --git a/x/staking/app_test.go b/x/staking/app_test.go index 93580edcc..90d238f7e 100644 --- a/x/staking/app_test.go +++ b/x/staking/app_test.go @@ -5,20 +5,20 @@ import ( "os" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/x/staking/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - cliLcd "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mock" + cliLcd "github.com/okx/brczero/libs/cosmos-sdk/client/lcd" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mock" ) // getMockApp returns an initialized mock application for this module. diff --git a/x/staking/client/cli/flags.go b/x/staking/client/cli/flags.go index 18e3ade58..8d1bb062f 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/okx/okbchain/x/staking/types" + "github.com/okx/brczero/x/staking/types" ) // nolint diff --git a/x/staking/client/cli/query.go b/x/staking/client/cli/query.go index 078fb3d9d..f317788fa 100644 --- a/x/staking/client/cli/query.go +++ b/x/staking/client/cli/query.go @@ -5,16 +5,16 @@ import ( "strings" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" "github.com/spf13/cobra" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/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 063ade6bc..b13fb909c 100644 --- a/x/staking/client/cli/tx.go +++ b/x/staking/client/cli/tx.go @@ -5,24 +5,24 @@ import ( "fmt" "os" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" "github.com/spf13/cobra" flag "github.com/spf13/pflag" "github.com/spf13/viper" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/staking/types" ) // GetTxCmd returns the transaction commands for this module diff --git a/x/staking/client/cli/tx_proposal.go b/x/staking/client/cli/tx_proposal.go index 3253a140c..8e1343a64 100644 --- a/x/staking/client/cli/tx_proposal.go +++ b/x/staking/client/cli/tx_proposal.go @@ -6,16 +6,16 @@ import ( "os" "strings" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/staking/types" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/staking/types" "github.com/spf13/cobra" ) diff --git a/x/staking/client/cli/tx_vote.go b/x/staking/client/cli/tx_vote.go index 8a09efac7..ad806f4b0 100644 --- a/x/staking/client/cli/tx_vote.go +++ b/x/staking/client/cli/tx_vote.go @@ -5,15 +5,15 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/staking/types" "github.com/spf13/cobra" ) diff --git a/x/staking/client/cli/tx_vote_test.go b/x/staking/client/cli/tx_vote_test.go index e4a7ace79..be9f424ac 100644 --- a/x/staking/client/cli/tx_vote_test.go +++ b/x/staking/client/cli/tx_vote_test.go @@ -5,9 +5,9 @@ import ( "strings" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" "github.com/stretchr/testify/require" ) diff --git a/x/staking/client/proposal_handler.go b/x/staking/client/proposal_handler.go index 6ffa8ba6d..b7d5013af 100644 --- a/x/staking/client/proposal_handler.go +++ b/x/staking/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/okx/okbchain/x/staking/client/cli" - "github.com/okx/okbchain/x/staking/client/rest" - govcli "github.com/okx/okbchain/x/gov/client" + "github.com/okx/brczero/x/staking/client/cli" + "github.com/okx/brczero/x/staking/client/rest" + govcli "github.com/okx/brczero/x/gov/client" ) var ( diff --git a/x/staking/client/rest/query.go b/x/staking/client/rest/query.go index 7c4ce46b9..c345ab08f 100644 --- a/x/staking/client/rest/query.go +++ b/x/staking/client/rest/query.go @@ -7,11 +7,11 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/staking/types" ) func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/staking/client/rest/rest.go b/x/staking/client/rest/rest.go index 10715c19d..a178dbda6 100644 --- a/x/staking/client/rest/rest.go +++ b/x/staking/client/rest/rest.go @@ -3,7 +3,7 @@ package rest import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) // RegisterRoutes registers staking-related REST handlers to a router diff --git a/x/staking/client/rest/rest_ibc.go b/x/staking/client/rest/rest_ibc.go index 49efa0074..9cec74b53 100644 --- a/x/staking/client/rest/rest_ibc.go +++ b/x/staking/client/rest/rest_ibc.go @@ -6,8 +6,8 @@ import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/x/staking/types" ) func RegisterOriginRPCRoutersForGRPC(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/staking/client/rest/tx.go b/x/staking/client/rest/tx.go index b4c8fa979..8257d3e4e 100644 --- a/x/staking/client/rest/tx.go +++ b/x/staking/client/rest/tx.go @@ -5,12 +5,12 @@ import ( "net/http" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/staking/types" ) func registerTxRoutes(cliCtx context.CLIContext, r *mux.Router) { diff --git a/x/staking/client/rest/tx_proposal.go b/x/staking/client/rest/tx_proposal.go index 190788631..4522f1b20 100644 --- a/x/staking/client/rest/tx_proposal.go +++ b/x/staking/client/rest/tx_proposal.go @@ -1,8 +1,8 @@ package rest import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - govRest "github.com/okx/okbchain/x/gov/client/rest" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + govRest "github.com/okx/brczero/x/gov/client/rest" ) // ProposeValidatorProposalRESTHandler defines propose validator proposal handler diff --git a/x/staking/client/rest/utils.go b/x/staking/client/rest/utils.go index 81107af85..0f42028d9 100644 --- a/x/staking/client/rest/utils.go +++ b/x/staking/client/rest/utils.go @@ -4,15 +4,15 @@ import ( "fmt" "net/http" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/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 e2fd9ca57..4b9acdab9 100644 --- a/x/staking/common_test.go +++ b/x/staking/common_test.go @@ -6,13 +6,13 @@ import ( "testing" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/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 281844d60..a53a17b1c 100644 --- a/x/staking/delegator_test.go +++ b/x/staking/delegator_test.go @@ -5,11 +5,11 @@ import ( "testing" "time" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/x/staking/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func Deprecated_TestValidatorSMProxyDelegationSmoke(t *testing.T) { diff --git a/x/staking/exported/exported.go b/x/staking/exported/exported.go index acbb95336..d2cd80ce9 100644 --- a/x/staking/exported/exported.go +++ b/x/staking/exported/exported.go @@ -1,8 +1,8 @@ package exported import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto" ) // DelegatorI expected delegator functions diff --git a/x/staking/genesis.go b/x/staking/genesis.go index 2feb2d8a1..078f24819 100644 --- a/x/staking/genesis.go +++ b/x/staking/genesis.go @@ -2,14 +2,14 @@ package staking import ( "fmt" - "github.com/okx/okbchain/libs/system" - - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/staking/exported" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/system" + + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/staking/exported" + "github.com/okx/brczero/x/staking/types" ) // InitGenesis sets the pool and parameters for the provided keeper diff --git a/x/staking/genesis_test.go b/x/staking/genesis_test.go index 4d5e4adff..6e8d8f60a 100644 --- a/x/staking/genesis_test.go +++ b/x/staking/genesis_test.go @@ -5,15 +5,15 @@ import ( "testing" "time" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/x/staking/exported" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/x/staking/exported" + "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/x/staking/handler.go b/x/staking/handler.go index 478611a05..36078bc45 100644 --- a/x/staking/handler.go +++ b/x/staking/handler.go @@ -3,10 +3,10 @@ package staking import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/x/staking/types" ) // NewHandler manages all tx treatment diff --git a/x/staking/handler_distr_proposal.go b/x/staking/handler_distr_proposal.go index 6cea1ef68..2ffc8e3a4 100644 --- a/x/staking/handler_distr_proposal.go +++ b/x/staking/handler_distr_proposal.go @@ -1,9 +1,9 @@ package staking import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/x/staking/types" ) func handleMsgEditValidatorCommissionRate(ctx sdk.Context, msg types.MsgEditValidatorCommissionRate, k keeper.Keeper) (*sdk.Result, error) { diff --git a/x/staking/handler_distr_proposal_test.go b/x/staking/handler_distr_proposal_test.go index 3884ee5df..00a358c86 100644 --- a/x/staking/handler_distr_proposal_test.go +++ b/x/staking/handler_distr_proposal_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/global" - keep "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/global" + keep "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" ) diff --git a/x/staking/handler_shares.go b/x/staking/handler_shares.go index f05659d2e..84fec24d9 100644 --- a/x/staking/handler_shares.go +++ b/x/staking/handler_shares.go @@ -3,9 +3,9 @@ package staking import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/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 cfaad285c..1c8344e99 100644 --- a/x/staking/handler_shares_test.go +++ b/x/staking/handler_shares_test.go @@ -3,8 +3,8 @@ package staking import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" ) diff --git a/x/staking/handler_test.go b/x/staking/handler_test.go index 9d559e8ef..b60b29c8f 100644 --- a/x/staking/handler_test.go +++ b/x/staking/handler_test.go @@ -3,15 +3,15 @@ package staking import ( "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - keep "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + keep "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/x/staking/types" ) //______________________________________________________________________ diff --git a/x/staking/keeper/alias_functions.go b/x/staking/keeper/alias_functions.go index a5527608e..ecffa2145 100644 --- a/x/staking/keeper/alias_functions.go +++ b/x/staking/keeper/alias_functions.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/exported" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/exported" + "github.com/okx/brczero/x/staking/types" ) //_______________________________________________________________________ diff --git a/x/staking/keeper/delegation.go b/x/staking/keeper/delegation.go index 8b92e9543..7b66e8d52 100644 --- a/x/staking/keeper/delegation.go +++ b/x/staking/keeper/delegation.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 13d335ecd..3f5852580 100644 --- a/x/staking/keeper/delegator.go +++ b/x/staking/keeper/delegator.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" ) // GetDelegator gets Delegator entity from store diff --git a/x/staking/keeper/grpc_query.go b/x/staking/keeper/grpc_query.go index 9e9410ab6..a04f59b37 100644 --- a/x/staking/keeper/grpc_query.go +++ b/x/staking/keeper/grpc_query.go @@ -3,12 +3,12 @@ package keeper import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/okx/okbchain/x/staking/typesadapter" + "github.com/okx/brczero/x/staking/typesadapter" ) // Querier is used as Keeper will have duplicate methods if used directly, and gRPC names take precedence over keeper diff --git a/x/staking/keeper/hooks.go b/x/staking/keeper/hooks.go index 84b6ef6d1..f31d74e52 100644 --- a/x/staking/keeper/hooks.go +++ b/x/staking/keeper/hooks.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" ) // Implements StakingHooks interface diff --git a/x/staking/keeper/hooks_distr_proposal.go b/x/staking/keeper/hooks_distr_proposal.go index 99faec4cc..e8d7344d0 100644 --- a/x/staking/keeper/hooks_distr_proposal.go +++ b/x/staking/keeper/hooks_distr_proposal.go @@ -1,7 +1,7 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // BeforeDelegationCreated - call hook if registered diff --git a/x/staking/keeper/hooks_test.go b/x/staking/keeper/hooks_test.go index 591cc2cb7..99cb4cadf 100644 --- a/x/staking/keeper/hooks_test.go +++ b/x/staking/keeper/hooks_test.go @@ -3,7 +3,7 @@ package keeper import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestHooks(t *testing.T) { diff --git a/x/staking/keeper/invariants.go b/x/staking/keeper/invariants.go index e25a2eb91..d720cf208 100644 --- a/x/staking/keeper/invariants.go +++ b/x/staking/keeper/invariants.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/exported" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/exported" + "github.com/okx/brczero/x/staking/types" ) // RegisterInvariantsCustom registers all staking invariants for okbchain diff --git a/x/staking/keeper/invariants_test.go b/x/staking/keeper/invariants_test.go index 535eaf471..c712fa94d 100644 --- a/x/staking/keeper/invariants_test.go +++ b/x/staking/keeper/invariants_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" ) diff --git a/x/staking/keeper/keeper.go b/x/staking/keeper/keeper.go index fd12d4f06..543fa2923 100644 --- a/x/staking/keeper/keeper.go +++ b/x/staking/keeper/keeper.go @@ -4,13 +4,13 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/staking/exported" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/staking/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/staking/types" ) // Implements ValidatorSet interface diff --git a/x/staking/keeper/keeper_distr_proposal.go b/x/staking/keeper/keeper_distr_proposal.go index 4a4f1578f..68d5d64de 100644 --- a/x/staking/keeper/keeper_distr_proposal.go +++ b/x/staking/keeper/keeper_distr_proposal.go @@ -1,9 +1,9 @@ package keeper import ( - "github.com/okx/okbchain/x/staking/exported" + "github.com/okx/brczero/x/staking/exported" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (k Keeper) Delegation(ctx sdk.Context, delAddr sdk.AccAddress, address2 sdk.ValAddress) exported.DelegatorI { diff --git a/x/staking/keeper/keeper_ibc.go b/x/staking/keeper/keeper_ibc.go index c7908b0e4..e14753eef 100644 --- a/x/staking/keeper/keeper_ibc.go +++ b/x/staking/keeper/keeper_ibc.go @@ -1,10 +1,10 @@ package keeper import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) func (k Keeper) GetUnbondingDelegation(ctx sdk.Context, diff --git a/x/staking/keeper/keeper_ibc_adapter.go b/x/staking/keeper/keeper_ibc_adapter.go index 97fe444b7..965dbb543 100644 --- a/x/staking/keeper/keeper_ibc_adapter.go +++ b/x/staking/keeper/keeper_ibc_adapter.go @@ -1,11 +1,11 @@ package keeper import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - outtypes "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + outtypes "github.com/okx/brczero/x/staking/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/staking/keeper/min_self_delegation.go b/x/staking/keeper/min_self_delegation.go index 9d0990fc7..cc8eb034f 100644 --- a/x/staking/keeper/min_self_delegation.go +++ b/x/staking/keeper/min_self_delegation.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" ) // WithdrawMinSelfDelegation withdraws the msd from validator diff --git a/x/staking/keeper/params.go b/x/staking/keeper/params.go index 4937911cc..0f0dc5230 100644 --- a/x/staking/keeper/params.go +++ b/x/staking/keeper/params.go @@ -3,11 +3,11 @@ package keeper import ( "time" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/staking/types" ) // Default parameter namespace diff --git a/x/staking/keeper/pool.go b/x/staking/keeper/pool.go index 0b13e375a..803ce0ae7 100644 --- a/x/staking/keeper/pool.go +++ b/x/staking/keeper/pool.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/x/staking/types" ) // GetBondedPool returns the bonded tokens pool's module account diff --git a/x/staking/keeper/propose_validator.go b/x/staking/keeper/propose_validator.go index 3db786f4e..850d95c24 100644 --- a/x/staking/keeper/propose_validator.go +++ b/x/staking/keeper/propose_validator.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" ) // GetProposeValidators gets proposed validators from db diff --git a/x/staking/keeper/proxy.go b/x/staking/keeper/proxy.go index 5b1da0736..bb933ff4f 100644 --- a/x/staking/keeper/proxy.go +++ b/x/staking/keeper/proxy.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 10a540271..b2c1a9fd2 100644 --- a/x/staking/keeper/proxy_test.go +++ b/x/staking/keeper/proxy_test.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" "testing" diff --git a/x/staking/keeper/querier.go b/x/staking/keeper/querier.go index d7ee9e052..704f11d3f 100644 --- a/x/staking/keeper/querier.go +++ b/x/staking/keeper/querier.go @@ -6,15 +6,15 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/staking/types" ) // NewQuerier creates a querier for staking REST endpoints diff --git a/x/staking/keeper/querier_test.go b/x/staking/keeper/querier_test.go index fa229bb0e..034d1fec4 100644 --- a/x/staking/keeper/querier_test.go +++ b/x/staking/keeper/querier_test.go @@ -3,9 +3,9 @@ package keeper import ( "testing" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/staking/types" + types2 "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" "github.com/tendermint/go-amino" diff --git a/x/staking/keeper/shares.go b/x/staking/keeper/shares.go index 1e121b50a..5aabfcb8b 100644 --- a/x/staking/keeper/shares.go +++ b/x/staking/keeper/shares.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/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 b100c5054..93ac523a5 100644 --- a/x/staking/keeper/shares_test.go +++ b/x/staking/keeper/shares_test.go @@ -3,8 +3,8 @@ package keeper import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" ) diff --git a/x/staking/keeper/slash.go b/x/staking/keeper/slash.go index dd600f8fe..b05f5cf0f 100644 --- a/x/staking/keeper/slash.go +++ b/x/staking/keeper/slash.go @@ -3,7 +3,7 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (k Keeper) Slash(ctx sdk.Context, consAddr sdk.ConsAddress, infractionHeight int64, power int64, slashFactor sdk.Dec) { diff --git a/x/staking/keeper/test_common.go b/x/staking/keeper/test_common.go index ae449d673..287f28090 100644 --- a/x/staking/keeper/test_common.go +++ b/x/staking/keeper/test_common.go @@ -8,28 +8,28 @@ import ( "testing" "time" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - dbm "github.com/okx/okbchain/libs/tm-db" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/x/params" - //distr "github.com/okx/okbchain/x/distribution" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + dbm "github.com/okx/brczero/libs/tm-db" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/x/params" + //distr "github.com/okx/brczero/x/distribution" ) // dummy addresses used for testing diff --git a/x/staking/keeper/test_common_distr_proposal.go b/x/staking/keeper/test_common_distr_proposal.go index efecdf582..f32d89d4a 100644 --- a/x/staking/keeper/test_common_distr_proposal.go +++ b/x/staking/keeper/test_common_distr_proposal.go @@ -1,7 +1,7 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (dk mockDistributionKeeper) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddrs []sdk.ValAddress) { diff --git a/x/staking/keeper/val_state.go b/x/staking/keeper/val_state.go index b5a793168..84218449c 100644 --- a/x/staking/keeper/val_state.go +++ b/x/staking/keeper/val_state.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/staking/types" ) // KickOutAndReturnValidatorSetUpdates shows the main logic when a validator is kicked out of validator-set in an epoch diff --git a/x/staking/keeper/val_state_change.go b/x/staking/keeper/val_state_change.go index 899bfd5d7..2aef2c2e4 100644 --- a/x/staking/keeper/val_state_change.go +++ b/x/staking/keeper/val_state_change.go @@ -5,10 +5,10 @@ import ( "fmt" "sort" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/staking/types" ) // ApplyAndReturnValidatorSetUpdates applies and returns accumulated updates to the bonded validator set. Also, diff --git a/x/staking/keeper/validator.go b/x/staking/keeper/validator.go index e3a618e33..babe58f4a 100644 --- a/x/staking/keeper/validator.go +++ b/x/staking/keeper/validator.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" ) // GetValidator gets a single validator diff --git a/x/staking/keeper/validator_distr_proposal.go b/x/staking/keeper/validator_distr_proposal.go index 1db4b09a5..163334b79 100644 --- a/x/staking/keeper/validator_distr_proposal.go +++ b/x/staking/keeper/validator_distr_proposal.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" ) // UpdateValidatorCommission attempts to update a validator's commission rate. diff --git a/x/staking/keeper/weight.go b/x/staking/keeper/weight.go index 75a97d9e7..0a84e7cfb 100644 --- a/x/staking/keeper/weight.go +++ b/x/staking/keeper/weight.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" ) func calculateWeight(tokens sdk.Dec) types.Shares { diff --git a/x/staking/keeper/weight_test.go b/x/staking/keeper/weight_test.go index 63e1a0c3a..c3a85975c 100644 --- a/x/staking/keeper/weight_test.go +++ b/x/staking/keeper/weight_test.go @@ -1,7 +1,7 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" //"github.com/stretchr/testify/require" diff --git a/x/staking/legacy/v0_10/types.go b/x/staking/legacy/v0_10/types.go index 63c5ff3f1..9f50ea34d 100644 --- a/x/staking/legacy/v0_10/types.go +++ b/x/staking/legacy/v0_10/types.go @@ -3,7 +3,7 @@ package v0_10 import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ModuleName = "staking" diff --git a/x/staking/legacy/v0_11/migrate.go b/x/staking/legacy/v0_11/migrate.go index 33e53bb63..fa3e2c0de 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/okx/okbchain/x/staking/legacy/v0_10" +import "github.com/okx/brczero/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 7ea91b505..04a75c320 100644 --- a/x/staking/legacy/v0_11/types.go +++ b/x/staking/legacy/v0_11/types.go @@ -3,9 +3,9 @@ package v0_11 import ( "time" - "github.com/okx/okbchain/x/staking/legacy/v0_10" + "github.com/okx/brczero/x/staking/legacy/v0_10" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ModuleName = "staking" diff --git a/x/staking/legacy/v0_18/migrate.go b/x/staking/legacy/v0_18/migrate.go index 88d26ad69..851b1bb2e 100644 --- a/x/staking/legacy/v0_18/migrate.go +++ b/x/staking/legacy/v0_18/migrate.go @@ -1,6 +1,6 @@ package v0_18 -import "github.com/okx/okbchain/x/staking/legacy/v0_11" +import "github.com/okx/brczero/x/staking/legacy/v0_11" const ( ModuleName = "staking" diff --git a/x/staking/legacy/v0_18/types.go b/x/staking/legacy/v0_18/types.go index 8b3129c3f..e3dba96f5 100644 --- a/x/staking/legacy/v0_18/types.go +++ b/x/staking/legacy/v0_18/types.go @@ -1,12 +1,12 @@ package v0_18 import ( - "github.com/okx/okbchain/x/staking/legacy/v0_11" + "github.com/okx/brczero/x/staking/legacy/v0_11" "time" - "github.com/okx/okbchain/x/staking/legacy/v0_10" + "github.com/okx/brczero/x/staking/legacy/v0_10" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var DefaultMinSelfDelegation = sdk.NewDec(10000) diff --git a/x/staking/module.go b/x/staking/module.go index 83e7ec216..424ab05c8 100644 --- a/x/staking/module.go +++ b/x/staking/module.go @@ -4,27 +4,27 @@ import ( "encoding/json" "math/rand" - sim "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/x/staking/simulation" + sim "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/x/staking/simulation" - "github.com/okx/okbchain/x/staking/keeper" + "github.com/okx/brczero/x/staking/keeper" "github.com/gorilla/mux" "github.com/spf13/cobra" flag "github.com/spf13/pflag" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/crypto" - - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/x/staking/client/cli" - "github.com/okx/okbchain/x/staking/client/rest" - "github.com/okx/okbchain/x/staking/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/crypto" + + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/x/staking/client/cli" + "github.com/okx/brczero/x/staking/client/rest" + "github.com/okx/brczero/x/staking/types" ) var ( diff --git a/x/staking/module_ibc.go b/x/staking/module_ibc.go index a1e702ab6..676953a3b 100644 --- a/x/staking/module_ibc.go +++ b/x/staking/module_ibc.go @@ -3,22 +3,22 @@ package staking import ( "context" - "github.com/okx/okbchain/x/staking/keeper" + "github.com/okx/brczero/x/staking/keeper" - cosmost "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - "github.com/okx/okbchain/x/staking/typesadapter" + cosmost "github.com/okx/brczero/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/x/staking/typesadapter" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - anytypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - - "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/staking/client/rest" - _ "github.com/okx/okbchain/x/staking/typesadapter" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + anytypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + + "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/staking/client/rest" + _ "github.com/okx/brczero/x/staking/typesadapter" "github.com/spf13/cobra" ) diff --git a/x/staking/msg_convert.go b/x/staking/msg_convert.go index 6cabc72ff..a58f368c0 100644 --- a/x/staking/msg_convert.go +++ b/x/staking/msg_convert.go @@ -3,12 +3,12 @@ package staking import ( "encoding/json" "errors" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/staking/types" ) var ( diff --git a/x/staking/msg_convert_test.go b/x/staking/msg_convert_test.go index 338ad9abd..44d2cb2db 100644 --- a/x/staking/msg_convert_test.go +++ b/x/staking/msg_convert_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/types" "github.com/stretchr/testify/require" ) diff --git a/x/staking/proposal_handler.go b/x/staking/proposal_handler.go index 21748984d..c9a27b77e 100644 --- a/x/staking/proposal_handler.go +++ b/x/staking/proposal_handler.go @@ -1,11 +1,11 @@ package staking import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/staking/types" - govTypes "github.com/okx/okbchain/x/gov/types" + govTypes "github.com/okx/brczero/x/gov/types" ) // NewProposalHandler handles "gov" type message in "staking" diff --git a/x/staking/simulation/operations.go b/x/staking/simulation/operations.go index b9f0d4664..d677e9fcb 100644 --- a/x/staking/simulation/operations.go +++ b/x/staking/simulation/operations.go @@ -3,10 +3,10 @@ package simulation import ( "math/rand" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/x/params/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/x/params/types" ) // SimulateParamChangeProposalContent returns random parameter change content. diff --git a/x/staking/simulation/proposals.go b/x/staking/simulation/proposals.go index d2fa45baf..e919665e2 100644 --- a/x/staking/simulation/proposals.go +++ b/x/staking/simulation/proposals.go @@ -1,8 +1,8 @@ package simulation import ( - simappparams "github.com/okx/okbchain/libs/cosmos-sdk/simapp/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + simappparams "github.com/okx/brczero/libs/cosmos-sdk/simapp/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" ) // OpWeightSubmitParamChangeProposal app params key for param change proposal diff --git a/x/staking/types/address.go b/x/staking/types/address.go index 2ea25e7bb..005e13626 100644 --- a/x/staking/types/address.go +++ b/x/staking/types/address.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // OVPair is designed for querying validators by rest diff --git a/x/staking/types/codec.go b/x/staking/types/codec.go index edc7de744..23fbf7598 100644 --- a/x/staking/types/codec.go +++ b/x/staking/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" ) // RegisterCodec registers concrete types for codec diff --git a/x/staking/types/commission.go b/x/staking/types/commission.go index 64532ecc3..681e7ffa1 100644 --- a/x/staking/types/commission.go +++ b/x/staking/types/commission.go @@ -6,7 +6,7 @@ import ( "github.com/tendermint/go-amino" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type ( diff --git a/x/staking/types/commission_test.go b/x/staking/types/commission_test.go index a411c40d4..a216a3211 100644 --- a/x/staking/types/commission_test.go +++ b/x/staking/types/commission_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestCommissionValidate(t *testing.T) { diff --git a/x/staking/types/delegation.go b/x/staking/types/delegation.go index ba06bb75a..218216464 100644 --- a/x/staking/types/delegation.go +++ b/x/staking/types/delegation.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // UndelegationInfo is the struct of the undelegation info diff --git a/x/staking/types/delegator.go b/x/staking/types/delegator.go index 46b8c8902..801079eaa 100644 --- a/x/staking/types/delegator.go +++ b/x/staking/types/delegator.go @@ -1,9 +1,9 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/exported" ) var _ exported.DelegatorI = &Delegator{} diff --git a/x/staking/types/delegator_distr_proposal.go b/x/staking/types/delegator_distr_proposal.go index ab5019aaa..12f548d25 100644 --- a/x/staking/types/delegator_distr_proposal.go +++ b/x/staking/types/delegator_distr_proposal.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GetDelegatorAddress gets delegator address diff --git a/x/staking/types/errors.go b/x/staking/types/errors.go index 2c87d6cc8..a0dc776b4 100644 --- a/x/staking/types/errors.go +++ b/x/staking/types/errors.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/x/staking/types/errors_dirstr_proposal.go b/x/staking/types/errors_dirstr_proposal.go index a15075837..4a91d4291 100644 --- a/x/staking/types/errors_dirstr_proposal.go +++ b/x/staking/types/errors_dirstr_proposal.go @@ -4,8 +4,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/x/staking/types/expected_keepers.go b/x/staking/types/expected_keepers.go index f7c50635d..a9343099a 100644 --- a/x/staking/types/expected_keepers.go +++ b/x/staking/types/expected_keepers.go @@ -1,10 +1,10 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - stakingexported "github.com/okx/okbchain/x/staking/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + stakingexported "github.com/okx/brczero/x/staking/exported" ) // AccountKeeper defines the expected account keeper (noalias) diff --git a/x/staking/types/genesis.go b/x/staking/types/genesis.go index f41e57062..99f3815c6 100644 --- a/x/staking/types/genesis.go +++ b/x/staking/types/genesis.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // GenesisState - all staking state that must be provided at genesis diff --git a/x/staking/types/historical_info.go b/x/staking/types/historical_info.go index 78674e44a..58d5903cb 100644 --- a/x/staking/types/historical_info.go +++ b/x/staking/types/historical_info.go @@ -3,10 +3,10 @@ package types import ( "sort" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // HistoricalInfo contains the historical information that gets stored at each height diff --git a/x/staking/types/hooks.go b/x/staking/types/hooks.go index b1bdbdbf3..86b3c3ee4 100644 --- a/x/staking/types/hooks.go +++ b/x/staking/types/hooks.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // MultiStakingHooks combines multiple staking hooks, all hook functions are run in array sequence diff --git a/x/staking/types/hooks_distr_proposal.go b/x/staking/types/hooks_distr_proposal.go index 75d009c8e..2c9f4ff0c 100644 --- a/x/staking/types/hooks_distr_proposal.go +++ b/x/staking/types/hooks_distr_proposal.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (h MultiStakingHooks) BeforeDelegationCreated(ctx sdk.Context, delAddr sdk.AccAddress, valAddrs []sdk.ValAddress) { diff --git a/x/staking/types/keys.go b/x/staking/types/keys.go index e010ab969..e9ca73449 100644 --- a/x/staking/types/keys.go +++ b/x/staking/types/keys.go @@ -5,12 +5,12 @@ import ( "fmt" "time" - cryptoAmino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoAmino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/libs/bech32" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/libs/bech32" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/x/staking/types/keys_test.go b/x/staking/types/keys_test.go index 3dbe78a68..6e16a82c7 100644 --- a/x/staking/types/keys_test.go +++ b/x/staking/types/keys_test.go @@ -4,9 +4,9 @@ import ( "encoding/hex" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/assert" ) diff --git a/x/staking/types/msg.go b/x/staking/types/msg.go index b22577cd5..0927a958d 100644 --- a/x/staking/types/msg.go +++ b/x/staking/types/msg.go @@ -3,10 +3,10 @@ package types import ( "encoding/json" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/x/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ensure Msg interface compliance at compile time diff --git a/x/staking/types/msg_distr_proposal.go b/x/staking/types/msg_distr_proposal.go index e447393c9..927966020 100644 --- a/x/staking/types/msg_distr_proposal.go +++ b/x/staking/types/msg_distr_proposal.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ensure Msg interface compliance at compile time diff --git a/x/staking/types/msg_shares.go b/x/staking/types/msg_shares.go index 8c942bed6..56d587b39 100644 --- a/x/staking/types/msg_shares.go +++ b/x/staking/types/msg_shares.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ensure Msg interface compliance at compile time diff --git a/x/staking/types/msg_test.go b/x/staking/types/msg_test.go index 283064183..05c2cec1b 100644 --- a/x/staking/types/msg_test.go +++ b/x/staking/types/msg_test.go @@ -3,8 +3,8 @@ package types import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto" "github.com/stretchr/testify/require" ) diff --git a/x/staking/types/params.go b/x/staking/types/params.go index e2ee30d6e..17a6e95b2 100644 --- a/x/staking/types/params.go +++ b/x/staking/types/params.go @@ -5,9 +5,9 @@ import ( "fmt" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/params" ) const ( diff --git a/x/staking/types/params_ibc.go b/x/staking/types/params_ibc.go index 6eecfb640..abd525937 100644 --- a/x/staking/types/params_ibc.go +++ b/x/staking/types/params_ibc.go @@ -1,6 +1,6 @@ package types -import "github.com/okx/okbchain/x/params" +import "github.com/okx/brczero/x/params" var ( _ params.ParamSet = KeyHistoricalEntriesParamsSet{} diff --git a/x/staking/types/pool.go b/x/staking/types/pool.go index aac343979..200922cb8 100644 --- a/x/staking/types/pool.go +++ b/x/staking/types/pool.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // names used as root for pool module accounts: diff --git a/x/staking/types/proposal.go b/x/staking/types/proposal.go index 758766169..5dbe90e18 100644 --- a/x/staking/types/proposal.go +++ b/x/staking/types/proposal.go @@ -3,14 +3,14 @@ package types import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/system" "strings" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto" + govtypes "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/x/staking/types/querier.go b/x/staking/types/querier.go index 46945f8a2..8e0d5c51c 100644 --- a/x/staking/types/querier.go +++ b/x/staking/types/querier.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" ) // query endpoints supported by the staking Querier diff --git a/x/staking/types/query.go b/x/staking/types/query.go index 1d7c8b6db..1518c34af 100644 --- a/x/staking/types/query.go +++ b/x/staking/types/query.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) // note: it should act like protobuf ,but for now ,we only need the `pure struct` diff --git a/x/staking/types/shares.go b/x/staking/types/shares.go index 34f61085f..91314dfe7 100644 --- a/x/staking/types/shares.go +++ b/x/staking/types/shares.go @@ -2,8 +2,8 @@ package types import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Shares is the alias of sdk.Dec to represent the amount of shares for adding shares to validators diff --git a/x/staking/types/test_utils.go b/x/staking/types/test_utils.go index 6f961d4d5..3b8e26f23 100644 --- a/x/staking/types/test_utils.go +++ b/x/staking/types/test_utils.go @@ -1,10 +1,10 @@ package types import ( - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // nolint: deadcode unused diff --git a/x/staking/types/validator.go b/x/staking/types/validator.go index c51a21bcd..4ef56af2a 100644 --- a/x/staking/types/validator.go +++ b/x/staking/types/validator.go @@ -9,18 +9,18 @@ import ( "strings" "time" - cryptoamino "github.com/okx/okbchain/libs/tendermint/crypto/encoding/amino" + cryptoamino "github.com/okx/brczero/libs/tendermint/crypto/encoding/amino" "github.com/tendermint/go-amino" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "gopkg.in/yaml.v2" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/staking/exported" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/staking/exported" ) // nolint diff --git a/x/staking/types/validator_distr_proposal.go b/x/staking/types/validator_distr_proposal.go index 461f925b2..5ebd2826b 100644 --- a/x/staking/types/validator_distr_proposal.go +++ b/x/staking/types/validator_distr_proposal.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // ToValAddresses converts []Validators to []sdk.ValAddress diff --git a/x/staking/types/validator_standardized.go b/x/staking/types/validator_standardized.go index 93f3555e2..84b49562b 100644 --- a/x/staking/types/validator_standardized.go +++ b/x/staking/types/validator_standardized.go @@ -5,10 +5,10 @@ import ( "strings" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + tmtypes "github.com/okx/brczero/libs/tendermint/types" ) // Export returns the exported format of validator in genesis export diff --git a/x/staking/types/validator_test.go b/x/staking/types/validator_test.go index e582890bb..c012097c8 100644 --- a/x/staking/types/validator_test.go +++ b/x/staking/types/validator_test.go @@ -4,16 +4,16 @@ import ( "math" "testing" - "github.com/okx/okbchain/libs/tendermint/crypto/multisig" + "github.com/okx/brczero/libs/tendermint/crypto/multisig" - "github.com/okx/okbchain/libs/tendermint/types/time" + "github.com/okx/brczero/libs/tendermint/types/time" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/x/staking/typesadapter/msgs.go b/x/staking/typesadapter/msgs.go index cee4bb7cb..f2aa895a9 100644 --- a/x/staking/typesadapter/msgs.go +++ b/x/staking/typesadapter/msgs.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" "sigs.k8s.io/yaml" ) diff --git a/x/staking/typesadapter/params.go b/x/staking/typesadapter/params.go index a69087b02..774f13c57 100644 --- a/x/staking/typesadapter/params.go +++ b/x/staking/typesadapter/params.go @@ -1,7 +1,7 @@ package typesadapter import ( - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/x/staking/types" ) func (p *Params) From(pp types.Params) { diff --git a/x/staking/typesadapter/query.pb.go b/x/staking/typesadapter/query.pb.go index 848cd7c0f..8825756ef 100644 --- a/x/staking/typesadapter/query.pb.go +++ b/x/staking/typesadapter/query.pb.go @@ -10,7 +10,7 @@ import ( math "math" math_bits "math/bits" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" _ "github.com/cosmos/cosmos-proto" _ "github.com/gogo/protobuf/gogoproto" diff --git a/x/staking/typesadapter/staking.pb.go b/x/staking/typesadapter/staking.pb.go index 1bc644d36..6a307336f 100644 --- a/x/staking/typesadapter/staking.pb.go +++ b/x/staking/typesadapter/staking.pb.go @@ -15,11 +15,11 @@ import ( strings "strings" time "time" - "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/abci/types" - github_com_cosmos_cosmos_sdk_types "github.com/okx/okbchain/libs/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/okx/brczero/libs/cosmos-sdk/types" - types1 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" + types1 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" _ "github.com/cosmos/cosmos-proto" _ "github.com/gogo/protobuf/gogoproto" diff --git a/x/staking/validator_state_machine_test.go b/x/staking/validator_state_machine_test.go index d2330f3f3..5e0bb840b 100644 --- a/x/staking/validator_state_machine_test.go +++ b/x/staking/validator_state_machine_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/x/staking/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestValidatorSMCreateValidator(t *testing.T) { diff --git a/x/staking/validator_test.go b/x/staking/validator_test.go index b3eaea318..0222df12b 100644 --- a/x/staking/validator_test.go +++ b/x/staking/validator_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "github.com/okx/okbchain/x/staking/types" + "github.com/okx/brczero/x/staking/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func TestValidatorMultiCreates(t *testing.T) { diff --git a/x/token/alias.go b/x/token/alias.go index b0c4092ae..e87fd157e 100644 --- a/x/token/alias.go +++ b/x/token/alias.go @@ -1,6 +1,6 @@ package token -import "github.com/okx/okbchain/x/token/types" +import "github.com/okx/brczero/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 8b27ffc06..ccf654d01 100644 --- a/x/token/beginblocker.go +++ b/x/token/beginblocker.go @@ -1,9 +1,9 @@ package token import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common/perf" - "github.com/okx/okbchain/x/token/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common/perf" + "github.com/okx/brczero/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 63f8c3f0d..e362ae0ed 100644 --- a/x/token/client/cli/query.go +++ b/x/token/client/cli/query.go @@ -2,15 +2,17 @@ package cli import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/spf13/cobra" + + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/x/token/types" ) // GetQueryCmd returns the cli query commands for this module @@ -86,7 +88,7 @@ func getCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command { Short: "Query the parameters of the token process", Long: strings.TrimSpace(`Query the all the parameters for the governance process: -$ okbchaincli query token params +$ brczerocli query token params `), Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { diff --git a/x/token/client/cli/tx.go b/x/token/client/cli/tx.go index ab0a0bec6..c10409b00 100644 --- a/x/token/client/cli/tx.go +++ b/x/token/client/cli/tx.go @@ -3,18 +3,18 @@ package cli import ( "bufio" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" "io/ioutil" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authTypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authTypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/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 378840eb4..4d3c0b36a 100644 --- a/x/token/client/rest/rest.go +++ b/x/token/client/rest/rest.go @@ -4,15 +4,15 @@ import ( "fmt" "net/http" - "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/x/token/types" "encoding/json" "strings" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/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 69cc8a269..557e2b50f 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/okx/okbchain/x/token/types" + "github.com/okx/brczero/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 01cd2daaf..68bca9a5a 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/okx/okbchain/x/token/types" + "github.com/okx/brczero/x/token/types" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" ) // RegisterRoutesV2, a central function to define routes diff --git a/x/token/expected_keepers.go b/x/token/expected_keepers.go index b313c8597..7b88422da 100644 --- a/x/token/expected_keepers.go +++ b/x/token/expected_keepers.go @@ -1,8 +1,8 @@ package token import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" ) // SupplyKeeper defines the expected supply Keeper (noalias) diff --git a/x/token/export_accounts.go b/x/token/export_accounts.go index c4f71fe9e..787eb1f06 100644 --- a/x/token/export_accounts.go +++ b/x/token/export_accounts.go @@ -11,10 +11,10 @@ import ( "github.com/aliyun/aliyun-oss-go-sdk/oss" ethcrypto "github.com/ethereum/go-ethereum/crypto" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/tendermint/libs/cli" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/tendermint/libs/cli" "github.com/spf13/viper" ) diff --git a/x/token/genesis.go b/x/token/genesis.go index 40fef0096..e8e09eecd 100644 --- a/x/token/genesis.go +++ b/x/token/genesis.go @@ -4,9 +4,9 @@ import ( "errors" "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/token/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/token/types" ) // default owner of okb diff --git a/x/token/genesis_test.go b/x/token/genesis_test.go index a20cb1e02..e5ae1932d 100644 --- a/x/token/genesis_test.go +++ b/x/token/genesis_test.go @@ -1,12 +1,12 @@ package token import ( - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/token/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/token/types" "github.com/stretchr/testify/require" ) diff --git a/x/token/handler.go b/x/token/handler.go index 1c001d562..dc8e6115a 100644 --- a/x/token/handler.go +++ b/x/token/handler.go @@ -3,13 +3,13 @@ package token import ( "fmt" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/common/perf" - "github.com/okx/okbchain/x/common/version" - "github.com/okx/okbchain/x/token/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/common/perf" + "github.com/okx/brczero/x/common/version" + "github.com/okx/brczero/x/token/types" ) // NewTokenHandler returns a handler for "token" type messages. diff --git a/x/token/handler_ibc.go b/x/token/handler_ibc.go index 946d5f1e4..f8dabee81 100644 --- a/x/token/handler_ibc.go +++ b/x/token/handler_ibc.go @@ -2,9 +2,9 @@ package token import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/x/token/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/x/token/types" ) type WalletTokenTransfer interface { diff --git a/x/token/handler_test.go b/x/token/handler_test.go index 6dde3af04..e01d1b92a 100644 --- a/x/token/handler_test.go +++ b/x/token/handler_test.go @@ -4,21 +4,22 @@ import ( "testing" ethcrypto "github.com/ethereum/go-ethereum/crypto" - chain "github.com/okx/okbchain/app" - app "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mock" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/common/version" - "github.com/okx/okbchain/x/token" - "github.com/okx/okbchain/x/token/types" "github.com/stretchr/testify/require" + + chain "github.com/okx/brczero/app" + app "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/mock" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/common/version" + "github.com/okx/brczero/x/token" + "github.com/okx/brczero/x/token/types" ) func TestHandlerBlockedContractAddrSend(t *testing.T) { @@ -72,10 +73,10 @@ func TestHandlerBlockedContractAddrSend(t *testing.T) { } } -// Setup initializes a new OKBChainApp. A Nop logger is set in OKBChainApp. -func initApp(isCheckTx bool) *chain.OKBChainApp { +// Setup initializes a new BRCZeroApp. A Nop logger is set in BRCZeroApp. +func initApp(isCheckTx bool) *chain.BRCZeroApp { db := dbm.NewMemDB() - app := chain.NewOKBChainApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, 0) + app := chain.NewBRCZeroApp(log.NewNopLogger(), db, nil, true, map[int64]bool{}, 0) if !isCheckTx { // init chain must be called to stop deliverState from being nil diff --git a/x/token/keeper.go b/x/token/keeper.go index c648f922d..f4e8079cc 100644 --- a/x/token/keeper.go +++ b/x/token/keeper.go @@ -7,13 +7,13 @@ import ( "strings" ethcrypto "github.com/ethereum/go-ethereum/crypto" - app "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - types2 "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/token/types" + app "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + types2 "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/token/types" ) // Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine diff --git a/x/token/keeper_test.go b/x/token/keeper_test.go index ff80eb509..17e543f36 100644 --- a/x/token/keeper_test.go +++ b/x/token/keeper_test.go @@ -4,14 +4,14 @@ import ( "fmt" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mock" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mock" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/token/types" ) func TestKeeper_GetFeeDetailList(t *testing.T) { diff --git a/x/token/legacy/v0_10/types.go b/x/token/legacy/v0_10/types.go index 4b050868f..6105e6acf 100644 --- a/x/token/legacy/v0_10/types.go +++ b/x/token/legacy/v0_10/types.go @@ -1,6 +1,6 @@ package v0_10 -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" const ModuleName = "token" diff --git a/x/token/legacy/v0_11/migrate.go b/x/token/legacy/v0_11/migrate.go index 6338c88fe..490a4c244 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/okx/okbchain/x/token/legacy/v0_10" +import "github.com/okx/brczero/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 cab15717b..b1ac7b2e0 100644 --- a/x/token/legacy/v0_11/types.go +++ b/x/token/legacy/v0_11/types.go @@ -1,8 +1,8 @@ package v0_11 import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/token/legacy/v0_10" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/token/legacy/v0_10" ) const ModuleName = "token" diff --git a/x/token/module.go b/x/token/module.go index fb26afdb2..fa4d5accd 100644 --- a/x/token/module.go +++ b/x/token/module.go @@ -3,13 +3,13 @@ package token import ( "encoding/json" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - authTypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + authTypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/common/version" - tokenTypes "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/x/common/version" + tokenTypes "github.com/okx/brczero/x/token/types" ) var ( diff --git a/x/token/module_basic.go b/x/token/module_basic.go index ad505653a..957abbe0e 100644 --- a/x/token/module_basic.go +++ b/x/token/module_basic.go @@ -4,14 +4,14 @@ import ( "encoding/json" "github.com/gorilla/mux" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" "github.com/spf13/cobra" - "github.com/okx/okbchain/x/token/client/cli" - "github.com/okx/okbchain/x/token/client/rest" - tokenTypes "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/x/token/client/cli" + "github.com/okx/brczero/x/token/client/rest" + tokenTypes "github.com/okx/brczero/x/token/types" ) var ( diff --git a/x/token/module_test.go b/x/token/module_test.go index c3b30931c..43116d823 100644 --- a/x/token/module_test.go +++ b/x/token/module_test.go @@ -1,15 +1,15 @@ package token import ( - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec" - cliLcd "github.com/okx/okbchain/libs/cosmos-sdk/client/lcd" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/common/version" - "github.com/okx/okbchain/x/token/types" + cliLcd "github.com/okx/brczero/libs/cosmos-sdk/client/lcd" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/common/version" + "github.com/okx/brczero/x/token/types" "github.com/stretchr/testify/require" ) diff --git a/x/token/querier.go b/x/token/querier.go index ec71eb9e3..9f3e4fb0c 100644 --- a/x/token/querier.go +++ b/x/token/querier.go @@ -1,12 +1,12 @@ package token import ( - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/token/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/spf13/viper" ) diff --git a/x/token/querier_test.go b/x/token/querier_test.go index 80b888b87..c1477bb43 100644 --- a/x/token/querier_test.go +++ b/x/token/querier_test.go @@ -3,12 +3,12 @@ package token import ( "testing" - "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/x/token/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mock" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/common" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mock" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/common" "github.com/stretchr/testify/require" ) diff --git a/x/token/querier_v2.go b/x/token/querier_v2.go index 20574a9f1..84e82fd14 100644 --- a/x/token/querier_v2.go +++ b/x/token/querier_v2.go @@ -3,11 +3,11 @@ package token import ( "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/token/types" ) func queryAccountV2(ctx sdk.Context, path []string, req abci.RequestQuery, keeper Keeper) ([]byte, sdk.Error) { diff --git a/x/token/test_common.go b/x/token/test_common.go index b02697a91..9ff98dd3b 100644 --- a/x/token/test_common.go +++ b/x/token/test_common.go @@ -3,17 +3,17 @@ package token import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/token/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/token/types" "github.com/stretchr/testify/require" ) diff --git a/x/token/token_test.go b/x/token/token_test.go index 463275f01..0216dfee0 100644 --- a/x/token/token_test.go +++ b/x/token/token_test.go @@ -7,21 +7,21 @@ import ( "strings" "testing" - app "github.com/okx/okbchain/app/types" - - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mock" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/common/version" - "github.com/okx/okbchain/x/token/types" + app "github.com/okx/brczero/app/types" + + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/mock" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/common/version" + "github.com/okx/brczero/x/token/types" "github.com/stretchr/testify/require" ) diff --git a/x/token/types/codec.go b/x/token/types/codec.go index a186a0229..9b8b06c04 100644 --- a/x/token/types/codec.go +++ b/x/token/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/system" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/system" ) // RegisterCodec registers concrete types on the Amino codec diff --git a/x/token/types/confirm_ownership.go b/x/token/types/confirm_ownership.go index a7e955e3c..5bac487fd 100644 --- a/x/token/types/confirm_ownership.go +++ b/x/token/types/confirm_ownership.go @@ -3,7 +3,7 @@ package types import ( "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // DefaultOwnershipConfirmWindow defines default confirm window diff --git a/x/token/types/errors.go b/x/token/types/errors.go index f2c2ce6cf..ede59dc0a 100644 --- a/x/token/types/errors.go +++ b/x/token/types/errors.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) const ( diff --git a/x/token/types/expected_keepers.go b/x/token/types/expected_keepers.go index 0b658f8f4..8f1570d02 100644 --- a/x/token/types/expected_keepers.go +++ b/x/token/types/expected_keepers.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" ) type AccountKeeper interface { diff --git a/x/token/types/keys.go b/x/token/types/keys.go index 2a3474109..2d692cd84 100644 --- a/x/token/types/keys.go +++ b/x/token/types/keys.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/x/token/types/msgs.go b/x/token/types/msgs.go index d6b074837..b4b04e50d 100644 --- a/x/token/types/msgs.go +++ b/x/token/types/msgs.go @@ -2,8 +2,8 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" ) const ( diff --git a/x/token/types/msgs_test.go b/x/token/types/msgs_test.go index 0ac917101..453200ad6 100644 --- a/x/token/types/msgs_test.go +++ b/x/token/types/msgs_test.go @@ -4,9 +4,9 @@ import ( "strconv" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/x/common" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/x/common" "github.com/stretchr/testify/require" ) diff --git a/x/token/types/params.go b/x/token/types/params.go index 0a1120ce7..5b4ee1fe1 100644 --- a/x/token/types/params.go +++ b/x/token/types/params.go @@ -5,9 +5,9 @@ import ( "strings" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/params" ) const ( diff --git a/x/token/types/params_test.go b/x/token/types/params_test.go index a8d41ac64..c2d24d0dd 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/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/x/params" "github.com/stretchr/testify/require" ) diff --git a/x/token/types/token.go b/x/token/types/token.go index f11579502..c7226cf70 100644 --- a/x/token/types/token.go +++ b/x/token/types/token.go @@ -3,7 +3,7 @@ package types import ( "encoding/json" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type Token struct { diff --git a/x/token/types/token_test.go b/x/token/types/token_test.go index ee88b82e4..3a1630952 100644 --- a/x/token/types/token_test.go +++ b/x/token/types/token_test.go @@ -4,10 +4,10 @@ import ( "encoding/json" "testing" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" ) diff --git a/x/token/types/util.go b/x/token/types/util.go index 971eb5b8a..6fad04398 100644 --- a/x/token/types/util.go +++ b/x/token/types/util.go @@ -7,9 +7,9 @@ import ( "sort" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/tendermint/crypto" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/tendermint/crypto" ) var ( diff --git a/x/token/types/util_test.go b/x/token/types/util_test.go index 1ce59a53c..496b2df9c 100644 --- a/x/token/types/util_test.go +++ b/x/token/types/util_test.go @@ -3,11 +3,11 @@ package types import ( "testing" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" "github.com/stretchr/testify/require" ) diff --git a/x/vmbridge/alias.go b/x/vmbridge/alias.go index 63f7b0b3f..ee78fc4d5 100644 --- a/x/vmbridge/alias.go +++ b/x/vmbridge/alias.go @@ -1,8 +1,8 @@ package vmbridge import ( - "github.com/okx/okbchain/x/vmbridge/keeper" - "github.com/okx/okbchain/x/vmbridge/types" + "github.com/okx/brczero/x/vmbridge/keeper" + "github.com/okx/brczero/x/vmbridge/types" ) var ( diff --git a/x/vmbridge/keeper/evm.go b/x/vmbridge/keeper/evm.go index 39da48d51..82d9312a1 100644 --- a/x/vmbridge/keeper/evm.go +++ b/x/vmbridge/keeper/evm.go @@ -5,14 +5,14 @@ import ( "encoding/json" "fmt" "github.com/ethereum/go-ethereum/common" - ethermint "github.com/okx/okbchain/app/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - erc20types "github.com/okx/okbchain/x/erc20/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/evm/watcher" - "github.com/okx/okbchain/x/vmbridge/types" + ethermint "github.com/okx/brczero/app/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + erc20types "github.com/okx/brczero/x/erc20/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/evm/watcher" + "github.com/okx/brczero/x/vmbridge/types" "math/big" ) diff --git a/x/vmbridge/keeper/evm_test.go b/x/vmbridge/keeper/evm_test.go index 5e49f4129..2e2a60939 100644 --- a/x/vmbridge/keeper/evm_test.go +++ b/x/vmbridge/keeper/evm_test.go @@ -7,11 +7,11 @@ import ( "fmt" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - keeper2 "github.com/okx/okbchain/x/vmbridge/keeper" - "github.com/okx/okbchain/x/vmbridge/types" - wasmtypes "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + keeper2 "github.com/okx/brczero/x/vmbridge/keeper" + "github.com/okx/brczero/x/vmbridge/types" + wasmtypes "github.com/okx/brczero/x/wasm/types" "github.com/stretchr/testify/require" "math/big" ) diff --git a/x/vmbridge/keeper/excepted_keeper.go b/x/vmbridge/keeper/excepted_keeper.go index c76d7ab8b..a962d7444 100644 --- a/x/vmbridge/keeper/excepted_keeper.go +++ b/x/vmbridge/keeper/excepted_keeper.go @@ -4,10 +4,10 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" ethcmn "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/vm" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - evmtypes "github.com/okx/okbchain/x/evm/types" - wasmtypes "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + evmtypes "github.com/okx/brczero/x/evm/types" + wasmtypes "github.com/okx/brczero/x/wasm/types" ) type EVMKeeper interface { diff --git a/x/vmbridge/keeper/keeper.go b/x/vmbridge/keeper/keeper.go index 17ebc7b12..257f58225 100644 --- a/x/vmbridge/keeper/keeper.go +++ b/x/vmbridge/keeper/keeper.go @@ -1,10 +1,10 @@ package keeper import ( - "github.com/okx/okbchain/x/vmbridge/types" + "github.com/okx/brczero/x/vmbridge/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/tendermint/libs/log" ) type Keeper struct { diff --git a/x/vmbridge/keeper/keeper_test.go b/x/vmbridge/keeper/keeper_test.go index e407020e9..da60fa433 100644 --- a/x/vmbridge/keeper/keeper_test.go +++ b/x/vmbridge/keeper/keeper_test.go @@ -11,14 +11,15 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" - "github.com/okx/okbchain/app" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/vmbridge/keeper" - wasmtypes "github.com/okx/okbchain/x/wasm/types" "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/vmbridge/keeper" + wasmtypes "github.com/okx/brczero/x/wasm/types" ) func TestKeeperTestSuite(t *testing.T) { @@ -33,7 +34,7 @@ type KeeperTestSuite struct { suite.Suite ctx sdk.Context - app *app.OKBChainApp + app *app.BRCZeroApp keeper *keeper.Keeper diff --git a/x/vmbridge/keeper/precompile.go b/x/vmbridge/keeper/precompile.go index fbadc062a..7a88661bd 100644 --- a/x/vmbridge/keeper/precompile.go +++ b/x/vmbridge/keeper/precompile.go @@ -5,9 +5,9 @@ import ( "errors" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/vm" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/vmbridge/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/vmbridge/types" "math/big" ) diff --git a/x/vmbridge/keeper/precompile_test.go b/x/vmbridge/keeper/precompile_test.go index 523a5b4f4..4fe3fbd71 100644 --- a/x/vmbridge/keeper/precompile_test.go +++ b/x/vmbridge/keeper/precompile_test.go @@ -8,9 +8,9 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - evmtypes "github.com/okx/okbchain/x/evm/types" - "github.com/okx/okbchain/x/vmbridge/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + evmtypes "github.com/okx/brczero/x/evm/types" + "github.com/okx/brczero/x/vmbridge/types" "math/big" "strconv" "strings" diff --git a/x/vmbridge/keeper/wasm.go b/x/vmbridge/keeper/wasm.go index 667c6d895..93195c0ef 100644 --- a/x/vmbridge/keeper/wasm.go +++ b/x/vmbridge/keeper/wasm.go @@ -4,13 +4,13 @@ import ( "context" "encoding/json" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - ibcadapter "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/vmbridge/types" - "github.com/okx/okbchain/x/wasm" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + ibcadapter "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/vmbridge/types" + "github.com/okx/brczero/x/wasm" ) func (k Keeper) SendToWasm(ctx sdk.Context, caller sdk.AccAddress, wasmContractAddr, recipient string, amount sdk.Int) error { diff --git a/x/vmbridge/keeper/wasm_test.go b/x/vmbridge/keeper/wasm_test.go index 6516dc000..35b947aaa 100644 --- a/x/vmbridge/keeper/wasm_test.go +++ b/x/vmbridge/keeper/wasm_test.go @@ -7,11 +7,11 @@ import ( "math/big" "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/vmbridge/keeper" - "github.com/okx/okbchain/x/vmbridge/types" - wasmtypes "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/vmbridge/keeper" + "github.com/okx/brczero/x/vmbridge/types" + wasmtypes "github.com/okx/brczero/x/wasm/types" ) func (suite *KeeperTestSuite) TestKeeper_SendToWasm() { diff --git a/x/vmbridge/register.go b/x/vmbridge/register.go index 29a1eea40..d74f90360 100644 --- a/x/vmbridge/register.go +++ b/x/vmbridge/register.go @@ -1,10 +1,10 @@ package vmbridge import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/x/vmbridge/keeper" - "github.com/okx/okbchain/x/wasm" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/x/vmbridge/keeper" + "github.com/okx/brczero/x/wasm" ) func RegisterServices(cfg module.Configurator, keeper keeper.Keeper) { diff --git a/x/vmbridge/types/codec.go b/x/vmbridge/types/codec.go index 8b4f18f28..7dafa9062 100644 --- a/x/vmbridge/types/codec.go +++ b/x/vmbridge/types/codec.go @@ -1,9 +1,9 @@ package types import ( - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" ) func RegisterInterface(registry interfacetypes.InterfaceRegistry) { diff --git a/x/vmbridge/types/errors.go b/x/vmbridge/types/errors.go index 0f3b4494f..3e978ce8c 100644 --- a/x/vmbridge/types/errors.go +++ b/x/vmbridge/types/errors.go @@ -2,8 +2,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) var ( diff --git a/x/vmbridge/types/precompile.go b/x/vmbridge/types/precompile.go index bf6d648f7..be2e5595a 100644 --- a/x/vmbridge/types/precompile.go +++ b/x/vmbridge/types/precompile.go @@ -5,7 +5,7 @@ import ( _ "embed" "fmt" "github.com/ethereum/go-ethereum/accounts/abi" - evm_types "github.com/okx/okbchain/x/evm/types" + evm_types "github.com/okx/brczero/x/evm/types" ) const ( diff --git a/x/vmbridge/types/protocol_test.go b/x/vmbridge/types/protocol_test.go index 8faa0ba0e..7180ace88 100644 --- a/x/vmbridge/types/protocol_test.go +++ b/x/vmbridge/types/protocol_test.go @@ -2,7 +2,7 @@ package types import ( "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" "math/big" "testing" diff --git a/x/vmbridge/types/tx.go b/x/vmbridge/types/tx.go index ea1c4067a..fe11f27f6 100644 --- a/x/vmbridge/types/tx.go +++ b/x/vmbridge/types/tx.go @@ -2,7 +2,7 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (msg MsgSendToEvm) Route() string { diff --git a/x/vmbridge/types/tx.pb.go b/x/vmbridge/types/tx.pb.go index 39dca1aeb..6a938cb09 100644 --- a/x/vmbridge/types/tx.pb.go +++ b/x/vmbridge/types/tx.pb.go @@ -9,7 +9,7 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" diff --git a/x/vmbridge/types/tx_test.go b/x/vmbridge/types/tx_test.go index 1bd204092..24f52a797 100644 --- a/x/vmbridge/types/tx_test.go +++ b/x/vmbridge/types/tx_test.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" "testing" ) diff --git a/x/wasm/alias.go b/x/wasm/alias.go index f597a36f8..fa02e95e3 100644 --- a/x/wasm/alias.go +++ b/x/wasm/alias.go @@ -1,13 +1,13 @@ // nolint // autogenerated code using github.com/rigelrozanski/multitool // aliases generated for the following subdirectories: -// ALIASGEN: github.com/okx/okbchain/x/wasm/types -// ALIASGEN: github.com/okx/okbchain/x/wasm/keeper +// ALIASGEN: github.com/okx/brczero/x/wasm/types +// ALIASGEN: github.com/okx/brczero/x/wasm/keeper package wasm import ( - "github.com/okx/okbchain/x/wasm/keeper" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/types" ) const ( diff --git a/x/wasm/client/cli/genesis_msg.go b/x/wasm/client/cli/genesis_msg.go index a072b6f15..15499b942 100644 --- a/x/wasm/client/cli/genesis_msg.go +++ b/x/wasm/client/cli/genesis_msg.go @@ -8,17 +8,17 @@ import ( "errors" "fmt" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - genutiltypes "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/wasm/client/utils" - "github.com/okx/okbchain/x/wasm/keeper" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + genutiltypes "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/wasm/client/utils" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/types" "github.com/spf13/cobra" ) diff --git a/x/wasm/client/cli/genesis_msg_test.go b/x/wasm/client/cli/genesis_msg_test.go index add2daecd..4602b6a65 100644 --- a/x/wasm/client/cli/genesis_msg_test.go +++ b/x/wasm/client/cli/genesis_msg_test.go @@ -3,37 +3,37 @@ package cli import ( "context" "encoding/json" - apptypes "github.com/okx/okbchain/app/types" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - auth "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/x/wasm/client/utils" + apptypes "github.com/okx/brczero/app/types" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/server" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + auth "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/x/wasm/client/utils" "io/ioutil" "os" "path" "strings" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys" - "github.com/okx/okbchain/libs/tendermint/libs/log" - //"github.com/okx/okbchain/libs/cosmos-sdk/testutil" - "github.com/okx/okbchain/libs/cosmos-sdk/tests" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil" - genutiltypes "github.com/okx/okbchain/libs/cosmos-sdk/x/genutil/types" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys" + "github.com/okx/brczero/libs/tendermint/libs/log" + //"github.com/okx/brczero/libs/cosmos-sdk/testutil" + "github.com/okx/brczero/libs/cosmos-sdk/tests" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/genutil" + genutiltypes "github.com/okx/brczero/libs/cosmos-sdk/x/genutil/types" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "github.com/spf13/cobra" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/x/wasm/keeper" - "github.com/okx/okbchain/x/wasm/types" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/types" ) var wasmIdent = []byte("\x00\x61\x73\x6D") diff --git a/x/wasm/client/cli/gov_custom.go b/x/wasm/client/cli/gov_custom.go index 59ad46b2f..dedeaf7a2 100644 --- a/x/wasm/client/cli/gov_custom.go +++ b/x/wasm/client/cli/gov_custom.go @@ -6,17 +6,17 @@ import ( "sort" "strings" - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/version" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/gov" - govcli "github.com/okx/okbchain/x/gov/client/cli" - utils2 "github.com/okx/okbchain/x/wasm/client/utils" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/version" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/gov" + govcli "github.com/okx/brczero/x/gov/client/cli" + utils2 "github.com/okx/brczero/x/wasm/client/utils" + "github.com/okx/brczero/x/wasm/types" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/x/wasm/client/cli/gov_tx.go b/x/wasm/client/cli/gov_tx.go index b1a9a83ed..356d94eb7 100644 --- a/x/wasm/client/cli/gov_tx.go +++ b/x/wasm/client/cli/gov_tx.go @@ -5,15 +5,15 @@ import ( "fmt" "strconv" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - govcli "github.com/okx/okbchain/x/gov/client/cli" - govtypes "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/wasm/types" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + govcli "github.com/okx/brczero/x/gov/client/cli" + govtypes "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/wasm/types" "github.com/spf13/cobra" ) diff --git a/x/wasm/client/cli/query.go b/x/wasm/client/cli/query.go index bd47a2078..ffdcdcd50 100644 --- a/x/wasm/client/cli/query.go +++ b/x/wasm/client/cli/query.go @@ -13,19 +13,19 @@ import ( wasmvm "github.com/CosmWasm/wasmvm" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/keeper" "github.com/spf13/cobra" flag "github.com/spf13/pflag" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/x/wasm/types" ) // NewQueryCmd returns the query commands for wasm diff --git a/x/wasm/client/cli/tx.go b/x/wasm/client/cli/tx.go index 626f6caec..342285189 100644 --- a/x/wasm/client/cli/tx.go +++ b/x/wasm/client/cli/tx.go @@ -10,17 +10,17 @@ import ( "github.com/spf13/cobra" flag "github.com/spf13/pflag" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" - "github.com/okx/okbchain/x/wasm/ioutils" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/libs/cosmos-sdk/client" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/x/wasm/ioutils" + "github.com/okx/brczero/x/wasm/types" ) const ( diff --git a/x/wasm/client/proposal_handler.go b/x/wasm/client/proposal_handler.go index 76cb90556..9aaeaf6cc 100644 --- a/x/wasm/client/proposal_handler.go +++ b/x/wasm/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - govclient "github.com/okx/okbchain/x/gov/client" - "github.com/okx/okbchain/x/wasm/client/cli" - "github.com/okx/okbchain/x/wasm/client/rest" + govclient "github.com/okx/brczero/x/gov/client" + "github.com/okx/brczero/x/wasm/client/cli" + "github.com/okx/brczero/x/wasm/client/rest" ) // ProposalHandlers define the wasm cli proposal types and rest handler. diff --git a/x/wasm/client/proposal_handler_test.go b/x/wasm/client/proposal_handler_test.go index 587240aa3..5d7c445f3 100644 --- a/x/wasm/client/proposal_handler_test.go +++ b/x/wasm/client/proposal_handler_test.go @@ -10,12 +10,12 @@ package client // "testing" // // "github.com/gorilla/mux" -// "github.com/okx/okbchain/libs/cosmos-sdk/client" -// "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" -// authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" +// "github.com/okx/brczero/libs/cosmos-sdk/client" +// "github.com/okx/brczero/libs/cosmos-sdk/client/flags" +// authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" // "github.com/stretchr/testify/require" // -// "github.com/okx/okbchain/x/wasm/keeper" +// "github.com/okx/brczero/x/wasm/keeper" //) // //func TestGovRestHandlers(t *testing.T) { diff --git a/x/wasm/client/rest/gov.go b/x/wasm/client/rest/gov.go index bb274a82d..cc90f7e7f 100644 --- a/x/wasm/client/rest/gov.go +++ b/x/wasm/client/rest/gov.go @@ -4,13 +4,13 @@ import ( "encoding/json" "net/http" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - govrest "github.com/okx/okbchain/x/gov/client/rest" - "github.com/okx/okbchain/x/wasm/client/utils" - "github.com/okx/okbchain/x/wasm/types" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + govrest "github.com/okx/brczero/x/gov/client/rest" + "github.com/okx/brczero/x/wasm/client/utils" + "github.com/okx/brczero/x/wasm/types" ) type StoreCodeProposalJSONReq struct { diff --git a/x/wasm/client/rest/new_tx.go b/x/wasm/client/rest/new_tx.go index ac98c8433..ff735e4b5 100644 --- a/x/wasm/client/rest/new_tx.go +++ b/x/wasm/client/rest/new_tx.go @@ -4,10 +4,10 @@ import ( "net/http" "github.com/gorilla/mux" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/x/wasm/client/utils" - "github.com/okx/okbchain/x/wasm/types" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + "github.com/okx/brczero/x/wasm/client/utils" + "github.com/okx/brczero/x/wasm/types" ) func registerNewTxRoutes(cliCtx clientCtx.CLIContext, r *mux.Router) { diff --git a/x/wasm/client/rest/query.go b/x/wasm/client/rest/query.go index 4e538bba1..1168bb26d 100644 --- a/x/wasm/client/rest/query.go +++ b/x/wasm/client/rest/query.go @@ -10,15 +10,15 @@ import ( "strconv" "strings" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" "github.com/gorilla/mux" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" - "github.com/okx/okbchain/x/wasm/keeper" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/types" ) func registerQueryRoutes(cliCtx clientCtx.CLIContext, r *mux.Router) { diff --git a/x/wasm/client/rest/rest.go b/x/wasm/client/rest/rest.go index 865fe983f..34761a9de 100644 --- a/x/wasm/client/rest/rest.go +++ b/x/wasm/client/rest/rest.go @@ -2,7 +2,7 @@ package rest import ( "github.com/gorilla/mux" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" ) // RegisterRoutes registers staking-related REST handlers to a router diff --git a/x/wasm/client/rest/tx.go b/x/wasm/client/rest/tx.go index bad521ae7..872ac84fb 100644 --- a/x/wasm/client/rest/tx.go +++ b/x/wasm/client/rest/tx.go @@ -2,15 +2,15 @@ package rest import ( "github.com/gorilla/mux" - "github.com/okx/okbchain/x/wasm/ioutils" + "github.com/okx/brczero/x/wasm/ioutils" "net/http" "strconv" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - wasmUtils "github.com/okx/okbchain/x/wasm/client/utils" - "github.com/okx/okbchain/x/wasm/types" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + wasmUtils "github.com/okx/brczero/x/wasm/client/utils" + "github.com/okx/brczero/x/wasm/types" ) func registerTxRoutes(cliCtx clientCtx.CLIContext, r *mux.Router) { diff --git a/x/wasm/client/utils/client_adapter.go b/x/wasm/client/utils/client_adapter.go index df70ad929..0a43eca59 100644 --- a/x/wasm/client/utils/client_adapter.go +++ b/x/wasm/client/utils/client_adapter.go @@ -1,12 +1,12 @@ package utils import ( - "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - clientCtx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/rest" - authUtils "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/client/utils" + "github.com/okx/brczero/libs/cosmos-sdk/client/context" + clientCtx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/rest" + authUtils "github.com/okx/brczero/libs/cosmos-sdk/x/auth/client/utils" "github.com/spf13/cobra" "github.com/spf13/pflag" "net/http" diff --git a/x/wasm/client/utils/utils.go b/x/wasm/client/utils/utils.go index 124d286d9..e046e31db 100644 --- a/x/wasm/client/utils/utils.go +++ b/x/wasm/client/utils/utils.go @@ -5,8 +5,8 @@ import ( "compress/gzip" "io/ioutil" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) var ( diff --git a/x/wasm/common_test.go b/x/wasm/common_test.go index a703c7516..1a6e60e46 100644 --- a/x/wasm/common_test.go +++ b/x/wasm/common_test.go @@ -3,7 +3,7 @@ package wasm import ( "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/genesis_test.go b/x/wasm/genesis_test.go index d5f57161a..770e5f4df 100644 --- a/x/wasm/genesis_test.go +++ b/x/wasm/genesis_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/types" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/handler.go b/x/wasm/handler.go index 890f712f7..b1a6d8198 100644 --- a/x/wasm/handler.go +++ b/x/wasm/handler.go @@ -4,16 +4,16 @@ import ( "fmt" "github.com/gogo/protobuf/proto" - bam "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - sdktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - cfg "github.com/okx/okbchain/libs/tendermint/config" - "github.com/okx/okbchain/libs/tendermint/libs/kv" - types2 "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/wasm/keeper" - "github.com/okx/okbchain/x/wasm/types" - "github.com/okx/okbchain/x/wasm/watcher" + bam "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + sdktypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + cfg "github.com/okx/brczero/libs/tendermint/config" + "github.com/okx/brczero/libs/tendermint/libs/kv" + types2 "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/types" + "github.com/okx/brczero/x/wasm/watcher" ) // NewHandler returns a handler for "wasm" type messages. diff --git a/x/wasm/ibc.go b/x/wasm/ibc.go index c5f52b0c7..68a5ce1cd 100644 --- a/x/wasm/ibc.go +++ b/x/wasm/ibc.go @@ -3,17 +3,17 @@ package wasm import ( "math" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - porttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/05-port/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - - types "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + porttypes "github.com/okx/brczero/libs/ibc-go/modules/core/05-port/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + + types "github.com/okx/brczero/x/wasm/types" ) var _ porttypes.IBCModule = IBCHandler{} diff --git a/x/wasm/ibc_reflect_test.go b/x/wasm/ibc_reflect_test.go index 48f76df22..9168398da 100644 --- a/x/wasm/ibc_reflect_test.go +++ b/x/wasm/ibc_reflect_test.go @@ -11,8 +11,8 @@ package wasm_test // wasmvmtypes "github.com/CosmWasm/wasmvm/types" // "github.com/stretchr/testify/require" // -// wasmibctesting "github.com/okx/okbchain/x/wasm/ibctesting" -// wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" +// wasmibctesting "github.com/okx/brczero/x/wasm/ibctesting" +// wasmkeeper "github.com/okx/brczero/x/wasm/keeper" //) // //func TestIBCReflectContract(t *testing.T) { diff --git a/x/wasm/ibctesting/chain.go b/x/wasm/ibctesting/chain.go index ae1d098cf..c6e9ef869 100644 --- a/x/wasm/ibctesting/chain.go +++ b/x/wasm/ibctesting/chain.go @@ -6,20 +6,20 @@ package ibctesting // "testing" // "time" // -// "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" -// "github.com/okx/okbchain/libs/cosmos-sdk/client" -// "github.com/okx/okbchain/libs/cosmos-sdk/codec" -// "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/secp256k1" -// cryptotypes "github.com/okx/okbchain/libs/cosmos-sdk/crypto/types" -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" -// sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" -// authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" -// banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/types" -// capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" -// capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" -// stakingkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/keeper" -// "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/teststaking" -// stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" +// "github.com/okx/brczero/libs/cosmos-sdk/baseapp" +// "github.com/okx/brczero/libs/cosmos-sdk/client" +// "github.com/okx/brczero/libs/cosmos-sdk/codec" +// "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/secp256k1" +// cryptotypes "github.com/okx/brczero/libs/cosmos-sdk/crypto/types" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" +// sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" +// authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" +// banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank/types" +// capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" +// capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" +// stakingkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/staking/keeper" +// "github.com/okx/brczero/libs/cosmos-sdk/x/staking/teststaking" +// stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" // clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types" // channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types" // commitmenttypes "github.com/cosmos/ibc-go/v3/modules/core/23-commitment/types" @@ -38,8 +38,8 @@ package ibctesting // tmtypes "github.com/tendermint/tendermint/types" // tmversion "github.com/tendermint/tendermint/version" // -// wasmd "github.com/okx/okbchain/app" -// "github.com/okx/okbchain/x/wasm" +// wasmd "github.com/okx/brczero/app" +// "github.com/okx/brczero/x/wasm" //) // //// TestChain is a testing struct that wraps a simapp with the last TM Header, the current ABCI diff --git a/x/wasm/ibctesting/coordinator.go b/x/wasm/ibctesting/coordinator.go index b974ed426..7e7a1a7a1 100644 --- a/x/wasm/ibctesting/coordinator.go +++ b/x/wasm/ibctesting/coordinator.go @@ -12,7 +12,7 @@ package ibctesting // "github.com/stretchr/testify/require" // abci "github.com/tendermint/tendermint/abci/types" // -// wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" +// wasmkeeper "github.com/okx/brczero/x/wasm/keeper" //) // //const ChainIDPrefix = "testchain" diff --git a/x/wasm/ibctesting/endpoint.go b/x/wasm/ibctesting/endpoint.go index f12c07fc3..0dc8e6cee 100644 --- a/x/wasm/ibctesting/endpoint.go +++ b/x/wasm/ibctesting/endpoint.go @@ -5,7 +5,7 @@ package ibctesting // // ibctesting "github.com/cosmos/ibc-go/v3/testing" // -// // sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +// // sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // "github.com/stretchr/testify/require" // // clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types" diff --git a/x/wasm/ibctesting/path.go b/x/wasm/ibctesting/path.go index 675d8b3fe..6998aa628 100644 --- a/x/wasm/ibctesting/path.go +++ b/x/wasm/ibctesting/path.go @@ -4,7 +4,7 @@ package ibctesting // "bytes" // "fmt" // -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types" //) // diff --git a/x/wasm/ibctesting/wasm.go b/x/wasm/ibctesting/wasm.go index 8759f8468..c1e9249ed 100644 --- a/x/wasm/ibctesting/wasm.go +++ b/x/wasm/ibctesting/wasm.go @@ -8,17 +8,17 @@ package ibctesting // "io/ioutil" // "strings" // -// wasmd "github.com/okx/okbchain/app" +// wasmd "github.com/okx/brczero/app" // // ibctesting "github.com/cosmos/ibc-go/v3/testing" // -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // "github.com/golang/protobuf/proto" //nolint // "github.com/stretchr/testify/require" // abci "github.com/tendermint/tendermint/abci/types" // "github.com/tendermint/tendermint/libs/rand" // -// "github.com/okx/okbchain/x/wasm/types" +// "github.com/okx/brczero/x/wasm/types" //) // //var wasmIdent = []byte("\x00\x61\x73\x6D") diff --git a/x/wasm/ioutils/ioutil.go b/x/wasm/ioutils/ioutil.go index 9c9bb4b4a..79082c22c 100644 --- a/x/wasm/ioutils/ioutil.go +++ b/x/wasm/ioutils/ioutil.go @@ -6,7 +6,7 @@ import ( "io" "io/ioutil" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) // Uncompress returns gzip uncompressed content if input was gzip, or original src otherwise diff --git a/x/wasm/ioutils/ioutil_test.go b/x/wasm/ioutils/ioutil_test.go index 7411947e8..6a4a6ff3b 100644 --- a/x/wasm/ioutils/ioutil_test.go +++ b/x/wasm/ioutils/ioutil_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) func TestUncompress(t *testing.T) { diff --git a/x/wasm/keeper/ante.go b/x/wasm/keeper/ante.go index df6554ab6..1e25f3b6d 100644 --- a/x/wasm/keeper/ante.go +++ b/x/wasm/keeper/ante.go @@ -3,9 +3,9 @@ package keeper import ( "encoding/binary" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/wasm/types" ) type HandlerOption struct { diff --git a/x/wasm/keeper/ante_test.go b/x/wasm/keeper/ante_test.go index e4bc6fab4..cb066abea 100644 --- a/x/wasm/keeper/ante_test.go +++ b/x/wasm/keeper/ante_test.go @@ -4,20 +4,20 @@ import ( "testing" "time" - types2 "github.com/okx/okbchain/libs/tendermint/types" + types2 "github.com/okx/brczero/libs/tendermint/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) func TestCountTxDecorator(t *testing.T) { diff --git a/x/wasm/keeper/api.go b/x/wasm/keeper/api.go index 077b49b96..c212e991f 100644 --- a/x/wasm/keeper/api.go +++ b/x/wasm/keeper/api.go @@ -3,9 +3,9 @@ package keeper import ( wasmvm "github.com/CosmWasm/wasmvm" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/wasm/types" "strconv" ) diff --git a/x/wasm/keeper/authz_policy.go b/x/wasm/keeper/authz_policy.go index 00fea141f..370100d33 100644 --- a/x/wasm/keeper/authz_policy.go +++ b/x/wasm/keeper/authz_policy.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) type AuthorizationPolicy interface { diff --git a/x/wasm/keeper/bench_test.go b/x/wasm/keeper/bench_test.go index 4e50b361f..fec794979 100644 --- a/x/wasm/keeper/bench_test.go +++ b/x/wasm/keeper/bench_test.go @@ -4,11 +4,11 @@ import ( "io/ioutil" "testing" - dbm "github.com/okx/okbchain/libs/tm-db" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/libs/tendermint/crypto/secp256k1" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/libs/tendermint/crypto/secp256k1" + "github.com/okx/brczero/x/wasm/types" ) // BenchmarkVerification benchmarks secp256k1 verification which is 1000 gas based on cpu time. diff --git a/x/wasm/keeper/cache.go b/x/wasm/keeper/cache.go index b15d33047..7f4a4580c 100644 --- a/x/wasm/keeper/cache.go +++ b/x/wasm/keeper/cache.go @@ -3,7 +3,7 @@ package keeper import ( "sync" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) var wasmParamsCache = NewCache() diff --git a/x/wasm/keeper/contract_keeper.go b/x/wasm/keeper/contract_keeper.go index 39abcac4b..289413859 100644 --- a/x/wasm/keeper/contract_keeper.go +++ b/x/wasm/keeper/contract_keeper.go @@ -2,8 +2,8 @@ package keeper import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/wasm/types" ) var _ types.ContractOpsKeeper = PermissionedKeeper{} diff --git a/x/wasm/keeper/cross_contract_call.go b/x/wasm/keeper/cross_contract_call.go index 46403105c..64e40e6d7 100644 --- a/x/wasm/keeper/cross_contract_call.go +++ b/x/wasm/keeper/cross_contract_call.go @@ -3,8 +3,8 @@ package keeper import ( "encoding/json" wasmvm "github.com/CosmWasm/wasmvm" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/wasm/types" ) var ( diff --git a/x/wasm/keeper/cross_contract_call_test.go b/x/wasm/keeper/cross_contract_call_test.go index 92d08e40b..cdc44826c 100644 --- a/x/wasm/keeper/cross_contract_call_test.go +++ b/x/wasm/keeper/cross_contract_call_test.go @@ -2,7 +2,7 @@ package keeper import ( "encoding/json" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" "testing" ) diff --git a/x/wasm/keeper/events.go b/x/wasm/keeper/events.go index 2089c4805..8864c14ae 100644 --- a/x/wasm/keeper/events.go +++ b/x/wasm/keeper/events.go @@ -5,10 +5,10 @@ import ( "strings" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) // newWasmModuleEvent creates with wasm module event for interacting with the given contract. Adds custom attributes diff --git a/x/wasm/keeper/events_test.go b/x/wasm/keeper/events_test.go index 11fc77424..046117b22 100644 --- a/x/wasm/keeper/events_test.go +++ b/x/wasm/keeper/events_test.go @@ -5,10 +5,10 @@ import ( "testing" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/assert" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) func TestHasWasmModuleEvent(t *testing.T) { diff --git a/x/wasm/keeper/gas_register.go b/x/wasm/keeper/gas_register.go index 82790c2b0..f2092f399 100644 --- a/x/wasm/keeper/gas_register.go +++ b/x/wasm/keeper/gas_register.go @@ -2,11 +2,11 @@ package keeper import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) const ( diff --git a/x/wasm/keeper/gas_register_test.go b/x/wasm/keeper/gas_register_test.go index 1e1daaa43..f08e75b72 100644 --- a/x/wasm/keeper/gas_register_test.go +++ b/x/wasm/keeper/gas_register_test.go @@ -6,8 +6,8 @@ import ( "testing" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/assert" ) diff --git a/x/wasm/keeper/genesis.go b/x/wasm/keeper/genesis.go index 2fa81592d..604e12f0f 100644 --- a/x/wasm/keeper/genesis.go +++ b/x/wasm/keeper/genesis.go @@ -1,11 +1,11 @@ package keeper import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) // ValidatorSetSource is a subset of the staking keeper diff --git a/x/wasm/keeper/genesis_test.go b/x/wasm/keeper/genesis_test.go index e9cc90622..4efba1ebe 100644 --- a/x/wasm/keeper/genesis_test.go +++ b/x/wasm/keeper/genesis_test.go @@ -6,10 +6,10 @@ import ( "encoding/base64" "errors" "fmt" - chain "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + chain "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" "io/ioutil" "math/rand" "os" @@ -17,19 +17,19 @@ import ( "time" fuzz "github.com/google/gofuzz" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - paramskeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - paramtypes "github.com/okx/okbchain/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + paramskeeper "github.com/okx/brczero/libs/cosmos-sdk/x/params" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + paramtypes "github.com/okx/brczero/x/params" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/types" - wasmTypes "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" + wasmTypes "github.com/okx/brczero/x/wasm/types" ) const firstCodeID = 1 diff --git a/x/wasm/keeper/handler_plugin.go b/x/wasm/keeper/handler_plugin.go index c604a5f7a..0f410914a 100644 --- a/x/wasm/keeper/handler_plugin.go +++ b/x/wasm/keeper/handler_plugin.go @@ -4,15 +4,15 @@ import ( "errors" "fmt" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - ibcadapter "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + ibcadapter "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + + "github.com/okx/brczero/x/wasm/types" ) // msgEncoder is an extension point to customize encodings diff --git a/x/wasm/keeper/handler_plugin_encoders.go b/x/wasm/keeper/handler_plugin_encoders.go index 0cd701141..516c4b2fe 100644 --- a/x/wasm/keeper/handler_plugin_encoders.go +++ b/x/wasm/keeper/handler_plugin_encoders.go @@ -3,18 +3,18 @@ package keeper import ( "encoding/json" "fmt" - ibcadapter "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - bank "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" + ibcadapter "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + bank "github.com/okx/brczero/libs/cosmos-sdk/x/bank" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - ibctransfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - ibcclienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + ibctransfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + ibcclienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) type BankEncoder func(sender sdk.WasmAddress, msg *wasmvmtypes.BankMsg) ([]ibcadapter.Msg, error) diff --git a/x/wasm/keeper/handler_plugin_encoders_test.go b/x/wasm/keeper/handler_plugin_encoders_test.go index 8d5eedb10..d36f66cab 100644 --- a/x/wasm/keeper/handler_plugin_encoders_test.go +++ b/x/wasm/keeper/handler_plugin_encoders_test.go @@ -1,24 +1,24 @@ package keeper import ( - ibcadapter "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" + ibcadapter "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" "testing" "github.com/golang/protobuf/proto" - //ibctransfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - //clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - //channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + //ibctransfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + //clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + //channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" "github.com/stretchr/testify/assert" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - //distributiontypes "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - //stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + //distributiontypes "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + //stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" "github.com/stretchr/testify/require" - //"github.com/okx/okbchain/x/wasm/keeper/wasmtesting" - "github.com/okx/okbchain/x/wasm/types" + //"github.com/okx/brczero/x/wasm/keeper/wasmtesting" + "github.com/okx/brczero/x/wasm/types" ) func TestEncoding(t *testing.T) { diff --git a/x/wasm/keeper/handler_plugin_test.go b/x/wasm/keeper/handler_plugin_test.go index 16e52f4e8..8197b84ff 100644 --- a/x/wasm/keeper/handler_plugin_test.go +++ b/x/wasm/keeper/handler_plugin_test.go @@ -2,22 +2,22 @@ package keeper import ( "encoding/json" - ibcadapter "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" + ibcadapter "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" "testing" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - clienttypes "github.com/okx/okbchain/libs/ibc-go/modules/core/02-client/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + clienttypes "github.com/okx/brczero/libs/ibc-go/modules/core/02-client/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/keeper/wasmtesting" + "github.com/okx/brczero/x/wasm/types" ) func TestMessageHandlerChainDispatch(t *testing.T) { diff --git a/x/wasm/keeper/ibc.go b/x/wasm/keeper/ibc.go index 0a38e6e95..c0d3fa4eb 100644 --- a/x/wasm/keeper/ibc.go +++ b/x/wasm/keeper/ibc.go @@ -3,12 +3,12 @@ package keeper import ( "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - host "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + host "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) // bindIbcPort will reserve the port. diff --git a/x/wasm/keeper/ibc_test.go b/x/wasm/keeper/ibc_test.go index badfe21c7..b89c21175 100644 --- a/x/wasm/keeper/ibc_test.go +++ b/x/wasm/keeper/ibc_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/x/wasm/keeper/ioutil.go b/x/wasm/keeper/ioutil.go index feb925b2d..2a3a6f484 100644 --- a/x/wasm/keeper/ioutil.go +++ b/x/wasm/keeper/ioutil.go @@ -6,7 +6,7 @@ import ( "io" "io/ioutil" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) // magic bytes to identify gzip. diff --git a/x/wasm/keeper/ioutil_test.go b/x/wasm/keeper/ioutil_test.go index 2fe95c1cc..9aa017148 100644 --- a/x/wasm/keeper/ioutil_test.go +++ b/x/wasm/keeper/ioutil_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) func TestUncompress(t *testing.T) { diff --git a/x/wasm/keeper/keeper.go b/x/wasm/keeper/keeper.go index bc37f90ff..f9bc140b5 100644 --- a/x/wasm/keeper/keeper.go +++ b/x/wasm/keeper/keeper.go @@ -15,17 +15,17 @@ import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" "github.com/gogo/protobuf/proto" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/innertx" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/tendermint/libs/log" - paramtypes "github.com/okx/okbchain/x/params" - "github.com/okx/okbchain/x/wasm/ioutils" - "github.com/okx/okbchain/x/wasm/types" - "github.com/okx/okbchain/x/wasm/watcher" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/innertx" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/tendermint/libs/log" + paramtypes "github.com/okx/brczero/x/params" + "github.com/okx/brczero/x/wasm/ioutils" + "github.com/okx/brczero/x/wasm/types" + "github.com/okx/brczero/x/wasm/watcher" ) // contractMemoryLimit is the memory limit of each contract execution (in MiB) diff --git a/x/wasm/keeper/keeper_bench_test.go b/x/wasm/keeper/keeper_bench_test.go index 563c0996a..679e6832a 100644 --- a/x/wasm/keeper/keeper_bench_test.go +++ b/x/wasm/keeper/keeper_bench_test.go @@ -7,8 +7,8 @@ import ( wasmvm "github.com/CosmWasm/wasmvm" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/wasm/keeper/wasmtesting" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/keeper/keeper_mpt.go b/x/wasm/keeper/keeper_mpt.go index d2ab71975..aa1fa5913 100644 --- a/x/wasm/keeper/keeper_mpt.go +++ b/x/wasm/keeper/keeper_mpt.go @@ -3,8 +3,8 @@ package keeper import ( "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func (k Keeper) getStorageStore(ctx sdk.Context, acc sdk.WasmAddress) sdk.KVStore { diff --git a/x/wasm/keeper/keeper_test.go b/x/wasm/keeper/keeper_test.go index 16f6166e0..d020362bd 100644 --- a/x/wasm/keeper/keeper_test.go +++ b/x/wasm/keeper/keeper_test.go @@ -4,8 +4,8 @@ import ( "bytes" "encoding/json" "errors" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "io/ioutil" "math" "testing" @@ -14,15 +14,15 @@ import ( wasmvm "github.com/CosmWasm/wasmvm" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - stypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" + stypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/keeper/wasmtesting" + "github.com/okx/brczero/x/wasm/types" ) // When migrated to go 1.16, embed package should be used instead. diff --git a/x/wasm/keeper/legacy_querier.go b/x/wasm/keeper/legacy_querier.go index 564366cf1..7496a0c21 100644 --- a/x/wasm/keeper/legacy_querier.go +++ b/x/wasm/keeper/legacy_querier.go @@ -5,11 +5,11 @@ import ( "reflect" "strconv" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + abci "github.com/okx/brczero/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) const ( diff --git a/x/wasm/keeper/legacy_querier_test.go b/x/wasm/keeper/legacy_querier_test.go index e0150478b..1ab842969 100644 --- a/x/wasm/keeper/legacy_querier_test.go +++ b/x/wasm/keeper/legacy_querier_test.go @@ -8,12 +8,12 @@ import ( "io/ioutil" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) func TestLegacyQueryContractState(t *testing.T) { diff --git a/x/wasm/keeper/msg_dispatcher.go b/x/wasm/keeper/msg_dispatcher.go index 450f0c1a9..4ad288c5b 100644 --- a/x/wasm/keeper/msg_dispatcher.go +++ b/x/wasm/keeper/msg_dispatcher.go @@ -3,13 +3,13 @@ package keeper import ( "bytes" "fmt" - "github.com/okx/okbchain/libs/tendermint/libs/kv" + "github.com/okx/brczero/libs/tendermint/libs/kv" "sort" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/x/wasm/types" ) // Messenger is an extension point for custom wasmd message handling diff --git a/x/wasm/keeper/msg_dispatcher_test.go b/x/wasm/keeper/msg_dispatcher_test.go index ee8fd5ad7..639f5e326 100644 --- a/x/wasm/keeper/msg_dispatcher_test.go +++ b/x/wasm/keeper/msg_dispatcher_test.go @@ -5,14 +5,14 @@ import ( "fmt" "testing" - "github.com/okx/okbchain/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/log" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" + "github.com/okx/brczero/x/wasm/keeper/wasmtesting" ) func TestDispatchSubmessages(t *testing.T) { diff --git a/x/wasm/keeper/msg_server.go b/x/wasm/keeper/msg_server.go index e4a8a9b3c..42c0fb5ff 100644 --- a/x/wasm/keeper/msg_server.go +++ b/x/wasm/keeper/msg_server.go @@ -3,10 +3,10 @@ package keeper import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) var _ types.MsgServer = msgServer{} diff --git a/x/wasm/keeper/options.go b/x/wasm/keeper/options.go index a969c4193..756c54333 100644 --- a/x/wasm/keeper/options.go +++ b/x/wasm/keeper/options.go @@ -5,7 +5,7 @@ import ( "github.com/prometheus/client_golang/prometheus" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) type optsFn func(*Keeper) diff --git a/x/wasm/keeper/options_test.go b/x/wasm/keeper/options_test.go index 57490a694..e456a3634 100644 --- a/x/wasm/keeper/options_test.go +++ b/x/wasm/keeper/options_test.go @@ -4,13 +4,13 @@ import ( "os" "testing" - authkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" + authkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/keeper/wasmtesting" + "github.com/okx/brczero/x/wasm/types" ) func TestConstructorOptions(t *testing.T) { diff --git a/x/wasm/keeper/proposal_handler.go b/x/wasm/keeper/proposal_handler.go index 61edff8be..406bd86ab 100644 --- a/x/wasm/keeper/proposal_handler.go +++ b/x/wasm/keeper/proposal_handler.go @@ -6,11 +6,11 @@ import ( "sort" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - types2 "github.com/okx/okbchain/libs/tendermint/types" - govtypes "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + types2 "github.com/okx/brczero/libs/tendermint/types" + govtypes "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/wasm/types" ) // NewWasmProposalHandler creates a new governance Handler for wasm proposals diff --git a/x/wasm/keeper/proposal_integration_test.go b/x/wasm/keeper/proposal_integration_test.go index b704a5863..579ec68b9 100644 --- a/x/wasm/keeper/proposal_integration_test.go +++ b/x/wasm/keeper/proposal_integration_test.go @@ -1,19 +1,21 @@ package keeper_test import ( - "github.com/okx/okbchain/x/wasm" - "github.com/okx/okbchain/x/wasm/keeper" "testing" "time" - "github.com/okx/okbchain/app" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" - govtypes "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/stretchr/testify/suite" + + "github.com/okx/brczero/app" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmtypes "github.com/okx/brczero/libs/tendermint/types" + govtypes "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/wasm/types" ) //import ( @@ -24,19 +26,19 @@ import ( // "io/ioutil" // "testing" // -// "github.com/okx/okbchain/libs/cosmos-sdk/x/params/client/utils" +// "github.com/okx/brczero/libs/cosmos-sdk/x/params/client/utils" // // wasmvm "github.com/CosmWasm/wasmvm" // -// "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" +// "github.com/okx/brczero/x/wasm/keeper/wasmtesting" // -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" -// govtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" -// "github.com/okx/okbchain/libs/cosmos-sdk/x/params/types/proposal" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" +// govtypes "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" +// "github.com/okx/brczero/libs/cosmos-sdk/x/params/types/proposal" // "github.com/stretchr/testify/assert" // "github.com/stretchr/testify/require" // -// "github.com/okx/okbchain/x/wasm/types" +// "github.com/okx/brczero/x/wasm/types" //) // //func TestStoreCodeProposal(t *testing.T) { @@ -876,7 +878,7 @@ type ProposalTestSuite struct { ctx sdk.Context wasmHandler govtypes.Handler - app *app.OKBChainApp + app *app.BRCZeroApp codec *codec.Codec } diff --git a/x/wasm/keeper/querier.go b/x/wasm/keeper/querier.go index c9912fcce..eb5b14d9f 100644 --- a/x/wasm/keeper/querier.go +++ b/x/wasm/keeper/querier.go @@ -5,14 +5,14 @@ import ( "encoding/binary" "runtime/debug" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/x/wasm/proxy" - "github.com/okx/okbchain/x/wasm/types" - "github.com/okx/okbchain/x/wasm/watcher" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/x/wasm/proxy" + "github.com/okx/brczero/x/wasm/types" + "github.com/okx/brczero/x/wasm/watcher" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) diff --git a/x/wasm/keeper/querier_test.go b/x/wasm/keeper/querier_test.go index 659422486..9da975162 100644 --- a/x/wasm/keeper/querier_test.go +++ b/x/wasm/keeper/querier_test.go @@ -12,15 +12,15 @@ import ( wasmvm "github.com/CosmWasm/wasmvm" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkErrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - "github.com/okx/okbchain/libs/tendermint/libs/log" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkErrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/query" + "github.com/okx/brczero/libs/tendermint/libs/log" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/keeper/wasmtesting" + "github.com/okx/brczero/x/wasm/types" ) func TestQueryAllContractState(t *testing.T) { diff --git a/x/wasm/keeper/query_plugins.go b/x/wasm/keeper/query_plugins.go index 41c32c805..93f8e4c1e 100644 --- a/x/wasm/keeper/query_plugins.go +++ b/x/wasm/keeper/query_plugins.go @@ -4,17 +4,17 @@ import ( "encoding/json" "errors" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - distributiontypes "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + distributiontypes "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" ) type QueryHandler struct { diff --git a/x/wasm/keeper/query_plugins_test.go b/x/wasm/keeper/query_plugins_test.go index c340149d4..931776721 100644 --- a/x/wasm/keeper/query_plugins_test.go +++ b/x/wasm/keeper/query_plugins_test.go @@ -4,18 +4,18 @@ import ( "encoding/json" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store" + dbm "github.com/okx/brczero/libs/tm-db" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/keeper/wasmtesting" + "github.com/okx/brczero/x/wasm/types" ) func TestIBCQuerier(t *testing.T) { diff --git a/x/wasm/keeper/recurse_test.go b/x/wasm/keeper/recurse_test.go index dbb1d75c9..fb391a577 100644 --- a/x/wasm/keeper/recurse_test.go +++ b/x/wasm/keeper/recurse_test.go @@ -4,14 +4,14 @@ import ( "encoding/json" "testing" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" wasmvmtypes "github.com/CosmWasm/wasmvm/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + abci "github.com/okx/brczero/libs/tendermint/abci/types" ) type Recurse struct { diff --git a/x/wasm/keeper/reflect_test.go b/x/wasm/keeper/reflect_test.go index 023247ef3..5745fec90 100644 --- a/x/wasm/keeper/reflect_test.go +++ b/x/wasm/keeper/reflect_test.go @@ -2,9 +2,9 @@ package keeper import ( "encoding/json" - ibcadapter "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/x/wasm/keeper/testdata" + ibcadapter "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/x/wasm/keeper/testdata" "io/ioutil" "strings" "testing" @@ -12,17 +12,17 @@ import ( "github.com/golang/protobuf/proto" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - authkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - //bankkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/keeper" - //banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + authkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + //bankkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/bank/keeper" + //banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) func buildReflectQuery(t *testing.T, query *testdata.ReflectQueryMsg) []byte { diff --git a/x/wasm/keeper/relay.go b/x/wasm/keeper/relay.go index 809250772..052fc8ddb 100644 --- a/x/wasm/keeper/relay.go +++ b/x/wasm/keeper/relay.go @@ -2,11 +2,11 @@ package keeper import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - //"github.com/okx/okbchain/libs/cosmos-sdk/telemetry" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + //"github.com/okx/brczero/libs/cosmos-sdk/telemetry" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) var _ types.IBCContractKeeper = (*Keeper)(nil) diff --git a/x/wasm/keeper/relay_test.go b/x/wasm/keeper/relay_test.go index 2c72ee5d2..aa2d4bb60 100644 --- a/x/wasm/keeper/relay_test.go +++ b/x/wasm/keeper/relay_test.go @@ -8,12 +8,12 @@ package keeper // // wasmvm "github.com/CosmWasm/wasmvm" // wasmvmtypes "github.com/CosmWasm/wasmvm/types" -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // "github.com/stretchr/testify/assert" // "github.com/stretchr/testify/require" // -// "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" -// "github.com/okx/okbchain/x/wasm/types" +// "github.com/okx/brczero/x/wasm/keeper/wasmtesting" +// "github.com/okx/brczero/x/wasm/types" //) // //func TestOnOpenChannel(t *testing.T) { diff --git a/x/wasm/keeper/snapshotter.go b/x/wasm/keeper/snapshotter.go index b80c02ea3..a0354abf1 100644 --- a/x/wasm/keeper/snapshotter.go +++ b/x/wasm/keeper/snapshotter.go @@ -6,14 +6,14 @@ package keeper // "io" // // protoio "github.com/gogo/protobuf/io" -// snapshot "github.com/okx/okbchain/libs/cosmos-sdk/snapshots/types" -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" -// sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +// snapshot "github.com/okx/brczero/libs/cosmos-sdk/snapshots/types" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" +// sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" // "github.com/tendermint/tendermint/libs/log" // tmproto "github.com/tendermint/tendermint/proto/tendermint/types" // -// "github.com/okx/okbchain/x/wasm/ioutils" -// "github.com/okx/okbchain/x/wasm/types" +// "github.com/okx/brczero/x/wasm/ioutils" +// "github.com/okx/brczero/x/wasm/types" //) // //var _ snapshot.ExtensionSnapshotter = &WasmSnapshotter{} diff --git a/x/wasm/keeper/snapshotter_integration_test.go b/x/wasm/keeper/snapshotter_integration_test.go index 9fab84648..e8399959d 100644 --- a/x/wasm/keeper/snapshotter_integration_test.go +++ b/x/wasm/keeper/snapshotter_integration_test.go @@ -6,21 +6,21 @@ package keeper_test // "testing" // "time" // -// "github.com/okx/okbchain/x/wasm/types" +// "github.com/okx/brczero/x/wasm/types" // // "github.com/stretchr/testify/assert" // -// cryptocodec "github.com/okx/okbchain/libs/cosmos-sdk/crypto/codec" -// "github.com/okx/okbchain/libs/cosmos-sdk/crypto/keys/ed25519" -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" -// authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" -// banktypes "github.com/okx/okbchain/libs/cosmos-sdk/x/bank/types" +// cryptocodec "github.com/okx/brczero/libs/cosmos-sdk/crypto/codec" +// "github.com/okx/brczero/libs/cosmos-sdk/crypto/keys/ed25519" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" +// authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" +// banktypes "github.com/okx/brczero/libs/cosmos-sdk/x/bank/types" // "github.com/stretchr/testify/require" // tmproto "github.com/tendermint/tendermint/proto/tendermint/types" // tmtypes "github.com/tendermint/tendermint/types" // -// "github.com/okx/okbchain/app" -// "github.com/okx/okbchain/x/wasm/keeper" +// "github.com/okx/brczero/app" +// "github.com/okx/brczero/x/wasm/keeper" //) // //func TestSnapshotter(t *testing.T) { diff --git a/x/wasm/keeper/submsg_test.go b/x/wasm/keeper/submsg_test.go index 8b0e237bd..556c75635 100644 --- a/x/wasm/keeper/submsg_test.go +++ b/x/wasm/keeper/submsg_test.go @@ -3,18 +3,18 @@ package keeper import ( "encoding/json" "fmt" - ibcadapter "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/x/wasm/keeper/testdata" + ibcadapter "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/x/wasm/keeper/testdata" "io/ioutil" "strconv" "testing" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" "github.com/stretchr/testify/assert" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/keeper/test_common.go b/x/wasm/keeper/test_common.go index 4ad0a83d9..e90f022f0 100644 --- a/x/wasm/keeper/test_common.go +++ b/x/wasm/keeper/test_common.go @@ -4,77 +4,77 @@ import ( "encoding/binary" "encoding/json" "fmt" - "github.com/okx/okbchain/x/common" + "github.com/okx/brczero/x/common" "io/ioutil" "os" "testing" "time" - "github.com/okx/okbchain/x/wasm/keeper/testdata" - - chaincodec "github.com/okx/okbchain/app/codec" - chain "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/client" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - interfacetypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - cosmoscryptocodec "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - ibc_tx "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/ibc-tx" - authkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - authtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/libs/cosmos-sdk/x/capability" - capabilitykeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis" - crisistypes "github.com/okx/okbchain/libs/cosmos-sdk/x/crisis" - "github.com/okx/okbchain/libs/cosmos-sdk/x/evidence" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing" - slashingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/slashing" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - upgradekeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - upgradetypes "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade" - distr "github.com/okx/okbchain/x/distribution" - "github.com/okx/okbchain/x/erc20" - "github.com/okx/okbchain/x/staking" - token "github.com/okx/okbchain/x/token/types" - - //upgradeclient "github.com/okx/okbchain/libs/cosmos-sdk/x/upgrade/client" - "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer" - ibctransfertypes "github.com/okx/okbchain/libs/ibc-go/modules/apps/transfer/types" - ibc "github.com/okx/okbchain/libs/ibc-go/modules/core" - ibchost "github.com/okx/okbchain/libs/ibc-go/modules/core/24-host" - ibckeeper "github.com/okx/okbchain/libs/ibc-go/modules/core/keeper" - tmproto "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/log" - "github.com/okx/okbchain/libs/tendermint/libs/rand" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/distribution" - distrclient "github.com/okx/okbchain/x/distribution/client" - distributionkeeper "github.com/okx/okbchain/x/distribution/keeper" - distributiontypes "github.com/okx/okbchain/x/distribution/types" - "github.com/okx/okbchain/x/gov" - govkeeper "github.com/okx/okbchain/x/gov/keeper" - govtypes "github.com/okx/okbchain/x/gov/types" - "github.com/okx/okbchain/x/params" - paramproposal "github.com/okx/okbchain/x/params" - paramskeeper "github.com/okx/okbchain/x/params" - paramstypes "github.com/okx/okbchain/x/params" - paramsclient "github.com/okx/okbchain/x/params/client" - stakingkeeper "github.com/okx/okbchain/x/staking/keeper" - stakingtypes "github.com/okx/okbchain/x/staking/types" - "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/keeper/testdata" + + chaincodec "github.com/okx/brczero/app/codec" + chain "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/client" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + interfacetypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + cosmoscryptocodec "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + ibc_tx "github.com/okx/brczero/libs/cosmos-sdk/x/auth/ibc-tx" + authkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + authtypes "github.com/okx/brczero/libs/cosmos-sdk/x/auth/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/libs/cosmos-sdk/x/capability" + capabilitykeeper "github.com/okx/brczero/libs/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/crisis" + crisistypes "github.com/okx/brczero/libs/cosmos-sdk/x/crisis" + "github.com/okx/brczero/libs/cosmos-sdk/x/evidence" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/cosmos-sdk/x/slashing" + slashingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/slashing" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + upgradekeeper "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + upgradetypes "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade" + distr "github.com/okx/brczero/x/distribution" + "github.com/okx/brczero/x/erc20" + "github.com/okx/brczero/x/staking" + token "github.com/okx/brczero/x/token/types" + + //upgradeclient "github.com/okx/brczero/libs/cosmos-sdk/x/upgrade/client" + "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer" + ibctransfertypes "github.com/okx/brczero/libs/ibc-go/modules/apps/transfer/types" + ibc "github.com/okx/brczero/libs/ibc-go/modules/core" + ibchost "github.com/okx/brczero/libs/ibc-go/modules/core/24-host" + ibckeeper "github.com/okx/brczero/libs/ibc-go/modules/core/keeper" + tmproto "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/log" + "github.com/okx/brczero/libs/tendermint/libs/rand" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/distribution" + distrclient "github.com/okx/brczero/x/distribution/client" + distributionkeeper "github.com/okx/brczero/x/distribution/keeper" + distributiontypes "github.com/okx/brczero/x/distribution/types" + "github.com/okx/brczero/x/gov" + govkeeper "github.com/okx/brczero/x/gov/keeper" + govtypes "github.com/okx/brczero/x/gov/types" + "github.com/okx/brczero/x/params" + paramproposal "github.com/okx/brczero/x/params" + paramskeeper "github.com/okx/brczero/x/params" + paramstypes "github.com/okx/brczero/x/params" + paramsclient "github.com/okx/brczero/x/params/client" + stakingkeeper "github.com/okx/brczero/x/staking/keeper" + stakingtypes "github.com/okx/brczero/x/staking/types" + "github.com/okx/brczero/x/wasm/keeper/wasmtesting" + "github.com/okx/brczero/x/wasm/types" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/keeper/test_fuzz.go b/x/wasm/keeper/test_fuzz.go index 2bef7caeb..ff11df644 100644 --- a/x/wasm/keeper/test_fuzz.go +++ b/x/wasm/keeper/test_fuzz.go @@ -4,10 +4,10 @@ import ( "encoding/json" fuzz "github.com/google/gofuzz" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - tmBytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + tmBytes "github.com/okx/brczero/libs/tendermint/libs/bytes" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) var ModelFuzzers = []interface{}{FuzzAddr, FuzzAddrString, FuzzAbsoluteTxPosition, FuzzContractInfo, FuzzStateModel, FuzzAccessType, FuzzAccessConfig, FuzzContractCodeHistory} diff --git a/x/wasm/keeper/testdata/reflect.go b/x/wasm/keeper/testdata/reflect.go index f7468786d..e4827dae1 100644 --- a/x/wasm/keeper/testdata/reflect.go +++ b/x/wasm/keeper/testdata/reflect.go @@ -4,7 +4,7 @@ import ( _ "embed" typwasmvmtypes "github.com/CosmWasm/wasmvm/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) //go:embed reflect.wasm diff --git a/x/wasm/keeper/wasmtesting/coin_transferrer.go b/x/wasm/keeper/wasmtesting/coin_transferrer.go index 19a726cae..f84e97e75 100644 --- a/x/wasm/keeper/wasmtesting/coin_transferrer.go +++ b/x/wasm/keeper/wasmtesting/coin_transferrer.go @@ -1,6 +1,6 @@ package wasmtesting -import sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +import sdk "github.com/okx/brczero/libs/cosmos-sdk/types" type MockCoinTransferrer struct { TransferCoinsFn func(ctx sdk.Context, fromAddr sdk.WasmAddress, toAddr sdk.WasmAddress, amt sdk.Coins) error diff --git a/x/wasm/keeper/wasmtesting/gas_register.go b/x/wasm/keeper/wasmtesting/gas_register.go index cdef0f66a..2bd1ad535 100644 --- a/x/wasm/keeper/wasmtesting/gas_register.go +++ b/x/wasm/keeper/wasmtesting/gas_register.go @@ -2,7 +2,7 @@ package wasmtesting import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // MockGasRegister mock that implements keeper.GasRegister diff --git a/x/wasm/keeper/wasmtesting/message_router.go b/x/wasm/keeper/wasmtesting/message_router.go index f5f42877a..088c1d6f6 100644 --- a/x/wasm/keeper/wasmtesting/message_router.go +++ b/x/wasm/keeper/wasmtesting/message_router.go @@ -1,8 +1,8 @@ package wasmtesting import ( - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // MockMessageRouter mock for testing diff --git a/x/wasm/keeper/wasmtesting/messenger.go b/x/wasm/keeper/wasmtesting/messenger.go index cb93293a0..28171c0aa 100644 --- a/x/wasm/keeper/wasmtesting/messenger.go +++ b/x/wasm/keeper/wasmtesting/messenger.go @@ -4,7 +4,7 @@ import ( "errors" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type MockMessageHandler struct { diff --git a/x/wasm/keeper/wasmtesting/mock_engine.go b/x/wasm/keeper/wasmtesting/mock_engine.go index 6f61e3c39..8b4a35fe9 100644 --- a/x/wasm/keeper/wasmtesting/mock_engine.go +++ b/x/wasm/keeper/wasmtesting/mock_engine.go @@ -6,10 +6,10 @@ import ( wasmvm "github.com/CosmWasm/wasmvm" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/libs/rand" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/libs/rand" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) var _ types.WasmerEngine = &MockWasmer{} diff --git a/x/wasm/keeper/wasmtesting/mock_keepers.go b/x/wasm/keeper/wasmtesting/mock_keepers.go index 0efd610cb..f21a095bf 100644 --- a/x/wasm/keeper/wasmtesting/mock_keepers.go +++ b/x/wasm/keeper/wasmtesting/mock_keepers.go @@ -1,13 +1,13 @@ package wasmtesting import ( - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) type MockChannelKeeper struct { diff --git a/x/wasm/keeper/wasmtesting/msg_dispatcher.go b/x/wasm/keeper/wasmtesting/msg_dispatcher.go index 64fc048e4..24795127e 100644 --- a/x/wasm/keeper/wasmtesting/msg_dispatcher.go +++ b/x/wasm/keeper/wasmtesting/msg_dispatcher.go @@ -2,7 +2,7 @@ package wasmtesting import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type MockMsgDispatcher struct { diff --git a/x/wasm/keeper/wasmtesting/query_handler.go b/x/wasm/keeper/wasmtesting/query_handler.go index d61380861..d3fc0fa7b 100644 --- a/x/wasm/keeper/wasmtesting/query_handler.go +++ b/x/wasm/keeper/wasmtesting/query_handler.go @@ -2,7 +2,7 @@ package wasmtesting import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type MockQueryHandler struct { diff --git a/x/wasm/keeper/wasmtesting/store.go b/x/wasm/keeper/wasmtesting/store.go index 558fcdd05..a55d8539b 100644 --- a/x/wasm/keeper/wasmtesting/store.go +++ b/x/wasm/keeper/wasmtesting/store.go @@ -1,9 +1,9 @@ package wasmtesting import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - storetypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" + storetypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) // MockCommitMultiStore mock with a CacheMultiStore to capture commits diff --git a/x/wasm/module.go b/x/wasm/module.go index c23932b4b..aea6cc085 100644 --- a/x/wasm/module.go +++ b/x/wasm/module.go @@ -2,27 +2,27 @@ package wasm import ( "context" - "github.com/okx/okbchain/app/rpc/simulator" - "github.com/okx/okbchain/libs/tendermint/global" - tmtypes "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/app/rpc/simulator" + "github.com/okx/brczero/libs/tendermint/global" + tmtypes "github.com/okx/brczero/libs/tendermint/types" "math/rand" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - cdctypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" - simtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/libs/ibc-go/modules/core/base" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/x/wasm/client/rest" - "github.com/okx/okbchain/x/wasm/keeper" - "github.com/okx/okbchain/x/wasm/simulation" - "github.com/okx/okbchain/x/wasm/types" - "github.com/okx/okbchain/x/wasm/watcher" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + cdctypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" + simtypes "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/ibc-go/modules/core/base" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/x/wasm/client/rest" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/simulation" + "github.com/okx/brczero/x/wasm/types" + "github.com/okx/brczero/x/wasm/watcher" "github.com/spf13/cobra" ) diff --git a/x/wasm/module_adapter.go b/x/wasm/module_adapter.go index 1152508bd..f9000f3da 100644 --- a/x/wasm/module_adapter.go +++ b/x/wasm/module_adapter.go @@ -6,21 +6,21 @@ import ( "path/filepath" "sync" - store "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + store "github.com/okx/brczero/libs/cosmos-sdk/store/types" "github.com/gorilla/mux" - clictx "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - cdctypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - "github.com/okx/okbchain/libs/cosmos-sdk/server" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/upgrade" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmcli "github.com/okx/okbchain/libs/tendermint/libs/cli" - types2 "github.com/okx/okbchain/libs/tendermint/types" - "github.com/okx/okbchain/x/wasm/client/cli" - "github.com/okx/okbchain/x/wasm/keeper" - "github.com/okx/okbchain/x/wasm/types" + clictx "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + cdctypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + "github.com/okx/brczero/libs/cosmos-sdk/server" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/upgrade" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmcli "github.com/okx/brczero/libs/tendermint/libs/cli" + types2 "github.com/okx/brczero/libs/tendermint/types" + "github.com/okx/brczero/x/wasm/client/cli" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/types" "github.com/spf13/cast" "github.com/spf13/cobra" "github.com/spf13/viper" diff --git a/x/wasm/module_test.go b/x/wasm/module_test.go index 235cca7e6..2df7d5d37 100644 --- a/x/wasm/module_test.go +++ b/x/wasm/module_test.go @@ -6,22 +6,22 @@ import ( "io/ioutil" "testing" - "github.com/okx/okbchain/x/wasm/keeper/testdata" + "github.com/okx/brczero/x/wasm/keeper/testdata" "github.com/dvsekhvalnov/jose2go/base64url" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" - authkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/keeper" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - bankkeeper "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - "github.com/okx/okbchain/libs/tendermint/crypto" - "github.com/okx/okbchain/libs/tendermint/crypto/ed25519" - "github.com/okx/okbchain/libs/tendermint/libs/kv" - types2 "github.com/okx/okbchain/libs/tendermint/types" - stakingkeeper "github.com/okx/okbchain/x/staking/keeper" - "github.com/okx/okbchain/x/wasm/keeper" - "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" + authkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/auth/keeper" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + bankkeeper "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + "github.com/okx/brczero/libs/tendermint/crypto" + "github.com/okx/brczero/libs/tendermint/crypto/ed25519" + "github.com/okx/brczero/libs/tendermint/libs/kv" + types2 "github.com/okx/brczero/libs/tendermint/types" + stakingkeeper "github.com/okx/brczero/x/staking/keeper" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/types" "github.com/spf13/viper" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/x/wasm/msg_convert.go b/x/wasm/msg_convert.go index 3a495a211..a67275fe7 100644 --- a/x/wasm/msg_convert.go +++ b/x/wasm/msg_convert.go @@ -3,10 +3,10 @@ package wasm import ( "encoding/json" "errors" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/common" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/common" + "github.com/okx/brczero/x/wasm/types" ) var ( diff --git a/x/wasm/msg_convert_test.go b/x/wasm/msg_convert_test.go index f9c68d719..e0e5d3e48 100644 --- a/x/wasm/msg_convert_test.go +++ b/x/wasm/msg_convert_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/x/wasm/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/x/wasm/types" ) var ( diff --git a/x/wasm/proxy/context.go b/x/wasm/proxy/context.go index 123d94396..d97664eb0 100644 --- a/x/wasm/proxy/context.go +++ b/x/wasm/proxy/context.go @@ -1,20 +1,20 @@ package proxy import ( - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/store/types" "sync" "time" "github.com/ethereum/go-ethereum/common" - clientcontext "github.com/okx/okbchain/libs/cosmos-sdk/client/context" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - abci "github.com/okx/okbchain/libs/tendermint/abci/types" - tmlog "github.com/okx/okbchain/libs/tendermint/libs/log" - dbm "github.com/okx/okbchain/libs/tm-db" - evmwatcher "github.com/okx/okbchain/x/evm/watcher" + clientcontext "github.com/okx/brczero/libs/cosmos-sdk/client/context" + "github.com/okx/brczero/libs/cosmos-sdk/store" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + abci "github.com/okx/brczero/libs/tendermint/abci/types" + tmlog "github.com/okx/brczero/libs/tendermint/libs/log" + dbm "github.com/okx/brczero/libs/tm-db" + evmwatcher "github.com/okx/brczero/x/evm/watcher" ) var clientCtx clientcontext.CLIContext diff --git a/x/wasm/proxy/keeper_proxy.go b/x/wasm/proxy/keeper_proxy.go index eab009d0c..c811bf95a 100644 --- a/x/wasm/proxy/keeper_proxy.go +++ b/x/wasm/proxy/keeper_proxy.go @@ -4,24 +4,24 @@ import ( "fmt" "log" - apptypes "github.com/okx/okbchain/app/types" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/store/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - authexported "github.com/okx/okbchain/libs/cosmos-sdk/x/auth/exported" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/mint" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - "github.com/okx/okbchain/libs/cosmos-sdk/x/supply" - supplyexported "github.com/okx/okbchain/libs/cosmos-sdk/x/supply/exported" - "github.com/okx/okbchain/libs/tendermint/global" - distr "github.com/okx/okbchain/x/distribution" - "github.com/okx/okbchain/x/gov" - "github.com/okx/okbchain/x/staking" - token "github.com/okx/okbchain/x/token/types" - "github.com/okx/okbchain/x/wasm/types" - "github.com/okx/okbchain/x/wasm/watcher" + apptypes "github.com/okx/brczero/app/types" + types2 "github.com/okx/brczero/libs/cosmos-sdk/store/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + authexported "github.com/okx/brczero/libs/cosmos-sdk/x/auth/exported" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/mint" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + "github.com/okx/brczero/libs/cosmos-sdk/x/supply" + supplyexported "github.com/okx/brczero/libs/cosmos-sdk/x/supply/exported" + "github.com/okx/brczero/libs/tendermint/global" + distr "github.com/okx/brczero/x/distribution" + "github.com/okx/brczero/x/gov" + "github.com/okx/brczero/x/staking" + token "github.com/okx/brczero/x/token/types" + "github.com/okx/brczero/x/wasm/types" + "github.com/okx/brczero/x/wasm/watcher" ) const ( diff --git a/x/wasm/relay_pingpong_test.go b/x/wasm/relay_pingpong_test.go index 1f1bccf63..e38aa5d8e 100644 --- a/x/wasm/relay_pingpong_test.go +++ b/x/wasm/relay_pingpong_test.go @@ -10,17 +10,17 @@ package wasm_test // // wasmvm "github.com/CosmWasm/wasmvm" // wasmvmtypes "github.com/CosmWasm/wasmvm/types" -// "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" +// "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" // clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types" // channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types" // "github.com/stretchr/testify/assert" // "github.com/stretchr/testify/require" // -// wasmibctesting "github.com/okx/okbchain/x/wasm/ibctesting" -// wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" -// "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" -// wasmtypes "github.com/okx/okbchain/x/wasm/types" +// wasmibctesting "github.com/okx/brczero/x/wasm/ibctesting" +// wasmkeeper "github.com/okx/brczero/x/wasm/keeper" +// "github.com/okx/brczero/x/wasm/keeper/wasmtesting" +// wasmtypes "github.com/okx/brczero/x/wasm/types" //) // //const ( diff --git a/x/wasm/relay_test.go b/x/wasm/relay_test.go index fef4063a6..ce5dedd60 100644 --- a/x/wasm/relay_test.go +++ b/x/wasm/relay_test.go @@ -8,8 +8,8 @@ package wasm_test // // wasmvm "github.com/CosmWasm/wasmvm" // wasmvmtypes "github.com/CosmWasm/wasmvm/types" -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" -// sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" +// sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" // ibctransfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types" // clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types" // channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types" @@ -17,10 +17,10 @@ package wasm_test // "github.com/stretchr/testify/assert" // "github.com/stretchr/testify/require" // -// wasmibctesting "github.com/okx/okbchain/x/wasm/ibctesting" -// wasmkeeper "github.com/okx/okbchain/x/wasm/keeper" -// wasmtesting "github.com/okx/okbchain/x/wasm/keeper/wasmtesting" -// "github.com/okx/okbchain/x/wasm/types" +// wasmibctesting "github.com/okx/brczero/x/wasm/ibctesting" +// wasmkeeper "github.com/okx/brczero/x/wasm/keeper" +// wasmtesting "github.com/okx/brczero/x/wasm/keeper/wasmtesting" +// "github.com/okx/brczero/x/wasm/types" //) // //func TestFromIBCTransferToContract(t *testing.T) { diff --git a/x/wasm/simulate.go b/x/wasm/simulate.go index b68b8cac6..ae2690237 100644 --- a/x/wasm/simulate.go +++ b/x/wasm/simulate.go @@ -1,16 +1,16 @@ package wasm import ( - "github.com/okx/okbchain/app/rpc/simulator" - "github.com/okx/okbchain/libs/cosmos-sdk/baseapp" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - types2 "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/bank" - "github.com/okx/okbchain/x/wasm/keeper" - "github.com/okx/okbchain/x/wasm/proxy" - "github.com/okx/okbchain/x/wasm/types" - "github.com/okx/okbchain/x/wasm/watcher" + "github.com/okx/brczero/app/rpc/simulator" + "github.com/okx/brczero/libs/cosmos-sdk/baseapp" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + types2 "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/bank" + "github.com/okx/brczero/x/wasm/keeper" + "github.com/okx/brczero/x/wasm/proxy" + "github.com/okx/brczero/x/wasm/types" + "github.com/okx/brczero/x/wasm/watcher" "sync" ) diff --git a/x/wasm/simulation/genesis.go b/x/wasm/simulation/genesis.go index 1ed6a55f7..bcaf8a66d 100644 --- a/x/wasm/simulation/genesis.go +++ b/x/wasm/simulation/genesis.go @@ -1,9 +1,9 @@ package simulation import ( - "github.com/okx/okbchain/libs/cosmos-sdk/types/module" + "github.com/okx/brczero/libs/cosmos-sdk/types/module" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) // RandomizeGenState generates a random GenesisState for wasm diff --git a/x/wasm/simulation/params.go b/x/wasm/simulation/params.go index 1fe40c6a0..fafe75519 100644 --- a/x/wasm/simulation/params.go +++ b/x/wasm/simulation/params.go @@ -4,11 +4,11 @@ import ( "fmt" "math/rand" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" - simtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" + simtypes "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) func ParamChanges(r *rand.Rand, cdc codec.Codec) []simtypes.ParamChange { diff --git a/x/wasm/simulation/sim_utils.go b/x/wasm/simulation/sim_utils.go index 4191a3c1c..31aa47539 100644 --- a/x/wasm/simulation/sim_utils.go +++ b/x/wasm/simulation/sim_utils.go @@ -1,10 +1,10 @@ package simulation //import ( -// "github.com/okx/okbchain/libs/cosmos-sdk/simapp/helpers" -// sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" -// simtypes "github.com/okx/okbchain/libs/cosmos-sdk/types/simulation" -// "github.com/okx/okbchain/libs/cosmos-sdk/x/simulation" +// "github.com/okx/brczero/libs/cosmos-sdk/simapp/helpers" +// sdk "github.com/okx/brczero/libs/cosmos-sdk/types" +// simtypes "github.com/okx/brczero/libs/cosmos-sdk/types/simulation" +// "github.com/okx/brczero/libs/cosmos-sdk/x/simulation" //) // //// GenAndDeliverTxWithRandFees generates a transaction with a random fee and delivers it. diff --git a/x/wasm/types/address_adapter.go b/x/wasm/types/address_adapter.go index 0567dfe23..14283af60 100644 --- a/x/wasm/types/address_adapter.go +++ b/x/wasm/types/address_adapter.go @@ -2,8 +2,8 @@ package types import ( "crypto/sha256" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // Module is a specialized version of a composed address for modules. Each module account diff --git a/x/wasm/types/ante.go b/x/wasm/types/ante.go index 0f1b98248..36737b7ed 100644 --- a/x/wasm/types/ante.go +++ b/x/wasm/types/ante.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) type contextKey int diff --git a/x/wasm/types/codec.go b/x/wasm/types/codec.go index 322dbf1b1..4f35707a5 100644 --- a/x/wasm/types/codec.go +++ b/x/wasm/types/codec.go @@ -1,13 +1,13 @@ package types import ( - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - cryptocodec "github.com/okx/okbchain/libs/cosmos-sdk/codec" - "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - txmsg "github.com/okx/okbchain/libs/cosmos-sdk/types/ibc-adapter" - "github.com/okx/okbchain/libs/cosmos-sdk/types/msgservice" - govtypes "github.com/okx/okbchain/x/gov/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + cryptocodec "github.com/okx/brczero/libs/cosmos-sdk/codec" + "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + txmsg "github.com/okx/brczero/libs/cosmos-sdk/types/ibc-adapter" + "github.com/okx/brczero/libs/cosmos-sdk/types/msgservice" + govtypes "github.com/okx/brczero/x/gov/types" ) // RegisterLegacyAminoCodec registers the account types and interface diff --git a/x/wasm/types/errors.go b/x/wasm/types/errors.go index 6cab09775..0bfa906cf 100644 --- a/x/wasm/types/errors.go +++ b/x/wasm/types/errors.go @@ -2,8 +2,8 @@ package types import ( "fmt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkErrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkErrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // Codes for wasm contract errors diff --git a/x/wasm/types/expected_keepers.go b/x/wasm/types/expected_keepers.go index 1d5ca5a77..24c924081 100644 --- a/x/wasm/types/expected_keepers.go +++ b/x/wasm/types/expected_keepers.go @@ -3,15 +3,15 @@ package types import ( "context" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/auth" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/distribution/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/params" - stakingtypes "github.com/okx/okbchain/libs/cosmos-sdk/x/staking/types" - connectiontypes "github.com/okx/okbchain/libs/ibc-go/modules/core/03-connection/types" - channeltypes "github.com/okx/okbchain/libs/ibc-go/modules/core/04-channel/types" - ibcexported "github.com/okx/okbchain/libs/ibc-go/modules/core/exported" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/auth" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/distribution/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/params" + stakingtypes "github.com/okx/brczero/libs/cosmos-sdk/x/staking/types" + connectiontypes "github.com/okx/brczero/libs/ibc-go/modules/core/03-connection/types" + channeltypes "github.com/okx/brczero/libs/ibc-go/modules/core/04-channel/types" + ibcexported "github.com/okx/brczero/libs/ibc-go/modules/core/exported" ) // BankViewKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper diff --git a/x/wasm/types/exported_keepers.go b/x/wasm/types/exported_keepers.go index e76c1df70..366a4dc5a 100644 --- a/x/wasm/types/exported_keepers.go +++ b/x/wasm/types/exported_keepers.go @@ -3,8 +3,8 @@ package types import ( wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - capabilitytypes "github.com/okx/okbchain/libs/cosmos-sdk/x/capability/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + capabilitytypes "github.com/okx/brczero/libs/cosmos-sdk/x/capability/types" ) // ViewKeeper provides read only operations diff --git a/x/wasm/types/genesis.go b/x/wasm/types/genesis.go index 5c69403b3..970f07bf2 100644 --- a/x/wasm/types/genesis.go +++ b/x/wasm/types/genesis.go @@ -1,9 +1,9 @@ package types import ( - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) func (s Sequence) ValidateBasic() error { diff --git a/x/wasm/types/iavl_range_test.go b/x/wasm/types/iavl_range_test.go index ba85c76f4..b911adebf 100644 --- a/x/wasm/types/iavl_range_test.go +++ b/x/wasm/types/iavl_range_test.go @@ -3,10 +3,10 @@ package types import ( "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/store" - "github.com/okx/okbchain/libs/cosmos-sdk/store/iavl" - iavl2 "github.com/okx/okbchain/libs/iavl" - dbm "github.com/okx/okbchain/libs/tm-db" + "github.com/okx/brczero/libs/cosmos-sdk/store" + "github.com/okx/brczero/libs/cosmos-sdk/store/iavl" + iavl2 "github.com/okx/brczero/libs/iavl" + dbm "github.com/okx/brczero/libs/tm-db" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/types/json_matching.go b/x/wasm/types/json_matching.go index a17e61370..a2a0d14cb 100644 --- a/x/wasm/types/json_matching.go +++ b/x/wasm/types/json_matching.go @@ -3,7 +3,7 @@ package types import ( "encoding/json" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // IsJSONObjectWithTopLevelKey checks if the given bytes are a valid JSON object diff --git a/x/wasm/types/json_matching_test.go b/x/wasm/types/json_matching_test.go index 557b54ba6..62138d320 100644 --- a/x/wasm/types/json_matching_test.go +++ b/x/wasm/types/json_matching_test.go @@ -3,7 +3,7 @@ package types import ( "testing" - // sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + // sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/types/keys.go b/x/wasm/types/keys.go index 830d97557..20487e88a 100644 --- a/x/wasm/types/keys.go +++ b/x/wasm/types/keys.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) const ( diff --git a/x/wasm/types/params.go b/x/wasm/types/params.go index 490430257..049de5fd7 100644 --- a/x/wasm/types/params.go +++ b/x/wasm/types/params.go @@ -3,13 +3,13 @@ package types import ( "encoding/json" "fmt" - "github.com/okx/okbchain/libs/tendermint/types" + "github.com/okx/brczero/libs/tendermint/types" "strings" "github.com/gogo/protobuf/jsonpb" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - paramtypes "github.com/okx/okbchain/x/params" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + paramtypes "github.com/okx/brczero/x/params" "github.com/pkg/errors" "gopkg.in/yaml.v2" ) diff --git a/x/wasm/types/params_test.go b/x/wasm/types/params_test.go index 58e89146e..ca3b8337e 100644 --- a/x/wasm/types/params_test.go +++ b/x/wasm/types/params_test.go @@ -4,9 +4,9 @@ import ( "encoding/json" "testing" - "github.com/okx/okbchain/libs/cosmos-sdk/codec" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/codec" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/types/proposal.go b/x/wasm/types/proposal.go index 3c1f7cf67..fd0aeaf26 100644 --- a/x/wasm/types/proposal.go +++ b/x/wasm/types/proposal.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + govtypes "github.com/okx/brczero/x/gov/types" ) type ProposalType string diff --git a/x/wasm/types/proposal.pb.go b/x/wasm/types/proposal.pb.go index 42d5d88e6..e444dc821 100644 --- a/x/wasm/types/proposal.pb.go +++ b/x/wasm/types/proposal.pb.go @@ -12,8 +12,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - github_com_cosmos_cosmos_sdk_types "github.com/okx/okbchain/libs/cosmos-sdk/types" - types "github.com/okx/okbchain/libs/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/okx/brczero/libs/cosmos-sdk/types" + types "github.com/okx/brczero/libs/cosmos-sdk/types" ) // Reference imports to suppress errors if they are not otherwise used. @@ -99,7 +99,7 @@ type InstantiateContractProposal struct { // Msg json encoded message to be passed to the contract on instantiation Msg RawContractMessage `protobuf:"bytes,7,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` // Funds coins that are transferred to the contract on instantiation - Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,8,rep,name=funds,proto3,castrepeated=github.com/okx/okbchain/libs/cosmos-sdk/types.Coins" json:"funds"` + Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,8,rep,name=funds,proto3,castrepeated=github.com/okx/brczero/libs/cosmos-sdk/types.Coins" json:"funds"` } func (m *InstantiateContractProposal) Reset() { *m = InstantiateContractProposal{} } @@ -253,7 +253,7 @@ type ExecuteContractProposal struct { // Msg json encoded message to be passed to the contract as execute Msg RawContractMessage `protobuf:"bytes,5,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` // Funds coins that are transferred to the contract on instantiation - Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/okx/okbchain/libs/cosmos-sdk/types.Coins" json:"funds"` + Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/okx/brczero/libs/cosmos-sdk/types.Coins" json:"funds"` } func (m *ExecuteContractProposal) Reset() { *m = ExecuteContractProposal{} } diff --git a/x/wasm/types/proposal_custom.go b/x/wasm/types/proposal_custom.go index 1a69775ff..f6fe69c50 100644 --- a/x/wasm/types/proposal_custom.go +++ b/x/wasm/types/proposal_custom.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + govtypes "github.com/okx/brczero/x/gov/types" ) const ( diff --git a/x/wasm/types/proposal_test.go b/x/wasm/types/proposal_test.go index 1dcf3c05b..7adeb91c6 100644 --- a/x/wasm/types/proposal_test.go +++ b/x/wasm/types/proposal_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - "github.com/okx/okbchain/libs/cosmos-sdk/x/gov/types" - "github.com/okx/okbchain/libs/tendermint/global" - govtypes "github.com/okx/okbchain/x/gov/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/x/gov/types" + "github.com/okx/brczero/libs/tendermint/global" + govtypes "github.com/okx/brczero/x/gov/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/x/wasm/types/query.pb.go b/x/wasm/types/query.pb.go index 950810334..4f6064e30 100644 --- a/x/wasm/types/query.pb.go +++ b/x/wasm/types/query.pb.go @@ -14,8 +14,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - query "github.com/okx/okbchain/libs/cosmos-sdk/types/query" - github_com_tendermint_tendermint_libs_bytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + query "github.com/okx/brczero/libs/cosmos-sdk/types/query" + github_com_tendermint_tendermint_libs_bytes "github.com/okx/brczero/libs/tendermint/libs/bytes" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" @@ -636,7 +636,7 @@ var xxx_messageInfo_QueryCodeRequest proto.InternalMessageInfo type CodeInfoResponse struct { CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"id"` Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` - DataHash github_com_tendermint_tendermint_libs_bytes.HexBytes `protobuf:"bytes,3,opt,name=data_hash,json=dataHash,proto3,casttype=github.com/okx/okbchain/libs/tendermint/libs/bytes.HexBytes" json:"data_hash,omitempty"` + DataHash github_com_tendermint_tendermint_libs_bytes.HexBytes `protobuf:"bytes,3,opt,name=data_hash,json=dataHash,proto3,casttype=github.com/okx/brczero/libs/tendermint/libs/bytes.HexBytes" json:"data_hash,omitempty"` InstantiatePermission AccessConfig `protobuf:"bytes,6,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission"` } diff --git a/x/wasm/types/store_adapter.go b/x/wasm/types/store_adapter.go index 7b48e96da..0cbe6e080 100644 --- a/x/wasm/types/store_adapter.go +++ b/x/wasm/types/store_adapter.go @@ -4,7 +4,7 @@ import ( "fmt" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/types" ) type StoreAdapter struct { diff --git a/x/wasm/types/test_fixtures.go b/x/wasm/types/test_fixtures.go index d0b36f1cf..17e2d6395 100644 --- a/x/wasm/types/test_fixtures.go +++ b/x/wasm/types/test_fixtures.go @@ -6,7 +6,7 @@ import ( "encoding/json" "math/rand" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func GenesisFixture(mutators ...func(*GenesisState)) GenesisState { diff --git a/x/wasm/types/tx.go b/x/wasm/types/tx.go index 57bd6b490..cff7467fb 100644 --- a/x/wasm/types/tx.go +++ b/x/wasm/types/tx.go @@ -8,8 +8,8 @@ import ( ethcmm "github.com/ethereum/go-ethereum/common" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // RawContractMessage defines a json message that is sent or returned by a wasm contract. diff --git a/x/wasm/types/tx.pb.go b/x/wasm/types/tx.pb.go index 289813928..115ef0e4a 100644 --- a/x/wasm/types/tx.pb.go +++ b/x/wasm/types/tx.pb.go @@ -13,8 +13,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" - github_com_cosmos_cosmos_sdk_types "github.com/okx/okbchain/libs/cosmos-sdk/types" - types "github.com/okx/okbchain/libs/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/okx/brczero/libs/cosmos-sdk/types" + types "github.com/okx/brczero/libs/cosmos-sdk/types" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -141,7 +141,7 @@ type MsgInstantiateContract struct { // Msg json encoded message to be passed to the contract on instantiation Msg RawContractMessage `protobuf:"bytes,5,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` // Funds coins that are transferred to the contract on instantiation - Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/okx/okbchain/libs/cosmos-sdk/types.Coins" json:"funds"` + Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/okx/brczero/libs/cosmos-sdk/types.Coins" json:"funds"` } func (m *MsgInstantiateContract) Reset() { *m = MsgInstantiateContract{} } @@ -237,7 +237,7 @@ type MsgExecuteContract struct { // Msg json encoded message to be passed to the contract Msg RawContractMessage `protobuf:"bytes,3,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` // Funds coins that are transferred to the contract on execution - Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,5,rep,name=funds,proto3,castrepeated=github.com/okx/okbchain/libs/cosmos-sdk/types.Coins" json:"funds"` + Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,5,rep,name=funds,proto3,castrepeated=github.com/okx/brczero/libs/cosmos-sdk/types.Coins" json:"funds"` } func (m *MsgExecuteContract) Reset() { *m = MsgExecuteContract{} } diff --git a/x/wasm/types/tx_test.go b/x/wasm/types/tx_test.go index 39e872fa1..35ed11268 100644 --- a/x/wasm/types/tx_test.go +++ b/x/wasm/types/tx_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/types/types.go b/x/wasm/types/types.go index 78ae37646..e7424dec2 100644 --- a/x/wasm/types/types.go +++ b/x/wasm/types/types.go @@ -2,17 +2,17 @@ package types import ( "fmt" - stypes "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + stypes "github.com/okx/brczero/libs/cosmos-sdk/store/types" "reflect" "strings" wasmvmtypes "github.com/CosmWasm/wasmvm/types" "github.com/gogo/protobuf/proto" - codectypes "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" - "github.com/okx/okbchain/libs/tendermint/types" + codectypes "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" + "github.com/okx/brczero/libs/tendermint/types" ) const ( diff --git a/x/wasm/types/types.pb.go b/x/wasm/types/types.pb.go index 9e16a9e2a..8d5929d7b 100644 --- a/x/wasm/types/types.pb.go +++ b/x/wasm/types/types.pb.go @@ -12,8 +12,8 @@ import ( _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" - types "github.com/okx/okbchain/libs/cosmos-sdk/codec/types" - github_com_tendermint_tendermint_libs_bytes "github.com/okx/okbchain/libs/tendermint/libs/bytes" + types "github.com/okx/brczero/libs/cosmos-sdk/codec/types" + github_com_tendermint_tendermint_libs_bytes "github.com/okx/brczero/libs/tendermint/libs/bytes" _ "github.com/regen-network/cosmos-proto" ) @@ -436,7 +436,7 @@ var xxx_messageInfo_AbsoluteTxPosition proto.InternalMessageInfo // Model is a struct that holds a KV pair type Model struct { // hex-encode key to read it better (this is often ascii) - Key github_com_tendermint_tendermint_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=key,proto3,casttype=github.com/okx/okbchain/libs/tendermint/libs/bytes.HexBytes" json:"key,omitempty"` + Key github_com_tendermint_tendermint_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=key,proto3,casttype=github.com/okx/brczero/libs/tendermint/libs/bytes.HexBytes" json:"key,omitempty"` // base64-encode raw value Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } diff --git a/x/wasm/types/types_test.go b/x/wasm/types/types_test.go index 85dae7cae..f6223d5b9 100644 --- a/x/wasm/types/types_test.go +++ b/x/wasm/types/types_test.go @@ -11,7 +11,7 @@ import ( "time" wasmvmtypes "github.com/CosmWasm/wasmvm/types" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/x/wasm/types/validation.go b/x/wasm/types/validation.go index 921462782..157518ca9 100644 --- a/x/wasm/types/validation.go +++ b/x/wasm/types/validation.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/okx/okbchain/libs/cosmos-sdk/types/errors" + sdkerrors "github.com/okx/brczero/libs/cosmos-sdk/types/errors" ) // MaxSaltSize is the longest salt that can be used when instantiating a contract diff --git a/x/wasm/watcher/dds.go b/x/wasm/watcher/dds.go index 0b25273db..e095775fb 100644 --- a/x/wasm/watcher/dds.go +++ b/x/wasm/watcher/dds.go @@ -6,7 +6,7 @@ import ( "sort" "github.com/golang/protobuf/proto" - tmstate "github.com/okx/okbchain/libs/tendermint/state" + tmstate "github.com/okx/brczero/libs/tendermint/state" ) func SetWatchDataManager() { diff --git a/x/wasm/watcher/key.go b/x/wasm/watcher/key.go index c3ad5b8fb..1c02505b8 100644 --- a/x/wasm/watcher/key.go +++ b/x/wasm/watcher/key.go @@ -1,8 +1,8 @@ package watcher import ( - "github.com/okx/okbchain/libs/cosmos-sdk/store/mpt" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/mpt" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func rmStorageRootFromWatchKey(key []byte) []byte { diff --git a/x/wasm/watcher/params.go b/x/wasm/watcher/params.go index 08cc130c1..1eb74d06f 100644 --- a/x/wasm/watcher/params.go +++ b/x/wasm/watcher/params.go @@ -4,7 +4,7 @@ import ( "log" "github.com/golang/protobuf/proto" - "github.com/okx/okbchain/x/wasm/types" + "github.com/okx/brczero/x/wasm/types" ) var ( diff --git a/x/wasm/watcher/store.go b/x/wasm/watcher/store.go index 73f09c2b2..c3a114706 100644 --- a/x/wasm/watcher/store.go +++ b/x/wasm/watcher/store.go @@ -2,19 +2,19 @@ package watcher import ( "encoding/json" - "github.com/okx/okbchain/libs/cosmos-sdk/store/prefix" - cosmost "github.com/okx/okbchain/libs/cosmos-sdk/store/types" + "github.com/okx/brczero/libs/cosmos-sdk/store/prefix" + cosmost "github.com/okx/brczero/libs/cosmos-sdk/store/types" "io" "log" "path/filepath" "sync" - "github.com/okx/okbchain/app/types" - "github.com/okx/okbchain/libs/cosmos-sdk/client/flags" - "github.com/okx/okbchain/libs/cosmos-sdk/store/dbadapter" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" - dbm "github.com/okx/okbchain/libs/tm-db" - "github.com/okx/okbchain/x/evm/watcher" + "github.com/okx/brczero/app/types" + "github.com/okx/brczero/libs/cosmos-sdk/client/flags" + "github.com/okx/brczero/libs/cosmos-sdk/store/dbadapter" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" + dbm "github.com/okx/brczero/libs/tm-db" + "github.com/okx/brczero/x/evm/watcher" "github.com/spf13/viper" ) diff --git a/x/wasm/watcher/write.go b/x/wasm/watcher/write.go index e66e166bf..b0aaa9cce 100644 --- a/x/wasm/watcher/write.go +++ b/x/wasm/watcher/write.go @@ -3,7 +3,7 @@ package watcher import ( "log" - sdk "github.com/okx/okbchain/libs/cosmos-sdk/types" + sdk "github.com/okx/brczero/libs/cosmos-sdk/types" ) func NewHeight() { From a664810123b5d8c9641361ecd4facbe4c822918b Mon Sep 17 00:00:00 2001 From: LeoGuo621 <335209779@qq.com> Date: Thu, 31 Aug 2023 15:03:04 +0800 Subject: [PATCH 2/2] rebrand --- .gitignore | 4 ++-- CONTRIBUTING.md | 26 +++++++++++----------- Makefile | 58 ++++++++++++++++++++++++------------------------- app/app.go | 2 +- 4 files changed, 45 insertions(+), 45 deletions(-) diff --git a/.gitignore b/.gitignore index 281959bb5..95f4099ca 100644 --- a/.gitignore +++ b/.gitignore @@ -16,8 +16,8 @@ mpt.db /rocksdb/ dump.rdb # Build -.okbchaind -.okbchaincli +.brczerod +.brczerocli vendor* build tools/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ec5f4414c..10c39d550 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,15 +14,15 @@ - [Release Procedure](#release-procedure) - [Point Release Procedure](#point-release-procedure) -Thank you for considering making contributions to okbchain and related +Thank you for considering making contributions to brczero and related repositories! Contributing to this repo can mean many things such as participated in discussion or proposing code changes. To ensure a smooth workflow for all contributors, the general procedure for contributing has been established: -1. Either [open](https://github.com/okx/okbchain/issues/new/choose) or - [find](https://github.com/okx/okbchain/issues) an issue you'd like to help with +1. Either [open](https://github.com/okx/brczero/issues/new/choose) or + [find](https://github.com/okx/brczero/issues) an issue you'd like to help with 2. Participate in thoughtful discussion on that issue 3. If you would like to contribute: 1. If a the issue is a proposal, ensure that the proposal has been accepted @@ -33,7 +33,7 @@ contributors, the general procedure for contributing has been established: to begin work 4. Follow standard Github best practices: fork the repo, branch from the HEAD of `master`, make some commits, and submit a PR to `master` - - For core developers working within the okbchain repo, to ensure a clear + - For core developers working within the brczero repo, to ensure a clear ownership of branches, branches must be named with the convention `{moniker}/{issue#}-branch-name` 5. Be sure to submit the PR in `Draft` mode submit your PR early, even if @@ -54,7 +54,7 @@ tools` for installing the linting tools. Other notes: - Looking for a good place to start contributing? How about checking out some - [good first issues](https://github.com/okx/okbchain/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) + [good first issues](https://github.com/okx/brczero/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) - Please make sure to use `gofmt` before every commit - the easiest way to do this is have your editor run it for you upon saving a file. Additionally please ensure that your code is lint compliant by running `make lint` @@ -92,20 +92,20 @@ If you open a PR on the Cosmos SDK, it is mandatory to update the relevant docum ## Forking Please note that Go requires code to live under absolute paths, which complicates forking. -While my fork lives at `https://github.com/rigeyrigerige/okbchain`, -the code should never exist at `$GOPATH/src/github.com/rigeyrigerige/okbchain`. +While my fork lives at `https://github.com/rigeyrigerige/brczero`, +the code should never exist at `$GOPATH/src/github.com/rigeyrigerige/brczero`. Instead, we use `git remote` to add the fork as a new remote for the original repo, -`$GOPATH/src/github.com/okx/okbchain `, and do all the work there. +`$GOPATH/src/github.com/okx/brczero `, and do all the work there. For instance, to create a fork and work on a branch of it, I would: - Create the fork on github, using the fork button. - - Go to the original repo checked out locally (i.e. `$GOPATH/src/github.com/okx/okbchain`) + - Go to the original repo checked out locally (i.e. `$GOPATH/src/github.com/okx/brczero`) - `git remote rename origin upstream` - - `git remote add origin git@github.com:rigeyrigerige/okbchain.git` + - `git remote add origin git@github.com:rigeyrigerige/brczero.git` -Now `origin` refers to my fork and `upstream` refers to the okbchain version. -So I can `git push -u origin master` to update my fork, and make pull requests to okbchain from there. +Now `origin` refers to my fork and `upstream` refers to the brczero version. +So I can `git push -u origin master` to update my fork, and make pull requests to brczero from there. Of course, replace `rigeyrigerige` with your git handle. To pull in updates from the origin repo, run @@ -180,7 +180,7 @@ only pull requests targeted directly against master. - `master` must never fail `make test` or `make test_cli` - `master` should not fail `make lint` - no `--force` onto `master` (except when reverting a broken commit, which should seldom happen) - - create a development branch either on github.com/okx/okbchain, or your fork (using `git remote add origin`) + - create a development branch either on github.com/okx/brczero, or your fork (using `git remote add origin`) - before submitting a pull request, begin `git rebase` on top of `master` ### Pull Merge Procedure diff --git a/Makefile b/Makefile index 9ad4290c2..eef5a9a6d 100644 --- a/Makefile +++ b/Makefile @@ -17,9 +17,9 @@ Version=v0.1.7 CosmosSDK=v0.39.2 Tendermint=v0.33.9 Iavl=v0.14.3 -Name=okbchain -ServerName=okbchaind -ClientName=okbchaincli +Name=brczero +ServerName=brczerod +ClientName=brczerocli LINK_STATICALLY = false cgo_flags= @@ -72,32 +72,32 @@ endif build_tags += $(BUILD_TAGS) build_tags := $(strip $(build_tags)) -ldflags = -X $(GithubTop)/okx/okbchain/libs/cosmos-sdk/version.Version=$(Version) \ - -X $(GithubTop)/okx/okbchain/libs/cosmos-sdk/version.Name=$(Name) \ - -X $(GithubTop)/okx/okbchain/libs/cosmos-sdk/version.ServerName=$(ServerName) \ - -X $(GithubTop)/okx/okbchain/libs/cosmos-sdk/version.ClientName=$(ClientName) \ - -X $(GithubTop)/okx/okbchain/libs/cosmos-sdk/version.Commit=$(COMMIT) \ - -X $(GithubTop)/okx/okbchain/libs/cosmos-sdk/version.CosmosSDK=$(CosmosSDK) \ - -X $(GithubTop)/okx/okbchain/libs/cosmos-sdk/version.Tendermint=$(Tendermint) \ - -X "$(GithubTop)/okx/okbchain/libs/cosmos-sdk/version.BuildTags=$(build_tags)" \ +ldflags = -X $(GithubTop)/okx/brczero/libs/cosmos-sdk/version.Version=$(Version) \ + -X $(GithubTop)/okx/brczero/libs/cosmos-sdk/version.Name=$(Name) \ + -X $(GithubTop)/okx/brczero/libs/cosmos-sdk/version.ServerName=$(ServerName) \ + -X $(GithubTop)/okx/brczero/libs/cosmos-sdk/version.ClientName=$(ClientName) \ + -X $(GithubTop)/okx/brczero/libs/cosmos-sdk/version.Commit=$(COMMIT) \ + -X $(GithubTop)/okx/brczero/libs/cosmos-sdk/version.CosmosSDK=$(CosmosSDK) \ + -X $(GithubTop)/okx/brczero/libs/cosmos-sdk/version.Tendermint=$(Tendermint) \ + -X "$(GithubTop)/okx/brczero/libs/cosmos-sdk/version.BuildTags=$(build_tags)" \ ifeq ($(WITH_ROCKSDB),true) - ldflags += -X github.com/okx/okbchain/libs/tendermint/types.DBBackend=rocksdb + ldflags += -X github.com/okx/brczero/libs/tendermint/types.DBBackend=rocksdb endif ifeq ($(MAKECMDGOALS),testnet) - ldflags += -X github.com/okx/okbchain/libs/cosmos-sdk/server.ChainID=okbchaintest-195 + ldflags += -X github.com/okx/brczero/libs/cosmos-sdk/server.ChainID=brczerotest-195 endif ifeq ($(LINK_STATICALLY),true) ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static" endif -ifeq ($(OKBCMALLOC),tcmalloc) +ifeq ($(BRCZEROMALLOC),tcmalloc) ldflags += -extldflags "-ltcmalloc_minimal" endif -ifeq ($(OKBCMALLOC),jemalloc) +ifeq ($(BRCZEROMALLOC),jemalloc) ldflags += -extldflags "-ljemalloc" endif @@ -113,19 +113,19 @@ endif all: install -install: okbchain +install: brczero -okbchain: check_version - $(cgo_flags) go install $(PGO_AUTO) -v $(BUILD_FLAGS) -tags "$(build_tags)" ./cmd/okbchaind - $(cgo_flags) go install $(PGO_AUTO) -v $(BUILD_FLAGS) -tags "$(build_tags)" ./cmd/okbchaincli +brczero: check_version + $(cgo_flags) go install $(PGO_AUTO) -v $(BUILD_FLAGS) -tags "$(build_tags)" ./cmd/brczerod + $(cgo_flags) go install $(PGO_AUTO) -v $(BUILD_FLAGS) -tags "$(build_tags)" ./cmd/brczerocli check_version: @sh $(shell pwd)/libs/check/check-version.sh $(GO_VERSION) $(ROCKSDB_VERSION) -mainnet: okbchain +mainnet: brczero -testnet: okbchain +testnet: brczero test-unit: @VERSION=$(VERSION) go test -mod=readonly -tags='ledger test_ledger_mock' ./app/... @@ -159,21 +159,21 @@ go.sum: go.mod @go mod tidy cli: - go install -v $(BUILD_FLAGS) -tags "$(build_tags)" ./cmd/okbchaincli + go install -v $(BUILD_FLAGS) -tags "$(build_tags)" ./cmd/brczerocli server: - go install -v $(BUILD_FLAGS) -tags "$(build_tags)" ./cmd/okbchaind + go install -v $(BUILD_FLAGS) -tags "$(build_tags)" ./cmd/brczerod format: find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/lcd/statik/statik.go" | xargs gofmt -w -s build: ifeq ($(OS),Windows_NT) - go build $(PGO_AUTO) $(BUILD_FLAGS) -tags "$(build_tags)" -o build/okbchaind.exe ./cmd/okbchaind - go build $(PGO_AUTO) $(BUILD_FLAGS) -tags "$(build_tags)" -o build/okbchaincli.exe ./cmd/okbchaincli + go build $(PGO_AUTO) $(BUILD_FLAGS) -tags "$(build_tags)" -o build/brczerod.exe ./cmd/brczerod + go build $(PGO_AUTO) $(BUILD_FLAGS) -tags "$(build_tags)" -o build/brczerocli.exe ./cmd/brczerocli else - go build $(PGO_AUTO) $(BUILD_FLAGS) -tags "$(build_tags)" -o build/okbchaind ./cmd/okbchaind - go build $(PGO_AUTO) $(BUILD_FLAGS) -tags "$(build_tags)" -o build/okbchaincli ./cmd/okbchaincli + go build $(PGO_AUTO) $(BUILD_FLAGS) -tags "$(build_tags)" -o build/brczerod ./cmd/brczerod + go build $(PGO_AUTO) $(BUILD_FLAGS) -tags "$(build_tags)" -o build/brczerocli ./cmd/brczerocli endif @@ -205,12 +205,12 @@ testibc: build-linux: LEDGER_ENABLED=false GOOS=linux GOARCH=amd64 $(MAKE) build -build-docker-okbchainnode: +build-docker-brczeronode: $(MAKE) -C networks/local # Run a 4-node testnet locally localnet-start: localnet-stop - @if ! [ -f build/node0/okbchaind/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/okbchaind:Z okbchain/node testnet --v 4 -o . --starting-ip-address 192.168.10.2 --keyring-backend=test ; fi + @if ! [ -f build/node0/brczerod/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/brczerod:Z brczero/node testnet --v 4 -o . --starting-ip-address 192.168.10.2 --keyring-backend=test ; fi docker-compose up -d # Stop testnet diff --git a/app/app.go b/app/app.go index de0aaf9e3..a0070c20c 100644 --- a/app/app.go +++ b/app/app.go @@ -823,7 +823,7 @@ func (app *BRCZeroApp) GetKey(storeKey string) *sdk.KVStoreKey { return app.keys[storeKey] } -// Codec returns OKBChain's codec. +// Codec returns BRCZero's codec. // // NOTE: This is solely to be used for testing purposes as it may be desirable // for modules to register their own custom testing types.