From 0016c2c56223caf2e5152856fe1b8d62390eb167 Mon Sep 17 00:00:00 2001 From: eligion Date: Tue, 3 May 2022 00:41:31 +0200 Subject: [PATCH] Update local deps --- .deepsource.toml | 2 +- .../module-readiness-checklist.md | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 6 +- .github/PULL_REQUEST_TEMPLATE/docs.md | 4 +- .github/PULL_REQUEST_TEMPLATE/other.md | 2 +- CHANGELOG.md | 2524 ++++++++--------- CONTRIBUTING.md | 16 +- Dockerfile | 4 +- Makefile | 30 +- README.md | 22 +- RELEASE_NOTES.md | 4 +- RELEASE_PROCESS.md | 2 +- SECURITY.md | 34 +- baseapp/abci.go | 12 +- baseapp/abci_test.go | 4 +- baseapp/baseapp.go | 18 +- baseapp/baseapp_test.go | 18 +- baseapp/block_gas_test.go | 26 +- baseapp/grpcrouter.go | 6 +- baseapp/grpcrouter_helpers.go | 4 +- baseapp/grpcrouter_test.go | 10 +- baseapp/grpcserver.go | 6 +- baseapp/msg_service_router.go | 6 +- baseapp/msg_service_router_test.go | 12 +- baseapp/options.go | 8 +- baseapp/params.go | 2 +- baseapp/params_test.go | 2 +- baseapp/queryrouter.go | 2 +- baseapp/queryrouter_test.go | 2 +- baseapp/recovery.go | 4 +- baseapp/router.go | 2 +- baseapp/router_test.go | 2 +- baseapp/state.go | 2 +- baseapp/test_helpers.go | 4 +- client/account_retriever.go | 4 +- client/broadcast.go | 8 +- client/broadcast_test.go | 4 +- client/cmd.go | 8 +- client/cmd_test.go | 6 +- client/config/cmd.go | 4 +- client/config/config.go | 4 +- client/config/config_test.go | 10 +- client/context.go | 10 +- client/context_test.go | 14 +- client/debug/main.go | 8 +- client/docs/statik/init.go | 2 +- client/docs/swagger-ui/swagger.yaml | 4 +- client/flags/flags.go | 2 +- client/flags/flags_test.go | 2 +- client/grpc/reflection/reflection.go | 2 +- client/grpc/tmservice/block.go | 2 +- client/grpc/tmservice/query.pb.go | 4 +- client/grpc/tmservice/service.go | 12 +- client/grpc/tmservice/service_test.go | 14 +- client/grpc/tmservice/status.go | 2 +- client/grpc_query.go | 8 +- client/grpc_query_test.go | 10 +- client/keys/add.go | 16 +- client/keys/add_ledger_test.go | 12 +- client/keys/add_test.go | 16 +- client/keys/codec.go | 6 +- client/keys/codec_test.go | 4 +- client/keys/delete.go | 6 +- client/keys/delete_test.go | 14 +- client/keys/export.go | 6 +- client/keys/export_test.go | 14 +- client/keys/import.go | 4 +- client/keys/import_test.go | 10 +- client/keys/list.go | 2 +- client/keys/list_test.go | 14 +- client/keys/migrate.go | 8 +- client/keys/migrate_test.go | 8 +- client/keys/mnemonic.go | 2 +- client/keys/mnemonic_test.go | 2 +- client/keys/parse.go | 4 +- client/keys/parse_test.go | 2 +- client/keys/root.go | 2 +- client/keys/show.go | 14 +- client/keys/show_test.go | 20 +- client/keys/types_test.go | 2 +- client/keys/utils.go | 2 +- client/query.go | 6 +- client/query_test.go | 2 +- client/rest/rest.go | 2 +- client/rpc/block.go | 8 +- client/rpc/routes.go | 2 +- client/rpc/rpc_test.go | 10 +- client/rpc/status.go | 12 +- client/rpc/validators.go | 12 +- client/test_helpers.go | 4 +- client/tx/factory.go | 10 +- client/tx/legacy.go | 8 +- client/tx/legacy_test.go | 22 +- client/tx/tx.go | 24 +- client/tx/tx_test.go | 22 +- client/tx_config.go | 6 +- client/utils.go | 8 +- client/utils_test.go | 2 +- codec/amino.go | 2 +- codec/amino_codec_test.go | 14 +- codec/any_test.go | 14 +- codec/codec.go | 2 +- codec/codec_common_test.go | 6 +- codec/json.go | 2 +- codec/legacy/codec.go | 6 +- codec/proto_codec.go | 2 +- codec/proto_codec_test.go | 6 +- codec/types/any.go | 2 +- codec/types/any_test.go | 6 +- codec/types/compat_test.go | 4 +- codec/types/types_test.go | 4 +- codec/unknownproto/benchmarks_test.go | 4 +- codec/unknownproto/regression_test.go | 4 +- codec/unknownproto/unknown_fields.go | 2 +- codec/unknownproto/unknown_fields_test.go | 6 +- codec/yaml_test.go | 6 +- contrib/githooks/pre-commit | 2 +- cosmovisor/README.md | 2 +- cosmovisor/cmd/cosmovisor/main.go | 2 +- cosmovisor/go.mod | 2 +- cosmovisor/process_test.go | 6 +- cosmovisor/scanner.go | 4 +- cosmovisor/scanner_test.go | 2 +- .../download/cosmovisor/genesis/bin/autod | 2 +- cosmovisor/testdata/repo/ref_zipped | 2 +- cosmovisor/testdata/repo/zip_binary/autod | 2 +- cosmovisor/upgrade_test.go | 4 +- crypto/armor.go | 6 +- crypto/armor_test.go | 14 +- crypto/bcrypt_readme.md | 6 +- crypto/codec/amino.go | 10 +- crypto/codec/proto.go | 12 +- crypto/codec/tm.go | 8 +- crypto/hd/algo.go | 4 +- crypto/hd/algo_test.go | 2 +- crypto/hd/fundraiser_test.go | 4 +- crypto/hd/hdpath.go | 2 +- crypto/hd/hdpath_test.go | 8 +- crypto/keyring/codec.go | 6 +- crypto/keyring/info.go | 12 +- crypto/keyring/keyring.go | 16 +- crypto/keyring/keyring_ledger_test.go | 4 +- crypto/keyring/keyring_test.go | 14 +- crypto/keyring/legacy.go | 8 +- crypto/keyring/legacy_test.go | 2 +- crypto/keyring/output.go | 8 +- crypto/keyring/output_test.go | 8 +- crypto/keyring/signing_algorithms.go | 2 +- crypto/keyring/signing_algorithms_test.go | 2 +- crypto/keyring/types.go | 4 +- crypto/keyring/types_test.go | 6 +- crypto/keys/ed25519/ed25519.go | 6 +- crypto/keys/ed25519/ed25519_test.go | 12 +- crypto/keys/internal/benchmarking/bench.go | 2 +- crypto/keys/internal/ecdsa/privkey.go | 2 +- crypto/keys/internal/ecdsa/pubkey.go | 4 +- crypto/keys/multisig/amino.go | 8 +- crypto/keys/multisig/codec.go | 8 +- crypto/keys/multisig/keys.pb.go | 2 +- crypto/keys/multisig/multisig.go | 10 +- crypto/keys/multisig/multisig_test.go | 28 +- crypto/keys/secp256k1/bench_test.go | 4 +- crypto/keys/secp256k1/secp256k1.go | 6 +- crypto/keys/secp256k1/secp256k1_cgo.go | 2 +- crypto/keys/secp256k1/secp256k1_test.go | 8 +- crypto/keys/secp256r1/doc.go | 4 +- crypto/keys/secp256r1/privkey.go | 4 +- .../keys/secp256r1/privkey_internal_test.go | 6 +- crypto/keys/secp256r1/pubkey.go | 4 +- crypto/keys/secp256r1/pubkey_internal_test.go | 6 +- crypto/ledger/amino.go | 4 +- crypto/ledger/encode_test.go | 2 +- crypto/ledger/ledger_mock.go | 8 +- crypto/ledger/ledger_secp256k1.go | 6 +- crypto/ledger/ledger_test.go | 10 +- crypto/types/compact_bit_array.go | 2 +- crypto/types/compact_bit_array_test.go | 4 +- crypto/types/multisig/multisignature.go | 4 +- crypto/types/multisig/pubkey.go | 4 +- crypto/types/types.go | 4 +- docs/.vuepress/config.js | 6 +- docs/DOCS_README.md | 8 +- docs/README.md | 4 +- docs/architecture/adr-002-docs-structure.md | 8 +- .../adr-003-dynamic-capability-store.md | 2 +- .../adr-004-split-denomination-keys.md | 8 +- .../adr-010-modular-antehandler.md | 6 +- .../adr-011-generalize-genesis-accounts.md | 2 +- docs/architecture/adr-012-state-accessors.md | 2 +- ...dr-016-validator-consensus-key-rotation.md | 2 +- .../adr-019-protobuf-state-encoding.md | 12 +- .../adr-020-protobuf-transaction-encoding.md | 18 +- .../adr-022-custom-panic-handling.md | 8 +- docs/architecture/adr-023-protobuf-naming.md | 2 +- ...27-deterministic-protobuf-serialization.md | 8 +- .../adr-028-public-key-addresses.md | 6 +- docs/architecture/adr-029-fee-grant-module.md | 2 +- docs/architecture/adr-030-authz-module.md | 4 +- docs/architecture/adr-031-msg-service.md | 14 +- .../adr-033-protobuf-inter-module-comm.md | 14 +- .../adr-036-arbitrary-signature.md | 8 +- docs/architecture/adr-038-state-listening.md | 2 +- ...r-040-storage-and-smt-state-commitments.md | 8 +- .../adr-041-in-place-store-migrations.md | 10 +- docs/architecture/adr-042-group-module.md | 14 +- docs/basics/accounts.md | 24 +- docs/basics/app-anatomy.md | 26 +- docs/basics/gas-fees.md | 8 +- docs/basics/query-lifecycle.md | 14 +- docs/basics/tx-lifecycle.md | 2 +- docs/building-modules/beginblock-endblock.md | 4 +- docs/building-modules/errors.md | 4 +- docs/building-modules/genesis.md | 10 +- docs/building-modules/invariants.md | 10 +- docs/building-modules/keeper.md | 6 +- docs/building-modules/messages-and-queries.md | 12 +- docs/building-modules/module-interfaces.md | 20 +- docs/building-modules/module-manager.md | 12 +- docs/building-modules/msg-services.md | 18 +- docs/building-modules/query-services.md | 6 +- docs/building-modules/simulator.md | 10 +- docs/building-modules/upgrade.md | 4 +- docs/cn/README.md | 4 +- docs/cn/basics/accounts.md | 18 +- docs/cn/basics/app-anatomy.md | 14 +- docs/cn/basics/gas-fees.md | 10 +- docs/cn/basics/tx-lifecycle.md | 2 +- docs/cn/cn-translation-progress.md | 8 +- docs/cn/intro/ocap.md | 2 +- docs/cn/intro/overview.md | 2 +- docs/core/baseapp.md | 20 +- docs/core/cli.md | 26 +- docs/core/context.md | 2 +- docs/core/encoding.md | 16 +- docs/core/events.md | 6 +- docs/core/grpc_rest.md | 10 +- docs/core/node.md | 14 +- docs/core/ocap.md | 2 +- docs/core/proto-docs.md | 2 +- docs/core/simulation.md | 14 +- docs/core/store.md | 48 +- docs/core/transactions.md | 22 +- docs/core/upgrade.md | 2 +- docs/ibc/custom.md | 2 +- docs/ibc/relayer.md | 2 +- docs/intro/overview.md | 2 +- docs/kr/README.md | 4 +- docs/kr/intro/overview.md | 2 +- docs/kr/kr-translation-progress.md | 10 +- docs/kr/modules/README.md | 18 +- docs/migrations/README.md | 2 +- docs/migrations/chain-upgrade-guide-044.md | 6 +- docs/run-node/interact-node.md | 12 +- docs/run-node/keyring.md | 2 +- docs/run-node/rosetta.md | 8 +- docs/run-node/run-node.md | 6 +- docs/run-node/txs.md | 26 +- go.mod | 2 +- proto/cosmos/auth/v1beta1/auth.proto | 2 +- proto/cosmos/auth/v1beta1/genesis.proto | 2 +- proto/cosmos/auth/v1beta1/query.proto | 2 +- proto/cosmos/authz/v1beta1/authz.proto | 2 +- proto/cosmos/authz/v1beta1/event.proto | 2 +- proto/cosmos/authz/v1beta1/genesis.proto | 2 +- proto/cosmos/authz/v1beta1/query.proto | 2 +- proto/cosmos/authz/v1beta1/tx.proto | 2 +- proto/cosmos/bank/v1beta1/authz.proto | 4 +- proto/cosmos/bank/v1beta1/bank.proto | 10 +- proto/cosmos/bank/v1beta1/genesis.proto | 6 +- proto/cosmos/bank/v1beta1/query.proto | 6 +- proto/cosmos/bank/v1beta1/tx.proto | 4 +- proto/cosmos/base/abci/v1beta1/abci.proto | 2 +- proto/cosmos/base/kv/v1beta1/kv.proto | 2 +- .../base/query/v1beta1/pagination.proto | 2 +- .../base/reflection/v1beta1/reflection.proto | 2 +- .../base/reflection/v2alpha1/reflection.proto | 2 +- .../base/snapshots/v1beta1/snapshot.proto | 2 +- .../base/store/v1beta1/commit_info.proto | 2 +- .../cosmos/base/store/v1beta1/listening.proto | 2 +- .../cosmos/base/store/v1beta1/snapshot.proto | 2 +- .../base/tendermint/v1beta1/query.proto | 2 +- proto/cosmos/base/v1beta1/coin.proto | 2 +- .../capability/v1beta1/capability.proto | 2 +- proto/cosmos/capability/v1beta1/genesis.proto | 2 +- proto/cosmos/crisis/v1beta1/genesis.proto | 2 +- proto/cosmos/crisis/v1beta1/tx.proto | 2 +- proto/cosmos/crypto/ed25519/keys.proto | 2 +- proto/cosmos/crypto/multisig/keys.proto | 2 +- .../crypto/multisig/v1beta1/multisig.proto | 2 +- proto/cosmos/crypto/secp256k1/keys.proto | 2 +- proto/cosmos/crypto/secp256r1/keys.proto | 2 +- .../distribution/v1beta1/distribution.proto | 26 +- .../cosmos/distribution/v1beta1/genesis.proto | 4 +- proto/cosmos/distribution/v1beta1/query.proto | 8 +- proto/cosmos/distribution/v1beta1/tx.proto | 4 +- proto/cosmos/evidence/v1beta1/evidence.proto | 2 +- proto/cosmos/evidence/v1beta1/genesis.proto | 2 +- proto/cosmos/evidence/v1beta1/query.proto | 2 +- proto/cosmos/evidence/v1beta1/tx.proto | 2 +- proto/cosmos/feegrant/v1beta1/feegrant.proto | 8 +- proto/cosmos/feegrant/v1beta1/genesis.proto | 2 +- proto/cosmos/feegrant/v1beta1/query.proto | 2 +- proto/cosmos/feegrant/v1beta1/tx.proto | 2 +- proto/cosmos/genutil/v1beta1/genesis.proto | 2 +- proto/cosmos/gov/v1beta1/genesis.proto | 2 +- proto/cosmos/gov/v1beta1/gov.proto | 24 +- proto/cosmos/gov/v1beta1/query.proto | 2 +- proto/cosmos/gov/v1beta1/tx.proto | 6 +- proto/cosmos/mint/v1beta1/genesis.proto | 2 +- proto/cosmos/mint/v1beta1/mint.proto | 14 +- proto/cosmos/mint/v1beta1/query.proto | 6 +- proto/cosmos/params/v1beta1/params.proto | 2 +- proto/cosmos/params/v1beta1/query.proto | 2 +- proto/cosmos/slashing/v1beta1/genesis.proto | 2 +- proto/cosmos/slashing/v1beta1/query.proto | 2 +- proto/cosmos/slashing/v1beta1/slashing.proto | 8 +- proto/cosmos/slashing/v1beta1/tx.proto | 2 +- proto/cosmos/staking/v1beta1/authz.proto | 4 +- proto/cosmos/staking/v1beta1/genesis.proto | 4 +- proto/cosmos/staking/v1beta1/query.proto | 2 +- proto/cosmos/staking/v1beta1/staking.proto | 30 +- proto/cosmos/staking/v1beta1/tx.proto | 8 +- proto/cosmos/tx/signing/v1beta1/signing.proto | 2 +- proto/cosmos/tx/v1beta1/service.proto | 2 +- proto/cosmos/tx/v1beta1/tx.proto | 6 +- proto/cosmos/upgrade/v1beta1/query.proto | 2 +- proto/cosmos/upgrade/v1beta1/upgrade.proto | 2 +- proto/cosmos/vesting/v1beta1/tx.proto | 4 +- proto/cosmos/vesting/v1beta1/vesting.proto | 10 +- scripts/linkify_changelog.py | 4 +- scripts/protocgen.sh | 6 +- server/api/server.go | 12 +- server/cmd/execute.go | 6 +- server/config/config.go | 10 +- server/config/config_test.go | 2 +- server/export.go | 6 +- server/export_test.go | 16 +- server/grpc/grpc_web.go | 4 +- server/grpc/grpc_web_test.go | 10 +- server/grpc/reflection/v2alpha1/reflection.go | 6 +- server/grpc/server.go | 10 +- server/grpc/server_test.go | 36 +- server/init.go | 4 +- server/mock/app.go | 8 +- server/mock/store.go | 4 +- server/mock/store_test.go | 2 +- server/mock/tx.go | 4 +- server/pruning.go | 6 +- server/pruning_test.go | 2 +- server/rosetta.go | 6 +- server/rosetta/client_offline.go | 4 +- server/rosetta/client_online.go | 16 +- server/rosetta/codec.go | 10 +- server/rosetta/config.go | 6 +- server/rosetta/converter.go | 24 +- server/rosetta/converter_test.go | 18 +- .../lib/internal/service/construction.go | 2 +- server/rosetta/lib/internal/service/data.go | 4 +- .../rosetta/lib/internal/service/offline.go | 4 +- server/rosetta/lib/internal/service/online.go | 4 +- server/rosetta/lib/server/server.go | 4 +- server/rosetta/util.go | 2 +- server/start.go | 20 +- server/test_helpers.go | 2 +- server/tm_cmds.go | 6 +- server/types/app.go | 6 +- server/util.go | 10 +- server/util_test.go | 6 +- simapp/app.go | 138 +- simapp/app_test.go | 42 +- simapp/config.go | 2 +- simapp/encoding.go | 4 +- simapp/export.go | 10 +- simapp/genesis.go | 2 +- simapp/genesis_account.go | 4 +- simapp/genesis_account_test.go | 8 +- simapp/helpers/test_helpers.go | 12 +- simapp/params/amino.go | 6 +- simapp/params/encoding.go | 6 +- simapp/params/proto.go | 6 +- simapp/sim_bench_test.go | 6 +- simapp/sim_test.go | 34 +- simapp/simd/cmd/cmd_test.go | 8 +- simapp/simd/cmd/genaccounts.go | 20 +- simapp/simd/cmd/genaccounts_test.go | 24 +- simapp/simd/cmd/root.go | 40 +- simapp/simd/cmd/testnet.go | 32 +- simapp/simd/cmd/testnet_test.go | 14 +- simapp/simd/main.go | 8 +- simapp/state.go | 18 +- simapp/test_helpers.go | 28 +- simapp/types.go | 8 +- simapp/utils.go | 12 +- simapp/utils_test.go | 12 +- snapshots/helpers_test.go | 6 +- snapshots/manager.go | 4 +- snapshots/manager_test.go | 4 +- snapshots/store.go | 4 +- snapshots/store_test.go | 8 +- snapshots/types/convert.go | 2 +- snapshots/util.go | 2 +- snapshots/util_test.go | 2 +- std/codec.go | 10 +- store/cache/benchmark_test.go | 2 +- store/cache/cache.go | 6 +- store/cache/cache_test.go | 6 +- store/cachekv/memiterator.go | 2 +- store/cachekv/mergeiterator.go | 2 +- store/cachekv/store.go | 12 +- store/cachekv/store_bench_test.go | 4 +- store/cachekv/store_test.go | 6 +- store/cachemulti/store.go | 6 +- store/cachemulti/store_test.go | 2 +- store/dbadapter/store.go | 8 +- store/dbadapter/store_test.go | 8 +- store/firstlast.go | 4 +- store/gaskv/store.go | 4 +- store/gaskv/store_test.go | 6 +- store/iavl/store.go | 14 +- store/iavl/store_test.go | 6 +- store/internal/maps/maps.go | 2 +- store/internal/proofs/create.go | 2 +- store/internal/proofs/helpers.go | 2 +- store/listenkv/store.go | 2 +- store/listenkv/store_test.go | 12 +- store/mem/mem_test.go | 6 +- store/mem/store.go | 10 +- store/prefix/store.go | 8 +- store/prefix/store_test.go | 12 +- store/reexport.go | 2 +- store/rootmulti/dbadapter.go | 4 +- store/rootmulti/proof.go | 2 +- store/rootmulti/proof_test.go | 4 +- store/rootmulti/store.go | 22 +- store/rootmulti/store_test.go | 22 +- store/store.go | 6 +- store/tracekv/store.go | 4 +- store/tracekv/store_test.go | 8 +- store/transient/store.go | 4 +- store/transient/store_test.go | 4 +- store/types/commit_info.go | 4 +- store/types/errors.go | 2 +- store/types/gas.go | 4 +- store/types/iterator_test.go | 4 +- store/types/listening.go | 2 +- store/types/listening_test.go | 4 +- store/types/proof.go | 2 +- store/types/store.go | 4 +- store/types/utils.go | 2 +- store/types/utils_test.go | 4 +- store/types/validity_test.go | 2 +- tests/mocks/account_retriever.go | 6 +- tests/mocks/types_handler.go | 2 +- tests/mocks/types_invariant.go | 2 +- tests/mocks/types_module_module.go | 10 +- tests/mocks/types_router.go | 2 +- testutil/cli/cmd.go | 4 +- testutil/context.go | 4 +- testutil/ioutil_test.go | 2 +- testutil/key.go | 4 +- testutil/key_test.go | 6 +- testutil/network/network.go | 42 +- testutil/network/network_test.go | 2 +- testutil/network/util.go | 14 +- testutil/testdata/animal.go | 2 +- testutil/testdata/codec.go | 6 +- testutil/testdata/grpc_query.go | 2 +- testutil/testdata/query.pb.go | 2 +- testutil/testdata/query.proto | 4 +- testutil/testdata/testdata.pb.go | 2 +- testutil/testdata/testdata.proto | 2 +- testutil/testdata/tx.go | 8 +- testutil/testdata/tx.pb.go | 2 +- testutil/testdata/tx.proto | 6 +- testutil/testdata/unknonwnproto.pb.go | 4 +- testutil/testdata/unknonwnproto.proto | 2 +- types/abci.pb.go | 2 +- types/address.go | 10 +- types/address/hash.go | 4 +- types/address/store_key.go | 2 +- types/address/store_key_test.go | 2 +- types/address_race_test.go | 2 +- types/address_test.go | 10 +- types/bech32/bech32_test.go | 2 +- types/bech32/legacybech32/pk.go | 8 +- types/bech32/legacybech32/pk_bench_test.go | 2 +- types/bech32/legacybech32/pk_test.go | 8 +- types/bench_test.go | 2 +- types/codec.go | 4 +- types/coin_test.go | 4 +- types/config.go | 2 +- types/config_test.go | 2 +- types/context.go | 4 +- types/context_test.go | 8 +- types/dec_coin_test.go | 2 +- types/decimal_test.go | 2 +- types/errors/abci_test.go | 2 +- types/errors/stacktrace.go | 6 +- types/errors/stacktrace_test.go | 4 +- types/events.go | 2 +- types/events_test.go | 6 +- types/handler_test.go | 4 +- types/int_test.go | 2 +- types/invariant_test.go | 2 +- types/kv/list.go | 2 +- types/module/configurator.go | 8 +- types/module/module.go | 16 +- types/module/module_test.go | 12 +- types/module/simulation.go | 6 +- types/msgservice/msg_service.go | 4 +- types/query/filtered_pagination.go | 2 +- types/query/filtered_pagination_test.go | 14 +- types/query/pagination.go | 2 +- types/query/pagination_test.go | 20 +- types/rest/rest.go | 8 +- types/rest/rest_test.go | 18 +- types/result.go | 4 +- types/result_test.go | 6 +- types/router_test.go | 2 +- types/simulation/account.go | 8 +- types/simulation/account_test.go | 4 +- types/simulation/rand_util.go | 2 +- types/simulation/rand_util_test.go | 4 +- types/simulation/types.go | 8 +- types/staking_test.go | 2 +- types/store.go | 4 +- types/store_test.go | 6 +- types/tx/service.pb.go | 4 +- types/tx/signing/signature.go | 4 +- types/tx/signing/signature_data.go | 2 +- types/tx/signing/signing.pb.go | 4 +- types/tx/tx.pb.go | 14 +- types/tx/types.go | 8 +- types/tx_msg.go | 2 +- types/tx_msg_test.go | 4 +- types/uint_test.go | 2 +- types/utils_test.go | 2 +- version/version.go | 12 +- version/version_test.go | 4 +- x/auth/ante/ante.go | 10 +- x/auth/ante/ante_test.go | 26 +- x/auth/ante/basic.go | 16 +- x/auth/ante/basic_test.go | 12 +- x/auth/ante/expected_keepers.go | 4 +- x/auth/ante/ext.go | 6 +- x/auth/ante/ext_test.go | 10 +- x/auth/ante/fee.go | 6 +- x/auth/ante/fee_test.go | 10 +- x/auth/ante/feegrant_test.go | 30 +- x/auth/ante/setup.go | 6 +- x/auth/ante/setup_test.go | 10 +- x/auth/ante/sigverify.go | 24 +- x/auth/ante/sigverify_benchmark_test.go | 4 +- x/auth/ante/sigverify_test.go | 34 +- x/auth/ante/testutil_test.go | 24 +- x/auth/atlas/atlas-v0.39.1.md | 4 +- x/auth/atlas/atlas.toml | 6 +- x/auth/client/cli/broadcast.go | 6 +- x/auth/client/cli/decode.go | 4 +- x/auth/client/cli/encode.go | 6 +- x/auth/client/cli/encode_test.go | 10 +- x/auth/client/cli/query.go | 18 +- x/auth/client/cli/tx_multisign.go | 26 +- x/auth/client/cli/tx_sign.go | 8 +- x/auth/client/cli/validate_sigs.go | 12 +- x/auth/client/rest/decode.go | 12 +- x/auth/client/rest/query.go | 18 +- x/auth/client/rest/rest.go | 4 +- x/auth/client/testutil/cli_test.go | 2 +- x/auth/client/testutil/helpers.go | 12 +- x/auth/client/testutil/suite.go | 38 +- x/auth/client/tx.go | 16 +- x/auth/client/tx_test.go | 22 +- x/auth/genesis.go | 6 +- x/auth/keeper/account.go | 4 +- x/auth/keeper/grpc_query.go | 10 +- x/auth/keeper/grpc_query_test.go | 6 +- x/auth/keeper/integration_test.go | 6 +- x/auth/keeper/keeper.go | 12 +- x/auth/keeper/keeper_bench_test.go | 2 +- x/auth/keeper/keeper_test.go | 10 +- x/auth/keeper/migrations.go | 6 +- x/auth/keeper/params.go | 4 +- x/auth/keeper/querier.go | 8 +- x/auth/keeper/querier_test.go | 8 +- x/auth/legacy/legacytx/amino_signing.go | 12 +- x/auth/legacy/legacytx/amino_signing_test.go | 10 +- x/auth/legacy/legacytx/codec.go | 2 +- x/auth/legacy/legacytx/config_test.go | 12 +- x/auth/legacy/legacytx/stdsig_test.go | 4 +- x/auth/legacy/legacytx/stdsign.go | 16 +- x/auth/legacy/legacytx/stdsignmsg.go | 4 +- x/auth/legacy/legacytx/stdtx.go | 14 +- x/auth/legacy/legacytx/stdtx_builder.go | 12 +- x/auth/legacy/legacytx/stdtx_test.go | 20 +- x/auth/legacy/v034/types.go | 2 +- x/auth/legacy/v038/types.go | 12 +- x/auth/legacy/v039/types.go | 14 +- x/auth/legacy/v040/migrate.go | 10 +- x/auth/legacy/v040/migrate_test.go | 16 +- x/auth/legacy/v043/store.go | 24 +- x/auth/legacy/v043/store_test.go | 18 +- x/auth/module.go | 22 +- x/auth/module_test.go | 4 +- x/auth/signing/handler_map.go | 4 +- x/auth/signing/handler_map_test.go | 12 +- x/auth/signing/sig_verifiable_tx.go | 6 +- x/auth/signing/sign_mode_handler.go | 4 +- x/auth/signing/verify.go | 8 +- x/auth/signing/verify_test.go | 22 +- x/auth/simulation/decoder.go | 6 +- x/auth/simulation/decoder_test.go | 12 +- x/auth/simulation/genesis.go | 10 +- x/auth/simulation/genesis_test.go | 12 +- x/auth/simulation/params.go | 6 +- x/auth/simulation/params_test.go | 2 +- x/auth/spec/03_antehandlers.md | 2 +- x/auth/spec/05_vesting.md | 10 +- x/auth/testutil/suite.go | 16 +- x/auth/tx/builder.go | 18 +- x/auth/tx/builder_test.go | 16 +- x/auth/tx/config.go | 10 +- x/auth/tx/config_test.go | 12 +- x/auth/tx/decoder.go | 10 +- x/auth/tx/direct.go | 8 +- x/auth/tx/direct_test.go | 14 +- x/auth/tx/encode_decode_test.go | 14 +- x/auth/tx/encoder.go | 6 +- x/auth/tx/legacy_amino_json.go | 10 +- x/auth/tx/legacy_amino_json_test.go | 12 +- x/auth/tx/mode_handler.go | 4 +- x/auth/tx/query.go | 10 +- x/auth/tx/service.go | 12 +- x/auth/tx/service_test.go | 48 +- x/auth/tx/sigs.go | 10 +- x/auth/tx/sigs_test.go | 4 +- x/auth/types/account.go | 8 +- x/auth/types/account_retriever.go | 6 +- x/auth/types/account_retriever_test.go | 4 +- x/auth/types/account_test.go | 8 +- x/auth/types/auth.pb.go | 2 +- x/auth/types/codec.go | 8 +- x/auth/types/common_test.go | 2 +- x/auth/types/expected_keepers.go | 2 +- x/auth/types/genesis.go | 6 +- x/auth/types/genesis.pb.go | 2 +- x/auth/types/genesis_test.go | 8 +- x/auth/types/keys.go | 2 +- x/auth/types/params.go | 2 +- x/auth/types/params_test.go | 2 +- x/auth/types/permissions.go | 2 +- x/auth/types/query.go | 2 +- x/auth/types/query.pb.go | 4 +- x/auth/vesting/client/cli/tx.go | 10 +- x/auth/vesting/client/testutil/cli_test.go | 2 +- x/auth/vesting/client/testutil/suite.go | 10 +- x/auth/vesting/exported/exported.go | 4 +- x/auth/vesting/handler.go | 8 +- x/auth/vesting/handler_test.go | 8 +- x/auth/vesting/module.go | 16 +- x/auth/vesting/msg_server.go | 12 +- x/auth/vesting/types/codec.go | 12 +- x/auth/vesting/types/common_test.go | 2 +- x/auth/vesting/types/expected_keepers.go | 2 +- x/auth/vesting/types/genesis_test.go | 6 +- x/auth/vesting/types/msgs.go | 4 +- x/auth/vesting/types/test_common.go | 8 +- x/auth/vesting/types/tx.pb.go | 6 +- x/auth/vesting/types/vesting.pb.go | 14 +- x/auth/vesting/types/vesting_account.go | 8 +- x/auth/vesting/types/vesting_account_test.go | 10 +- x/authz/authorization_grant.go | 4 +- x/authz/authorization_grant_test.go | 2 +- x/authz/authorizations.go | 2 +- x/authz/authz.pb.go | 2 +- x/authz/client/cli/query.go | 12 +- x/authz/client/cli/tx.go | 18 +- x/authz/client/rest/grpc_query_test.go | 24 +- x/authz/client/testutil/cli_test.go | 2 +- x/authz/client/testutil/query.go | 10 +- x/authz/client/testutil/test_helpers.go | 8 +- x/authz/client/testutil/tx.go | 28 +- x/authz/codec.go | 6 +- x/authz/errors.go | 2 +- x/authz/expected_keepers.go | 4 +- x/authz/generic_authorization.go | 2 +- x/authz/generic_authorization_test.go | 4 +- x/authz/genesis.go | 2 +- x/authz/genesis.pb.go | 2 +- x/authz/keeper/genesis_test.go | 10 +- x/authz/keeper/grpc_query.go | 12 +- x/authz/keeper/grpc_query_test.go | 6 +- x/authz/keeper/keeper.go | 12 +- x/authz/keeper/keeper_test.go | 12 +- x/authz/keeper/keys.go | 8 +- x/authz/keeper/keys_test.go | 8 +- x/authz/keeper/msg_server.go | 6 +- x/authz/module/module.go | 22 +- x/authz/msgs.go | 10 +- x/authz/msgs_test.go | 8 +- x/authz/query.pb.go | 2 +- x/authz/simulation/decoder.go | 8 +- x/authz/simulation/decoder_test.go | 14 +- x/authz/simulation/genesis.go | 14 +- x/authz/simulation/genesis_test.go | 10 +- x/authz/simulation/operations.go | 28 +- x/authz/simulation/operations_test.go | 12 +- x/authz/spec/01_concepts.md | 10 +- x/authz/spec/02_state.md | 2 +- x/authz/spec/03_messages.md | 6 +- x/authz/tx.pb.go | 4 +- x/bank/app_test.go | 12 +- x/bank/atlas/atlas-v0.39.1.md | 2 +- x/bank/atlas/atlas.toml | 6 +- x/bank/bench_test.go | 12 +- x/bank/client/cli/query.go | 10 +- x/bank/client/cli/tx.go | 10 +- x/bank/client/rest/grpc_query_test.go | 12 +- x/bank/client/rest/query.go | 8 +- x/bank/client/rest/query_test.go | 10 +- x/bank/client/rest/rest.go | 4 +- x/bank/client/rest/tx.go | 10 +- x/bank/client/rest/tx_test.go | 18 +- x/bank/client/testutil/cli_helpers.go | 8 +- x/bank/client/testutil/cli_test.go | 2 +- x/bank/client/testutil/suite.go | 16 +- x/bank/exported/exported.go | 2 +- x/bank/handler.go | 8 +- x/bank/handler_test.go | 20 +- x/bank/keeper/genesis.go | 6 +- x/bank/keeper/genesis_test.go | 8 +- x/bank/keeper/grpc_query.go | 8 +- x/bank/keeper/grpc_query_test.go | 12 +- x/bank/keeper/invariants.go | 6 +- x/bank/keeper/keeper.go | 18 +- x/bank/keeper/keeper_test.go | 22 +- x/bank/keeper/migrations.go | 4 +- x/bank/keeper/msg_server.go | 8 +- x/bank/keeper/querier.go | 8 +- x/bank/keeper/querier_test.go | 14 +- x/bank/keeper/send.go | 12 +- x/bank/keeper/view.go | 14 +- x/bank/legacy/v036/types.go | 2 +- x/bank/legacy/v040/keys.go | 6 +- x/bank/legacy/v040/migrate.go | 8 +- x/bank/legacy/v040/migrate_test.go | 16 +- x/bank/legacy/v040/types.go | 6 +- x/bank/legacy/v043/json.go | 6 +- x/bank/legacy/v043/json_test.go | 10 +- x/bank/legacy/v043/store.go | 16 +- x/bank/legacy/v043/store_test.go | 16 +- x/bank/module.go | 26 +- x/bank/simulation/genesis.go | 6 +- x/bank/simulation/genesis_test.go | 12 +- x/bank/simulation/operations.go | 22 +- x/bank/simulation/operations_test.go | 12 +- x/bank/simulation/params.go | 6 +- x/bank/simulation/params_test.go | 2 +- x/bank/spec/03_messages.md | 4 +- x/bank/types/authz.pb.go | 6 +- x/bank/types/balance.go | 8 +- x/bank/types/balance_test.go | 6 +- x/bank/types/bank.pb.go | 10 +- x/bank/types/codec.go | 12 +- x/bank/types/errors.go | 2 +- x/bank/types/events.go | 2 +- x/bank/types/expected_keepers.go | 4 +- x/bank/types/genesis.go | 4 +- x/bank/types/genesis.pb.go | 8 +- x/bank/types/genesis_test.go | 2 +- x/bank/types/key.go | 4 +- x/bank/types/key_test.go | 6 +- x/bank/types/metadata.go | 2 +- x/bank/types/metadata_test.go | 4 +- x/bank/types/msgs.go | 4 +- x/bank/types/msgs_test.go | 2 +- x/bank/types/params.go | 4 +- x/bank/types/params_test.go | 2 +- x/bank/types/querier.go | 4 +- x/bank/types/query.pb.go | 10 +- x/bank/types/send_authorization.go | 6 +- x/bank/types/send_authorization_test.go | 6 +- x/bank/types/tx.pb.go | 6 +- x/capability/abci.go | 8 +- x/capability/capability_test.go | 18 +- x/capability/genesis.go | 6 +- x/capability/genesis_test.go | 14 +- x/capability/keeper/keeper.go | 12 +- x/capability/keeper/keeper_test.go | 12 +- x/capability/module.go | 20 +- x/capability/simulation/decoder.go | 8 +- x/capability/simulation/decoder_test.go | 10 +- x/capability/simulation/genesis.go | 4 +- x/capability/simulation/genesis_test.go | 12 +- x/capability/types/errors.go | 2 +- x/capability/types/keys.go | 2 +- x/capability/types/keys_test.go | 2 +- x/capability/types/types.go | 2 +- x/capability/types/types_test.go | 2 +- x/crisis/abci.go | 8 +- x/crisis/client/cli/tx.go | 8 +- x/crisis/client/testsuite/cli_test.go | 2 +- x/crisis/client/testsuite/suite.go | 10 +- x/crisis/handler.go | 6 +- x/crisis/handler_test.go | 14 +- x/crisis/keeper/genesis.go | 4 +- x/crisis/keeper/keeper.go | 6 +- x/crisis/keeper/keeper_test.go | 4 +- x/crisis/keeper/msg_server.go | 4 +- x/crisis/keeper/params.go | 4 +- x/crisis/legacy/v039/types.go | 2 +- x/crisis/legacy/v040/migrate.go | 4 +- x/crisis/module.go | 18 +- x/crisis/spec/02_messages.md | 2 +- x/crisis/types/codec.go | 10 +- x/crisis/types/errors.go | 2 +- x/crisis/types/expected_keepers.go | 2 +- x/crisis/types/genesis.go | 2 +- x/crisis/types/genesis.pb.go | 2 +- x/crisis/types/msgs.go | 2 +- x/crisis/types/params.go | 4 +- x/crisis/types/route.go | 2 +- x/distribution/abci.go | 10 +- x/distribution/client/cli/query.go | 10 +- x/distribution/client/cli/tx.go | 14 +- x/distribution/client/cli/tx_test.go | 12 +- x/distribution/client/cli/utils.go | 4 +- x/distribution/client/common/common.go | 6 +- x/distribution/client/common/common_test.go | 4 +- x/distribution/client/proposal_handler.go | 6 +- x/distribution/client/rest/grpc_query_test.go | 14 +- 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 +- x/distribution/client/testutil/cli_test.go | 2 +- x/distribution/client/testutil/helpers.go | 4 +- x/distribution/client/testutil/suite.go | 14 +- x/distribution/handler.go | 10 +- x/distribution/keeper/alias_functions.go | 6 +- x/distribution/keeper/allocation.go | 12 +- x/distribution/keeper/allocation_test.go | 10 +- x/distribution/keeper/common_test.go | 8 +- x/distribution/keeper/delegation.go | 6 +- x/distribution/keeper/delegation_test.go | 10 +- x/distribution/keeper/fee_pool.go | 4 +- x/distribution/keeper/genesis.go | 4 +- x/distribution/keeper/grpc_query.go | 12 +- x/distribution/keeper/grpc_query_test.go | 16 +- x/distribution/keeper/hooks.go | 6 +- x/distribution/keeper/invariants.go | 6 +- x/distribution/keeper/keeper.go | 10 +- x/distribution/keeper/keeper_test.go | 6 +- x/distribution/keeper/migrations.go | 4 +- x/distribution/keeper/msg_server.go | 6 +- x/distribution/keeper/params.go | 4 +- x/distribution/keeper/proposal_handler.go | 6 +- x/distribution/keeper/querier.go | 10 +- x/distribution/keeper/querier_test.go | 18 +- x/distribution/keeper/store.go | 4 +- x/distribution/keeper/validator.go | 6 +- x/distribution/legacy/v034/types.go | 2 +- x/distribution/legacy/v036/types.go | 10 +- x/distribution/legacy/v038/types.go | 6 +- x/distribution/legacy/v040/keys.go | 6 +- x/distribution/legacy/v040/migrate.go | 4 +- x/distribution/legacy/v043/helpers.go | 8 +- x/distribution/legacy/v043/store.go | 4 +- x/distribution/legacy/v043/store_test.go | 12 +- x/distribution/module.go | 24 +- x/distribution/module_test.go | 6 +- x/distribution/proposal_handler_test.go | 10 +- x/distribution/simulation/decoder.go | 8 +- x/distribution/simulation/decoder_test.go | 12 +- x/distribution/simulation/genesis.go | 6 +- x/distribution/simulation/genesis_test.go | 14 +- x/distribution/simulation/operations.go | 18 +- x/distribution/simulation/operations_test.go | 16 +- x/distribution/simulation/params.go | 6 +- x/distribution/simulation/params_test.go | 2 +- x/distribution/simulation/proposals.go | 12 +- x/distribution/simulation/proposals_test.go | 10 +- x/distribution/spec/02_state.md | 2 +- x/distribution/spec/04_messages.md | 4 +- x/distribution/spec/README.md | 2 +- x/distribution/types/codec.go | 12 +- x/distribution/types/common_test.go | 6 +- x/distribution/types/delegator.go | 2 +- x/distribution/types/distribution.pb.go | 28 +- x/distribution/types/errors.go | 2 +- x/distribution/types/expected_keepers.go | 8 +- x/distribution/types/fee_pool.go | 2 +- x/distribution/types/fee_pool_test.go | 4 +- x/distribution/types/genesis.go | 2 +- x/distribution/types/genesis.pb.go | 6 +- x/distribution/types/keys.go | 4 +- x/distribution/types/msg.go | 4 +- x/distribution/types/msg_test.go | 2 +- x/distribution/types/params.go | 4 +- x/distribution/types/params_internal_test.go | 2 +- x/distribution/types/params_test.go | 4 +- x/distribution/types/proposal.go | 4 +- x/distribution/types/querier.go | 2 +- x/distribution/types/query.go | 2 +- x/distribution/types/query.pb.go | 12 +- x/distribution/types/tx.pb.go | 6 +- x/distribution/types/validator.go | 2 +- x/evidence/abci.go | 8 +- x/evidence/atlas/atlas-v0.41.x.md | 8 +- x/evidence/atlas/manifest.toml | 6 +- x/evidence/client/cli/query.go | 10 +- x/evidence/client/cli/tx.go | 4 +- x/evidence/client/evidence_handler.go | 4 +- x/evidence/client/rest/query.go | 6 +- x/evidence/client/rest/rest.go | 4 +- x/evidence/client/rest/tx.go | 2 +- x/evidence/client/testutil/cli_test.go | 2 +- x/evidence/client/testutil/suite.go | 6 +- x/evidence/exported/evidence.go | 2 +- x/evidence/genesis.go | 10 +- x/evidence/genesis_test.go | 14 +- x/evidence/handler.go | 8 +- x/evidence/handler_test.go | 14 +- x/evidence/keeper/grpc_query.go | 10 +- x/evidence/keeper/grpc_query_test.go | 8 +- x/evidence/keeper/infraction.go | 4 +- x/evidence/keeper/infraction_test.go | 8 +- x/evidence/keeper/keeper.go | 12 +- x/evidence/keeper/keeper_test.go | 22 +- x/evidence/keeper/msg_server.go | 4 +- x/evidence/keeper/querier.go | 12 +- x/evidence/keeper/querier_test.go | 6 +- x/evidence/legacy/v038/types.go | 4 +- x/evidence/legacy/v040/migrate.go | 6 +- x/evidence/legacy/v040/migrate_test.go | 10 +- x/evidence/module.go | 24 +- x/evidence/simulation/decoder.go | 6 +- x/evidence/simulation/decoder_test.go | 12 +- x/evidence/simulation/genesis.go | 8 +- x/evidence/simulation/genesis_test.go | 12 +- x/evidence/types/codec.go | 12 +- x/evidence/types/errors.go | 2 +- x/evidence/types/evidence.go | 4 +- x/evidence/types/evidence_test.go | 4 +- x/evidence/types/expected_keepers.go | 6 +- x/evidence/types/genesis.go | 4 +- x/evidence/types/genesis.pb.go | 2 +- x/evidence/types/genesis_test.go | 10 +- x/evidence/types/msgs.go | 8 +- x/evidence/types/msgs_test.go | 8 +- x/evidence/types/querier.go | 2 +- x/evidence/types/query.pb.go | 4 +- x/evidence/types/router.go | 4 +- x/evidence/types/router_test.go | 6 +- x/evidence/types/tx.pb.go | 2 +- x/feegrant/basic_fee.go | 4 +- x/feegrant/basic_fee_test.go | 6 +- x/feegrant/client/cli/query.go | 10 +- x/feegrant/client/cli/tx.go | 12 +- x/feegrant/client/testutil/cli_test.go | 2 +- x/feegrant/client/testutil/suite.go | 24 +- x/feegrant/codec.go | 6 +- x/feegrant/errors.go | 2 +- x/feegrant/expected_keepers.go | 4 +- x/feegrant/feegrant.pb.go | 12 +- x/feegrant/fees.go | 2 +- x/feegrant/filtered_fee.go | 8 +- x/feegrant/genesis.go | 2 +- x/feegrant/grant.go | 6 +- x/feegrant/grant_test.go | 6 +- x/feegrant/keeper/genesis_test.go | 14 +- x/feegrant/keeper/grpc_query.go | 10 +- x/feegrant/keeper/grpc_query_test.go | 4 +- x/feegrant/keeper/keeper.go | 10 +- x/feegrant/keeper/keeper_test.go | 8 +- x/feegrant/keeper/msg_server.go | 6 +- x/feegrant/keeper/msg_server_test.go | 4 +- x/feegrant/key.go | 4 +- x/feegrant/module/module.go | 22 +- x/feegrant/msgs.go | 10 +- x/feegrant/msgs_test.go | 8 +- x/feegrant/periodic_fee.go | 4 +- x/feegrant/periodic_fee_test.go | 6 +- x/feegrant/query.pb.go | 2 +- x/feegrant/simulation/decoder.go | 6 +- x/feegrant/simulation/decoder_test.go | 12 +- x/feegrant/simulation/genesis.go | 8 +- x/feegrant/simulation/genesis_test.go | 10 +- x/feegrant/simulation/operations.go | 16 +- x/feegrant/simulation/operations_test.go | 12 +- x/feegrant/spec/01_concepts.md | 16 +- x/feegrant/spec/02_state.md | 2 +- x/feegrant/spec/03_messages.md | 4 +- x/feegrant/spec/README.md | 2 +- x/feegrant/tx.pb.go | 2 +- x/genutil/client/cli/collect.go | 10 +- x/genutil/client/cli/gentx.go | 28 +- x/genutil/client/cli/init.go | 14 +- x/genutil/client/cli/init_test.go | 24 +- x/genutil/client/cli/migrate.go | 16 +- x/genutil/client/cli/validate_genesis.go | 6 +- x/genutil/client/rest/query.go | 8 +- x/genutil/client/testutil/cli_test.go | 2 +- x/genutil/client/testutil/helpers.go | 12 +- x/genutil/client/testutil/migrate.go | 6 +- x/genutil/client/testutil/suite.go | 20 +- x/genutil/client/testutil/validate_genesis.go | 6 +- x/genutil/collect.go | 12 +- x/genutil/collect_test.go | 16 +- x/genutil/genesis.go | 6 +- x/genutil/gentx.go | 12 +- x/genutil/gentx_test.go | 20 +- x/genutil/legacy/v040/migrate.go | 52 +- x/genutil/legacy/v043/migrate.go | 16 +- x/genutil/module.go | 12 +- x/genutil/types/expected_keepers.go | 8 +- x/genutil/types/genesis_state.go | 8 +- x/genutil/types/genesis_state_test.go | 16 +- x/genutil/types/types.go | 4 +- x/genutil/utils.go | 4 +- x/gov/abci.go | 8 +- x/gov/abci_test.go | 10 +- x/gov/client/cli/parse.go | 2 +- x/gov/client/cli/parse_test.go | 2 +- x/gov/client/cli/query.go | 12 +- x/gov/client/cli/tx.go | 14 +- x/gov/client/proposal_handler.go | 4 +- x/gov/client/rest/grpc_query_test.go | 16 +- x/gov/client/rest/query.go | 10 +- x/gov/client/rest/rest.go | 8 +- x/gov/client/rest/rest_test.go | 6 +- x/gov/client/rest/tx.go | 10 +- x/gov/client/testutil/cli_test.go | 6 +- x/gov/client/testutil/deposits.go | 10 +- x/gov/client/testutil/helpers.go | 12 +- x/gov/client/testutil/suite.go | 14 +- x/gov/client/utils/query.go | 10 +- x/gov/client/utils/query_test.go | 12 +- x/gov/client/utils/utils.go | 2 +- x/gov/client/utils/utils_test.go | 2 +- x/gov/common_test.go | 10 +- x/gov/genesis.go | 6 +- x/gov/genesis_test.go | 14 +- x/gov/handler.go | 8 +- x/gov/handler_test.go | 8 +- x/gov/keeper/common_test.go | 12 +- x/gov/keeper/deposit.go | 6 +- x/gov/keeper/deposit_test.go | 4 +- x/gov/keeper/grpc_query.go | 8 +- x/gov/keeper/grpc_query_test.go | 8 +- x/gov/keeper/hooks.go | 4 +- x/gov/keeper/hooks_test.go | 10 +- x/gov/keeper/internal_test.go | 2 +- x/gov/keeper/invariants.go | 4 +- x/gov/keeper/keeper.go | 8 +- x/gov/keeper/keeper_test.go | 8 +- x/gov/keeper/migrations.go | 4 +- x/gov/keeper/msg_server.go | 6 +- x/gov/keeper/params.go | 4 +- x/gov/keeper/proposal.go | 8 +- x/gov/keeper/proposal_test.go | 4 +- x/gov/keeper/querier.go | 10 +- x/gov/keeper/querier_test.go | 10 +- x/gov/keeper/tally.go | 6 +- x/gov/keeper/tally_test.go | 10 +- x/gov/keeper/vote.go | 6 +- x/gov/keeper/vote_test.go | 6 +- x/gov/legacy/v034/types.go | 4 +- x/gov/legacy/v036/types.go | 6 +- x/gov/legacy/v040/keys.go | 6 +- x/gov/legacy/v040/migrate.go | 20 +- x/gov/legacy/v040/migrate_test.go | 16 +- x/gov/legacy/v043/json.go | 2 +- x/gov/legacy/v043/json_test.go | 10 +- x/gov/legacy/v043/store.go | 10 +- x/gov/legacy/v043/store_test.go | 14 +- x/gov/module.go | 24 +- x/gov/module_test.go | 6 +- x/gov/simulation/decoder.go | 6 +- x/gov/simulation/decoder_test.go | 12 +- x/gov/simulation/genesis.go | 8 +- x/gov/simulation/genesis_test.go | 14 +- x/gov/simulation/operations.go | 18 +- x/gov/simulation/operations_test.go | 14 +- x/gov/simulation/params.go | 8 +- x/gov/simulation/params_test.go | 2 +- x/gov/simulation/proposals.go | 10 +- x/gov/simulation/proposals_test.go | 8 +- x/gov/spec/01_concepts.md | 4 +- x/gov/spec/02_state.md | 10 +- x/gov/spec/03_messages.md | 6 +- x/gov/types/codec.go | 10 +- x/gov/types/content.go | 6 +- x/gov/types/deposit.go | 2 +- x/gov/types/errors.go | 2 +- x/gov/types/expected_keepers.go | 8 +- x/gov/types/genesis.go | 4 +- x/gov/types/gov.pb.go | 28 +- x/gov/types/hooks.go | 2 +- x/gov/types/keys.go | 4 +- x/gov/types/keys_test.go | 4 +- x/gov/types/msgs.go | 6 +- x/gov/types/msgs_test.go | 2 +- x/gov/types/params.go | 4 +- x/gov/types/proposal.go | 6 +- x/gov/types/querier.go | 2 +- x/gov/types/query.pb.go | 2 +- x/gov/types/router.go | 2 +- x/gov/types/tally.go | 2 +- x/gov/types/tx.pb.go | 10 +- x/gov/types/vote.go | 2 +- x/mint/abci.go | 8 +- x/mint/client/cli/query.go | 6 +- x/mint/client/rest/grpc_query_test.go | 10 +- x/mint/client/rest/query.go | 6 +- x/mint/client/rest/rest.go | 4 +- x/mint/client/testutil/cli_test.go | 2 +- x/mint/client/testutil/suite.go | 12 +- x/mint/genesis.go | 6 +- x/mint/keeper/grpc_query.go | 4 +- x/mint/keeper/grpc_query_test.go | 8 +- x/mint/keeper/integration_test.go | 6 +- x/mint/keeper/keeper.go | 8 +- x/mint/keeper/querier.go | 8 +- x/mint/keeper/querier_test.go | 8 +- x/mint/legacy/v039/types.go | 2 +- x/mint/legacy/v040/migrate.go | 4 +- x/mint/module.go | 22 +- x/mint/module_test.go | 6 +- x/mint/simulation/decoder.go | 6 +- x/mint/simulation/decoder_test.go | 10 +- x/mint/simulation/genesis.go | 6 +- x/mint/simulation/genesis_test.go | 14 +- x/mint/simulation/params.go | 6 +- x/mint/simulation/params_test.go | 2 +- x/mint/spec/02_state.md | 4 +- x/mint/types/codec.go | 4 +- x/mint/types/expected_keepers.go | 6 +- x/mint/types/mint.pb.go | 14 +- x/mint/types/minter.go | 2 +- x/mint/types/minter_test.go | 2 +- x/mint/types/params.go | 4 +- x/mint/types/query.pb.go | 6 +- x/params/client/cli/query.go | 8 +- x/params/client/cli/tx.go | 14 +- x/params/client/cli/tx_test.go | 6 +- x/params/client/proposal_handler.go | 6 +- x/params/client/rest/grpc_query_test.go | 6 +- x/params/client/rest/rest.go | 14 +- x/params/client/testutil/cli_test.go | 2 +- x/params/client/testutil/suite.go | 6 +- x/params/client/utils/utils.go | 8 +- x/params/keeper/common_test.go | 10 +- x/params/keeper/consensus_params.go | 4 +- x/params/keeper/grpc_query.go | 6 +- x/params/keeper/grpc_query_test.go | 6 +- x/params/keeper/keeper.go | 8 +- x/params/keeper/keeper_test.go | 12 +- x/params/keeper/querier.go | 10 +- x/params/legacy/v036/types.go | 4 +- x/params/module.go | 22 +- x/params/proposal_handler.go | 10 +- x/params/proposal_handler_test.go | 12 +- x/params/simulation/operations.go | 6 +- x/params/simulation/operations_test.go | 8 +- x/params/simulation/proposals.go | 6 +- x/params/simulation/proposals_test.go | 10 +- x/params/types/common_test.go | 4 +- x/params/types/proposal/codec.go | 6 +- x/params/types/proposal/errors.go | 2 +- x/params/types/proposal/proposal.go | 2 +- x/params/types/subspace.go | 6 +- x/params/types/subspace_test.go | 10 +- x/params/types/table.go | 2 +- x/params/types/table_test.go | 2 +- x/simulation/doc.go | 10 +- x/simulation/expected_keepers.go | 4 +- x/simulation/operation.go | 2 +- x/simulation/params.go | 6 +- x/simulation/params_test.go | 4 +- x/simulation/simulate.go | 8 +- x/simulation/transition_matrix.go | 2 +- x/simulation/util.go | 12 +- x/slashing/abci.go | 8 +- x/slashing/abci_test.go | 12 +- x/slashing/app_test.go | 16 +- x/slashing/client/cli/query.go | 10 +- x/slashing/client/cli/tx.go | 10 +- x/slashing/client/rest/grpc_query_test.go | 12 +- x/slashing/client/rest/query.go | 8 +- x/slashing/client/rest/rest.go | 4 +- x/slashing/client/rest/tx.go | 10 +- x/slashing/client/testutil/cli_test.go | 2 +- x/slashing/client/testutil/suite.go | 10 +- x/slashing/genesis.go | 8 +- x/slashing/genesis_test.go | 10 +- x/slashing/handler.go | 8 +- x/slashing/handler_test.go | 20 +- x/slashing/init_test.go | 2 +- x/slashing/keeper/common_test.go | 2 +- x/slashing/keeper/grpc_query.go | 8 +- x/slashing/keeper/grpc_query_test.go | 16 +- x/slashing/keeper/hooks.go | 4 +- x/slashing/keeper/infractions.go | 6 +- x/slashing/keeper/keeper.go | 8 +- x/slashing/keeper/keeper_test.go | 12 +- x/slashing/keeper/migrations.go | 4 +- x/slashing/keeper/msg_server.go | 4 +- x/slashing/keeper/params.go | 4 +- x/slashing/keeper/querier.go | 10 +- x/slashing/keeper/querier_test.go | 10 +- x/slashing/keeper/signing_info.go | 4 +- x/slashing/keeper/signing_info_test.go | 6 +- x/slashing/keeper/unjail.go | 6 +- x/slashing/legacy/v039/types.go | 2 +- x/slashing/legacy/v040/keys.go | 6 +- x/slashing/legacy/v040/migrate.go | 4 +- x/slashing/legacy/v040/migrate_test.go | 10 +- x/slashing/legacy/v043/store.go | 6 +- x/slashing/legacy/v043/store_test.go | 12 +- x/slashing/module.go | 24 +- x/slashing/simulation/decoder.go | 8 +- x/slashing/simulation/decoder_test.go | 12 +- x/slashing/simulation/genesis.go | 8 +- x/slashing/simulation/genesis_test.go | 14 +- x/slashing/simulation/operations.go | 20 +- x/slashing/simulation/operations_test.go | 18 +- x/slashing/simulation/params.go | 6 +- x/slashing/simulation/params_test.go | 2 +- x/slashing/spec/02_state.md | 2 +- x/slashing/spec/07_tombstone.md | 2 +- x/slashing/testslashing/params.go | 2 +- x/slashing/types/codec.go | 10 +- x/slashing/types/errors.go | 2 +- x/slashing/types/expected_keepers.go | 8 +- x/slashing/types/genesis.go | 2 +- x/slashing/types/keys.go | 4 +- x/slashing/types/msg.go | 2 +- x/slashing/types/msg_test.go | 2 +- x/slashing/types/params.go | 4 +- x/slashing/types/query.pb.go | 2 +- x/slashing/types/signing_info.go | 4 +- x/slashing/types/slashing.pb.go | 8 +- x/staking/abci.go | 8 +- x/staking/app_test.go | 10 +- x/staking/bench_test.go | 10 +- x/staking/client/cli/flags.go | 2 +- x/staking/client/cli/query.go | 10 +- x/staking/client/cli/tx.go | 16 +- x/staking/client/cli/tx_test.go | 4 +- x/staking/client/cli/utils.go | 4 +- x/staking/client/rest/grpc_query_test.go | 24 +- x/staking/client/rest/query.go | 10 +- x/staking/client/rest/rest.go | 4 +- x/staking/client/rest/rest_test.go | 4 +- x/staking/client/rest/tx.go | 10 +- x/staking/client/rest/utils.go | 10 +- x/staking/client/testutil/cli_test.go | 2 +- x/staking/client/testutil/suite.go | 24 +- x/staking/client/testutil/test_helpers.go | 12 +- x/staking/common_test.go | 14 +- x/staking/genesis.go | 10 +- x/staking/genesis_test.go | 14 +- x/staking/handler.go | 8 +- x/staking/handler_test.go | 22 +- x/staking/keeper/alias_functions.go | 4 +- x/staking/keeper/common_test.go | 10 +- x/staking/keeper/delegation.go | 6 +- x/staking/keeper/delegation_test.go | 10 +- x/staking/keeper/grpc_query.go | 8 +- x/staking/keeper/grpc_query_test.go | 12 +- x/staking/keeper/historical_info.go | 4 +- x/staking/keeper/historical_info_test.go | 8 +- x/staking/keeper/hooks.go | 4 +- x/staking/keeper/invariants.go | 4 +- x/staking/keeper/keeper.go | 8 +- x/staking/keeper/keeper_test.go | 10 +- x/staking/keeper/migrations.go | 4 +- x/staking/keeper/msg_server.go | 10 +- x/staking/keeper/params.go | 6 +- x/staking/keeper/pool.go | 6 +- x/staking/keeper/power_reduction.go | 2 +- x/staking/keeper/power_reduction_test.go | 2 +- x/staking/keeper/querier.go | 10 +- x/staking/keeper/querier_test.go | 12 +- x/staking/keeper/query_utils.go | 4 +- x/staking/keeper/slash.go | 6 +- x/staking/keeper/slash_test.go | 14 +- x/staking/keeper/test_common.go | 4 +- x/staking/keeper/val_state_change.go | 4 +- x/staking/keeper/validator.go | 4 +- x/staking/keeper/validator_test.go | 12 +- x/staking/legacy/v034/types.go | 8 +- x/staking/legacy/v036/types.go | 10 +- x/staking/legacy/v038/types.go | 12 +- x/staking/legacy/v040/genesis.pb.go | 6 +- x/staking/legacy/v040/keys.go | 8 +- x/staking/legacy/v040/migrate.go | 6 +- x/staking/legacy/v040/migrate_test.go | 12 +- x/staking/legacy/v040/staking.pb.go | 36 +- x/staking/legacy/v040/types.go | 2 +- x/staking/legacy/v043/store.go | 14 +- x/staking/legacy/v043/store_test.go | 14 +- x/staking/module.go | 22 +- x/staking/module_test.go | 6 +- x/staking/simulation/common_test.go | 2 +- x/staking/simulation/decoder.go | 8 +- x/staking/simulation/decoder_test.go | 16 +- x/staking/simulation/genesis.go | 8 +- x/staking/simulation/genesis_test.go | 14 +- x/staking/simulation/operations.go | 16 +- x/staking/simulation/operations_test.go | 18 +- x/staking/simulation/params.go | 6 +- x/staking/simulation/params_test.go | 2 +- x/staking/spec/01_state.md | 18 +- x/staking/spec/03_messages.md | 24 +- x/staking/teststaking/helper.go | 10 +- x/staking/teststaking/tm.go | 6 +- x/staking/teststaking/validator.go | 6 +- x/staking/types/authz.go | 8 +- x/staking/types/authz.pb.go | 4 +- x/staking/types/authz_test.go | 6 +- x/staking/types/codec.go | 12 +- x/staking/types/commission.go | 2 +- x/staking/types/commission_test.go | 4 +- x/staking/types/data_test.go | 8 +- x/staking/types/delegation.go | 4 +- x/staking/types/delegation_test.go | 6 +- x/staking/types/errors.go | 4 +- x/staking/types/expected_keepers.go | 6 +- x/staking/types/exported.go | 4 +- x/staking/types/genesis.go | 4 +- x/staking/types/genesis.pb.go | 4 +- x/staking/types/historical_info.go | 8 +- x/staking/types/historical_info_test.go | 4 +- x/staking/types/hooks.go | 2 +- x/staking/types/keys.go | 4 +- x/staking/types/keys_test.go | 6 +- x/staking/types/msg.go | 8 +- x/staking/types/msg_test.go | 14 +- x/staking/types/params.go | 6 +- x/staking/types/params_test.go | 2 +- x/staking/types/pool.go | 2 +- x/staking/types/querier.go | 2 +- x/staking/types/query.pb.go | 2 +- x/staking/types/staking.pb.go | 34 +- x/staking/types/tx.pb.go | 12 +- x/staking/types/validator.go | 12 +- x/staking/types/validator_test.go | 14 +- x/upgrade/abci.go | 8 +- x/upgrade/abci_test.go | 18 +- x/upgrade/client/cli/query.go | 8 +- x/upgrade/client/cli/tx.go | 14 +- x/upgrade/client/proposal_handler.go | 6 +- x/upgrade/client/rest/query.go | 6 +- x/upgrade/client/rest/rest.go | 4 +- x/upgrade/client/rest/tx.go | 14 +- x/upgrade/client/testutil/cli_test.go | 2 +- x/upgrade/client/testutil/suite.go | 12 +- x/upgrade/doc.go | 6 +- x/upgrade/handler.go | 10 +- x/upgrade/keeper/grpc_query.go | 6 +- x/upgrade/keeper/grpc_query_test.go | 10 +- x/upgrade/keeper/keeper.go | 16 +- x/upgrade/keeper/keeper_test.go | 12 +- x/upgrade/keeper/querier.go | 8 +- x/upgrade/legacy/v038/types.go | 8 +- x/upgrade/module.go | 18 +- x/upgrade/types/codec.go | 6 +- x/upgrade/types/handler.go | 4 +- x/upgrade/types/plan.go | 4 +- x/upgrade/types/plan_test.go | 6 +- x/upgrade/types/proposal.go | 2 +- x/upgrade/types/proposal_test.go | 8 +- x/upgrade/types/query.pb.go | 2 +- x/upgrade/types/storeloader.go | 6 +- x/upgrade/types/storeloader_test.go | 8 +- x/upgrade/types/upgrade.pb.go | 2 +- 1378 files changed, 6714 insertions(+), 6714 deletions(-) diff --git a/.deepsource.toml b/.deepsource.toml index 8b42c258ff02..88757308584e 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -17,4 +17,4 @@ name = "go" enabled = true [analyzers.meta] - import_paths = ["github.com/cosmos/cosmos-sdk"] \ No newline at end of file + import_paths = ["github.com/eligion/cosmos-sdk"] \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/module-readiness-checklist.md b/.github/ISSUE_TEMPLATE/module-readiness-checklist.md index 2d14413ad971..c7c33a01987b 100644 --- a/.github/ISSUE_TEMPLATE/module-readiness-checklist.md +++ b/.github/ISSUE_TEMPLATE/module-readiness-checklist.md @@ -16,7 +16,7 @@ The module **should not** be included in any Release Candidate tag until it has - [ ] API audit (at least 1 person) (@assignee) - [ ] Are Msg and Query methods and types well-named and organized? - - [ ] Is everything well documented (inline godoc as well as [`/spec/` folder](https://github.com/cosmos/cosmos-sdk/blob/master/docs/spec/SPEC-SPEC.md) in module directory) + - [ ] Is everything well documented (inline godoc as well as [`/spec/` folder](https://github.com/eligion/cosmos-sdk/blob/master/docs/spec/SPEC-SPEC.md) in module directory) - [ ] State machine audit (at least 2 people) (@assignee1, @assignee2) - [ ] Read through MsgServer code and verify correctness upon visual inspection - [ ] Ensure all state machine code which could be confusing is properly commented diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index dd537fce565b..03663228c68f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -23,10 +23,10 @@ I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [ ] added `!` to the type prefix if API or client breaking change -- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) +- [ ] targeted the correct branch (see [PR Targeting](https://github.com/eligion/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification -- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules) -- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) +- [ ] followed the guidelines for [building modules](https://github.com/eligion/cosmos-sdk/blob/master/docs/building-modules) +- [ ] included the necessary unit and integration [tests](https://github.com/eligion/cosmos-sdk/blob/master/CONTRIBUTING.md#testing) - [ ] added a changelog entry to `CHANGELOG.md` - [ ] included comments for [documenting Go code](https://blog.golang.org/godoc) - [ ] updated the relevant documentation or specification diff --git a/.github/PULL_REQUEST_TEMPLATE/docs.md b/.github/PULL_REQUEST_TEMPLATE/docs.md index e6a10d37eca0..1465ae6d491f 100644 --- a/.github/PULL_REQUEST_TEMPLATE/docs.md +++ b/.github/PULL_REQUEST_TEMPLATE/docs.md @@ -15,9 +15,9 @@ please add links to any relevant follow up issues.* I have... - [ ] included the correct `docs:` prefix in the PR title -- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) +- [ ] targeted the correct branch (see [PR Targeting](https://github.com/eligion/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification -- [ ] followed the [documentation writing guidelines](https://github.com/cosmos/cosmos-sdk/blob/master/docs/DOC_WRITING_GUIDELINES.md) +- [ ] followed the [documentation writing guidelines](https://github.com/eligion/cosmos-sdk/blob/master/docs/DOC_WRITING_GUIDELINES.md) - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed diff --git a/.github/PULL_REQUEST_TEMPLATE/other.md b/.github/PULL_REQUEST_TEMPLATE/other.md index f98b5a068efd..5ba25c687d7f 100644 --- a/.github/PULL_REQUEST_TEMPLATE/other.md +++ b/.github/PULL_REQUEST_TEMPLATE/other.md @@ -15,7 +15,7 @@ please add links to any relevant follow up issues.* I have... - [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title -- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) +- [ ] targeted the correct branch (see [PR Targeting](https://github.com/eligion/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting)) - [ ] provided a link to the relevant issue or specification - [ ] reviewed "Files changed" and left comments if necessary - [ ] confirmed all CI checks have passed diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a362db34cbb..0cfb2030652a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,673 +37,673 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] -## [v0.45.1](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.45.1) - 2022-02-03 +## [v0.45.1](https://github.com/eligion/cosmos-sdk/releases/tag/v0.45.1) - 2022-02-03 ### Bug Fixes -* (grpc) [\#10985](https://github.com/cosmos/cosmos-sdk/pull/10992) The `/cosmos/tx/v1beta1/txs/{hash}` endpoint returns a 404 when a tx does not exist. -* [\#10990](https://github.com/cosmos/cosmos-sdk/pull/10990) Fixes missing `iavl-cache-size` config parsing in `GetConfig` method. +* (grpc) [\#10985](https://github.com/eligion/cosmos-sdk/pull/10992) The `/cosmos/tx/v1beta1/txs/{hash}` endpoint returns a 404 when a tx does not exist. +* [\#10990](https://github.com/eligion/cosmos-sdk/pull/10990) Fixes missing `iavl-cache-size` config parsing in `GetConfig` method. ### Improvements -* [\#10407](https://github.com/cosmos/cosmos-sdk/pull/10407) Added validation to `x/upgrade` module's `BeginBlock` to check accidental binary downgrades -* [\#10768](https://github.com/cosmos/cosmos-sdk/pull/10768) Extra logging in in-place store migrations. +* [\#10407](https://github.com/eligion/cosmos-sdk/pull/10407) Added validation to `x/upgrade` module's `BeginBlock` to check accidental binary downgrades +* [\#10768](https://github.com/eligion/cosmos-sdk/pull/10768) Extra logging in in-place store migrations. -## [v0.45.0](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.45.0) - 2022-01-18 +## [v0.45.0](https://github.com/eligion/cosmos-sdk/releases/tag/v0.45.0) - 2022-01-18 ### State Machine Breaking -* [#10833](https://github.com/cosmos/cosmos-sdk/pull/10833) fix reported tx gas used when block gas limit exceeded. -* (auth) [\#10536](https://github.com/cosmos/cosmos-sdk/pull/10536]) Enable `SetSequence` for `ModuleAccount`. -* (store) [#10218](https://github.com/cosmos/cosmos-sdk/pull/10218) Charge gas even when there are no entries while seeking. -* (store) [#10247](https://github.com/cosmos/cosmos-sdk/pull/10247) Charge gas for the key length in gas meter. -* (x/gov) [\#10740](https://github.com/cosmos/cosmos-sdk/pull/10740) Increase maximum proposal description size from 5k characters to 10k characters. -* [#10814](https://github.com/cosmos/cosmos-sdk/pull/10814) revert tx when block gas limit exceeded. +* [#10833](https://github.com/eligion/cosmos-sdk/pull/10833) fix reported tx gas used when block gas limit exceeded. +* (auth) [\#10536](https://github.com/eligion/cosmos-sdk/pull/10536]) Enable `SetSequence` for `ModuleAccount`. +* (store) [#10218](https://github.com/eligion/cosmos-sdk/pull/10218) Charge gas even when there are no entries while seeking. +* (store) [#10247](https://github.com/eligion/cosmos-sdk/pull/10247) Charge gas for the key length in gas meter. +* (x/gov) [\#10740](https://github.com/eligion/cosmos-sdk/pull/10740) Increase maximum proposal description size from 5k characters to 10k characters. +* [#10814](https://github.com/eligion/cosmos-sdk/pull/10814) revert tx when block gas limit exceeded. ### API Breaking Changes -* [\#10561](https://github.com/cosmos/cosmos-sdk/pull/10561) The `CommitMultiStore` interface contains a new `SetIAVLCacheSize` method -* [\#10922](https://github.com/cosmos/cosmos-sdk/pull/10922), [/#10956](https://github.com/cosmos/cosmos-sdk/pull/10956) Deprecate key `server.Generate*` functions and move them to `testutil` and support custom mnemonics in in-process testing network. Moved `TestMnemonic` from `testutil` package to `testdata`. +* [\#10561](https://github.com/eligion/cosmos-sdk/pull/10561) The `CommitMultiStore` interface contains a new `SetIAVLCacheSize` method +* [\#10922](https://github.com/eligion/cosmos-sdk/pull/10922), [/#10956](https://github.com/eligion/cosmos-sdk/pull/10956) Deprecate key `server.Generate*` functions and move them to `testutil` and support custom mnemonics in in-process testing network. Moved `TestMnemonic` from `testutil` package to `testdata`. ### Features -* [\#10614](https://github.com/cosmos/cosmos-sdk/pull/10614) Support in-place migration ordering +* [\#10614](https://github.com/eligion/cosmos-sdk/pull/10614) Support in-place migration ordering ### Improvements -* [\#10486](https://github.com/cosmos/cosmos-sdk/pull/10486) store/cachekv's `Store.Write` conservatively +* [\#10486](https://github.com/eligion/cosmos-sdk/pull/10486) store/cachekv's `Store.Write` conservatively looks up keys, but also uses the [map clearing idiom](https://bencher.orijtech.com/perfclinic/mapclearing/) to reduce the RAM usage, CPU time usage, and garbage collection pressure from clearing maps, instead of allocating new maps. -* (store) [\#10741](https://github.com/cosmos/cosmos-sdk/pull/10741) Significantly speedup iterator creation after delete heavy workloads. Significantly improves IBC migration times. -* (module) [\#10711](https://github.com/cosmos/cosmos-sdk/pull/10711) Panic at startup if the app developer forgot to add modules in the `SetOrder{BeginBlocker, EndBlocker, InitGenesis, ExportGenesis}` functions. This means that all modules, even those who have empty implementations for those methods, need to be added to `SetOrder*`. -* (types) [\#10076](https://github.com/cosmos/cosmos-sdk/pull/10076) Significantly speedup and lower allocations for `Coins.String()`. -* (auth) [\#10022](https://github.com/cosmos/cosmos-sdk/pull/10022) `AuthKeeper` interface in `x/auth` now includes a function `HasAccount`. -* [\#10393](https://github.com/cosmos/cosmos-sdk/pull/10393) Add `HasSupply` method to bank keeper to ensure that input denom actually exists on chain. +* (store) [\#10741](https://github.com/eligion/cosmos-sdk/pull/10741) Significantly speedup iterator creation after delete heavy workloads. Significantly improves IBC migration times. +* (module) [\#10711](https://github.com/eligion/cosmos-sdk/pull/10711) Panic at startup if the app developer forgot to add modules in the `SetOrder{BeginBlocker, EndBlocker, InitGenesis, ExportGenesis}` functions. This means that all modules, even those who have empty implementations for those methods, need to be added to `SetOrder*`. +* (types) [\#10076](https://github.com/eligion/cosmos-sdk/pull/10076) Significantly speedup and lower allocations for `Coins.String()`. +* (auth) [\#10022](https://github.com/eligion/cosmos-sdk/pull/10022) `AuthKeeper` interface in `x/auth` now includes a function `HasAccount`. +* [\#10393](https://github.com/eligion/cosmos-sdk/pull/10393) Add `HasSupply` method to bank keeper to ensure that input denom actually exists on chain. ### Bug Fixes -* (std/codec) [/#10595](https://github.com/cosmos/cosmos-sdk/pull/10595) Add evidence to std/codec to be able to decode evidence in client interactions. -* (types) [\#9627](https://github.com/cosmos/cosmos-sdk/pull/9627) Fix nil pointer panic on `NewBigIntFromInt`. -* [#10725](https://github.com/cosmos/cosmos-sdk/pull/10725) populate `ctx.ConsensusParams` for begin/end blockers. -* [\#9829](https://github.com/cosmos/cosmos-sdk/pull/9829) Fixed Coin denom sorting not being checked during `Balance.Validate` check. Refactored the Validation logic to use `Coins.Validate` for `Balance.Coins` -* [\#10061](https://github.com/cosmos/cosmos-sdk/pull/10061) and [\#10515](https://github.com/cosmos/cosmos-sdk/pull/10515) Ensure that `LegacyAminoPubKey` struct correctly unmarshals from JSON +* (std/codec) [/#10595](https://github.com/eligion/cosmos-sdk/pull/10595) Add evidence to std/codec to be able to decode evidence in client interactions. +* (types) [\#9627](https://github.com/eligion/cosmos-sdk/pull/9627) Fix nil pointer panic on `NewBigIntFromInt`. +* [#10725](https://github.com/eligion/cosmos-sdk/pull/10725) populate `ctx.ConsensusParams` for begin/end blockers. +* [\#9829](https://github.com/eligion/cosmos-sdk/pull/9829) Fixed Coin denom sorting not being checked during `Balance.Validate` check. Refactored the Validation logic to use `Coins.Validate` for `Balance.Coins` +* [\#10061](https://github.com/eligion/cosmos-sdk/pull/10061) and [\#10515](https://github.com/eligion/cosmos-sdk/pull/10515) Ensure that `LegacyAminoPubKey` struct correctly unmarshals from JSON -## [v0.44.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.44.5) - 2021-12-02 +## [v0.44.5](https://github.com/eligion/cosmos-sdk/releases/tag/v0.44.5) - 2021-12-02 ### Improvements -* (baseapp) [\#10631](https://github.com/cosmos/cosmos-sdk/pull/10631) Emit ante events even for the failed txs. +* (baseapp) [\#10631](https://github.com/eligion/cosmos-sdk/pull/10631) Emit ante events even for the failed txs. ### Features -* [\#10561](https://github.com/cosmos/cosmos-sdk/pull/10561) Add configurable IAVL cache size to app.toml +* [\#10561](https://github.com/eligion/cosmos-sdk/pull/10561) Add configurable IAVL cache size to app.toml ### Bug Fixes -* [\#10648](https://github.com/cosmos/cosmos-sdk/pull/10648) Upgrade IAVL to 0.17.3 to solve race condition bug in IAVL. -* [\#10897](https://github.com/cosmos/cosmos-sdk/pull/10897) Fix: set a non-zero value on gas overflow. +* [\#10648](https://github.com/eligion/cosmos-sdk/pull/10648) Upgrade IAVL to 0.17.3 to solve race condition bug in IAVL. +* [\#10897](https://github.com/eligion/cosmos-sdk/pull/10897) Fix: set a non-zero value on gas overflow. -## [v0.44.4](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.44.4) - 2021-11-25 +## [v0.44.4](https://github.com/eligion/cosmos-sdk/releases/tag/v0.44.4) - 2021-11-25 ### Improvements -* (types) [\#10630](https://github.com/cosmos/cosmos-sdk/pull/10630) Add an `Events` field to the `TxResponse` type that captures _all_ events emitted by a transaction, unlike `Logs` which only contains events emitted during message execution. -* (x/upgrade) [\#10532](https://github.com/cosmos/cosmos-sdk/pull/10532) Add `keeper.DumpUpgradeInfoWithInfoToDisk` to include `Plan.Info` in the upgrade-info file. -* (store) [\#10544](https://github.com/cosmos/cosmos-sdk/pull/10544) Use the new IAVL iterator structure which significantly improves iterator performance. +* (types) [\#10630](https://github.com/eligion/cosmos-sdk/pull/10630) Add an `Events` field to the `TxResponse` type that captures _all_ events emitted by a transaction, unlike `Logs` which only contains events emitted during message execution. +* (x/upgrade) [\#10532](https://github.com/eligion/cosmos-sdk/pull/10532) Add `keeper.DumpUpgradeInfoWithInfoToDisk` to include `Plan.Info` in the upgrade-info file. +* (store) [\#10544](https://github.com/eligion/cosmos-sdk/pull/10544) Use the new IAVL iterator structure which significantly improves iterator performance. ### Bug Fixes -* [\#10827](https://github.com/cosmos/cosmos-sdk/pull/10827) Create query `Context` with requested block height -* [\#10414](https://github.com/cosmos/cosmos-sdk/pull/10414) Use `sdk.GetConfig().GetFullBIP44Path()` instead `sdk.FullFundraiserPath` to generate key -* (bank) [\#10394](https://github.com/cosmos/cosmos-sdk/pull/10394) Fix: query account balance by ibc denom. -* [\10608](https://github.com/cosmos/cosmos-sdk/pull/10608) Change the order of module migration by pushing x/auth to the end. Auth module depends on other modules and should be run last. We have updated the documentation to provide more details how to change module migration order. This is technically a breaking change, but only impacts updates between the upgrades with version change, hence migrating from the previous patch release doesn't cause new migration and doesn't break the state. -* [\#10674](https://github.com/cosmos/cosmos-sdk/pull/10674) Fix issue with `Error.Wrap` and `Error.Wrapf` usage with `errors.Is`. +* [\#10827](https://github.com/eligion/cosmos-sdk/pull/10827) Create query `Context` with requested block height +* [\#10414](https://github.com/eligion/cosmos-sdk/pull/10414) Use `sdk.GetConfig().GetFullBIP44Path()` instead `sdk.FullFundraiserPath` to generate key +* (bank) [\#10394](https://github.com/eligion/cosmos-sdk/pull/10394) Fix: query account balance by ibc denom. +* [\10608](https://github.com/eligion/cosmos-sdk/pull/10608) Change the order of module migration by pushing x/auth to the end. Auth module depends on other modules and should be run last. We have updated the documentation to provide more details how to change module migration order. This is technically a breaking change, but only impacts updates between the upgrades with version change, hence migrating from the previous patch release doesn't cause new migration and doesn't break the state. +* [\#10674](https://github.com/eligion/cosmos-sdk/pull/10674) Fix issue with `Error.Wrap` and `Error.Wrapf` usage with `errors.Is`. -## [v0.44.3](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.44.3) - 2021-10-21 +## [v0.44.3](https://github.com/eligion/cosmos-sdk/releases/tag/v0.44.3) - 2021-10-21 ### Improvements -* [\#10768](https://github.com/cosmos/cosmos-sdk/pull/10768) Added extra logging for tracking in-place store migrations -* [\#10262](https://github.com/cosmos/cosmos-sdk/pull/10262) Remove unnecessary logging in `x/feegrant` simulation. -* [\#10327](https://github.com/cosmos/cosmos-sdk/pull/10327) Add null guard for possible nil `Amount` in tx fee `Coins` -* [\#10339](https://github.com/cosmos/cosmos-sdk/pull/10339) Improve performance of `removeZeroCoins` by only allocating memory when necessary -* [\#10045](https://github.com/cosmos/cosmos-sdk/pull/10045) Revert [#8549](https://github.com/cosmos/cosmos-sdk/pull/8549). Do not route grpc queries through Tendermint. -* (deps) [\#10375](https://github.com/cosmos/cosmos-sdk/pull/10375) Bump Tendermint to [v0.34.14](https://github.com/tendermint/tendermint/releases/tag/v0.34.14). -* [\#10024](https://github.com/cosmos/cosmos-sdk/pull/10024) `store/cachekv` performance improvement by reduced growth factor for iterator ranging by using binary searches to find dirty items when unsorted key count >= 1024. +* [\#10768](https://github.com/eligion/cosmos-sdk/pull/10768) Added extra logging for tracking in-place store migrations +* [\#10262](https://github.com/eligion/cosmos-sdk/pull/10262) Remove unnecessary logging in `x/feegrant` simulation. +* [\#10327](https://github.com/eligion/cosmos-sdk/pull/10327) Add null guard for possible nil `Amount` in tx fee `Coins` +* [\#10339](https://github.com/eligion/cosmos-sdk/pull/10339) Improve performance of `removeZeroCoins` by only allocating memory when necessary +* [\#10045](https://github.com/eligion/cosmos-sdk/pull/10045) Revert [#8549](https://github.com/eligion/cosmos-sdk/pull/8549). Do not route grpc queries through Tendermint. +* (deps) [\#10375](https://github.com/eligion/cosmos-sdk/pull/10375) Bump Tendermint to [v0.34.14](https://github.com/tendermint/tendermint/releases/tag/v0.34.14). +* [\#10024](https://github.com/eligion/cosmos-sdk/pull/10024) `store/cachekv` performance improvement by reduced growth factor for iterator ranging by using binary searches to find dirty items when unsorted key count >= 1024. ### Bug Fixes -* (client) [#10226](https://github.com/cosmos/cosmos-sdk/pull/10226) Fix --home flag parsing. -* (rosetta) [\#10340](https://github.com/cosmos/cosmos-sdk/pull/10340) Use `GenesisChunked(ctx)` instead `Genesis(ctx)` to get genesis block height -* [\#10394](https://github.com/cosmos/cosmos-sdk/issues/10394) Fixes issue related to grpc-gateway of account balance by ibc-denom. +* (client) [#10226](https://github.com/eligion/cosmos-sdk/pull/10226) Fix --home flag parsing. +* (rosetta) [\#10340](https://github.com/eligion/cosmos-sdk/pull/10340) Use `GenesisChunked(ctx)` instead `Genesis(ctx)` to get genesis block height +* [\#10394](https://github.com/eligion/cosmos-sdk/issues/10394) Fixes issue related to grpc-gateway of account balance by ibc-denom. -## [v0.44.2](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.44.2) - 2021-10-12 +## [v0.44.2](https://github.com/eligion/cosmos-sdk/releases/tag/v0.44.2) - 2021-10-12 Security Release. No breaking changes related to 0.44.x. -## [v0.44.1](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.44.1) - 2021-09-29 +## [v0.44.1](https://github.com/eligion/cosmos-sdk/releases/tag/v0.44.1) - 2021-09-29 ### Improvements -* (store) [\#10040](https://github.com/cosmos/cosmos-sdk/pull/10040) Bump IAVL to v0.17.1 which includes performance improvements on a batch load. -* (types) [\#10021](https://github.com/cosmos/cosmos-sdk/pull/10021) Speedup coins.AmountOf(), by removing many intermittent regex calls. -* [\#10077](https://github.com/cosmos/cosmos-sdk/pull/10077) Remove telemetry on `GasKV` and `CacheKV` store Get/Set operations, significantly improving their performance. -* (store) [\#10026](https://github.com/cosmos/cosmos-sdk/pull/10026) Improve CacheKVStore datastructures / algorithms, to no longer take O(N^2) time when interleaving iterators and insertions. +* (store) [\#10040](https://github.com/eligion/cosmos-sdk/pull/10040) Bump IAVL to v0.17.1 which includes performance improvements on a batch load. +* (types) [\#10021](https://github.com/eligion/cosmos-sdk/pull/10021) Speedup coins.AmountOf(), by removing many intermittent regex calls. +* [\#10077](https://github.com/eligion/cosmos-sdk/pull/10077) Remove telemetry on `GasKV` and `CacheKV` store Get/Set operations, significantly improving their performance. +* (store) [\#10026](https://github.com/eligion/cosmos-sdk/pull/10026) Improve CacheKVStore datastructures / algorithms, to no longer take O(N^2) time when interleaving iterators and insertions. ### Bug Fixes -* [\#9969](https://github.com/cosmos/cosmos-sdk/pull/9969) fix: use keyring in config for add-genesis-account cmd. -* (x/genutil) [#10104](https://github.com/cosmos/cosmos-sdk/pull/10104) Ensure the `init` command reads the `--home` flag value correctly. -* (x/feegrant) [\#10049](https://github.com/cosmos/cosmos-sdk/issues/10049) Fixed the error message when `period` or `period-limit` flag is not set on a feegrant grant transaction. +* [\#9969](https://github.com/eligion/cosmos-sdk/pull/9969) fix: use keyring in config for add-genesis-account cmd. +* (x/genutil) [#10104](https://github.com/eligion/cosmos-sdk/pull/10104) Ensure the `init` command reads the `--home` flag value correctly. +* (x/feegrant) [\#10049](https://github.com/eligion/cosmos-sdk/issues/10049) Fixed the error message when `period` or `period-limit` flag is not set on a feegrant grant transaction. ### Client Breaking Changes -* [\#9879](https://github.com/cosmos/cosmos-sdk/pull/9879) Modify ABCI Queries to use `abci.QueryRequest` Height field if it is non-zero, otherwise continue using context height. +* [\#9879](https://github.com/eligion/cosmos-sdk/pull/9879) Modify ABCI Queries to use `abci.QueryRequest` Height field if it is non-zero, otherwise continue using context height. -## [v0.44.0](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.44.0) - 2021-09-01 +## [v0.44.0](https://github.com/eligion/cosmos-sdk/releases/tag/v0.44.0) - 2021-09-01 ### Features -* [\#9860](https://github.com/cosmos/cosmos-sdk/pull/9860) Emit transaction fee in ante handler fee decorator. The event type is `tx` and the attribute is `fee`. +* [\#9860](https://github.com/eligion/cosmos-sdk/pull/9860) Emit transaction fee in ante handler fee decorator. The event type is `tx` and the attribute is `fee`. ### Improvements -* (deps) [\#9956](https://github.com/cosmos/cosmos-sdk/pull/9956) Bump Tendermint to [v0.34.12](https://github.com/tendermint/tendermint/releases/tag/v0.34.12). +* (deps) [\#9956](https://github.com/eligion/cosmos-sdk/pull/9956) Bump Tendermint to [v0.34.12](https://github.com/tendermint/tendermint/releases/tag/v0.34.12). ### Deprecated -* (x/upgrade) [\#9906](https://github.com/cosmos/cosmos-sdk/pull/9906) Deprecate `UpgradeConsensusState` gRPC query since this functionality is only used for IBC, which now has its own [IBC replacement](https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) +* (x/upgrade) [\#9906](https://github.com/eligion/cosmos-sdk/pull/9906) Deprecate `UpgradeConsensusState` gRPC query since this functionality is only used for IBC, which now has its own [IBC replacement](https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54) ### Bug Fixes -* [\#9965](https://github.com/cosmos/cosmos-sdk/pull/9965) Fixed `simd version` command output to report the right release tag. -* (x/upgrade) [\#10189](https://github.com/cosmos/cosmos-sdk/issues/10189) Removed potential sources of non-determinism in upgrades. +* [\#9965](https://github.com/eligion/cosmos-sdk/pull/9965) Fixed `simd version` command output to report the right release tag. +* (x/upgrade) [\#10189](https://github.com/eligion/cosmos-sdk/issues/10189) Removed potential sources of non-determinism in upgrades. ### Client Breaking Changes -* [\#10041](https://github.com/cosmos/cosmos-sdk/pull/10041) Remove broadcast & encode legacy REST endpoints. Please see the [REST Endpoints Migration guide](https://docs.cosmos.network/master/migrations/rest.html) to migrate to the new REST endpoints. +* [\#10041](https://github.com/eligion/cosmos-sdk/pull/10041) Remove broadcast & encode legacy REST endpoints. Please see the [REST Endpoints Migration guide](https://docs.cosmos.network/master/migrations/rest.html) to migrate to the new REST endpoints. -## [v0.43.0](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.43.0) - 2021-08-10 +## [v0.43.0](https://github.com/eligion/cosmos-sdk/releases/tag/v0.43.0) - 2021-08-10 ### Features -* [\#6711](https://github.com/cosmos/cosmos-sdk/pull/6711) Make integration test suites reusable by apps, tests are exported in each module's `client/testutil` package. -* [\#8077](https://github.com/cosmos/cosmos-sdk/pull/8077) Added support for grpc-web, enabling browsers to communicate with a chain's gRPC server -* [\#8965](https://github.com/cosmos/cosmos-sdk/pull/8965) cosmos reflection now provides more information on the application such as: deliverable msgs, sdk.Config info etc (still in alpha stage). -* [\#8520](https://github.com/cosmos/cosmos-sdk/pull/8520) Add support for permanently locked vesting accounts. -* [\#8559](https://github.com/cosmos/cosmos-sdk/pull/8559) Added Protobuf compatible secp256r1 ECDSA signatures. -* [\#8786](https://github.com/cosmos/cosmos-sdk/pull/8786) Enabled secp256r1 in x/auth. -* (rosetta) [\#8729](https://github.com/cosmos/cosmos-sdk/pull/8729) Data API fully supports balance tracking. Construction API can now construct any message supported by the application. -* [\#8754](https://github.com/cosmos/cosmos-sdk/pull/8875) Added support for reverse iteration to pagination. -* (types) [\#9079](https://github.com/cosmos/cosmos-sdk/issues/9079) Add `AddAmount`/`SubAmount` methods to `sdk.Coin`. -* [#9088](https://github.com/cosmos/cosmos-sdk/pull/9088) Added implementation to ADR-28 Derived Addresses. -* [\#9133](https://github.com/cosmos/cosmos-sdk/pull/9133) Added hooks for governance actions. -* (x/staking) [\#9214](https://github.com/cosmos/cosmos-sdk/pull/9214) Added `new_shares` attribute inside `EventTypeDelegate` event. -* [\#9382](https://github.com/cosmos/cosmos-sdk/pull/9382) feat: add Dec.Float64() function. -* [\#9457](https://github.com/cosmos/cosmos-sdk/pull/9457) Add amino support for x/authz and x/feegrant Msgs. -* [\#9498](https://github.com/cosmos/cosmos-sdk/pull/9498) Added `Codec: codec.Codec` attribute to `client/Context` structure. -* [\#9540](https://github.com/cosmos/cosmos-sdk/pull/9540) Add output flag for query txs command. -* (errors) [\#8845](https://github.com/cosmos/cosmos-sdk/pull/8845) Add `Error.Wrap` handy method -* [\#8518](https://github.com/cosmos/cosmos-sdk/pull/8518) Help users of multisig wallets debug signature issues. -* [\#9750](https://github.com/cosmos/cosmos-sdk/pull/9750) Emit events for tx signature and sequence, so clients can now query txs by signature (`tx.signature=''`) or by address and sequence combo (`tx.acc_seq='/'`). +* [\#6711](https://github.com/eligion/cosmos-sdk/pull/6711) Make integration test suites reusable by apps, tests are exported in each module's `client/testutil` package. +* [\#8077](https://github.com/eligion/cosmos-sdk/pull/8077) Added support for grpc-web, enabling browsers to communicate with a chain's gRPC server +* [\#8965](https://github.com/eligion/cosmos-sdk/pull/8965) cosmos reflection now provides more information on the application such as: deliverable msgs, sdk.Config info etc (still in alpha stage). +* [\#8520](https://github.com/eligion/cosmos-sdk/pull/8520) Add support for permanently locked vesting accounts. +* [\#8559](https://github.com/eligion/cosmos-sdk/pull/8559) Added Protobuf compatible secp256r1 ECDSA signatures. +* [\#8786](https://github.com/eligion/cosmos-sdk/pull/8786) Enabled secp256r1 in x/auth. +* (rosetta) [\#8729](https://github.com/eligion/cosmos-sdk/pull/8729) Data API fully supports balance tracking. Construction API can now construct any message supported by the application. +* [\#8754](https://github.com/eligion/cosmos-sdk/pull/8875) Added support for reverse iteration to pagination. +* (types) [\#9079](https://github.com/eligion/cosmos-sdk/issues/9079) Add `AddAmount`/`SubAmount` methods to `sdk.Coin`. +* [#9088](https://github.com/eligion/cosmos-sdk/pull/9088) Added implementation to ADR-28 Derived Addresses. +* [\#9133](https://github.com/eligion/cosmos-sdk/pull/9133) Added hooks for governance actions. +* (x/staking) [\#9214](https://github.com/eligion/cosmos-sdk/pull/9214) Added `new_shares` attribute inside `EventTypeDelegate` event. +* [\#9382](https://github.com/eligion/cosmos-sdk/pull/9382) feat: add Dec.Float64() function. +* [\#9457](https://github.com/eligion/cosmos-sdk/pull/9457) Add amino support for x/authz and x/feegrant Msgs. +* [\#9498](https://github.com/eligion/cosmos-sdk/pull/9498) Added `Codec: codec.Codec` attribute to `client/Context` structure. +* [\#9540](https://github.com/eligion/cosmos-sdk/pull/9540) Add output flag for query txs command. +* (errors) [\#8845](https://github.com/eligion/cosmos-sdk/pull/8845) Add `Error.Wrap` handy method +* [\#8518](https://github.com/eligion/cosmos-sdk/pull/8518) Help users of multisig wallets debug signature issues. +* [\#9750](https://github.com/eligion/cosmos-sdk/pull/9750) Emit events for tx signature and sequence, so clients can now query txs by signature (`tx.signature=''`) or by address and sequence combo (`tx.acc_seq='/'`). ### Client Breaking Changes -* [\#8363](https://github.com/cosmos/cosmos-sdk/pull/8363) Addresses no longer have a fixed 20-byte length. From the SDK modules' point of view, any 1-255 bytes-long byte array is a valid address. +* [\#8363](https://github.com/eligion/cosmos-sdk/pull/8363) Addresses no longer have a fixed 20-byte length. From the SDK modules' point of view, any 1-255 bytes-long byte array is a valid address. * (crypto/ed25519) [\#8690] Adopt zip1215 ed2559 verification rules. -* [\#8849](https://github.com/cosmos/cosmos-sdk/pull/8849) Upgrade module no longer supports time based upgrades. -* [\#7477](https://github.com/cosmos/cosmos-sdk/pull/7477) Changed Bech32 Public Key serialization in the client facing functionality (CLI, MsgServer, QueryServer): +* [\#8849](https://github.com/eligion/cosmos-sdk/pull/8849) Upgrade module no longer supports time based upgrades. +* [\#7477](https://github.com/eligion/cosmos-sdk/pull/7477) Changed Bech32 Public Key serialization in the client facing functionality (CLI, MsgServer, QueryServer): * updated the keyring display structure (it uses protobuf JSON serialization) - the output is more verbose. * Renamed `MarshalAny` and `UnmarshalAny` to `MarshalInterface` and `UnmarshalInterface` respectively. These functions must take an interface as parameter (not a concrete type nor `Any` object). Underneath they use `Any` wrapping for correct protobuf serialization. * CLI: removed `--text` flag from `show-node-id` command; the text format for public keys is not used any more - instead we use ProtoJSON. -* (store) [\#8790](https://github.com/cosmos/cosmos-sdk/pull/8790) Reduce gas costs by 10x for transient store operations. -* [\#9139](https://github.com/cosmos/cosmos-sdk/pull/9139) Querying events: +* (store) [\#8790](https://github.com/eligion/cosmos-sdk/pull/8790) Reduce gas costs by 10x for transient store operations. +* [\#9139](https://github.com/eligion/cosmos-sdk/pull/9139) Querying events: * via `ServiceMsg` TypeURLs (e.g. `message.action='/cosmos.bank.v1beta1.Msg/Send'`) does not work anymore, * via legacy `msg.Type()` (e.g. `message.action='send'`) is being deprecated, new `Msg`s won't emit these events. * Please use concrete `Msg` TypeURLs instead (e.g. `message.action='/cosmos.bank.v1beta1.MsgSend'`). -* [\#9859](https://github.com/cosmos/cosmos-sdk/pull/9859) The `default` pruning strategy now keeps the last 362880 blocks instead of 100. 362880 equates to roughly enough blocks to cover the entire unbonding period assuming a 21 day unbonding period and 5s block time. -* [\#9785](https://github.com/cosmos/cosmos-sdk/issues/9785) Missing coin denomination in logs +* [\#9859](https://github.com/eligion/cosmos-sdk/pull/9859) The `default` pruning strategy now keeps the last 362880 blocks instead of 100. 362880 equates to roughly enough blocks to cover the entire unbonding period assuming a 21 day unbonding period and 5s block time. +* [\#9785](https://github.com/eligion/cosmos-sdk/issues/9785) Missing coin denomination in logs ### API Breaking Changes -* (keyring) [#\8662](https://github.com/cosmos/cosmos-sdk/pull/8662) `NewMnemonic` now receives an additional `passphrase` argument to secure the key generated by the bip39 mnemonic. -* (x/bank) [\#8473](https://github.com/cosmos/cosmos-sdk/pull/8473) Bank keeper does not expose unsafe balance changing methods such as `SetBalance`, `SetSupply` etc. -* (x/staking) [\#8473](https://github.com/cosmos/cosmos-sdk/pull/8473) On genesis init, if non bonded pool and bonded pool balance, coming from the bank module, does not match what is saved in the staking state, the initialization will panic. -* (x/gov) [\#8473](https://github.com/cosmos/cosmos-sdk/pull/8473) On genesis init, if the gov module account balance, coming from bank module state, does not match the one in gov module state, the initialization will panic. -* (x/distribution) [\#8473](https://github.com/cosmos/cosmos-sdk/pull/8473) On genesis init, if the distribution module account balance, coming from bank module state, does not match the one in distribution module state, the initialization will panic. -* (client/keys) [\#8500](https://github.com/cosmos/cosmos-sdk/pull/8500) `InfoImporter` interface is removed from legacy keybase. -* (x/staking) [\#8505](https://github.com/cosmos/cosmos-sdk/pull/8505) `sdk.PowerReduction` has been renamed to `sdk.DefaultPowerReduction`, and most staking functions relying on power reduction take a new function argument, instead of relying on that global variable. -* [\#8629](https://github.com/cosmos/cosmos-sdk/pull/8629) Deprecated `SetFullFundraiserPath` from `Config` in favor of `SetPurpose` and `SetCoinType`. -* (x/upgrade) [\#8673](https://github.com/cosmos/cosmos-sdk/pull/8673) Remove IBC logic from x/upgrade. Deprecates IBC fields in an Upgrade Plan, an error will be thrown if they are set. IBC upgrade logic moved to 02-client and an IBC UpgradeProposal is added. -* (x/bank) [\#8517](https://github.com/cosmos/cosmos-sdk/pull/8517) `SupplyI` interface and `Supply` are removed and uses `sdk.Coins` for supply tracking -* (x/upgrade) [\#8743](https://github.com/cosmos/cosmos-sdk/pull/8743) `UpgradeHandler` includes a new argument `VersionMap` which helps facilitate in-place migrations. -* (x/auth) [\#8129](https://github.com/cosmos/cosmos-sdk/pull/8828) Updated `SigVerifiableTx.GetPubKeys` method signature to return error. -* (x/upgrade) [\7487](https://github.com/cosmos/cosmos-sdk/pull/8897) Upgrade `Keeper` takes new argument `ProtocolVersionSetter` which implements setting a protocol version on baseapp. -* (baseapp) [\7487](https://github.com/cosmos/cosmos-sdk/pull/8897) BaseApp's fields appVersion and version were swapped to match Tendermint's fields. -* [\#8682](https://github.com/cosmos/cosmos-sdk/pull/8682) `ante.NewAnteHandler` updated to receive all positional params as `ante.HandlerOptions` struct. If required fields aren't set, throws error accordingly. -* (x/staking/types) [\#7447](https://github.com/cosmos/cosmos-sdk/issues/7447) Remove bech32 PubKey support: +* (keyring) [#\8662](https://github.com/eligion/cosmos-sdk/pull/8662) `NewMnemonic` now receives an additional `passphrase` argument to secure the key generated by the bip39 mnemonic. +* (x/bank) [\#8473](https://github.com/eligion/cosmos-sdk/pull/8473) Bank keeper does not expose unsafe balance changing methods such as `SetBalance`, `SetSupply` etc. +* (x/staking) [\#8473](https://github.com/eligion/cosmos-sdk/pull/8473) On genesis init, if non bonded pool and bonded pool balance, coming from the bank module, does not match what is saved in the staking state, the initialization will panic. +* (x/gov) [\#8473](https://github.com/eligion/cosmos-sdk/pull/8473) On genesis init, if the gov module account balance, coming from bank module state, does not match the one in gov module state, the initialization will panic. +* (x/distribution) [\#8473](https://github.com/eligion/cosmos-sdk/pull/8473) On genesis init, if the distribution module account balance, coming from bank module state, does not match the one in distribution module state, the initialization will panic. +* (client/keys) [\#8500](https://github.com/eligion/cosmos-sdk/pull/8500) `InfoImporter` interface is removed from legacy keybase. +* (x/staking) [\#8505](https://github.com/eligion/cosmos-sdk/pull/8505) `sdk.PowerReduction` has been renamed to `sdk.DefaultPowerReduction`, and most staking functions relying on power reduction take a new function argument, instead of relying on that global variable. +* [\#8629](https://github.com/eligion/cosmos-sdk/pull/8629) Deprecated `SetFullFundraiserPath` from `Config` in favor of `SetPurpose` and `SetCoinType`. +* (x/upgrade) [\#8673](https://github.com/eligion/cosmos-sdk/pull/8673) Remove IBC logic from x/upgrade. Deprecates IBC fields in an Upgrade Plan, an error will be thrown if they are set. IBC upgrade logic moved to 02-client and an IBC UpgradeProposal is added. +* (x/bank) [\#8517](https://github.com/eligion/cosmos-sdk/pull/8517) `SupplyI` interface and `Supply` are removed and uses `sdk.Coins` for supply tracking +* (x/upgrade) [\#8743](https://github.com/eligion/cosmos-sdk/pull/8743) `UpgradeHandler` includes a new argument `VersionMap` which helps facilitate in-place migrations. +* (x/auth) [\#8129](https://github.com/eligion/cosmos-sdk/pull/8828) Updated `SigVerifiableTx.GetPubKeys` method signature to return error. +* (x/upgrade) [\7487](https://github.com/eligion/cosmos-sdk/pull/8897) Upgrade `Keeper` takes new argument `ProtocolVersionSetter` which implements setting a protocol version on baseapp. +* (baseapp) [\7487](https://github.com/eligion/cosmos-sdk/pull/8897) BaseApp's fields appVersion and version were swapped to match Tendermint's fields. +* [\#8682](https://github.com/eligion/cosmos-sdk/pull/8682) `ante.NewAnteHandler` updated to receive all positional params as `ante.HandlerOptions` struct. If required fields aren't set, throws error accordingly. +* (x/staking/types) [\#7447](https://github.com/eligion/cosmos-sdk/issues/7447) Remove bech32 PubKey support: * `ValidatorI` interface update: `GetConsPubKey` renamed to `TmConsPubKey` (this is to clarify the return type: consensus public key must be a tendermint key); `TmConsPubKey`, `GetConsAddr` methods return error. * `Validator` updated according to the `ValidatorI` changes described above. * `ToTmValidator` function: added `error` to return values. * `Validator.ConsensusPubkey` type changed from `string` to `codectypes.Any`. * `MsgCreateValidator.Pubkey` type changed from `string` to `codectypes.Any`. -* (client) [\#8926](https://github.com/cosmos/cosmos-sdk/pull/8926) `client/tx.PrepareFactory` has been converted to a private function, as it's only used internally. -* (auth/tx) [\#8926](https://github.com/cosmos/cosmos-sdk/pull/8926) The `ProtoTxProvider` interface used as a workaround for transaction simulation has been removed. -* (x/bank) [\#8798](https://github.com/cosmos/cosmos-sdk/pull/8798) `GetTotalSupply` is removed in favour of `GetPaginatedTotalSupply` -* (keyring) [\#8739](https://github.com/cosmos/cosmos-sdk/pull/8739) Rename InfoImporter -> LegacyInfoImporter. -* (x/bank/types) [\#9061](https://github.com/cosmos/cosmos-sdk/pull/9061) `AddressFromBalancesStore` now returns an error for invalid key instead of panic. -* (x/auth) [\#9144](https://github.com/cosmos/cosmos-sdk/pull/9144) The `NewTxTimeoutHeightDecorator` antehandler has been converted from a struct to a function. -* (codec) [\#9226](https://github.com/cosmos/cosmos-sdk/pull/9226) Rename codec interfaces and methods, to follow a general Go interfaces: +* (client) [\#8926](https://github.com/eligion/cosmos-sdk/pull/8926) `client/tx.PrepareFactory` has been converted to a private function, as it's only used internally. +* (auth/tx) [\#8926](https://github.com/eligion/cosmos-sdk/pull/8926) The `ProtoTxProvider` interface used as a workaround for transaction simulation has been removed. +* (x/bank) [\#8798](https://github.com/eligion/cosmos-sdk/pull/8798) `GetTotalSupply` is removed in favour of `GetPaginatedTotalSupply` +* (keyring) [\#8739](https://github.com/eligion/cosmos-sdk/pull/8739) Rename InfoImporter -> LegacyInfoImporter. +* (x/bank/types) [\#9061](https://github.com/eligion/cosmos-sdk/pull/9061) `AddressFromBalancesStore` now returns an error for invalid key instead of panic. +* (x/auth) [\#9144](https://github.com/eligion/cosmos-sdk/pull/9144) The `NewTxTimeoutHeightDecorator` antehandler has been converted from a struct to a function. +* (codec) [\#9226](https://github.com/eligion/cosmos-sdk/pull/9226) Rename codec interfaces and methods, to follow a general Go interfaces: * `codec.Marshaler` → `codec.Codec` (this defines objects which serialize other objects) * `codec.BinaryMarshaler` → `codec.BinaryCodec` * `codec.JSONMarshaler` → `codec.JSONCodec` * Removed `BinaryBare` suffix from `BinaryCodec` methods (`MarshalBinaryBare`, `UnmarshalBinaryBare`, ...) * Removed `Binary` infix from `BinaryCodec` methods (`MarshalBinaryLengthPrefixed`, `UnmarshalBinaryLengthPrefixed`, ...) -* [\#9139](https://github.com/cosmos/cosmos-sdk/pull/9139) `ServiceMsg` TypeURLs (e.g. `/cosmos.bank.v1beta1.Msg/Send`) have been removed, as they don't comply to the Probobuf `Any` spec. Please use `Msg` type TypeURLs (e.g. `/cosmos.bank.v1beta1.MsgSend`). This has multiple consequences: +* [\#9139](https://github.com/eligion/cosmos-sdk/pull/9139) `ServiceMsg` TypeURLs (e.g. `/cosmos.bank.v1beta1.Msg/Send`) have been removed, as they don't comply to the Probobuf `Any` spec. Please use `Msg` type TypeURLs (e.g. `/cosmos.bank.v1beta1.MsgSend`). This has multiple consequences: * The `sdk.ServiceMsg` struct has been removed. * `sdk.Msg` now only contains `ValidateBasic` and `GetSigners` methods. The remaining methods `GetSignBytes`, `Route` and `Type` are moved to `legacytx.LegacyMsg`. * The `RegisterCustomTypeURL` function and the `cosmos.base.v1beta1.ServiceMsg` interface have been removed from the interface registry. -* (codec) [\#9251](https://github.com/cosmos/cosmos-sdk/pull/9251) Rename `clientCtx.JSONMarshaler` to `clientCtx.JSONCodec` as per #9226. -* (x/bank) [\#9271](https://github.com/cosmos/cosmos-sdk/pull/9271) SendEnabledCoin(s) renamed to IsSendEnabledCoin(s) to better reflect its functionality. -* (x/bank) [\#9550](https://github.com/cosmos/cosmos-sdk/pull/9550) `server.InterceptConfigsPreRunHandler` now takes 2 additional arguments: customAppConfigTemplate and customAppConfig. If you don't need to customize these, simply put `""` and `nil`. -* [\#8245](https://github.com/cosmos/cosmos-sdk/pull/8245) Removed `simapp.MakeCodecs` and use `simapp.MakeTestEncodingConfig` instead. -* (x/capability) [\#9836](https://github.com/cosmos/cosmos-sdk/pull/9836) Removed `InitializeAndSeal(ctx sdk.Context)` and replaced with `Seal()`. App must add x/capability module to the begin blockers which will assure that the x/capability keeper is properly initialized. The x/capability begin blocker must be run before any other module which uses x/capability. +* (codec) [\#9251](https://github.com/eligion/cosmos-sdk/pull/9251) Rename `clientCtx.JSONMarshaler` to `clientCtx.JSONCodec` as per #9226. +* (x/bank) [\#9271](https://github.com/eligion/cosmos-sdk/pull/9271) SendEnabledCoin(s) renamed to IsSendEnabledCoin(s) to better reflect its functionality. +* (x/bank) [\#9550](https://github.com/eligion/cosmos-sdk/pull/9550) `server.InterceptConfigsPreRunHandler` now takes 2 additional arguments: customAppConfigTemplate and customAppConfig. If you don't need to customize these, simply put `""` and `nil`. +* [\#8245](https://github.com/eligion/cosmos-sdk/pull/8245) Removed `simapp.MakeCodecs` and use `simapp.MakeTestEncodingConfig` instead. +* (x/capability) [\#9836](https://github.com/eligion/cosmos-sdk/pull/9836) Removed `InitializeAndSeal(ctx sdk.Context)` and replaced with `Seal()`. App must add x/capability module to the begin blockers which will assure that the x/capability keeper is properly initialized. The x/capability begin blocker must be run before any other module which uses x/capability. ### State Machine Breaking -* (x/{bank,distrib,gov,slashing,staking}) [\#8363](https://github.com/cosmos/cosmos-sdk/issues/8363) Store keys have been modified to allow for variable-length addresses. -* (x/evidence) [\#8502](https://github.com/cosmos/cosmos-sdk/pull/8502) `HandleEquivocationEvidence` persists the evidence to state. -* (x/gov) [\#7733](https://github.com/cosmos/cosmos-sdk/pull/7733) ADR 037 Implementation: Governance Split Votes, use `MsgWeightedVote` to send a split vote. Sending a regular `MsgVote` will convert the underlying vote option into a weighted vote with weight 1. -* (x/bank) [\#8656](https://github.com/cosmos/cosmos-sdk/pull/8656) balance and supply are now correctly tracked via `coin_spent`, `coin_received`, `coinbase` and `burn` events. -* (x/bank) [\#8517](https://github.com/cosmos/cosmos-sdk/pull/8517) Supply is now stored and tracked as `sdk.Coins` -* (x/bank) [\#9051](https://github.com/cosmos/cosmos-sdk/pull/9051) Supply value is stored as `sdk.Int` rather than `string`. +* (x/{bank,distrib,gov,slashing,staking}) [\#8363](https://github.com/eligion/cosmos-sdk/issues/8363) Store keys have been modified to allow for variable-length addresses. +* (x/evidence) [\#8502](https://github.com/eligion/cosmos-sdk/pull/8502) `HandleEquivocationEvidence` persists the evidence to state. +* (x/gov) [\#7733](https://github.com/eligion/cosmos-sdk/pull/7733) ADR 037 Implementation: Governance Split Votes, use `MsgWeightedVote` to send a split vote. Sending a regular `MsgVote` will convert the underlying vote option into a weighted vote with weight 1. +* (x/bank) [\#8656](https://github.com/eligion/cosmos-sdk/pull/8656) balance and supply are now correctly tracked via `coin_spent`, `coin_received`, `coinbase` and `burn` events. +* (x/bank) [\#8517](https://github.com/eligion/cosmos-sdk/pull/8517) Supply is now stored and tracked as `sdk.Coins` +* (x/bank) [\#9051](https://github.com/eligion/cosmos-sdk/pull/9051) Supply value is stored as `sdk.Int` rather than `string`. ### CLI Breaking Changes -* [\#8880](https://github.com/cosmos/cosmos-sdk/pull/8880) The CLI `simd migrate v0.40 ...` command has been renamed to `simd migrate v0.42`. -* [\#8628](https://github.com/cosmos/cosmos-sdk/issues/8628) Commands no longer print outputs using `stderr` by default -* [\#9134](https://github.com/cosmos/cosmos-sdk/pull/9134) Renamed the CLI flag `--memo` to `--note`. -* [\#9291](https://github.com/cosmos/cosmos-sdk/pull/9291) Migration scripts prior to v0.38 have been removed from the CLI `migrate` command. The oldest supported migration is v0.39->v0.42. -* [\#9371](https://github.com/cosmos/cosmos-sdk/pull/9371) Non-zero default fees/Server will error if there's an empty value for min-gas-price in app.toml -* [\#9827](https://github.com/cosmos/cosmos-sdk/pull/9827) Ensure input parity of validator public key input between `tx staking create-validator` and `gentx`. -* [\#9781](https://github.com/cosmos/cosmos-sdk/pull/9781) Improve`withdraw-all-rewards` UX when broadcast mode `async` or `async` is used. -* [\#9621](https://github.com/cosmos/cosmos-sdk/pull/9621) Rollback [\#9371](https://github.com/cosmos/cosmos-sdk/pull/9371) and log warning if there's an empty value for min-gas-price in app.toml +* [\#8880](https://github.com/eligion/cosmos-sdk/pull/8880) The CLI `simd migrate v0.40 ...` command has been renamed to `simd migrate v0.42`. +* [\#8628](https://github.com/eligion/cosmos-sdk/issues/8628) Commands no longer print outputs using `stderr` by default +* [\#9134](https://github.com/eligion/cosmos-sdk/pull/9134) Renamed the CLI flag `--memo` to `--note`. +* [\#9291](https://github.com/eligion/cosmos-sdk/pull/9291) Migration scripts prior to v0.38 have been removed from the CLI `migrate` command. The oldest supported migration is v0.39->v0.42. +* [\#9371](https://github.com/eligion/cosmos-sdk/pull/9371) Non-zero default fees/Server will error if there's an empty value for min-gas-price in app.toml +* [\#9827](https://github.com/eligion/cosmos-sdk/pull/9827) Ensure input parity of validator public key input between `tx staking create-validator` and `gentx`. +* [\#9781](https://github.com/eligion/cosmos-sdk/pull/9781) Improve`withdraw-all-rewards` UX when broadcast mode `async` or `async` is used. +* [\#9621](https://github.com/eligion/cosmos-sdk/pull/9621) Rollback [\#9371](https://github.com/eligion/cosmos-sdk/pull/9371) and log warning if there's an empty value for min-gas-price in app.toml ### Improvements -* (store) [\#8012](https://github.com/cosmos/cosmos-sdk/pull/8012) Implementation of ADR-038 WriteListener and listen.KVStore -* (x/bank) [\#8614](https://github.com/cosmos/cosmos-sdk/issues/8614) Add `Name` and `Symbol` fields to denom metadata -* (x/auth) [\#8522](https://github.com/cosmos/cosmos-sdk/pull/8522) Allow to query all stored accounts -* (crypto/types) [\#8600](https://github.com/cosmos/cosmos-sdk/pull/8600) `CompactBitArray`: optimize the `NumTrueBitsBefore` method and add an `Equal` method. -* (x/upgrade) [\#8743](https://github.com/cosmos/cosmos-sdk/pull/8743) Add tracking module versions as per ADR-041 -* (types) [\#8962](https://github.com/cosmos/cosmos-sdk/issues/8962) Add `Abs()` method to `sdk.Int`. -* (x/bank) [\#8950](https://github.com/cosmos/cosmos-sdk/pull/8950) Improve efficiency on supply updates. -* (store) [\#8811](https://github.com/cosmos/cosmos-sdk/pull/8811) store/cachekv: use typed `types/kv.List` instead of `container/list.List`. The change brings time spent on the time assertion cummulatively to 580ms down from 6.88s. -* (keyring) [\#8826](https://github.com/cosmos/cosmos-sdk/pull/8826) add trust to macOS Keychain for calling apps by default, avoiding repeating keychain popups that appears when dealing with keyring (key add, list, ...) operations. -* (makefile) [\#7933](https://github.com/cosmos/cosmos-sdk/issues/7933) Use Docker to generate swagger files. -* (crypto/types) [\#9196](https://github.com/cosmos/cosmos-sdk/pull/9196) Fix negative index accesses in CompactUnmarshal,GetIndex,SetIndex -* (cli) [\#9201](https://github.com/cosmos/cosmos-sdk/pull/9201) Fix init --recover not working. -* (makefile) [\#9192](https://github.com/cosmos/cosmos-sdk/pull/9192) Reuse proto containers in proto related jobs. -* [\#9205](https://github.com/cosmos/cosmos-sdk/pull/9205) Improve readability in `abci` handleQueryP2P -* [\#9231](https://github.com/cosmos/cosmos-sdk/pull/9231) Remove redundant staking errors. -* [\#9314](https://github.com/cosmos/cosmos-sdk/pull/9314) Update Rosetta SDK to upstream's latest release. -* (gRPC-Web) [\#9493](https://github.com/cosmos/cosmos-sdk/pull/9493) Add `EnableUnsafeCORS` flag to grpc-web config. -* (x/params) [\#9481](https://github.com/cosmos/cosmos-sdk/issues/9481) Speedup simulator for parameter change proposals. -* (x/staking) [\#9423](https://github.com/cosmos/cosmos-sdk/pull/9423) Staking delegations now returns empty list instead of rpc error when no records found. -* (x/auth) [\#9553](https://github.com/cosmos/cosmos-sdk/pull/9553) The `--multisig` flag now accepts both a name and address. -* (baseapp) [\#9578](https://github.com/cosmos/cosmos-sdk/pull/9578) Return `Baseapp`'s `trace` value for logging error stack traces. -* [\#8549](https://github.com/cosmos/cosmos-sdk/pull/8549) Make gRPC requests go through tendermint Query -* [\#8093](https://github.com/cosmos/cosmos-sdk/pull/8093) Limit usage of context.background. -* [\#8460](https://github.com/cosmos/cosmos-sdk/pull/8460) Ensure b.ReportAllocs() in all the benchmarks -* [\#8461](https://github.com/cosmos/cosmos-sdk/pull/8461) Fix upgrade tx commands not showing up in CLI +* (store) [\#8012](https://github.com/eligion/cosmos-sdk/pull/8012) Implementation of ADR-038 WriteListener and listen.KVStore +* (x/bank) [\#8614](https://github.com/eligion/cosmos-sdk/issues/8614) Add `Name` and `Symbol` fields to denom metadata +* (x/auth) [\#8522](https://github.com/eligion/cosmos-sdk/pull/8522) Allow to query all stored accounts +* (crypto/types) [\#8600](https://github.com/eligion/cosmos-sdk/pull/8600) `CompactBitArray`: optimize the `NumTrueBitsBefore` method and add an `Equal` method. +* (x/upgrade) [\#8743](https://github.com/eligion/cosmos-sdk/pull/8743) Add tracking module versions as per ADR-041 +* (types) [\#8962](https://github.com/eligion/cosmos-sdk/issues/8962) Add `Abs()` method to `sdk.Int`. +* (x/bank) [\#8950](https://github.com/eligion/cosmos-sdk/pull/8950) Improve efficiency on supply updates. +* (store) [\#8811](https://github.com/eligion/cosmos-sdk/pull/8811) store/cachekv: use typed `types/kv.List` instead of `container/list.List`. The change brings time spent on the time assertion cummulatively to 580ms down from 6.88s. +* (keyring) [\#8826](https://github.com/eligion/cosmos-sdk/pull/8826) add trust to macOS Keychain for calling apps by default, avoiding repeating keychain popups that appears when dealing with keyring (key add, list, ...) operations. +* (makefile) [\#7933](https://github.com/eligion/cosmos-sdk/issues/7933) Use Docker to generate swagger files. +* (crypto/types) [\#9196](https://github.com/eligion/cosmos-sdk/pull/9196) Fix negative index accesses in CompactUnmarshal,GetIndex,SetIndex +* (cli) [\#9201](https://github.com/eligion/cosmos-sdk/pull/9201) Fix init --recover not working. +* (makefile) [\#9192](https://github.com/eligion/cosmos-sdk/pull/9192) Reuse proto containers in proto related jobs. +* [\#9205](https://github.com/eligion/cosmos-sdk/pull/9205) Improve readability in `abci` handleQueryP2P +* [\#9231](https://github.com/eligion/cosmos-sdk/pull/9231) Remove redundant staking errors. +* [\#9314](https://github.com/eligion/cosmos-sdk/pull/9314) Update Rosetta SDK to upstream's latest release. +* (gRPC-Web) [\#9493](https://github.com/eligion/cosmos-sdk/pull/9493) Add `EnableUnsafeCORS` flag to grpc-web config. +* (x/params) [\#9481](https://github.com/eligion/cosmos-sdk/issues/9481) Speedup simulator for parameter change proposals. +* (x/staking) [\#9423](https://github.com/eligion/cosmos-sdk/pull/9423) Staking delegations now returns empty list instead of rpc error when no records found. +* (x/auth) [\#9553](https://github.com/eligion/cosmos-sdk/pull/9553) The `--multisig` flag now accepts both a name and address. +* (baseapp) [\#9578](https://github.com/eligion/cosmos-sdk/pull/9578) Return `Baseapp`'s `trace` value for logging error stack traces. +* [\#8549](https://github.com/eligion/cosmos-sdk/pull/8549) Make gRPC requests go through tendermint Query +* [\#8093](https://github.com/eligion/cosmos-sdk/pull/8093) Limit usage of context.background. +* [\#8460](https://github.com/eligion/cosmos-sdk/pull/8460) Ensure b.ReportAllocs() in all the benchmarks +* [\#8461](https://github.com/eligion/cosmos-sdk/pull/8461) Fix upgrade tx commands not showing up in CLI ### Bug Fixes -* (x/gov) [\#8813](https://github.com/cosmos/cosmos-sdk/pull/8813) fix `GET /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits` to include initial deposit -* (gRPC) [\#8945](https://github.com/cosmos/cosmos-sdk/pull/8945) gRPC reflection now works correctly. -* (keyring) [#\8635](https://github.com/cosmos/cosmos-sdk/issues/8635) Remove hardcoded default passphrase value on `NewMnemonic` -* (x/bank) [\#8434](https://github.com/cosmos/cosmos-sdk/pull/8434) Fix legacy REST API `GET /bank/total` and `GET /bank/total/{denom}` in swagger -* (x/slashing) [\#8427](https://github.com/cosmos/cosmos-sdk/pull/8427) Fix query signing infos command -* (x/bank/types) [\#9112](https://github.com/cosmos/cosmos-sdk/pull/9112) fix AddressFromBalancesStore address length overflow -* (x/bank) [\#9229](https://github.com/cosmos/cosmos-sdk/pull/9229) Now zero coin balances cannot be added to balances & supply stores. If any denom becomes zero corresponding key gets deleted from store. -* [\#9363](https://github.com/cosmos/cosmos-sdk/pull/9363) Check store key uniqueness in app wiring. -* [\#9460](https://github.com/cosmos/cosmos-sdk/pull/9460) Fix lint error in `MigratePrefixAddress`. -* [\#9480](https://github.com/cosmos/cosmos-sdk/pull/9480) Fix added keys when using `--dry-run`. -* (types) [\#9511](https://github.com/cosmos/cosmos-sdk/pull/9511) Change `maxBitLen` of `sdk.Int` and `sdk.Dec` to handle max ERC20 value. -* [\#9454](https://github.com/cosmos/cosmos-sdk/pull/9454) Fix testnet command with --node-dir-prefix accepts `-` and change `node-dir-prefix token` to `testtoken`. -* (keyring) [\#9562](https://github.com/cosmos/cosmos-sdk/pull/9563) fix keyring kwallet backend when using with empty wallet. -* (keyring) [\#9583](https://github.com/cosmos/cosmos-sdk/pull/9583) Fix correct population of legacy `Vote.Option` field for votes with 1 VoteOption of weight 1. -* (x/distinction) [\#8918](https://github.com/cosmos/cosmos-sdk/pull/8918) Fix module's parameters validation. -* (x/gov/types) [\#8586](https://github.com/cosmos/cosmos-sdk/pull/8586) Fix bug caused by NewProposal that unnecessarily creates a Proposal object that’s discarded on any error. -* [\#8580](https://github.com/cosmos/cosmos-sdk/pull/8580) Use more cheaper method from the math/big package that provides a way to trivially check if a value is zero with .BitLen() == 0 -* [\#8567](https://github.com/cosmos/cosmos-sdk/pull/8567) Fix bug by introducing pagination to GetValidatorSetByHeight response -* (x/bank) [\#8531](https://github.com/cosmos/cosmos-sdk/pull/8531) Fix bug caused by ignoring errors returned by Balance.GetAddress() -* (server) [\#8399](https://github.com/cosmos/cosmos-sdk/pull/8399) fix gRPC-web flag default value -* [\#8282](https://github.com/cosmos/cosmos-sdk/pull/8282) fix zero time checks -* (cli) [\#9717](https://github.com/cosmos/cosmos-sdk/pull/9717) Added CLI flag `--output json/text` to `tx` cli commands. -* (cli) [\#9593](https://github.com/cosmos/cosmos-sdk/pull/9593) Check if chain-id is blank before verifying signatures in multisign and error. -* [\#9720](https://github.com/cosmos/cosmos-sdk/pull/9720) Feegrant grant cli granter now accepts key name as well as address in general and accepts only address in --generate-only mode -* [\#9766](https://github.com/cosmos/cosmos-sdk/pull/9766) Fix hardcoded ledger signing algorithm on `keys add` command. -* [\#9793](https://github.com/cosmos/cosmos-sdk/pull/9793) Fixed ECDSA/secp256r1 transaction malleability. -* (server) [#9704](https://github.com/cosmos/cosmos-sdk/pull/9704) Start GRPCWebServer in goroutine, avoid blocking other services from starting. -* (bank) [\#9687](https://github.com/cosmos/cosmos-sdk/issues/9687) fixes [\#9159](https://github.com/cosmos/cosmos-sdk/issues/9159). Added migration to prune balances with zero coins. +* (x/gov) [\#8813](https://github.com/eligion/cosmos-sdk/pull/8813) fix `GET /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits` to include initial deposit +* (gRPC) [\#8945](https://github.com/eligion/cosmos-sdk/pull/8945) gRPC reflection now works correctly. +* (keyring) [#\8635](https://github.com/eligion/cosmos-sdk/issues/8635) Remove hardcoded default passphrase value on `NewMnemonic` +* (x/bank) [\#8434](https://github.com/eligion/cosmos-sdk/pull/8434) Fix legacy REST API `GET /bank/total` and `GET /bank/total/{denom}` in swagger +* (x/slashing) [\#8427](https://github.com/eligion/cosmos-sdk/pull/8427) Fix query signing infos command +* (x/bank/types) [\#9112](https://github.com/eligion/cosmos-sdk/pull/9112) fix AddressFromBalancesStore address length overflow +* (x/bank) [\#9229](https://github.com/eligion/cosmos-sdk/pull/9229) Now zero coin balances cannot be added to balances & supply stores. If any denom becomes zero corresponding key gets deleted from store. +* [\#9363](https://github.com/eligion/cosmos-sdk/pull/9363) Check store key uniqueness in app wiring. +* [\#9460](https://github.com/eligion/cosmos-sdk/pull/9460) Fix lint error in `MigratePrefixAddress`. +* [\#9480](https://github.com/eligion/cosmos-sdk/pull/9480) Fix added keys when using `--dry-run`. +* (types) [\#9511](https://github.com/eligion/cosmos-sdk/pull/9511) Change `maxBitLen` of `sdk.Int` and `sdk.Dec` to handle max ERC20 value. +* [\#9454](https://github.com/eligion/cosmos-sdk/pull/9454) Fix testnet command with --node-dir-prefix accepts `-` and change `node-dir-prefix token` to `testtoken`. +* (keyring) [\#9562](https://github.com/eligion/cosmos-sdk/pull/9563) fix keyring kwallet backend when using with empty wallet. +* (keyring) [\#9583](https://github.com/eligion/cosmos-sdk/pull/9583) Fix correct population of legacy `Vote.Option` field for votes with 1 VoteOption of weight 1. +* (x/distinction) [\#8918](https://github.com/eligion/cosmos-sdk/pull/8918) Fix module's parameters validation. +* (x/gov/types) [\#8586](https://github.com/eligion/cosmos-sdk/pull/8586) Fix bug caused by NewProposal that unnecessarily creates a Proposal object that’s discarded on any error. +* [\#8580](https://github.com/eligion/cosmos-sdk/pull/8580) Use more cheaper method from the math/big package that provides a way to trivially check if a value is zero with .BitLen() == 0 +* [\#8567](https://github.com/eligion/cosmos-sdk/pull/8567) Fix bug by introducing pagination to GetValidatorSetByHeight response +* (x/bank) [\#8531](https://github.com/eligion/cosmos-sdk/pull/8531) Fix bug caused by ignoring errors returned by Balance.GetAddress() +* (server) [\#8399](https://github.com/eligion/cosmos-sdk/pull/8399) fix gRPC-web flag default value +* [\#8282](https://github.com/eligion/cosmos-sdk/pull/8282) fix zero time checks +* (cli) [\#9717](https://github.com/eligion/cosmos-sdk/pull/9717) Added CLI flag `--output json/text` to `tx` cli commands. +* (cli) [\#9593](https://github.com/eligion/cosmos-sdk/pull/9593) Check if chain-id is blank before verifying signatures in multisign and error. +* [\#9720](https://github.com/eligion/cosmos-sdk/pull/9720) Feegrant grant cli granter now accepts key name as well as address in general and accepts only address in --generate-only mode +* [\#9766](https://github.com/eligion/cosmos-sdk/pull/9766) Fix hardcoded ledger signing algorithm on `keys add` command. +* [\#9793](https://github.com/eligion/cosmos-sdk/pull/9793) Fixed ECDSA/secp256r1 transaction malleability. +* (server) [#9704](https://github.com/eligion/cosmos-sdk/pull/9704) Start GRPCWebServer in goroutine, avoid blocking other services from starting. +* (bank) [\#9687](https://github.com/eligion/cosmos-sdk/issues/9687) fixes [\#9159](https://github.com/eligion/cosmos-sdk/issues/9159). Added migration to prune balances with zero coins. ### Deprecated -* (grpc) [\#8926](https://github.com/cosmos/cosmos-sdk/pull/8926) The `tx` field in `SimulateRequest` has been deprecated, prefer to pass `tx_bytes` instead. -* (sdk types) [\#9498](https://github.com/cosmos/cosmos-sdk/pull/9498) `clientContext.JSONCodec` will be removed in the next version. use `clientContext.Codec` instead. +* (grpc) [\#8926](https://github.com/eligion/cosmos-sdk/pull/8926) The `tx` field in `SimulateRequest` has been deprecated, prefer to pass `tx_bytes` instead. +* (sdk types) [\#9498](https://github.com/eligion/cosmos-sdk/pull/9498) `clientContext.JSONCodec` will be removed in the next version. use `clientContext.Codec` instead. -## [v0.42.6](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.42.6) - 2021-06-18 +## [v0.42.6](https://github.com/eligion/cosmos-sdk/releases/tag/v0.42.6) - 2021-06-18 ### Improvements -* [\#9428](https://github.com/cosmos/cosmos-sdk/pull/9428) Optimize bank InitGenesis. Added `k.initBalances`. -* [\#9429](https://github.com/cosmos/cosmos-sdk/pull/9429) Add `cosmos_sdk_version` to node_info -* [\#9541](https://github.com/cosmos/cosmos-sdk/pull/9541) Bump tendermint dependency to v0.34.11. +* [\#9428](https://github.com/eligion/cosmos-sdk/pull/9428) Optimize bank InitGenesis. Added `k.initBalances`. +* [\#9429](https://github.com/eligion/cosmos-sdk/pull/9429) Add `cosmos_sdk_version` to node_info +* [\#9541](https://github.com/eligion/cosmos-sdk/pull/9541) Bump tendermint dependency to v0.34.11. ### Bug Fixes -* [\#9385](https://github.com/cosmos/cosmos-sdk/pull/9385) Fix IBC `query ibc client header` cli command. Support historical queries for query header/node-state commands. -* [\#9401](https://github.com/cosmos/cosmos-sdk/pull/9401) Fixes incorrect export of IBC identifier sequences. Previously, the next identifier sequence for clients/connections/channels was not set during genesis export. This resulted in the next identifiers being generated on the new chain to reuse old identifiers (the sequences began again from 0). -* [\#9408](https://github.com/cosmos/cosmos-sdk/pull/9408) Update simapp to use correct default broadcast mode. -* [\#9513](https://github.com/cosmos/cosmos-sdk/pull/9513) Fixes testnet CLI command. Testnet now updates the supply in genesis. Previously, when using add-genesis-account and testnet together, inconsistent genesis files would be produced, as only add-genesis-account was updating the supply. -* (x/gov) [\#8813](https://github.com/cosmos/cosmos-sdk/pull/8813) fix `GET /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits` to include initial deposit +* [\#9385](https://github.com/eligion/cosmos-sdk/pull/9385) Fix IBC `query ibc client header` cli command. Support historical queries for query header/node-state commands. +* [\#9401](https://github.com/eligion/cosmos-sdk/pull/9401) Fixes incorrect export of IBC identifier sequences. Previously, the next identifier sequence for clients/connections/channels was not set during genesis export. This resulted in the next identifiers being generated on the new chain to reuse old identifiers (the sequences began again from 0). +* [\#9408](https://github.com/eligion/cosmos-sdk/pull/9408) Update simapp to use correct default broadcast mode. +* [\#9513](https://github.com/eligion/cosmos-sdk/pull/9513) Fixes testnet CLI command. Testnet now updates the supply in genesis. Previously, when using add-genesis-account and testnet together, inconsistent genesis files would be produced, as only add-genesis-account was updating the supply. +* (x/gov) [\#8813](https://github.com/eligion/cosmos-sdk/pull/8813) fix `GET /cosmos/gov/v1beta1/proposals/{proposal_id}/deposits` to include initial deposit ### Features -* [\#9383](https://github.com/cosmos/cosmos-sdk/pull/9383) New CLI command `query ibc-transfer escrow-address ` to get the escrow address for a channel; can be used to then query balance of escrowed tokens -* (baseapp, types) [#\9390](https://github.com/cosmos/cosmos-sdk/pull/9390) Add current block header hash to `Context` -* (store) [\#9403](https://github.com/cosmos/cosmos-sdk/pull/9403) Add `RefundGas` function to `GasMeter` interface +* [\#9383](https://github.com/eligion/cosmos-sdk/pull/9383) New CLI command `query ibc-transfer escrow-address ` to get the escrow address for a channel; can be used to then query balance of escrowed tokens +* (baseapp, types) [#\9390](https://github.com/eligion/cosmos-sdk/pull/9390) Add current block header hash to `Context` +* (store) [\#9403](https://github.com/eligion/cosmos-sdk/pull/9403) Add `RefundGas` function to `GasMeter` interface -## [v0.42.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.42.5) - 2021-05-18 +## [v0.42.5](https://github.com/eligion/cosmos-sdk/releases/tag/v0.42.5) - 2021-05-18 ### Bug Fixes -* [\#9514](https://github.com/cosmos/cosmos-sdk/issues/9514) Fix panic when retrieving the `BlockGasMeter` on `(Re)CheckTx` mode. -* [\#9235](https://github.com/cosmos/cosmos-sdk/pull/9235) CreateMembershipProof/CreateNonMembershipProof now returns an error +* [\#9514](https://github.com/eligion/cosmos-sdk/issues/9514) Fix panic when retrieving the `BlockGasMeter` on `(Re)CheckTx` mode. +* [\#9235](https://github.com/eligion/cosmos-sdk/pull/9235) CreateMembershipProof/CreateNonMembershipProof now returns an error if input key is empty, or input data contains empty key. -* [\#9108](https://github.com/cosmos/cosmos-sdk/pull/9108) Fixed the bug with querying multisig account, which is not showing threshold and public_keys. -* [\#9345](https://github.com/cosmos/cosmos-sdk/pull/9345) Fix ARM support. -* [\#9040](https://github.com/cosmos/cosmos-sdk/pull/9040) Fix ENV variables binding to CLI flags for client config. +* [\#9108](https://github.com/eligion/cosmos-sdk/pull/9108) Fixed the bug with querying multisig account, which is not showing threshold and public_keys. +* [\#9345](https://github.com/eligion/cosmos-sdk/pull/9345) Fix ARM support. +* [\#9040](https://github.com/eligion/cosmos-sdk/pull/9040) Fix ENV variables binding to CLI flags for client config. ### Features -* [\#8953](https://github.com/cosmos/cosmos-sdk/pull/8953) Add the `config` CLI subcommand back to the SDK, which saves client-side configuration in a `client.toml` file. +* [\#8953](https://github.com/eligion/cosmos-sdk/pull/8953) Add the `config` CLI subcommand back to the SDK, which saves client-side configuration in a `client.toml` file. -## [v0.42.4](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.42.4) - 2021-04-08 +## [v0.42.4](https://github.com/eligion/cosmos-sdk/releases/tag/v0.42.4) - 2021-04-08 ### Client Breaking Changes -* [\#9026](https://github.com/cosmos/cosmos-sdk/pull/9026) By default, the `tx sign` and `tx sign-batch` CLI commands use SIGN_MODE_DIRECT to sign transactions for local pubkeys. For multisigs and ledger keys, the default LEGACY_AMINO_JSON is used. +* [\#9026](https://github.com/eligion/cosmos-sdk/pull/9026) By default, the `tx sign` and `tx sign-batch` CLI commands use SIGN_MODE_DIRECT to sign transactions for local pubkeys. For multisigs and ledger keys, the default LEGACY_AMINO_JSON is used. ### Bug Fixes -* (gRPC) [\#9015](https://github.com/cosmos/cosmos-sdk/pull/9015) Fix invalid status code when accessing gRPC endpoints. -* [\#9026](https://github.com/cosmos/cosmos-sdk/pull/9026) Fixed the bug that caused the `gentx` command to fail for Ledger keys. +* (gRPC) [\#9015](https://github.com/eligion/cosmos-sdk/pull/9015) Fix invalid status code when accessing gRPC endpoints. +* [\#9026](https://github.com/eligion/cosmos-sdk/pull/9026) Fixed the bug that caused the `gentx` command to fail for Ledger keys. ### Improvements -* [\#9081](https://github.com/cosmos/cosmos-sdk/pull/9081) Upgrade Tendermint to v0.34.9 that includes a security issue fix for Tendermint light clients. +* [\#9081](https://github.com/eligion/cosmos-sdk/pull/9081) Upgrade Tendermint to v0.34.9 that includes a security issue fix for Tendermint light clients. -## [v0.42.3](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.42.3) - 2021-03-24 +## [v0.42.3](https://github.com/eligion/cosmos-sdk/releases/tag/v0.42.3) - 2021-03-24 This release fixes a security vulnerability identified in x/bank. -## [v0.42.2](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.42.2) - 2021-03-19 +## [v0.42.2](https://github.com/eligion/cosmos-sdk/releases/tag/v0.42.2) - 2021-03-19 ### Improvements -* (grpc) [\#8815](https://github.com/cosmos/cosmos-sdk/pull/8815) Add orderBy parameter to `TxsByEvents` endpoint. -* (cli) [\#8826](https://github.com/cosmos/cosmos-sdk/pull/8826) Add trust to macOS Keychain for caller app by default. -* (store) [\#8811](https://github.com/cosmos/cosmos-sdk/pull/8811) store/cachekv: use typed types/kv.List instead of container/list.List +* (grpc) [\#8815](https://github.com/eligion/cosmos-sdk/pull/8815) Add orderBy parameter to `TxsByEvents` endpoint. +* (cli) [\#8826](https://github.com/eligion/cosmos-sdk/pull/8826) Add trust to macOS Keychain for caller app by default. +* (store) [\#8811](https://github.com/eligion/cosmos-sdk/pull/8811) store/cachekv: use typed types/kv.List instead of container/list.List ### Bug Fixes -* (crypto) [\#8841](https://github.com/cosmos/cosmos-sdk/pull/8841) Fix legacy multisig amino marshaling, allowing migrations to work between v0.39 and v0.40+. -* (cli tx) [\8873](https://github.com/cosmos/cosmos-sdk/pull/8873) add missing `--output-document` option to `app tx multisign-batch`. +* (crypto) [\#8841](https://github.com/eligion/cosmos-sdk/pull/8841) Fix legacy multisig amino marshaling, allowing migrations to work between v0.39 and v0.40+. +* (cli tx) [\8873](https://github.com/eligion/cosmos-sdk/pull/8873) add missing `--output-document` option to `app tx multisign-batch`. -## [v0.42.1](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.42.1) - 2021-03-10 +## [v0.42.1](https://github.com/eligion/cosmos-sdk/releases/tag/v0.42.1) - 2021-03-10 This release fixes security vulnerability identified in the simapp. -## [v0.42.0](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.42.0) - 2021-03-08 +## [v0.42.0](https://github.com/eligion/cosmos-sdk/releases/tag/v0.42.0) - 2021-03-08 -**IMPORTANT**: This release contains an important security fix for all non Cosmos Hub chains running Stargate version of the Cosmos SDK (>0.40). Non-hub chains should not be using any version of the SDK in the v0.40.x or v0.41.x release series. See [#8461](https://github.com/cosmos/cosmos-sdk/pull/8461) for more details. +**IMPORTANT**: This release contains an important security fix for all non Cosmos Hub chains running Stargate version of the Cosmos SDK (>0.40). Non-hub chains should not be using any version of the SDK in the v0.40.x or v0.41.x release series. See [#8461](https://github.com/eligion/cosmos-sdk/pull/8461) for more details. ### Improvements -* (x/ibc) [\#8624](https://github.com/cosmos/cosmos-sdk/pull/8624) Emit full header in IBC UpdateClient message. -* (x/crisis) [\#8621](https://github.com/cosmos/cosmos-sdk/issues/8621) crisis invariants names now print to loggers. +* (x/ibc) [\#8624](https://github.com/eligion/cosmos-sdk/pull/8624) Emit full header in IBC UpdateClient message. +* (x/crisis) [\#8621](https://github.com/eligion/cosmos-sdk/issues/8621) crisis invariants names now print to loggers. ### Bug fixes -* (x/evidence) [\#8461](https://github.com/cosmos/cosmos-sdk/pull/8461) Fix bech32 prefix in evidence validator address conversion -* (x/gov) [\#8806](https://github.com/cosmos/cosmos-sdk/issues/8806) Fix q gov proposals command's mishandling of the --status parameter's values. +* (x/evidence) [\#8461](https://github.com/eligion/cosmos-sdk/pull/8461) Fix bech32 prefix in evidence validator address conversion +* (x/gov) [\#8806](https://github.com/eligion/cosmos-sdk/issues/8806) Fix q gov proposals command's mishandling of the --status parameter's values. -## [v0.41.4](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.41.3) - 2021-03-02 +## [v0.41.4](https://github.com/eligion/cosmos-sdk/releases/tag/v0.41.3) - 2021-03-02 **IMPORTANT**: Due to a bug in the v0.41.x series with how evidence handles validator consensus addresses #8461, SDK based chains that are not using the default bech32 prefix (cosmos, aka all chains except for t he Cosmos Hub) should not use this release or any release in the v0.41.x series. Please see #8668 for tracking & timeline for the v0.42.0 release, which will include a fix for this issue. ### Features -* [\#7787](https://github.com/cosmos/cosmos-sdk/pull/7787) Add multisign-batch command. +* [\#7787](https://github.com/eligion/cosmos-sdk/pull/7787) Add multisign-batch command. ### Bug fixes -* [\#8730](https://github.com/cosmos/cosmos-sdk/pull/8730) Allow REST endpoint to query txs with multisig addresses. -* [\#8680](https://github.com/cosmos/cosmos-sdk/issues/8680) Fix missing timestamp in GetTxsEvent response [\#8732](https://github.com/cosmos/cosmos-sdk/pull/8732). -* [\#8681](https://github.com/cosmos/cosmos-sdk/issues/8681) Fix missing error message when calling GetTxsEvent [\#8732](https://github.com/cosmos/cosmos-sdk/pull/8732) -* (server) [\#8641](https://github.com/cosmos/cosmos-sdk/pull/8641) Fix Tendermint and application configuration reading from file -* (client/keys) [\#8639] (https://github.com/cosmos/cosmos-sdk/pull/8639) Fix keys migrate for mulitisig, offline, and ledger keys. The migrate command now takes a positional old_home_dir argument. +* [\#8730](https://github.com/eligion/cosmos-sdk/pull/8730) Allow REST endpoint to query txs with multisig addresses. +* [\#8680](https://github.com/eligion/cosmos-sdk/issues/8680) Fix missing timestamp in GetTxsEvent response [\#8732](https://github.com/eligion/cosmos-sdk/pull/8732). +* [\#8681](https://github.com/eligion/cosmos-sdk/issues/8681) Fix missing error message when calling GetTxsEvent [\#8732](https://github.com/eligion/cosmos-sdk/pull/8732) +* (server) [\#8641](https://github.com/eligion/cosmos-sdk/pull/8641) Fix Tendermint and application configuration reading from file +* (client/keys) [\#8639] (https://github.com/eligion/cosmos-sdk/pull/8639) Fix keys migrate for mulitisig, offline, and ledger keys. The migrate command now takes a positional old_home_dir argument. ### Improvements -* (store/cachekv), (x/bank/types) [\#8719](https://github.com/cosmos/cosmos-sdk/pull/8719) algorithmically fix pathologically slow code -* [\#8701](https://github.com/cosmos/cosmos-sdk/pull/8701) Upgrade tendermint v0.34.8. -* [\#8714](https://github.com/cosmos/cosmos-sdk/pull/8714) Allow accounts to have a balance of 0 at genesis. +* (store/cachekv), (x/bank/types) [\#8719](https://github.com/eligion/cosmos-sdk/pull/8719) algorithmically fix pathologically slow code +* [\#8701](https://github.com/eligion/cosmos-sdk/pull/8701) Upgrade tendermint v0.34.8. +* [\#8714](https://github.com/eligion/cosmos-sdk/pull/8714) Allow accounts to have a balance of 0 at genesis. -## [v0.41.3](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.41.3) - 2021-02-18 +## [v0.41.3](https://github.com/eligion/cosmos-sdk/releases/tag/v0.41.3) - 2021-02-18 ### Bug Fixes -* [\#8617](https://github.com/cosmos/cosmos-sdk/pull/8617) Fix build failures caused by a small API breakage introduced in tendermint v0.34.7. +* [\#8617](https://github.com/eligion/cosmos-sdk/pull/8617) Fix build failures caused by a small API breakage introduced in tendermint v0.34.7. -## [v0.41.2](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.41.2) - 2021-02-18 +## [v0.41.2](https://github.com/eligion/cosmos-sdk/releases/tag/v0.41.2) - 2021-02-18 ### Improvements * Bump tendermint dependency to v0.34.7. -## [v0.41.1](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.41.1) - 2021-02-17 +## [v0.41.1](https://github.com/eligion/cosmos-sdk/releases/tag/v0.41.1) - 2021-02-17 ### Bug Fixes -* (grpc) [\#8549](https://github.com/cosmos/cosmos-sdk/pull/8549) Make gRPC requests go through ABCI and disallow concurrency. -* (x/staking) [\#8546](https://github.com/cosmos/cosmos-sdk/pull/8546) Fix caching bug where concurrent calls to GetValidator could cause a node to crash -* (server) [\#8481](https://github.com/cosmos/cosmos-sdk/pull/8481) Don't create files when running `{appd} tendermint show-*` subcommands. -* (client/keys) [\#8436](https://github.com/cosmos/cosmos-sdk/pull/8436) Fix keybase->keyring keys migration. -* (crypto/hd) [\#8607](https://github.com/cosmos/cosmos-sdk/pull/8607) Make DerivePrivateKeyForPath error and not panic on trailing slashes. +* (grpc) [\#8549](https://github.com/eligion/cosmos-sdk/pull/8549) Make gRPC requests go through ABCI and disallow concurrency. +* (x/staking) [\#8546](https://github.com/eligion/cosmos-sdk/pull/8546) Fix caching bug where concurrent calls to GetValidator could cause a node to crash +* (server) [\#8481](https://github.com/eligion/cosmos-sdk/pull/8481) Don't create files when running `{appd} tendermint show-*` subcommands. +* (client/keys) [\#8436](https://github.com/eligion/cosmos-sdk/pull/8436) Fix keybase->keyring keys migration. +* (crypto/hd) [\#8607](https://github.com/eligion/cosmos-sdk/pull/8607) Make DerivePrivateKeyForPath error and not panic on trailing slashes. ### Improvements -* (x/ibc) [\#8458](https://github.com/cosmos/cosmos-sdk/pull/8458) Add `packet_connection` attribute to ibc events to enable relayer filtering -* [\#8396](https://github.com/cosmos/cosmos-sdk/pull/8396) Add support for ARM platform -* (x/bank) [\#8479](https://github.com/cosmos/cosmos-sdk/pull/8479) Aditional client denom metadata validation for `base` and `display` denoms. -* (codec/types) [\#8605](https://github.com/cosmos/cosmos-sdk/pull/8605) Avoid unnecessary allocations for NewAnyWithCustomTypeURL on error. +* (x/ibc) [\#8458](https://github.com/eligion/cosmos-sdk/pull/8458) Add `packet_connection` attribute to ibc events to enable relayer filtering +* [\#8396](https://github.com/eligion/cosmos-sdk/pull/8396) Add support for ARM platform +* (x/bank) [\#8479](https://github.com/eligion/cosmos-sdk/pull/8479) Aditional client denom metadata validation for `base` and `display` denoms. +* (codec/types) [\#8605](https://github.com/eligion/cosmos-sdk/pull/8605) Avoid unnecessary allocations for NewAnyWithCustomTypeURL on error. -## [v0.41.0](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.41.0) - 2021-01-26 +## [v0.41.0](https://github.com/eligion/cosmos-sdk/releases/tag/v0.41.0) - 2021-01-26 ### State Machine Breaking -* (x/ibc) [\#8266](https://github.com/cosmos/cosmos-sdk/issues/8266) Add amino JSON support for IBC MsgTransfer in order to support Ledger text signing transfer transactions. -* (x/ibc) [\#8404](https://github.com/cosmos/cosmos-sdk/pull/8404) Reorder IBC `ChanOpenAck` and `ChanOpenConfirm` handler execution to perform core handler first, followed by application callbacks. +* (x/ibc) [\#8266](https://github.com/eligion/cosmos-sdk/issues/8266) Add amino JSON support for IBC MsgTransfer in order to support Ledger text signing transfer transactions. +* (x/ibc) [\#8404](https://github.com/eligion/cosmos-sdk/pull/8404) Reorder IBC `ChanOpenAck` and `ChanOpenConfirm` handler execution to perform core handler first, followed by application callbacks. ### Bug Fixes -* (simapp) [\#8418](https://github.com/cosmos/cosmos-sdk/pull/8418) Add balance coin to supply when adding a new genesis account -* (x/bank) [\#8417](https://github.com/cosmos/cosmos-sdk/pull/8417) Validate balances and coin denom metadata on genesis +* (simapp) [\#8418](https://github.com/eligion/cosmos-sdk/pull/8418) Add balance coin to supply when adding a new genesis account +* (x/bank) [\#8417](https://github.com/eligion/cosmos-sdk/pull/8417) Validate balances and coin denom metadata on genesis -## [v0.40.1](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.40.1) - 2021-01-19 +## [v0.40.1](https://github.com/eligion/cosmos-sdk/releases/tag/v0.40.1) - 2021-01-19 ### Improvements -* (x/bank) [\#8302](https://github.com/cosmos/cosmos-sdk/issues/8302) Add gRPC and CLI queries for client denomination metadata. +* (x/bank) [\#8302](https://github.com/eligion/cosmos-sdk/issues/8302) Add gRPC and CLI queries for client denomination metadata. * (tendermint) Bump Tendermint version to [v0.34.3](https://github.com/tendermint/tendermint/releases/tag/v0.34.3). ### Bug Fixes -* [\#8085](https://github.com/cosmos/cosmos-sdk/pull/8058) fix zero time checks -* [\#8280](https://github.com/cosmos/cosmos-sdk/pull/8280) fix GET /upgrade/current query -* (x/auth) [\#8287](https://github.com/cosmos/cosmos-sdk/pull/8287) Fix `tx sign --signature-only` to return correct sequence value in signature. -* (build) [\8300](https://github.com/cosmos/cosmos-sdk/pull/8300), [\8301](https://github.com/cosmos/cosmos-sdk/pull/8301) Fix reproducible builds -* (types/errors) [\#8355][https://github.com/cosmos/cosmos-sdk/pull/8355] Fix errorWrap `Is` method. -* (x/ibc) [\#8341](https://github.com/cosmos/cosmos-sdk/pull/8341) Fix query latest consensus state. -* (proto) [\#8350][https://github.com/cosmos/cosmos-sdk/pull/8350], [\#8361](https://github.com/cosmos/cosmos-sdk/pull/8361) Update gogo proto deps with v1.3.2 security fixes -* (x/ibc) [\#8359](https://github.com/cosmos/cosmos-sdk/pull/8359) Add missing UnpackInterfaces functions to IBC Query Responses. Fixes 'cannot unpack Any' error for IBC types. -* (x/bank) [\#8317](https://github.com/cosmos/cosmos-sdk/pull/8317) Fix panic when querying for a not found client denomination metadata. +* [\#8085](https://github.com/eligion/cosmos-sdk/pull/8058) fix zero time checks +* [\#8280](https://github.com/eligion/cosmos-sdk/pull/8280) fix GET /upgrade/current query +* (x/auth) [\#8287](https://github.com/eligion/cosmos-sdk/pull/8287) Fix `tx sign --signature-only` to return correct sequence value in signature. +* (build) [\8300](https://github.com/eligion/cosmos-sdk/pull/8300), [\8301](https://github.com/eligion/cosmos-sdk/pull/8301) Fix reproducible builds +* (types/errors) [\#8355][https://github.com/eligion/cosmos-sdk/pull/8355] Fix errorWrap `Is` method. +* (x/ibc) [\#8341](https://github.com/eligion/cosmos-sdk/pull/8341) Fix query latest consensus state. +* (proto) [\#8350][https://github.com/eligion/cosmos-sdk/pull/8350], [\#8361](https://github.com/eligion/cosmos-sdk/pull/8361) Update gogo proto deps with v1.3.2 security fixes +* (x/ibc) [\#8359](https://github.com/eligion/cosmos-sdk/pull/8359) Add missing UnpackInterfaces functions to IBC Query Responses. Fixes 'cannot unpack Any' error for IBC types. +* (x/bank) [\#8317](https://github.com/eligion/cosmos-sdk/pull/8317) Fix panic when querying for a not found client denomination metadata. -## [v0.40.0](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.40.0) - 2021-01-08 +## [v0.40.0](https://github.com/eligion/cosmos-sdk/releases/tag/v0.40.0) - 2021-01-08 v0.40.0, known as the Stargate release of the Cosmos SDK, is one of the largest releases -of the Cosmos SDK since launch. Please read through this changelog and [release notes](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/RELEASE_NOTES.md) to make +of the Cosmos SDK since launch. Please read through this changelog and [release notes](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/RELEASE_NOTES.md) to make sure you are aware of any relevant breaking changes. ### Client Breaking Changes * __CLI__ - * (client/keys) [\#5889](https://github.com/cosmos/cosmos-sdk/pull/5889) remove `keys update` command. - * (x/auth) [\#5844](https://github.com/cosmos/cosmos-sdk/pull/5844) `tx sign` command now returns an error when signing is attempted with offline/multisig keys. - * (x/auth) [\#6108](https://github.com/cosmos/cosmos-sdk/pull/6108) `tx sign` command's `--validate-signatures` flag is migrated into a `tx validate-signatures` standalone command. - * (x/auth) [#7788](https://github.com/cosmos/cosmos-sdk/pull/7788) Remove `tx auth` subcommands, all auth subcommands exist as `tx ` - * (x/genutil) [\#6651](https://github.com/cosmos/cosmos-sdk/pull/6651) The `gentx` command has been improved. No longer are `--from` and `--name` flags required. Instead, a single argument, `name`, is required which refers to the key pair in the Keyring. In addition, an optional + * (client/keys) [\#5889](https://github.com/eligion/cosmos-sdk/pull/5889) remove `keys update` command. + * (x/auth) [\#5844](https://github.com/eligion/cosmos-sdk/pull/5844) `tx sign` command now returns an error when signing is attempted with offline/multisig keys. + * (x/auth) [\#6108](https://github.com/eligion/cosmos-sdk/pull/6108) `tx sign` command's `--validate-signatures` flag is migrated into a `tx validate-signatures` standalone command. + * (x/auth) [#7788](https://github.com/eligion/cosmos-sdk/pull/7788) Remove `tx auth` subcommands, all auth subcommands exist as `tx ` + * (x/genutil) [\#6651](https://github.com/eligion/cosmos-sdk/pull/6651) The `gentx` command has been improved. No longer are `--from` and `--name` flags required. Instead, a single argument, `name`, is required which refers to the key pair in the Keyring. In addition, an optional `--moniker` flag can be provided to override the moniker found in `config.toml`. - * (x/upgrade) [#7697](https://github.com/cosmos/cosmos-sdk/pull/7697) Rename flag name "--time" to "--upgrade-time", "--info" to "--upgrade-info", to keep it consistent with help message. + * (x/upgrade) [#7697](https://github.com/eligion/cosmos-sdk/pull/7697) Rename flag name "--time" to "--upgrade-time", "--info" to "--upgrade-info", to keep it consistent with help message. * __REST / Queriers__ - * (api) [\#6426](https://github.com/cosmos/cosmos-sdk/pull/6426) The ability to start an out-of-process API REST server has now been removed. Instead, the API server is now started in-process along with the application and Tendermint. Configuration options have been added to `app.toml` to enable/disable the API server along with additional HTTP server options. - * (client) [\#7246](https://github.com/cosmos/cosmos-sdk/pull/7246) The rest server endpoint `/swagger-ui/` is replaced by `/swagger/`, and contains swagger documentation for gRPC Gateway routes in addition to legacy REST routes. Swagger API is exposed only if set in `app.toml`. - * (x/auth) [\#5702](https://github.com/cosmos/cosmos-sdk/pull/5702) The `x/auth` querier route has changed from `"acc"` to `"auth"`. - * (x/bank) [\#5572](https://github.com/cosmos/cosmos-sdk/pull/5572) The `/bank/balances/{address}` endpoint now returns all account balances or a single balance by denom when the `denom` query parameter is present. - * (x/evidence) [\#5952](https://github.com/cosmos/cosmos-sdk/pull/5952) Remove CLI and REST handlers for querying `x/evidence` parameters. - * (x/gov) [#6295](https://github.com/cosmos/cosmos-sdk/pull/6295) Fix typo in querying governance params. + * (api) [\#6426](https://github.com/eligion/cosmos-sdk/pull/6426) The ability to start an out-of-process API REST server has now been removed. Instead, the API server is now started in-process along with the application and Tendermint. Configuration options have been added to `app.toml` to enable/disable the API server along with additional HTTP server options. + * (client) [\#7246](https://github.com/eligion/cosmos-sdk/pull/7246) The rest server endpoint `/swagger-ui/` is replaced by `/swagger/`, and contains swagger documentation for gRPC Gateway routes in addition to legacy REST routes. Swagger API is exposed only if set in `app.toml`. + * (x/auth) [\#5702](https://github.com/eligion/cosmos-sdk/pull/5702) The `x/auth` querier route has changed from `"acc"` to `"auth"`. + * (x/bank) [\#5572](https://github.com/eligion/cosmos-sdk/pull/5572) The `/bank/balances/{address}` endpoint now returns all account balances or a single balance by denom when the `denom` query parameter is present. + * (x/evidence) [\#5952](https://github.com/eligion/cosmos-sdk/pull/5952) Remove CLI and REST handlers for querying `x/evidence` parameters. + * (x/gov) [#6295](https://github.com/eligion/cosmos-sdk/pull/6295) Fix typo in querying governance params. * __General__ - * (baseapp) [\#6384](https://github.com/cosmos/cosmos-sdk/pull/6384) The `Result.Data` is now a Protocol Buffer encoded binary blob of type `TxData`. The `TxData` contains `Data` which contains a list of Protocol Buffer encoded message data and the corresponding message type. - * (client) [\#5783](https://github.com/cosmos/cosmos-sdk/issues/5783) Unify all coins representations on JSON client requests for governance proposals. - * (crypto) [\#7419](https://github.com/cosmos/cosmos-sdk/pull/7419) The SDK doesn't use Tendermint's `crypto.PubKey` + * (baseapp) [\#6384](https://github.com/eligion/cosmos-sdk/pull/6384) The `Result.Data` is now a Protocol Buffer encoded binary blob of type `TxData`. The `TxData` contains `Data` which contains a list of Protocol Buffer encoded message data and the corresponding message type. + * (client) [\#5783](https://github.com/eligion/cosmos-sdk/issues/5783) Unify all coins representations on JSON client requests for governance proposals. + * (crypto) [\#7419](https://github.com/eligion/cosmos-sdk/pull/7419) The SDK doesn't use Tendermint's `crypto.PubKey` interface anymore, and uses instead it's own `PubKey` interface, defined in `crypto/types`. Replace all instances of `crypto.PubKey` by `cryptotypes.Pubkey`. - * (store/rootmulti) [\#6390](https://github.com/cosmos/cosmos-sdk/pull/6390) Proofs of empty stores are no longer supported. - * (store/types) [\#5730](https://github.com/cosmos/cosmos-sdk/pull/5730) store.types.Cp() is removed in favour of types.CopyBytes(). - * (x/auth) [\#6054](https://github.com/cosmos/cosmos-sdk/pull/6054) Remove custom JSON marshaling for base accounts as multsigs cannot be bech32 decoded. - * (x/auth/vesting) [\#6859](https://github.com/cosmos/cosmos-sdk/pull/6859) Custom JSON marshaling of vesting accounts was removed. Vesting accounts are now marshaled using their default proto or amino JSON representation. - * (x/bank) [\#5785](https://github.com/cosmos/cosmos-sdk/issues/5785) In x/bank errors, JSON strings coerced to valid UTF-8 bytes at JSON marshalling time + * (store/rootmulti) [\#6390](https://github.com/eligion/cosmos-sdk/pull/6390) Proofs of empty stores are no longer supported. + * (store/types) [\#5730](https://github.com/eligion/cosmos-sdk/pull/5730) store.types.Cp() is removed in favour of types.CopyBytes(). + * (x/auth) [\#6054](https://github.com/eligion/cosmos-sdk/pull/6054) Remove custom JSON marshaling for base accounts as multsigs cannot be bech32 decoded. + * (x/auth/vesting) [\#6859](https://github.com/eligion/cosmos-sdk/pull/6859) Custom JSON marshaling of vesting accounts was removed. Vesting accounts are now marshaled using their default proto or amino JSON representation. + * (x/bank) [\#5785](https://github.com/eligion/cosmos-sdk/issues/5785) In x/bank errors, JSON strings coerced to valid UTF-8 bytes at JSON marshalling time are now replaced by human-readable expressions. This change can potentially break compatibility with all those client side tools that parse log messages. - * (x/evidence) [\#7538](https://github.com/cosmos/cosmos-sdk/pull/7538) The ABCI's `Result.Data` field for + * (x/evidence) [\#7538](https://github.com/eligion/cosmos-sdk/pull/7538) The ABCI's `Result.Data` field for `MsgSubmitEvidence` responses does not contain the raw evidence's hash, but the protobuf encoded `MsgSubmitEvidenceResponse` struct. - * (x/gov) [\#7533](https://github.com/cosmos/cosmos-sdk/pull/7533) The ABCI's `Result.Data` field for + * (x/gov) [\#7533](https://github.com/eligion/cosmos-sdk/pull/7533) The ABCI's `Result.Data` field for `MsgSubmitProposal` responses does not contain a raw binary encoding of the `proposalID`, but the protobuf encoded `MsgSubmitSubmitProposalResponse` struct. - * (x/gov) [\#6859](https://github.com/cosmos/cosmos-sdk/pull/6859) `ProposalStatus` and `VoteOption` are now JSON serialized using its protobuf name, so expect names like `PROPOSAL_STATUS_DEPOSIT_PERIOD` as opposed to `DepositPeriod`. - * (x/staking) [\#7499](https://github.com/cosmos/cosmos-sdk/pull/7499) `BondStatus` is now a protobuf `enum` instead + * (x/gov) [\#6859](https://github.com/eligion/cosmos-sdk/pull/6859) `ProposalStatus` and `VoteOption` are now JSON serialized using its protobuf name, so expect names like `PROPOSAL_STATUS_DEPOSIT_PERIOD` as opposed to `DepositPeriod`. + * (x/staking) [\#7499](https://github.com/eligion/cosmos-sdk/pull/7499) `BondStatus` is now a protobuf `enum` instead of an `int32`, and JSON serialized using its protobuf name, so expect names like `BOND_STATUS_UNBONDING` as opposed to `Unbonding`. - * (x/staking) [\#7556](https://github.com/cosmos/cosmos-sdk/pull/7556) The ABCI's `Result.Data` field for + * (x/staking) [\#7556](https://github.com/eligion/cosmos-sdk/pull/7556) The ABCI's `Result.Data` field for `MsgBeginRedelegate` and `MsgUndelegate` responses does not contain custom binary marshaled `completionTime`, but the protobuf encoded `MsgBeginRedelegateResponse` and `MsgUndelegateResponse` structs respectively ### API Breaking Changes * __Baseapp / Client__ - * (AppModule) [\#7518](https://github.com/cosmos/cosmos-sdk/pull/7518) [\#7584](https://github.com/cosmos/cosmos-sdk/pull/7584) Rename `AppModule.RegisterQueryServices` to `AppModule.RegisterServices`, as this method now registers multiple services (the gRPC query service and the protobuf Msg service). A `Configurator` struct is used to hold the different services. - * (baseapp) [\#5865](https://github.com/cosmos/cosmos-sdk/pull/5865) The `SimulationResponse` returned from tx simulation is now JSON encoded instead of Amino binary. - * (client) [\#6290](https://github.com/cosmos/cosmos-sdk/pull/6290) `CLIContext` is renamed to `Context`. `Context` and all related methods have been moved from package context to client. - * (client) [\#6525](https://github.com/cosmos/cosmos-sdk/pull/6525) Removed support for `indent` in JSON responses. Clients should consider piping to an external tool such as `jq`. - * (client) [\#8107](https://github.com/cosmos/cosmos-sdk/pull/8107) Renamed `PrintOutput` and `PrintOutputLegacy` + * (AppModule) [\#7518](https://github.com/eligion/cosmos-sdk/pull/7518) [\#7584](https://github.com/eligion/cosmos-sdk/pull/7584) Rename `AppModule.RegisterQueryServices` to `AppModule.RegisterServices`, as this method now registers multiple services (the gRPC query service and the protobuf Msg service). A `Configurator` struct is used to hold the different services. + * (baseapp) [\#5865](https://github.com/eligion/cosmos-sdk/pull/5865) The `SimulationResponse` returned from tx simulation is now JSON encoded instead of Amino binary. + * (client) [\#6290](https://github.com/eligion/cosmos-sdk/pull/6290) `CLIContext` is renamed to `Context`. `Context` and all related methods have been moved from package context to client. + * (client) [\#6525](https://github.com/eligion/cosmos-sdk/pull/6525) Removed support for `indent` in JSON responses. Clients should consider piping to an external tool such as `jq`. + * (client) [\#8107](https://github.com/eligion/cosmos-sdk/pull/8107) Renamed `PrintOutput` and `PrintOutputLegacy` methods of the `context.Client` object to `PrintProto` and `PrintObjectLegacy`. - * (client/flags) [\#6632](https://github.com/cosmos/cosmos-sdk/pull/6632) Remove NewCompletionCmd(), the function is now available in tendermint. - * (client/input) [\#5904](https://github.com/cosmos/cosmos-sdk/pull/5904) Removal of unnecessary `GetCheckPassword`, `PrintPrefixed` functions. - * (client/keys) [\#5889](https://github.com/cosmos/cosmos-sdk/pull/5889) Rename `NewKeyBaseFromDir()` -> `NewLegacyKeyBaseFromDir()`. - * (client/keys) [\#5820](https://github.com/cosmos/cosmos-sdk/pull/5820/) Removed method CloseDB from Keybase interface. - * (client/rpc) [\#6290](https://github.com/cosmos/cosmos-sdk/pull/6290) `client` package and subdirs reorganization. - * (client/lcd) [\#6290](https://github.com/cosmos/cosmos-sdk/pull/6290) `CliCtx` of struct `RestServer` in package client/lcd has been renamed to `ClientCtx`. - * (codec) [\#6330](https://github.com/cosmos/cosmos-sdk/pull/6330) `codec.RegisterCrypto` has been moved to the `crypto/codec` package and the global `codec.Cdc` Amino instance has been deprecated and moved to the `codec/legacy_global` package. - * (codec) [\#8080](https://github.com/cosmos/cosmos-sdk/pull/8080) Updated the `codec.Marshaler` interface + * (client/flags) [\#6632](https://github.com/eligion/cosmos-sdk/pull/6632) Remove NewCompletionCmd(), the function is now available in tendermint. + * (client/input) [\#5904](https://github.com/eligion/cosmos-sdk/pull/5904) Removal of unnecessary `GetCheckPassword`, `PrintPrefixed` functions. + * (client/keys) [\#5889](https://github.com/eligion/cosmos-sdk/pull/5889) Rename `NewKeyBaseFromDir()` -> `NewLegacyKeyBaseFromDir()`. + * (client/keys) [\#5820](https://github.com/eligion/cosmos-sdk/pull/5820/) Removed method CloseDB from Keybase interface. + * (client/rpc) [\#6290](https://github.com/eligion/cosmos-sdk/pull/6290) `client` package and subdirs reorganization. + * (client/lcd) [\#6290](https://github.com/eligion/cosmos-sdk/pull/6290) `CliCtx` of struct `RestServer` in package client/lcd has been renamed to `ClientCtx`. + * (codec) [\#6330](https://github.com/eligion/cosmos-sdk/pull/6330) `codec.RegisterCrypto` has been moved to the `crypto/codec` package and the global `codec.Cdc` Amino instance has been deprecated and moved to the `codec/legacy_global` package. + * (codec) [\#8080](https://github.com/eligion/cosmos-sdk/pull/8080) Updated the `codec.Marshaler` interface * Moved `MarshalAny` and `UnmarshalAny` helper functions to `codec.Marshaler` and renamed to `MarshalInterface` and `UnmarshalInterface` respectively. These functions must take interface as a parameter (not a concrete type nor `Any` object). Underneath they use `Any` wrapping for correct protobuf serialization. - * (crypto) [\#6780](https://github.com/cosmos/cosmos-sdk/issues/6780) Move ledger code to its own package. - * (crypto/types/multisig) [\#6373](https://github.com/cosmos/cosmos-sdk/pull/6373) `multisig.Multisignature` has been renamed to `AminoMultisignature` + * (crypto) [\#6780](https://github.com/eligion/cosmos-sdk/issues/6780) Move ledger code to its own package. + * (crypto/types/multisig) [\#6373](https://github.com/eligion/cosmos-sdk/pull/6373) `multisig.Multisignature` has been renamed to `AminoMultisignature` * (codec) `*codec.LegacyAmino` is now a wrapper around Amino which provides backwards compatibility with protobuf `Any`. ALL legacy code should use `*codec.LegacyAmino` instead of `*amino.Codec` directly - * (crypto) [\#5880](https://github.com/cosmos/cosmos-sdk/pull/5880) Merge `crypto/keys/mintkey` into `crypto`. - * (crypto/hd) [\#5904](https://github.com/cosmos/cosmos-sdk/pull/5904) `crypto/keys/hd` moved to `crypto/hd`. + * (crypto) [\#5880](https://github.com/eligion/cosmos-sdk/pull/5880) Merge `crypto/keys/mintkey` into `crypto`. + * (crypto/hd) [\#5904](https://github.com/eligion/cosmos-sdk/pull/5904) `crypto/keys/hd` moved to `crypto/hd`. * (crypto/keyring): - * [\#5866](https://github.com/cosmos/cosmos-sdk/pull/5866) Rename `crypto/keys/` to `crypto/keyring/`. - * [\#5904](https://github.com/cosmos/cosmos-sdk/pull/5904) `Keybase` -> `Keyring` interfaces migration. `LegacyKeybase` interface is added in order + * [\#5866](https://github.com/eligion/cosmos-sdk/pull/5866) Rename `crypto/keys/` to `crypto/keyring/`. + * [\#5904](https://github.com/eligion/cosmos-sdk/pull/5904) `Keybase` -> `Keyring` interfaces migration. `LegacyKeybase` interface is added in order to guarantee limited backward compatibility with the old Keybase interface for the sole purpose of migrating keys across the new keyring backends. `NewLegacy` - constructor is provided [\#5889](https://github.com/cosmos/cosmos-sdk/pull/5889) to allow for smooth migration of keys from the legacy LevelDB based implementation - to new keyring backends. Plus, the package and the new keyring no longer depends on the sdk.Config singleton. Please consult the [package documentation](https://github.com/cosmos/cosmos-sdk/tree/master/crypto/keyring/doc.go) for more + constructor is provided [\#5889](https://github.com/eligion/cosmos-sdk/pull/5889) to allow for smooth migration of keys from the legacy LevelDB based implementation + to new keyring backends. Plus, the package and the new keyring no longer depends on the sdk.Config singleton. Please consult the [package documentation](https://github.com/eligion/cosmos-sdk/tree/master/crypto/keyring/doc.go) for more information on how to implement the new `Keyring` interface. - * [\#5858](https://github.com/cosmos/cosmos-sdk/pull/5858) Make Keyring store keys by name and address's hexbytes representation. - * (export) [\#5952](https://github.com/cosmos/cosmos-sdk/pull/5952) `AppExporter` now returns ABCI consensus parameters to be included in marshaled exported state. These parameters must be returned from the application via the `BaseApp`. + * [\#5858](https://github.com/eligion/cosmos-sdk/pull/5858) Make Keyring store keys by name and address's hexbytes representation. + * (export) [\#5952](https://github.com/eligion/cosmos-sdk/pull/5952) `AppExporter` now returns ABCI consensus parameters to be included in marshaled exported state. These parameters must be returned from the application via the `BaseApp`. * (simapp) Deprecating and renaming `MakeEncodingConfig` to `MakeTestEncodingConfig` (both in `simapp` and `simapp/params` packages). - * (store) [\#5803](https://github.com/cosmos/cosmos-sdk/pull/5803) The `store.CommitMultiStore` interface now includes the new `snapshots.Snapshotter` interface as well. - * (types) [\#5579](https://github.com/cosmos/cosmos-sdk/pull/5579) The `keepRecent` field has been removed from the `PruningOptions` type. + * (store) [\#5803](https://github.com/eligion/cosmos-sdk/pull/5803) The `store.CommitMultiStore` interface now includes the new `snapshots.Snapshotter` interface as well. + * (types) [\#5579](https://github.com/eligion/cosmos-sdk/pull/5579) The `keepRecent` field has been removed from the `PruningOptions` type. The `PruningOptions` type now only includes fields `KeepEvery` and `SnapshotEvery`, where `KeepEvery` determines which committed heights are flushed to disk and `SnapshotEvery` determines which of these heights are kept after pruning. The `IsValid` method should be called whenever using these options. Methods `SnapshotVersion` and `FlushVersion` accept a version arugment and determine if the version should be flushed to disk or kept as a snapshot. Note, `KeepRecent` is automatically inferred from the options and provided directly the IAVL store. - * (types) [\#5533](https://github.com/cosmos/cosmos-sdk/pull/5533) Refactored `AppModuleBasic` and `AppModuleGenesis` + * (types) [\#5533](https://github.com/eligion/cosmos-sdk/pull/5533) Refactored `AppModuleBasic` and `AppModuleGenesis` to now accept a `codec.JSONMarshaler` for modular serialization of genesis state. - * (types/rest) [\#5779](https://github.com/cosmos/cosmos-sdk/pull/5779) Drop unused Parse{Int64OrReturnBadRequest,QueryParamBool}() functions. + * (types/rest) [\#5779](https://github.com/eligion/cosmos-sdk/pull/5779) Drop unused Parse{Int64OrReturnBadRequest,QueryParamBool}() functions. * __Modules__ - * (modules) [\#7243](https://github.com/cosmos/cosmos-sdk/pull/7243) Rename `RegisterCodec` to `RegisterLegacyAminoCodec` and `codec.New()` is now renamed to `codec.NewLegacyAmino()` - * (modules) [\#6564](https://github.com/cosmos/cosmos-sdk/pull/6564) Constant `DefaultParamspace` is removed from all modules, use ModuleName instead. - * (modules) [\#5989](https://github.com/cosmos/cosmos-sdk/pull/5989) `AppModuleBasic.GetTxCmd` now takes a single `CLIContext` parameter. - * (modules) [\#5664](https://github.com/cosmos/cosmos-sdk/pull/5664) Remove amino `Codec` from simulation `StoreDecoder`, which now returns a function closure in order to unmarshal the key-value pairs. - * (modules) [\#5555](https://github.com/cosmos/cosmos-sdk/pull/5555) Move `x/auth/client/utils/` types and functions to `x/auth/client/`. - * (modules) [\#5572](https://github.com/cosmos/cosmos-sdk/pull/5572) Move account balance logic and APIs from `x/auth` to `x/bank`. - * (modules) [\#6326](https://github.com/cosmos/cosmos-sdk/pull/6326) `AppModuleBasic.GetQueryCmd` now takes a single `client.Context` parameter. - * (modules) [\#6336](https://github.com/cosmos/cosmos-sdk/pull/6336) `AppModuleBasic.RegisterQueryService` method was added to support gRPC queries, and `QuerierRoute` and `NewQuerierHandler` were deprecated. - * (modules) [\#6311](https://github.com/cosmos/cosmos-sdk/issues/6311) Remove `alias.go` usage - * (modules) [\#6447](https://github.com/cosmos/cosmos-sdk/issues/6447) Rename `blacklistedAddrs` to `blockedAddrs`. - * (modules) [\#6834](https://github.com/cosmos/cosmos-sdk/issues/6834) Add `RegisterInterfaces` method to `AppModuleBasic` to support registration of protobuf interface types. - * (modules) [\#6734](https://github.com/cosmos/cosmos-sdk/issues/6834) Add `TxEncodingConfig` parameter to `AppModuleBasic.ValidateGenesis` command to support JSON tx decoding in `genutil`. - * (modules) [#7764](https://github.com/cosmos/cosmos-sdk/pull/7764) Added module initialization options: + * (modules) [\#7243](https://github.com/eligion/cosmos-sdk/pull/7243) Rename `RegisterCodec` to `RegisterLegacyAminoCodec` and `codec.New()` is now renamed to `codec.NewLegacyAmino()` + * (modules) [\#6564](https://github.com/eligion/cosmos-sdk/pull/6564) Constant `DefaultParamspace` is removed from all modules, use ModuleName instead. + * (modules) [\#5989](https://github.com/eligion/cosmos-sdk/pull/5989) `AppModuleBasic.GetTxCmd` now takes a single `CLIContext` parameter. + * (modules) [\#5664](https://github.com/eligion/cosmos-sdk/pull/5664) Remove amino `Codec` from simulation `StoreDecoder`, which now returns a function closure in order to unmarshal the key-value pairs. + * (modules) [\#5555](https://github.com/eligion/cosmos-sdk/pull/5555) Move `x/auth/client/utils/` types and functions to `x/auth/client/`. + * (modules) [\#5572](https://github.com/eligion/cosmos-sdk/pull/5572) Move account balance logic and APIs from `x/auth` to `x/bank`. + * (modules) [\#6326](https://github.com/eligion/cosmos-sdk/pull/6326) `AppModuleBasic.GetQueryCmd` now takes a single `client.Context` parameter. + * (modules) [\#6336](https://github.com/eligion/cosmos-sdk/pull/6336) `AppModuleBasic.RegisterQueryService` method was added to support gRPC queries, and `QuerierRoute` and `NewQuerierHandler` were deprecated. + * (modules) [\#6311](https://github.com/eligion/cosmos-sdk/issues/6311) Remove `alias.go` usage + * (modules) [\#6447](https://github.com/eligion/cosmos-sdk/issues/6447) Rename `blacklistedAddrs` to `blockedAddrs`. + * (modules) [\#6834](https://github.com/eligion/cosmos-sdk/issues/6834) Add `RegisterInterfaces` method to `AppModuleBasic` to support registration of protobuf interface types. + * (modules) [\#6734](https://github.com/eligion/cosmos-sdk/issues/6834) Add `TxEncodingConfig` parameter to `AppModuleBasic.ValidateGenesis` command to support JSON tx decoding in `genutil`. + * (modules) [#7764](https://github.com/eligion/cosmos-sdk/pull/7764) Added module initialization options: * `server/types.AppExporter` requires extra argument: `AppOptions`. * `server.AddCommands` requires extra argument: `addStartFlags types.ModuleInitFlags` - * `x/crisis.NewAppModule` has a new attribute: `skipGenesisInvariants`. [PR](https://github.com/cosmos/cosmos-sdk/pull/7764) - * (types) [\#6327](https://github.com/cosmos/cosmos-sdk/pull/6327) `sdk.Msg` now inherits `proto.Message`, as a result all `sdk.Msg` types now use pointer semantics. - * (types) [\#7032](https://github.com/cosmos/cosmos-sdk/pull/7032) All types ending with `ID` (e.g. `ProposalID`) now end with `Id` (e.g. `ProposalId`), to match default Protobuf generated format. Also see [\#7033](https://github.com/cosmos/cosmos-sdk/pull/7033) for more details. - * (x/auth) [\#6029](https://github.com/cosmos/cosmos-sdk/pull/6029) Module accounts have been moved from `x/supply` to `x/auth`. - * (x/auth) [\#6443](https://github.com/cosmos/cosmos-sdk/issues/6443) Move `FeeTx` and `TxWithMemo` interfaces from `x/auth/ante` to `types`. - * (x/auth) [\#7006](https://github.com/cosmos/cosmos-sdk/pull/7006) All `AccountRetriever` methods now take `client.Context` as a parameter instead of as a struct member. - * (x/auth) [\#6270](https://github.com/cosmos/cosmos-sdk/pull/6270) The passphrase argument has been removed from the signature of the following functions and methods: `BuildAndSign`, ` MakeSignature`, ` SignStdTx`, `TxBuilder.BuildAndSign`, `TxBuilder.Sign`, `TxBuilder.SignStdTx` - * (x/auth) [\#6428](https://github.com/cosmos/cosmos-sdk/issues/6428): + * `x/crisis.NewAppModule` has a new attribute: `skipGenesisInvariants`. [PR](https://github.com/eligion/cosmos-sdk/pull/7764) + * (types) [\#6327](https://github.com/eligion/cosmos-sdk/pull/6327) `sdk.Msg` now inherits `proto.Message`, as a result all `sdk.Msg` types now use pointer semantics. + * (types) [\#7032](https://github.com/eligion/cosmos-sdk/pull/7032) All types ending with `ID` (e.g. `ProposalID`) now end with `Id` (e.g. `ProposalId`), to match default Protobuf generated format. Also see [\#7033](https://github.com/eligion/cosmos-sdk/pull/7033) for more details. + * (x/auth) [\#6029](https://github.com/eligion/cosmos-sdk/pull/6029) Module accounts have been moved from `x/supply` to `x/auth`. + * (x/auth) [\#6443](https://github.com/eligion/cosmos-sdk/issues/6443) Move `FeeTx` and `TxWithMemo` interfaces from `x/auth/ante` to `types`. + * (x/auth) [\#7006](https://github.com/eligion/cosmos-sdk/pull/7006) All `AccountRetriever` methods now take `client.Context` as a parameter instead of as a struct member. + * (x/auth) [\#6270](https://github.com/eligion/cosmos-sdk/pull/6270) The passphrase argument has been removed from the signature of the following functions and methods: `BuildAndSign`, ` MakeSignature`, ` SignStdTx`, `TxBuilder.BuildAndSign`, `TxBuilder.Sign`, `TxBuilder.SignStdTx` + * (x/auth) [\#6428](https://github.com/eligion/cosmos-sdk/issues/6428): * `NewAnteHandler` and `NewSigVerificationDecorator` both now take a `SignModeHandler` parameter. * `SignatureVerificationGasConsumer` now has the signature: `func(meter sdk.GasMeter, sig signing.SignatureV2, params types.Params) error`. * The `SigVerifiableTx` interface now has a `GetSignaturesV2() ([]signing.SignatureV2, error)` method and no longer has the `GetSignBytes` method. - * (x/auth/tx) [\#8106](https://github.com/cosmos/cosmos-sdk/pull/8106) change related to missing append functionality in + * (x/auth/tx) [\#8106](https://github.com/eligion/cosmos-sdk/pull/8106) change related to missing append functionality in client transaction signing + added `overwriteSig` argument to `x/auth/client.SignTx` and `client/tx.Sign` functions. + removed `x/auth/tx.go:wrapper.GetSignatures`. The `wrapper` provides `TxBuilder` functionality, and it's a private structure. That function was not used at all and it's not exposed through the `TxBuilder` interface. - * (x/bank) [\#7327](https://github.com/cosmos/cosmos-sdk/pull/7327) AddCoins and SubtractCoins no longer return a resultingValue and will only return an error. - * (x/capability) [#7918](https://github.com/cosmos/cosmos-sdk/pull/7918) Add x/capability safety checks: + * (x/bank) [\#7327](https://github.com/eligion/cosmos-sdk/pull/7327) AddCoins and SubtractCoins no longer return a resultingValue and will only return an error. + * (x/capability) [#7918](https://github.com/eligion/cosmos-sdk/pull/7918) Add x/capability safety checks: * All outward facing APIs will now check that capability is not nil and name is not empty before performing any state-machine changes * `SetIndex` has been renamed to `InitializeIndex` - * (x/evidence) [\#7251](https://github.com/cosmos/cosmos-sdk/pull/7251) New evidence types and light client evidence handling. The module function names changed. - * (x/evidence) [\#5952](https://github.com/cosmos/cosmos-sdk/pull/5952) Remove APIs for getting and setting `x/evidence` parameters. `BaseApp` now uses a `ParamStore` to manage Tendermint consensus parameters which is managed via the `x/params` `Substore` type. - * (x/gov) [\#6147](https://github.com/cosmos/cosmos-sdk/pull/6147) The `Content` field on `Proposal` and `MsgSubmitProposal` + * (x/evidence) [\#7251](https://github.com/eligion/cosmos-sdk/pull/7251) New evidence types and light client evidence handling. The module function names changed. + * (x/evidence) [\#5952](https://github.com/eligion/cosmos-sdk/pull/5952) Remove APIs for getting and setting `x/evidence` parameters. `BaseApp` now uses a `ParamStore` to manage Tendermint consensus parameters which is managed via the `x/params` `Substore` type. + * (x/gov) [\#6147](https://github.com/eligion/cosmos-sdk/pull/6147) The `Content` field on `Proposal` and `MsgSubmitProposal` is now `Any` in concordance with [ADR 019](docs/architecture/adr-019-protobuf-state-encoding.md) and `GetContent` should now be used to retrieve the actual proposal `Content`. Also the `NewMsgSubmitProposal` constructor now may return an `error` - * (x/ibc) [\#6374](https://github.com/cosmos/cosmos-sdk/pull/6374) `VerifyMembership` and `VerifyNonMembership` now take a `specs []string` argument to specify the proof format used for verification. Most SDK chains can simply use `commitmenttypes.GetSDKSpecs()` for this argument. - * (x/params) [\#5619](https://github.com/cosmos/cosmos-sdk/pull/5619) The `x/params` keeper now accepts a `codec.Marshaller` instead of + * (x/ibc) [\#6374](https://github.com/eligion/cosmos-sdk/pull/6374) `VerifyMembership` and `VerifyNonMembership` now take a `specs []string` argument to specify the proof format used for verification. Most SDK chains can simply use `commitmenttypes.GetSDKSpecs()` for this argument. + * (x/params) [\#5619](https://github.com/eligion/cosmos-sdk/pull/5619) The `x/params` keeper now accepts a `codec.Marshaller` instead of a reference to an amino codec. Amino is still used for JSON serialization. - * (x/staking) [\#6451](https://github.com/cosmos/cosmos-sdk/pull/6451) `DefaultParamspace` and `ParamKeyTable` in staking module are moved from keeper to types to enforce consistency. - * (x/staking) [\#7419](https://github.com/cosmos/cosmos-sdk/pull/7419) The `TmConsPubKey` method on ValidatorI has been + * (x/staking) [\#6451](https://github.com/eligion/cosmos-sdk/pull/6451) `DefaultParamspace` and `ParamKeyTable` in staking module are moved from keeper to types to enforce consistency. + * (x/staking) [\#7419](https://github.com/eligion/cosmos-sdk/pull/7419) The `TmConsPubKey` method on ValidatorI has been removed and replaced instead by `ConsPubKey` (which returns a SDK `cryptotypes.PubKey`) and `TmConsPublicKey` (which returns a Tendermint proto PublicKey). - * (x/staking/types) [\#7447](https://github.com/cosmos/cosmos-sdk/issues/7447) Remove bech32 PubKey support: + * (x/staking/types) [\#7447](https://github.com/eligion/cosmos-sdk/issues/7447) Remove bech32 PubKey support: * `ValidatorI` interface update. `GetConsPubKey` renamed to `TmConsPubKey` (consensus public key must be a tendermint key). `TmConsPubKey`, `GetConsAddr` methods return error. * `Validator` update. Methods changed in `ValidatorI` (as described above) and `ToTmValidator` return error. * `Validator.ConsensusPubkey` type changed from `string` to `codectypes.Any`. * `MsgCreateValidator.Pubkey` type changed from `string` to `codectypes.Any`. - * (x/supply) [\#6010](https://github.com/cosmos/cosmos-sdk/pull/6010) All `x/supply` types and APIs have been moved to `x/bank`. - * [\#6409](https://github.com/cosmos/cosmos-sdk/pull/6409) Rename all IsEmpty methods to Empty across the codebase and enforce consistency. - * [\#6231](https://github.com/cosmos/cosmos-sdk/pull/6231) Simplify `AppModule` interface, `Route` and `NewHandler` methods become only `Route` + * (x/supply) [\#6010](https://github.com/eligion/cosmos-sdk/pull/6010) All `x/supply` types and APIs have been moved to `x/bank`. + * [\#6409](https://github.com/eligion/cosmos-sdk/pull/6409) Rename all IsEmpty methods to Empty across the codebase and enforce consistency. + * [\#6231](https://github.com/eligion/cosmos-sdk/pull/6231) Simplify `AppModule` interface, `Route` and `NewHandler` methods become only `Route` and returns a new `Route` type. - * (x/slashing) [\#6212](https://github.com/cosmos/cosmos-sdk/pull/6212) Remove `Get*` prefixes from key construction functions - * (server) [\#6079](https://github.com/cosmos/cosmos-sdk/pull/6079) Remove `UpgradeOldPrivValFile` (deprecated in Tendermint Core v0.28). - * [\#5719](https://github.com/cosmos/cosmos-sdk/pull/5719) Bump Go requirement to 1.14+ + * (x/slashing) [\#6212](https://github.com/eligion/cosmos-sdk/pull/6212) Remove `Get*` prefixes from key construction functions + * (server) [\#6079](https://github.com/eligion/cosmos-sdk/pull/6079) Remove `UpgradeOldPrivValFile` (deprecated in Tendermint Core v0.28). + * [\#5719](https://github.com/eligion/cosmos-sdk/pull/5719) Bump Go requirement to 1.14+ ### State Machine Breaking * __General__ - * (client) [\#7268](https://github.com/cosmos/cosmos-sdk/pull/7268) / [\#7147](https://github.com/cosmos/cosmos-sdk/pull/7147) Introduce new protobuf based PubKeys, and migrate PubKey in BaseAccount to use this new protobuf based PubKey format + * (client) [\#7268](https://github.com/eligion/cosmos-sdk/pull/7268) / [\#7147](https://github.com/eligion/cosmos-sdk/pull/7147) Introduce new protobuf based PubKeys, and migrate PubKey in BaseAccount to use this new protobuf based PubKey format * __Modules__ - * (modules) [\#5572](https://github.com/cosmos/cosmos-sdk/pull/5572) Separate balance from accounts per ADR 004. + * (modules) [\#5572](https://github.com/eligion/cosmos-sdk/pull/5572) Separate balance from accounts per ADR 004. * Account balances are now persisted and retrieved via the `x/bank` module. * Vesting account interface has been modified to account for changes. * Callers to `NewBaseVestingAccount` are responsible for verifying account balance in relation to the original vesting amount. * The `SendKeeper` and `ViewKeeper` interfaces in `x/bank` have been modified to account for changes. - * (x/auth) [\#5533](https://github.com/cosmos/cosmos-sdk/pull/5533) Migrate the `x/auth` module to use Protocol Buffers for state + * (x/auth) [\#5533](https://github.com/eligion/cosmos-sdk/pull/5533) Migrate the `x/auth` module to use Protocol Buffers for state serialization instead of Amino. * The `BaseAccount.PubKey` field is now represented as a Bech32 string instead of a `crypto.Pubkey`. * `NewBaseAccountWithAddress` now returns a reference to a `BaseAccount`. @@ -711,10 +711,10 @@ sure you are aware of any relevant breaking changes. requiring a concrete codec to know how to serialize accounts. * The `AccountRetriever` type now accepts a `Codec` in its constructor in order to know how to serialize accounts. - * (x/bank) [\#6518](https://github.com/cosmos/cosmos-sdk/pull/6518) Support for global and per-denomination send enabled flags. + * (x/bank) [\#6518](https://github.com/eligion/cosmos-sdk/pull/6518) Support for global and per-denomination send enabled flags. * Existing send_enabled global flag has been moved into a Params structure as `default_send_enabled`. * An array of: `{denom: string, enabled: bool}` is added to bank Params to support per-denomination override of global default value. - * (x/distribution) [\#5610](https://github.com/cosmos/cosmos-sdk/pull/5610) Migrate the `x/distribution` module to use Protocol Buffers for state + * (x/distribution) [\#5610](https://github.com/eligion/cosmos-sdk/pull/5610) Migrate the `x/distribution` module to use Protocol Buffers for state serialization instead of Amino. The exact codec used is `codec.HybridCodec` which utilizes Protobuf for binary encoding and Amino for JSON encoding. * `ValidatorHistoricalRewards.ReferenceCount` is now of types `uint32` instead of `uint16`. @@ -723,7 +723,7 @@ sure you are aware of any relevant breaking changes. * `ValidatorAccumulatedCommission` is now a struct with `commission`. * The `Keeper` constructor now takes a `codec.Marshaler` instead of a concrete Amino codec. This exact type provided is specified by `ModuleCdc`. - * (x/evidence) [\#5634](https://github.com/cosmos/cosmos-sdk/pull/5634) Migrate the `x/evidence` module to use Protocol Buffers for state + * (x/evidence) [\#5634](https://github.com/eligion/cosmos-sdk/pull/5634) Migrate the `x/evidence` module to use Protocol Buffers for state serialization instead of Amino. * The `internal` sub-package has been removed in order to expose the types proto file. * The module now accepts a `Codec` interface which extends the `codec.Marshaler` interface by @@ -731,26 +731,26 @@ sure you are aware of any relevant breaking changes. * The `MsgSubmitEvidence` message has been removed in favor of `MsgSubmitEvidenceBase`. The application-level codec must now define the concrete `MsgSubmitEvidence` type which must implement the module's `MsgSubmitEvidence` interface. - * (x/evidence) [\#5952](https://github.com/cosmos/cosmos-sdk/pull/5952) Remove parameters from `x/evidence` genesis and module state. The `x/evidence` module now solely uses Tendermint consensus parameters to determine of evidence is valid or not. - * (x/gov) [\#5737](https://github.com/cosmos/cosmos-sdk/pull/5737) Migrate the `x/gov` module to use Protocol + * (x/evidence) [\#5952](https://github.com/eligion/cosmos-sdk/pull/5952) Remove parameters from `x/evidence` genesis and module state. The `x/evidence` module now solely uses Tendermint consensus parameters to determine of evidence is valid or not. + * (x/gov) [\#5737](https://github.com/eligion/cosmos-sdk/pull/5737) Migrate the `x/gov` module to use Protocol Buffers for state serialization instead of Amino. * `MsgSubmitProposal` will be removed in favor of the application-level proto-defined `MsgSubmitProposal` which implements the `MsgSubmitProposalI` interface. Applications should extend the `NewMsgSubmitProposalBase` type to define their own concrete `MsgSubmitProposal` types. * The module now accepts a `Codec` interface which extends the `codec.Marshaler` interface by requiring a concrete codec to know how to serialize `Proposal` types. - * (x/mint) [\#5634](https://github.com/cosmos/cosmos-sdk/pull/5634) Migrate the `x/mint` module to use Protocol Buffers for state + * (x/mint) [\#5634](https://github.com/eligion/cosmos-sdk/pull/5634) Migrate the `x/mint` module to use Protocol Buffers for state serialization instead of Amino. * The `internal` sub-package has been removed in order to expose the types proto file. - * (x/slashing) [\#5627](https://github.com/cosmos/cosmos-sdk/pull/5627) Migrate the `x/slashing` module to use Protocol Buffers for state + * (x/slashing) [\#5627](https://github.com/eligion/cosmos-sdk/pull/5627) Migrate the `x/slashing` module to use Protocol Buffers for state serialization instead of Amino. The exact codec used is `codec.HybridCodec` which utilizes Protobuf for binary encoding and Amino for JSON encoding. * The `Keeper` constructor now takes a `codec.Marshaler` instead of a concrete Amino codec. This exact type provided is specified by `ModuleCdc`. - * (x/staking) [\#6844](https://github.com/cosmos/cosmos-sdk/pull/6844) Validators are now inserted into the unbonding queue based on their unbonding time and height. The relevant keeper APIs are modified to reflect these changes by now also requiring a height. - * (x/staking) [\#6061](https://github.com/cosmos/cosmos-sdk/pull/6061) Allow a validator to immediately unjail when no signing info is present due to + * (x/staking) [\#6844](https://github.com/eligion/cosmos-sdk/pull/6844) Validators are now inserted into the unbonding queue based on their unbonding time and height. The relevant keeper APIs are modified to reflect these changes by now also requiring a height. + * (x/staking) [\#6061](https://github.com/eligion/cosmos-sdk/pull/6061) Allow a validator to immediately unjail when no signing info is present due to falling below their minimum self-delegation and never having been bonded. The validator may immediately unjail once they've met their minimum self-delegation. - * (x/staking) [\#5600](https://github.com/cosmos/cosmos-sdk/pull/5600) Migrate the `x/staking` module to use Protocol Buffers for state + * (x/staking) [\#5600](https://github.com/eligion/cosmos-sdk/pull/5600) Migrate the `x/staking` module to use Protocol Buffers for state serialization instead of Amino. The exact codec used is `codec.HybridCodec` which utilizes Protobuf for binary encoding and Amino for JSON encoding. * `BondStatus` is now of type `int32` instead of `byte`. @@ -758,17 +758,17 @@ sure you are aware of any relevant breaking changes. * Every reference of `crypto.Pubkey` in context of a `Validator` is now of type string. `GetPubKeyFromBech32` must be used to get the `crypto.Pubkey`. * The `Keeper` constructor now takes a `codec.Marshaler` instead of a concrete Amino codec. This exact type provided is specified by `ModuleCdc`. - * (x/staking) [\#7979](https://github.com/cosmos/cosmos-sdk/pull/7979) keeper pubkey storage serialization migration + * (x/staking) [\#7979](https://github.com/eligion/cosmos-sdk/pull/7979) keeper pubkey storage serialization migration from bech32 to protobuf. - * (x/supply) [\#6010](https://github.com/cosmos/cosmos-sdk/pull/6010) Removed the `x/supply` module by merging the existing types and APIs into the `x/bank` module. - * (x/supply) [\#5533](https://github.com/cosmos/cosmos-sdk/pull/5533) Migrate the `x/supply` module to use Protocol Buffers for state + * (x/supply) [\#6010](https://github.com/eligion/cosmos-sdk/pull/6010) Removed the `x/supply` module by merging the existing types and APIs into the `x/bank` module. + * (x/supply) [\#5533](https://github.com/eligion/cosmos-sdk/pull/5533) Migrate the `x/supply` module to use Protocol Buffers for state serialization instead of Amino. * The `internal` sub-package has been removed in order to expose the types proto file. * The `x/supply` module now accepts a `Codec` interface which extends the `codec.Marshaler` interface by requiring a concrete codec to know how to serialize `SupplyI` types. * The `SupplyI` interface has been modified to no longer return `SupplyI` on methods. Instead the concrete type's receiver should modify the type. - * (x/upgrade) [\#5659](https://github.com/cosmos/cosmos-sdk/pull/5659) Migrate the `x/upgrade` module to use Protocol + * (x/upgrade) [\#5659](https://github.com/eligion/cosmos-sdk/pull/5659) Migrate the `x/upgrade` module to use Protocol Buffers for state serialization instead of Amino. * The `internal` sub-package has been removed in order to expose the types proto file. * The `x/upgrade` module now accepts a `codec.Marshaler` interface. @@ -776,43 +776,43 @@ sure you are aware of any relevant breaking changes. ### Features * __Baseapp / Client / REST__ - * (x/auth) [\#6213](https://github.com/cosmos/cosmos-sdk/issues/6213) Introduce new protobuf based path for transaction signing, see [ADR020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md) for more details - * (x/auth) [\#6350](https://github.com/cosmos/cosmos-sdk/pull/6350) New sign-batch command to sign StdTx batch files. - * (baseapp) [\#5803](https://github.com/cosmos/cosmos-sdk/pull/5803) Added support for taking state snapshots at regular height intervals, via options `snapshot-interval` and `snapshot-keep-recent`. - * (baseapp) [\#7519](https://github.com/cosmos/cosmos-sdk/pull/7519) Add `ServiceMsgRouter` to BaseApp to handle routing of protobuf service `Msg`s. The two new types defined in ADR 031, `sdk.ServiceMsg` and `sdk.MsgRequest` are introduced with this router. - * (client) [\#5921](https://github.com/cosmos/cosmos-sdk/issues/5921) Introduce new gRPC and gRPC Gateway based APIs for querying app & module data. See [ADR021](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-021-protobuf-query-encoding.md) for more details - * (cli) [\#7485](https://github.com/cosmos/cosmos-sdk/pull/7485) Introduce a new optional `--keyring-dir` flag that allows clients to specify a Keyring directory if it does not reside in the directory specified by `--home`. - * (cli) [\#7221](https://github.com/cosmos/cosmos-sdk/pull/7221) Add the option of emitting amino encoded json from the CLI - * (codec) [\#7519](https://github.com/cosmos/cosmos-sdk/pull/7519) `InterfaceRegistry` now inherits `jsonpb.AnyResolver`, and has a `RegisterCustomTypeURL` method to support ADR 031 packing of `Any`s. `AnyResolver` is now a required parameter to `RejectUnknownFields`. - * (coin) [\#6755](https://github.com/cosmos/cosmos-sdk/pull/6755) Add custom regex validation for `Coin` denom by overwriting `CoinDenomRegex` when using `/types/coin.go`. - * (config) [\#7265](https://github.com/cosmos/cosmos-sdk/pull/7265) Support Tendermint block pruning through a new `min-retain-blocks` configuration that can be set in either `app.toml` or via the CLI. This parameter is used in conjunction with other criteria to determine the height at which Tendermint should prune blocks. - * (events) [\#7121](https://github.com/cosmos/cosmos-sdk/pull/7121) The application now derives what events are indexed by Tendermint via the `index-events` configuration in `app.toml`, which is a list of events taking the form `{eventType}.{attributeKey}`. - * (tx) [\#6089](https://github.com/cosmos/cosmos-sdk/pull/6089) Transactions can now have a `TimeoutHeight` set which allows the transaction to be rejected if it's committed at a height greater than the timeout. - * (rest) [\#6167](https://github.com/cosmos/cosmos-sdk/pull/6167) Support `max-body-bytes` CLI flag for the REST service. - * (genesis) [\#7089](https://github.com/cosmos/cosmos-sdk/pull/7089) The `export` command now adds a `initial_height` field in the exported JSON. Baseapp's `CommitMultiStore` now also has a `SetInitialVersion` setter, so it can set the initial store version inside `InitChain` and start a new chain from a given height. + * (x/auth) [\#6213](https://github.com/eligion/cosmos-sdk/issues/6213) Introduce new protobuf based path for transaction signing, see [ADR020](https://github.com/eligion/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md) for more details + * (x/auth) [\#6350](https://github.com/eligion/cosmos-sdk/pull/6350) New sign-batch command to sign StdTx batch files. + * (baseapp) [\#5803](https://github.com/eligion/cosmos-sdk/pull/5803) Added support for taking state snapshots at regular height intervals, via options `snapshot-interval` and `snapshot-keep-recent`. + * (baseapp) [\#7519](https://github.com/eligion/cosmos-sdk/pull/7519) Add `ServiceMsgRouter` to BaseApp to handle routing of protobuf service `Msg`s. The two new types defined in ADR 031, `sdk.ServiceMsg` and `sdk.MsgRequest` are introduced with this router. + * (client) [\#5921](https://github.com/eligion/cosmos-sdk/issues/5921) Introduce new gRPC and gRPC Gateway based APIs for querying app & module data. See [ADR021](https://github.com/eligion/cosmos-sdk/blob/master/docs/architecture/adr-021-protobuf-query-encoding.md) for more details + * (cli) [\#7485](https://github.com/eligion/cosmos-sdk/pull/7485) Introduce a new optional `--keyring-dir` flag that allows clients to specify a Keyring directory if it does not reside in the directory specified by `--home`. + * (cli) [\#7221](https://github.com/eligion/cosmos-sdk/pull/7221) Add the option of emitting amino encoded json from the CLI + * (codec) [\#7519](https://github.com/eligion/cosmos-sdk/pull/7519) `InterfaceRegistry` now inherits `jsonpb.AnyResolver`, and has a `RegisterCustomTypeURL` method to support ADR 031 packing of `Any`s. `AnyResolver` is now a required parameter to `RejectUnknownFields`. + * (coin) [\#6755](https://github.com/eligion/cosmos-sdk/pull/6755) Add custom regex validation for `Coin` denom by overwriting `CoinDenomRegex` when using `/types/coin.go`. + * (config) [\#7265](https://github.com/eligion/cosmos-sdk/pull/7265) Support Tendermint block pruning through a new `min-retain-blocks` configuration that can be set in either `app.toml` or via the CLI. This parameter is used in conjunction with other criteria to determine the height at which Tendermint should prune blocks. + * (events) [\#7121](https://github.com/eligion/cosmos-sdk/pull/7121) The application now derives what events are indexed by Tendermint via the `index-events` configuration in `app.toml`, which is a list of events taking the form `{eventType}.{attributeKey}`. + * (tx) [\#6089](https://github.com/eligion/cosmos-sdk/pull/6089) Transactions can now have a `TimeoutHeight` set which allows the transaction to be rejected if it's committed at a height greater than the timeout. + * (rest) [\#6167](https://github.com/eligion/cosmos-sdk/pull/6167) Support `max-body-bytes` CLI flag for the REST service. + * (genesis) [\#7089](https://github.com/eligion/cosmos-sdk/pull/7089) The `export` command now adds a `initial_height` field in the exported JSON. Baseapp's `CommitMultiStore` now also has a `SetInitialVersion` setter, so it can set the initial store version inside `InitChain` and start a new chain from a given height. * __General__ - * (crypto/multisig) [\#6241](https://github.com/cosmos/cosmos-sdk/pull/6241) Add Multisig type directly to the repo. Previously this was in tendermint. - * (codec/types) [\#8106](https://github.com/cosmos/cosmos-sdk/pull/8106) Adding `NewAnyWithCustomTypeURL` to correctly + * (crypto/multisig) [\#6241](https://github.com/eligion/cosmos-sdk/pull/6241) Add Multisig type directly to the repo. Previously this was in tendermint. + * (codec/types) [\#8106](https://github.com/eligion/cosmos-sdk/pull/8106) Adding `NewAnyWithCustomTypeURL` to correctly marshal Messages in TxBuilder. - * (tests) [\#6489](https://github.com/cosmos/cosmos-sdk/pull/6489) Introduce package `testutil`, new in-process testing network framework for use in integration and unit tests. + * (tests) [\#6489](https://github.com/eligion/cosmos-sdk/pull/6489) Introduce package `testutil`, new in-process testing network framework for use in integration and unit tests. * (tx) Add new auth/tx gRPC & gRPC-Gateway endpoints for basic querying & broadcasting support - * [\#7842](https://github.com/cosmos/cosmos-sdk/pull/7842) Add TxsByEvent gRPC endpoint - * [\#7852](https://github.com/cosmos/cosmos-sdk/pull/7852) Add tx broadcast gRPC endpoint - * (tx) [\#7688](https://github.com/cosmos/cosmos-sdk/pull/7688) Add a new Tx gRPC service with methods `Simulate` and `GetTx` (by hash). - * (store) [\#5803](https://github.com/cosmos/cosmos-sdk/pull/5803) Added `rootmulti.Store` methods for taking and restoring snapshots, based on `iavl.Store` export/import. - * (store) [\#6324](https://github.com/cosmos/cosmos-sdk/pull/6324) IAVL store query proofs now return CommitmentOp which wraps an ics23 CommitmentProof - * (store) [\#6390](https://github.com/cosmos/cosmos-sdk/pull/6390) `RootMulti` store query proofs now return `CommitmentOp` which wraps `CommitmentProofs` + * [\#7842](https://github.com/eligion/cosmos-sdk/pull/7842) Add TxsByEvent gRPC endpoint + * [\#7852](https://github.com/eligion/cosmos-sdk/pull/7852) Add tx broadcast gRPC endpoint + * (tx) [\#7688](https://github.com/eligion/cosmos-sdk/pull/7688) Add a new Tx gRPC service with methods `Simulate` and `GetTx` (by hash). + * (store) [\#5803](https://github.com/eligion/cosmos-sdk/pull/5803) Added `rootmulti.Store` methods for taking and restoring snapshots, based on `iavl.Store` export/import. + * (store) [\#6324](https://github.com/eligion/cosmos-sdk/pull/6324) IAVL store query proofs now return CommitmentOp which wraps an ics23 CommitmentProof + * (store) [\#6390](https://github.com/eligion/cosmos-sdk/pull/6390) `RootMulti` store query proofs now return `CommitmentOp` which wraps `CommitmentProofs` * `store.Query` now only returns chained `ics23.CommitmentProof` wrapped in `merkle.Proof` * `ProofRuntime` only decodes and verifies `ics23.CommitmentProof` * __Modules__ - * (modules) [\#5921](https://github.com/cosmos/cosmos-sdk/issues/5921) Introduction of Query gRPC service definitions along with REST annotations for gRPC Gateway for each module - * (modules) [\#7540](https://github.com/cosmos/cosmos-sdk/issues/7540) Protobuf service definitions can now be used for + * (modules) [\#5921](https://github.com/eligion/cosmos-sdk/issues/5921) Introduction of Query gRPC service definitions along with REST annotations for gRPC Gateway for each module + * (modules) [\#7540](https://github.com/eligion/cosmos-sdk/issues/7540) Protobuf service definitions can now be used for packing `Msg`s in transactions as defined in [ADR 031](./docs/architecture/adr-031-msg-service.md). All modules now define a `Msg` protobuf service. - * (x/auth/vesting) [\#7209](https://github.com/cosmos/cosmos-sdk/pull/7209) Create new `MsgCreateVestingAccount` message type along with CLI handler that allows for the creation of delayed and continuous vesting types. - * (x/capability) [\#5828](https://github.com/cosmos/cosmos-sdk/pull/5828) Capability module integration as outlined in [ADR 3 - Dynamic Capability Store](https://github.com/cosmos/tree/master/docs/architecture/adr-003-dynamic-capability-store.md). + * (x/auth/vesting) [\#7209](https://github.com/eligion/cosmos-sdk/pull/7209) Create new `MsgCreateVestingAccount` message type along with CLI handler that allows for the creation of delayed and continuous vesting types. + * (x/capability) [\#5828](https://github.com/eligion/cosmos-sdk/pull/5828) Capability module integration as outlined in [ADR 3 - Dynamic Capability Store](https://github.com/cosmos/tree/master/docs/architecture/adr-003-dynamic-capability-store.md). * (x/crisis) `x/crisis` has a new function: `AddModuleInitFlags`, which will register optional crisis module flags for the start command. - * (x/ibc) [\#5277](https://github.com/cosmos/cosmos-sdk/pull/5277) `x/ibc` changes from IBC alpha. For more details check the the [`x/ibc/core/spec`](https://github.com/cosmos/cosmos-sdk/tree/master/x/ibc/core/spec) directory, or the ICS specs below: + * (x/ibc) [\#5277](https://github.com/eligion/cosmos-sdk/pull/5277) `x/ibc` changes from IBC alpha. For more details check the the [`x/ibc/core/spec`](https://github.com/eligion/cosmos-sdk/tree/master/x/ibc/core/spec) directory, or the ICS specs below: * [ICS 002 - Client Semantics](https://github.com/cosmos/ics/tree/master/spec/ics-002-client-semantics) subpackage * [ICS 003 - Connection Semantics](https://github.com/cosmos/ics/blob/master/spec/ics-003-connection-semantics) subpackage * [ICS 004 - Channel and Packet Semantics](https://github.com/cosmos/ics/blob/master/spec/ics-004-channel-and-packet-semantics) subpackage @@ -823,131 +823,131 @@ sure you are aware of any relevant breaking changes. * [ICS 020 - Fungible Token Transfer](https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer) subpackage * [ICS 023 - Vector Commitments](https://github.com/cosmos/ics/tree/master/spec/ics-023-vector-commitments) subpackage * [ICS 024 - Host State Machine Requirements](https://github.com/cosmos/ics/tree/master/spec/ics-024-host-requirements) subpackage - * (x/ibc) [\#6374](https://github.com/cosmos/cosmos-sdk/pull/6374) ICS-23 Verify functions will now accept and verify ics23 CommitmentProofs exclusively - * (x/params) [\#6005](https://github.com/cosmos/cosmos-sdk/pull/6005) Add new CLI command for querying raw x/params parameters by subspace and key. + * (x/ibc) [\#6374](https://github.com/eligion/cosmos-sdk/pull/6374) ICS-23 Verify functions will now accept and verify ics23 CommitmentProofs exclusively + * (x/params) [\#6005](https://github.com/eligion/cosmos-sdk/pull/6005) Add new CLI command for querying raw x/params parameters by subspace and key. ### Bug Fixes * __Baseapp / Client / REST__ - * (client) [\#5964](https://github.com/cosmos/cosmos-sdk/issues/5964) `--trust-node` is now false by default - for real. Users must ensure it is set to true if they don't want to enable the verifier. - * (client) [\#6402](https://github.com/cosmos/cosmos-sdk/issues/6402) Fix `keys add` `--algo` flag which only worked for Tendermint's `secp256k1` default key signing algorithm. - * (client) [\#7699](https://github.com/cosmos/cosmos-sdk/pull/7699) Fix panic in context when setting invalid nodeURI. `WithNodeURI` does not set the `Client` in the context. - * (export) [\#6510](https://github.com/cosmos/cosmos-sdk/pull/6510/) Field TimeIotaMs now is included in genesis file while exporting. - * (rest) [\#5906](https://github.com/cosmos/cosmos-sdk/pull/5906) Fix an issue that make some REST calls panic when sending invalid or incomplete requests. - * (crypto) [\#7966](https://github.com/cosmos/cosmos-sdk/issues/7966) `Bip44Params` `String()` function now correctly + * (client) [\#5964](https://github.com/eligion/cosmos-sdk/issues/5964) `--trust-node` is now false by default - for real. Users must ensure it is set to true if they don't want to enable the verifier. + * (client) [\#6402](https://github.com/eligion/cosmos-sdk/issues/6402) Fix `keys add` `--algo` flag which only worked for Tendermint's `secp256k1` default key signing algorithm. + * (client) [\#7699](https://github.com/eligion/cosmos-sdk/pull/7699) Fix panic in context when setting invalid nodeURI. `WithNodeURI` does not set the `Client` in the context. + * (export) [\#6510](https://github.com/eligion/cosmos-sdk/pull/6510/) Field TimeIotaMs now is included in genesis file while exporting. + * (rest) [\#5906](https://github.com/eligion/cosmos-sdk/pull/5906) Fix an issue that make some REST calls panic when sending invalid or incomplete requests. + * (crypto) [\#7966](https://github.com/eligion/cosmos-sdk/issues/7966) `Bip44Params` `String()` function now correctly returns the absolute HD path by adding the `m/` prefix. - * (crypto/keyring) [\#5844](https://github.com/cosmos/cosmos-sdk/pull/5844) `Keyring.Sign()` methods no longer decode amino signatures when method receivers + * (crypto/keyring) [\#5844](https://github.com/eligion/cosmos-sdk/pull/5844) `Keyring.Sign()` methods no longer decode amino signatures when method receivers are offline/multisig keys. - * (store) [\#7415](https://github.com/cosmos/cosmos-sdk/pull/7415) Allow new stores to be registered during on-chain upgrades. + * (store) [\#7415](https://github.com/eligion/cosmos-sdk/pull/7415) Allow new stores to be registered during on-chain upgrades. * __Modules__ - * (modules) [\#5569](https://github.com/cosmos/cosmos-sdk/issues/5569) `InitGenesis`, for the relevant modules, now ensures module accounts exist. - * (x/auth) [\#5892](https://github.com/cosmos/cosmos-sdk/pull/5892) Add `RegisterKeyTypeCodec` to register new + * (modules) [\#5569](https://github.com/eligion/cosmos-sdk/issues/5569) `InitGenesis`, for the relevant modules, now ensures module accounts exist. + * (x/auth) [\#5892](https://github.com/eligion/cosmos-sdk/pull/5892) Add `RegisterKeyTypeCodec` to register new types (eg. keys) to the `auth` module internal amino codec. - * (x/bank) [\#6536](https://github.com/cosmos/cosmos-sdk/pull/6536) Fix bug in `WriteGeneratedTxResponse` function used by multiple + * (x/bank) [\#6536](https://github.com/eligion/cosmos-sdk/pull/6536) Fix bug in `WriteGeneratedTxResponse` function used by multiple REST endpoints. Now it writes a Tx in StdTx format. - * (x/genutil) [\#5938](https://github.com/cosmos/cosmos-sdk/pull/5938) Fix `InitializeNodeValidatorFiles` error handling. - * (x/gentx) [\#8183](https://github.com/cosmos/cosmos-sdk/pull/8183) change gentx cmd amount to arg from flag - * (x/gov) [#7641](https://github.com/cosmos/cosmos-sdk/pull/7641) Fix tally calculation precision error. - * (x/staking) [\#6529](https://github.com/cosmos/cosmos-sdk/pull/6529) Export validator addresses (previously was empty). - * (x/staking) [\#5949](https://github.com/cosmos/cosmos-sdk/pull/5949) Skip staking `HistoricalInfoKey` in simulations as headers are not exported. - * (x/staking) [\#6061](https://github.com/cosmos/cosmos-sdk/pull/6061) Allow a validator to immediately unjail when no signing info is present due to + * (x/genutil) [\#5938](https://github.com/eligion/cosmos-sdk/pull/5938) Fix `InitializeNodeValidatorFiles` error handling. + * (x/gentx) [\#8183](https://github.com/eligion/cosmos-sdk/pull/8183) change gentx cmd amount to arg from flag + * (x/gov) [#7641](https://github.com/eligion/cosmos-sdk/pull/7641) Fix tally calculation precision error. + * (x/staking) [\#6529](https://github.com/eligion/cosmos-sdk/pull/6529) Export validator addresses (previously was empty). + * (x/staking) [\#5949](https://github.com/eligion/cosmos-sdk/pull/5949) Skip staking `HistoricalInfoKey` in simulations as headers are not exported. + * (x/staking) [\#6061](https://github.com/eligion/cosmos-sdk/pull/6061) Allow a validator to immediately unjail when no signing info is present due to falling below their minimum self-delegation and never having been bonded. The validator may immediately unjail once they've met their minimum self-delegation. * __General__ - * (types) [\#7038](https://github.com/cosmos/cosmos-sdk/issues/7038) Fix infinite looping of `ApproxRoot` by including a hard-coded maximum iterations limit of 100. - * (types) [\#7084](https://github.com/cosmos/cosmos-sdk/pull/7084) Fix panic when calling `BigInt()` on an uninitialized `Int`. - * (simulation) [\#7129](https://github.com/cosmos/cosmos-sdk/issues/7129) Fix support for custom `Account` and key types on auth's simulation. + * (types) [\#7038](https://github.com/eligion/cosmos-sdk/issues/7038) Fix infinite looping of `ApproxRoot` by including a hard-coded maximum iterations limit of 100. + * (types) [\#7084](https://github.com/eligion/cosmos-sdk/pull/7084) Fix panic when calling `BigInt()` on an uninitialized `Int`. + * (simulation) [\#7129](https://github.com/eligion/cosmos-sdk/issues/7129) Fix support for custom `Account` and key types on auth's simulation. ### Improvements * __Baseapp / Client / REST__ - * (baseapp) [\#6186](https://github.com/cosmos/cosmos-sdk/issues/6186) Support emitting events during `AnteHandler` execution. - * (baseapp) [\#6053](https://github.com/cosmos/cosmos-sdk/pull/6053) Customizable panic recovery handling added for `app.runTx()` method (as proposed in the [ADR 22](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-022-custom-panic-handling.md)). Adds ability for developers to register custom panic handlers extending standard ones. - * (client) [\#5810](https://github.com/cosmos/cosmos-sdk/pull/5810) Added a new `--offline` flag that allows commands to be executed without an + * (baseapp) [\#6186](https://github.com/eligion/cosmos-sdk/issues/6186) Support emitting events during `AnteHandler` execution. + * (baseapp) [\#6053](https://github.com/eligion/cosmos-sdk/pull/6053) Customizable panic recovery handling added for `app.runTx()` method (as proposed in the [ADR 22](https://github.com/eligion/cosmos-sdk/blob/master/docs/architecture/adr-022-custom-panic-handling.md)). Adds ability for developers to register custom panic handlers extending standard ones. + * (client) [\#5810](https://github.com/eligion/cosmos-sdk/pull/5810) Added a new `--offline` flag that allows commands to be executed without an internet connection. Previously, `--generate-only` served this purpose in addition to only allowing txs to be generated. Now, `--generate-only` solely allows txs to be generated without being broadcasted and disallows Keybase use and `--offline` allows the use of Keybase but does not allow any functionality that requires an online connection. - * (cli) [#7764](https://github.com/cosmos/cosmos-sdk/pull/7764) Update x/banking and x/crisis InitChain to improve node startup time - * (client) [\#5856](https://github.com/cosmos/cosmos-sdk/pull/5856) Added the possibility to set `--offline` flag with config command. - * (client) [\#5895](https://github.com/cosmos/cosmos-sdk/issues/5895) show config options in the config command's help screen. - * (client/keys) [\#8043](https://github.com/cosmos/cosmos-sdk/pull/8043) Add support for export of unarmored private key - * (client/tx) [\#7801](https://github.com/cosmos/cosmos-sdk/pull/7801) Update sign-batch multisig to work online - * (x/genutil) [\#8099](https://github.com/cosmos/cosmos-sdk/pull/8099) `init` now supports a `--recover` flag to recover + * (cli) [#7764](https://github.com/eligion/cosmos-sdk/pull/7764) Update x/banking and x/crisis InitChain to improve node startup time + * (client) [\#5856](https://github.com/eligion/cosmos-sdk/pull/5856) Added the possibility to set `--offline` flag with config command. + * (client) [\#5895](https://github.com/eligion/cosmos-sdk/issues/5895) show config options in the config command's help screen. + * (client/keys) [\#8043](https://github.com/eligion/cosmos-sdk/pull/8043) Add support for export of unarmored private key + * (client/tx) [\#7801](https://github.com/eligion/cosmos-sdk/pull/7801) Update sign-batch multisig to work online + * (x/genutil) [\#8099](https://github.com/eligion/cosmos-sdk/pull/8099) `init` now supports a `--recover` flag to recover the private validator key from a given mnemonic * __Modules__ - * (x/auth) [\#5702](https://github.com/cosmos/cosmos-sdk/pull/5702) Add parameter querying support for `x/auth`. - * (x/auth/ante) [\#6040](https://github.com/cosmos/cosmos-sdk/pull/6040) `AccountKeeper` interface used for `NewAnteHandler` and handler's decorators to add support of using custom `AccountKeeper` implementations. - * (x/evidence) [\#5952](https://github.com/cosmos/cosmos-sdk/pull/5952) Tendermint Consensus parameters can now be changed via parameter change proposals through `x/gov`. - * (x/evidence) [\#5961](https://github.com/cosmos/cosmos-sdk/issues/5961) Add `StoreDecoder` simulation for evidence module. - * (x/ibc) [\#5948](https://github.com/cosmos/cosmos-sdk/issues/5948) Add `InitGenesis` and `ExportGenesis` functions for `ibc` module. - * (x/ibc-transfer) [\#6871](https://github.com/cosmos/cosmos-sdk/pull/6871) Implement [ADR 001 - Coin Source Tracing](./docs/architecture/adr-001-coin-source-tracing.md). - * (x/staking) [\#6059](https://github.com/cosmos/cosmos-sdk/pull/6059) Updated `HistoricalEntries` parameter default to 100. - * (x/staking) [\#5584](https://github.com/cosmos/cosmos-sdk/pull/5584) Add util function `ToTmValidator` that converts a `staking.Validator` type to `*tmtypes.Validator`. - * (x/staking) [\#6163](https://github.com/cosmos/cosmos-sdk/pull/6163) CLI and REST call to unbonding delegations and delegations now accept + * (x/auth) [\#5702](https://github.com/eligion/cosmos-sdk/pull/5702) Add parameter querying support for `x/auth`. + * (x/auth/ante) [\#6040](https://github.com/eligion/cosmos-sdk/pull/6040) `AccountKeeper` interface used for `NewAnteHandler` and handler's decorators to add support of using custom `AccountKeeper` implementations. + * (x/evidence) [\#5952](https://github.com/eligion/cosmos-sdk/pull/5952) Tendermint Consensus parameters can now be changed via parameter change proposals through `x/gov`. + * (x/evidence) [\#5961](https://github.com/eligion/cosmos-sdk/issues/5961) Add `StoreDecoder` simulation for evidence module. + * (x/ibc) [\#5948](https://github.com/eligion/cosmos-sdk/issues/5948) Add `InitGenesis` and `ExportGenesis` functions for `ibc` module. + * (x/ibc-transfer) [\#6871](https://github.com/eligion/cosmos-sdk/pull/6871) Implement [ADR 001 - Coin Source Tracing](./docs/architecture/adr-001-coin-source-tracing.md). + * (x/staking) [\#6059](https://github.com/eligion/cosmos-sdk/pull/6059) Updated `HistoricalEntries` parameter default to 100. + * (x/staking) [\#5584](https://github.com/eligion/cosmos-sdk/pull/5584) Add util function `ToTmValidator` that converts a `staking.Validator` type to `*tmtypes.Validator`. + * (x/staking) [\#6163](https://github.com/eligion/cosmos-sdk/pull/6163) CLI and REST call to unbonding delegations and delegations now accept pagination. - * (x/staking) [\#8178](https://github.com/cosmos/cosmos-sdk/pull/8178) Update default historical header number for stargate + * (x/staking) [\#8178](https://github.com/eligion/cosmos-sdk/pull/8178) Update default historical header number for stargate * __General__ - * (crypto) [\#7987](https://github.com/cosmos/cosmos-sdk/pull/7987) Fix the inconsistency of CryptoCdc, only use + * (crypto) [\#7987](https://github.com/eligion/cosmos-sdk/pull/7987) Fix the inconsistency of CryptoCdc, only use `codec/legacy.Cdc`. - * (logging) [\#8072](https://github.com/cosmos/cosmos-sdk/pull/8072) Refactor logging: + * (logging) [\#8072](https://github.com/eligion/cosmos-sdk/pull/8072) Refactor logging: * Use [zerolog](https://github.com/rs/zerolog) over Tendermint's go-kit logging wrapper. * Introduce Tendermint's `--log_format=plain|json` flag. Using format `json` allows for emitting structured JSON logs which can be consumed by an external logging facility (e.g. Loggly). Both formats log to STDERR. * The existing `--log_level` flag and it's default value now solely relates to the global logging level (e.g. `info`, `debug`, etc...) instead of `:`. - * (rest) [#7649](https://github.com/cosmos/cosmos-sdk/pull/7649) Return an unsigned tx in legacy GET /tx endpoint when signature conversion fails - * (simulation) [\#6002](https://github.com/cosmos/cosmos-sdk/pull/6002) Add randomized consensus params into simulation. - * (store) [\#6481](https://github.com/cosmos/cosmos-sdk/pull/6481) Move `SimpleProofsFromMap` from Tendermint into the SDK. - * (store) [\#6719](https://github.com/cosmos/cosmos-sdk/6754) Add validity checks to stores for nil and empty keys. + * (rest) [#7649](https://github.com/eligion/cosmos-sdk/pull/7649) Return an unsigned tx in legacy GET /tx endpoint when signature conversion fails + * (simulation) [\#6002](https://github.com/eligion/cosmos-sdk/pull/6002) Add randomized consensus params into simulation. + * (store) [\#6481](https://github.com/eligion/cosmos-sdk/pull/6481) Move `SimpleProofsFromMap` from Tendermint into the SDK. + * (store) [\#6719](https://github.com/eligion/cosmos-sdk/6754) Add validity checks to stores for nil and empty keys. * (SDK) Updated dependencies * Updated iavl dependency to v0.15.3 * Update tendermint to v0.34.1 - * (types) [\#7027](https://github.com/cosmos/cosmos-sdk/pull/7027) `Coin(s)` and `DecCoin(s)` updates: + * (types) [\#7027](https://github.com/eligion/cosmos-sdk/pull/7027) `Coin(s)` and `DecCoin(s)` updates: * Bump denomination max length to 128 * Allow uppercase letters and numbers in denominations to support [ADR 001](./docs/architecture/adr-001-coin-source-tracing.md) * Added `Validate` function that returns a descriptive error - * (types) [\#5581](https://github.com/cosmos/cosmos-sdk/pull/5581) Add convenience functions {,Must}Bech32ifyAddressBytes. - * (types/module) [\#5724](https://github.com/cosmos/cosmos-sdk/issues/5724) The `types/module` package does no longer depend on `x/simulation`. - * (types) [\#5585](https://github.com/cosmos/cosmos-sdk/pull/5585) IBC additions: + * (types) [\#5581](https://github.com/eligion/cosmos-sdk/pull/5581) Add convenience functions {,Must}Bech32ifyAddressBytes. + * (types/module) [\#5724](https://github.com/eligion/cosmos-sdk/issues/5724) The `types/module` package does no longer depend on `x/simulation`. + * (types) [\#5585](https://github.com/eligion/cosmos-sdk/pull/5585) IBC additions: * `Coin` denomination max lenght has been increased to 32. * Added `CapabilityKey` alias for `StoreKey` to match IBC spec. - * (types/rest) [\#5900](https://github.com/cosmos/cosmos-sdk/pull/5900) Add Check*Error function family to spare developers from replicating tons of boilerplate code. - * (types) [\#6128](https://github.com/cosmos/cosmos-sdk/pull/6137) Add `String()` method to `GasMeter`. - * (types) [\#6195](https://github.com/cosmos/cosmos-sdk/pull/6195) Add codespace to broadcast(sync/async) response. + * (types/rest) [\#5900](https://github.com/eligion/cosmos-sdk/pull/5900) Add Check*Error function family to spare developers from replicating tons of boilerplate code. + * (types) [\#6128](https://github.com/eligion/cosmos-sdk/pull/6137) Add `String()` method to `GasMeter`. + * (types) [\#6195](https://github.com/eligion/cosmos-sdk/pull/6195) Add codespace to broadcast(sync/async) response. * (types) \#6897 Add KV type from tendermint to `types` directory. - * (version) [\#7848](https://github.com/cosmos/cosmos-sdk/pull/7848) [\#7941](https://github.com/cosmos/cosmos-sdk/pull/7941) + * (version) [\#7848](https://github.com/eligion/cosmos-sdk/pull/7848) [\#7941](https://github.com/eligion/cosmos-sdk/pull/7941) `version --long` output now shows the list of build dependencies and replaced build dependencies. -## [v0.39.1](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.39.1) - 2020-08-11 +## [v0.39.1](https://github.com/eligion/cosmos-sdk/releases/tag/v0.39.1) - 2020-08-11 ### Client Breaking -* (x/auth) [\#6861](https://github.com/cosmos/cosmos-sdk/pull/6861) Remove public key Bech32 encoding for all account types for JSON serialization, instead relying on direct Amino encoding. In addition, JSON serialization utilizes Amino instead of the Go stdlib, so integers are treated as strings. +* (x/auth) [\#6861](https://github.com/eligion/cosmos-sdk/pull/6861) Remove public key Bech32 encoding for all account types for JSON serialization, instead relying on direct Amino encoding. In addition, JSON serialization utilizes Amino instead of the Go stdlib, so integers are treated as strings. ### Improvements -* (client) [\#6853](https://github.com/cosmos/cosmos-sdk/pull/6853) Add --unsafe-cors flag. +* (client) [\#6853](https://github.com/eligion/cosmos-sdk/pull/6853) Add --unsafe-cors flag. -## [v0.39.0](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.39.0) - 2020-07-20 +## [v0.39.0](https://github.com/eligion/cosmos-sdk/releases/tag/v0.39.0) - 2020-07-20 ### Improvements * (deps) Bump IAVL version to [v0.14.0](https://github.com/cosmos/iavl/releases/tag/v0.14.0) -* (client) [\#5585](https://github.com/cosmos/cosmos-sdk/pull/5585) `CLIContext` additions: +* (client) [\#5585](https://github.com/eligion/cosmos-sdk/pull/5585) `CLIContext` additions: * Introduce `QueryABCI` that returns the full `abci.ResponseQuery` with inclusion Merkle proofs. * Added `prove` flag for Merkle proof verification. -* (x/staking) [\#6791)](https://github.com/cosmos/cosmos-sdk/pull/6791) Close {UBDQueue,RedelegationQueu}Iterator once used. +* (x/staking) [\#6791)](https://github.com/eligion/cosmos-sdk/pull/6791) Close {UBDQueue,RedelegationQueu}Iterator once used. ### API Breaking Changes -* (baseapp) [\#5837](https://github.com/cosmos/cosmos-sdk/issues/5837) Transaction simulation now returns a `SimulationResponse` which contains the `GasInfo` and `Result` from the execution. +* (baseapp) [\#5837](https://github.com/eligion/cosmos-sdk/issues/5837) Transaction simulation now returns a `SimulationResponse` which contains the `GasInfo` and `Result` from the execution. ### Client Breaking Changes -* (x/auth) [\#6745](https://github.com/cosmos/cosmos-sdk/issues/6745) Remove BaseAccount's custom JSON {,un}marshalling. +* (x/auth) [\#6745](https://github.com/eligion/cosmos-sdk/issues/6745) Remove BaseAccount's custom JSON {,un}marshalling. ### Bug Fixes -* (store) [\#6475](https://github.com/cosmos/cosmos-sdk/pull/6475) Revert IAVL pruning functionality introduced in +* (store) [\#6475](https://github.com/eligion/cosmos-sdk/pull/6475) Revert IAVL pruning functionality introduced in [v0.13.0](https://github.com/cosmos/iavl/releases/tag/v0.13.0), where the IAVL no longer keeps states in-memory in which it flushes periodically. IAVL now commits and flushes every state to disk as it did pre-v0.13.0. The SDK's multi-store will track and ensure the proper @@ -958,12 +958,12 @@ options `pruning-keep-recent`, `pruning-keep-every`, and `pruning-interval`. The dictate how many recent versions are kept on disk and the offset of what versions are kept after that respectively, and the latter defines the height interval in which versions are deleted in a batch. **Note, there are some client-facing API breaking changes with regard to IAVL, stores, and pruning settings.** -* (x/distribution) [\#6210](https://github.com/cosmos/cosmos-sdk/pull/6210) Register `MsgFundCommunityPool` in distribution amino codec. -* (types) [\#5741](https://github.com/cosmos/cosmos-sdk/issues/5741) Prevent `ChainAnteDecorators()` from panicking when empty `AnteDecorator` slice is supplied. -* (baseapp) [\#6306](https://github.com/cosmos/cosmos-sdk/issues/6306) Prevent events emitted by the antehandler from being persisted between transactions. -* (client/keys) [\#5091](https://github.com/cosmos/cosmos-sdk/issues/5091) `keys parse` does not honor client app's configuration. -* (x/bank) [\#6674](https://github.com/cosmos/cosmos-sdk/pull/6674) Create account if recipient does not exist on handing `MsgMultiSend`. -* (x/auth) [\#6287](https://github.com/cosmos/cosmos-sdk/pull/6287) Fix nonce stuck when sending multiple transactions from an account in a same block. +* (x/distribution) [\#6210](https://github.com/eligion/cosmos-sdk/pull/6210) Register `MsgFundCommunityPool` in distribution amino codec. +* (types) [\#5741](https://github.com/eligion/cosmos-sdk/issues/5741) Prevent `ChainAnteDecorators()` from panicking when empty `AnteDecorator` slice is supplied. +* (baseapp) [\#6306](https://github.com/eligion/cosmos-sdk/issues/6306) Prevent events emitted by the antehandler from being persisted between transactions. +* (client/keys) [\#5091](https://github.com/eligion/cosmos-sdk/issues/5091) `keys parse` does not honor client app's configuration. +* (x/bank) [\#6674](https://github.com/eligion/cosmos-sdk/pull/6674) Create account if recipient does not exist on handing `MsgMultiSend`. +* (x/auth) [\#6287](https://github.com/eligion/cosmos-sdk/pull/6287) Fix nonce stuck when sending multiple transactions from an account in a same block. ## [v0.38.5] - 2020-07-02 @@ -975,7 +975,7 @@ respectively, and the latter defines the height interval in which versions are d ### Bug Fixes -* (x/auth) [\#5950](https://github.com/cosmos/cosmos-sdk/pull/5950) Fix `IncrementSequenceDecorator` to use is `IsReCheckTx` instead of `IsCheckTx` to allow account sequence incrementing. +* (x/auth) [\#5950](https://github.com/eligion/cosmos-sdk/pull/5950) Fix `IncrementSequenceDecorator` to use is `IsReCheckTx` instead of `IsCheckTx` to allow account sequence incrementing. ## [v0.38.3] - 2020-04-09 @@ -987,59 +987,59 @@ respectively, and the latter defines the height interval in which versions are d ### Bug Fixes -* (baseapp) [\#5718](https://github.com/cosmos/cosmos-sdk/pull/5718) Remove call to `ctx.BlockGasMeter` during failed message validation which resulted in a panic when the tx execution mode was `CheckTx`. -* (x/genutil) [\#5775](https://github.com/cosmos/cosmos-sdk/pull/5775) Fix `ExportGenesis` in `x/genutil` to export default genesis state (`[]`) instead of `null`. -* (client) [\#5618](https://github.com/cosmos/cosmos-sdk/pull/5618) Fix crash on the client when the verifier is not set. -* (crypto/keys/mintkey) [\#5823](https://github.com/cosmos/cosmos-sdk/pull/5823) fix errors handling in `UnarmorPubKeyBytes` (underlying armoring function's return error was not being checked). -* (x/distribution) [\#5620](https://github.com/cosmos/cosmos-sdk/pull/5620) Fix nil pointer deref in distribution tax/reward validation helpers. +* (baseapp) [\#5718](https://github.com/eligion/cosmos-sdk/pull/5718) Remove call to `ctx.BlockGasMeter` during failed message validation which resulted in a panic when the tx execution mode was `CheckTx`. +* (x/genutil) [\#5775](https://github.com/eligion/cosmos-sdk/pull/5775) Fix `ExportGenesis` in `x/genutil` to export default genesis state (`[]`) instead of `null`. +* (client) [\#5618](https://github.com/eligion/cosmos-sdk/pull/5618) Fix crash on the client when the verifier is not set. +* (crypto/keys/mintkey) [\#5823](https://github.com/eligion/cosmos-sdk/pull/5823) fix errors handling in `UnarmorPubKeyBytes` (underlying armoring function's return error was not being checked). +* (x/distribution) [\#5620](https://github.com/eligion/cosmos-sdk/pull/5620) Fix nil pointer deref in distribution tax/reward validation helpers. ### Improvements -* (rest) [\#5648](https://github.com/cosmos/cosmos-sdk/pull/5648) Enhance /txs usability: +* (rest) [\#5648](https://github.com/eligion/cosmos-sdk/pull/5648) Enhance /txs usability: * Add `tx.minheight` key to filter transaction with an inclusive minimum block height * Add `tx.maxheight` key to filter transaction with an inclusive maximum block height -* (crypto/keys) [\#5739](https://github.com/cosmos/cosmos-sdk/pull/5739) Print an error message if the password input failed. +* (crypto/keys) [\#5739](https://github.com/eligion/cosmos-sdk/pull/5739) Print an error message if the password input failed. ## [v0.38.1] - 2020-02-11 ### Improvements -* (modules) [\#5597](https://github.com/cosmos/cosmos-sdk/pull/5597) Add `amount` event attribute to the `complete_unbonding` +* (modules) [\#5597](https://github.com/eligion/cosmos-sdk/pull/5597) Add `amount` event attribute to the `complete_unbonding` and `complete_redelegation` events that reflect the total balances of the completed unbondings and redelegations respectively. ### Bug Fixes -* (types) [\#5579](https://github.com/cosmos/cosmos-sdk/pull/5579) The IAVL `Store#Commit` method has been refactored to +* (types) [\#5579](https://github.com/eligion/cosmos-sdk/pull/5579) The IAVL `Store#Commit` method has been refactored to delete a flushed version if it is not a snapshot version. The root multi-store now keeps track of `commitInfo` instead of `types.CommitID`. During `Commit` of the root multi-store, `lastCommitInfo` is updated from the saved state and is only flushed to disk if it is a snapshot version. During `Query` of the root multi-store, if the request height is the latest height, we'll use the store's `lastCommitInfo`. Otherwise, we fetch `commitInfo` from disk. -* (x/bank) [\#5531](https://github.com/cosmos/cosmos-sdk/issues/5531) Added missing amount event to MsgMultiSend, emitted for each output. -* (x/gov) [\#5622](https://github.com/cosmos/cosmos-sdk/pull/5622) Track any events emitted from a proposal's handler upon successful execution. +* (x/bank) [\#5531](https://github.com/eligion/cosmos-sdk/issues/5531) Added missing amount event to MsgMultiSend, emitted for each output. +* (x/gov) [\#5622](https://github.com/eligion/cosmos-sdk/pull/5622) Track any events emitted from a proposal's handler upon successful execution. ## [v0.38.0] - 2020-01-23 ### State Machine Breaking -* (genesis) [\#5506](https://github.com/cosmos/cosmos-sdk/pull/5506) The `x/distribution` genesis state +* (genesis) [\#5506](https://github.com/eligion/cosmos-sdk/pull/5506) The `x/distribution` genesis state now includes `params` instead of individual parameters. -* (genesis) [\#5017](https://github.com/cosmos/cosmos-sdk/pull/5017) The `x/genaccounts` module has been +* (genesis) [\#5017](https://github.com/eligion/cosmos-sdk/pull/5017) The `x/genaccounts` module has been deprecated and all components removed except the `legacy/` package. This requires changes to the genesis state. Namely, `accounts` now exist under `app_state.auth.accounts`. The corresponding migration logic has been implemented for v0.38 target version. Applications can migrate via: `$ {appd} migrate v0.38 genesis.json`. -* (modules) [\#5299](https://github.com/cosmos/cosmos-sdk/pull/5299) Handling of `ABCIEvidenceTypeDuplicateVote` +* (modules) [\#5299](https://github.com/eligion/cosmos-sdk/pull/5299) Handling of `ABCIEvidenceTypeDuplicateVote` during `BeginBlock` along with the corresponding parameters (`MaxEvidenceAge`) have moved from the `x/slashing` module to the `x/evidence` module. ### API Breaking Changes -* (modules) [\#5506](https://github.com/cosmos/cosmos-sdk/pull/5506) Remove individual setters of `x/distribution` parameters. Instead, follow the module spec in getting parameters, setting new value(s) and finally calling `SetParams`. -* (types) [\#5495](https://github.com/cosmos/cosmos-sdk/pull/5495) Remove redundant `(Must)Bech32ify*` and `(Must)Get*KeyBech32` functions in favor of `(Must)Bech32ifyPubKey` and `(Must)GetPubKeyFromBech32` respectively, both of which take a `Bech32PubKeyType` (string). -* (types) [\#5430](https://github.com/cosmos/cosmos-sdk/pull/5430) `DecCoins#Add` parameter changed from `DecCoins` +* (modules) [\#5506](https://github.com/eligion/cosmos-sdk/pull/5506) Remove individual setters of `x/distribution` parameters. Instead, follow the module spec in getting parameters, setting new value(s) and finally calling `SetParams`. +* (types) [\#5495](https://github.com/eligion/cosmos-sdk/pull/5495) Remove redundant `(Must)Bech32ify*` and `(Must)Get*KeyBech32` functions in favor of `(Must)Bech32ifyPubKey` and `(Must)GetPubKeyFromBech32` respectively, both of which take a `Bech32PubKeyType` (string). +* (types) [\#5430](https://github.com/eligion/cosmos-sdk/pull/5430) `DecCoins#Add` parameter changed from `DecCoins` to `...DecCoin`, `Coins#Add` parameter changed from `Coins` to `...Coin`. -* (baseapp/types) [\#5421](https://github.com/cosmos/cosmos-sdk/pull/5421) The `Error` interface (`types/errors.go`) +* (baseapp/types) [\#5421](https://github.com/eligion/cosmos-sdk/pull/5421) The `Error` interface (`types/errors.go`) has been removed in favor of the concrete type defined in `types/errors/` which implements the standard `error` interface. * As a result, the `Handler` and `Querier` implementations now return a standard `error`. Within `BaseApp`, `runTx` now returns a `(GasInfo, *Result, error)` tuple and `runMsgs` returns a @@ -1051,19 +1051,19 @@ has been removed in favor of the concrete type defined in `types/errors/` which package contains all the relevant and pre-registered errors that you typically work with. A typical error returned will look like `sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, "...")`. You can retrieve relevant ABCI information from the error via `ABCIInfo`. -* (client) [\#5442](https://github.com/cosmos/cosmos-sdk/pull/5442) Remove client/alias.go as it's not necessary and +* (client) [\#5442](https://github.com/eligion/cosmos-sdk/pull/5442) Remove client/alias.go as it's not necessary and components can be imported directly from the packages. -* (store) [\#4748](https://github.com/cosmos/cosmos-sdk/pull/4748) The `CommitMultiStore` interface +* (store) [\#4748](https://github.com/eligion/cosmos-sdk/pull/4748) The `CommitMultiStore` interface now requires a `SetInterBlockCache` method. Applications that do not wish to support this can simply have this method perform a no-op. -* (modules) [\#4665](https://github.com/cosmos/cosmos-sdk/issues/4665) Refactored `x/gov` module structure and dev-UX: +* (modules) [\#4665](https://github.com/eligion/cosmos-sdk/issues/4665) Refactored `x/gov` module structure and dev-UX: * Prepare for module spec integration * Update gov keys to use big endian encoding instead of little endian -* (modules) [\#5017](https://github.com/cosmos/cosmos-sdk/pull/5017) The `x/genaccounts` module has been deprecated and all components removed except the `legacy/` package. -* [\#4486](https://github.com/cosmos/cosmos-sdk/issues/4486) Vesting account types decoupled from the `x/auth` module and now live under `x/auth/vesting`. Applications wishing to use vesting account types must be sure to register types via `RegisterCodec` under the new vesting package. -* [\#4486](https://github.com/cosmos/cosmos-sdk/issues/4486) The `NewBaseVestingAccount` constructor returns an error +* (modules) [\#5017](https://github.com/eligion/cosmos-sdk/pull/5017) The `x/genaccounts` module has been deprecated and all components removed except the `legacy/` package. +* [\#4486](https://github.com/eligion/cosmos-sdk/issues/4486) Vesting account types decoupled from the `x/auth` module and now live under `x/auth/vesting`. Applications wishing to use vesting account types must be sure to register types via `RegisterCodec` under the new vesting package. +* [\#4486](https://github.com/eligion/cosmos-sdk/issues/4486) The `NewBaseVestingAccount` constructor returns an error if the provided arguments are invalid. -* (x/auth) [\#5006](https://github.com/cosmos/cosmos-sdk/pull/5006) Modular `AnteHandler` via composable decorators: +* (x/auth) [\#5006](https://github.com/eligion/cosmos-sdk/pull/5006) Modular `AnteHandler` via composable decorators: * The `AnteHandler` interface now returns `(newCtx Context, err error)` instead of `(newCtx Context, result sdk.Result, abort bool)` * The `NewAnteHandler` function returns an `AnteHandler` function that returns the new `AnteHandler` interface and has been moved into the `auth/ante` directory. @@ -1074,12 +1074,12 @@ if the provided arguments are invalid. * `StdTx#GetSignatures` will return an array of just signature byte slices `[][]byte` instead of returning an array of `StdSignature` structs. To replicate the old behavior, use the public field `StdTx.Signatures` to get back the array of StdSignatures `[]StdSignature`. -* (modules) [\#5299](https://github.com/cosmos/cosmos-sdk/pull/5299) `HandleDoubleSign` along with params `MaxEvidenceAge` and `DoubleSignJailEndTime` have moved from the `x/slashing` module to the `x/evidence` module. -* (keys) [\#4941](https://github.com/cosmos/cosmos-sdk/issues/4941) Keybase concrete types constructors such as `NewKeyBaseFromDir` and `NewInMemory` now accept optional parameters of type `KeybaseOption`. These +* (modules) [\#5299](https://github.com/eligion/cosmos-sdk/pull/5299) `HandleDoubleSign` along with params `MaxEvidenceAge` and `DoubleSignJailEndTime` have moved from the `x/slashing` module to the `x/evidence` module. +* (keys) [\#4941](https://github.com/eligion/cosmos-sdk/issues/4941) Keybase concrete types constructors such as `NewKeyBaseFromDir` and `NewInMemory` now accept optional parameters of type `KeybaseOption`. These optional parameters are also added on the keys sub-commands functions, which are now public, and allows these options to be set on the commands or ignored to default to previous behavior. -* [\#5547](https://github.com/cosmos/cosmos-sdk/pull/5547) `NewKeyBaseFromHomeFlag` constructor has been removed. -* [\#5439](https://github.com/cosmos/cosmos-sdk/pull/5439) Further modularization was done to the `keybase` +* [\#5547](https://github.com/eligion/cosmos-sdk/pull/5547) `NewKeyBaseFromHomeFlag` constructor has been removed. +* [\#5439](https://github.com/eligion/cosmos-sdk/pull/5439) Further modularization was done to the `keybase` package to make it more suitable for use with different key formats and algorithms: * The `WithKeygenFunc` function added as a `KeybaseOption` which allows a custom bytes to key implementation to be defined when keys are created. @@ -1089,58 +1089,58 @@ package to make it more suitable for use with different key formats and algorith the `client/keys` add command. * `SupportedAlgos` and `SupportedAlgosLedger` functions return a slice of `SigningAlgo`s that are supported by the keybase and the ledger integration respectively. -* (simapp) [\#5419](https://github.com/cosmos/cosmos-sdk/pull/5419) The `helpers.GenTx()` now accepts a gas argument. -* (baseapp) [\#5455](https://github.com/cosmos/cosmos-sdk/issues/5455) A `sdk.Context` is now passed into the `router.Route()` function. +* (simapp) [\#5419](https://github.com/eligion/cosmos-sdk/pull/5419) The `helpers.GenTx()` now accepts a gas argument. +* (baseapp) [\#5455](https://github.com/eligion/cosmos-sdk/issues/5455) A `sdk.Context` is now passed into the `router.Route()` function. ### Client Breaking Changes -* (rest) [\#5270](https://github.com/cosmos/cosmos-sdk/issues/5270) All account types now implement custom JSON serialization. -* (rest) [\#4783](https://github.com/cosmos/cosmos-sdk/issues/4783) The balance field in the DelegationResponse type is now sdk.Coin instead of sdk.Int -* (x/auth) [\#5006](https://github.com/cosmos/cosmos-sdk/pull/5006) The gas required to pass the `AnteHandler` has +* (rest) [\#5270](https://github.com/eligion/cosmos-sdk/issues/5270) All account types now implement custom JSON serialization. +* (rest) [\#4783](https://github.com/eligion/cosmos-sdk/issues/4783) The balance field in the DelegationResponse type is now sdk.Coin instead of sdk.Int +* (x/auth) [\#5006](https://github.com/eligion/cosmos-sdk/pull/5006) The gas required to pass the `AnteHandler` has increased significantly due to modular `AnteHandler` support. Increase GasLimit accordingly. -* (rest) [\#5336](https://github.com/cosmos/cosmos-sdk/issues/5336) `MsgEditValidator` uses `description` instead of `Description` as a JSON key. -* (keys) [\#5097](https://github.com/cosmos/cosmos-sdk/pull/5097) Due to the keybase -> keyring transition, keys need to be migrated. See `keys migrate` command for more info. -* (x/auth) [\#5424](https://github.com/cosmos/cosmos-sdk/issues/5424) Drop `decode-tx` command from x/auth/client/cli, duplicate of the `decode` command. +* (rest) [\#5336](https://github.com/eligion/cosmos-sdk/issues/5336) `MsgEditValidator` uses `description` instead of `Description` as a JSON key. +* (keys) [\#5097](https://github.com/eligion/cosmos-sdk/pull/5097) Due to the keybase -> keyring transition, keys need to be migrated. See `keys migrate` command for more info. +* (x/auth) [\#5424](https://github.com/eligion/cosmos-sdk/issues/5424) Drop `decode-tx` command from x/auth/client/cli, duplicate of the `decode` command. ### Features -* (store) [\#5435](https://github.com/cosmos/cosmos-sdk/pull/5435) New iterator for paginated requests. Iterator limits DB reads to the range of the requested page. -* (x/evidence) [\#5240](https://github.com/cosmos/cosmos-sdk/pull/5240) Initial implementation of the `x/evidence` module. -* (cli) [\#5212](https://github.com/cosmos/cosmos-sdk/issues/5212) The `q gov proposals` command now supports pagination. -* (store) [\#4724](https://github.com/cosmos/cosmos-sdk/issues/4724) Multistore supports substore migrations upon load. New `rootmulti.Store.LoadLatestVersionAndUpgrade` method in +* (store) [\#5435](https://github.com/eligion/cosmos-sdk/pull/5435) New iterator for paginated requests. Iterator limits DB reads to the range of the requested page. +* (x/evidence) [\#5240](https://github.com/eligion/cosmos-sdk/pull/5240) Initial implementation of the `x/evidence` module. +* (cli) [\#5212](https://github.com/eligion/cosmos-sdk/issues/5212) The `q gov proposals` command now supports pagination. +* (store) [\#4724](https://github.com/eligion/cosmos-sdk/issues/4724) Multistore supports substore migrations upon load. New `rootmulti.Store.LoadLatestVersionAndUpgrade` method in `Baseapp` supports `StoreLoader` to enable various upgrade strategies. It no longer panics if the store to load contains substores that we didn't explicitly mount. -* [\#4972](https://github.com/cosmos/cosmos-sdk/issues/4972) A `TxResponse` with a corresponding code +* [\#4972](https://github.com/eligion/cosmos-sdk/issues/4972) A `TxResponse` with a corresponding code and tx hash will be returned for specific Tendermint errors: * `CodeTxInMempoolCache` * `CodeMempoolIsFull` * `CodeTxTooLarge` -* [\#3872](https://github.com/cosmos/cosmos-sdk/issues/3872) Implement a RESTful endpoint and cli command to decode transactions. -* (keys) [\#4754](https://github.com/cosmos/cosmos-sdk/pull/4754) Introduce new Keybase implementation that can +* [\#3872](https://github.com/eligion/cosmos-sdk/issues/3872) Implement a RESTful endpoint and cli command to decode transactions. +* (keys) [\#4754](https://github.com/eligion/cosmos-sdk/pull/4754) Introduce new Keybase implementation that can leverage operating systems' built-in functionalities to securely store secrets. MacOS users may encounter the following [issue](https://github.com/keybase/go-keychain/issues/47) with the `go-keychain` library. If you encounter this issue, you must upgrade your xcode command line tools to version >= `10.2`. You can upgrade via: `sudo rm -rf /Library/Developer/CommandLineTools; xcode-select --install`. Verify the correct version via: `pkgutil --pkg-info=com.apple.pkg.CLTools_Executables`. -* [\#5355](https://github.com/cosmos/cosmos-sdk/pull/5355) Client commands accept a new `--keyring-backend` option through which users can specify which backend should be used +* [\#5355](https://github.com/eligion/cosmos-sdk/pull/5355) Client commands accept a new `--keyring-backend` option through which users can specify which backend should be used by the new key store: * `os`: use OS default credentials storage (default). * `file`: use encrypted file-based store. * `kwallet`: use [KDE Wallet](https://utils.kde.org/projects/kwalletmanager/) service. * `pass`: use the [pass](https://www.passwordstore.org/) command line password manager. * `test`: use password-less key store. *For testing purposes only. Use it at your own risk.* -* (keys) [\#5097](https://github.com/cosmos/cosmos-sdk/pull/5097) New `keys migrate` command to assist users migrate their keys +* (keys) [\#5097](https://github.com/eligion/cosmos-sdk/pull/5097) New `keys migrate` command to assist users migrate their keys to the new keyring. -* (keys) [\#5366](https://github.com/cosmos/cosmos-sdk/pull/5366) `keys list` now accepts a `--list-names` option to list key names only, whilst the `keys delete` +* (keys) [\#5366](https://github.com/eligion/cosmos-sdk/pull/5366) `keys list` now accepts a `--list-names` option to list key names only, whilst the `keys delete` command can delete multiple keys by passing their names as arguments. The aforementioned commands can then be piped together, e.g. `appcli keys list -n | xargs appcli keys delete` -* (modules) [\#4233](https://github.com/cosmos/cosmos-sdk/pull/4233) Add upgrade module that coordinates software upgrades of live chains. -* [\#4486](https://github.com/cosmos/cosmos-sdk/issues/4486) Introduce new `PeriodicVestingAccount` vesting account type +* (modules) [\#4233](https://github.com/eligion/cosmos-sdk/pull/4233) Add upgrade module that coordinates software upgrades of live chains. +* [\#4486](https://github.com/eligion/cosmos-sdk/issues/4486) Introduce new `PeriodicVestingAccount` vesting account type that allows for arbitrary vesting periods. -* (baseapp) [\#5196](https://github.com/cosmos/cosmos-sdk/pull/5196) Baseapp has a new `runTxModeReCheck` to allow applications to skip expensive and unnecessary re-checking of transactions. -* (types) [\#5196](https://github.com/cosmos/cosmos-sdk/pull/5196) Context has new `IsRecheckTx() bool` and `WithIsReCheckTx(bool) Context` methods to to be used in the `AnteHandler`. -* (x/auth/ante) [\#5196](https://github.com/cosmos/cosmos-sdk/pull/5196) AnteDecorators have been updated to avoid unnecessary checks when `ctx.IsReCheckTx() == true` -* (x/auth) [\#5006](https://github.com/cosmos/cosmos-sdk/pull/5006) Modular `AnteHandler` via composable decorators: +* (baseapp) [\#5196](https://github.com/eligion/cosmos-sdk/pull/5196) Baseapp has a new `runTxModeReCheck` to allow applications to skip expensive and unnecessary re-checking of transactions. +* (types) [\#5196](https://github.com/eligion/cosmos-sdk/pull/5196) Context has new `IsRecheckTx() bool` and `WithIsReCheckTx(bool) Context` methods to to be used in the `AnteHandler`. +* (x/auth/ante) [\#5196](https://github.com/eligion/cosmos-sdk/pull/5196) AnteDecorators have been updated to avoid unnecessary checks when `ctx.IsReCheckTx() == true` +* (x/auth) [\#5006](https://github.com/eligion/cosmos-sdk/pull/5006) Modular `AnteHandler` via composable decorators: * The `AnteDecorator` interface has been introduced to allow users to implement modular `AnteHandler` functionality that can be composed together to create a single `AnteHandler` rather than implementing a custom `AnteHandler` completely from scratch, where each `AnteDecorator` allows for custom behavior in @@ -1163,24 +1163,24 @@ that allows for arbitrary vesting periods. * `SigVerificationDecorator`: Verify each signature is valid, return if there is an error. * `ValidateSigCountDecorator`: Validate the number of signatures in tx based on app-parameters. * `IncrementSequenceDecorator`: Increments the account sequence for each signer to prevent replay attacks. -* (cli) [\#5223](https://github.com/cosmos/cosmos-sdk/issues/5223) Cosmos Ledger App v2.0.0 is now supported. The changes are backwards compatible and App v1.5.x is still supported. -* (x/staking) [\#5380](https://github.com/cosmos/cosmos-sdk/pull/5380) Introduced ability to store historical info entries in staking keeper, allows applications to introspect specified number of past headers and validator sets +* (cli) [\#5223](https://github.com/eligion/cosmos-sdk/issues/5223) Cosmos Ledger App v2.0.0 is now supported. The changes are backwards compatible and App v1.5.x is still supported. +* (x/staking) [\#5380](https://github.com/eligion/cosmos-sdk/pull/5380) Introduced ability to store historical info entries in staking keeper, allows applications to introspect specified number of past headers and validator sets * Introduces new parameter `HistoricalEntries` which allows applications to determine how many recent historical info entries they want to persist in store. Default value is 0. * Introduces cli commands and rest routes to query historical information at a given height -* (modules) [\#5249](https://github.com/cosmos/cosmos-sdk/pull/5249) Funds are now allowed to be directly sent to the community pool (via the distribution module account). -* (keys) [\#4941](https://github.com/cosmos/cosmos-sdk/issues/4941) Introduce keybase option to allow overriding the default private key implementation of a key generated through the `keys add` cli command. -* (keys) [\#5439](https://github.com/cosmos/cosmos-sdk/pull/5439) Flags `--algo` and `--hd-path` are added to +* (modules) [\#5249](https://github.com/eligion/cosmos-sdk/pull/5249) Funds are now allowed to be directly sent to the community pool (via the distribution module account). +* (keys) [\#4941](https://github.com/eligion/cosmos-sdk/issues/4941) Introduce keybase option to allow overriding the default private key implementation of a key generated through the `keys add` cli command. +* (keys) [\#5439](https://github.com/eligion/cosmos-sdk/pull/5439) Flags `--algo` and `--hd-path` are added to `keys add` command in order to make use of keybase modularized. By default, it uses (0, 0) bip44 HD path and secp256k1 keys, so is non-breaking. -* (types) [\#5447](https://github.com/cosmos/cosmos-sdk/pull/5447) Added `ApproxRoot` function to sdk.Decimal type in order to get the nth root for a decimal number, where n is a positive integer. +* (types) [\#5447](https://github.com/eligion/cosmos-sdk/pull/5447) Added `ApproxRoot` function to sdk.Decimal type in order to get the nth root for a decimal number, where n is a positive integer. * An `ApproxSqrt` function was also added for convenience around the common case of n=2. ### Improvements -* (iavl) [\#5538](https://github.com/cosmos/cosmos-sdk/pull/5538) Remove manual IAVL pruning in favor of IAVL's internal pruning strategy. -* (server) [\#4215](https://github.com/cosmos/cosmos-sdk/issues/4215) The `--pruning` flag +* (iavl) [\#5538](https://github.com/eligion/cosmos-sdk/pull/5538) Remove manual IAVL pruning in favor of IAVL's internal pruning strategy. +* (server) [\#4215](https://github.com/eligion/cosmos-sdk/issues/4215) The `--pruning` flag has been moved to the configuration file, to allow easier node configuration. -* (cli) [\#5116](https://github.com/cosmos/cosmos-sdk/issues/5116) The `CLIContext` now supports multiple verifiers +* (cli) [\#5116](https://github.com/eligion/cosmos-sdk/issues/5116) The `CLIContext` now supports multiple verifiers when connecting to multiple chains. The connecting chain's `CLIContext` will have to have the correct chain ID and node URI or client set. To use a `CLIContext` with a verifier for another chain: ```go @@ -1196,21 +1196,21 @@ chain ID and node URI or client set. To use a `CLIContext` with a verifier for a context.CreateVerifier(sideCtx, context.DefaultVerifierCacheSize), ) ``` -* (modules) [\#5017](https://github.com/cosmos/cosmos-sdk/pull/5017) The `x/auth` package now supports +* (modules) [\#5017](https://github.com/eligion/cosmos-sdk/pull/5017) The `x/auth` package now supports generalized genesis accounts through the `GenesisAccount` interface. -* (modules) [\#4762](https://github.com/cosmos/cosmos-sdk/issues/4762) Deprecate remove and add permissions in ModuleAccount. -* (modules) [\#4760](https://github.com/cosmos/cosmos-sdk/issues/4760) update `x/auth` to match module spec. -* (modules) [\#4814](https://github.com/cosmos/cosmos-sdk/issues/4814) Add security contact to Validator description. -* (modules) [\#4875](https://github.com/cosmos/cosmos-sdk/issues/4875) refactor integration tests to use SimApp and separate test package -* (sdk) [\#4566](https://github.com/cosmos/cosmos-sdk/issues/4566) Export simulation's parameters and app state to JSON in order to reproduce bugs and invariants. -* (sdk) [\#4640](https://github.com/cosmos/cosmos-sdk/issues/4640) improve import/export simulation errors by extending `DiffKVStores` to return an array of `KVPairs` that are then compared to check for inconsistencies. -* (sdk) [\#4717](https://github.com/cosmos/cosmos-sdk/issues/4717) refactor `x/slashing` to match the new module spec -* (sdk) [\#4758](https://github.com/cosmos/cosmos-sdk/issues/4758) update `x/genaccounts` to match module spec -* (simulation) [\#4824](https://github.com/cosmos/cosmos-sdk/issues/4824) `PrintAllInvariants` flag will print all failed invariants -* (simulation) [\#4490](https://github.com/cosmos/cosmos-sdk/issues/4490) add `InitialBlockHeight` flag to resume a simulation from a given block +* (modules) [\#4762](https://github.com/eligion/cosmos-sdk/issues/4762) Deprecate remove and add permissions in ModuleAccount. +* (modules) [\#4760](https://github.com/eligion/cosmos-sdk/issues/4760) update `x/auth` to match module spec. +* (modules) [\#4814](https://github.com/eligion/cosmos-sdk/issues/4814) Add security contact to Validator description. +* (modules) [\#4875](https://github.com/eligion/cosmos-sdk/issues/4875) refactor integration tests to use SimApp and separate test package +* (sdk) [\#4566](https://github.com/eligion/cosmos-sdk/issues/4566) Export simulation's parameters and app state to JSON in order to reproduce bugs and invariants. +* (sdk) [\#4640](https://github.com/eligion/cosmos-sdk/issues/4640) improve import/export simulation errors by extending `DiffKVStores` to return an array of `KVPairs` that are then compared to check for inconsistencies. +* (sdk) [\#4717](https://github.com/eligion/cosmos-sdk/issues/4717) refactor `x/slashing` to match the new module spec +* (sdk) [\#4758](https://github.com/eligion/cosmos-sdk/issues/4758) update `x/genaccounts` to match module spec +* (simulation) [\#4824](https://github.com/eligion/cosmos-sdk/issues/4824) `PrintAllInvariants` flag will print all failed invariants +* (simulation) [\#4490](https://github.com/eligion/cosmos-sdk/issues/4490) add `InitialBlockHeight` flag to resume a simulation from a given block * Support exporting the simulation stats to a given JSON file -* (simulation) [\#4847](https://github.com/cosmos/cosmos-sdk/issues/4847), [\#4838](https://github.com/cosmos/cosmos-sdk/pull/4838) and [\#4869](https://github.com/cosmos/cosmos-sdk/pull/4869) `SimApp` and simulation refactors: +* (simulation) [\#4847](https://github.com/eligion/cosmos-sdk/issues/4847), [\#4838](https://github.com/eligion/cosmos-sdk/pull/4838) and [\#4869](https://github.com/eligion/cosmos-sdk/pull/4869) `SimApp` and simulation refactors: * Implement `SimulationManager` for executing modules' simulation functionalities in a modularized way * Add `RegisterStoreDecoders` to the `SimulationManager` for decoding each module's types * Add `GenerateGenesisStates` to the `SimulationManager` to generate a randomized `GenState` for each module @@ -1219,37 +1219,37 @@ generalized genesis accounts through the `GenesisAccount` interface. * Add `WeightedOperations` to the `SimulationManager` that define simulation operations (modules' `Msg`s) with their respective weights (i.e chance of being simulated). * Add `ProposalContents` to the `SimulationManager` to register each module's governance proposal `Content`s. -* (simulation) [\#4893](https://github.com/cosmos/cosmos-sdk/issues/4893) Change `SimApp` keepers to be public and add getter functions for keys and codec -* (simulation) [\#4906](https://github.com/cosmos/cosmos-sdk/issues/4906) Add simulation `Config` struct that wraps simulation flags -* (simulation) [\#4935](https://github.com/cosmos/cosmos-sdk/issues/4935) Update simulation to reflect a proper `ABCI` application without bypassing `BaseApp` semantics -* (simulation) [\#5378](https://github.com/cosmos/cosmos-sdk/pull/5378) Simulation tests refactor: +* (simulation) [\#4893](https://github.com/eligion/cosmos-sdk/issues/4893) Change `SimApp` keepers to be public and add getter functions for keys and codec +* (simulation) [\#4906](https://github.com/eligion/cosmos-sdk/issues/4906) Add simulation `Config` struct that wraps simulation flags +* (simulation) [\#4935](https://github.com/eligion/cosmos-sdk/issues/4935) Update simulation to reflect a proper `ABCI` application without bypassing `BaseApp` semantics +* (simulation) [\#5378](https://github.com/eligion/cosmos-sdk/pull/5378) Simulation tests refactor: * Add `App` interface for general SDK-based app's methods. * Refactor and cleanup simulation tests into util functions to simplify their implementation for other SDK apps. -* (store) [\#4792](https://github.com/cosmos/cosmos-sdk/issues/4792) panic on non-registered store -* (types) [\#4821](https://github.com/cosmos/cosmos-sdk/issues/4821) types/errors package added with support for stacktraces. It is meant as a more feature-rich replacement for sdk.Errors in the mid-term. -* (store) [\#1947](https://github.com/cosmos/cosmos-sdk/issues/1947) Implement inter-block (persistent) +* (store) [\#4792](https://github.com/eligion/cosmos-sdk/issues/4792) panic on non-registered store +* (types) [\#4821](https://github.com/eligion/cosmos-sdk/issues/4821) types/errors package added with support for stacktraces. It is meant as a more feature-rich replacement for sdk.Errors in the mid-term. +* (store) [\#1947](https://github.com/eligion/cosmos-sdk/issues/1947) Implement inter-block (persistent) caching through `CommitKVStoreCacheManager`. Any application wishing to utilize an inter-block cache must set it in their app via a `BaseApp` option. The `BaseApp` docs have been drastically improved to detail this new feature and how state transitions occur. * (docs/spec) All module specs moved into their respective module dir in x/ (i.e. docs/spec/staking -->> x/staking/spec) -* (docs/) [\#5379](https://github.com/cosmos/cosmos-sdk/pull/5379) Major documentation refactor, including: +* (docs/) [\#5379](https://github.com/eligion/cosmos-sdk/pull/5379) Major documentation refactor, including: * (docs/intro/) Add and improve introduction material for newcomers. * (docs/basics/) Add documentation about basic concepts of the cosmos sdk such as the anatomy of an SDK application, the transaction lifecycle or accounts. * (docs/core/) Add documentation about core conepts of the cosmos sdk such as `baseapp`, `server`, `store`s, `context` and more. * (docs/building-modules/) Add reference documentation on concepts relevant for module developers (`keeper`, `handler`, `messages`, `queries`,...). * (docs/interfaces/) Add documentation on building interfaces for the Cosmos SDK. * Redesigned user interface that features new dynamically generated sidebar, build-time code embedding from GitHub, new homepage as well as many other improvements. -* (types) [\#5428](https://github.com/cosmos/cosmos-sdk/pull/5428) Add `Mod` (modulo) method and `RelativePow` (exponentation) function for `Uint`. -* (modules) [\#5506](https://github.com/cosmos/cosmos-sdk/pull/5506) Remove redundancy in `x/distribution`s use of parameters. There +* (types) [\#5428](https://github.com/eligion/cosmos-sdk/pull/5428) Add `Mod` (modulo) method and `RelativePow` (exponentation) function for `Uint`. +* (modules) [\#5506](https://github.com/eligion/cosmos-sdk/pull/5506) Remove redundancy in `x/distribution`s use of parameters. There now exists a single `Params` type with a getter and setter along with a getter for each individual parameter. ### Bug Fixes -* (client) [\#5303](https://github.com/cosmos/cosmos-sdk/issues/5303) Fix ignored error in tx generate only mode. -* (cli) [\#4763](https://github.com/cosmos/cosmos-sdk/issues/4763) Fix flag `--min-self-delegation` for staking `EditValidator` +* (client) [\#5303](https://github.com/eligion/cosmos-sdk/issues/5303) Fix ignored error in tx generate only mode. +* (cli) [\#4763](https://github.com/eligion/cosmos-sdk/issues/4763) Fix flag `--min-self-delegation` for staking `EditValidator` * (keys) Fix ledger custom coin type support bug. -* (x/gov) [\#5107](https://github.com/cosmos/cosmos-sdk/pull/5107) Sum validator operator's all voting power when tally votes -* (rest) [\#5212](https://github.com/cosmos/cosmos-sdk/issues/5212) Fix pagination in the `/gov/proposals` handler. +* (x/gov) [\#5107](https://github.com/eligion/cosmos-sdk/pull/5107) Sum validator operator's all voting power when tally votes +* (rest) [\#5212](https://github.com/eligion/cosmos-sdk/issues/5212) Fix pagination in the `/gov/proposals` handler. ## [v0.37.14] - 2020-08-12 @@ -1275,13 +1275,13 @@ to detail this new feature and how state transitions occur. ### Bug Fixes -* (x/staking) [\#6021](https://github.com/cosmos/cosmos-sdk/pull/6021) --trust-node's false default value prevents creation of the genesis transaction. +* (x/staking) [\#6021](https://github.com/eligion/cosmos-sdk/pull/6021) --trust-node's false default value prevents creation of the genesis transaction. ## [v0.37.10] - 2020-04-22 ### Bug Fixes -* (client/context) [\#5964](https://github.com/cosmos/cosmos-sdk/issues/5964) Fix incorrect instantiation of tmlite verifier when --trust-node is off. +* (client/context) [\#5964](https://github.com/eligion/cosmos-sdk/issues/5964) Fix incorrect instantiation of tmlite verifier when --trust-node is off. ## [v0.37.9] - 2020-04-09 @@ -1293,14 +1293,14 @@ to detail this new feature and how state transitions occur. ### Bug Fixes -* (rest) [\#5508](https://github.com/cosmos/cosmos-sdk/pull/5508) Fix `x/distribution` endpoints to properly return height in the response. -* (x/genutil) [\#5499](https://github.com/cosmos/cosmos-sdk/pull/) Ensure `DefaultGenesis` returns valid and non-nil default genesis state. -* (x/genutil) [\#5775](https://github.com/cosmos/cosmos-sdk/pull/5775) Fix `ExportGenesis` in `x/genutil` to export default genesis state (`[]`) instead of `null`. -* (genesis) [\#5086](https://github.com/cosmos/cosmos-sdk/issues/5086) Ensure `gentxs` are always an empty array instead of `nil`. +* (rest) [\#5508](https://github.com/eligion/cosmos-sdk/pull/5508) Fix `x/distribution` endpoints to properly return height in the response. +* (x/genutil) [\#5499](https://github.com/eligion/cosmos-sdk/pull/) Ensure `DefaultGenesis` returns valid and non-nil default genesis state. +* (x/genutil) [\#5775](https://github.com/eligion/cosmos-sdk/pull/5775) Fix `ExportGenesis` in `x/genutil` to export default genesis state (`[]`) instead of `null`. +* (genesis) [\#5086](https://github.com/eligion/cosmos-sdk/issues/5086) Ensure `gentxs` are always an empty array instead of `nil`. ### Improvements -* (rest) [\#5648](https://github.com/cosmos/cosmos-sdk/pull/5648) Enhance /txs usability: +* (rest) [\#5648](https://github.com/eligion/cosmos-sdk/pull/5648) Enhance /txs usability: * Add `tx.minheight` key to filter transaction with an inclusive minimum block height * Add `tx.maxheight` key to filter transaction with an inclusive maximum block height @@ -1308,14 +1308,14 @@ to detail this new feature and how state transitions occur. ### Improvements -* (modules) [\#5597](https://github.com/cosmos/cosmos-sdk/pull/5597) Add `amount` event attribute to the `complete_unbonding` +* (modules) [\#5597](https://github.com/eligion/cosmos-sdk/pull/5597) Add `amount` event attribute to the `complete_unbonding` and `complete_redelegation` events that reflect the total balances of the completed unbondings and redelegations respectively. ### Bug Fixes -* (x/gov) [\#5622](https://github.com/cosmos/cosmos-sdk/pull/5622) Track any events emitted from a proposal's handler upon successful execution. -* (x/bank) [\#5531](https://github.com/cosmos/cosmos-sdk/issues/5531) Added missing amount event to MsgMultiSend, emitted for each output. +* (x/gov) [\#5622](https://github.com/eligion/cosmos-sdk/pull/5622) Track any events emitted from a proposal's handler upon successful execution. +* (x/bank) [\#5531](https://github.com/eligion/cosmos-sdk/issues/5531) Added missing amount event to MsgMultiSend, emitted for each output. ## [v0.37.6] - 2020-01-21 @@ -1327,40 +1327,40 @@ respectively. ### Features -* (types) [\#5360](https://github.com/cosmos/cosmos-sdk/pull/5360) Implement `SortableDecBytes` which +* (types) [\#5360](https://github.com/eligion/cosmos-sdk/pull/5360) Implement `SortableDecBytes` which allows the `Dec` type be sortable. ### Improvements * (tendermint) Bump Tendermint version to [v0.32.8](https://github.com/tendermint/tendermint/releases/tag/v0.32.8) -* (cli) [\#5482](https://github.com/cosmos/cosmos-sdk/pull/5482) Remove old "tags" nomenclature from the `q txs` command in +* (cli) [\#5482](https://github.com/eligion/cosmos-sdk/pull/5482) Remove old "tags" nomenclature from the `q txs` command in favor of the new events system. Functionality remains unchanged except that `=` is used instead of `:` to be consistent with the API's use of event queries. ### Bug Fixes -* (iavl) [\#5276](https://github.com/cosmos/cosmos-sdk/issues/5276) Fix potential race condition in `iavlIterator#Close`. -* (baseapp) [\#5350](https://github.com/cosmos/cosmos-sdk/issues/5350) Allow a node to restart successfully +* (iavl) [\#5276](https://github.com/eligion/cosmos-sdk/issues/5276) Fix potential race condition in `iavlIterator#Close`. +* (baseapp) [\#5350](https://github.com/eligion/cosmos-sdk/issues/5350) Allow a node to restart successfully after a `halt-height` or `halt-time` has been triggered. -* (types) [\#5395](https://github.com/cosmos/cosmos-sdk/issues/5395) Fix `Uint#LTE`. -* (types) [\#5408](https://github.com/cosmos/cosmos-sdk/issues/5408) `NewDecCoins` constructor now sorts the coins. +* (types) [\#5395](https://github.com/eligion/cosmos-sdk/issues/5395) Fix `Uint#LTE`. +* (types) [\#5408](https://github.com/eligion/cosmos-sdk/issues/5408) `NewDecCoins` constructor now sorts the coins. ## [v0.37.4] - 2019-11-04 ### Improvements * (tendermint) Bump Tendermint version to [v0.32.7](https://github.com/tendermint/tendermint/releases/tag/v0.32.7) -* (ledger) [\#4716](https://github.com/cosmos/cosmos-sdk/pull/4716) Fix ledger custom coin type support bug. +* (ledger) [\#4716](https://github.com/eligion/cosmos-sdk/pull/4716) Fix ledger custom coin type support bug. ### Bug Fixes -* (baseapp) [\#5200](https://github.com/cosmos/cosmos-sdk/issues/5200) Remove duplicate events from previous messages. +* (baseapp) [\#5200](https://github.com/eligion/cosmos-sdk/issues/5200) Remove duplicate events from previous messages. ## [v0.37.3] - 2019-10-10 ### Bug Fixes -* (genesis) [\#5095](https://github.com/cosmos/cosmos-sdk/issues/5095) Fix genesis file migration from v0.34 to +* (genesis) [\#5095](https://github.com/eligion/cosmos-sdk/issues/5095) Fix genesis file migration from v0.34 to v0.36/v0.37 not converting validator consensus pubkey to bech32 format. ### Improvements @@ -1371,42 +1371,42 @@ v0.36/v0.37 not converting validator consensus pubkey to bech32 format. ### Features -* (cli) [\#4973](https://github.com/cosmos/cosmos-sdk/pull/4973) Enable application CPU profiling +* (cli) [\#4973](https://github.com/eligion/cosmos-sdk/pull/4973) Enable application CPU profiling via the `--cpu-profile` flag. -* [\#4979](https://github.com/cosmos/cosmos-sdk/issues/4979) Introduce a new `halt-time` config and +* [\#4979](https://github.com/eligion/cosmos-sdk/issues/4979) Introduce a new `halt-time` config and CLI option to the `start` command. When provided, an application will halt during `Commit` when the block time is >= the `halt-time`. ### Improvements -* [\#4990](https://github.com/cosmos/cosmos-sdk/issues/4990) Add `Events` to the `ABCIMessageLog` to +* [\#4990](https://github.com/eligion/cosmos-sdk/issues/4990) Add `Events` to the `ABCIMessageLog` to provide context and grouping of events based on the messages they correspond to. The `Events` field in `TxResponse` is deprecated and will be removed in the next major release. ### Bug Fixes -* [\#4979](https://github.com/cosmos/cosmos-sdk/issues/4979) Use `Signal(os.Interrupt)` over +* [\#4979](https://github.com/eligion/cosmos-sdk/issues/4979) Use `Signal(os.Interrupt)` over `os.Exit(0)` during configured halting to allow any `defer` calls to be executed. -* [\#5034](https://github.com/cosmos/cosmos-sdk/issues/5034) Binary search in NFT Module wasn't working on larger sets. +* [\#5034](https://github.com/eligion/cosmos-sdk/issues/5034) Binary search in NFT Module wasn't working on larger sets. ## [v0.37.0] - 2019-08-21 ### Bug Fixes -* (baseapp) [\#4903](https://github.com/cosmos/cosmos-sdk/issues/4903) Various height query fixes: +* (baseapp) [\#4903](https://github.com/eligion/cosmos-sdk/issues/4903) Various height query fixes: * Move height with proof check from `CLIContext` to `BaseApp` as the height can automatically be injected there. * Update `handleQueryStore` to resemble `handleQueryCustom` -* (simulation) [\#4912](https://github.com/cosmos/cosmos-sdk/issues/4912) Fix SimApp ModuleAccountAddrs +* (simulation) [\#4912](https://github.com/eligion/cosmos-sdk/issues/4912) Fix SimApp ModuleAccountAddrs to properly return black listed addresses for bank keeper initialization. -* (cli) [\#4919](https://github.com/cosmos/cosmos-sdk/pull/4919) Don't crash CLI +* (cli) [\#4919](https://github.com/eligion/cosmos-sdk/pull/4919) Don't crash CLI if user doesn't answer y/n confirmation request. -* (cli) [\#4927](https://github.com/cosmos/cosmos-sdk/issues/4927) Fix the `q gov vote` +* (cli) [\#4927](https://github.com/eligion/cosmos-sdk/issues/4927) Fix the `q gov vote` command to handle empty (pruned) votes correctly. ### Improvements -* (rest) [\#4924](https://github.com/cosmos/cosmos-sdk/pull/4924) Return response +* (rest) [\#4924](https://github.com/eligion/cosmos-sdk/pull/4924) Return response height even upon error as it may be useful for the downstream caller and have `/auth/accounts/{address}` return a 200 with an empty account upon error when that error is that the account doesn't exist. @@ -1415,41 +1415,41 @@ that error is that the account doesn't exist. ### Breaking Changes -* (rest) [\#4837](https://github.com/cosmos/cosmos-sdk/pull/4837) Remove /version and /node_version +* (rest) [\#4837](https://github.com/eligion/cosmos-sdk/pull/4837) Remove /version and /node_version endpoints in favor of refactoring /node_info to also include application version info. * All REST responses now wrap the original resource/result. The response will contain two fields: height and result. -* [\#3565](https://github.com/cosmos/cosmos-sdk/issues/3565) Updates to the governance module: +* [\#3565](https://github.com/eligion/cosmos-sdk/issues/3565) Updates to the governance module: * Rename JSON field from `proposal_content` to `content` * Rename JSON field from `proposal_id` to `id` * Disable `ProposalTypeSoftwareUpgrade` temporarily -* [\#3775](https://github.com/cosmos/cosmos-sdk/issues/3775) unify sender transaction tag for ease of querying -* [\#4255](https://github.com/cosmos/cosmos-sdk/issues/4255) Add supply module that passively tracks the supplies of a chain +* [\#3775](https://github.com/eligion/cosmos-sdk/issues/3775) unify sender transaction tag for ease of querying +* [\#4255](https://github.com/eligion/cosmos-sdk/issues/4255) Add supply module that passively tracks the supplies of a chain - Renamed `x/distribution` `ModuleName` - Genesis JSON and CLI now use `distribution` instead of `distr` - Introduce `ModuleAccount` type, which tracks the flow of coins held within a module - Replaced `FeeCollectorKeeper` for a `ModuleAccount` - Replaced the staking `Pool`, which coins are now held by the `BondedPool` and `NotBonded` module accounts - The `NotBonded` module account now only keeps track of the not bonded tokens within staking, instead of the whole chain - - [\#3628](https://github.com/cosmos/cosmos-sdk/issues/3628) Replaced governance's burn and deposit accounts for a `ModuleAccount` + - [\#3628](https://github.com/eligion/cosmos-sdk/issues/3628) Replaced governance's burn and deposit accounts for a `ModuleAccount` - Added a `ModuleAccount` for the distribution module - Added a `ModuleAccount` for the mint module - [\#4472](https://github.com/cosmos/cosmos-sdk/issues/4472) validation for crisis genesis -* [\#3985](https://github.com/cosmos/cosmos-sdk/issues/3985) `ValidatorPowerRank` uses potential consensus power instead of tendermint power -* [\#4104](https://github.com/cosmos/cosmos-sdk/issues/4104) Gaia has been moved to its own repository: https://github.com/cosmos/gaia -* [\#4104](https://github.com/cosmos/cosmos-sdk/issues/4104) Rename gaiad.toml to app.toml. The internal contents of the application + [\#4472](https://github.com/eligion/cosmos-sdk/issues/4472) validation for crisis genesis +* [\#3985](https://github.com/eligion/cosmos-sdk/issues/3985) `ValidatorPowerRank` uses potential consensus power instead of tendermint power +* [\#4104](https://github.com/eligion/cosmos-sdk/issues/4104) Gaia has been moved to its own repository: https://github.com/cosmos/gaia +* [\#4104](https://github.com/eligion/cosmos-sdk/issues/4104) Rename gaiad.toml to app.toml. The internal contents of the application config remain unchanged. -* [\#4159](https://github.com/cosmos/cosmos-sdk/issues/4159) create the default module patterns and module manager -* [\#4230](https://github.com/cosmos/cosmos-sdk/issues/4230) Change the type of ABCIMessageLog#MsgIndex to uint16 for proper serialization. -* [\#4250](https://github.com/cosmos/cosmos-sdk/issues/4250) BaseApp.Query() returns app's version string set via BaseApp.SetAppVersion() +* [\#4159](https://github.com/eligion/cosmos-sdk/issues/4159) create the default module patterns and module manager +* [\#4230](https://github.com/eligion/cosmos-sdk/issues/4230) Change the type of ABCIMessageLog#MsgIndex to uint16 for proper serialization. +* [\#4250](https://github.com/eligion/cosmos-sdk/issues/4250) BaseApp.Query() returns app's version string set via BaseApp.SetAppVersion() when handling /app/version queries instead of the version string passed as build flag at compile time. -* [\#4262](https://github.com/cosmos/cosmos-sdk/issues/4262) GoSumHash is no longer returned by the version command. -* [\#4263](https://github.com/cosmos/cosmos-sdk/issues/4263) RestServer#Start now takes read and write timeout arguments. -* [\#4305](https://github.com/cosmos/cosmos-sdk/issues/4305) `GenerateOrBroadcastMsgs` no longer takes an `offline` parameter. -* [\#4342](https://github.com/cosmos/cosmos-sdk/pull/4342) Upgrade go-amino to v0.15.0 -* [\#4351](https://github.com/cosmos/cosmos-sdk/issues/4351) InitCmd, AddGenesisAccountCmd, and CollectGenTxsCmd take node's and client's default home directories as arguments. -* [\#4387](https://github.com/cosmos/cosmos-sdk/issues/4387) Refactor the usage of tags (now called events) to reflect the +* [\#4262](https://github.com/eligion/cosmos-sdk/issues/4262) GoSumHash is no longer returned by the version command. +* [\#4263](https://github.com/eligion/cosmos-sdk/issues/4263) RestServer#Start now takes read and write timeout arguments. +* [\#4305](https://github.com/eligion/cosmos-sdk/issues/4305) `GenerateOrBroadcastMsgs` no longer takes an `offline` parameter. +* [\#4342](https://github.com/eligion/cosmos-sdk/pull/4342) Upgrade go-amino to v0.15.0 +* [\#4351](https://github.com/eligion/cosmos-sdk/issues/4351) InitCmd, AddGenesisAccountCmd, and CollectGenTxsCmd take node's and client's default home directories as arguments. +* [\#4387](https://github.com/eligion/cosmos-sdk/issues/4387) Refactor the usage of tags (now called events) to reflect the new ABCI events semantics: - Move `x/{module}/tags/tags.go` => `x/{module}/types/events.go` - Update `docs/specs` @@ -1461,116 +1461,116 @@ that error is that the account doesn't exist. through `ctx.EventManger().EmitEvent(s)`. To reset or wipe emitted events: `ctx = ctx.WithEventManager(sdk.NewEventManager())` To get all emitted events: `events := ctx.EventManager().Events()` -* [\#4437](https://github.com/cosmos/cosmos-sdk/issues/4437) Replace governance module store keys to use `[]byte` instead of `string`. -* [\#4451](https://github.com/cosmos/cosmos-sdk/issues/4451) Improve modularization of clients and modules: +* [\#4437](https://github.com/eligion/cosmos-sdk/issues/4437) Replace governance module store keys to use `[]byte` instead of `string`. +* [\#4451](https://github.com/eligion/cosmos-sdk/issues/4451) Improve modularization of clients and modules: * Module directory structure improved and standardized * Aliases autogenerated * Auth and bank related commands are now mounted under the respective moduels * Client initialization and mounting standardized -* [\#4479](https://github.com/cosmos/cosmos-sdk/issues/4479) Remove codec argument redundency in client usage where +* [\#4479](https://github.com/eligion/cosmos-sdk/issues/4479) Remove codec argument redundency in client usage where the CLIContext's codec should be used instead. -* [\#4488](https://github.com/cosmos/cosmos-sdk/issues/4488) Decouple client tx, REST, and ultil packages from auth. These packages have +* [\#4488](https://github.com/eligion/cosmos-sdk/issues/4488) Decouple client tx, REST, and ultil packages from auth. These packages have been restructured and retrofitted into the `x/auth` module. -* [\#4521](https://github.com/cosmos/cosmos-sdk/issues/4521) Flatten x/bank structure by hiding module internals. -* [\#4525](https://github.com/cosmos/cosmos-sdk/issues/4525) Remove --cors flag, the feature is long gone. -* [\#4536](https://github.com/cosmos/cosmos-sdk/issues/4536) The `/auth/accounts/{address}` now returns a `height` in the response. +* [\#4521](https://github.com/eligion/cosmos-sdk/issues/4521) Flatten x/bank structure by hiding module internals. +* [\#4525](https://github.com/eligion/cosmos-sdk/issues/4525) Remove --cors flag, the feature is long gone. +* [\#4536](https://github.com/eligion/cosmos-sdk/issues/4536) The `/auth/accounts/{address}` now returns a `height` in the response. The account is now nested under `account`. -* [\#4543](https://github.com/cosmos/cosmos-sdk/issues/4543) Account getters are no longer part of client.CLIContext() and have now moved +* [\#4543](https://github.com/eligion/cosmos-sdk/issues/4543) Account getters are no longer part of client.CLIContext() and have now moved to reside in the auth-specific AccountRetriever. -* [\#4588](https://github.com/cosmos/cosmos-sdk/issues/4588) Context does not depend on x/auth anymore. client/context is stripped out of the following features: +* [\#4588](https://github.com/eligion/cosmos-sdk/issues/4588) Context does not depend on x/auth anymore. client/context is stripped out of the following features: - GetAccountDecoder() - CLIContext.WithAccountDecoder() - CLIContext.WithAccountStore() x/auth.AccountDecoder is unnecessary and consequently removed. -* [\#4602](https://github.com/cosmos/cosmos-sdk/issues/4602) client/input.{Buffer,Override}Stdin() functions are removed. Thanks to cobra's new release they are now redundant. -* [\#4633](https://github.com/cosmos/cosmos-sdk/issues/4633) Update old Tx search by tags APIs to use new Events +* [\#4602](https://github.com/eligion/cosmos-sdk/issues/4602) client/input.{Buffer,Override}Stdin() functions are removed. Thanks to cobra's new release they are now redundant. +* [\#4633](https://github.com/eligion/cosmos-sdk/issues/4633) Update old Tx search by tags APIs to use new Events nomenclature. -* [\#4649](https://github.com/cosmos/cosmos-sdk/issues/4649) Refactor x/crisis as per modules new specs. -* [\#3685](https://github.com/cosmos/cosmos-sdk/issues/3685) The default signature verification gas logic (`DefaultSigVerificationGasConsumer`) now specifies explicit key types rather than string pattern matching. This means that zones that depended on string matching to allow other keys will need to write a custom `SignatureVerificationGasConsumer` function. -* [\#4663](https://github.com/cosmos/cosmos-sdk/issues/4663) Refactor bank keeper by removing private functions +* [\#4649](https://github.com/eligion/cosmos-sdk/issues/4649) Refactor x/crisis as per modules new specs. +* [\#3685](https://github.com/eligion/cosmos-sdk/issues/3685) The default signature verification gas logic (`DefaultSigVerificationGasConsumer`) now specifies explicit key types rather than string pattern matching. This means that zones that depended on string matching to allow other keys will need to write a custom `SignatureVerificationGasConsumer` function. +* [\#4663](https://github.com/eligion/cosmos-sdk/issues/4663) Refactor bank keeper by removing private functions - `InputOutputCoins`, `SetCoins`, `SubtractCoins` and `AddCoins` are now part of the `SendKeeper` instead of the `Keeper` interface -* (tendermint) [\#4721](https://github.com/cosmos/cosmos-sdk/pull/4721) Upgrade Tendermint to v0.32.1 +* (tendermint) [\#4721](https://github.com/eligion/cosmos-sdk/pull/4721) Upgrade Tendermint to v0.32.1 ### Features -* [\#4843](https://github.com/cosmos/cosmos-sdk/issues/4843) Add RegisterEvidences function in the codec package to register +* [\#4843](https://github.com/eligion/cosmos-sdk/issues/4843) Add RegisterEvidences function in the codec package to register Tendermint evidence types with a given codec. -* (rest) [\#3867](https://github.com/cosmos/cosmos-sdk/issues/3867) Allow querying for genesis transaction when height query param is set to zero. -* [\#2020](https://github.com/cosmos/cosmos-sdk/issues/2020) New keys export/import command line utilities to export/import private keys in ASCII format +* (rest) [\#3867](https://github.com/eligion/cosmos-sdk/issues/3867) Allow querying for genesis transaction when height query param is set to zero. +* [\#2020](https://github.com/eligion/cosmos-sdk/issues/2020) New keys export/import command line utilities to export/import private keys in ASCII format that rely on Keybase's new underlying ExportPrivKey()/ImportPrivKey() API calls. -* [\#3565](https://github.com/cosmos/cosmos-sdk/issues/3565) Implement parameter change proposal support. +* [\#3565](https://github.com/eligion/cosmos-sdk/issues/3565) Implement parameter change proposal support. Parameter change proposals can be submitted through the CLI or a REST endpoint. See docs for further usage. -* [\#3850](https://github.com/cosmos/cosmos-sdk/issues/3850) Add `rewards` and `commission` to distribution tx tags. -* [\#3981](https://github.com/cosmos/cosmos-sdk/issues/3981) Add support to gracefully halt a node at a given height +* [\#3850](https://github.com/eligion/cosmos-sdk/issues/3850) Add `rewards` and `commission` to distribution tx tags. +* [\#3981](https://github.com/eligion/cosmos-sdk/issues/3981) Add support to gracefully halt a node at a given height via the node's `halt-height` config or CLI value. -* [\#4144](https://github.com/cosmos/cosmos-sdk/issues/4144) Allow for configurable BIP44 HD path and coin type. -* [\#4250](https://github.com/cosmos/cosmos-sdk/issues/4250) New BaseApp.{,Set}AppVersion() methods to get/set app's version string. -* [\#4263](https://github.com/cosmos/cosmos-sdk/issues/4263) Add `--read-timeout` and `--write-timeout` args to the `rest-server` command +* [\#4144](https://github.com/eligion/cosmos-sdk/issues/4144) Allow for configurable BIP44 HD path and coin type. +* [\#4250](https://github.com/eligion/cosmos-sdk/issues/4250) New BaseApp.{,Set}AppVersion() methods to get/set app's version string. +* [\#4263](https://github.com/eligion/cosmos-sdk/issues/4263) Add `--read-timeout` and `--write-timeout` args to the `rest-server` command to support custom RPC R/W timeouts. -* [\#4271](https://github.com/cosmos/cosmos-sdk/issues/4271) Implement Coins#IsAnyGT -* [\#4318](https://github.com/cosmos/cosmos-sdk/issues/4318) Support height queries. Queries against nodes that have the queried +* [\#4271](https://github.com/eligion/cosmos-sdk/issues/4271) Implement Coins#IsAnyGT +* [\#4318](https://github.com/eligion/cosmos-sdk/issues/4318) Support height queries. Queries against nodes that have the queried height pruned will return an error. -* [\#4409](https://github.com/cosmos/cosmos-sdk/issues/4409) Implement a command that migrates exported state from one version to the next. +* [\#4409](https://github.com/eligion/cosmos-sdk/issues/4409) Implement a command that migrates exported state from one version to the next. The `migrate` command currently supports migrating from v0.34 to v0.36 by implementing necessary types for both versions. -* [\#4570](https://github.com/cosmos/cosmos-sdk/issues/4570) Move /bank/balances/{address} REST handler to x/bank/client/rest. The exposed interface is unchanged. -* Community pool spend proposal per Cosmos Hub governance proposal [\#7](https://github.com/cosmos/cosmos-sdk/issues/7) "Activate the Community Pool" +* [\#4570](https://github.com/eligion/cosmos-sdk/issues/4570) Move /bank/balances/{address} REST handler to x/bank/client/rest. The exposed interface is unchanged. +* Community pool spend proposal per Cosmos Hub governance proposal [\#7](https://github.com/eligion/cosmos-sdk/issues/7) "Activate the Community Pool" ### Improvements * (simulation) PrintAllInvariants flag will print all failed invariants * (simulation) Add `InitialBlockHeight` flag to resume a simulation from a given block -* (simulation) [\#4670](https://github.com/cosmos/cosmos-sdk/issues/4670) Update simulation statistics to JSON format +* (simulation) [\#4670](https://github.com/eligion/cosmos-sdk/issues/4670) Update simulation statistics to JSON format - Support exporting the simulation stats to a given JSON file -* [\#4775](https://github.com/cosmos/cosmos-sdk/issues/4775) Refactor CI config +* [\#4775](https://github.com/eligion/cosmos-sdk/issues/4775) Refactor CI config * Upgrade IAVL to v0.12.4 * (tendermint) Upgrade Tendermint to v0.32.2 -* (modules) [\#4751](https://github.com/cosmos/cosmos-sdk/issues/4751) update `x/genutils` to match module spec -* (keys) [\#4611](https://github.com/cosmos/cosmos-sdk/issues/4611) store keys in simapp now use a map instead of using individual literal keys -* [\#2286](https://github.com/cosmos/cosmos-sdk/issues/2286) Improve performance of CacheKVStore iterator. -* [\#3512](https://github.com/cosmos/cosmos-sdk/issues/3512) Implement Logger method on each module's keeper. -* [\#3655](https://github.com/cosmos/cosmos-sdk/issues/3655) Improve signature verification failure error message. -* [\#3774](https://github.com/cosmos/cosmos-sdk/issues/3774) add category tag to transactions for ease of filtering -* [\#3914](https://github.com/cosmos/cosmos-sdk/issues/3914) Implement invariant benchmarks and add target to makefile. -* [\#3928](https://github.com/cosmos/cosmos-sdk/issues/3928) remove staking references from types package -* [\#3978](https://github.com/cosmos/cosmos-sdk/issues/3978) Return ErrUnknownRequest in message handlers for unknown +* (modules) [\#4751](https://github.com/eligion/cosmos-sdk/issues/4751) update `x/genutils` to match module spec +* (keys) [\#4611](https://github.com/eligion/cosmos-sdk/issues/4611) store keys in simapp now use a map instead of using individual literal keys +* [\#2286](https://github.com/eligion/cosmos-sdk/issues/2286) Improve performance of CacheKVStore iterator. +* [\#3512](https://github.com/eligion/cosmos-sdk/issues/3512) Implement Logger method on each module's keeper. +* [\#3655](https://github.com/eligion/cosmos-sdk/issues/3655) Improve signature verification failure error message. +* [\#3774](https://github.com/eligion/cosmos-sdk/issues/3774) add category tag to transactions for ease of filtering +* [\#3914](https://github.com/eligion/cosmos-sdk/issues/3914) Implement invariant benchmarks and add target to makefile. +* [\#3928](https://github.com/eligion/cosmos-sdk/issues/3928) remove staking references from types package +* [\#3978](https://github.com/eligion/cosmos-sdk/issues/3978) Return ErrUnknownRequest in message handlers for unknown or invalid routed messages. -* [\#4190](https://github.com/cosmos/cosmos-sdk/issues/4190) Client responses that return (re)delegation(s) now return balances +* [\#4190](https://github.com/eligion/cosmos-sdk/issues/4190) Client responses that return (re)delegation(s) now return balances instead of shares. -* [\#4194](https://github.com/cosmos/cosmos-sdk/issues/4194) ValidatorSigningInfo now includes the validator's consensus address. -* [\#4235](https://github.com/cosmos/cosmos-sdk/issues/4235) Add parameter change proposal messages to simulation. -* [\#4235](https://github.com/cosmos/cosmos-sdk/issues/4235) Update the minting module params to implement params.ParamSet so +* [\#4194](https://github.com/eligion/cosmos-sdk/issues/4194) ValidatorSigningInfo now includes the validator's consensus address. +* [\#4235](https://github.com/eligion/cosmos-sdk/issues/4235) Add parameter change proposal messages to simulation. +* [\#4235](https://github.com/eligion/cosmos-sdk/issues/4235) Update the minting module params to implement params.ParamSet so individual keys can be set via proposals instead of passing a struct. -* [\#4259](https://github.com/cosmos/cosmos-sdk/issues/4259) `Coins` that are `nil` are now JSON encoded as an empty array `[]`. +* [\#4259](https://github.com/eligion/cosmos-sdk/issues/4259) `Coins` that are `nil` are now JSON encoded as an empty array `[]`. Decoding remains unchanged and behavior is left intact. -* [\#4305](https://github.com/cosmos/cosmos-sdk/issues/4305) The `--generate-only` CLI flag fully respects offline tx processing. -* [\#4379](https://github.com/cosmos/cosmos-sdk/issues/4379) close db write batch. -* [\#4384](https://github.com/cosmos/cosmos-sdk/issues/4384)- Allow splitting withdrawal transaction in several chunks -* [\#4403](https://github.com/cosmos/cosmos-sdk/issues/4403) Allow for parameter change proposals to supply only desired fields to be updated +* [\#4305](https://github.com/eligion/cosmos-sdk/issues/4305) The `--generate-only` CLI flag fully respects offline tx processing. +* [\#4379](https://github.com/eligion/cosmos-sdk/issues/4379) close db write batch. +* [\#4384](https://github.com/eligion/cosmos-sdk/issues/4384)- Allow splitting withdrawal transaction in several chunks +* [\#4403](https://github.com/eligion/cosmos-sdk/issues/4403) Allow for parameter change proposals to supply only desired fields to be updated in objects instead of the entire object (only applies to values that are objects). -* [\#4415](https://github.com/cosmos/cosmos-sdk/issues/4415) /client refactor, reduce genutil dependancy on staking -* [\#4439](https://github.com/cosmos/cosmos-sdk/issues/4439) Implement governance module iterators. -* [\#4465](https://github.com/cosmos/cosmos-sdk/issues/4465) Unknown subcommands print relevant error message -* [\#4466](https://github.com/cosmos/cosmos-sdk/issues/4466) Commission validation added to validate basic of MsgCreateValidator by changing CommissionMsg to CommissionRates -* [\#4501](https://github.com/cosmos/cosmos-sdk/issues/4501) Support height queriers in rest client -* [\#4535](https://github.com/cosmos/cosmos-sdk/issues/4535) Improve import-export simulation errors by decoding the `KVPair.Value` into its +* [\#4415](https://github.com/eligion/cosmos-sdk/issues/4415) /client refactor, reduce genutil dependancy on staking +* [\#4439](https://github.com/eligion/cosmos-sdk/issues/4439) Implement governance module iterators. +* [\#4465](https://github.com/eligion/cosmos-sdk/issues/4465) Unknown subcommands print relevant error message +* [\#4466](https://github.com/eligion/cosmos-sdk/issues/4466) Commission validation added to validate basic of MsgCreateValidator by changing CommissionMsg to CommissionRates +* [\#4501](https://github.com/eligion/cosmos-sdk/issues/4501) Support height queriers in rest client +* [\#4535](https://github.com/eligion/cosmos-sdk/issues/4535) Improve import-export simulation errors by decoding the `KVPair.Value` into its respective type -* [\#4536](https://github.com/cosmos/cosmos-sdk/issues/4536) cli context queries return query height and accounts are returned with query height -* [\#4553](https://github.com/cosmos/cosmos-sdk/issues/4553) undelegate max entries check first -* [\#4556](https://github.com/cosmos/cosmos-sdk/issues/4556) Added IsValid function to Coin -* [\#4564](https://github.com/cosmos/cosmos-sdk/issues/4564) client/input.GetConfirmation()'s default is changed to No. -* [\#4573](https://github.com/cosmos/cosmos-sdk/issues/4573) Returns height in response for query endpoints. -* [\#4580](https://github.com/cosmos/cosmos-sdk/issues/4580) Update `Context#BlockHeight` to properly set the block height via `WithBlockHeader`. -* [\#4584](https://github.com/cosmos/cosmos-sdk/issues/4584) Update bank Keeper to use expected keeper interface of the AccountKeeper. -* [\#4584](https://github.com/cosmos/cosmos-sdk/issues/4584) Move `Account` and `VestingAccount` interface types to `x/auth/exported`. -* [\#4082](https://github.com/cosmos/cosmos-sdk/issues/4082) supply module queriers for CLI and REST endpoints -* [\#4601](https://github.com/cosmos/cosmos-sdk/issues/4601) Implement generic pangination helper function to be used in +* [\#4536](https://github.com/eligion/cosmos-sdk/issues/4536) cli context queries return query height and accounts are returned with query height +* [\#4553](https://github.com/eligion/cosmos-sdk/issues/4553) undelegate max entries check first +* [\#4556](https://github.com/eligion/cosmos-sdk/issues/4556) Added IsValid function to Coin +* [\#4564](https://github.com/eligion/cosmos-sdk/issues/4564) client/input.GetConfirmation()'s default is changed to No. +* [\#4573](https://github.com/eligion/cosmos-sdk/issues/4573) Returns height in response for query endpoints. +* [\#4580](https://github.com/eligion/cosmos-sdk/issues/4580) Update `Context#BlockHeight` to properly set the block height via `WithBlockHeader`. +* [\#4584](https://github.com/eligion/cosmos-sdk/issues/4584) Update bank Keeper to use expected keeper interface of the AccountKeeper. +* [\#4584](https://github.com/eligion/cosmos-sdk/issues/4584) Move `Account` and `VestingAccount` interface types to `x/auth/exported`. +* [\#4082](https://github.com/eligion/cosmos-sdk/issues/4082) supply module queriers for CLI and REST endpoints +* [\#4601](https://github.com/eligion/cosmos-sdk/issues/4601) Implement generic pangination helper function to be used in REST handlers and queriers. -* [\#4629](https://github.com/cosmos/cosmos-sdk/issues/4629) Added warning event that gets emitted if validator misses a block. -* [\#4674](https://github.com/cosmos/cosmos-sdk/issues/4674) Export `Simapp` genState generators and util functions by making them public -* [\#4706](https://github.com/cosmos/cosmos-sdk/issues/4706) Simplify context +* [\#4629](https://github.com/eligion/cosmos-sdk/issues/4629) Added warning event that gets emitted if validator misses a block. +* [\#4674](https://github.com/eligion/cosmos-sdk/issues/4674) Export `Simapp` genState generators and util functions by making them public +* [\#4706](https://github.com/eligion/cosmos-sdk/issues/4706) Simplify context Replace complex Context construct with a simpler immutible struct. Only breaking change is not to support `Value` and `GetValue` as first class calls. We do embed ctx.Context() as a raw context.Context instead to be used as you see fit. @@ -1589,58 +1589,58 @@ that error is that the account doesn't exist. A bit more verbose, but also allows `context.WithTimeout()`, etc and only used in one function in this repo, in test code. -* [\#3685](https://github.com/cosmos/cosmos-sdk/issues/3685) Add `SetAddressVerifier` and `GetAddressVerifier` to `sdk.Config` to allow SDK users to configure custom address format verification logic (to override the default limitation of 20-byte addresses). -* [\#3685](https://github.com/cosmos/cosmos-sdk/issues/3685) Add an additional parameter to NewAnteHandler for a custom `SignatureVerificationGasConsumer` (the default logic is now in `DefaultSigVerificationGasConsumer). This allows SDK users to configure their own logic for which key types are accepted and how those key types consume gas. +* [\#3685](https://github.com/eligion/cosmos-sdk/issues/3685) Add `SetAddressVerifier` and `GetAddressVerifier` to `sdk.Config` to allow SDK users to configure custom address format verification logic (to override the default limitation of 20-byte addresses). +* [\#3685](https://github.com/eligion/cosmos-sdk/issues/3685) Add an additional parameter to NewAnteHandler for a custom `SignatureVerificationGasConsumer` (the default logic is now in `DefaultSigVerificationGasConsumer). This allows SDK users to configure their own logic for which key types are accepted and how those key types consume gas. * Remove `--print-response` flag as it is no longer used. -* Revert [\#2284](https://github.com/cosmos/cosmos-sdk/pull/2284) to allow create_empty_blocks in the config -* (tendermint) [\#4718](https://github.com/cosmos/cosmos-sdk/issues/4718) Upgrade tendermint/iavl to v0.12.3 +* Revert [\#2284](https://github.com/eligion/cosmos-sdk/pull/2284) to allow create_empty_blocks in the config +* (tendermint) [\#4718](https://github.com/eligion/cosmos-sdk/issues/4718) Upgrade tendermint/iavl to v0.12.3 ### Bug Fixes -* [\#4891](https://github.com/cosmos/cosmos-sdk/issues/4891) Disable querying with proofs enabled when the query height <= 1. -* (rest) [\#4858](https://github.com/cosmos/cosmos-sdk/issues/4858) Do not return an error in BroadcastTxCommit when the tx broadcasting +* [\#4891](https://github.com/eligion/cosmos-sdk/issues/4891) Disable querying with proofs enabled when the query height <= 1. +* (rest) [\#4858](https://github.com/eligion/cosmos-sdk/issues/4858) Do not return an error in BroadcastTxCommit when the tx broadcasting was successful. This allows the proper REST response to be returned for a failed tx during `block` broadcasting mode. -* (store) [\#4880](https://github.com/cosmos/cosmos-sdk/pull/4880) Fix error check in +* (store) [\#4880](https://github.com/eligion/cosmos-sdk/pull/4880) Fix error check in IAVL `Store#DeleteVersion`. -* (tendermint) [\#4879](https://github.com/cosmos/cosmos-sdk/issues/4879) Don't terminate the process immediately after startup when run in standalone mode. -* (simulation) [\#4861](https://github.com/cosmos/cosmos-sdk/pull/4861) Fix non-determinism simulation +* (tendermint) [\#4879](https://github.com/eligion/cosmos-sdk/issues/4879) Don't terminate the process immediately after startup when run in standalone mode. +* (simulation) [\#4861](https://github.com/eligion/cosmos-sdk/pull/4861) Fix non-determinism simulation by using CLI flags as input and updating Makefile target. -* [\#4868](https://github.com/cosmos/cosmos-sdk/issues/4868) Context#CacheContext now sets a new EventManager. This prevents unwanted events +* [\#4868](https://github.com/eligion/cosmos-sdk/issues/4868) Context#CacheContext now sets a new EventManager. This prevents unwanted events from being emitted. -* (cli) [\#4870](https://github.com/cosmos/cosmos-sdk/issues/4870) Disable the `withdraw-all-rewards` command when `--generate-only` is supplied -* (modules) [\#4831](https://github.com/cosmos/cosmos-sdk/issues/4831) Prevent community spend proposal from transferring funds to a module account -* (keys) [\#4338](https://github.com/cosmos/cosmos-sdk/issues/4338) fix multisig key output for CLI -* (modules) [\#4795](https://github.com/cosmos/cosmos-sdk/issues/4795) restrict module accounts from receiving transactions. +* (cli) [\#4870](https://github.com/eligion/cosmos-sdk/issues/4870) Disable the `withdraw-all-rewards` command when `--generate-only` is supplied +* (modules) [\#4831](https://github.com/eligion/cosmos-sdk/issues/4831) Prevent community spend proposal from transferring funds to a module account +* (keys) [\#4338](https://github.com/eligion/cosmos-sdk/issues/4338) fix multisig key output for CLI +* (modules) [\#4795](https://github.com/eligion/cosmos-sdk/issues/4795) restrict module accounts from receiving transactions. Allowing this would cause an invariant on the module account coins. -* (modules) [\#4823](https://github.com/cosmos/cosmos-sdk/issues/4823) Update the `DefaultUnbondingTime` from 3 days to 3 weeks to be inline with documentation. -* (abci) [\#4639](https://github.com/cosmos/cosmos-sdk/issues/4639) Fix `CheckTx` by verifying the message route +* (modules) [\#4823](https://github.com/eligion/cosmos-sdk/issues/4823) Update the `DefaultUnbondingTime` from 3 days to 3 weeks to be inline with documentation. +* (abci) [\#4639](https://github.com/eligion/cosmos-sdk/issues/4639) Fix `CheckTx` by verifying the message route * Return height in responses when querying against BaseApp -* [\#1351](https://github.com/cosmos/cosmos-sdk/issues/1351) Stable AppHash allows no_empty_blocks -* [\#3705](https://github.com/cosmos/cosmos-sdk/issues/3705) Return `[]` instead of `null` when querying delegator rewards. -* [\#3966](https://github.com/cosmos/cosmos-sdk/issues/3966) fixed multiple assigns to action tags - [\#3793](https://github.com/cosmos/cosmos-sdk/issues/3793) add delegator tag for MsgCreateValidator and deleted unused moniker and identity tags -* [\#4194](https://github.com/cosmos/cosmos-sdk/issues/4194) Fix pagination and results returned from /slashing/signing_infos -* [\#4230](https://github.com/cosmos/cosmos-sdk/issues/4230) Properly set and display the message index through the TxResponse. -* [\#4234](https://github.com/cosmos/cosmos-sdk/pull/4234) Allow `tx send --generate-only` to +* [\#1351](https://github.com/eligion/cosmos-sdk/issues/1351) Stable AppHash allows no_empty_blocks +* [\#3705](https://github.com/eligion/cosmos-sdk/issues/3705) Return `[]` instead of `null` when querying delegator rewards. +* [\#3966](https://github.com/eligion/cosmos-sdk/issues/3966) fixed multiple assigns to action tags + [\#3793](https://github.com/eligion/cosmos-sdk/issues/3793) add delegator tag for MsgCreateValidator and deleted unused moniker and identity tags +* [\#4194](https://github.com/eligion/cosmos-sdk/issues/4194) Fix pagination and results returned from /slashing/signing_infos +* [\#4230](https://github.com/eligion/cosmos-sdk/issues/4230) Properly set and display the message index through the TxResponse. +* [\#4234](https://github.com/eligion/cosmos-sdk/pull/4234) Allow `tx send --generate-only` to actually work offline. -* [\#4271](https://github.com/cosmos/cosmos-sdk/issues/4271) Fix addGenesisAccount by using Coins#IsAnyGT for vesting amount validation. -* [\#4273](https://github.com/cosmos/cosmos-sdk/issues/4273) Fix usage of AppendTags in x/staking/handler.go -* [\#4303](https://github.com/cosmos/cosmos-sdk/issues/4303) Fix NewCoins() underlying function for duplicate coins detection. -* [\#4307](https://github.com/cosmos/cosmos-sdk/pull/4307) Don't pass height to RPC calls as +* [\#4271](https://github.com/eligion/cosmos-sdk/issues/4271) Fix addGenesisAccount by using Coins#IsAnyGT for vesting amount validation. +* [\#4273](https://github.com/eligion/cosmos-sdk/issues/4273) Fix usage of AppendTags in x/staking/handler.go +* [\#4303](https://github.com/eligion/cosmos-sdk/issues/4303) Fix NewCoins() underlying function for duplicate coins detection. +* [\#4307](https://github.com/eligion/cosmos-sdk/pull/4307) Don't pass height to RPC calls as Tendermint will automatically use the latest height. -* [\#4362](https://github.com/cosmos/cosmos-sdk/issues/4362) simulation setup bugfix for multisim 7601778 -* [\#4383](https://github.com/cosmos/cosmos-sdk/issues/4383) - currentStakeRoundUp is now always atleast currentStake + smallest-decimal-precision -* [\#4394](https://github.com/cosmos/cosmos-sdk/issues/4394) Fix signature count check to use the TxSigLimit param instead of +* [\#4362](https://github.com/eligion/cosmos-sdk/issues/4362) simulation setup bugfix for multisim 7601778 +* [\#4383](https://github.com/eligion/cosmos-sdk/issues/4383) - currentStakeRoundUp is now always atleast currentStake + smallest-decimal-precision +* [\#4394](https://github.com/eligion/cosmos-sdk/issues/4394) Fix signature count check to use the TxSigLimit param instead of a default. -* [\#4455](https://github.com/cosmos/cosmos-sdk/issues/4455) Use `QueryWithData()` to query unbonding delegations. -* [\#4493](https://github.com/cosmos/cosmos-sdk/issues/4493) Fix validator-outstanding-rewards command. It now takes as an argument +* [\#4455](https://github.com/eligion/cosmos-sdk/issues/4455) Use `QueryWithData()` to query unbonding delegations. +* [\#4493](https://github.com/eligion/cosmos-sdk/issues/4493) Fix validator-outstanding-rewards command. It now takes as an argument a validator address. -* [\#4598](https://github.com/cosmos/cosmos-sdk/issues/4598) Fix redelegation and undelegation txs that were not checking for the correct bond denomination. -* [\#4619](https://github.com/cosmos/cosmos-sdk/issues/4619) Close iterators in `GetAllMatureValidatorQueue` and `UnbondAllMatureValidatorQueue` +* [\#4598](https://github.com/eligion/cosmos-sdk/issues/4598) Fix redelegation and undelegation txs that were not checking for the correct bond denomination. +* [\#4619](https://github.com/eligion/cosmos-sdk/issues/4619) Close iterators in `GetAllMatureValidatorQueue` and `UnbondAllMatureValidatorQueue` methods. -* [\#4654](https://github.com/cosmos/cosmos-sdk/issues/4654) validator slash event stored by period and height -* [\#4681](https://github.com/cosmos/cosmos-sdk/issues/4681) panic on invalid amount on `MintCoins` and `BurnCoins` +* [\#4654](https://github.com/eligion/cosmos-sdk/issues/4654) validator slash event stored by period and height +* [\#4681](https://github.com/eligion/cosmos-sdk/issues/4681) panic on invalid amount on `MintCoins` and `BurnCoins` * skip minting if inflation is set to zero * Sort state JSON during export and initialization @@ -1694,20 +1694,20 @@ unbonding period has elapsed regardless of the validator's status. #### SDK -* [\#4273](https://github.com/cosmos/cosmos-sdk/issues/4273) Fix usage of `AppendTags` in x/staking/handler.go +* [\#4273](https://github.com/eligion/cosmos-sdk/issues/4273) Fix usage of `AppendTags` in x/staking/handler.go ### Improvements ### SDK -* [\#2286](https://github.com/cosmos/cosmos-sdk/issues/2286) Improve performance of `CacheKVStore` iterator. -* [\#3655](https://github.com/cosmos/cosmos-sdk/issues/3655) Improve signature verification failure error message. -* [\#4384](https://github.com/cosmos/cosmos-sdk/issues/4384) Allow splitting withdrawal transaction in several chunks. +* [\#2286](https://github.com/eligion/cosmos-sdk/issues/2286) Improve performance of `CacheKVStore` iterator. +* [\#3655](https://github.com/eligion/cosmos-sdk/issues/3655) Improve signature verification failure error message. +* [\#4384](https://github.com/eligion/cosmos-sdk/issues/4384) Allow splitting withdrawal transaction in several chunks. #### Gaia CLI -* [\#4227](https://github.com/cosmos/cosmos-sdk/issues/4227) Support for Ledger App v1.5. -* [#4345](https://github.com/cosmos/cosmos-sdk/pull/4345) Update `ledger-cosmos-go` +* [\#4227](https://github.com/eligion/cosmos-sdk/issues/4227) Support for Ledger App v1.5. +* [#4345](https://github.com/eligion/cosmos-sdk/pull/4345) Update `ledger-cosmos-go` to v0.10.3. ## 0.34.4 @@ -1716,24 +1716,24 @@ to v0.10.3. #### SDK -* [#4234](https://github.com/cosmos/cosmos-sdk/pull/4234) Allow `tx send --generate-only` to +* [#4234](https://github.com/eligion/cosmos-sdk/pull/4234) Allow `tx send --generate-only` to actually work offline. #### Gaia -* [\#4219](https://github.com/cosmos/cosmos-sdk/issues/4219) Return an error when an empty mnemonic is provided during key recovery. +* [\#4219](https://github.com/eligion/cosmos-sdk/issues/4219) Return an error when an empty mnemonic is provided during key recovery. ### Improvements #### Gaia -* [\#2007](https://github.com/cosmos/cosmos-sdk/issues/2007) Return 200 status code on empty results +* [\#2007](https://github.com/eligion/cosmos-sdk/issues/2007) Return 200 status code on empty results ### New features #### SDK -* [\#3850](https://github.com/cosmos/cosmos-sdk/issues/3850) Add `rewards` and `commission` to distribution tx tags. +* [\#3850](https://github.com/eligion/cosmos-sdk/issues/3850) Add `rewards` and `commission` to distribution tx tags. ## 0.34.3 @@ -1741,7 +1741,7 @@ actually work offline. #### Gaia -* [\#4196](https://github.com/cosmos/cosmos-sdk/pull/4196) Set default invariant +* [\#4196](https://github.com/eligion/cosmos-sdk/pull/4196) Set default invariant check period to zero. ## 0.34.2 @@ -1750,17 +1750,17 @@ check period to zero. #### SDK -* [\#4135](https://github.com/cosmos/cosmos-sdk/pull/4135) Add further clarification +* [\#4135](https://github.com/eligion/cosmos-sdk/pull/4135) Add further clarification to generate only usage. ### Bug Fixes #### SDK -* [\#4135](https://github.com/cosmos/cosmos-sdk/pull/4135) Fix `NewResponseFormatBroadcastTxCommit` -* [\#4053](https://github.com/cosmos/cosmos-sdk/issues/4053) Add `--inv-check-period` +* [\#4135](https://github.com/eligion/cosmos-sdk/pull/4135) Fix `NewResponseFormatBroadcastTxCommit` +* [\#4053](https://github.com/eligion/cosmos-sdk/issues/4053) Add `--inv-check-period` flag to gaiad to set period at which invariants checks will run. -* [\#4099](https://github.com/cosmos/cosmos-sdk/issues/4099) Update the /staking/validators endpoint to support +* [\#4099](https://github.com/eligion/cosmos-sdk/issues/4099) Update the /staking/validators endpoint to support status and pagination query flags. ## 0.34.1 @@ -1769,7 +1769,7 @@ status and pagination query flags. #### Gaia -* [#4163](https://github.com/cosmos/cosmos-sdk/pull/4163) Fix v0.33.x export script to port gov data correctly. +* [#4163](https://github.com/eligion/cosmos-sdk/pull/4163) Fix v0.33.x export script to port gov data correctly. ## 0.34.0 @@ -1777,120 +1777,120 @@ status and pagination query flags. #### Gaia -* [\#3463](https://github.com/cosmos/cosmos-sdk/issues/3463) Revert bank module handler fork (re-enables transfers) -* [\#3875](https://github.com/cosmos/cosmos-sdk/issues/3875) Replace `async` flag with `--broadcast-mode` flag where the default +* [\#3463](https://github.com/eligion/cosmos-sdk/issues/3463) Revert bank module handler fork (re-enables transfers) +* [\#3875](https://github.com/eligion/cosmos-sdk/issues/3875) Replace `async` flag with `--broadcast-mode` flag where the default value is `sync`. The `block` mode should not be used. The REST client now uses `mode` parameter instead of the `return` parameter. #### Gaia CLI -* [\#3938](https://github.com/cosmos/cosmos-sdk/issues/3938) Remove REST server's SSL support altogether. +* [\#3938](https://github.com/eligion/cosmos-sdk/issues/3938) Remove REST server's SSL support altogether. #### SDK -* [\#3245](https://github.com/cosmos/cosmos-sdk/issues/3245) Rename validator.GetJailed() to validator.IsJailed() -* [\#3516](https://github.com/cosmos/cosmos-sdk/issues/3516) Remove concept of shares from staking unbonding and redelegation UX; +* [\#3245](https://github.com/eligion/cosmos-sdk/issues/3245) Rename validator.GetJailed() to validator.IsJailed() +* [\#3516](https://github.com/eligion/cosmos-sdk/issues/3516) Remove concept of shares from staking unbonding and redelegation UX; replaced by direct coin amount. #### Tendermint -* [\#4029](https://github.com/cosmos/cosmos-sdk/issues/4029) Upgrade Tendermint to v0.31.3 +* [\#4029](https://github.com/eligion/cosmos-sdk/issues/4029) Upgrade Tendermint to v0.31.3 ### New features #### SDK -* [\#2935](https://github.com/cosmos/cosmos-sdk/issues/2935) New module Crisis which can test broken invariant with messages -* [\#3813](https://github.com/cosmos/cosmos-sdk/issues/3813) New sdk.NewCoins safe constructor to replace bare sdk.Coins{} declarations. -* [\#3858](https://github.com/cosmos/cosmos-sdk/issues/3858) add website, details and identity to gentx cli command +* [\#2935](https://github.com/eligion/cosmos-sdk/issues/2935) New module Crisis which can test broken invariant with messages +* [\#3813](https://github.com/eligion/cosmos-sdk/issues/3813) New sdk.NewCoins safe constructor to replace bare sdk.Coins{} declarations. +* [\#3858](https://github.com/eligion/cosmos-sdk/issues/3858) add website, details and identity to gentx cli command * Implement coin conversion and denomination registration utilities #### Gaia -* [\#2935](https://github.com/cosmos/cosmos-sdk/issues/2935) Optionally assert invariants on a blockly basis using `gaiad --assert-invariants-blockly` -* [\#3886](https://github.com/cosmos/cosmos-sdk/issues/3886) Implement minting module querier and CLI/REST clients. +* [\#2935](https://github.com/eligion/cosmos-sdk/issues/2935) Optionally assert invariants on a blockly basis using `gaiad --assert-invariants-blockly` +* [\#3886](https://github.com/eligion/cosmos-sdk/issues/3886) Implement minting module querier and CLI/REST clients. #### Gaia CLI -* [\#3937](https://github.com/cosmos/cosmos-sdk/issues/3937) Add command to query community-pool +* [\#3937](https://github.com/eligion/cosmos-sdk/issues/3937) Add command to query community-pool #### Gaia REST API -* [\#3937](https://github.com/cosmos/cosmos-sdk/issues/3937) Add route to fetch community-pool -* [\#3949](https://github.com/cosmos/cosmos-sdk/issues/3949) added /slashing/signing_infos to get signing_info for all validators +* [\#3937](https://github.com/eligion/cosmos-sdk/issues/3937) Add route to fetch community-pool +* [\#3949](https://github.com/eligion/cosmos-sdk/issues/3949) added /slashing/signing_infos to get signing_info for all validators ### Improvements #### Gaia -* [\#3808](https://github.com/cosmos/cosmos-sdk/issues/3808) `gaiad` and `gaiacli` integration tests use ./build/ binaries. -* \[\#3819](https://github.com/cosmos/cosmos-sdk/issues/3819) Simulation refactor, log output now stored in ~/.gaiad/simulation/ +* [\#3808](https://github.com/eligion/cosmos-sdk/issues/3808) `gaiad` and `gaiacli` integration tests use ./build/ binaries. +* \[\#3819](https://github.com/eligion/cosmos-sdk/issues/3819) Simulation refactor, log output now stored in ~/.gaiad/simulation/ * Simulation moved to its own module (not a part of mock) * Logger type instead of passing function variables everywhere * Logger json output (for reloadable simulation running) * Cleanup bank simulation messages / remove dup code in bank simulation * Simulations saved in `~/.gaiad/simulations/` * "Lean" simulation output option to exclude No-ops and !ok functions (`--SimulationLean` flag) -* [\#3893](https://github.com/cosmos/cosmos-sdk/issues/3893) Improve `gaiacli tx sign` command +* [\#3893](https://github.com/eligion/cosmos-sdk/issues/3893) Improve `gaiacli tx sign` command * Add shorthand flags -a and -s for the account and sequence numbers respectively * Mark the account and sequence numbers required during "offline" mode * Always do an RPC query for account and sequence number during "online" mode -* [\#4018](https://github.com/cosmos/cosmos-sdk/issues/4018) create genesis port script for release v.0.34.0 +* [\#4018](https://github.com/eligion/cosmos-sdk/issues/4018) create genesis port script for release v.0.34.0 #### Gaia CLI -* [\#3833](https://github.com/cosmos/cosmos-sdk/issues/3833) Modify stake to atom in gaia's doc. -* [\#3841](https://github.com/cosmos/cosmos-sdk/issues/3841) Add indent to JSON of `gaiacli keys [add|show|list]` -* [\#3859](https://github.com/cosmos/cosmos-sdk/issues/3859) Add newline to echo of `gaiacli keys ...` -* [\#3959](https://github.com/cosmos/cosmos-sdk/issues/3959) Improving error messages when signing with ledger devices fails +* [\#3833](https://github.com/eligion/cosmos-sdk/issues/3833) Modify stake to atom in gaia's doc. +* [\#3841](https://github.com/eligion/cosmos-sdk/issues/3841) Add indent to JSON of `gaiacli keys [add|show|list]` +* [\#3859](https://github.com/eligion/cosmos-sdk/issues/3859) Add newline to echo of `gaiacli keys ...` +* [\#3959](https://github.com/eligion/cosmos-sdk/issues/3959) Improving error messages when signing with ledger devices fails #### SDK -* [\#3238](https://github.com/cosmos/cosmos-sdk/issues/3238) Add block time to tx responses when querying for +* [\#3238](https://github.com/eligion/cosmos-sdk/issues/3238) Add block time to tx responses when querying for txs by tags or hash. -* \[\#3752](https://github.com/cosmos/cosmos-sdk/issues/3752) Explanatory docs for minting mechanism (`docs/spec/mint/01_concepts.md`) -* [\#3801](https://github.com/cosmos/cosmos-sdk/issues/3801) `baseapp` safety improvements -* [\#3820](https://github.com/cosmos/cosmos-sdk/issues/3820) Make Coins.IsAllGT() more robust and consistent. -* [\#3828](https://github.com/cosmos/cosmos-sdk/issues/3828) New sdkch tool to maintain changelogs -* [\#3864](https://github.com/cosmos/cosmos-sdk/issues/3864) Make Coins.IsAllGTE() more consistent. -* [\#3907](https://github.com/cosmos/cosmos-sdk/issues/3907): dep -> go mod migration +* \[\#3752](https://github.com/eligion/cosmos-sdk/issues/3752) Explanatory docs for minting mechanism (`docs/spec/mint/01_concepts.md`) +* [\#3801](https://github.com/eligion/cosmos-sdk/issues/3801) `baseapp` safety improvements +* [\#3820](https://github.com/eligion/cosmos-sdk/issues/3820) Make Coins.IsAllGT() more robust and consistent. +* [\#3828](https://github.com/eligion/cosmos-sdk/issues/3828) New sdkch tool to maintain changelogs +* [\#3864](https://github.com/eligion/cosmos-sdk/issues/3864) Make Coins.IsAllGTE() more consistent. +* [\#3907](https://github.com/eligion/cosmos-sdk/issues/3907): dep -> go mod migration * Drop dep in favor of go modules. * Upgrade to Go 1.12.1. -* [\#3917](https://github.com/cosmos/cosmos-sdk/issues/3917) Allow arbitrary decreases to validator commission rates. -* [\#3937](https://github.com/cosmos/cosmos-sdk/issues/3937) Implement community pool querier. -* [\#3940](https://github.com/cosmos/cosmos-sdk/issues/3940) Codespace should be lowercase. -* [\#3986](https://github.com/cosmos/cosmos-sdk/issues/3986) Update the Stringer implementation of the Proposal type. -* [\#926](https://github.com/cosmos/cosmos-sdk/issues/926) circuit breaker high level explanation -* [\#3896](https://github.com/cosmos/cosmos-sdk/issues/3896) Fixed various linters warnings in the context of the gometalinter -> golangci-lint migration -* [\#3916](https://github.com/cosmos/cosmos-sdk/issues/3916) Hex encode data in tx responses +* [\#3917](https://github.com/eligion/cosmos-sdk/issues/3917) Allow arbitrary decreases to validator commission rates. +* [\#3937](https://github.com/eligion/cosmos-sdk/issues/3937) Implement community pool querier. +* [\#3940](https://github.com/eligion/cosmos-sdk/issues/3940) Codespace should be lowercase. +* [\#3986](https://github.com/eligion/cosmos-sdk/issues/3986) Update the Stringer implementation of the Proposal type. +* [\#926](https://github.com/eligion/cosmos-sdk/issues/926) circuit breaker high level explanation +* [\#3896](https://github.com/eligion/cosmos-sdk/issues/3896) Fixed various linters warnings in the context of the gometalinter -> golangci-lint migration +* [\#3916](https://github.com/eligion/cosmos-sdk/issues/3916) Hex encode data in tx responses ### Bug Fixes #### Gaia -* [\#3825](https://github.com/cosmos/cosmos-sdk/issues/3825) Validate genesis before running gentx -* [\#3889](https://github.com/cosmos/cosmos-sdk/issues/3889) When `--generate-only` is provided, the Keybase is not used and as a result +* [\#3825](https://github.com/eligion/cosmos-sdk/issues/3825) Validate genesis before running gentx +* [\#3889](https://github.com/eligion/cosmos-sdk/issues/3889) When `--generate-only` is provided, the Keybase is not used and as a result the `--from` value must be a valid Bech32 cosmos address. * 3974 Fix go env setting in installation.md * 3996 Change 'make get_tools' to 'make tools' in DOCS_README.md. #### Gaia CLI -* [\#3883](https://github.com/cosmos/cosmos-sdk/issues/3883) Remove Height Flag from CLI Queries -* [\#3899](https://github.com/cosmos/cosmos-sdk/issues/3899) Using 'gaiacli config node' breaks ~/config/config.toml +* [\#3883](https://github.com/eligion/cosmos-sdk/issues/3883) Remove Height Flag from CLI Queries +* [\#3899](https://github.com/eligion/cosmos-sdk/issues/3899) Using 'gaiacli config node' breaks ~/config/config.toml #### SDK -* [\#3837](https://github.com/cosmos/cosmos-sdk/issues/3837) Fix `WithdrawValidatorCommission` to properly set the validator's remaining commission. -* [\#3870](https://github.com/cosmos/cosmos-sdk/issues/3870) Fix DecCoins#TruncateDecimal to never return zero coins in +* [\#3837](https://github.com/eligion/cosmos-sdk/issues/3837) Fix `WithdrawValidatorCommission` to properly set the validator's remaining commission. +* [\#3870](https://github.com/eligion/cosmos-sdk/issues/3870) Fix DecCoins#TruncateDecimal to never return zero coins in either the truncated coins or the change coins. -* [\#3915](https://github.com/cosmos/cosmos-sdk/issues/3915) Remove ';' delimiting support from ParseDecCoins -* [\#3977](https://github.com/cosmos/cosmos-sdk/issues/3977) Fix docker image build -* [\#4020](https://github.com/cosmos/cosmos-sdk/issues/4020) Fix queryDelegationRewards by returning an error +* [\#3915](https://github.com/eligion/cosmos-sdk/issues/3915) Remove ';' delimiting support from ParseDecCoins +* [\#3977](https://github.com/eligion/cosmos-sdk/issues/3977) Fix docker image build +* [\#4020](https://github.com/eligion/cosmos-sdk/issues/4020) Fix queryDelegationRewards by returning an error when the validator or delegation do not exist. -* [\#4050](https://github.com/cosmos/cosmos-sdk/issues/4050) Fix DecCoins APIs +* [\#4050](https://github.com/eligion/cosmos-sdk/issues/4050) Fix DecCoins APIs where rounding or truncation could result in zero decimal coins. -* [\#4088](https://github.com/cosmos/cosmos-sdk/issues/4088) Fix `calculateDelegationRewards` +* [\#4088](https://github.com/eligion/cosmos-sdk/issues/4088) Fix `calculateDelegationRewards` by accounting for rounding errors when multiplying stake by slashing fractions. ## 0.33.2 @@ -1907,46 +1907,46 @@ by accounting for rounding errors when multiplying stake by slashing fractions. #### Gaia -* [\#3999](https://github.com/cosmos/cosmos-sdk/pull/3999) Fix distribution delegation for zero height export bug +* [\#3999](https://github.com/eligion/cosmos-sdk/pull/3999) Fix distribution delegation for zero height export bug ## 0.33.0 BREAKING CHANGES * Gaia REST API - * [\#3641](https://github.com/cosmos/cosmos-sdk/pull/3641) Remove the ability to use a Keybase from the REST API client: + * [\#3641](https://github.com/eligion/cosmos-sdk/pull/3641) Remove the ability to use a Keybase from the REST API client: * `password` and `generate_only` have been removed from the `base_req` object * All txs that used to sign or use the Keybase now only generate the tx * `keys` routes completely removed - * [\#3692](https://github.com/cosmos/cosmos-sdk/pull/3692) Update tx encoding and broadcasting endpoints: + * [\#3692](https://github.com/eligion/cosmos-sdk/pull/3692) Update tx encoding and broadcasting endpoints: * Remove duplicate broadcasting endpoints in favor of POST @ `/txs` * The `Tx` field now accepts a `StdTx` and not raw tx bytes * Move encoding endpoint to `/txs/encode` * Gaia - * [\#3787](https://github.com/cosmos/cosmos-sdk/pull/3787) Fork the `x/bank` module into the Gaia application with only a + * [\#3787](https://github.com/eligion/cosmos-sdk/pull/3787) Fork the `x/bank` module into the Gaia application with only a modified message handler, where the modified message handler behaves the same as the standard `x/bank` message handler except for `MsgMultiSend` that must burn exactly 9 atoms and transfer 1 atom, and `MsgSend` is disabled. - * [\#3789](https://github.com/cosmos/cosmos-sdk/pull/3789) Update validator creation flow: + * [\#3789](https://github.com/eligion/cosmos-sdk/pull/3789) Update validator creation flow: * Remove `NewMsgCreateValidatorOnBehalfOf` and corresponding business logic * Ensure the validator address equals the delegator address during `MsgCreateValidator#ValidateBasic` * SDK - * [\#3750](https://github.com/cosmos/cosmos-sdk/issues/3750) Track outstanding rewards per-validator instead of globally, + * [\#3750](https://github.com/eligion/cosmos-sdk/issues/3750) Track outstanding rewards per-validator instead of globally, and fix the main simulation issue, which was that slashes of re-delegations to a validator were not correctly accounted for in fee distribution when the redelegation in question had itself been slashed (from a fault committed by a different validator) in the same BeginBlock. Outstanding rewards are now available on a per-validator basis in REST. - * [\#3669](https://github.com/cosmos/cosmos-sdk/pull/3669) Ensure consistency in message naming, codec registration, and JSON + * [\#3669](https://github.com/eligion/cosmos-sdk/pull/3669) Ensure consistency in message naming, codec registration, and JSON tags. - * [\#3788](https://github.com/cosmos/cosmos-sdk/pull/3788) Change order of operations for greater accuracy when calculating delegation share token value - * [\#3788](https://github.com/cosmos/cosmos-sdk/pull/3788) DecCoins.Cap -> DecCoins.Intersect - * [\#3666](https://github.com/cosmos/cosmos-sdk/pull/3666) Improve coins denom validation. - * [\#3751](https://github.com/cosmos/cosmos-sdk/pull/3751) Disable (temporarily) support for ED25519 account key pairs. + * [\#3788](https://github.com/eligion/cosmos-sdk/pull/3788) Change order of operations for greater accuracy when calculating delegation share token value + * [\#3788](https://github.com/eligion/cosmos-sdk/pull/3788) DecCoins.Cap -> DecCoins.Intersect + * [\#3666](https://github.com/eligion/cosmos-sdk/pull/3666) Improve coins denom validation. + * [\#3751](https://github.com/eligion/cosmos-sdk/pull/3751) Disable (temporarily) support for ED25519 account key pairs. * Tendermint * [\#3804] Update to Tendermint `v0.31.0-dev0` @@ -1954,7 +1954,7 @@ BREAKING CHANGES FEATURES * SDK - * [\#3719](https://github.com/cosmos/cosmos-sdk/issues/3719) DBBackend can now be set at compile time. + * [\#3719](https://github.com/eligion/cosmos-sdk/issues/3719) DBBackend can now be set at compile time. Defaults: goleveldb. Supported: cleveldb. IMPROVEMENTS @@ -1963,95 +1963,95 @@ IMPROVEMENTS * Update the `TxResponse` type allowing for the `Logs` result to be JSON decoded automatically. * Gaia CLI - * [\#3653](https://github.com/cosmos/cosmos-sdk/pull/3653) Prompt user confirmation prior to signing and broadcasting a transaction. - * [\#3670](https://github.com/cosmos/cosmos-sdk/pull/3670) CLI support for showing bech32 addresses in Ledger devices - * [\#3711](https://github.com/cosmos/cosmos-sdk/pull/3711) Update `tx sign` to use `--from` instead of the deprecated `--name` + * [\#3653](https://github.com/eligion/cosmos-sdk/pull/3653) Prompt user confirmation prior to signing and broadcasting a transaction. + * [\#3670](https://github.com/eligion/cosmos-sdk/pull/3670) CLI support for showing bech32 addresses in Ledger devices + * [\#3711](https://github.com/eligion/cosmos-sdk/pull/3711) Update `tx sign` to use `--from` instead of the deprecated `--name` CLI flag. - * [\#3738](https://github.com/cosmos/cosmos-sdk/pull/3738) Improve multisig UX: + * [\#3738](https://github.com/eligion/cosmos-sdk/pull/3738) Improve multisig UX: * `gaiacli keys show -o json` now includes constituent pubkeys, respective weights and threshold * `gaiacli keys show --show-multisig` now displays constituent pubkeys, respective weights and threshold * `gaiacli tx sign --validate-signatures` now displays multisig signers with their respective weights - * [\#3730](https://github.com/cosmos/cosmos-sdk/issues/3730) Improve workflow for + * [\#3730](https://github.com/eligion/cosmos-sdk/issues/3730) Improve workflow for `gaiad gentx` with offline public keys, by outputting stdtx file that needs to be signed. - * [\#3761](https://github.com/cosmos/cosmos-sdk/issues/3761) Querying account related information using custom querier in auth module + * [\#3761](https://github.com/eligion/cosmos-sdk/issues/3761) Querying account related information using custom querier in auth module * SDK - * [\#3753](https://github.com/cosmos/cosmos-sdk/issues/3753) Remove no-longer-used governance penalty parameter - * [\#3679](https://github.com/cosmos/cosmos-sdk/issues/3679) Consistent operators across Coins, DecCoins, Int, Dec + * [\#3753](https://github.com/eligion/cosmos-sdk/issues/3753) Remove no-longer-used governance penalty parameter + * [\#3679](https://github.com/eligion/cosmos-sdk/issues/3679) Consistent operators across Coins, DecCoins, Int, Dec replaced: Minus->Sub Plus->Add Div->Quo - * [\#3665](https://github.com/cosmos/cosmos-sdk/pull/3665) Overhaul sdk.Uint type in preparation for Coins Int -> Uint migration. - * [\#3691](https://github.com/cosmos/cosmos-sdk/issues/3691) Cleanup error messages - * [\#3456](https://github.com/cosmos/cosmos-sdk/issues/3456) Integrate in the Int.ToDec() convenience function - * [\#3300](https://github.com/cosmos/cosmos-sdk/pull/3300) Update the spec-spec, spec file reorg, and TOC updates. - * [\#3694](https://github.com/cosmos/cosmos-sdk/pull/3694) Push tagged docker images on docker hub when tag is created. - * [\#3716](https://github.com/cosmos/cosmos-sdk/pull/3716) Update file permissions the client keys directory and contents to `0700`. - * [\#3681](https://github.com/cosmos/cosmos-sdk/issues/3681) Migrate ledger-cosmos-go from ZondaX to Cosmos organization + * [\#3665](https://github.com/eligion/cosmos-sdk/pull/3665) Overhaul sdk.Uint type in preparation for Coins Int -> Uint migration. + * [\#3691](https://github.com/eligion/cosmos-sdk/issues/3691) Cleanup error messages + * [\#3456](https://github.com/eligion/cosmos-sdk/issues/3456) Integrate in the Int.ToDec() convenience function + * [\#3300](https://github.com/eligion/cosmos-sdk/pull/3300) Update the spec-spec, spec file reorg, and TOC updates. + * [\#3694](https://github.com/eligion/cosmos-sdk/pull/3694) Push tagged docker images on docker hub when tag is created. + * [\#3716](https://github.com/eligion/cosmos-sdk/pull/3716) Update file permissions the client keys directory and contents to `0700`. + * [\#3681](https://github.com/eligion/cosmos-sdk/issues/3681) Migrate ledger-cosmos-go from ZondaX to Cosmos organization * Tendermint - * [\#3699](https://github.com/cosmos/cosmos-sdk/pull/3699) Upgrade to Tendermint 0.30.1 + * [\#3699](https://github.com/eligion/cosmos-sdk/pull/3699) Upgrade to Tendermint 0.30.1 BUG FIXES * Gaia CLI - * [\#3731](https://github.com/cosmos/cosmos-sdk/pull/3731) `keys add --interactive` bip32 passphrase regression fix - * [\#3714](https://github.com/cosmos/cosmos-sdk/issues/3714) Fix USB raw access issues with gaiacli when installed via snap + * [\#3731](https://github.com/eligion/cosmos-sdk/pull/3731) `keys add --interactive` bip32 passphrase regression fix + * [\#3714](https://github.com/eligion/cosmos-sdk/issues/3714) Fix USB raw access issues with gaiacli when installed via snap * Gaia * [\#3777](https://github.com/cosmso/cosmos-sdk/pull/3777) `gaiad export` no longer panics when the database is empty - * [\#3806](https://github.com/cosmos/cosmos-sdk/pull/3806) Properly return errors from a couple of struct Unmarshal functions + * [\#3806](https://github.com/eligion/cosmos-sdk/pull/3806) Properly return errors from a couple of struct Unmarshal functions * SDK - * [\#3728](https://github.com/cosmos/cosmos-sdk/issues/3728) Truncate decimal multiplication & division in distribution to ensure + * [\#3728](https://github.com/eligion/cosmos-sdk/issues/3728) Truncate decimal multiplication & division in distribution to ensure no more than the collected fees / inflation are distributed - * [\#3727](https://github.com/cosmos/cosmos-sdk/issues/3727) Return on zero-length (including []byte{}) PrefixEndBytes() calls - * [\#3559](https://github.com/cosmos/cosmos-sdk/issues/3559) fix occasional failing due to non-determinism in lcd test TestBonding + * [\#3727](https://github.com/eligion/cosmos-sdk/issues/3727) Return on zero-length (including []byte{}) PrefixEndBytes() calls + * [\#3559](https://github.com/eligion/cosmos-sdk/issues/3559) fix occasional failing due to non-determinism in lcd test TestBonding where validator is unexpectedly slashed throwing off test calculations - * [\#3411](https://github.com/cosmos/cosmos-sdk/pull/3411) Include the `RequestInitChain.Time` in the block header init during + * [\#3411](https://github.com/eligion/cosmos-sdk/pull/3411) Include the `RequestInitChain.Time` in the block header init during `InitChain`. - * [\#3717](https://github.com/cosmos/cosmos-sdk/pull/3717) Update the vesting specification and implementation to cap deduction from + * [\#3717](https://github.com/eligion/cosmos-sdk/pull/3717) Update the vesting specification and implementation to cap deduction from `DelegatedVesting` by at most `DelegatedVesting`. This accounts for the case where the undelegation amount may exceed the original delegation amount due to truncation of undelegation tokens. - * [\#3717](https://github.com/cosmos/cosmos-sdk/pull/3717) Ignore unknown proposers in allocating rewards for proposers, in case + * [\#3717](https://github.com/eligion/cosmos-sdk/pull/3717) Ignore unknown proposers in allocating rewards for proposers, in case unbonding period was just 1 block and proposer was already deleted. - * [\#3726](https://github.com/cosmos/cosmos-sdk/pull/3724) Cap(clip) reward to remaining coins in AllocateTokens. + * [\#3726](https://github.com/eligion/cosmos-sdk/pull/3724) Cap(clip) reward to remaining coins in AllocateTokens. ## 0.32.0 BREAKING CHANGES * Gaia REST API - * [\#3642](https://github.com/cosmos/cosmos-sdk/pull/3642) `GET /tx/{hash}` now returns `404` instead of `500` if the transaction is not found + * [\#3642](https://github.com/eligion/cosmos-sdk/pull/3642) `GET /tx/{hash}` now returns `404` instead of `500` if the transaction is not found * SDK - * [\#3580](https://github.com/cosmos/cosmos-sdk/issues/3580) Migrate HTTP request/response types and utilities to types/rest. - * [\#3592](https://github.com/cosmos/cosmos-sdk/issues/3592) Drop deprecated keybase implementation's New() constructor in + * [\#3580](https://github.com/eligion/cosmos-sdk/issues/3580) Migrate HTTP request/response types and utilities to types/rest. + * [\#3592](https://github.com/eligion/cosmos-sdk/issues/3592) Drop deprecated keybase implementation's New() constructor in favor of a new crypto/keys.New(string, string) implementation that returns a lazy keybase instance. Remove client.MockKeyBase, superseded by crypto/keys.NewInMemory() - * [\#3621](https://github.com/cosmos/cosmos-sdk/issues/3621) staking.GenesisState.Bonds -> Delegations + * [\#3621](https://github.com/eligion/cosmos-sdk/issues/3621) staking.GenesisState.Bonds -> Delegations IMPROVEMENTS * SDK - * [\#3311](https://github.com/cosmos/cosmos-sdk/pull/3311) Reconcile the `DecCoin/s` API with the `Coin/s` API. - * [\#3614](https://github.com/cosmos/cosmos-sdk/pull/3614) Add coin denom length checks to the coins constructors. - * [\#3621](https://github.com/cosmos/cosmos-sdk/issues/3621) remove many inter-module dependancies - * [\#3601](https://github.com/cosmos/cosmos-sdk/pull/3601) JSON-stringify the ABCI log response which includes the log and message + * [\#3311](https://github.com/eligion/cosmos-sdk/pull/3311) Reconcile the `DecCoin/s` API with the `Coin/s` API. + * [\#3614](https://github.com/eligion/cosmos-sdk/pull/3614) Add coin denom length checks to the coins constructors. + * [\#3621](https://github.com/eligion/cosmos-sdk/issues/3621) remove many inter-module dependancies + * [\#3601](https://github.com/eligion/cosmos-sdk/pull/3601) JSON-stringify the ABCI log response which includes the log and message index. - * [\#3604](https://github.com/cosmos/cosmos-sdk/pull/3604) Improve SDK funds related error messages and allow for unicode in + * [\#3604](https://github.com/eligion/cosmos-sdk/pull/3604) Improve SDK funds related error messages and allow for unicode in JSON ABCI log. - * [\#3620](https://github.com/cosmos/cosmos-sdk/pull/3620) Version command shows build tags - * [\#3638](https://github.com/cosmos/cosmos-sdk/pull/3638) Add Bcrypt benchmarks & justification of security parameter choice - * [\#3648](https://github.com/cosmos/cosmos-sdk/pull/3648) Add JSON struct tags to vesting accounts. + * [\#3620](https://github.com/eligion/cosmos-sdk/pull/3620) Version command shows build tags + * [\#3638](https://github.com/eligion/cosmos-sdk/pull/3638) Add Bcrypt benchmarks & justification of security parameter choice + * [\#3648](https://github.com/eligion/cosmos-sdk/pull/3648) Add JSON struct tags to vesting accounts. * Tendermint - * [\#3618](https://github.com/cosmos/cosmos-sdk/pull/3618) Upgrade to Tendermint 0.30.03 + * [\#3618](https://github.com/eligion/cosmos-sdk/pull/3618) Upgrade to Tendermint 0.30.03 BUG FIXES * SDK - * [\#3646](https://github.com/cosmos/cosmos-sdk/issues/3646) `x/mint` now uses total token supply instead of total bonded tokens to calculate inflation + * [\#3646](https://github.com/eligion/cosmos-sdk/issues/3646) `x/mint` now uses total token supply instead of total bonded tokens to calculate inflation ## 0.31.2 @@ -2059,7 +2059,7 @@ BUG FIXES BREAKING CHANGES * SDK - * [\#3592](https://github.com/cosmos/cosmos-sdk/issues/3592) Drop deprecated keybase implementation's + * [\#3592](https://github.com/eligion/cosmos-sdk/issues/3592) Drop deprecated keybase implementation's New constructor in favor of a new crypto/keys.New(string, string) implementation that returns a lazy keybase instance. Remove client.MockKeyBase, @@ -2068,11 +2068,11 @@ BREAKING CHANGES IMPROVEMENTS * SDK - * [\#3604](https://github.com/cosmos/cosmos-sdk/pulls/3604) Improve SDK funds related error messages and allow for unicode in + * [\#3604](https://github.com/eligion/cosmos-sdk/pulls/3604) Improve SDK funds related error messages and allow for unicode in JSON ABCI log. * Tendermint - * [\#3563](https://github.com/cosmos/cosmos-sdk/3563) Update to Tendermint version `0.30.0-rc0` + * [\#3563](https://github.com/eligion/cosmos-sdk/3563) Update to Tendermint version `0.30.0-rc0` BUG FIXES @@ -2083,8 +2083,8 @@ BUG FIXES `ResultBroadcastTx`. * SDK - * [\#3582](https://github.com/cosmos/cosmos-sdk/pull/3582) Running `make test_unit` was failing due to a missing tag - * [\#3617](https://github.com/cosmos/cosmos-sdk/pull/3582) Fix fee comparison when the required fees does not contain any denom + * [\#3582](https://github.com/eligion/cosmos-sdk/pull/3582) Running `make test_unit` was failing due to a missing tag + * [\#3617](https://github.com/eligion/cosmos-sdk/pull/3582) Fix fee comparison when the required fees does not contain any denom present in the tx fees. ## 0.31.0 @@ -2092,121 +2092,121 @@ BUG FIXES BREAKING CHANGES * Gaia REST API (`gaiacli advanced rest-server`) - * [\#3284](https://github.com/cosmos/cosmos-sdk/issues/3284) Rename the `name` + * [\#3284](https://github.com/eligion/cosmos-sdk/issues/3284) Rename the `name` field to `from` in the `base_req` body. - * [\#3485](https://github.com/cosmos/cosmos-sdk/pull/3485) Error responses are now JSON objects. + * [\#3485](https://github.com/eligion/cosmos-sdk/pull/3485) Error responses are now JSON objects. * [\#3477][distribution] endpoint changed "all_delegation_rewards" -> "delegator_total_rewards" * Gaia CLI (`gaiacli`) - - [#3399](https://github.com/cosmos/cosmos-sdk/pull/3399) Add `gaiad validate-genesis` command to facilitate checking of genesis files - - [\#1894](https://github.com/cosmos/cosmos-sdk/issues/1894) `version` prints out short info by default. Add `--long` flag. Proper handling of `--format` flag introduced. - - [\#3465](https://github.com/cosmos/cosmos-sdk/issues/3465) `gaiacli rest-server` switched back to insecure mode by default: + - [#3399](https://github.com/eligion/cosmos-sdk/pull/3399) Add `gaiad validate-genesis` command to facilitate checking of genesis files + - [\#1894](https://github.com/eligion/cosmos-sdk/issues/1894) `version` prints out short info by default. Add `--long` flag. Proper handling of `--format` flag introduced. + - [\#3465](https://github.com/eligion/cosmos-sdk/issues/3465) `gaiacli rest-server` switched back to insecure mode by default: - `--insecure` flag is removed. - `--tls` is now used to enable secure layer. - - [\#3451](https://github.com/cosmos/cosmos-sdk/pull/3451) `gaiacli` now returns transactions in plain text including tags. - - [\#3497](https://github.com/cosmos/cosmos-sdk/issues/3497) `gaiad init` now takes moniker as required arguments, not as parameter. - * [\#3501](https://github.com/cosmos/cosmos-sdk/issues/3501) Change validator + - [\#3451](https://github.com/eligion/cosmos-sdk/pull/3451) `gaiacli` now returns transactions in plain text including tags. + - [\#3497](https://github.com/eligion/cosmos-sdk/issues/3497) `gaiad init` now takes moniker as required arguments, not as parameter. + * [\#3501](https://github.com/eligion/cosmos-sdk/issues/3501) Change validator address Bech32 encoding to consensus address in `tendermint-validator-set`. * Gaia - * [\#3457](https://github.com/cosmos/cosmos-sdk/issues/3457) Changed governance tally validatorGovInfo to use sdk.Int power instead of sdk.Dec - * [\#3495](https://github.com/cosmos/cosmos-sdk/issues/3495) Added Validator Minimum Self Delegation + * [\#3457](https://github.com/eligion/cosmos-sdk/issues/3457) Changed governance tally validatorGovInfo to use sdk.Int power instead of sdk.Dec + * [\#3495](https://github.com/eligion/cosmos-sdk/issues/3495) Added Validator Minimum Self Delegation * Reintroduce OR semantics for tx fees * SDK - * [\#2513](https://github.com/cosmos/cosmos-sdk/issues/2513) Tendermint updates are adjusted by 10^-6 relative to staking tokens, - * [\#3487](https://github.com/cosmos/cosmos-sdk/pull/3487) Move HTTP/REST utilities out of client/utils into a new dedicated client/rest package. - * [\#3490](https://github.com/cosmos/cosmos-sdk/issues/3490) ReadRESTReq() returns bool to avoid callers to write error responses twice. - * [\#3502](https://github.com/cosmos/cosmos-sdk/pull/3502) Fixes issue when comparing genesis states - * [\#3514](https://github.com/cosmos/cosmos-sdk/pull/3514) Various clean ups: + * [\#2513](https://github.com/eligion/cosmos-sdk/issues/2513) Tendermint updates are adjusted by 10^-6 relative to staking tokens, + * [\#3487](https://github.com/eligion/cosmos-sdk/pull/3487) Move HTTP/REST utilities out of client/utils into a new dedicated client/rest package. + * [\#3490](https://github.com/eligion/cosmos-sdk/issues/3490) ReadRESTReq() returns bool to avoid callers to write error responses twice. + * [\#3502](https://github.com/eligion/cosmos-sdk/pull/3502) Fixes issue when comparing genesis states + * [\#3514](https://github.com/eligion/cosmos-sdk/pull/3514) Various clean ups: - Replace all GetKeyBase\* functions family in favor of NewKeyBaseFromDir and NewKeyBaseFromHomeFlag. - Remove Get prefix from all TxBuilder's getters. - * [\#3522](https://github.com/cosmos/cosmos-sdk/pull/3522) Get rid of double negatives: Coins.IsNotNegative() -> Coins.IsAnyNegative(). - * [\#3561](https://github.com/cosmos/cosmos-sdk/issues/3561) Don't unnecessarily store denominations in staking + * [\#3522](https://github.com/eligion/cosmos-sdk/pull/3522) Get rid of double negatives: Coins.IsNotNegative() -> Coins.IsAnyNegative(). + * [\#3561](https://github.com/eligion/cosmos-sdk/issues/3561) Don't unnecessarily store denominations in staking FEATURES * Gaia REST API -* [\#2358](https://github.com/cosmos/cosmos-sdk/issues/2358) Add distribution module REST interface +* [\#2358](https://github.com/eligion/cosmos-sdk/issues/2358) Add distribution module REST interface * Gaia CLI (`gaiacli`) - * [\#3429](https://github.com/cosmos/cosmos-sdk/issues/3429) Support querying + * [\#3429](https://github.com/eligion/cosmos-sdk/issues/3429) Support querying for all delegator distribution rewards. - * [\#3449](https://github.com/cosmos/cosmos-sdk/issues/3449) Proof verification now works with absence proofs - * [\#3484](https://github.com/cosmos/cosmos-sdk/issues/3484) Add support + * [\#3449](https://github.com/eligion/cosmos-sdk/issues/3449) Proof verification now works with absence proofs + * [\#3484](https://github.com/eligion/cosmos-sdk/issues/3484) Add support vesting accounts to the add-genesis-account command. * Gaia - - [\#3397](https://github.com/cosmos/cosmos-sdk/pull/3397) Implement genesis file sanitization to avoid failures at chain init. - * [\#3428](https://github.com/cosmos/cosmos-sdk/issues/3428) Run the simulation from a particular genesis state loaded from a file + - [\#3397](https://github.com/eligion/cosmos-sdk/pull/3397) Implement genesis file sanitization to avoid failures at chain init. + * [\#3428](https://github.com/eligion/cosmos-sdk/issues/3428) Run the simulation from a particular genesis state loaded from a file * SDK - * [\#3270](https://github.com/cosmos/cosmos-sdk/issues/3270) [x/staking] limit number of ongoing unbonding delegations /redelegations per pair/trio + * [\#3270](https://github.com/eligion/cosmos-sdk/issues/3270) [x/staking] limit number of ongoing unbonding delegations /redelegations per pair/trio * [\#3477][distribution] new query endpoint "delegator_validators" - * [\#3514](https://github.com/cosmos/cosmos-sdk/pull/3514) Provided a lazy loading implementation of Keybase that locks the underlying + * [\#3514](https://github.com/eligion/cosmos-sdk/pull/3514) Provided a lazy loading implementation of Keybase that locks the underlying storage only for the time needed to perform the required operation. Also added Keybase reference to TxBuilder struct. - * [types] [\#2580](https://github.com/cosmos/cosmos-sdk/issues/2580) Addresses now Bech32 empty addresses to an empty string + * [types] [\#2580](https://github.com/eligion/cosmos-sdk/issues/2580) Addresses now Bech32 empty addresses to an empty string IMPROVEMENTS * Gaia REST API - * [\#3284](https://github.com/cosmos/cosmos-sdk/issues/3284) Update Gaia Lite + * [\#3284](https://github.com/eligion/cosmos-sdk/issues/3284) Update Gaia Lite REST service to support the following: * Automatic account number and sequence population when fields are omitted * Generate only functionality no longer requires access to a local Keybase * `from` field in the `base_req` body can be a Keybase name or account address - * [\#3423](https://github.com/cosmos/cosmos-sdk/issues/3423) Allow simulation + * [\#3423](https://github.com/eligion/cosmos-sdk/issues/3423) Allow simulation (auto gas) to work with generate only. - * [\#3514](https://github.com/cosmos/cosmos-sdk/pull/3514) REST server calls to keybase does not lock the underlying storage anymore. - * [\#3523](https://github.com/cosmos/cosmos-sdk/pull/3523) Added `/tx/encode` endpoint to serialize a JSON tx to base64-encoded Amino. + * [\#3514](https://github.com/eligion/cosmos-sdk/pull/3514) REST server calls to keybase does not lock the underlying storage anymore. + * [\#3523](https://github.com/eligion/cosmos-sdk/pull/3523) Added `/tx/encode` endpoint to serialize a JSON tx to base64-encoded Amino. * Gaia CLI (`gaiacli`) - * [\#3476](https://github.com/cosmos/cosmos-sdk/issues/3476) New `withdraw-all-rewards` command to withdraw all delegations rewards for delegators. - * [\#3497](https://github.com/cosmos/cosmos-sdk/issues/3497) `gaiad gentx` supports `--ip` and `--node-id` flags to override defaults. - * [\#3518](https://github.com/cosmos/cosmos-sdk/issues/3518) Fix flow in + * [\#3476](https://github.com/eligion/cosmos-sdk/issues/3476) New `withdraw-all-rewards` command to withdraw all delegations rewards for delegators. + * [\#3497](https://github.com/eligion/cosmos-sdk/issues/3497) `gaiad gentx` supports `--ip` and `--node-id` flags to override defaults. + * [\#3518](https://github.com/eligion/cosmos-sdk/issues/3518) Fix flow in `keys add` to show the mnemonic by default. - * [\#3517](https://github.com/cosmos/cosmos-sdk/pull/3517) Increased test coverage - * [\#3523](https://github.com/cosmos/cosmos-sdk/pull/3523) Added `tx encode` command to serialize a JSON tx to base64-encoded Amino. + * [\#3517](https://github.com/eligion/cosmos-sdk/pull/3517) Increased test coverage + * [\#3523](https://github.com/eligion/cosmos-sdk/pull/3523) Added `tx encode` command to serialize a JSON tx to base64-encoded Amino. * Gaia - * [\#3418](https://github.com/cosmos/cosmos-sdk/issues/3418) Add vesting account + * [\#3418](https://github.com/eligion/cosmos-sdk/issues/3418) Add vesting account genesis validation checks to `GaiaValidateGenesisState`. - * [\#3420](https://github.com/cosmos/cosmos-sdk/issues/3420) Added maximum length to governance proposal descriptions and titles - * [\#3256](https://github.com/cosmos/cosmos-sdk/issues/3256) Add gas consumption + * [\#3420](https://github.com/eligion/cosmos-sdk/issues/3420) Added maximum length to governance proposal descriptions and titles + * [\#3256](https://github.com/eligion/cosmos-sdk/issues/3256) Add gas consumption for tx size in the ante handler. - * [\#3454](https://github.com/cosmos/cosmos-sdk/pull/3454) Add `--jail-whitelist` to `gaiad export` to enable testing of complex exports - * [\#3424](https://github.com/cosmos/cosmos-sdk/issues/3424) Allow generation of gentxs with empty memo field. - * [\#3507](https://github.com/cosmos/cosmos-sdk/issues/3507) General cleanup, removal of unnecessary struct fields, undelegation bugfix, and comment clarification in x/staking and x/slashing + * [\#3454](https://github.com/eligion/cosmos-sdk/pull/3454) Add `--jail-whitelist` to `gaiad export` to enable testing of complex exports + * [\#3424](https://github.com/eligion/cosmos-sdk/issues/3424) Allow generation of gentxs with empty memo field. + * [\#3507](https://github.com/eligion/cosmos-sdk/issues/3507) General cleanup, removal of unnecessary struct fields, undelegation bugfix, and comment clarification in x/staking and x/slashing * SDK * [\#2605] x/params add subkey accessing - * [\#2986](https://github.com/cosmos/cosmos-sdk/pull/2986) Store Refactor - * [\#3435](https://github.com/cosmos/cosmos-sdk/issues/3435) Test that store implementations do not allow nil values - * [\#2509](https://github.com/cosmos/cosmos-sdk/issues/2509) Sanitize all usage of Dec.RoundInt64() - * [\#556](https://github.com/cosmos/cosmos-sdk/issues/556) Increase `BaseApp` + * [\#2986](https://github.com/eligion/cosmos-sdk/pull/2986) Store Refactor + * [\#3435](https://github.com/eligion/cosmos-sdk/issues/3435) Test that store implementations do not allow nil values + * [\#2509](https://github.com/eligion/cosmos-sdk/issues/2509) Sanitize all usage of Dec.RoundInt64() + * [\#556](https://github.com/eligion/cosmos-sdk/issues/556) Increase `BaseApp` test coverage. - * [\#3357](https://github.com/cosmos/cosmos-sdk/issues/3357) develop state-transitions.md for staking spec, missing states added to `state.md` - * [\#3552](https://github.com/cosmos/cosmos-sdk/pull/3552) Validate bit length when + * [\#3357](https://github.com/eligion/cosmos-sdk/issues/3357) develop state-transitions.md for staking spec, missing states added to `state.md` + * [\#3552](https://github.com/eligion/cosmos-sdk/pull/3552) Validate bit length when deserializing `Int` types. BUG FIXES * Gaia CLI (`gaiacli`) - - [\#3417](https://github.com/cosmos/cosmos-sdk/pull/3417) Fix `q slashing signing-info` panic by ensuring safety of user input and properly returning not found error - - [\#3345](https://github.com/cosmos/cosmos-sdk/issues/3345) Upgrade ledger-cosmos-go dependency to v0.9.3 to pull + - [\#3417](https://github.com/eligion/cosmos-sdk/pull/3417) Fix `q slashing signing-info` panic by ensuring safety of user input and properly returning not found error + - [\#3345](https://github.com/eligion/cosmos-sdk/issues/3345) Upgrade ledger-cosmos-go dependency to v0.9.3 to pull https://github.com/ZondaX/ledger-cosmos-go/commit/ed9aa39ce8df31bad1448c72d3d226bf2cb1a8d1 in order to fix a derivation path issue that causes `gaiacli keys add --recover` to malfunction. - - [\#3419](https://github.com/cosmos/cosmos-sdk/pull/3419) Fix `q distr slashes` panic - - [\#3453](https://github.com/cosmos/cosmos-sdk/pull/3453) The `rest-server` command didn't respect persistent flags such as `--chain-id` and `--trust-node` if they were + - [\#3419](https://github.com/eligion/cosmos-sdk/pull/3419) Fix `q distr slashes` panic + - [\#3453](https://github.com/eligion/cosmos-sdk/pull/3453) The `rest-server` command didn't respect persistent flags such as `--chain-id` and `--trust-node` if they were passed on the command line. - - [\#3441](https://github.com/cosmos/cosmos-sdk/pull/3431) Improved resource management and connection handling (ledger devices). Fixes issue with DER vs BER signatures. + - [\#3441](https://github.com/eligion/cosmos-sdk/pull/3431) Improved resource management and connection handling (ledger devices). Fixes issue with DER vs BER signatures. * Gaia - * [\#3486](https://github.com/cosmos/cosmos-sdk/pull/3486) Use AmountOf in + * [\#3486](https://github.com/eligion/cosmos-sdk/pull/3486) Use AmountOf in vesting accounts instead of zipping/aligning denominations. @@ -2216,7 +2216,7 @@ BREAKING CHANGES * Gaia REST API (`gaiacli advanced rest-server`) * [gaia-lite] [\#2182] Renamed and merged all redelegations endpoints into `/staking/redelegations` - * [\#3176](https://github.com/cosmos/cosmos-sdk/issues/3176) `tx/sign` endpoint now expects `BaseReq` fields as nested object. + * [\#3176](https://github.com/eligion/cosmos-sdk/issues/3176) `tx/sign` endpoint now expects `BaseReq` fields as nested object. * [\#2222] all endpoints renamed from `/stake` -> `/staking` * [\#1268] `LooseTokens` -> `NotBondedTokens` * [\#3289] misc renames: @@ -2225,137 +2225,137 @@ BREAKING CHANGES * `MsgBeginUnbonding` -> `MsgUndelegate` * Gaia CLI (`gaiacli`) - * [\#810](https://github.com/cosmos/cosmos-sdk/issues/810) Don't fallback to any default values for chain ID. + * [\#810](https://github.com/eligion/cosmos-sdk/issues/810) Don't fallback to any default values for chain ID. * Users need to supply chain ID either via config file or the `--chain-id` flag. * Change `chain_id` and `trust_node` in `gaiacli` configuration to `chain-id` and `trust-node` respectively. - * [\#3069](https://github.com/cosmos/cosmos-sdk/pull/3069) `--fee` flag renamed to `--fees` to support multiple coins - * [\#3156](https://github.com/cosmos/cosmos-sdk/pull/3156) Remove unimplemented `gaiacli init` command + * [\#3069](https://github.com/eligion/cosmos-sdk/pull/3069) `--fee` flag renamed to `--fees` to support multiple coins + * [\#3156](https://github.com/eligion/cosmos-sdk/pull/3156) Remove unimplemented `gaiacli init` command * [\#2222] `gaiacli tx stake` -> `gaiacli tx staking`, `gaiacli query stake` -> `gaiacli query staking` - * [\#1894](https://github.com/cosmos/cosmos-sdk/issues/1894) `version` command now shows latest commit, vendor dir hash, and build machine info. - * [\#3320](https://github.com/cosmos/cosmos-sdk/pull/3320) Ensure all `gaiacli query` commands respect the `--output` and `--indent` flags + * [\#1894](https://github.com/eligion/cosmos-sdk/issues/1894) `version` command now shows latest commit, vendor dir hash, and build machine info. + * [\#3320](https://github.com/eligion/cosmos-sdk/pull/3320) Ensure all `gaiacli query` commands respect the `--output` and `--indent` flags * Gaia - * https://github.com/cosmos/cosmos-sdk/issues/2838 - Move store keys to constants - * [\#3162](https://github.com/cosmos/cosmos-sdk/issues/3162) The `--gas` flag now takes `auto` instead of `simulate` + * https://github.com/eligion/cosmos-sdk/issues/2838 - Move store keys to constants + * [\#3162](https://github.com/eligion/cosmos-sdk/issues/3162) The `--gas` flag now takes `auto` instead of `simulate` in order to trigger a simulation of the tx before the actual execution. - * [\#3285](https://github.com/cosmos/cosmos-sdk/pull/3285) New `gaiad tendermint version` to print libs versions - * [\#1894](https://github.com/cosmos/cosmos-sdk/pull/1894) `version` command now shows latest commit, vendor dir hash, and build machine info. - * [\#3249\(https://github.com/cosmos/cosmos-sdk/issues/3249) `tendermint`'s `show-validator` and `show-address` `--json` flags removed in favor of `--output-format=json`. + * [\#3285](https://github.com/eligion/cosmos-sdk/pull/3285) New `gaiad tendermint version` to print libs versions + * [\#1894](https://github.com/eligion/cosmos-sdk/pull/1894) `version` command now shows latest commit, vendor dir hash, and build machine info. + * [\#3249\(https://github.com/eligion/cosmos-sdk/issues/3249) `tendermint`'s `show-validator` and `show-address` `--json` flags removed in favor of `--output-format=json`. * SDK - * [distribution] [\#3359](https://github.com/cosmos/cosmos-sdk/issues/3359) Always round down when calculating rewards-to-be-withdrawn in F1 fee distribution - * [#3336](https://github.com/cosmos/cosmos-sdk/issues/3336) Ensure all SDK + * [distribution] [\#3359](https://github.com/eligion/cosmos-sdk/issues/3359) Always round down when calculating rewards-to-be-withdrawn in F1 fee distribution + * [#3336](https://github.com/eligion/cosmos-sdk/issues/3336) Ensure all SDK messages have their signature bytes contain canonical fields `value` and `type`. - * [\#3333](https://github.com/cosmos/cosmos-sdk/issues/3333) - F1 storage efficiency improvements - automatic withdrawals when unbonded, historical reward reference counting - * [staking] [\#2513](https://github.com/cosmos/cosmos-sdk/issues/2513) Validator power type from Dec -> Int - * [staking] [\#3233](https://github.com/cosmos/cosmos-sdk/issues/3233) key and value now contain duplicate fields to simplify code - * [\#3064](https://github.com/cosmos/cosmos-sdk/issues/3064) Sanitize `sdk.Coin` denom. Coins denoms are now case insensitive, i.e. 100fooToken equals to 100FOOTOKEN. - * [\#3195](https://github.com/cosmos/cosmos-sdk/issues/3195) Allows custom configuration for syncable strategy - * [\#3242](https://github.com/cosmos/cosmos-sdk/issues/3242) Fix infinite gas + * [\#3333](https://github.com/eligion/cosmos-sdk/issues/3333) - F1 storage efficiency improvements - automatic withdrawals when unbonded, historical reward reference counting + * [staking] [\#2513](https://github.com/eligion/cosmos-sdk/issues/2513) Validator power type from Dec -> Int + * [staking] [\#3233](https://github.com/eligion/cosmos-sdk/issues/3233) key and value now contain duplicate fields to simplify code + * [\#3064](https://github.com/eligion/cosmos-sdk/issues/3064) Sanitize `sdk.Coin` denom. Coins denoms are now case insensitive, i.e. 100fooToken equals to 100FOOTOKEN. + * [\#3195](https://github.com/eligion/cosmos-sdk/issues/3195) Allows custom configuration for syncable strategy + * [\#3242](https://github.com/eligion/cosmos-sdk/issues/3242) Fix infinite gas meter utilization during aborted ante handler executions. - * [x/distribution] [\#3292](https://github.com/cosmos/cosmos-sdk/issues/3292) Enable or disable withdraw addresses with a parameter in the param store - * [staking] [\#2222](https://github.com/cosmos/cosmos-sdk/issues/2222) `/stake` -> `/staking` module rename - * [staking] [\#1268](https://github.com/cosmos/cosmos-sdk/issues/1268) `LooseTokens` -> `NotBondedTokens` - * [staking] [\#1402](https://github.com/cosmos/cosmos-sdk/issues/1402) Redelegation and unbonding-delegation structs changed to include multiple an array of entries - * [staking] [\#3289](https://github.com/cosmos/cosmos-sdk/issues/3289) misc renames: + * [x/distribution] [\#3292](https://github.com/eligion/cosmos-sdk/issues/3292) Enable or disable withdraw addresses with a parameter in the param store + * [staking] [\#2222](https://github.com/eligion/cosmos-sdk/issues/2222) `/stake` -> `/staking` module rename + * [staking] [\#1268](https://github.com/eligion/cosmos-sdk/issues/1268) `LooseTokens` -> `NotBondedTokens` + * [staking] [\#1402](https://github.com/eligion/cosmos-sdk/issues/1402) Redelegation and unbonding-delegation structs changed to include multiple an array of entries + * [staking] [\#3289](https://github.com/eligion/cosmos-sdk/issues/3289) misc renames: * `Validator.UnbondingMinTime` -> `Validator.UnbondingCompletionTime` * `Delegation` -> `Value` in `MsgCreateValidator` and `MsgDelegate` * `MsgBeginUnbonding` -> `MsgUndelegate` * [\#3315] Increase decimal precision to 18 - * [\#3323](https://github.com/cosmos/cosmos-sdk/issues/3323) Update to Tendermint 0.29.0 - * [\#3328](https://github.com/cosmos/cosmos-sdk/issues/3328) [x/gov] Remove redundant action tag + * [\#3323](https://github.com/eligion/cosmos-sdk/issues/3323) Update to Tendermint 0.29.0 + * [\#3328](https://github.com/eligion/cosmos-sdk/issues/3328) [x/gov] Remove redundant action tag * Tendermint - * [\#3298](https://github.com/cosmos/cosmos-sdk/issues/3298) Upgrade to Tendermint 0.28.0 + * [\#3298](https://github.com/eligion/cosmos-sdk/issues/3298) Upgrade to Tendermint 0.28.0 FEATURES * Gaia REST API (`gaiacli advanced rest-server`) - * [\#3067](https://github.com/cosmos/cosmos-sdk/issues/3067) Add support for fees on transactions - * [\#3069](https://github.com/cosmos/cosmos-sdk/pull/3069) Add a custom memo on transactions - * [\#3027](https://github.com/cosmos/cosmos-sdk/issues/3027) Implement + * [\#3067](https://github.com/eligion/cosmos-sdk/issues/3067) Add support for fees on transactions + * [\#3069](https://github.com/eligion/cosmos-sdk/pull/3069) Add a custom memo on transactions + * [\#3027](https://github.com/eligion/cosmos-sdk/issues/3027) Implement `/gov/proposals/{proposalID}/proposer` to query for a proposal's proposer. * Gaia CLI (`gaiacli`) - * [\#2399](https://github.com/cosmos/cosmos-sdk/issues/2399) Implement `params` command to query slashing parameters. - * [\#2730](https://github.com/cosmos/cosmos-sdk/issues/2730) Add tx search pagination parameter - * [\#3027](https://github.com/cosmos/cosmos-sdk/issues/3027) Implement + * [\#2399](https://github.com/eligion/cosmos-sdk/issues/2399) Implement `params` command to query slashing parameters. + * [\#2730](https://github.com/eligion/cosmos-sdk/issues/2730) Add tx search pagination parameter + * [\#3027](https://github.com/eligion/cosmos-sdk/issues/3027) Implement `query gov proposer [proposal-id]` to query for a proposal's proposer. - * [\#3198](https://github.com/cosmos/cosmos-sdk/issues/3198) New `keys add --multisig` flag to store multisig keys locally. - * [\#3198](https://github.com/cosmos/cosmos-sdk/issues/3198) New `multisign` command to generate multisig signatures. - * [\#3198](https://github.com/cosmos/cosmos-sdk/issues/3198) New `sign --multisig` flag to enable multisig mode. - * [\#2715](https://github.com/cosmos/cosmos-sdk/issues/2715) Reintroduce gaia server's insecure mode. - * [\#3334](https://github.com/cosmos/cosmos-sdk/pull/3334) New `gaiad completion` and `gaiacli completion` to generate Bash/Zsh completion scripts. - * [\#2607](https://github.com/cosmos/cosmos-sdk/issues/2607) Make `gaiacli config` handle the boolean `indent` flag to beautify commands JSON output. + * [\#3198](https://github.com/eligion/cosmos-sdk/issues/3198) New `keys add --multisig` flag to store multisig keys locally. + * [\#3198](https://github.com/eligion/cosmos-sdk/issues/3198) New `multisign` command to generate multisig signatures. + * [\#3198](https://github.com/eligion/cosmos-sdk/issues/3198) New `sign --multisig` flag to enable multisig mode. + * [\#2715](https://github.com/eligion/cosmos-sdk/issues/2715) Reintroduce gaia server's insecure mode. + * [\#3334](https://github.com/eligion/cosmos-sdk/pull/3334) New `gaiad completion` and `gaiacli completion` to generate Bash/Zsh completion scripts. + * [\#2607](https://github.com/eligion/cosmos-sdk/issues/2607) Make `gaiacli config` handle the boolean `indent` flag to beautify commands JSON output. * Gaia * [\#2182] [x/staking] Added querier for querying a single redelegation - * [\#3305](https://github.com/cosmos/cosmos-sdk/issues/3305) Add support for + * [\#3305](https://github.com/eligion/cosmos-sdk/issues/3305) Add support for vesting accounts at genesis. - * [\#3198](https://github.com/cosmos/cosmos-sdk/issues/3198) [x/auth] Add multisig transactions support - * [\#3198](https://github.com/cosmos/cosmos-sdk/issues/3198) `add-genesis-account` can take both account addresses and key names + * [\#3198](https://github.com/eligion/cosmos-sdk/issues/3198) [x/auth] Add multisig transactions support + * [\#3198](https://github.com/eligion/cosmos-sdk/issues/3198) `add-genesis-account` can take both account addresses and key names * SDK - - [\#3099](https://github.com/cosmos/cosmos-sdk/issues/3099) Implement F1 fee distribution - - [\#2926](https://github.com/cosmos/cosmos-sdk/issues/2926) Add TxEncoder to client TxBuilder. - * [\#2694](https://github.com/cosmos/cosmos-sdk/issues/2694) Vesting account implementation. - * [\#2996](https://github.com/cosmos/cosmos-sdk/issues/2996) Update the `AccountKeeper` to contain params used in the context of + - [\#3099](https://github.com/eligion/cosmos-sdk/issues/3099) Implement F1 fee distribution + - [\#2926](https://github.com/eligion/cosmos-sdk/issues/2926) Add TxEncoder to client TxBuilder. + * [\#2694](https://github.com/eligion/cosmos-sdk/issues/2694) Vesting account implementation. + * [\#2996](https://github.com/eligion/cosmos-sdk/issues/2996) Update the `AccountKeeper` to contain params used in the context of the ante handler. - * [\#3179](https://github.com/cosmos/cosmos-sdk/pull/3179) New CodeNoSignatures error code. - * [\#3319](https://github.com/cosmos/cosmos-sdk/issues/3319) [x/distribution] Queriers for all distribution state worth querying; distribution query commands - * [\#3356](https://github.com/cosmos/cosmos-sdk/issues/3356) [x/auth] bech32-ify accounts address in error message. + * [\#3179](https://github.com/eligion/cosmos-sdk/pull/3179) New CodeNoSignatures error code. + * [\#3319](https://github.com/eligion/cosmos-sdk/issues/3319) [x/distribution] Queriers for all distribution state worth querying; distribution query commands + * [\#3356](https://github.com/eligion/cosmos-sdk/issues/3356) [x/auth] bech32-ify accounts address in error message. IMPROVEMENTS * Gaia REST API - * [\#3176](https://github.com/cosmos/cosmos-sdk/issues/3176) Validate tx/sign endpoint POST body. - * [\#2948](https://github.com/cosmos/cosmos-sdk/issues/2948) Swagger UI now makes requests to light client node + * [\#3176](https://github.com/eligion/cosmos-sdk/issues/3176) Validate tx/sign endpoint POST body. + * [\#2948](https://github.com/eligion/cosmos-sdk/issues/2948) Swagger UI now makes requests to light client node * Gaia CLI (`gaiacli`) - * [\#3224](https://github.com/cosmos/cosmos-sdk/pull/3224) Support adding offline public keys to the keystore + * [\#3224](https://github.com/eligion/cosmos-sdk/pull/3224) Support adding offline public keys to the keystore * Gaia - * [\#2186](https://github.com/cosmos/cosmos-sdk/issues/2186) Add Address Interface - * [\#3158](https://github.com/cosmos/cosmos-sdk/pull/3158) Validate slashing genesis - * [\#3172](https://github.com/cosmos/cosmos-sdk/pull/3172) Support minimum fees in a local testnet. - * [\#3250](https://github.com/cosmos/cosmos-sdk/pull/3250) Refactor integration tests and increase coverage - * [\#3248](https://github.com/cosmos/cosmos-sdk/issues/3248) Refactor tx fee + * [\#2186](https://github.com/eligion/cosmos-sdk/issues/2186) Add Address Interface + * [\#3158](https://github.com/eligion/cosmos-sdk/pull/3158) Validate slashing genesis + * [\#3172](https://github.com/eligion/cosmos-sdk/pull/3172) Support minimum fees in a local testnet. + * [\#3250](https://github.com/eligion/cosmos-sdk/pull/3250) Refactor integration tests and increase coverage + * [\#3248](https://github.com/eligion/cosmos-sdk/issues/3248) Refactor tx fee model: * Validators specify minimum gas prices instead of minimum fees * Clients may provide either fees or gas prices directly * The gas prices of a tx must meet a validator's minimum * `gaiad start` and `gaia.toml` take --minimum-gas-prices flag and minimum-gas-price config key respectively. - * [\#2859](https://github.com/cosmos/cosmos-sdk/issues/2859) Rename `TallyResult` in gov proposals to `FinalTallyResult` - * [\#3286](https://github.com/cosmos/cosmos-sdk/pull/3286) Fix `gaiad gentx` printout of account's addresses, i.e. user bech32 instead of hex. - * [\#3249\(https://github.com/cosmos/cosmos-sdk/issues/3249) `--json` flag removed, users should use `--output=json` instead. + * [\#2859](https://github.com/eligion/cosmos-sdk/issues/2859) Rename `TallyResult` in gov proposals to `FinalTallyResult` + * [\#3286](https://github.com/eligion/cosmos-sdk/pull/3286) Fix `gaiad gentx` printout of account's addresses, i.e. user bech32 instead of hex. + * [\#3249\(https://github.com/eligion/cosmos-sdk/issues/3249) `--json` flag removed, users should use `--output=json` instead. * SDK - * [\#3137](https://github.com/cosmos/cosmos-sdk/pull/3137) Add tag documentation + * [\#3137](https://github.com/eligion/cosmos-sdk/pull/3137) Add tag documentation for each module along with cleaning up a few existing tags in the governance, slashing, and staking modules. - * [\#3093](https://github.com/cosmos/cosmos-sdk/issues/3093) Ante handler does no longer read all accounts in one go when processing signatures as signature + * [\#3093](https://github.com/eligion/cosmos-sdk/issues/3093) Ante handler does no longer read all accounts in one go when processing signatures as signature verification may fail before last signature is checked. - * [staking] [\#1402](https://github.com/cosmos/cosmos-sdk/issues/1402) Add for multiple simultaneous redelegations or unbonding-delegations within an unbonding period - * [staking] [\#1268](https://github.com/cosmos/cosmos-sdk/issues/1268) staking spec rewrite + * [staking] [\#1402](https://github.com/eligion/cosmos-sdk/issues/1402) Add for multiple simultaneous redelegations or unbonding-delegations within an unbonding period + * [staking] [\#1268](https://github.com/eligion/cosmos-sdk/issues/1268) staking spec rewrite * CI - * [\#2498](https://github.com/cosmos/cosmos-sdk/issues/2498) Added macos CI job to CircleCI + * [\#2498](https://github.com/eligion/cosmos-sdk/issues/2498) Added macos CI job to CircleCI * [#142](https://github.com/tendermint/devops/issues/142) Increased the number of blocks to be tested during multi-sim * [#147](https://github.com/tendermint/devops/issues/142) Added docker image build to CI BUG FIXES * Gaia CLI (`gaiacli`) - * [\#3141](https://github.com/cosmos/cosmos-sdk/issues/3141) Fix the bug in GetAccount when `len(res) == 0` and `err == nil` - * [\#810](https://github.com/cosmos/cosmos-sdk/pull/3316) Fix regression in gaiacli config file handling + * [\#3141](https://github.com/eligion/cosmos-sdk/issues/3141) Fix the bug in GetAccount when `len(res) == 0` and `err == nil` + * [\#810](https://github.com/eligion/cosmos-sdk/pull/3316) Fix regression in gaiacli config file handling * Gaia - * [\#3148](https://github.com/cosmos/cosmos-sdk/issues/3148) Fix `gaiad export` by adding a boolean to `NewGaiaApp` determining whether or not to load the latest version - * [\#3181](https://github.com/cosmos/cosmos-sdk/issues/3181) Correctly reset total accum update height and jailed-validator bond height / unbonding height on export-for-zero-height - * [\#3172](https://github.com/cosmos/cosmos-sdk/pull/3172) Fix parsing `gaiad.toml` + * [\#3148](https://github.com/eligion/cosmos-sdk/issues/3148) Fix `gaiad export` by adding a boolean to `NewGaiaApp` determining whether or not to load the latest version + * [\#3181](https://github.com/eligion/cosmos-sdk/issues/3181) Correctly reset total accum update height and jailed-validator bond height / unbonding height on export-for-zero-height + * [\#3172](https://github.com/eligion/cosmos-sdk/pull/3172) Fix parsing `gaiad.toml` when it already exists. - * [\#3223](https://github.com/cosmos/cosmos-sdk/issues/3223) Fix unset governance proposal queues when importing state from old chain - * [#3187](https://github.com/cosmos/cosmos-sdk/issues/3187) Fix `gaiad export` + * [\#3223](https://github.com/eligion/cosmos-sdk/issues/3223) Fix unset governance proposal queues when importing state from old chain + * [#3187](https://github.com/eligion/cosmos-sdk/issues/3187) Fix `gaiad export` by resetting each validator's slashing period. ## 0.29.1 @@ -2363,17 +2363,17 @@ BUG FIXES BUG FIXES * SDK - * [\#3207](https://github.com/cosmos/cosmos-sdk/issues/3207) - Fix token printing bug + * [\#3207](https://github.com/eligion/cosmos-sdk/issues/3207) - Fix token printing bug ## 0.29.0 BREAKING CHANGES * Gaia - * [\#3148](https://github.com/cosmos/cosmos-sdk/issues/3148) Fix `gaiad export` by adding a boolean to `NewGaiaApp` determining whether or not to load the latest version + * [\#3148](https://github.com/eligion/cosmos-sdk/issues/3148) Fix `gaiad export` by adding a boolean to `NewGaiaApp` determining whether or not to load the latest version * SDK - * [\#3163](https://github.com/cosmos/cosmos-sdk/issues/3163) Withdraw commission on self bond removal + * [\#3163](https://github.com/eligion/cosmos-sdk/issues/3163) Withdraw commission on self bond removal ## 0.28.1 @@ -2381,35 +2381,35 @@ BREAKING CHANGES BREAKING CHANGES * Gaia REST API (`gaiacli advanced rest-server`) - * [lcd] [\#3045](https://github.com/cosmos/cosmos-sdk/pull/3045) Fix quoted json return on GET /keys (keys list) - * [gaia-lite] [\#2191](https://github.com/cosmos/cosmos-sdk/issues/2191) Split `POST /stake/delegators/{delegatorAddr}/delegations` into `POST /stake/delegators/{delegatorAddr}/delegations`, `POST /stake/delegators/{delegatorAddr}/unbonding_delegations` and `POST /stake/delegators/{delegatorAddr}/redelegations` - * [gaia-lite] [\#3056](https://github.com/cosmos/cosmos-sdk/pull/3056) `generate_only` and `simulate` have moved from query arguments to POST requests body. + * [lcd] [\#3045](https://github.com/eligion/cosmos-sdk/pull/3045) Fix quoted json return on GET /keys (keys list) + * [gaia-lite] [\#2191](https://github.com/eligion/cosmos-sdk/issues/2191) Split `POST /stake/delegators/{delegatorAddr}/delegations` into `POST /stake/delegators/{delegatorAddr}/delegations`, `POST /stake/delegators/{delegatorAddr}/unbonding_delegations` and `POST /stake/delegators/{delegatorAddr}/redelegations` + * [gaia-lite] [\#3056](https://github.com/eligion/cosmos-sdk/pull/3056) `generate_only` and `simulate` have moved from query arguments to POST requests body. * Tendermint * [tendermint] Now using Tendermint 0.27.3 FEATURES * Gaia REST API (`gaiacli advanced rest-server`) - * [slashing] [\#2399](https://github.com/cosmos/cosmos-sdk/issues/2399) Implement `/slashing/parameters` endpoint to query slashing parameters. + * [slashing] [\#2399](https://github.com/eligion/cosmos-sdk/issues/2399) Implement `/slashing/parameters` endpoint to query slashing parameters. * Gaia CLI (`gaiacli`) - * [gaiacli] [\#2399](https://github.com/cosmos/cosmos-sdk/issues/2399) Implement `params` command to query slashing parameters. + * [gaiacli] [\#2399](https://github.com/eligion/cosmos-sdk/issues/2399) Implement `params` command to query slashing parameters. * SDK - - [client] [\#2926](https://github.com/cosmos/cosmos-sdk/issues/2926) Add TxEncoder to client TxBuilder. + - [client] [\#2926](https://github.com/eligion/cosmos-sdk/issues/2926) Add TxEncoder to client TxBuilder. * Other - Introduced the logjack tool for saving logs w/ rotation IMPROVEMENTS * Gaia REST API (`gaiacli advanced rest-server`) - * [\#2879](https://github.com/cosmos/cosmos-sdk/issues/2879), [\#2880](https://github.com/cosmos/cosmos-sdk/issues/2880) Update deposit and vote endpoints to perform a direct txs query + * [\#2879](https://github.com/eligion/cosmos-sdk/issues/2879), [\#2880](https://github.com/eligion/cosmos-sdk/issues/2880) Update deposit and vote endpoints to perform a direct txs query when a given proposal is inactive and thus having votes and deposits removed from state. * Gaia CLI (`gaiacli`) - * [\#2879](https://github.com/cosmos/cosmos-sdk/issues/2879), [\#2880](https://github.com/cosmos/cosmos-sdk/issues/2880) Update deposit and vote CLI commands to perform a direct txs query + * [\#2879](https://github.com/eligion/cosmos-sdk/issues/2879), [\#2880](https://github.com/eligion/cosmos-sdk/issues/2880) Update deposit and vote CLI commands to perform a direct txs query when a given proposal is inactive and thus having votes and deposits removed from state. * Gaia - * [\#3021](https://github.com/cosmos/cosmos-sdk/pull/3021) Add `--gentx-dir` to `gaiad collect-gentxs` to specify a directory from which collect and load gentxs. Add `--output-document` to `gaiad init` to allow one to redirect output to file. + * [\#3021](https://github.com/eligion/cosmos-sdk/pull/3021) Add `--gentx-dir` to `gaiad collect-gentxs` to specify a directory from which collect and load gentxs. Add `--output-document` to `gaiad init` to allow one to redirect output to file. ## 0.28.0 @@ -2417,54 +2417,54 @@ IMPROVEMENTS BREAKING CHANGES * Gaia CLI (`gaiacli`) - * [cli] [\#2595](https://github.com/cosmos/cosmos-sdk/issues/2595) Remove `keys new` in favor of `keys add` incorporating existing functionality with addition of key recovery functionality. - * [cli] [\#2987](https://github.com/cosmos/cosmos-sdk/pull/2987) Add shorthand `-a` to `gaiacli keys show` and update docs - * [cli] [\#2971](https://github.com/cosmos/cosmos-sdk/pull/2971) Additional verification when running `gaiad gentx` - * [cli] [\#2734](https://github.com/cosmos/cosmos-sdk/issues/2734) Rewrite `gaiacli config`. It is now a non-interactive config utility. + * [cli] [\#2595](https://github.com/eligion/cosmos-sdk/issues/2595) Remove `keys new` in favor of `keys add` incorporating existing functionality with addition of key recovery functionality. + * [cli] [\#2987](https://github.com/eligion/cosmos-sdk/pull/2987) Add shorthand `-a` to `gaiacli keys show` and update docs + * [cli] [\#2971](https://github.com/eligion/cosmos-sdk/pull/2971) Additional verification when running `gaiad gentx` + * [cli] [\#2734](https://github.com/eligion/cosmos-sdk/issues/2734) Rewrite `gaiacli config`. It is now a non-interactive config utility. * Gaia * [#128](https://github.com/tendermint/devops/issues/128) Updated CircleCI job to trigger website build on every push to master/develop. - * [\#2994](https://github.com/cosmos/cosmos-sdk/pull/2994) Change wrong-password error message. - * [\#3009](https://github.com/cosmos/cosmos-sdk/issues/3009) Added missing Gaia genesis verification + * [\#2994](https://github.com/eligion/cosmos-sdk/pull/2994) Change wrong-password error message. + * [\#3009](https://github.com/eligion/cosmos-sdk/issues/3009) Added missing Gaia genesis verification * [#128](https://github.com/tendermint/devops/issues/128) Updated CircleCI job to trigger website build on every push to master/develop. - * [\#2994](https://github.com/cosmos/cosmos-sdk/pull/2994) Change wrong-password error message. - * [\#3009](https://github.com/cosmos/cosmos-sdk/issues/3009) Added missing Gaia genesis verification - * [gas] [\#3052](https://github.com/cosmos/cosmos-sdk/issues/3052) Updated gas costs to more reasonable numbers + * [\#2994](https://github.com/eligion/cosmos-sdk/pull/2994) Change wrong-password error message. + * [\#3009](https://github.com/eligion/cosmos-sdk/issues/3009) Added missing Gaia genesis verification + * [gas] [\#3052](https://github.com/eligion/cosmos-sdk/issues/3052) Updated gas costs to more reasonable numbers * SDK - * [auth] [\#2952](https://github.com/cosmos/cosmos-sdk/issues/2952) Signatures are no longer serialized on chain with the account number and sequence number - * [auth] [\#2952](https://github.com/cosmos/cosmos-sdk/issues/2952) Signatures are no longer serialized on chain with the account number and sequence number - * [stake] [\#3055](https://github.com/cosmos/cosmos-sdk/issues/3055) Use address instead of bond height / intratxcounter for deduplication + * [auth] [\#2952](https://github.com/eligion/cosmos-sdk/issues/2952) Signatures are no longer serialized on chain with the account number and sequence number + * [auth] [\#2952](https://github.com/eligion/cosmos-sdk/issues/2952) Signatures are no longer serialized on chain with the account number and sequence number + * [stake] [\#3055](https://github.com/eligion/cosmos-sdk/issues/3055) Use address instead of bond height / intratxcounter for deduplication FEATURES * Gaia CLI (`gaiacli`) - * [\#2961](https://github.com/cosmos/cosmos-sdk/issues/2961) Add --force flag to gaiacli keys delete command to skip passphrase check and force key deletion unconditionally. + * [\#2961](https://github.com/eligion/cosmos-sdk/issues/2961) Add --force flag to gaiacli keys delete command to skip passphrase check and force key deletion unconditionally. IMPROVEMENTS * Gaia CLI (`gaiacli`) - * [\#2991](https://github.com/cosmos/cosmos-sdk/issues/2991) Fully validate transaction signatures during `gaiacli tx sign --validate-signatures` + * [\#2991](https://github.com/eligion/cosmos-sdk/issues/2991) Fully validate transaction signatures during `gaiacli tx sign --validate-signatures` * SDK - * [\#1277](https://github.com/cosmos/cosmos-sdk/issues/1277) Complete bank module specification - * [\#2963](https://github.com/cosmos/cosmos-sdk/issues/2963) Complete auth module specification - * [\#2914](https://github.com/cosmos/cosmos-sdk/issues/2914) No longer withdraw validator rewards on bond/unbond, but rather move + * [\#1277](https://github.com/eligion/cosmos-sdk/issues/1277) Complete bank module specification + * [\#2963](https://github.com/eligion/cosmos-sdk/issues/2963) Complete auth module specification + * [\#2914](https://github.com/eligion/cosmos-sdk/issues/2914) No longer withdraw validator rewards on bond/unbond, but rather move the rewards to the respective validator's pools. BUG FIXES * Gaia CLI (`gaiacli`) - * [\#2921](https://github.com/cosmos/cosmos-sdk/issues/2921) Fix `keys delete` inability to delete offline and ledger keys. + * [\#2921](https://github.com/eligion/cosmos-sdk/issues/2921) Fix `keys delete` inability to delete offline and ledger keys. * Gaia - * [\#3003](https://github.com/cosmos/cosmos-sdk/issues/3003) CollectStdTxs() must validate DelegatorAddr against genesis accounts. + * [\#3003](https://github.com/eligion/cosmos-sdk/issues/3003) CollectStdTxs() must validate DelegatorAddr against genesis accounts. * SDK - * [\#2967](https://github.com/cosmos/cosmos-sdk/issues/2967) Change ordering of `mint.BeginBlocker` and `distr.BeginBlocker`, recalculate inflation each block - * [\#3068](https://github.com/cosmos/cosmos-sdk/issues/3068) check for uint64 gas overflow during `Std#ValidateBasic`. - * [\#3071](https://github.com/cosmos/cosmos-sdk/issues/3071) Catch overflow on block gas meter + * [\#2967](https://github.com/eligion/cosmos-sdk/issues/2967) Change ordering of `mint.BeginBlocker` and `distr.BeginBlocker`, recalculate inflation each block + * [\#3068](https://github.com/eligion/cosmos-sdk/issues/3068) check for uint64 gas overflow during `Std#ValidateBasic`. + * [\#3071](https://github.com/eligion/cosmos-sdk/issues/3071) Catch overflow on block gas meter ## 0.27.0 @@ -2472,27 +2472,27 @@ BUG FIXES BREAKING CHANGES * Gaia REST API (`gaiacli advanced rest-server`) - * [gaia-lite] [\#2819](https://github.com/cosmos/cosmos-sdk/pull/2819) Txs query param format is now: `/txs?tag=value` (removed '' wrapping the query parameter `value`) + * [gaia-lite] [\#2819](https://github.com/eligion/cosmos-sdk/pull/2819) Txs query param format is now: `/txs?tag=value` (removed '' wrapping the query parameter `value`) * Gaia CLI (`gaiacli`) - * [cli] [\#2728](https://github.com/cosmos/cosmos-sdk/pull/2728) Seperate `tx` and `query` subcommands by module - * [cli] [\#2727](https://github.com/cosmos/cosmos-sdk/pull/2727) Fix unbonding command flow - * [cli] [\#2786](https://github.com/cosmos/cosmos-sdk/pull/2786) Fix redelegation command flow - * [cli] [\#2829](https://github.com/cosmos/cosmos-sdk/pull/2829) add-genesis-account command now validates state when adding accounts - * [cli] [\#2804](https://github.com/cosmos/cosmos-sdk/issues/2804) Check whether key exists before passing it on to `tx create-validator`. - * [cli] [\#2874](https://github.com/cosmos/cosmos-sdk/pull/2874) `gaiacli tx sign` takes an optional `--output-document` flag to support output redirection. - * [cli] [\#2875](https://github.com/cosmos/cosmos-sdk/pull/2875) Refactor `gaiad gentx` and avoid redirection to `gaiacli tx sign` for tx signing. + * [cli] [\#2728](https://github.com/eligion/cosmos-sdk/pull/2728) Seperate `tx` and `query` subcommands by module + * [cli] [\#2727](https://github.com/eligion/cosmos-sdk/pull/2727) Fix unbonding command flow + * [cli] [\#2786](https://github.com/eligion/cosmos-sdk/pull/2786) Fix redelegation command flow + * [cli] [\#2829](https://github.com/eligion/cosmos-sdk/pull/2829) add-genesis-account command now validates state when adding accounts + * [cli] [\#2804](https://github.com/eligion/cosmos-sdk/issues/2804) Check whether key exists before passing it on to `tx create-validator`. + * [cli] [\#2874](https://github.com/eligion/cosmos-sdk/pull/2874) `gaiacli tx sign` takes an optional `--output-document` flag to support output redirection. + * [cli] [\#2875](https://github.com/eligion/cosmos-sdk/pull/2875) Refactor `gaiad gentx` and avoid redirection to `gaiacli tx sign` for tx signing. * Gaia * [mint] [\#2825] minting now occurs every block, inflation parameter updates still hourly * SDK - * [\#2752](https://github.com/cosmos/cosmos-sdk/pull/2752) Don't hardcode bondable denom. - * [\#2701](https://github.com/cosmos/cosmos-sdk/issues/2701) Account numbers and sequence numbers in `auth` are now `uint64` instead of `int64` - * [\#2019](https://github.com/cosmos/cosmos-sdk/issues/2019) Cap total number of signatures. Current per-transaction limit is 7, and if that is exceeded transaction is rejected. - * [\#2801](https://github.com/cosmos/cosmos-sdk/pull/2801) Remove AppInit structure. - * [\#2798](https://github.com/cosmos/cosmos-sdk/issues/2798) Governance API has miss-spelled English word in JSON response ('depositer' -> 'depositor') - * [\#2943](https://github.com/cosmos/cosmos-sdk/pull/2943) Transaction action tags equal the message type. Staking EndBlocker tags are included. + * [\#2752](https://github.com/eligion/cosmos-sdk/pull/2752) Don't hardcode bondable denom. + * [\#2701](https://github.com/eligion/cosmos-sdk/issues/2701) Account numbers and sequence numbers in `auth` are now `uint64` instead of `int64` + * [\#2019](https://github.com/eligion/cosmos-sdk/issues/2019) Cap total number of signatures. Current per-transaction limit is 7, and if that is exceeded transaction is rejected. + * [\#2801](https://github.com/eligion/cosmos-sdk/pull/2801) Remove AppInit structure. + * [\#2798](https://github.com/eligion/cosmos-sdk/issues/2798) Governance API has miss-spelled English word in JSON response ('depositer' -> 'depositor') + * [\#2943](https://github.com/eligion/cosmos-sdk/pull/2943) Transaction action tags equal the message type. Staking EndBlocker tags are included. * Tendermint * Update to Tendermint 0.27.0 @@ -2500,76 +2500,76 @@ BREAKING CHANGES FEATURES * Gaia REST API (`gaiacli advanced rest-server`) - * [gov] [\#2479](https://github.com/cosmos/cosmos-sdk/issues/2479) Added governance parameter + * [gov] [\#2479](https://github.com/eligion/cosmos-sdk/issues/2479) Added governance parameter query REST endpoints. * Gaia CLI (`gaiacli`) - * [gov][cli] [\#2479](https://github.com/cosmos/cosmos-sdk/issues/2479) Added governance + * [gov][cli] [\#2479](https://github.com/eligion/cosmos-sdk/issues/2479) Added governance parameter query commands. * [stake][cli] [\#2027] Add CLI query command for getting all delegations to a specific validator. - * [\#2840](https://github.com/cosmos/cosmos-sdk/pull/2840) Standardize CLI exports from modules + * [\#2840](https://github.com/eligion/cosmos-sdk/pull/2840) Standardize CLI exports from modules * Gaia - * [app] [\#2791](https://github.com/cosmos/cosmos-sdk/issues/2791) Support export at a specific height, with `gaiad export --height=HEIGHT`. - * [x/gov] [#2479](https://github.com/cosmos/cosmos-sdk/issues/2479) Implemented querier + * [app] [\#2791](https://github.com/eligion/cosmos-sdk/issues/2791) Support export at a specific height, with `gaiad export --height=HEIGHT`. + * [x/gov] [#2479](https://github.com/eligion/cosmos-sdk/issues/2479) Implemented querier for getting governance parameters. - * [app] [\#2663](https://github.com/cosmos/cosmos-sdk/issues/2663) - Runtime-assertable invariants - * [app] [\#2791](https://github.com/cosmos/cosmos-sdk/issues/2791) Support export at a specific height, with `gaiad export --height=HEIGHT`. - * [app] [\#2812](https://github.com/cosmos/cosmos-sdk/issues/2812) Support export alterations to prepare for restarting at zero-height + * [app] [\#2663](https://github.com/eligion/cosmos-sdk/issues/2663) - Runtime-assertable invariants + * [app] [\#2791](https://github.com/eligion/cosmos-sdk/issues/2791) Support export at a specific height, with `gaiad export --height=HEIGHT`. + * [app] [\#2812](https://github.com/eligion/cosmos-sdk/issues/2812) Support export alterations to prepare for restarting at zero-height * SDK - * [simulator] [\#2682](https://github.com/cosmos/cosmos-sdk/issues/2682) MsgEditValidator now looks at the validator's max rate, thus it now succeeds a significant portion of the time - * [core] [\#2775](https://github.com/cosmos/cosmos-sdk/issues/2775) Add deliverTx maximum block gas limit + * [simulator] [\#2682](https://github.com/eligion/cosmos-sdk/issues/2682) MsgEditValidator now looks at the validator's max rate, thus it now succeeds a significant portion of the time + * [core] [\#2775](https://github.com/eligion/cosmos-sdk/issues/2775) Add deliverTx maximum block gas limit IMPROVEMENTS * Gaia REST API (`gaiacli advanced rest-server`) - * [gaia-lite] [\#2819](https://github.com/cosmos/cosmos-sdk/pull/2819) Tx search now supports multiple tags as query parameters - * [\#2836](https://github.com/cosmos/cosmos-sdk/pull/2836) Expose LCD router to allow users to register routes there. + * [gaia-lite] [\#2819](https://github.com/eligion/cosmos-sdk/pull/2819) Tx search now supports multiple tags as query parameters + * [\#2836](https://github.com/eligion/cosmos-sdk/pull/2836) Expose LCD router to allow users to register routes there. * Gaia CLI (`gaiacli`) - * [\#2749](https://github.com/cosmos/cosmos-sdk/pull/2749) Add --chain-id flag to gaiad testnet - * [\#2819](https://github.com/cosmos/cosmos-sdk/pull/2819) Tx search now supports multiple tags as query parameters + * [\#2749](https://github.com/eligion/cosmos-sdk/pull/2749) Add --chain-id flag to gaiad testnet + * [\#2819](https://github.com/eligion/cosmos-sdk/pull/2819) Tx search now supports multiple tags as query parameters * Gaia - * [\#2772](https://github.com/cosmos/cosmos-sdk/issues/2772) Update BaseApp to not persist state when the ante handler fails on DeliverTx. - * [\#2773](https://github.com/cosmos/cosmos-sdk/issues/2773) Require moniker to be provided on `gaiad init`. - * [\#2672](https://github.com/cosmos/cosmos-sdk/issues/2672) [Makefile] Updated for better Windows compatibility and ledger support logic, get_tools was rewritten as a cross-compatible Makefile. - * [\#2766](https://github.com/cosmos/cosmos-sdk/issues/2766) [Makefile] Added goimports tool to get_tools. Get_tools now only builds new versions if binaries are missing. + * [\#2772](https://github.com/eligion/cosmos-sdk/issues/2772) Update BaseApp to not persist state when the ante handler fails on DeliverTx. + * [\#2773](https://github.com/eligion/cosmos-sdk/issues/2773) Require moniker to be provided on `gaiad init`. + * [\#2672](https://github.com/eligion/cosmos-sdk/issues/2672) [Makefile] Updated for better Windows compatibility and ledger support logic, get_tools was rewritten as a cross-compatible Makefile. + * [\#2766](https://github.com/eligion/cosmos-sdk/issues/2766) [Makefile] Added goimports tool to get_tools. Get_tools now only builds new versions if binaries are missing. * [#110](https://github.com/tendermint/devops/issues/110) Updated CircleCI job to trigger website build when cosmos docs are updated. * SDK & [x/mock/simulation] [\#2720] major cleanup, introduction of helper objects, reorganization - * [\#2821](https://github.com/cosmos/cosmos-sdk/issues/2821) Codespaces are now strings - * [types] [\#2776](https://github.com/cosmos/cosmos-sdk/issues/2776) Improve safety of `Coin` and `Coins` types. Various functions + * [\#2821](https://github.com/eligion/cosmos-sdk/issues/2821) Codespaces are now strings + * [types] [\#2776](https://github.com/eligion/cosmos-sdk/issues/2776) Improve safety of `Coin` and `Coins` types. Various functions and methods will panic when a negative amount is discovered. - * [\#2815](https://github.com/cosmos/cosmos-sdk/issues/2815) Gas unit fields changed from `int64` to `uint64`. - * [\#2821](https://github.com/cosmos/cosmos-sdk/issues/2821) Codespaces are now strings - * [\#2779](https://github.com/cosmos/cosmos-sdk/issues/2779) Introduce `ValidateBasic` to the `Tx` interface and call it in the ante + * [\#2815](https://github.com/eligion/cosmos-sdk/issues/2815) Gas unit fields changed from `int64` to `uint64`. + * [\#2821](https://github.com/eligion/cosmos-sdk/issues/2821) Codespaces are now strings + * [\#2779](https://github.com/eligion/cosmos-sdk/issues/2779) Introduce `ValidateBasic` to the `Tx` interface and call it in the ante handler. - * [\#2825](https://github.com/cosmos/cosmos-sdk/issues/2825) More staking and distribution invariants - * [\#2912](https://github.com/cosmos/cosmos-sdk/issues/2912) Print commit ID in hex when commit is synced. + * [\#2825](https://github.com/eligion/cosmos-sdk/issues/2825) More staking and distribution invariants + * [\#2912](https://github.com/eligion/cosmos-sdk/issues/2912) Print commit ID in hex when commit is synced. * Tendermint - * [\#2796](https://github.com/cosmos/cosmos-sdk/issues/2796) Update to go-amino 0.14.1 + * [\#2796](https://github.com/eligion/cosmos-sdk/issues/2796) Update to go-amino 0.14.1 BUG FIXES * Gaia REST API (`gaiacli advanced rest-server`) - * [gaia-lite] [\#2868](https://github.com/cosmos/cosmos-sdk/issues/2868) Added handler for governance tally endpoint - * [\#2907](https://github.com/cosmos/cosmos-sdk/issues/2907) Refactor and fix the way Gaia Lite is started. + * [gaia-lite] [\#2868](https://github.com/eligion/cosmos-sdk/issues/2868) Added handler for governance tally endpoint + * [\#2907](https://github.com/eligion/cosmos-sdk/issues/2907) Refactor and fix the way Gaia Lite is started. * Gaia * [\#2723] Use `cosmosvalcons` Bech32 prefix in `tendermint show-address` - * [\#2742](https://github.com/cosmos/cosmos-sdk/issues/2742) Fix time format of TimeoutCommit override - * [\#2898](https://github.com/cosmos/cosmos-sdk/issues/2898) Remove redundant '$' in docker-compose.yml + * [\#2742](https://github.com/eligion/cosmos-sdk/issues/2742) Fix time format of TimeoutCommit override + * [\#2898](https://github.com/eligion/cosmos-sdk/issues/2898) Remove redundant '$' in docker-compose.yml * SDK - * [\#2733](https://github.com/cosmos/cosmos-sdk/issues/2733) [x/gov, x/mock/simulation] Fix governance simulation, update x/gov import/export - * [\#2854](https://github.com/cosmos/cosmos-sdk/issues/2854) [x/bank] Remove unused bank.MsgIssue, prevent possible panic - * [\#2884](https://github.com/cosmos/cosmos-sdk/issues/2884) [docs/examples] Fix `basecli version` panic + * [\#2733](https://github.com/eligion/cosmos-sdk/issues/2733) [x/gov, x/mock/simulation] Fix governance simulation, update x/gov import/export + * [\#2854](https://github.com/eligion/cosmos-sdk/issues/2854) [x/bank] Remove unused bank.MsgIssue, prevent possible panic + * [\#2884](https://github.com/eligion/cosmos-sdk/issues/2884) [docs/examples] Fix `basecli version` panic * Tendermint * [\#2797](https://github.com/tendermint/tendermint/pull/2797) AddressBook requires addresses to have IDs; Do not crap out immediately after sending pex addrs in seed mode @@ -2579,10 +2579,10 @@ BUG FIXES BREAKING CHANGES * Gaia - * [gaiad init] [\#2602](https://github.com/cosmos/cosmos-sdk/issues/2602) New genesis workflow + * [gaiad init] [\#2602](https://github.com/eligion/cosmos-sdk/issues/2602) New genesis workflow * SDK - * [simulation] [\#2665](https://github.com/cosmos/cosmos-sdk/issues/2665) only argument to sdk.Invariant is now app + * [simulation] [\#2665](https://github.com/eligion/cosmos-sdk/issues/2665) only argument to sdk.Invariant is now app * Tendermint * Upgrade to version 0.26.0 @@ -2590,45 +2590,45 @@ BREAKING CHANGES FEATURES * Gaia CLI (`gaiacli`) - * [cli] [\#2569](https://github.com/cosmos/cosmos-sdk/pull/2569) Add commands to query validator unbondings and redelegations - * [cli] [\#2569](https://github.com/cosmos/cosmos-sdk/pull/2569) Add commands to query validator unbondings and redelegations - * [cli] [\#2524](https://github.com/cosmos/cosmos-sdk/issues/2524) Add support offline mode to `gaiacli tx sign`. Lookups are not performed if the flag `--offline` is on. - * [cli] [\#2558](https://github.com/cosmos/cosmos-sdk/issues/2558) Rename --print-sigs to --validate-signatures. It now performs a complete set of sanity checks and reports to the user. Also added --print-signature-only to print the signature only, not the whole transaction. - * [cli] [\#2704](https://github.com/cosmos/cosmos-sdk/pull/2704) New add-genesis-account convenience command to populate genesis.json with genesis accounts. + * [cli] [\#2569](https://github.com/eligion/cosmos-sdk/pull/2569) Add commands to query validator unbondings and redelegations + * [cli] [\#2569](https://github.com/eligion/cosmos-sdk/pull/2569) Add commands to query validator unbondings and redelegations + * [cli] [\#2524](https://github.com/eligion/cosmos-sdk/issues/2524) Add support offline mode to `gaiacli tx sign`. Lookups are not performed if the flag `--offline` is on. + * [cli] [\#2558](https://github.com/eligion/cosmos-sdk/issues/2558) Rename --print-sigs to --validate-signatures. It now performs a complete set of sanity checks and reports to the user. Also added --print-signature-only to print the signature only, not the whole transaction. + * [cli] [\#2704](https://github.com/eligion/cosmos-sdk/pull/2704) New add-genesis-account convenience command to populate genesis.json with genesis accounts. * SDK - * [\#1336](https://github.com/cosmos/cosmos-sdk/issues/1336) Mechanism for SDK Users to configure their own Bech32 prefixes instead of using the default cosmos prefixes. + * [\#1336](https://github.com/eligion/cosmos-sdk/issues/1336) Mechanism for SDK Users to configure their own Bech32 prefixes instead of using the default cosmos prefixes. IMPROVEMENTS * Gaia - * [\#2637](https://github.com/cosmos/cosmos-sdk/issues/2637) [x/gov] Switched inactive and active proposal queues to an iterator based queue + * [\#2637](https://github.com/eligion/cosmos-sdk/issues/2637) [x/gov] Switched inactive and active proposal queues to an iterator based queue * SDK - * [\#2573](https://github.com/cosmos/cosmos-sdk/issues/2573) [x/distribution] add accum invariance - * [\#2556](https://github.com/cosmos/cosmos-sdk/issues/2556) [x/mock/simulation] Fix debugging output - * [\#2396](https://github.com/cosmos/cosmos-sdk/issues/2396) [x/mock/simulation] Change parameters to get more slashes - * [\#2617](https://github.com/cosmos/cosmos-sdk/issues/2617) [x/mock/simulation] Randomize all genesis parameters - * [\#2669](https://github.com/cosmos/cosmos-sdk/issues/2669) [x/stake] Added invarant check to make sure validator's power aligns with its spot in the power store. - * [\#1924](https://github.com/cosmos/cosmos-sdk/issues/1924) [x/mock/simulation] Use a transition matrix for block size - * [\#2660](https://github.com/cosmos/cosmos-sdk/issues/2660) [x/mock/simulation] Staking transactions get tested far more frequently - * [\#2610](https://github.com/cosmos/cosmos-sdk/issues/2610) [x/stake] Block redelegation to and from the same validator - * [\#2652](https://github.com/cosmos/cosmos-sdk/issues/2652) [x/auth] Add benchmark for get and set account - * [\#2685](https://github.com/cosmos/cosmos-sdk/issues/2685) [store] Add general merkle absence proof (also for empty substores) - * [\#2708](https://github.com/cosmos/cosmos-sdk/issues/2708) [store] Disallow setting nil values + * [\#2573](https://github.com/eligion/cosmos-sdk/issues/2573) [x/distribution] add accum invariance + * [\#2556](https://github.com/eligion/cosmos-sdk/issues/2556) [x/mock/simulation] Fix debugging output + * [\#2396](https://github.com/eligion/cosmos-sdk/issues/2396) [x/mock/simulation] Change parameters to get more slashes + * [\#2617](https://github.com/eligion/cosmos-sdk/issues/2617) [x/mock/simulation] Randomize all genesis parameters + * [\#2669](https://github.com/eligion/cosmos-sdk/issues/2669) [x/stake] Added invarant check to make sure validator's power aligns with its spot in the power store. + * [\#1924](https://github.com/eligion/cosmos-sdk/issues/1924) [x/mock/simulation] Use a transition matrix for block size + * [\#2660](https://github.com/eligion/cosmos-sdk/issues/2660) [x/mock/simulation] Staking transactions get tested far more frequently + * [\#2610](https://github.com/eligion/cosmos-sdk/issues/2610) [x/stake] Block redelegation to and from the same validator + * [\#2652](https://github.com/eligion/cosmos-sdk/issues/2652) [x/auth] Add benchmark for get and set account + * [\#2685](https://github.com/eligion/cosmos-sdk/issues/2685) [store] Add general merkle absence proof (also for empty substores) + * [\#2708](https://github.com/eligion/cosmos-sdk/issues/2708) [store] Disallow setting nil values BUG FIXES * Gaia - * [\#2670](https://github.com/cosmos/cosmos-sdk/issues/2670) [x/stake] fixed incorrect `IterateBondedValidators` and split into two functions: `IterateBondedValidators` and `IterateLastBlockConsValidators` - * [\#2691](https://github.com/cosmos/cosmos-sdk/issues/2691) Fix local testnet creation by using a single canonical genesis time - * [\#2648](https://github.com/cosmos/cosmos-sdk/issues/2648) [gaiad] Fix `gaiad export` / `gaiad import` consistency, test in CI + * [\#2670](https://github.com/eligion/cosmos-sdk/issues/2670) [x/stake] fixed incorrect `IterateBondedValidators` and split into two functions: `IterateBondedValidators` and `IterateLastBlockConsValidators` + * [\#2691](https://github.com/eligion/cosmos-sdk/issues/2691) Fix local testnet creation by using a single canonical genesis time + * [\#2648](https://github.com/eligion/cosmos-sdk/issues/2648) [gaiad] Fix `gaiad export` / `gaiad import` consistency, test in CI * SDK - * [\#2625](https://github.com/cosmos/cosmos-sdk/issues/2625) [x/gov] fix AppendTag function usage error - * [\#2677](https://github.com/cosmos/cosmos-sdk/issues/2677) [x/stake, x/distribution] various staking/distribution fixes as found by the simulator - * [\#2674](https://github.com/cosmos/cosmos-sdk/issues/2674) [types] Fix coin.IsLT() impl, coins.IsLT() impl, and renamed coins.Is\* to coins.IsAll\* (see [\#2686](https://github.com/cosmos/cosmos-sdk/issues/2686)) - * [\#2711](https://github.com/cosmos/cosmos-sdk/issues/2711) [x/stake] Add commission data to `MsgCreateValidator` signature bytes. + * [\#2625](https://github.com/eligion/cosmos-sdk/issues/2625) [x/gov] fix AppendTag function usage error + * [\#2677](https://github.com/eligion/cosmos-sdk/issues/2677) [x/stake, x/distribution] various staking/distribution fixes as found by the simulator + * [\#2674](https://github.com/eligion/cosmos-sdk/issues/2674) [types] Fix coin.IsLT() impl, coins.IsLT() impl, and renamed coins.Is\* to coins.IsAll\* (see [\#2686](https://github.com/eligion/cosmos-sdk/issues/2686)) + * [\#2711](https://github.com/eligion/cosmos-sdk/issues/2711) [x/stake] Add commission data to `MsgCreateValidator` signature bytes. * Temporarily disable insecure mode for Gaia Lite ## 0.25.0 @@ -2639,50 +2639,50 @@ BREAKING CHANGES * Gaia REST API (`gaiacli advanced rest-server`) * [x/stake] Validator.Owner renamed to Validator.Operator - * [\#595](https://github.com/cosmos/cosmos-sdk/issues/595) Connections to the REST server are now secured using Transport Layer Security by default. The --insecure flag is provided to switch back to insecure HTTP. - * [gaia-lite] [\#2258](https://github.com/cosmos/cosmos-sdk/issues/2258) Split `GET stake/delegators/{delegatorAddr}` into `GET stake/delegators/{delegatorAddr}/delegations`, `GET stake/delegators/{delegatorAddr}/unbonding_delegations` and `GET stake/delegators/{delegatorAddr}/redelegations` + * [\#595](https://github.com/eligion/cosmos-sdk/issues/595) Connections to the REST server are now secured using Transport Layer Security by default. The --insecure flag is provided to switch back to insecure HTTP. + * [gaia-lite] [\#2258](https://github.com/eligion/cosmos-sdk/issues/2258) Split `GET stake/delegators/{delegatorAddr}` into `GET stake/delegators/{delegatorAddr}/delegations`, `GET stake/delegators/{delegatorAddr}/unbonding_delegations` and `GET stake/delegators/{delegatorAddr}/redelegations` * Gaia CLI (`gaiacli`) * [x/stake] Validator.Owner renamed to Validator.Operator * [cli] unsafe_reset_all, show_validator, and show_node_id have been renamed to unsafe-reset-all, show-validator, and show-node-id - * [cli] [\#1983](https://github.com/cosmos/cosmos-sdk/issues/1983) --print-response now defaults to true in commands that create and send a transaction - * [cli] [\#1983](https://github.com/cosmos/cosmos-sdk/issues/1983) you can now pass --pubkey or --address to gaiacli keys show to return a plaintext representation of the key's address or public key for use with other commands - * [cli] [\#2061](https://github.com/cosmos/cosmos-sdk/issues/2061) changed proposalID in governance REST endpoints to proposal-id - * [cli] [\#2014](https://github.com/cosmos/cosmos-sdk/issues/2014) `gaiacli advanced` no longer exists - to access `ibc`, `rest-server`, and `validator-set` commands use `gaiacli ibc`, `gaiacli rest-server`, and `gaiacli tendermint`, respectively - * [makefile] `get_vendor_deps` no longer updates lock file it just updates vendor directory. Use `update_vendor_deps` to update the lock file. [#2152](https://github.com/cosmos/cosmos-sdk/pull/2152) - * [cli] [\#2221](https://github.com/cosmos/cosmos-sdk/issues/2221) All commands that + * [cli] [\#1983](https://github.com/eligion/cosmos-sdk/issues/1983) --print-response now defaults to true in commands that create and send a transaction + * [cli] [\#1983](https://github.com/eligion/cosmos-sdk/issues/1983) you can now pass --pubkey or --address to gaiacli keys show to return a plaintext representation of the key's address or public key for use with other commands + * [cli] [\#2061](https://github.com/eligion/cosmos-sdk/issues/2061) changed proposalID in governance REST endpoints to proposal-id + * [cli] [\#2014](https://github.com/eligion/cosmos-sdk/issues/2014) `gaiacli advanced` no longer exists - to access `ibc`, `rest-server`, and `validator-set` commands use `gaiacli ibc`, `gaiacli rest-server`, and `gaiacli tendermint`, respectively + * [makefile] `get_vendor_deps` no longer updates lock file it just updates vendor directory. Use `update_vendor_deps` to update the lock file. [#2152](https://github.com/eligion/cosmos-sdk/pull/2152) + * [cli] [\#2221](https://github.com/eligion/cosmos-sdk/issues/2221) All commands that utilize a validator's operator address must now use the new Bech32 prefix, `cosmosvaloper`. - * [cli] [\#2190](https://github.com/cosmos/cosmos-sdk/issues/2190) `gaiacli init --gen-txs` is now `gaiacli init --with-txs` to reduce confusion - * [cli] [\#2073](https://github.com/cosmos/cosmos-sdk/issues/2073) --from can now be either an address or a key name - * [cli] [\#1184](https://github.com/cosmos/cosmos-sdk/issues/1184) Subcommands reorganisation, see [\#2390](https://github.com/cosmos/cosmos-sdk/pull/2390) for a comprehensive list of changes. - * [cli] [\#2524](https://github.com/cosmos/cosmos-sdk/issues/2524) Add support offline mode to `gaiacli tx sign`. Lookups are not performed if the flag `--offline` is on. - * [cli] [\#2570](https://github.com/cosmos/cosmos-sdk/pull/2570) Add commands to query deposits on proposals + * [cli] [\#2190](https://github.com/eligion/cosmos-sdk/issues/2190) `gaiacli init --gen-txs` is now `gaiacli init --with-txs` to reduce confusion + * [cli] [\#2073](https://github.com/eligion/cosmos-sdk/issues/2073) --from can now be either an address or a key name + * [cli] [\#1184](https://github.com/eligion/cosmos-sdk/issues/1184) Subcommands reorganisation, see [\#2390](https://github.com/eligion/cosmos-sdk/pull/2390) for a comprehensive list of changes. + * [cli] [\#2524](https://github.com/eligion/cosmos-sdk/issues/2524) Add support offline mode to `gaiacli tx sign`. Lookups are not performed if the flag `--offline` is on. + * [cli] [\#2570](https://github.com/eligion/cosmos-sdk/pull/2570) Add commands to query deposits on proposals * Gaia - * Make the transient store key use a distinct store key. [#2013](https://github.com/cosmos/cosmos-sdk/pull/2013) - * [x/stake] [\#1901](https://github.com/cosmos/cosmos-sdk/issues/1901) Validator type's Owner field renamed to Operator; Validator's GetOwner() renamed accordingly to comply with the SDK's Validator interface. - * [docs] [#2001](https://github.com/cosmos/cosmos-sdk/pull/2001) Update slashing spec for slashing period - * [x/stake, x/slashing] [#1305](https://github.com/cosmos/cosmos-sdk/issues/1305) - Rename "revoked" to "jailed" + * Make the transient store key use a distinct store key. [#2013](https://github.com/eligion/cosmos-sdk/pull/2013) + * [x/stake] [\#1901](https://github.com/eligion/cosmos-sdk/issues/1901) Validator type's Owner field renamed to Operator; Validator's GetOwner() renamed accordingly to comply with the SDK's Validator interface. + * [docs] [#2001](https://github.com/eligion/cosmos-sdk/pull/2001) Update slashing spec for slashing period + * [x/stake, x/slashing] [#1305](https://github.com/eligion/cosmos-sdk/issues/1305) - Rename "revoked" to "jailed" * [x/stake] [#1676] Revoked and jailed validators put into the unbonding state * [x/stake] [#1877] Redelegations/unbonding-delegation from unbonding validator have reduced time - * [x/slashing] [\#1789](https://github.com/cosmos/cosmos-sdk/issues/1789) Slashing changes for Tendermint validator set offset (NextValSet) - * [x/stake] [\#2040](https://github.com/cosmos/cosmos-sdk/issues/2040) Validator + * [x/slashing] [\#1789](https://github.com/eligion/cosmos-sdk/issues/1789) Slashing changes for Tendermint validator set offset (NextValSet) + * [x/stake] [\#2040](https://github.com/eligion/cosmos-sdk/issues/2040) Validator operator type has now changed to `sdk.ValAddress` - * [x/stake] [\#2221](https://github.com/cosmos/cosmos-sdk/issues/2221) New + * [x/stake] [\#2221](https://github.com/eligion/cosmos-sdk/issues/2221) New Bech32 prefixes have been introduced for a validator's consensus address and public key: `cosmosvalcons` and `cosmosvalconspub` respectively. Also, existing Bech32 prefixes have been renamed for accounts and validator operators: * `cosmosaccaddr` / `cosmosaccpub` => `cosmos` / `cosmospub` * `cosmosvaladdr` / `cosmosvalpub` => `cosmosvaloper` / `cosmosvaloperpub` * [x/stake] [#1013] TendermintUpdates now uses transient store - * [x/stake] [\#2435](https://github.com/cosmos/cosmos-sdk/issues/2435) Remove empty bytes from the ValidatorPowerRank store key - * [x/gov] [\#2195](https://github.com/cosmos/cosmos-sdk/issues/2195) Governance uses BFT Time - * [x/gov] [\#2256](https://github.com/cosmos/cosmos-sdk/issues/2256) Removed slashing for governance non-voting validators - * [simulation] [\#2162](https://github.com/cosmos/cosmos-sdk/issues/2162) Added back correct supply invariants - * [x/slashing] [\#2430](https://github.com/cosmos/cosmos-sdk/issues/2430) Simulate more slashes, check if validator is jailed before jailing - * [x/stake] [\#2393](https://github.com/cosmos/cosmos-sdk/issues/2393) Removed `CompleteUnbonding` and `CompleteRedelegation` Msg types, and instead added unbonding/redelegation queues to endblocker - * [x/mock/simulation] [\#2501](https://github.com/cosmos/cosmos-sdk/issues/2501) Simulate transactions & invariants for fee distribution, and fix bugs discovered in the process + * [x/stake] [\#2435](https://github.com/eligion/cosmos-sdk/issues/2435) Remove empty bytes from the ValidatorPowerRank store key + * [x/gov] [\#2195](https://github.com/eligion/cosmos-sdk/issues/2195) Governance uses BFT Time + * [x/gov] [\#2256](https://github.com/eligion/cosmos-sdk/issues/2256) Removed slashing for governance non-voting validators + * [simulation] [\#2162](https://github.com/eligion/cosmos-sdk/issues/2162) Added back correct supply invariants + * [x/slashing] [\#2430](https://github.com/eligion/cosmos-sdk/issues/2430) Simulate more slashes, check if validator is jailed before jailing + * [x/stake] [\#2393](https://github.com/eligion/cosmos-sdk/issues/2393) Removed `CompleteUnbonding` and `CompleteRedelegation` Msg types, and instead added unbonding/redelegation queues to endblocker + * [x/mock/simulation] [\#2501](https://github.com/eligion/cosmos-sdk/issues/2501) Simulate transactions & invariants for fee distribution, and fix bugs discovered in the process * [x/auth] Simulate random fee payments * [cmd/gaia/app] Simulate non-zero inflation * [x/stake] Call hooks correctly in several cases related to delegation/validator updates @@ -2700,8 +2700,8 @@ BREAKING CHANGES * [x/distribution] Correctly calculate total power using Tendermint updates * [x/distribution] Simulate withdrawal transactions * [x/distribution] Fix a bug where the fee pool was not correctly tracked on WithdrawDelegatorRewardsAll - * [x/stake] [\#1673](https://github.com/cosmos/cosmos-sdk/issues/1673) Validators are no longer deleted until they can no longer possibly be slashed - * [\#1890](https://github.com/cosmos/cosmos-sdk/issues/1890) Start chain with initial state + sequence of transactions + * [x/stake] [\#1673](https://github.com/eligion/cosmos-sdk/issues/1673) Validators are no longer deleted until they can no longer possibly be slashed + * [\#1890](https://github.com/eligion/cosmos-sdk/issues/1890) Start chain with initial state + sequence of transactions * [cli] Rename `gaiad init gentx` to `gaiad gentx`. * [cli] Add `--skip-genesis` flag to `gaiad init` to prevent `genesis.json` generation. * Drop `GenesisTx` in favor of a signed `StdTx` with only one `MsgCreateValidator` message. @@ -2709,39 +2709,39 @@ BREAKING CHANGES * [cli] Add `--moniker` flag to `gaiad init` to override moniker when generating `genesis.json` - i.e. it takes effect when running with the `--with-txs` flag, it is ignored otherwise. * SDK - * [core] [\#2219](https://github.com/cosmos/cosmos-sdk/issues/2219) Update to Tendermint 0.24.0 + * [core] [\#2219](https://github.com/eligion/cosmos-sdk/issues/2219) Update to Tendermint 0.24.0 * Validator set updates delayed by one block * BFT timestamp that can safely be used by applications * Fixed maximum block size enforcement - * [core] [\#1807](https://github.com/cosmos/cosmos-sdk/issues/1807) Switch from use of rational to decimal - * [types] [\#1901](https://github.com/cosmos/cosmos-sdk/issues/1901) Validator interface's GetOwner() renamed to GetOperator() - * [x/slashing] [#2122](https://github.com/cosmos/cosmos-sdk/pull/2122) - Implement slashing period - * [types] [\#2119](https://github.com/cosmos/cosmos-sdk/issues/2119) Parsed error messages and ABCI log errors to make them more human readable. - * [types] [\#2407](https://github.com/cosmos/cosmos-sdk/issues/2407) MulInt method added to big decimal in order to improve efficiency of slashing - * [simulation] Rename TestAndRunTx to Operation [#2153](https://github.com/cosmos/cosmos-sdk/pull/2153) - * [simulation] Remove log and testing.TB from Operation and Invariants, in favor of using errors [\#2282](https://github.com/cosmos/cosmos-sdk/issues/2282) - * [simulation] Remove usage of keys and addrs in the types, in favor of simulation.Account [\#2384](https://github.com/cosmos/cosmos-sdk/issues/2384) - * [tools] Removed gocyclo [#2211](https://github.com/cosmos/cosmos-sdk/issues/2211) - * [baseapp] Remove `SetTxDecoder` in favor of requiring the decoder be set in baseapp initialization. [#1441](https://github.com/cosmos/cosmos-sdk/issues/1441) - * [baseapp] [\#1921](https://github.com/cosmos/cosmos-sdk/issues/1921) Add minimumFees field to BaseApp. - * [store] Change storeInfo within the root multistore to use tmhash instead of ripemd160 [\#2308](https://github.com/cosmos/cosmos-sdk/issues/2308) - * [codec] [\#2324](https://github.com/cosmos/cosmos-sdk/issues/2324) All referrences to wire have been renamed to codec. Additionally, wire.NewCodec is now codec.New(). - * [types] [\#2343](https://github.com/cosmos/cosmos-sdk/issues/2343) Make sdk.Msg have a names field, to facilitate automatic tagging. - * [baseapp] [\#2366](https://github.com/cosmos/cosmos-sdk/issues/2366) Automatically add action tags to all messages - * [x/auth] [\#2377](https://github.com/cosmos/cosmos-sdk/issues/2377) auth.StdSignMsg -> txbuilder.StdSignMsg - * [x/staking] [\#2244](https://github.com/cosmos/cosmos-sdk/issues/2244) staking now holds a consensus-address-index instead of a consensus-pubkey-index - * [x/staking] [\#2236](https://github.com/cosmos/cosmos-sdk/issues/2236) more distribution hooks for distribution - * [x/stake] [\#2394](https://github.com/cosmos/cosmos-sdk/issues/2394) Split up UpdateValidator into distinct state transitions applied only in EndBlock - * [x/slashing] [\#2480](https://github.com/cosmos/cosmos-sdk/issues/2480) Fix signing info handling bugs & faulty slashing - * [x/stake] [\#2412](https://github.com/cosmos/cosmos-sdk/issues/2412) Added an unbonding validator queue to EndBlock to automatically update validator.Status when finished Unbonding - * [x/stake] [\#2500](https://github.com/cosmos/cosmos-sdk/issues/2500) Block conflicting redelegations until we add an index + * [core] [\#1807](https://github.com/eligion/cosmos-sdk/issues/1807) Switch from use of rational to decimal + * [types] [\#1901](https://github.com/eligion/cosmos-sdk/issues/1901) Validator interface's GetOwner() renamed to GetOperator() + * [x/slashing] [#2122](https://github.com/eligion/cosmos-sdk/pull/2122) - Implement slashing period + * [types] [\#2119](https://github.com/eligion/cosmos-sdk/issues/2119) Parsed error messages and ABCI log errors to make them more human readable. + * [types] [\#2407](https://github.com/eligion/cosmos-sdk/issues/2407) MulInt method added to big decimal in order to improve efficiency of slashing + * [simulation] Rename TestAndRunTx to Operation [#2153](https://github.com/eligion/cosmos-sdk/pull/2153) + * [simulation] Remove log and testing.TB from Operation and Invariants, in favor of using errors [\#2282](https://github.com/eligion/cosmos-sdk/issues/2282) + * [simulation] Remove usage of keys and addrs in the types, in favor of simulation.Account [\#2384](https://github.com/eligion/cosmos-sdk/issues/2384) + * [tools] Removed gocyclo [#2211](https://github.com/eligion/cosmos-sdk/issues/2211) + * [baseapp] Remove `SetTxDecoder` in favor of requiring the decoder be set in baseapp initialization. [#1441](https://github.com/eligion/cosmos-sdk/issues/1441) + * [baseapp] [\#1921](https://github.com/eligion/cosmos-sdk/issues/1921) Add minimumFees field to BaseApp. + * [store] Change storeInfo within the root multistore to use tmhash instead of ripemd160 [\#2308](https://github.com/eligion/cosmos-sdk/issues/2308) + * [codec] [\#2324](https://github.com/eligion/cosmos-sdk/issues/2324) All referrences to wire have been renamed to codec. Additionally, wire.NewCodec is now codec.New(). + * [types] [\#2343](https://github.com/eligion/cosmos-sdk/issues/2343) Make sdk.Msg have a names field, to facilitate automatic tagging. + * [baseapp] [\#2366](https://github.com/eligion/cosmos-sdk/issues/2366) Automatically add action tags to all messages + * [x/auth] [\#2377](https://github.com/eligion/cosmos-sdk/issues/2377) auth.StdSignMsg -> txbuilder.StdSignMsg + * [x/staking] [\#2244](https://github.com/eligion/cosmos-sdk/issues/2244) staking now holds a consensus-address-index instead of a consensus-pubkey-index + * [x/staking] [\#2236](https://github.com/eligion/cosmos-sdk/issues/2236) more distribution hooks for distribution + * [x/stake] [\#2394](https://github.com/eligion/cosmos-sdk/issues/2394) Split up UpdateValidator into distinct state transitions applied only in EndBlock + * [x/slashing] [\#2480](https://github.com/eligion/cosmos-sdk/issues/2480) Fix signing info handling bugs & faulty slashing + * [x/stake] [\#2412](https://github.com/eligion/cosmos-sdk/issues/2412) Added an unbonding validator queue to EndBlock to automatically update validator.Status when finished Unbonding + * [x/stake] [\#2500](https://github.com/eligion/cosmos-sdk/issues/2500) Block conflicting redelegations until we add an index * [x/params] Global Paramstore refactored - * [types] [\#2506](https://github.com/cosmos/cosmos-sdk/issues/2506) sdk.Dec MarshalJSON now marshals as a normal Decimal, with 10 digits of decimal precision - * [x/stake] [\#2508](https://github.com/cosmos/cosmos-sdk/issues/2508) Utilize Tendermint power for validator power key - * [x/stake] [\#2531](https://github.com/cosmos/cosmos-sdk/issues/2531) Remove all inflation logic - * [x/mint] [\#2531](https://github.com/cosmos/cosmos-sdk/issues/2531) Add minting module and inflation logic - * [x/auth] [\#2540](https://github.com/cosmos/cosmos-sdk/issues/2540) Rename `AccountMapper` to `AccountKeeper`. - * [types] [\#2456](https://github.com/cosmos/cosmos-sdk/issues/2456) Renamed msg.Name() and msg.Type() to msg.Type() and msg.Route() respectively + * [types] [\#2506](https://github.com/eligion/cosmos-sdk/issues/2506) sdk.Dec MarshalJSON now marshals as a normal Decimal, with 10 digits of decimal precision + * [x/stake] [\#2508](https://github.com/eligion/cosmos-sdk/issues/2508) Utilize Tendermint power for validator power key + * [x/stake] [\#2531](https://github.com/eligion/cosmos-sdk/issues/2531) Remove all inflation logic + * [x/mint] [\#2531](https://github.com/eligion/cosmos-sdk/issues/2531) Add minting module and inflation logic + * [x/auth] [\#2540](https://github.com/eligion/cosmos-sdk/issues/2540) Rename `AccountMapper` to `AccountKeeper`. + * [types] [\#2456](https://github.com/eligion/cosmos-sdk/issues/2456) Renamed msg.Name() and msg.Type() to msg.Type() and msg.Route() respectively * Tendermint * Update tendermint version from v0.23.0 to v0.25.0, notable changes @@ -2759,47 +2759,47 @@ FEATURES * Gaia REST API (`gaiacli advanced rest-server`) * [gaia-lite] Endpoints to query staking pool and params - * [gaia-lite] [\#2110](https://github.com/cosmos/cosmos-sdk/issues/2110) Add support for `simulate=true` requests query argument to endpoints that send txs to run simulations of transactions - * [gaia-lite] [\#966](https://github.com/cosmos/cosmos-sdk/issues/966) Add support for `generate_only=true` query argument to generate offline unsigned transactions - * [gaia-lite] [\#1953](https://github.com/cosmos/cosmos-sdk/issues/1953) Add /sign endpoint to sign transactions generated with `generate_only=true`. - * [gaia-lite] [\#1954](https://github.com/cosmos/cosmos-sdk/issues/1954) Add /broadcast endpoint to broadcast transactions signed by the /sign endpoint. - * [gaia-lite] [\#2113](https://github.com/cosmos/cosmos-sdk/issues/2113) Rename `/accounts/{address}/send` to `/bank/accounts/{address}/transfers`, rename `/accounts/{address}` to `/auth/accounts/{address}`, replace `proposal-id` with `proposalId` in all gov endpoints - * [gaia-lite] [\#2478](https://github.com/cosmos/cosmos-sdk/issues/2478) Add query gov proposal's deposits endpoint - * [gaia-lite] [\#2477](https://github.com/cosmos/cosmos-sdk/issues/2477) Add query validator's outgoing redelegations and unbonding delegations endpoints + * [gaia-lite] [\#2110](https://github.com/eligion/cosmos-sdk/issues/2110) Add support for `simulate=true` requests query argument to endpoints that send txs to run simulations of transactions + * [gaia-lite] [\#966](https://github.com/eligion/cosmos-sdk/issues/966) Add support for `generate_only=true` query argument to generate offline unsigned transactions + * [gaia-lite] [\#1953](https://github.com/eligion/cosmos-sdk/issues/1953) Add /sign endpoint to sign transactions generated with `generate_only=true`. + * [gaia-lite] [\#1954](https://github.com/eligion/cosmos-sdk/issues/1954) Add /broadcast endpoint to broadcast transactions signed by the /sign endpoint. + * [gaia-lite] [\#2113](https://github.com/eligion/cosmos-sdk/issues/2113) Rename `/accounts/{address}/send` to `/bank/accounts/{address}/transfers`, rename `/accounts/{address}` to `/auth/accounts/{address}`, replace `proposal-id` with `proposalId` in all gov endpoints + * [gaia-lite] [\#2478](https://github.com/eligion/cosmos-sdk/issues/2478) Add query gov proposal's deposits endpoint + * [gaia-lite] [\#2477](https://github.com/eligion/cosmos-sdk/issues/2477) Add query validator's outgoing redelegations and unbonding delegations endpoints * Gaia CLI (`gaiacli`) * [cli] Cmds to query staking pool and params - * [gov][cli] [\#2062](https://github.com/cosmos/cosmos-sdk/issues/2062) added `--proposal` flag to `submit-proposal` that allows a JSON file containing a proposal to be passed in - * [\#2040](https://github.com/cosmos/cosmos-sdk/issues/2040) Add `--bech` to `gaiacli keys show` and respective REST endpoint to + * [gov][cli] [\#2062](https://github.com/eligion/cosmos-sdk/issues/2062) added `--proposal` flag to `submit-proposal` that allows a JSON file containing a proposal to be passed in + * [\#2040](https://github.com/eligion/cosmos-sdk/issues/2040) Add `--bech` to `gaiacli keys show` and respective REST endpoint to provide desired Bech32 prefix encoding - * [cli] [\#2047](https://github.com/cosmos/cosmos-sdk/issues/2047) [\#2306](https://github.com/cosmos/cosmos-sdk/pull/2306) Passing --gas=simulate triggers a simulation of the tx before the actual execution. + * [cli] [\#2047](https://github.com/eligion/cosmos-sdk/issues/2047) [\#2306](https://github.com/eligion/cosmos-sdk/pull/2306) Passing --gas=simulate triggers a simulation of the tx before the actual execution. The gas estimate obtained via the simulation will be used as gas limit in the actual execution. - * [cli] [\#2047](https://github.com/cosmos/cosmos-sdk/issues/2047) The --gas-adjustment flag can be used to adjust the estimate obtained via the simulation triggered by --gas=simulate. - * [cli] [\#2110](https://github.com/cosmos/cosmos-sdk/issues/2110) Add --dry-run flag to perform a simulation of a transaction without broadcasting it. The --gas flag is ignored as gas would be automatically estimated. - * [cli] [\#2204](https://github.com/cosmos/cosmos-sdk/issues/2204) Support generating and broadcasting messages with multiple signatures via command line: - * [\#966](https://github.com/cosmos/cosmos-sdk/issues/966) Add --generate-only flag to build an unsigned transaction and write it to STDOUT. - * [\#1953](https://github.com/cosmos/cosmos-sdk/issues/1953) New `sign` command to sign transactions generated with the --generate-only flag. - * [\#1954](https://github.com/cosmos/cosmos-sdk/issues/1954) New `broadcast` command to broadcast transactions generated offline and signed with the `sign` command. - * [cli] [\#2220](https://github.com/cosmos/cosmos-sdk/issues/2220) Add `gaiacli config` feature to interactively create CLI config files to reduce the number of required flags - * [stake][cli] [\#1672](https://github.com/cosmos/cosmos-sdk/issues/1672) Introduced + * [cli] [\#2047](https://github.com/eligion/cosmos-sdk/issues/2047) The --gas-adjustment flag can be used to adjust the estimate obtained via the simulation triggered by --gas=simulate. + * [cli] [\#2110](https://github.com/eligion/cosmos-sdk/issues/2110) Add --dry-run flag to perform a simulation of a transaction without broadcasting it. The --gas flag is ignored as gas would be automatically estimated. + * [cli] [\#2204](https://github.com/eligion/cosmos-sdk/issues/2204) Support generating and broadcasting messages with multiple signatures via command line: + * [\#966](https://github.com/eligion/cosmos-sdk/issues/966) Add --generate-only flag to build an unsigned transaction and write it to STDOUT. + * [\#1953](https://github.com/eligion/cosmos-sdk/issues/1953) New `sign` command to sign transactions generated with the --generate-only flag. + * [\#1954](https://github.com/eligion/cosmos-sdk/issues/1954) New `broadcast` command to broadcast transactions generated offline and signed with the `sign` command. + * [cli] [\#2220](https://github.com/eligion/cosmos-sdk/issues/2220) Add `gaiacli config` feature to interactively create CLI config files to reduce the number of required flags + * [stake][cli] [\#1672](https://github.com/eligion/cosmos-sdk/issues/1672) Introduced new commission flags for validator commands `create-validator` and `edit-validator`. - * [stake][cli] [\#1890](https://github.com/cosmos/cosmos-sdk/issues/1890) Add `--genesis-format` flag to `gaiacli tx create-validator` to produce transactions in genesis-friendly format. - * [cli][\#2554](https://github.com/cosmos/cosmos-sdk/issues/2554) Make `gaiacli keys show` multisig ready. + * [stake][cli] [\#1890](https://github.com/eligion/cosmos-sdk/issues/1890) Add `--genesis-format` flag to `gaiacli tx create-validator` to produce transactions in genesis-friendly format. + * [cli][\#2554](https://github.com/eligion/cosmos-sdk/issues/2554) Make `gaiacli keys show` multisig ready. * Gaia - * [cli] [\#2170](https://github.com/cosmos/cosmos-sdk/issues/2170) added ability to show the node's address via `gaiad tendermint show-address` - * [simulation] [\#2313](https://github.com/cosmos/cosmos-sdk/issues/2313) Reworked `make test_sim_gaia_slow` to `make test_sim_gaia_full`, now simulates from multiple starting seeds in parallel - * [cli] [\#1921] (https://github.com/cosmos/cosmos-sdk/issues/1921) + * [cli] [\#2170](https://github.com/eligion/cosmos-sdk/issues/2170) added ability to show the node's address via `gaiad tendermint show-address` + * [simulation] [\#2313](https://github.com/eligion/cosmos-sdk/issues/2313) Reworked `make test_sim_gaia_slow` to `make test_sim_gaia_full`, now simulates from multiple starting seeds in parallel + * [cli] [\#1921] (https://github.com/eligion/cosmos-sdk/issues/1921) * New configuration file `gaiad.toml` is now created to host Gaia-specific configuration. * New --minimum_fees/minimum_fees flag/config option to set a minimum fee. * SDK * [querier] added custom querier functionality, so ABCI query requests can be handled by keepers - * [simulation] [\#1924](https://github.com/cosmos/cosmos-sdk/issues/1924) allow operations to specify future operations - * [simulation] [\#1924](https://github.com/cosmos/cosmos-sdk/issues/1924) Add benchmarking capabilities, with makefile commands "test_sim_gaia_benchmark, test_sim_gaia_profile" - * [simulation] [\#2349](https://github.com/cosmos/cosmos-sdk/issues/2349) Add time-based future scheduled operations to simulator - * [x/auth] [\#2376](https://github.com/cosmos/cosmos-sdk/issues/2376) Remove FeePayer() from StdTx - * [x/stake] [\#1672](https://github.com/cosmos/cosmos-sdk/issues/1672) Implement + * [simulation] [\#1924](https://github.com/eligion/cosmos-sdk/issues/1924) allow operations to specify future operations + * [simulation] [\#1924](https://github.com/eligion/cosmos-sdk/issues/1924) Add benchmarking capabilities, with makefile commands "test_sim_gaia_benchmark, test_sim_gaia_profile" + * [simulation] [\#2349](https://github.com/eligion/cosmos-sdk/issues/2349) Add time-based future scheduled operations to simulator + * [x/auth] [\#2376](https://github.com/eligion/cosmos-sdk/issues/2376) Remove FeePayer() from StdTx + * [x/stake] [\#1672](https://github.com/eligion/cosmos-sdk/issues/1672) Implement basis for the validator commission model. * [x/auth] Support account removal in the account mapper. @@ -2809,72 +2809,72 @@ IMPROVEMENTS * [tools] Added ansible script to enable process core dumps * Gaia REST API (`gaiacli advanced rest-server`) - * [x/stake] [\#2000](https://github.com/cosmos/cosmos-sdk/issues/2000) Added tests for new staking endpoints - * [gaia-lite] [\#2445](https://github.com/cosmos/cosmos-sdk/issues/2445) Standarized REST error responses + * [x/stake] [\#2000](https://github.com/eligion/cosmos-sdk/issues/2000) Added tests for new staking endpoints + * [gaia-lite] [\#2445](https://github.com/eligion/cosmos-sdk/issues/2445) Standarized REST error responses * [gaia-lite] Added example to Swagger specification for /keys/seed. * [x/stake] Refactor REST utils * Gaia CLI (`gaiacli`) - * [cli] [\#2060](https://github.com/cosmos/cosmos-sdk/issues/2060) removed `--select` from `block` command - * [cli] [\#2128](https://github.com/cosmos/cosmos-sdk/issues/2128) fixed segfault when exporting directly after `gaiad init` - * [cli] [\#1255](https://github.com/cosmos/cosmos-sdk/issues/1255) open KeyBase in read-only mode + * [cli] [\#2060](https://github.com/eligion/cosmos-sdk/issues/2060) removed `--select` from `block` command + * [cli] [\#2128](https://github.com/eligion/cosmos-sdk/issues/2128) fixed segfault when exporting directly after `gaiad init` + * [cli] [\#1255](https://github.com/eligion/cosmos-sdk/issues/1255) open KeyBase in read-only mode for query-purpose CLI commands * [docs] Added commands for querying governance deposits, votes and tally * Gaia - * [x/stake] [#2023](https://github.com/cosmos/cosmos-sdk/pull/2023) Terminate iteration loop in `UpdateBondedValidators` and `UpdateBondedValidatorsFull` when the first revoked validator is encountered and perform a sanity check. + * [x/stake] [#2023](https://github.com/eligion/cosmos-sdk/pull/2023) Terminate iteration loop in `UpdateBondedValidators` and `UpdateBondedValidatorsFull` when the first revoked validator is encountered and perform a sanity check. * [x/auth] Signature verification's gas cost now accounts for pubkey type. [#2046](https://github.com/tendermint/tendermint/pull/2046) - * [x/stake] [x/slashing] Ensure delegation invariants to jailed validators [#1883](https://github.com/cosmos/cosmos-sdk/issues/1883). + * [x/stake] [x/slashing] Ensure delegation invariants to jailed validators [#1883](https://github.com/eligion/cosmos-sdk/issues/1883). * [x/stake] Improve speed of GetValidator, which was shown to be a performance bottleneck. [#2046](https://github.com/tendermint/tendermint/pull/2200) - * [x/stake] [\#2435](https://github.com/cosmos/cosmos-sdk/issues/2435) Improve memory efficiency of getting the various store keys - * [genesis] [\#2229](https://github.com/cosmos/cosmos-sdk/issues/2229) Ensure that there are no duplicate accounts or validators in the genesis state. - * [genesis] [\#2450](https://github.com/cosmos/cosmos-sdk/issues/2450) Validate staking genesis parameters. - * Add SDK validation to `config.toml` (namely disabling `create_empty_blocks`) [\#1571](https://github.com/cosmos/cosmos-sdk/issues/1571) - * [\#1941](https://github.com/cosmos/cosmos-sdk/issues/1941)(https://github.com/cosmos/cosmos-sdk/issues/1941) Version is now inferred via `git describe --tags`. - * [x/distribution] [\#1671](https://github.com/cosmos/cosmos-sdk/issues/1671) add distribution types and tests + * [x/stake] [\#2435](https://github.com/eligion/cosmos-sdk/issues/2435) Improve memory efficiency of getting the various store keys + * [genesis] [\#2229](https://github.com/eligion/cosmos-sdk/issues/2229) Ensure that there are no duplicate accounts or validators in the genesis state. + * [genesis] [\#2450](https://github.com/eligion/cosmos-sdk/issues/2450) Validate staking genesis parameters. + * Add SDK validation to `config.toml` (namely disabling `create_empty_blocks`) [\#1571](https://github.com/eligion/cosmos-sdk/issues/1571) + * [\#1941](https://github.com/eligion/cosmos-sdk/issues/1941)(https://github.com/eligion/cosmos-sdk/issues/1941) Version is now inferred via `git describe --tags`. + * [x/distribution] [\#1671](https://github.com/eligion/cosmos-sdk/issues/1671) add distribution types and tests * SDK * [tools] Make get_vendor_deps deletes `.vendor-new` directories, in case scratch files are present. * [spec] Added simple piggy bank distribution spec - * [cli] [\#1632](https://github.com/cosmos/cosmos-sdk/issues/1632) Add integration tests to ensure `basecoind init && basecoind` start sequences run successfully for both `democoin` and `basecoin` examples. - * [store] Speedup IAVL iteration, and consequently everything that requires IAVL iteration. [#2143](https://github.com/cosmos/cosmos-sdk/issues/2143) - * [store] [\#1952](https://github.com/cosmos/cosmos-sdk/issues/1952), [\#2281](https://github.com/cosmos/cosmos-sdk/issues/2281) Update IAVL dependency to v0.11.0 - * [simulation] Make timestamps randomized [#2153](https://github.com/cosmos/cosmos-sdk/pull/2153) - * [simulation] Make logs not just pure strings, speeding it up by a large factor at greater block heights [\#2282](https://github.com/cosmos/cosmos-sdk/issues/2282) - * [simulation] Add a concept of weighting the operations [\#2303](https://github.com/cosmos/cosmos-sdk/issues/2303) - * [simulation] Logs get written to file if large, and also get printed on panics [\#2285](https://github.com/cosmos/cosmos-sdk/issues/2285) - * [simulation] Bank simulations now makes testing auth configurable [\#2425](https://github.com/cosmos/cosmos-sdk/issues/2425) - * [gaiad] [\#1992](https://github.com/cosmos/cosmos-sdk/issues/1992) Add optional flag to `gaiad testnet` to make config directory of daemon (default `gaiad`) and cli (default `gaiacli`) configurable - * [x/stake] Add stake `Queriers` for Gaia-lite endpoints. This increases the staking endpoints performance by reusing the staking `keeper` logic for queries. [#2249](https://github.com/cosmos/cosmos-sdk/pull/2149) - * [store] [\#2017](https://github.com/cosmos/cosmos-sdk/issues/2017) Refactor + * [cli] [\#1632](https://github.com/eligion/cosmos-sdk/issues/1632) Add integration tests to ensure `basecoind init && basecoind` start sequences run successfully for both `democoin` and `basecoin` examples. + * [store] Speedup IAVL iteration, and consequently everything that requires IAVL iteration. [#2143](https://github.com/eligion/cosmos-sdk/issues/2143) + * [store] [\#1952](https://github.com/eligion/cosmos-sdk/issues/1952), [\#2281](https://github.com/eligion/cosmos-sdk/issues/2281) Update IAVL dependency to v0.11.0 + * [simulation] Make timestamps randomized [#2153](https://github.com/eligion/cosmos-sdk/pull/2153) + * [simulation] Make logs not just pure strings, speeding it up by a large factor at greater block heights [\#2282](https://github.com/eligion/cosmos-sdk/issues/2282) + * [simulation] Add a concept of weighting the operations [\#2303](https://github.com/eligion/cosmos-sdk/issues/2303) + * [simulation] Logs get written to file if large, and also get printed on panics [\#2285](https://github.com/eligion/cosmos-sdk/issues/2285) + * [simulation] Bank simulations now makes testing auth configurable [\#2425](https://github.com/eligion/cosmos-sdk/issues/2425) + * [gaiad] [\#1992](https://github.com/eligion/cosmos-sdk/issues/1992) Add optional flag to `gaiad testnet` to make config directory of daemon (default `gaiad`) and cli (default `gaiacli`) configurable + * [x/stake] Add stake `Queriers` for Gaia-lite endpoints. This increases the staking endpoints performance by reusing the staking `keeper` logic for queries. [#2249](https://github.com/eligion/cosmos-sdk/pull/2149) + * [store] [\#2017](https://github.com/eligion/cosmos-sdk/issues/2017) Refactor gas iterator gas consumption to only consume gas for iterator creation and `Next` calls which includes dynamic consumption of value length. - * [types/decimal] [\#2378](https://github.com/cosmos/cosmos-sdk/issues/2378) - Added truncate functionality to decimal - * [client] [\#1184](https://github.com/cosmos/cosmos-sdk/issues/1184) Remove unused `client/tx/sign.go`. - * [tools] [\#2464](https://github.com/cosmos/cosmos-sdk/issues/2464) Lock binary dependencies to a specific version + * [types/decimal] [\#2378](https://github.com/eligion/cosmos-sdk/issues/2378) - Added truncate functionality to decimal + * [client] [\#1184](https://github.com/eligion/cosmos-sdk/issues/1184) Remove unused `client/tx/sign.go`. + * [tools] [\#2464](https://github.com/eligion/cosmos-sdk/issues/2464) Lock binary dependencies to a specific version * #2573 [x/distribution] add accum invariance BUG FIXES * Gaia CLI (`gaiacli`) - * [cli] [\#1997](https://github.com/cosmos/cosmos-sdk/issues/1997) Handle panics gracefully when `gaiacli stake {delegation,unbond}` fail to unmarshal delegation. - * [cli] [\#2265](https://github.com/cosmos/cosmos-sdk/issues/2265) Fix JSON formatting of the `gaiacli send` command. - * [cli] [\#2547](https://github.com/cosmos/cosmos-sdk/issues/2547) Mark --to and --amount as required flags for `gaiacli tx send`. + * [cli] [\#1997](https://github.com/eligion/cosmos-sdk/issues/1997) Handle panics gracefully when `gaiacli stake {delegation,unbond}` fail to unmarshal delegation. + * [cli] [\#2265](https://github.com/eligion/cosmos-sdk/issues/2265) Fix JSON formatting of the `gaiacli send` command. + * [cli] [\#2547](https://github.com/eligion/cosmos-sdk/issues/2547) Mark --to and --amount as required flags for `gaiacli tx send`. * Gaia * [x/stake] Return correct Tendermint validator update set on `EndBlocker` by not - including non previously bonded validators that have zero power. [#2189](https://github.com/cosmos/cosmos-sdk/issues/2189) + including non previously bonded validators that have zero power. [#2189](https://github.com/eligion/cosmos-sdk/issues/2189) * [docs] Fixed light client section links * SDK - * [\#1988](https://github.com/cosmos/cosmos-sdk/issues/1988) Make us compile on OpenBSD (disable ledger) [#1988] (https://github.com/cosmos/cosmos-sdk/issues/1988) - * [\#2105](https://github.com/cosmos/cosmos-sdk/issues/2105) Fix DB Iterator leak, which may leak a go routine. - * [ledger] [\#2064](https://github.com/cosmos/cosmos-sdk/issues/2064) Fix inability to sign and send transactions via the LCD by + * [\#1988](https://github.com/eligion/cosmos-sdk/issues/1988) Make us compile on OpenBSD (disable ledger) [#1988] (https://github.com/eligion/cosmos-sdk/issues/1988) + * [\#2105](https://github.com/eligion/cosmos-sdk/issues/2105) Fix DB Iterator leak, which may leak a go routine. + * [ledger] [\#2064](https://github.com/eligion/cosmos-sdk/issues/2064) Fix inability to sign and send transactions via the LCD by loading a Ledger device at runtime. - * [\#2158](https://github.com/cosmos/cosmos-sdk/issues/2158) Fix non-deterministic ordering of validator iteration when slashing in `gov EndBlocker` - * [simulation] [\#1924](https://github.com/cosmos/cosmos-sdk/issues/1924) Make simulation stop on SIGTERM - * [\#2388](https://github.com/cosmos/cosmos-sdk/issues/2388) Remove dependency on deprecated tendermint/tmlibs repository. - * [\#2416](https://github.com/cosmos/cosmos-sdk/issues/2416) Refactored `InitializeTestLCD` to properly include proposing validator in genesis state. + * [\#2158](https://github.com/eligion/cosmos-sdk/issues/2158) Fix non-deterministic ordering of validator iteration when slashing in `gov EndBlocker` + * [simulation] [\#1924](https://github.com/eligion/cosmos-sdk/issues/1924) Make simulation stop on SIGTERM + * [\#2388](https://github.com/eligion/cosmos-sdk/issues/2388) Remove dependency on deprecated tendermint/tmlibs repository. + * [\#2416](https://github.com/eligion/cosmos-sdk/issues/2416) Refactored `InitializeTestLCD` to properly include proposing validator in genesis state. * #2573 [x/distribution] accum invariance bugfix * #2573 [x/slashing] unbonding-delegation slashing invariance bugfix @@ -2903,36 +2903,36 @@ BUG FIXES BREAKING CHANGES * Gaia REST API (`gaiacli advanced rest-server`) - - [x/stake] [\#1880](https://github.com/cosmos/cosmos-sdk/issues/1880) More REST-ful endpoints (large refactor) - - [x/slashing] [\#1866](https://github.com/cosmos/cosmos-sdk/issues/1866) `/slashing/signing_info` takes cosmosvalpub instead of cosmosvaladdr + - [x/stake] [\#1880](https://github.com/eligion/cosmos-sdk/issues/1880) More REST-ful endpoints (large refactor) + - [x/slashing] [\#1866](https://github.com/eligion/cosmos-sdk/issues/1866) `/slashing/signing_info` takes cosmosvalpub instead of cosmosvaladdr - use time.Time instead of int64 for time. See Tendermint v0.23.0 - Signatures are no longer Amino encoded with prefixes (just encoded as raw bytes) - see Tendermint v0.23.0 * Gaia CLI (`gaiacli`) - [x/stake] change `--keybase-sig` to `--identity` - - [x/stake] [\#1828](https://github.com/cosmos/cosmos-sdk/issues/1828) Force user to specify amount on create-validator command by removing default + - [x/stake] [\#1828](https://github.com/eligion/cosmos-sdk/issues/1828) Force user to specify amount on create-validator command by removing default - [x/gov] Change `--proposalID` to `--proposal-id` - - [x/stake, x/gov] [\#1606](https://github.com/cosmos/cosmos-sdk/issues/1606) Use `--from` instead of adhoc flags like `--address-validator` + - [x/stake, x/gov] [\#1606](https://github.com/eligion/cosmos-sdk/issues/1606) Use `--from` instead of adhoc flags like `--address-validator` and `--proposer` to indicate the sender address. - - [\#1551](https://github.com/cosmos/cosmos-sdk/issues/1551) Remove `--name` completely + - [\#1551](https://github.com/eligion/cosmos-sdk/issues/1551) Remove `--name` completely - Genesis/key creation (`gaiad init`) now supports user-provided key passwords * Gaia - [x/stake] Inflation doesn't use rationals in calculation (performance boost) - [x/stake] Persist a map from `addr->pubkey` in the state since BeginBlock doesn't provide pubkeys. - - [x/gov] [\#1781](https://github.com/cosmos/cosmos-sdk/issues/1781) Added tags sub-package, changed tags to use dash-case - - [x/gov] [\#1688](https://github.com/cosmos/cosmos-sdk/issues/1688) Governance parameters are now stored in globalparams store - - [x/gov] [\#1859](https://github.com/cosmos/cosmos-sdk/issues/1859) Slash validators who do not vote on a proposal - - [x/gov] [\#1914](https://github.com/cosmos/cosmos-sdk/issues/1914) added TallyResult type that gets stored in Proposal after tallying is finished + - [x/gov] [\#1781](https://github.com/eligion/cosmos-sdk/issues/1781) Added tags sub-package, changed tags to use dash-case + - [x/gov] [\#1688](https://github.com/eligion/cosmos-sdk/issues/1688) Governance parameters are now stored in globalparams store + - [x/gov] [\#1859](https://github.com/eligion/cosmos-sdk/issues/1859) Slash validators who do not vote on a proposal + - [x/gov] [\#1914](https://github.com/eligion/cosmos-sdk/issues/1914) added TallyResult type that gets stored in Proposal after tallying is finished * SDK - [baseapp] Msgs are no longer run on CheckTx, removed `ctx.IsCheckTx()` - [baseapp] NewBaseApp constructor takes sdk.TxDecoder as argument instead of wire.Codec - [types] sdk.NewCoin takes sdk.Int, sdk.NewInt64Coin takes int64 - [x/auth] Default TxDecoder can be found in `x/auth` rather than baseapp - - [client] [\#1551](https://github.com/cosmos/cosmos-sdk/issues/1551): Refactored `CoreContext` to `TxContext` and `QueryContext` + - [client] [\#1551](https://github.com/eligion/cosmos-sdk/issues/1551): Refactored `CoreContext` to `TxContext` and `QueryContext` - Removed all tx related fields and logic (building & signing) to separate structure `TxContext` in `x/auth/client/context` @@ -2941,7 +2941,7 @@ BREAKING CHANGES - change all the cryptography imports. - v0.23.0 -> See [Changelog](https://github.com/tendermint/tendermint/blob/v0.23.0/CHANGELOG.md#0230) - and [SDK PR](https://github.com/cosmos/cosmos-sdk/pull/1927) + and [SDK PR](https://github.com/eligion/cosmos-sdk/pull/1927) - BeginBlock no longer includes crypto.Pubkey - use time.Time instead of int64 for time. @@ -2952,7 +2952,7 @@ FEATURES * Gaia CLI (`gaiacli`) - [x/gov] added `query-proposals` command. Can filter by `depositer`, `voter`, and `status` - - [x/stake] [\#2043](https://github.com/cosmos/cosmos-sdk/issues/2043) Added staking query cli cmds for unbonding-delegations and redelegations + - [x/stake] [\#2043](https://github.com/eligion/cosmos-sdk/issues/2043) Added staking query cli cmds for unbonding-delegations and redelegations * Gaia - [networks] Added ansible scripts to upgrade seed nodes on a network @@ -2965,7 +2965,7 @@ FEATURES - Simulates Tendermint's algorithm for validator set updates - Simulates validator signing/downtime with a Markov chain, and occaisional double-signatures - Includes simulated operations & invariants for staking, slashing, governance, and bank modules - - [store] [\#1481](https://github.com/cosmos/cosmos-sdk/issues/1481) Add transient store + - [store] [\#1481](https://github.com/eligion/cosmos-sdk/issues/1481) Add transient store - [baseapp] Initialize validator set on ResponseInitChain - [baseapp] added BaseApp.Seal - ability to seal baseapp parameters once they've been set - [cosmos-sdk-cli] New `cosmos-sdk-cli` tool to quickly initialize a new @@ -2975,41 +2975,41 @@ FEATURES IMPROVEMENTS * Gaia - - [spec] [\#967](https://github.com/cosmos/cosmos-sdk/issues/967) Inflation and distribution specs drastically improved - - [x/gov] [\#1773](https://github.com/cosmos/cosmos-sdk/issues/1773) Votes on a proposal can now be queried + - [spec] [\#967](https://github.com/eligion/cosmos-sdk/issues/967) Inflation and distribution specs drastically improved + - [x/gov] [\#1773](https://github.com/eligion/cosmos-sdk/issues/1773) Votes on a proposal can now be queried - [x/gov] Initial governance parameters can now be set in the genesis file - - [x/stake] [\#1815](https://github.com/cosmos/cosmos-sdk/issues/1815) Sped up the processing of `EditValidator` txs. - - [config] [\#1930](https://github.com/cosmos/cosmos-sdk/issues/1930) Transactions indexer indexes all tags by default. - - [ci] [#2057](https://github.com/cosmos/cosmos-sdk/pull/2057) Run `make localnet-start` on every commit and ensure network reaches at least 10 blocks + - [x/stake] [\#1815](https://github.com/eligion/cosmos-sdk/issues/1815) Sped up the processing of `EditValidator` txs. + - [config] [\#1930](https://github.com/eligion/cosmos-sdk/issues/1930) Transactions indexer indexes all tags by default. + - [ci] [#2057](https://github.com/eligion/cosmos-sdk/pull/2057) Run `make localnet-start` on every commit and ensure network reaches at least 10 blocks * SDK - - [baseapp] [\#1587](https://github.com/cosmos/cosmos-sdk/issues/1587) Allow any alphanumeric character in route + - [baseapp] [\#1587](https://github.com/eligion/cosmos-sdk/issues/1587) Allow any alphanumeric character in route - [baseapp] Allow any alphanumeric character in route - [tools] Remove `rm -rf vendor/` from `make get_vendor_deps` - [x/auth] Recover ErrorOutOfGas panic in order to set sdk.Result attributes correctly - - [x/auth] [\#2376](https://github.com/cosmos/cosmos-sdk/issues/2376) No longer runs any signature in a multi-msg, if any account/sequence number is wrong. - - [x/auth] [\#2376](https://github.com/cosmos/cosmos-sdk/issues/2376) No longer charge gas for subtracting fees + - [x/auth] [\#2376](https://github.com/eligion/cosmos-sdk/issues/2376) No longer runs any signature in a multi-msg, if any account/sequence number is wrong. + - [x/auth] [\#2376](https://github.com/eligion/cosmos-sdk/issues/2376) No longer charge gas for subtracting fees - [x/bank] Unit tests are now table-driven - [tests] Add tests to example apps in docs - [tests] Fixes ansible scripts to work with AWS too - - [tests] [\#1806](https://github.com/cosmos/cosmos-sdk/issues/1806) CLI tests are now behind the build flag 'cli_test', so go test works on a new repo + - [tests] [\#1806](https://github.com/eligion/cosmos-sdk/issues/1806) CLI tests are now behind the build flag 'cli_test', so go test works on a new repo BUG FIXES * Gaia CLI (`gaiacli`) - - [\#1766](https://github.com/cosmos/cosmos-sdk/issues/1766) Fixes bad example for keybase identity - - [x/stake] [\#2021](https://github.com/cosmos/cosmos-sdk/issues/2021) Fixed repeated CLI commands in staking + - [\#1766](https://github.com/eligion/cosmos-sdk/issues/1766) Fixes bad example for keybase identity + - [x/stake] [\#2021](https://github.com/eligion/cosmos-sdk/issues/2021) Fixed repeated CLI commands in staking * Gaia - - [x/stake] [#2077](https://github.com/cosmos/cosmos-sdk/pull/2077) Fixed invalid cliff power comparison - - [\#1804](https://github.com/cosmos/cosmos-sdk/issues/1804) Fixes gen-tx genesis generation logic temporarily until upstream updates - - [\#1799](https://github.com/cosmos/cosmos-sdk/issues/1799) Fix `gaiad export` - - [\#1839](https://github.com/cosmos/cosmos-sdk/issues/1839) Fixed bug where intra-tx counter wasn't set correctly for genesis validators - - [x/stake] [\#1858](https://github.com/cosmos/cosmos-sdk/issues/1858) Fixed bug where the cliff validator was not updated correctly - - [tests] [\#1675](https://github.com/cosmos/cosmos-sdk/issues/1675) Fix non-deterministic `test_cover` - - [tests] [\#1551](https://github.com/cosmos/cosmos-sdk/issues/1551) Fixed invalid LCD test JSON payload in `doIBCTransfer` + - [x/stake] [#2077](https://github.com/eligion/cosmos-sdk/pull/2077) Fixed invalid cliff power comparison + - [\#1804](https://github.com/eligion/cosmos-sdk/issues/1804) Fixes gen-tx genesis generation logic temporarily until upstream updates + - [\#1799](https://github.com/eligion/cosmos-sdk/issues/1799) Fix `gaiad export` + - [\#1839](https://github.com/eligion/cosmos-sdk/issues/1839) Fixed bug where intra-tx counter wasn't set correctly for genesis validators + - [x/stake] [\#1858](https://github.com/eligion/cosmos-sdk/issues/1858) Fixed bug where the cliff validator was not updated correctly + - [tests] [\#1675](https://github.com/eligion/cosmos-sdk/issues/1675) Fix non-deterministic `test_cover` + - [tests] [\#1551](https://github.com/eligion/cosmos-sdk/issues/1551) Fixed invalid LCD test JSON payload in `doIBCTransfer` - [basecoin] Fixes coin transaction failure and account query [discussion](https://forum.cosmos.network/t/unmarshalbinarybare-expected-to-read-prefix-bytes-75fbfab8-since-it-is-registered-concrete-but-got-0a141dfa/664/6) - - [x/gov] [\#1757](https://github.com/cosmos/cosmos-sdk/issues/1757) Fix VoteOption conversion to String + - [x/gov] [\#1757](https://github.com/eligion/cosmos-sdk/issues/1757) Fix VoteOption conversion to String * [x/stake] [#2083] Fix broken invariant of bonded validator power decrease ## 0.23.1 @@ -3037,9 +3037,9 @@ IMPROVEMENTS BUG FIXES * [tendermint] Update to v0.22.6 - Fixes some security vulnerabilities reported in the [Bug Bounty](https://hackerone.com/tendermint) -* [\#1797](https://github.com/cosmos/cosmos-sdk/issues/1797) Fix off-by-one error in slashing for downtime -* [\#1787](https://github.com/cosmos/cosmos-sdk/issues/1787) Fixed bug where Tally fails due to revoked/unbonding validator -* [\#1666](https://github.com/cosmos/cosmos-sdk/issues/1666) Add intra-tx counter to the genesis validators +* [\#1797](https://github.com/eligion/cosmos-sdk/issues/1797) Fix off-by-one error in slashing for downtime +* [\#1787](https://github.com/eligion/cosmos-sdk/issues/1787) Fixed bug where Tally fails due to revoked/unbonding validator +* [\#1666](https://github.com/eligion/cosmos-sdk/issues/1666) Add intra-tx counter to the genesis validators ## 0.22.0 @@ -3085,8 +3085,8 @@ IMPROVEMENTS * [store] Pruning strategy configurable with pruning flag on gaiad start BUG FIXES -* [\#1630](https://github.com/cosmos/cosmos-sdk/issues/1630) - redelegation nolonger removes tokens from the delegator liquid account -* [keys] [\#1629](https://github.com/cosmos/cosmos-sdk/issues/1629) - updating password no longer asks for a new password when the first entered password was incorrect +* [\#1630](https://github.com/eligion/cosmos-sdk/issues/1630) - redelegation nolonger removes tokens from the delegator liquid account +* [keys] [\#1629](https://github.com/eligion/cosmos-sdk/issues/1629) - updating password no longer asks for a new password when the first entered password was incorrect * [lcd] importing an account would create a random account * [server] 'gaiad init' command family now writes provided name as the moniker in `config.toml` * [build] Added Ledger build support via `LEDGER_ENABLED=true|false` @@ -3202,9 +3202,9 @@ IMPROVEMENTS * [docs] Added commands for governance CLI on testnet README BUG FIXES -* [x/slashing] [\#1510](https://github.com/cosmos/cosmos-sdk/issues/1510) Unrevoked validators cannot un-revoke themselves -* [x/stake] [\#1513](https://github.com/cosmos/cosmos-sdk/issues/1513) Validators slashed to zero power are unbonded and removed from the store -* [x/stake] [\#1567](https://github.com/cosmos/cosmos-sdk/issues/1567) Validators decreased in power but not unbonded are now updated in Tendermint +* [x/slashing] [\#1510](https://github.com/eligion/cosmos-sdk/issues/1510) Unrevoked validators cannot un-revoke themselves +* [x/stake] [\#1513](https://github.com/eligion/cosmos-sdk/issues/1513) Validators slashed to zero power are unbonded and removed from the store +* [x/stake] [\#1567](https://github.com/eligion/cosmos-sdk/issues/1567) Validators decreased in power but not unbonded are now updated in Tendermint * [x/stake] error strings lower case * [x/stake] pool loose tokens now accounts for unbonding and unbonding tokens not associated with any validator * [x/stake] fix revoke bytes ordering (was putting revoked candidates at the top of the list) @@ -3214,20 +3214,20 @@ BUG FIXES * Retry on HTTP request failure in CLI tests, add option to retry tests in Makefile * Fixed bug where chain ID wasn't passed properly in x/bank REST handler, removed Viper hack from ante handler * Fixed bug where `democli account` didn't decode the account data correctly -* [\#872](https://github.com/cosmos/cosmos-sdk/issues/872) - recovery phrases no longer all end in `abandon` -* [\#887](https://github.com/cosmos/cosmos-sdk/issues/887) - limit the size of rationals that can be passed in from user input -* [\#1052](https://github.com/cosmos/cosmos-sdk/issues/1052) - Make all now works -* [\#1258](https://github.com/cosmos/cosmos-sdk/issues/1258) - printing big.rat's can no longer overflow int64 -* [\#1259](https://github.com/cosmos/cosmos-sdk/issues/1259) - fix bug where certain tests that could have a nil pointer in defer -* [\#1343](https://github.com/cosmos/cosmos-sdk/issues/1343) - fixed unnecessary parallelism in CI -* [\#1353](https://github.com/cosmos/cosmos-sdk/issues/1353) - CLI: Show pool shares fractions in human-readable format -* [\#1367](https://github.com/cosmos/cosmos-sdk/issues/1367) - set ChainID in InitChain -* [\#1461](https://github.com/cosmos/cosmos-sdk/issues/1461) - CLI tests now no longer reset your local environment data -* [\#1505](https://github.com/cosmos/cosmos-sdk/issues/1505) - `gaiacli stake validator` no longer panics if validator doesn't exist -* [\#1565](https://github.com/cosmos/cosmos-sdk/issues/1565) - fix cliff validator persisting when validator set shrinks from max -* [\#1287](https://github.com/cosmos/cosmos-sdk/issues/1287) - prevent zero power validators at genesis +* [\#872](https://github.com/eligion/cosmos-sdk/issues/872) - recovery phrases no longer all end in `abandon` +* [\#887](https://github.com/eligion/cosmos-sdk/issues/887) - limit the size of rationals that can be passed in from user input +* [\#1052](https://github.com/eligion/cosmos-sdk/issues/1052) - Make all now works +* [\#1258](https://github.com/eligion/cosmos-sdk/issues/1258) - printing big.rat's can no longer overflow int64 +* [\#1259](https://github.com/eligion/cosmos-sdk/issues/1259) - fix bug where certain tests that could have a nil pointer in defer +* [\#1343](https://github.com/eligion/cosmos-sdk/issues/1343) - fixed unnecessary parallelism in CI +* [\#1353](https://github.com/eligion/cosmos-sdk/issues/1353) - CLI: Show pool shares fractions in human-readable format +* [\#1367](https://github.com/eligion/cosmos-sdk/issues/1367) - set ChainID in InitChain +* [\#1461](https://github.com/eligion/cosmos-sdk/issues/1461) - CLI tests now no longer reset your local environment data +* [\#1505](https://github.com/eligion/cosmos-sdk/issues/1505) - `gaiacli stake validator` no longer panics if validator doesn't exist +* [\#1565](https://github.com/eligion/cosmos-sdk/issues/1565) - fix cliff validator persisting when validator set shrinks from max +* [\#1287](https://github.com/eligion/cosmos-sdk/issues/1287) - prevent zero power validators at genesis * [x/stake] fix bug when unbonding/redelegating using `--shares-percent` -* [\#1010](https://github.com/cosmos/cosmos-sdk/issues/1010) - two validators can't bond with the same pubkey anymore +* [\#1010](https://github.com/eligion/cosmos-sdk/issues/1010) - two validators can't bond with the same pubkey anymore ## 0.19.0 @@ -3253,7 +3253,7 @@ IMPROVEMENTS * [x/stake] More stake tests added to test ByPower index FIXES -* Fixes consensus fault on testnet - see postmortem [here](https://github.com/cosmos/cosmos-sdk/issues/1197#issuecomment-396823021) +* Fixes consensus fault on testnet - see postmortem [here](https://github.com/eligion/cosmos-sdk/issues/1197#issuecomment-396823021) * [x/stake] bonded inflation removed, non-bonded inflation partially implemented * [lcd] Switch to bech32 for addresses on all human readable inputs and outputs * [lcd] fixed tx indexing/querying @@ -3910,17 +3910,17 @@ BUG FIXES: -[Unreleased]: https://github.com/cosmos/cosmos-sdk/compare/v0.38.2...HEAD -[v0.38.2]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.38.2 -[v0.38.1]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.38.1 -[v0.38.0]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.38.0 -[v0.37.9]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.9 -[v0.37.8]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.8 -[v0.37.7]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.7 -[v0.37.6]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.6 -[v0.37.5]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.5 -[v0.37.4]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.4 -[v0.37.3]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.3 -[v0.37.1]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.1 -[v0.37.0]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.37.0 -[v0.36.0]: https://github.com/cosmos/cosmos-sdk/releases/tag/v0.36.0 +[Unreleased]: https://github.com/eligion/cosmos-sdk/compare/v0.38.2...HEAD +[v0.38.2]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.38.2 +[v0.38.1]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.38.1 +[v0.38.0]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.38.0 +[v0.37.9]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.37.9 +[v0.37.8]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.37.8 +[v0.37.7]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.37.7 +[v0.37.6]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.37.6 +[v0.37.5]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.37.5 +[v0.37.4]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.37.4 +[v0.37.3]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.37.3 +[v0.37.1]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.37.1 +[v0.37.0]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.37.0 +[v0.36.0]: https://github.com/eligion/cosmos-sdk/releases/tag/v0.36.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 168f1419c37b..de6bb7cbe6ed 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -22,14 +22,14 @@ Contributing to this repo can mean many things such as participating in discussion or proposing code changes. To ensure a smooth workflow for all contributors, the general procedure for contributing has been established: -1. Start by browsing [new issues](https://github.com/cosmos/cosmos-sdk/issues) and [discussions](https://github.com/cosmos/cosmos-sdk/discussions). If you are looking for something interesting or if you have something in your mind, there is a chance it was has been discussed. +1. Start by browsing [new issues](https://github.com/eligion/cosmos-sdk/issues) and [discussions](https://github.com/eligion/cosmos-sdk/discussions). If you are looking for something interesting or if you have something in your mind, there is a chance it was has been discussed. -- Looking for a good place to start contributing? How about checking out some [good first issues](https://github.com/cosmos/cosmos-sdk/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)? +- Looking for a good place to start contributing? How about checking out some [good first issues](https://github.com/eligion/cosmos-sdk/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)? 2. Determine whether a GitHub issue or discussion is more appropriate for your needs: -1. If want to propose something new that requires specification or an additional design, or you would like to change a process, start with a [new discussion](https://github.com/cosmos/cosmos-sdk/discussions/new). With discussions, we can better handle the design process using discussion threads. A discussion usually leads to one or more issues. -2. If the issue you want addressed is a specific proposal or a bug, then open a [new issue](https://github.com/cosmos/cosmos-sdk/issues/new/choose). -3. Review existing [issues](https://github.com/cosmos/cosmos-sdk/issues) to find an issue you'd like to help with. +1. If want to propose something new that requires specification or an additional design, or you would like to change a process, start with a [new discussion](https://github.com/eligion/cosmos-sdk/discussions/new). With discussions, we can better handle the design process using discussion threads. A discussion usually leads to one or more issues. +2. If the issue you want addressed is a specific proposal or a bug, then open a [new issue](https://github.com/eligion/cosmos-sdk/issues/new/choose). +3. Review existing [issues](https://github.com/eligion/cosmos-sdk/issues) to find an issue you'd like to help with. 3. Participate in thoughtful discussion on that issue. 4. If you would like to contribute: 1. Ensure that the proposal has been accepted. @@ -49,7 +49,7 @@ taken place in a GitHub issue, that PR runs a high likelihood of being rejected. The Cosmos SDK has many stakeholders contributing and shaping the project. Regen Network Development leads the Cosmos SDK R&D, and welcomes long-term contributors and additional maintainers from other projects. We use self-organizing principles to coordinate and collaborate across organizations in structured "Working Groups" that focus on specific problem domains or architectural components of the Cosmos SDK. -The developers are organized in working groups which are listed on a ["Working Groups & Arch Process" Github Issue](https://github.com/cosmos/cosmos-sdk/issues/9058) (pinned at the top of the [issues list](https://github.com/cosmos/cosmos-sdk/issues)). +The developers are organized in working groups which are listed on a ["Working Groups & Arch Process" Github Issue](https://github.com/eligion/cosmos-sdk/issues/9058) (pinned at the top of the [issues list](https://github.com/eligion/cosmos-sdk/issues)). The important development announcements are shared on [Discord](https://discord.com/invite/cosmosnetwork) in the \#dev-announcements channel. @@ -64,7 +64,7 @@ If you would like to join one of those calls, then please contact us on [Discord ## Architecture Decision Records (ADR) -When proposing an architecture decision for the Cosmos SDK, please start by opening an [issue](https://github.com/cosmos/cosmos-sdk/issues/new/choose) or a [discussion](https://github.com/cosmos/cosmos-sdk/discussions/new) with a summary of the proposal. Once the proposal has been discussed and there is rough alignment on a high-level approach to the design, the [ADR creation process](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/PROCESS.md) can begin. We are following this process to ensure all involved parties are in agreement before any party begins coding the proposed implementation. If you would like to see examples of how these are written, please refer to the current [ADRs](https://github.com/cosmos/cosmos-sdk/tree/master/docs/architecture). +When proposing an architecture decision for the Cosmos SDK, please start by opening an [issue](https://github.com/eligion/cosmos-sdk/issues/new/choose) or a [discussion](https://github.com/eligion/cosmos-sdk/discussions/new) with a summary of the proposal. Once the proposal has been discussed and there is rough alignment on a high-level approach to the design, the [ADR creation process](https://github.com/eligion/cosmos-sdk/blob/master/docs/architecture/PROCESS.md) can begin. We are following this process to ensure all involved parties are in agreement before any party begins coding the proposed implementation. If you would like to see examples of how these are written, please refer to the current [ADRs](https://github.com/eligion/cosmos-sdk/tree/master/docs/architecture). ## Development Procedure @@ -268,7 +268,7 @@ is broken up into three distinct stages: **Strategy Discovery**, **Concept Appro * Architecture Decision Records (ADRs) may be proposed by any contributors or maintainers of the Cosmos SDK, and should follow the guidelines outlined in the - [ADR Creation Process](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/PROCESS.md) + [ADR Creation Process](https://github.com/eligion/cosmos-sdk/blob/master/docs/architecture/PROCESS.md) * After proposal, a time bound period for Request for Comment (RFC) on ADRs commences * ADRs are intended to be iterative, and may be merged into `master` while still in a `Proposed` status diff --git a/Dockerfile b/Dockerfile index af8b4c1febce..826ab48fbd33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3 RUN apk add --no-cache $PACKAGES # Set working directory for the build -WORKDIR /go/src/github.com/cosmos/cosmos-sdk +WORKDIR /go/src/github.com/eligion/cosmos-sdk # Add source files COPY . . @@ -34,7 +34,7 @@ RUN apk add --update ca-certificates WORKDIR /root # Copy over binaries from the build-env -COPY --from=build-env /go/src/github.com/cosmos/cosmos-sdk/build/simd /usr/bin/simd +COPY --from=build-env /go/src/github.com/eligion/cosmos-sdk/build/simd /usr/bin/simd EXPOSE 26656 26657 1317 9090 diff --git a/Makefile b/Makefile index 598a4acb1678..0f9a023fcada 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ BINDIR ?= $(GOPATH)/bin BUILDDIR ?= $(CURDIR)/build SIMAPP = ./simapp MOCKS_DIR = $(CURDIR)/tests/mocks -HTTPS_GIT := https://github.com/cosmos/cosmos-sdk.git +HTTPS_GIT := https://github.com/eligion/cosmos-sdk.git DOCKER := $(shell which docker) DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf @@ -30,7 +30,7 @@ ifeq ($(LEDGER_ENABLED),true) else UNAME_S = $(shell uname -s) ifeq ($(UNAME_S),OpenBSD) - $(warning OpenBSD detected, disabling ledger support (https://github.com/cosmos/cosmos-sdk/issues/1988)) + $(warning OpenBSD detected, disabling ledger support (https://github.com/eligion/cosmos-sdk/issues/1988)) else GCC = $(shell command -v gcc 2> /dev/null) ifeq ($(GCC),) @@ -53,31 +53,31 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags)) # process linker flags -ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=sim \ - -X github.com/cosmos/cosmos-sdk/version.AppName=simd \ - -X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \ - -X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \ - -X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \ +ldflags = -X github.com/eligion/cosmos-sdk/version.Name=sim \ + -X github.com/eligion/cosmos-sdk/version.AppName=simd \ + -X github.com/eligion/cosmos-sdk/version.Version=$(VERSION) \ + -X github.com/eligion/cosmos-sdk/version.Commit=$(COMMIT) \ + -X "github.com/eligion/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \ -X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TMVERSION) # DB backend selection ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS))) - ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb + ldflags += -X github.com/eligion/cosmos-sdk/types.DBBackend=cleveldb endif ifeq (badgerdb,$(findstring badgerdb,$(COSMOS_BUILD_OPTIONS))) - ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=badgerdb + ldflags += -X github.com/eligion/cosmos-sdk/types.DBBackend=badgerdb BUILD_TAGS += badgerdb endif # handle rocksdb ifeq (rocksdb,$(findstring rocksdb,$(COSMOS_BUILD_OPTIONS))) CGO_ENABLED=1 BUILD_TAGS += rocksdb - ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb + ldflags += -X github.com/eligion/cosmos-sdk/types.DBBackend=rocksdb endif # handle boltdb ifeq (boltdb,$(findstring boltdb,$(COSMOS_BUILD_OPTIONS))) BUILD_TAGS += boltdb - ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=boltdb + ldflags += -X github.com/eligion/cosmos-sdk/types.DBBackend=boltdb endif ifeq (,$(findstring nostrip,$(COSMOS_BUILD_OPTIONS))) @@ -192,7 +192,7 @@ update-swagger-docs: statik .PHONY: update-swagger-docs godocs: - @echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/cosmos/cosmos-sdk/types" + @echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/eligion/cosmos-sdk/types" godoc -http=:6060 # This builds a docs site for each branch/tag in `./docs/versions` @@ -349,7 +349,7 @@ lint-go: format: find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs gofmt -w -s find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs misspell -w - find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs goimports -w -local github.com/cosmos/cosmos-sdk + find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs goimports -w -local github.com/eligion/cosmos-sdk .PHONY: format ############################################################################### @@ -359,12 +359,12 @@ format: DEVDOC_SAVE = docker commit `docker ps -a -n 1 -q` devdoc:local devdoc-init: - $(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/cosmos/cosmos-sdk" -w "/go/src/github.com/cosmos/cosmos-sdk" tendermint/devdoc echo + $(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/eligion/cosmos-sdk" -w "/go/src/github.com/eligion/cosmos-sdk" tendermint/devdoc echo # TODO make this safer $(call DEVDOC_SAVE) devdoc: - $(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/cosmos/cosmos-sdk" -w "/go/src/github.com/cosmos/cosmos-sdk" devdoc:local bash + $(DOCKER) run -it -v "$(CURDIR):/go/src/github.com/eligion/cosmos-sdk" -w "/go/src/github.com/eligion/cosmos-sdk" devdoc:local bash devdoc-save: # TODO make this safer diff --git a/README.md b/README.md index f9f6bedc51e2..334fc0921513 100644 --- a/README.md +++ b/README.md @@ -10,34 +10,34 @@ parent: ![banner](docs/cosmos-sdk-image.jpg) The Cosmos-SDK is a framework for building blockchain applications in Golang. diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 313c4105b324..368454bcf328 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -7,8 +7,8 @@ Highlights + Added a check in `x/upgrade` module's `BeginBlock` preventing accidental binary downgrades + Fix: the `/cosmos/tx/v1beta1/txs/{hash}` endpoint returns correct return code (404) for a non existing tx. -See the [Cosmos SDK v0.45.1 Changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.45.1/CHANGELOG.md) for the exhaustive list of all changes and check other fixes in 0.45.x release series. +See the [Cosmos SDK v0.45.1 Changelog](https://github.com/eligion/cosmos-sdk/blob/v0.45.1/CHANGELOG.md) for the exhaustive list of all changes and check other fixes in 0.45.x release series. -**Full Diff**: https://github.com/cosmos/cosmos-sdk/compare/v0.45.0...v0.45.1 +**Full Diff**: https://github.com/eligion/cosmos-sdk/compare/v0.45.0...v0.45.1 diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index b75bb232be97..3c2368bd2528 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -157,7 +157,7 @@ As rule of thumb, the following changes will **NOT** be automatically accepted i ### Stable Release Exception - Procedure -1. Check that the bug is either fixed or not reproducible in `master`. It is, in general, not appropriate to release bug fixes for stable releases without first testing them in `master`. Please apply the label [v0.43](https://github.com/cosmos/cosmos-sdk/milestone/26) to the issue. +1. Check that the bug is either fixed or not reproducible in `master`. It is, in general, not appropriate to release bug fixes for stable releases without first testing them in `master`. Please apply the label [v0.43](https://github.com/eligion/cosmos-sdk/milestone/26) to the issue. 2. Add a comment to the issue and ensure it contains the following information (see the bug template below): * **[Impact]** An explanation of the bug on users and justification for backporting the fix to the stable release. diff --git a/SECURITY.md b/SECURITY.md index ecaa150ff4a0..ac64b0c1f5a7 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -17,34 +17,34 @@ in for Tendermint and other lower-level libraries (eg. [IAVL](https://github.com ### Core packages -- [`/baseapp`](https://github.com/cosmos/cosmos-sdk/tree/master/baseapp) -- [`/crypto`](https://github.com/cosmos/cosmos-sdk/tree/master/crypto) -- [`/types`](https://github.com/cosmos/cosmos-sdk/tree/master/types) -- [`/store`](https://github.com/cosmos/cosmos-sdk/tree/master/store) +- [`/baseapp`](https://github.com/eligion/cosmos-sdk/tree/master/baseapp) +- [`/crypto`](https://github.com/eligion/cosmos-sdk/tree/master/crypto) +- [`/types`](https://github.com/eligion/cosmos-sdk/tree/master/types) +- [`/store`](https://github.com/eligion/cosmos-sdk/tree/master/store) ### Modules -- [`x/auth`](https://github.com/cosmos/cosmos-sdk/tree/master/x/auth) -- [`x/bank`](https://github.com/cosmos/cosmos-sdk/tree/master/x/bank) -- [`x/capability`](https://github.com/cosmos/cosmos-sdk/tree/master/x/capability) -- [`x/staking`](https://github.com/cosmos/cosmos-sdk/tree/master/x/staking) -- [`x/slashing`](https://github.com/cosmos/cosmos-sdk/tree/master/x/slashing) -- [`x/evidence`](https://github.com/cosmos/cosmos-sdk/tree/master/x/evidence) -- [`x/distribution`](https://github.com/cosmos/cosmos-sdk/tree/master/x/distribution) -- [`x/ibc`](https://github.com/cosmos/cosmos-sdk/tree/master/x/ibc) -- [`x/ibc-transfer`](https://github.com/cosmos/cosmos-sdk/tree/master/x/ibc-transfer) -- [`x/mint`](https://github.com/cosmos/cosmos-sdk/tree/master/x/mint) +- [`x/auth`](https://github.com/eligion/cosmos-sdk/tree/master/x/auth) +- [`x/bank`](https://github.com/eligion/cosmos-sdk/tree/master/x/bank) +- [`x/capability`](https://github.com/eligion/cosmos-sdk/tree/master/x/capability) +- [`x/staking`](https://github.com/eligion/cosmos-sdk/tree/master/x/staking) +- [`x/slashing`](https://github.com/eligion/cosmos-sdk/tree/master/x/slashing) +- [`x/evidence`](https://github.com/eligion/cosmos-sdk/tree/master/x/evidence) +- [`x/distribution`](https://github.com/eligion/cosmos-sdk/tree/master/x/distribution) +- [`x/ibc`](https://github.com/eligion/cosmos-sdk/tree/master/x/ibc) +- [`x/ibc-transfer`](https://github.com/eligion/cosmos-sdk/tree/master/x/ibc-transfer) +- [`x/mint`](https://github.com/eligion/cosmos-sdk/tree/master/x/mint) We are interested in bugs in other modules, however the above are most likely to have significant vulnerabilities, due to the complexity / nuance involved. We -also recommend you to read the [specification](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/README.md) of each module before digging into +also recommend you to read the [specification](https://github.com/eligion/cosmos-sdk/blob/master/docs/building-modules/README.md) of each module before digging into the code. ### How we process Tx parameters - Integer operations on tx parameters, especially `sdk.Int` / `sdk.Dec` - Gas calculation & parameter choices -- Tx signature verification (see [`x/auth/ante`](https://github.com/cosmos/cosmos-sdk/tree/master/x/auth/ante)) +- Tx signature verification (see [`x/auth/ante`](https://github.com/eligion/cosmos-sdk/tree/master/x/auth/ante)) - Possible Node DoS vectors (perhaps due to gas weighting / non constant timing) ### Handling private keys @@ -59,7 +59,7 @@ The Cosmos SDK team uses the following disclosure process: 1. After a security report is received, the Cosmos SDK team works to verify the issue and confirm its severity level using Common Vulnerability Scoring System (CVSS). 1. The Cosmos SDK team collaborates with the Tendermint and Gaia teams to determine the vulnerability’s potential impact on the Cosmos Hub and partners. -1. Patches are prepared in private repositories for eligible releases of Cosmos SDK. See [Stable Releases](https://github.com/cosmos/cosmos-sdk/blob/master/STABLE_RELEASES.md) for a list of eligible releases. +1. Patches are prepared in private repositories for eligible releases of Cosmos SDK. See [Stable Releases](https://github.com/eligion/cosmos-sdk/blob/master/STABLE_RELEASES.md) for a list of eligible releases. 1. If it is determined that a CVE-ID is required, we request a CVE through a CVE Numbering Authority. 1. We notify the community that a security release is coming to give users time to prepare their systems for the update. Notifications can include forum posts, tweets, and emails to partners and validators. 1. 24 hours after the notification, fixes are applied publicly and new releases are issued. diff --git a/baseapp/abci.go b/baseapp/abci.go index 80d0011dca36..94af1a177815 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -16,11 +16,11 @@ import ( "google.golang.org/grpc/codes" grpcstatus "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/codec" - snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec" + snapshottypes "github.com/eligion/cosmos-sdk/snapshots/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // InitChain implements the ABCI interface. It runs the initialization logic @@ -403,7 +403,7 @@ func (app *BaseApp) Query(req abci.RequestQuery) (res abci.ResponseQuery) { defer telemetry.MeasureSince(time.Now(), "abci", "query") // Add panic recovery for all queries. - // ref: https://github.com/cosmos/cosmos-sdk/pull/8039 + // ref: https://github.com/eligion/cosmos-sdk/pull/8039 defer func() { if r := recover(); r != nil { res = sdkerrors.QueryResult(sdkerrors.Wrapf(sdkerrors.ErrPanic, "%v", r)) diff --git a/baseapp/abci_test.go b/baseapp/abci_test.go index 8a61a0aebfc2..7e3c18e0ab01 100644 --- a/baseapp/abci_test.go +++ b/baseapp/abci_test.go @@ -9,7 +9,7 @@ import ( tmprototypes "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestGetBlockRentionHeight(t *testing.T) { @@ -119,7 +119,7 @@ func TestGetBlockRentionHeight(t *testing.T) { } // Test and ensure that negative heights always cause errors. -// See issue https://github.com/cosmos/cosmos-sdk/issues/7662. +// See issue https://github.com/eligion/cosmos-sdk/issues/7662. func TestBaseAppCreateQueryContextRejectsNegativeHeights(t *testing.T) { t.Parallel() diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index 3a73f6ef20d9..82bcb6dcbfdd 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -13,13 +13,13 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/snapshots" - "github.com/cosmos/cosmos-sdk/store" - "github.com/cosmos/cosmos-sdk/store/rootmulti" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/snapshots" + "github.com/eligion/cosmos-sdk/store" + "github.com/eligion/cosmos-sdk/store/rootmulti" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) const ( @@ -550,7 +550,7 @@ func (app *BaseApp) getContextForTx(mode runTxMode, txBytes []byte) sdk.Context // a branched multi-store. func (app *BaseApp) cacheTxContext(ctx sdk.Context, txBytes []byte) (sdk.Context, sdk.CacheMultiStore) { ms := ctx.MultiStore() - // TODO: https://github.com/cosmos/cosmos-sdk/issues/2824 + // TODO: https://github.com/eligion/cosmos-sdk/issues/2824 msCache := ms.CacheMultiStore() if msCache.TracingEnabled() { msCache = msCache.SetTracingContext( @@ -634,7 +634,7 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte) (gInfo sdk.GasInfo, re // Branch context before AnteHandler call in case it aborts. // This is required for both CheckTx and DeliverTx. - // Ref: https://github.com/cosmos/cosmos-sdk/issues/2772 + // Ref: https://github.com/eligion/cosmos-sdk/issues/2772 // // NOTE: Alternatively, we could require that AnteHandler ensures that // writes do not happen if aborted/failed. This may have some diff --git a/baseapp/baseapp_test.go b/baseapp/baseapp_test.go index df891e136936..03d04f7b6853 100644 --- a/baseapp/baseapp_test.go +++ b/baseapp/baseapp_test.go @@ -21,15 +21,15 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/snapshots" - snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types" - "github.com/cosmos/cosmos-sdk/store/rootmulti" - store "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/snapshots" + snapshottypes "github.com/eligion/cosmos-sdk/snapshots/types" + "github.com/eligion/cosmos-sdk/store/rootmulti" + store "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) var ( diff --git a/baseapp/block_gas_test.go b/baseapp/block_gas_test.go index 9a1be3a5f48f..fdc6bf7a7c94 100644 --- a/baseapp/block_gas_test.go +++ b/baseapp/block_gas_test.go @@ -12,19 +12,19 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - xauthsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + txtypes "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx/signing" + xauthsigning "github.com/eligion/cosmos-sdk/x/auth/signing" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" ) var blockMaxGas = uint64(simapp.DefaultConsensusParams.Block.MaxGas) diff --git a/baseapp/grpcrouter.go b/baseapp/grpcrouter.go index 9c15b695176c..204e6f2ec19d 100644 --- a/baseapp/grpcrouter.go +++ b/baseapp/grpcrouter.go @@ -3,7 +3,7 @@ package baseapp import ( "fmt" - "github.com/cosmos/cosmos-sdk/client/grpc/reflection" + "github.com/eligion/cosmos-sdk/client/grpc/reflection" gogogrpc "github.com/gogo/protobuf/grpc" abci "github.com/tendermint/tendermint/abci/types" @@ -11,8 +11,8 @@ import ( "google.golang.org/grpc/encoding" "google.golang.org/grpc/encoding/proto" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var protoCodec = encoding.GetCodec(proto.Name) diff --git a/baseapp/grpcrouter_helpers.go b/baseapp/grpcrouter_helpers.go index 2ea74b55fc65..063746f09776 100644 --- a/baseapp/grpcrouter_helpers.go +++ b/baseapp/grpcrouter_helpers.go @@ -8,8 +8,8 @@ import ( abci "github.com/tendermint/tendermint/abci/types" "google.golang.org/grpc" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // QueryServiceTestHelper provides a helper for making grpc query service diff --git a/baseapp/grpcrouter_test.go b/baseapp/grpcrouter_test.go index 64b2a97b9b00..accf43ab15df 100644 --- a/baseapp/grpcrouter_test.go +++ b/baseapp/grpcrouter_test.go @@ -9,11 +9,11 @@ import ( "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestGRPCGatewayRouter(t *testing.T) { diff --git a/baseapp/grpcserver.go b/baseapp/grpcserver.go index 68cc14e66545..0e46ce80f560 100644 --- a/baseapp/grpcserver.go +++ b/baseapp/grpcserver.go @@ -12,9 +12,9 @@ import ( "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" ) // GRPCQueryRouter returns the GRPCQueryRouter of a BaseApp. diff --git a/baseapp/msg_service_router.go b/baseapp/msg_service_router.go index 1b7f8f89bf73..36c4d1069ad8 100644 --- a/baseapp/msg_service_router.go +++ b/baseapp/msg_service_router.go @@ -8,9 +8,9 @@ import ( "github.com/gogo/protobuf/proto" "google.golang.org/grpc" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // MsgServiceRouter routes fully-qualified Msg service methods to their handler. diff --git a/baseapp/msg_service_router_test.go b/baseapp/msg_service_router_test.go index d599d0cbe47a..7236ee343fc0 100644 --- a/baseapp/msg_service_router_test.go +++ b/baseapp/msg_service_router_test.go @@ -10,12 +10,12 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/types/tx/signing" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" ) func TestRegisterMsgService(t *testing.T) { diff --git a/baseapp/options.go b/baseapp/options.go index 5d336cb1bf15..a896bef714a5 100644 --- a/baseapp/options.go +++ b/baseapp/options.go @@ -6,10 +6,10 @@ import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/snapshots" - "github.com/cosmos/cosmos-sdk/store" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/snapshots" + "github.com/eligion/cosmos-sdk/store" + sdk "github.com/eligion/cosmos-sdk/types" ) // File for storing in-package BaseApp optional functions, diff --git a/baseapp/params.go b/baseapp/params.go index 14701d524798..66137272609d 100644 --- a/baseapp/params.go +++ b/baseapp/params.go @@ -7,7 +7,7 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // Paramspace defines the parameter subspace to be used for the paramstore. diff --git a/baseapp/params_test.go b/baseapp/params_test.go index 6507e17a8aea..2963baaeefec 100644 --- a/baseapp/params_test.go +++ b/baseapp/params_test.go @@ -7,7 +7,7 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/baseapp" ) func TestValidateBlockParams(t *testing.T) { diff --git a/baseapp/queryrouter.go b/baseapp/queryrouter.go index 1727b2ab2df6..2518ccb26527 100644 --- a/baseapp/queryrouter.go +++ b/baseapp/queryrouter.go @@ -3,7 +3,7 @@ package baseapp import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type QueryRouter struct { diff --git a/baseapp/queryrouter_test.go b/baseapp/queryrouter_test.go index c7637f17000e..daadc19afce5 100644 --- a/baseapp/queryrouter_test.go +++ b/baseapp/queryrouter_test.go @@ -7,7 +7,7 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var testQuerier = func(_ sdk.Context, _ []string, _ abci.RequestQuery) ([]byte, error) { diff --git a/baseapp/recovery.go b/baseapp/recovery.go index 7f0687800c65..6357380fc21d 100644 --- a/baseapp/recovery.go +++ b/baseapp/recovery.go @@ -4,8 +4,8 @@ import ( "fmt" "runtime/debug" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // RecoveryHandler handles recovery() object. diff --git a/baseapp/router.go b/baseapp/router.go index 7e2e70a0c6f3..fce7588667dd 100644 --- a/baseapp/router.go +++ b/baseapp/router.go @@ -3,7 +3,7 @@ package baseapp import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type Router struct { diff --git a/baseapp/router_test.go b/baseapp/router_test.go index 1e11dc0ca089..c1ab2fd27a0a 100644 --- a/baseapp/router_test.go +++ b/baseapp/router_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var testHandler = func(_ sdk.Context, _ sdk.Msg) (*sdk.Result, error) { diff --git a/baseapp/state.go b/baseapp/state.go index addc89cb342c..8e6ce92b53fc 100644 --- a/baseapp/state.go +++ b/baseapp/state.go @@ -1,7 +1,7 @@ package baseapp import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type state struct { diff --git a/baseapp/test_helpers.go b/baseapp/test_helpers.go index 4d5ef1b75bc5..d1354233ac02 100644 --- a/baseapp/test_helpers.go +++ b/baseapp/test_helpers.go @@ -3,8 +3,8 @@ package baseapp import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) func (app *BaseApp) Check(txEncoder sdk.TxEncoder, tx sdk.Tx) (sdk.GasInfo, *sdk.Result, error) { diff --git a/client/account_retriever.go b/client/account_retriever.go index 8e2fd14c1fcd..692ae21a7847 100644 --- a/client/account_retriever.go +++ b/client/account_retriever.go @@ -1,8 +1,8 @@ package client import ( - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // Account defines a read-only version of the auth module's AccountI. diff --git a/client/broadcast.go b/client/broadcast.go index f3573a5c5182..a2927ebeacd1 100644 --- a/client/broadcast.go +++ b/client/broadcast.go @@ -10,10 +10,10 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/client/flags" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx" ) // BroadcastTx broadcasts a transactions either synchronously or asynchronously diff --git a/client/broadcast_test.go b/client/broadcast_test.go index 5ac6e47c24b1..408e529bc1a9 100644 --- a/client/broadcast_test.go +++ b/client/broadcast_test.go @@ -12,8 +12,8 @@ import ( ctypes "github.com/tendermint/tendermint/rpc/core/types" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client/flags" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/client/flags" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) type MockClient struct { diff --git a/client/cmd.go b/client/cmd.go index 0e401a9250f6..c60f2e9da681 100644 --- a/client/cmd.go +++ b/client/cmd.go @@ -9,9 +9,9 @@ import ( "github.com/spf13/pflag" "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/keyring" + sdk "github.com/eligion/cosmos-sdk/types" ) // ClientContextKey defines the context key used to retrieve a client.Context from @@ -244,7 +244,7 @@ func readTxCommandFlags(clientCtx Context, flagSet *pflag.FlagSet) (Context, err // If the `from` signer account is a ledger key, we need to use // SIGN_MODE_AMINO_JSON, because ledger doesn't support proto yet. - // ref: https://github.com/cosmos/cosmos-sdk/issues/8109 + // ref: https://github.com/eligion/cosmos-sdk/issues/8109 if keyType == keyring.TypeLedger && clientCtx.SignModeStr != flags.SignModeLegacyAminoJSON { fmt.Println("Default sign-mode 'direct' not supported by Ledger, using sign-mode 'amino-json'.") clientCtx = clientCtx.WithSignModeStr(flags.SignModeLegacyAminoJSON) diff --git a/client/cmd_test.go b/client/cmd_test.go index 65161fe4752b..10036c223a4c 100644 --- a/client/cmd_test.go +++ b/client/cmd_test.go @@ -8,9 +8,9 @@ import ( "github.com/spf13/cobra" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/testutil" ) func TestValidateCmd(t *testing.T) { diff --git a/client/config/cmd.go b/client/config/cmd.go index 1da8afdaef8c..15a4dcf968a2 100644 --- a/client/config/cmd.go +++ b/client/config/cmd.go @@ -9,8 +9,8 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" ) // Cmd returns a CLI command to interactively create an application CLI diff --git a/client/config/config.go b/client/config/config.go index 6297cf2c26b1..5bef10cb6237 100644 --- a/client/config/config.go +++ b/client/config/config.go @@ -5,7 +5,7 @@ import ( "os" "path/filepath" - "github.com/cosmos/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client" ) // Default constants @@ -83,7 +83,7 @@ func ReadFromClientConfig(ctx client.Context) (client.Context, error) { ctx = ctx.WithKeyring(keyring) - // https://github.com/cosmos/cosmos-sdk/issues/8986 + // https://github.com/eligion/cosmos-sdk/issues/8986 client, err := client.NewClientFromNode(conf.Node) if err != nil { return ctx, fmt.Errorf("couldn't get client from nodeURI: %v", err) diff --git a/client/config/config_test.go b/client/config/config_test.go index c058edf8301a..47308670c294 100644 --- a/client/config/config_test.go +++ b/client/config/config_test.go @@ -9,11 +9,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/config" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/x/staking/client/cli" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/config" + "github.com/eligion/cosmos-sdk/client/flags" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/x/staking/client/cli" ) const ( diff --git a/client/context.go b/client/context.go index eedbdf6fdb65..7c6de78d7b8d 100644 --- a/client/context.go +++ b/client/context.go @@ -14,10 +14,10 @@ import ( "github.com/pkg/errors" rpcclient "github.com/tendermint/tendermint/rpc/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/keyring" + sdk "github.com/eligion/cosmos-sdk/types" ) // Context implements a typical context created in SDK modules for transaction @@ -73,7 +73,7 @@ func (ctx Context) WithKeyringOptions(opts ...keyring.Option) Context { func (ctx Context) WithInput(r io.Reader) Context { // convert to a bufio.Reader to have a shared buffer between the keyring and the // the Commands, ensuring a read from one advance the read pointer for the other. - // see https://github.com/cosmos/cosmos-sdk/issues/9566. + // see https://github.com/eligion/cosmos-sdk/issues/9566. ctx.Input = bufio.NewReader(r) return ctx } diff --git a/client/context_test.go b/client/context_test.go index 9c2e8d4ab19e..13733b04c3eb 100644 --- a/client/context_test.go +++ b/client/context_test.go @@ -9,13 +9,13 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) func TestMain(m *testing.M) { diff --git a/client/debug/main.go b/client/debug/main.go index 03358fd7c2e4..5257c9cb7b40 100644 --- a/client/debug/main.go +++ b/client/debug/main.go @@ -8,10 +8,10 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/client" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" ) // Cmd creates a main CLI command diff --git a/client/docs/statik/init.go b/client/docs/statik/init.go index db70716be44b..715ffd5fa131 100644 --- a/client/docs/statik/init.go +++ b/client/docs/statik/init.go @@ -1,3 +1,3 @@ package statik -// This just for fixing the error in importing empty github.com/cosmos/cosmos-sdk/client/docs/statik +// This just for fixing the error in importing empty github.com/eligion/cosmos-sdk/client/docs/statik diff --git a/client/docs/swagger-ui/swagger.yaml b/client/docs/swagger-ui/swagger.yaml index 4419c7b9f62a..3738f7371dec 100644 --- a/client/docs/swagger-ui/swagger.yaml +++ b/client/docs/swagger-ui/swagger.yaml @@ -37848,7 +37848,7 @@ definitions: called memo, but should be called `note` instead (see - https://github.com/cosmos/cosmos-sdk/issues/9122). + https://github.com/eligion/cosmos-sdk/issues/9122). timeout_height: type: string format: uint64 @@ -38425,7 +38425,7 @@ definitions: memo, but should be called `note` instead (see - https://github.com/cosmos/cosmos-sdk/issues/9122). + https://github.com/eligion/cosmos-sdk/issues/9122). timeout_height: type: string format: uint64 diff --git a/client/flags/flags.go b/client/flags/flags.go index 1c0e1585c0ff..82d0c1e01303 100644 --- a/client/flags/flags.go +++ b/client/flags/flags.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/crypto/keyring" ) const ( diff --git a/client/flags/flags_test.go b/client/flags/flags_test.go index 5cc591bebbe7..d8a45282f6c2 100644 --- a/client/flags/flags_test.go +++ b/client/flags/flags_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/flags" ) func TestParseGasSetting(t *testing.T) { diff --git a/client/grpc/reflection/reflection.go b/client/grpc/reflection/reflection.go index eb07ea86bd73..573b6f134bf9 100644 --- a/client/grpc/reflection/reflection.go +++ b/client/grpc/reflection/reflection.go @@ -6,7 +6,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" ) type reflectionServiceServer struct { diff --git a/client/grpc/tmservice/block.go b/client/grpc/tmservice/block.go index 554156982dda..b4e5d05077f4 100644 --- a/client/grpc/tmservice/block.go +++ b/client/grpc/tmservice/block.go @@ -5,7 +5,7 @@ import ( ctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/cosmos/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client" ) func getBlock(ctx context.Context, clientCtx client.Context, height *int64) (*ctypes.ResultBlock, error) { diff --git a/client/grpc/tmservice/query.pb.go b/client/grpc/tmservice/query.pb.go index 6510f3c3bc02..ee45ca0f0b9d 100644 --- a/client/grpc/tmservice/query.pb.go +++ b/client/grpc/tmservice/query.pb.go @@ -6,8 +6,8 @@ package tmservice import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" - query "github.com/cosmos/cosmos-sdk/types/query" + types "github.com/eligion/cosmos-sdk/codec/types" + query "github.com/eligion/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/client/grpc/tmservice/service.go b/client/grpc/tmservice/service.go index cd6e7e5313ef..2b917010f93c 100644 --- a/client/grpc/tmservice/service.go +++ b/client/grpc/tmservice/service.go @@ -8,12 +8,12 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/rpc" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - qtypes "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/rpc" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + qtypes "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/version" ) // This is the struct that we will implement all the handlers on. diff --git a/client/grpc/tmservice/service_test.go b/client/grpc/tmservice/service_test.go index 3de92411c9f7..dde7ee8dd116 100644 --- a/client/grpc/tmservice/service_test.go +++ b/client/grpc/tmservice/service_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client/grpc/tmservice" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil/network" - qtypes "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/client/grpc/tmservice" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/testutil/network" + qtypes "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/version" ) type IntegrationTestSuite struct { diff --git a/client/grpc/tmservice/status.go b/client/grpc/tmservice/status.go index 9e9c3d200943..62d42c4fcc40 100644 --- a/client/grpc/tmservice/status.go +++ b/client/grpc/tmservice/status.go @@ -5,7 +5,7 @@ import ( ctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/cosmos/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client" ) func getNodeStatus(ctx context.Context, clientCtx client.Context) (*ctypes.ResultStatus, error) { diff --git a/client/grpc_query.go b/client/grpc_query.go index 597b82985c22..1ef9cb6212b6 100644 --- a/client/grpc_query.go +++ b/client/grpc_query.go @@ -13,10 +13,10 @@ import ( "google.golang.org/grpc/encoding/proto" "google.golang.org/grpc/metadata" - "github.com/cosmos/cosmos-sdk/codec/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - "github.com/cosmos/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/codec/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/types/tx" ) var _ gogogrpc.ClientConn = Context{} diff --git a/client/grpc_query_test.go b/client/grpc_query_test.go index c4d2f024a07b..57a5f75b77c9 100644 --- a/client/grpc_query_test.go +++ b/client/grpc_query_test.go @@ -11,11 +11,11 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/metadata" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) type IntegrationTestSuite struct { diff --git a/client/keys/add.go b/client/keys/add.go index d9713fd2d57a..df586b28af6f 100644 --- a/client/keys/add.go +++ b/client/keys/add.go @@ -10,14 +10,14 @@ import ( bip39 "github.com/cosmos/go-bip39" "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/input" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/input" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/client/keys/add_ledger_test.go b/client/keys/add_ledger_test.go index 69ccb32a4289..6b7135f16151 100644 --- a/client/keys/add_ledger_test.go +++ b/client/keys/add_ledger_test.go @@ -12,12 +12,12 @@ import ( "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_runAddCmdLedgerWithCustomCoinType(t *testing.T) { diff --git a/client/keys/add_test.go b/client/keys/add_test.go index f59848a8d1cf..23f29b16557e 100644 --- a/client/keys/add_test.go +++ b/client/keys/add_test.go @@ -11,14 +11,14 @@ import ( "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" bip39 "github.com/cosmos/go-bip39" ) diff --git a/client/keys/codec.go b/client/keys/codec.go index 3b1f6fc38b3c..7a3661671508 100644 --- a/client/keys/codec.go +++ b/client/keys/codec.go @@ -1,11 +1,11 @@ package keys import ( - "github.com/cosmos/cosmos-sdk/codec" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/codec" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" ) -// TODO: remove this file https://github.com/cosmos/cosmos-sdk/issues/8047 +// TODO: remove this file https://github.com/eligion/cosmos-sdk/issues/8047 // KeysCdc defines codec to be used with key operations var KeysCdc *codec.LegacyAmino diff --git a/client/keys/codec_test.go b/client/keys/codec_test.go index f61792e600df..d87486afd321 100644 --- a/client/keys/codec_test.go +++ b/client/keys/codec_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client/keys" - "github.com/cosmos/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/client/keys" + "github.com/eligion/cosmos-sdk/crypto/keyring" ) type testCases struct { diff --git a/client/keys/delete.go b/client/keys/delete.go index e0921710141f..c47f01eeec1d 100644 --- a/client/keys/delete.go +++ b/client/keys/delete.go @@ -3,9 +3,9 @@ package keys import ( "bufio" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/input" - "github.com/cosmos/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/input" + "github.com/eligion/cosmos-sdk/crypto/keyring" "github.com/spf13/cobra" ) diff --git a/client/keys/delete_test.go b/client/keys/delete_test.go index 77686b910bd7..863f10d79e2b 100644 --- a/client/keys/delete_test.go +++ b/client/keys/delete_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_runDeleteCmd(t *testing.T) { diff --git a/client/keys/export.go b/client/keys/export.go index 13491b5e839a..5b2689e474dc 100644 --- a/client/keys/export.go +++ b/client/keys/export.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/input" - "github.com/cosmos/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/input" + "github.com/eligion/cosmos-sdk/crypto/keyring" ) const ( diff --git a/client/keys/export_test.go b/client/keys/export_test.go index 85a0fcaf5b15..baac212f6a8c 100644 --- a/client/keys/export_test.go +++ b/client/keys/export_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/keyring" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_runExportCmd(t *testing.T) { diff --git a/client/keys/import.go b/client/keys/import.go index 36662a8dd2e6..0b4cb202d263 100644 --- a/client/keys/import.go +++ b/client/keys/import.go @@ -6,8 +6,8 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/input" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/input" ) // ImportKeyCommand imports private keys from a keyfile. diff --git a/client/keys/import_test.go b/client/keys/import_test.go index ac05ed567daa..a8b138c7a43f 100644 --- a/client/keys/import_test.go +++ b/client/keys/import_test.go @@ -10,11 +10,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_runImportCmd(t *testing.T) { diff --git a/client/keys/list.go b/client/keys/list.go index 9aae471db521..4d813dd402ca 100644 --- a/client/keys/list.go +++ b/client/keys/list.go @@ -3,7 +3,7 @@ package keys import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client" ) const flagListNames = "list-names" diff --git a/client/keys/list_test.go b/client/keys/list_test.go index d7ccfb2e9e95..b4d8f5fd85c5 100644 --- a/client/keys/list_test.go +++ b/client/keys/list_test.go @@ -8,13 +8,13 @@ import ( "github.com/spf13/cobra" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_runListCmd(t *testing.T) { diff --git a/client/keys/migrate.go b/client/keys/migrate.go index 321750d9e875..fa2a7837dcd1 100644 --- a/client/keys/migrate.go +++ b/client/keys/migrate.go @@ -9,10 +9,10 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/input" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/input" + "github.com/eligion/cosmos-sdk/crypto/keyring" + sdk "github.com/eligion/cosmos-sdk/types" ) // migratePassphrase is used as a no-op migration key passphrase as a passphrase diff --git a/client/keys/migrate_test.go b/client/keys/migrate_test.go index 32746291c882..02a84161bef2 100644 --- a/client/keys/migrate_test.go +++ b/client/keys/migrate_test.go @@ -5,16 +5,16 @@ import ( "fmt" "testing" - "github.com/cosmos/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client" "github.com/stretchr/testify/require" "github.com/otiai10/copy" "github.com/stretchr/testify/assert" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil" ) func Test_runMigrateCmd(t *testing.T) { diff --git a/client/keys/mnemonic.go b/client/keys/mnemonic.go index c411612782e6..976ec6e826cd 100644 --- a/client/keys/mnemonic.go +++ b/client/keys/mnemonic.go @@ -8,7 +8,7 @@ import ( bip39 "github.com/cosmos/go-bip39" "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client/input" + "github.com/eligion/cosmos-sdk/client/input" ) const ( diff --git a/client/keys/mnemonic_test.go b/client/keys/mnemonic_test.go index c986e6230b5d..43a8315796be 100644 --- a/client/keys/mnemonic_test.go +++ b/client/keys/mnemonic_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil" ) func Test_RunMnemonicCmdNormal(t *testing.T) { diff --git a/client/keys/parse.go b/client/keys/parse.go index b1169d68cc0e..dab111c887ca 100644 --- a/client/keys/parse.go +++ b/client/keys/parse.go @@ -11,8 +11,8 @@ import ( "github.com/tendermint/tendermint/libs/cli" yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/bech32" ) func bech32Prefixes(config *sdk.Config) []string { diff --git a/client/keys/parse_test.go b/client/keys/parse_test.go index 687922db3c6c..872175000cf4 100644 --- a/client/keys/parse_test.go +++ b/client/keys/parse_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestParseKey(t *testing.T) { diff --git a/client/keys/root.go b/client/keys/root.go index 938a0d53a14c..768ec41336c2 100644 --- a/client/keys/root.go +++ b/client/keys/root.go @@ -4,7 +4,7 @@ import ( "github.com/spf13/cobra" "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/flags" ) // Commands registers a sub-tree of commands to interact with diff --git a/client/keys/show.go b/client/keys/show.go index 64ede012582f..4fb5a14646e1 100644 --- a/client/keys/show.go +++ b/client/keys/show.go @@ -7,13 +7,13 @@ import ( "github.com/spf13/cobra" "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/ledger" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerr "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/ledger" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerr "github.com/eligion/cosmos-sdk/types/errors" ) const ( diff --git a/client/keys/show_test.go b/client/keys/show_test.go index f05c1878dc91..4dd3653e044e 100644 --- a/client/keys/show_test.go +++ b/client/keys/show_test.go @@ -7,16 +7,16 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_multiSigKey_Properties(t *testing.T) { diff --git a/client/keys/types_test.go b/client/keys/types_test.go index 24428a5b9261..e2e721bb0805 100644 --- a/client/keys/types_test.go +++ b/client/keys/types_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client/keys" + "github.com/eligion/cosmos-sdk/client/keys" ) func TestConstructors(t *testing.T) { diff --git a/client/keys/utils.go b/client/keys/utils.go index 5e1daf1c4346..de70a0a86a9d 100644 --- a/client/keys/utils.go +++ b/client/keys/utils.go @@ -7,7 +7,7 @@ import ( yaml "gopkg.in/yaml.v2" - cryptokeyring "github.com/cosmos/cosmos-sdk/crypto/keyring" + cryptokeyring "github.com/eligion/cosmos-sdk/crypto/keyring" ) // available output formats. diff --git a/client/query.go b/client/query.go index 93e083fb80a7..ed4297c52df3 100644 --- a/client/query.go +++ b/client/query.go @@ -13,9 +13,9 @@ import ( tmbytes "github.com/tendermint/tendermint/libs/bytes" rpcclient "github.com/tendermint/tendermint/rpc/client" - "github.com/cosmos/cosmos-sdk/store/rootmulti" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/store/rootmulti" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // GetNode returns an RPC client. If the context's client is not defined, an diff --git a/client/query_test.go b/client/query_test.go index 14cc25ba9d97..f95bb18c60eb 100644 --- a/client/query_test.go +++ b/client/query_test.go @@ -7,7 +7,7 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) func (s *IntegrationTestSuite) TestQueryABCIHeight() { diff --git a/client/rest/rest.go b/client/rest/rest.go index 035b0f5dbb97..0f5e5a436cf0 100644 --- a/client/rest/rest.go +++ b/client/rest/rest.go @@ -8,7 +8,7 @@ import ( // DeprecationURL is the URL for migrating deprecated REST endpoints to newer ones. // TODO Switch to `/` (not `/master`) once v0.40 docs are deployed. -// https://github.com/cosmos/cosmos-sdk/issues/8019 +// https://github.com/eligion/cosmos-sdk/issues/8019 const DeprecationURL = "https://docs.cosmos.network/master/migrations/rest.html" // addHTTPDeprecationHeaders is a mux middleware function for adding HTTP diff --git a/client/rpc/block.go b/client/rpc/block.go index 530f7c45df73..5a60ebd48a83 100644 --- a/client/rpc/block.go +++ b/client/rpc/block.go @@ -9,10 +9,10 @@ import ( "github.com/gorilla/mux" "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/codec/legacy" - "github.com/cosmos/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/codec/legacy" + "github.com/eligion/cosmos-sdk/types/rest" ) // BlockCommand returns the verified block data for a given heights diff --git a/client/rpc/routes.go b/client/rpc/routes.go index 7934ece7c92b..20e08246ae9b 100644 --- a/client/rpc/routes.go +++ b/client/rpc/routes.go @@ -3,7 +3,7 @@ package rpc import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client" ) // Register REST endpoints. diff --git a/client/rpc/rpc_test.go b/client/rpc/rpc_test.go index adb7dac82d21..2b0d98043e19 100644 --- a/client/rpc/rpc_test.go +++ b/client/rpc/rpc_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/suite" ctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/cosmos/cosmos-sdk/client/rpc" - "github.com/cosmos/cosmos-sdk/codec/legacy" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/client/rpc" + "github.com/eligion/cosmos-sdk/codec/legacy" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/types/rest" ) type IntegrationTestSuite struct { diff --git a/client/rpc/status.go b/client/rpc/status.go index 82f65520245f..40d84b0fb830 100644 --- a/client/rpc/status.go +++ b/client/rpc/status.go @@ -10,12 +10,12 @@ import ( "github.com/tendermint/tendermint/p2p" ctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/version" ) // ValidatorInfo is info about the node's validator, same as Tendermint, diff --git a/client/rpc/validators.go b/client/rpc/validators.go index a6716df03f72..44623d839316 100644 --- a/client/rpc/validators.go +++ b/client/rpc/validators.go @@ -11,12 +11,12 @@ import ( "github.com/spf13/cobra" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" ) // TODO these next two functions feel kinda hacky based on their placement diff --git a/client/test_helpers.go b/client/test_helpers.go index 214184b50f17..d9cce8351952 100644 --- a/client/test_helpers.go +++ b/client/test_helpers.go @@ -3,8 +3,8 @@ package client import ( "fmt" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var ( diff --git a/client/tx/factory.go b/client/tx/factory.go index 2cb951922d0a..b10b5c1f2db4 100644 --- a/client/tx/factory.go +++ b/client/tx/factory.go @@ -3,11 +3,11 @@ package tx import ( "github.com/spf13/pflag" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/keyring" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) // Factory defines a client transaction factory that facilitates generating and diff --git a/client/tx/legacy.go b/client/tx/legacy.go index c8c345b57660..e33d745241d8 100644 --- a/client/tx/legacy.go +++ b/client/tx/legacy.go @@ -3,10 +3,10 @@ package tx import ( "fmt" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) // ConvertTxToStdTx converts a transaction to the legacy StdTx format diff --git a/client/tx/legacy_test.go b/client/tx/legacy_test.go index 03211e4a8e2f..6cf292138044 100644 --- a/client/tx/legacy_test.go +++ b/client/tx/legacy_test.go @@ -6,17 +6,17 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client" - tx2 "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - "github.com/cosmos/cosmos-sdk/types" - signing2 "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/tx" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + tx2 "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp/params" + "github.com/eligion/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/types" + signing2 "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/tx" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) const ( diff --git a/client/tx/tx.go b/client/tx/tx.go index 8e20be369bfd..413b4ff17687 100644 --- a/client/tx/tx.go +++ b/client/tx/tx.go @@ -11,17 +11,17 @@ import ( gogogrpc "github.com/gogo/protobuf/grpc" "github.com/spf13/pflag" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/input" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/input" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx/signing" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" ) // GenerateOrBroadcastTxCLI will either generate and print and unsigned transaction @@ -37,7 +37,7 @@ func GenerateOrBroadcastTxWithFactory(clientCtx client.Context, txf Factory, msg // Validate all msgs before generating or broadcasting the tx. // We were calling ValidateBasic separately in each CLI handler before. // Right now, we're factorizing that call inside this function. - // ref: https://github.com/cosmos/cosmos-sdk/pull/9236#discussion_r623803504 + // ref: https://github.com/eligion/cosmos-sdk/pull/9236#discussion_r623803504 for _, msg := range msgs { if err := msg.ValidateBasic(); err != nil { return err diff --git a/client/tx/tx_test.go b/client/tx/tx_test.go index b095d05b9e5d..058ca7a7a679 100644 --- a/client/tx/tx_test.go +++ b/client/tx/tx_test.go @@ -8,17 +8,17 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/grpc" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/signing" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + txtypes "github.com/eligion/cosmos-sdk/types/tx" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/signing" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) func NewTestTxConfig() client.TxConfig { diff --git a/client/tx_config.go b/client/tx_config.go index 8220e917b2bb..6218958ad430 100644 --- a/client/tx_config.go +++ b/client/tx_config.go @@ -1,9 +1,9 @@ package client import ( - sdk "github.com/cosmos/cosmos-sdk/types" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + sdk "github.com/eligion/cosmos-sdk/types" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) type ( diff --git a/client/utils.go b/client/utils.go index 944471bc90bd..d0524d65f7f9 100644 --- a/client/utils.go +++ b/client/utils.go @@ -4,9 +4,9 @@ import ( "github.com/spf13/pflag" rpchttp "github.com/tendermint/tendermint/rpc/client/http" - "github.com/cosmos/cosmos-sdk/client/flags" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/client/flags" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/query" ) // Paginate returns the correct starting and ending index for a paginated query, @@ -74,7 +74,7 @@ func ReadPageRequest(flagSet *pflag.FlagSet) (*query.PageRequest, error) { // NewClientFromNode sets up Client implementation that communicates with a Tendermint node over // JSON RPC and WebSockets // TODO: We might not need to manually append `/websocket`: -// https://github.com/cosmos/cosmos-sdk/issues/8986 +// https://github.com/eligion/cosmos-sdk/issues/8986 func NewClientFromNode(nodeURI string) (*rpchttp.HTTP, error) { return rpchttp.New(nodeURI, "/websocket") } diff --git a/client/utils_test.go b/client/utils_test.go index c8cb93a9f56d..c60b84115825 100644 --- a/client/utils_test.go +++ b/client/utils_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client" ) func TestPaginate(t *testing.T) { diff --git a/codec/amino.go b/codec/amino.go index fe22fd14fbd4..7729e73c90c3 100644 --- a/codec/amino.go +++ b/codec/amino.go @@ -10,7 +10,7 @@ import ( amino "github.com/tendermint/go-amino" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" ) // LegacyAmino defines a wrapper for an Amino codec that properly diff --git a/codec/amino_codec_test.go b/codec/amino_codec_test.go index 74d023319413..d8d317e31bfb 100644 --- a/codec/amino_codec_test.go +++ b/codec/amino_codec_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - "github.com/cosmos/cosmos-sdk/x/auth/client/cli" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/x/auth/client/cli" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) func createTestCodec() *codec.LegacyAmino { @@ -119,7 +119,7 @@ func TestAminoCodecUnpackAnyFails(t *testing.T) { } func TestAminoCodecFullDecodeAndEncode(t *testing.T) { - // This tx comes from https://github.com/cosmos/cosmos-sdk/issues/8117. + // This tx comes from https://github.com/eligion/cosmos-sdk/issues/8117. txSigned := `{"type":"cosmos-sdk/StdTx","value":{"msg":[{"type":"cosmos-sdk/MsgCreateValidator","value":{"description":{"moniker":"fulltest","identity":"satoshi","website":"example.com","details":"example inc"},"commission":{"rate":"0.500000000000000000","max_rate":"1.000000000000000000","max_change_rate":"0.200000000000000000"},"min_self_delegation":"1000000","delegator_address":"cosmos14pt0q5cwf38zt08uu0n6yrstf3rndzr5057jys","validator_address":"cosmosvaloper14pt0q5cwf38zt08uu0n6yrstf3rndzr52q28gr","pubkey":{"type":"tendermint/PubKeyEd25519","value":"CYrOiM3HtS7uv1B1OAkknZnFYSRpQYSYII8AtMMtev0="},"value":{"denom":"umuon","amount":"700000000"}}}],"fee":{"amount":[{"denom":"umuon","amount":"6000"}],"gas":"160000"},"signatures":[{"pub_key":{"type":"tendermint/PubKeySecp256k1","value":"AwAOXeWgNf1FjMaayrSnrOOKz+Fivr6DiI/i0x0sZCHw"},"signature":"RcnfS/u2yl7uIShTrSUlDWvsXo2p2dYu6WJC8VDVHMBLEQZWc8bsINSCjOnlsIVkUNNe1q/WCA9n3Gy1+0zhYA=="}],"memo":"","timeout_height":"0"}}` var legacyCdc = simapp.MakeTestEncodingConfig().Amino var tx legacytx.StdTx diff --git a/codec/any_test.go b/codec/any_test.go index 8b5ecaca3c07..a1b76cc08632 100644 --- a/codec/any_test.go +++ b/codec/any_test.go @@ -5,13 +5,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) func NewTestInterfaceRegistry() types.InterfaceRegistry { diff --git a/codec/codec.go b/codec/codec.go index 6da2f453f0c3..7128e51ed10b 100644 --- a/codec/codec.go +++ b/codec/codec.go @@ -3,7 +3,7 @@ package codec import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" ) type ( diff --git a/codec/codec_common_test.go b/codec/codec_common_test.go index 59af923d7920..d7bb1b0bb04f 100644 --- a/codec/codec_common_test.go +++ b/codec/codec_common_test.go @@ -6,9 +6,9 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) type interfaceMarshaler struct { diff --git a/codec/json.go b/codec/json.go index e01caa259936..5256feb81a14 100644 --- a/codec/json.go +++ b/codec/json.go @@ -6,7 +6,7 @@ import ( "github.com/gogo/protobuf/jsonpb" "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" ) var defaultJM = &jsonpb.Marshaler{OrigName: true, EmitDefaults: true, AnyResolver: nil} diff --git a/codec/legacy/codec.go b/codec/legacy/codec.go index a4a963b6d211..9e479e58e832 100644 --- a/codec/legacy/codec.go +++ b/codec/legacy/codec.go @@ -1,9 +1,9 @@ package legacy import ( - "github.com/cosmos/cosmos-sdk/codec" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/codec" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // Cdc defines a global generic sealed Amino codec to be used throughout sdk. It diff --git a/codec/proto_codec.go b/codec/proto_codec.go index b75f1d8355c0..95824fa848eb 100644 --- a/codec/proto_codec.go +++ b/codec/proto_codec.go @@ -9,7 +9,7 @@ import ( "github.com/gogo/protobuf/jsonpb" "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" ) // ProtoCodecMarshaler defines an interface for codecs that utilize Protobuf for both diff --git a/codec/proto_codec_test.go b/codec/proto_codec_test.go index 40d810deefc1..061e1d162246 100644 --- a/codec/proto_codec_test.go +++ b/codec/proto_codec_test.go @@ -8,9 +8,9 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) func createTestInterfaceRegistry() types.InterfaceRegistry { diff --git a/codec/types/any.go b/codec/types/any.go index 07c8de98c81e..a8b29785e3c4 100644 --- a/codec/types/any.go +++ b/codec/types/any.go @@ -5,7 +5,7 @@ import ( "github.com/gogo/protobuf/proto" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) type Any struct { diff --git a/codec/types/any_test.go b/codec/types/any_test.go index b9ddbe72ec39..01588e552001 100644 --- a/codec/types/any_test.go +++ b/codec/types/any_test.go @@ -7,8 +7,8 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) type errOnMarshal struct { @@ -26,7 +26,7 @@ func (eom *errOnMarshal) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro var eom = &errOnMarshal{} // Ensure that returning an error doesn't suddenly allocate and waste bytes. -// See https://github.com/cosmos/cosmos-sdk/issues/8537 +// See https://github.com/eligion/cosmos-sdk/issues/8537 func TestNewAnyWithCustomTypeURLWithErrorNoAllocation(t *testing.T) { var ms1, ms2 runtime.MemStats runtime.ReadMemStats(&ms1) diff --git a/codec/types/compat_test.go b/codec/types/compat_test.go index 56cb32e82cc0..e8b060b52f14 100644 --- a/codec/types/compat_test.go +++ b/codec/types/compat_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/suite" amino "github.com/tendermint/go-amino" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) type TypeWithInterface struct { diff --git a/codec/types/types_test.go b/codec/types/types_test.go index 24c83b4eb5f9..bed3635f8c6f 100644 --- a/codec/types/types_test.go +++ b/codec/types/types_test.go @@ -8,8 +8,8 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) func TestAnyPackUnpack(t *testing.T) { diff --git a/codec/unknownproto/benchmarks_test.go b/codec/unknownproto/benchmarks_test.go index 373dda7acfd5..de6e52585ee0 100644 --- a/codec/unknownproto/benchmarks_test.go +++ b/codec/unknownproto/benchmarks_test.go @@ -6,8 +6,8 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/unknownproto" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/codec/unknownproto" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) var n1BBlob []byte diff --git a/codec/unknownproto/regression_test.go b/codec/unknownproto/regression_test.go index 24c4056fbd39..0043a6eebf66 100644 --- a/codec/unknownproto/regression_test.go +++ b/codec/unknownproto/regression_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp" ) // Issue #7739: Catch parse errors resulting from unexpected EOF in @@ -18,7 +18,7 @@ func TestBadBytesPassedIntoDecoder(t *testing.T) { decoder := cfg.TxConfig.TxDecoder() tx, err := decoder(data) - // TODO: When issue https://github.com/cosmos/cosmos-sdk/issues/7846 + // TODO: When issue https://github.com/eligion/cosmos-sdk/issues/7846 // is addressed, we'll remove this .Contains check. require.Contains(t, err.Error(), io.ErrUnexpectedEOF.Error()) require.Nil(t, tx) diff --git a/codec/unknownproto/unknown_fields.go b/codec/unknownproto/unknown_fields.go index b9db6429628b..9924c3a6560e 100644 --- a/codec/unknownproto/unknown_fields.go +++ b/codec/unknownproto/unknown_fields.go @@ -15,7 +15,7 @@ import ( "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" "google.golang.org/protobuf/encoding/protowire" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" ) const bit11NonCritical = 1 << 10 diff --git a/codec/unknownproto/unknown_fields_test.go b/codec/unknownproto/unknown_fields_test.go index ad3926cedb55..30b559e6fa72 100644 --- a/codec/unknownproto/unknown_fields_test.go +++ b/codec/unknownproto/unknown_fields_test.go @@ -8,8 +8,8 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) func TestRejectUnknownFieldsRepeated(t *testing.T) { @@ -651,7 +651,7 @@ func TestRejectUnknownFieldsFlat(t *testing.T) { } } -// Issue https://github.com/cosmos/cosmos-sdk/issues/7222, we need to ensure that repeated +// Issue https://github.com/eligion/cosmos-sdk/issues/7222, we need to ensure that repeated // uint64 are recognized as packed. func TestPackedEncoding(t *testing.T) { data := testdata.TestRepeatedUints{Nums: []uint64{12, 13}} diff --git a/codec/yaml_test.go b/codec/yaml_test.go index e9206a74a3d7..4afcb76b1a3b 100644 --- a/codec/yaml_test.go +++ b/codec/yaml_test.go @@ -3,12 +3,12 @@ package codec_test import ( "testing" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) func TestMarshalYAML(t *testing.T) { diff --git a/contrib/githooks/pre-commit b/contrib/githooks/pre-commit index 2a9ad27af683..4d1781c4ca64 100755 --- a/contrib/githooks/pre-commit +++ b/contrib/githooks/pre-commit @@ -31,7 +31,7 @@ if [[ $STAGED_GO_FILES != "" ]]; then gofmt -w -s $file misspell -w $file - goimports -w -local github.com/cosmos/cosmos-sdk $file + goimports -w -local github.com/eligion/cosmos-sdk $file git add $file done diff --git a/cosmovisor/README.md b/cosmovisor/README.md index e263966a49a0..630ef5fe8a04 100644 --- a/cosmovisor/README.md +++ b/cosmovisor/README.md @@ -9,7 +9,7 @@ To install `cosmovisor`, run the following command: ``` -go get github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor +go get github.com/eligion/cosmos-sdk/cosmovisor/cmd/cosmovisor ``` ## Command Line Arguments And Environment Variables diff --git a/cosmovisor/cmd/cosmovisor/main.go b/cosmovisor/cmd/cosmovisor/main.go index a165acab38f6..84bf7fd8b19b 100644 --- a/cosmovisor/cmd/cosmovisor/main.go +++ b/cosmovisor/cmd/cosmovisor/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/cosmos/cosmos-sdk/cosmovisor" + "github.com/eligion/cosmos-sdk/cosmovisor" ) func main() { diff --git a/cosmovisor/go.mod b/cosmovisor/go.mod index fe6be0cdd4e0..1ea2afae4786 100644 --- a/cosmovisor/go.mod +++ b/cosmovisor/go.mod @@ -1,4 +1,4 @@ -module github.com/cosmos/cosmos-sdk/cosmovisor +module github.com/eligion/cosmos-sdk/cosmovisor go 1.14 diff --git a/cosmovisor/process_test.go b/cosmovisor/process_test.go index 6dc964f21ee0..927f7a2f38f3 100644 --- a/cosmovisor/process_test.go +++ b/cosmovisor/process_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/cosmovisor" + "github.com/eligion/cosmos-sdk/cosmovisor" ) type processTestSuite struct { @@ -78,7 +78,7 @@ func (s *processTestSuite) TestLaunchProcessWithDownloads() { s.Require().NoError(err) s.Require().True(doUpgrade) s.Require().Equal("", stderr.String()) - s.Require().Equal("Preparing auto-download some args\n"+`ERROR: UPGRADE "chain2" NEEDED at height: 49: {"binaries":{"linux/amd64":"https://github.com/cosmos/cosmos-sdk/raw/51249cb93130810033408934454841c98423ed4b/cosmovisor/testdata/repo/zip_binary/autod.zip?checksum=sha256:dc48829b4126ae95bc0db316c66d4e9da5f3db95e212665b6080638cca77e998"}} module=main`+"\n", stdout.String()) + s.Require().Equal("Preparing auto-download some args\n"+`ERROR: UPGRADE "chain2" NEEDED at height: 49: {"binaries":{"linux/amd64":"https://github.com/eligion/cosmos-sdk/raw/51249cb93130810033408934454841c98423ed4b/cosmovisor/testdata/repo/zip_binary/autod.zip?checksum=sha256:dc48829b4126ae95bc0db316c66d4e9da5f3db95e212665b6080638cca77e998"}} module=main`+"\n", stdout.String()) // ensure this is upgraded now and produces new output currentBin, err = cfg.CurrentBin() @@ -91,7 +91,7 @@ func (s *processTestSuite) TestLaunchProcessWithDownloads() { s.Require().NoError(err) s.Require().True(doUpgrade) s.Require().Equal("", stderr.String()) - s.Require().Equal("Chain 2 from zipped binary link to referral\nArgs: run --fast\n"+`ERROR: UPGRADE "chain3" NEEDED at height: 936: https://github.com/cosmos/cosmos-sdk/raw/0eae1a50612b8bf803336d35055896fbddaa1ddd/cosmovisor/testdata/repo/ref_zipped?checksum=sha256:0a428575de718ed3cf0771c9687eefaf6f19359977eca4d94a0abd0e11ef8e64 module=main`+"\n", stdout.String()) + s.Require().Equal("Chain 2 from zipped binary link to referral\nArgs: run --fast\n"+`ERROR: UPGRADE "chain3" NEEDED at height: 936: https://github.com/eligion/cosmos-sdk/raw/0eae1a50612b8bf803336d35055896fbddaa1ddd/cosmovisor/testdata/repo/ref_zipped?checksum=sha256:0a428575de718ed3cf0771c9687eefaf6f19359977eca4d94a0abd0e11ef8e64 module=main`+"\n", stdout.String()) // ended with one more upgrade currentBin, err = cfg.CurrentBin() diff --git a/cosmovisor/scanner.go b/cosmovisor/scanner.go index 81bca0717a4e..63a09aaf329f 100644 --- a/cosmovisor/scanner.go +++ b/cosmovisor/scanner.go @@ -6,9 +6,9 @@ import ( ) // Trim off whitespace around the info - match least greedy, grab as much space on both sides -// Defined here: https://github.com/cosmos/cosmos-sdk/blob/release/v0.38.2/x/upgrade/abci.go#L38 +// Defined here: https://github.com/eligion/cosmos-sdk/blob/release/v0.38.2/x/upgrade/abci.go#L38 // fmt.Sprintf("UPGRADE \"%s\" NEEDED at %s: %s", plan.Name, plan.DueAt(), plan.Info) -// DueAt defined here: https://github.com/cosmos/cosmos-sdk/blob/release/v0.38.2/x/upgrade/internal/types/plan.go#L73-L78 +// DueAt defined here: https://github.com/eligion/cosmos-sdk/blob/release/v0.38.2/x/upgrade/internal/types/plan.go#L73-L78 // // if !p.Time.IsZero() { // return fmt.Sprintf("time: %s", p.Time.UTC().Format(time.RFC3339)) diff --git a/cosmovisor/scanner_test.go b/cosmovisor/scanner_test.go index 9e42410c7be4..65b29c20a828 100644 --- a/cosmovisor/scanner_test.go +++ b/cosmovisor/scanner_test.go @@ -5,7 +5,7 @@ import ( "io" "testing" - "github.com/cosmos/cosmos-sdk/cosmovisor" + "github.com/eligion/cosmos-sdk/cosmovisor" "github.com/stretchr/testify/require" ) diff --git a/cosmovisor/testdata/download/cosmovisor/genesis/bin/autod b/cosmovisor/testdata/download/cosmovisor/genesis/bin/autod index 113cce7f797f..8edd42eb4af9 100755 --- a/cosmovisor/testdata/download/cosmovisor/genesis/bin/autod +++ b/cosmovisor/testdata/download/cosmovisor/genesis/bin/autod @@ -2,6 +2,6 @@ echo Preparing auto-download $@ sleep 1 -echo 'ERROR: UPGRADE "chain2" NEEDED at height: 49: {"binaries":{"linux/amd64":"https://github.com/cosmos/cosmos-sdk/raw/51249cb93130810033408934454841c98423ed4b/cosmovisor/testdata/repo/zip_binary/autod.zip?checksum=sha256:dc48829b4126ae95bc0db316c66d4e9da5f3db95e212665b6080638cca77e998"}} module=main' +echo 'ERROR: UPGRADE "chain2" NEEDED at height: 49: {"binaries":{"linux/amd64":"https://github.com/eligion/cosmos-sdk/raw/51249cb93130810033408934454841c98423ed4b/cosmovisor/testdata/repo/zip_binary/autod.zip?checksum=sha256:dc48829b4126ae95bc0db316c66d4e9da5f3db95e212665b6080638cca77e998"}} module=main' sleep 4 echo Never should be printed!!! diff --git a/cosmovisor/testdata/repo/ref_zipped b/cosmovisor/testdata/repo/ref_zipped index fd63c7161f81..9576e02cc563 100644 --- a/cosmovisor/testdata/repo/ref_zipped +++ b/cosmovisor/testdata/repo/ref_zipped @@ -1,5 +1,5 @@ { "binaries": { - "linux/amd64": "https://github.com/cosmos/cosmos-sdk/raw/aa5d6140ad4011bb33d472dca8246a0dcbe223ee/cosmovisor/testdata/repo/zip_directory/autod.zip?checksum=sha256:3784e4574cad69b67e34d4ea4425eff140063a3870270a301d6bb24a098a27ae" + "linux/amd64": "https://github.com/eligion/cosmos-sdk/raw/aa5d6140ad4011bb33d472dca8246a0dcbe223ee/cosmovisor/testdata/repo/zip_directory/autod.zip?checksum=sha256:3784e4574cad69b67e34d4ea4425eff140063a3870270a301d6bb24a098a27ae" } } \ No newline at end of file diff --git a/cosmovisor/testdata/repo/zip_binary/autod b/cosmovisor/testdata/repo/zip_binary/autod index 4ed1dea36de4..932019f5ff56 100755 --- a/cosmovisor/testdata/repo/zip_binary/autod +++ b/cosmovisor/testdata/repo/zip_binary/autod @@ -3,6 +3,6 @@ echo Chain 2 from zipped binary link to referral echo Args: $@ # note that we just have a url (follow the ref), not a full link -echo 'ERROR: UPGRADE "chain3" NEEDED at height: 936: https://github.com/cosmos/cosmos-sdk/raw/0eae1a50612b8bf803336d35055896fbddaa1ddd/cosmovisor/testdata/repo/ref_zipped?checksum=sha256:0a428575de718ed3cf0771c9687eefaf6f19359977eca4d94a0abd0e11ef8e64 module=main' +echo 'ERROR: UPGRADE "chain3" NEEDED at height: 936: https://github.com/eligion/cosmos-sdk/raw/0eae1a50612b8bf803336d35055896fbddaa1ddd/cosmovisor/testdata/repo/ref_zipped?checksum=sha256:0a428575de718ed3cf0771c9687eefaf6f19359977eca4d94a0abd0e11ef8e64 module=main' sleep 4 echo 'Do not print' diff --git a/cosmovisor/upgrade_test.go b/cosmovisor/upgrade_test.go index 2123df8e4035..e5d02da939ba 100644 --- a/cosmovisor/upgrade_test.go +++ b/cosmovisor/upgrade_test.go @@ -14,7 +14,7 @@ import ( "github.com/otiai10/copy" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/cosmovisor" + "github.com/eligion/cosmos-sdk/cosmovisor" ) type upgradeTestSuite struct { @@ -144,7 +144,7 @@ func (s *upgradeTestSuite) TestGetDownloadURL() { }, "follow reference": { info: ref, - url: "https://github.com/cosmos/cosmos-sdk/raw/aa5d6140ad4011bb33d472dca8246a0dcbe223ee/cosmovisor/testdata/repo/zip_directory/autod.zip?checksum=sha256:3784e4574cad69b67e34d4ea4425eff140063a3870270a301d6bb24a098a27ae", + url: "https://github.com/eligion/cosmos-sdk/raw/aa5d6140ad4011bb33d472dca8246a0dcbe223ee/cosmovisor/testdata/repo/zip_directory/autod.zip?checksum=sha256:3784e4574cad69b67e34d4ea4425eff140063a3870270a301d6bb24a098a27ae", }, "malformated reference target": { info: badref, diff --git a/crypto/armor.go b/crypto/armor.go index 201f1438c05e..13a6b62cd3c6 100644 --- a/crypto/armor.go +++ b/crypto/armor.go @@ -9,9 +9,9 @@ import ( "github.com/tendermint/tendermint/crypto/armor" "github.com/tendermint/tendermint/crypto/xsalsa20symmetric" - "github.com/cosmos/cosmos-sdk/codec/legacy" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec/legacy" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) const ( diff --git a/crypto/armor_test.go b/crypto/armor_test.go index 8c7c0c5257d7..8309ab060eea 100644 --- a/crypto/armor_test.go +++ b/crypto/armor_test.go @@ -13,13 +13,13 @@ import ( "github.com/tendermint/tendermint/crypto/armor" "github.com/tendermint/tendermint/crypto/xsalsa20symmetric" - "github.com/cosmos/cosmos-sdk/codec/legacy" - "github.com/cosmos/cosmos-sdk/crypto" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec/legacy" + "github.com/eligion/cosmos-sdk/crypto" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types" ) func TestArmorUnarmorPrivKey(t *testing.T) { diff --git a/crypto/bcrypt_readme.md b/crypto/bcrypt_readme.md index 5180e50bd007..1a413096a52e 100644 --- a/crypto/bcrypt_readme.md +++ b/crypto/bcrypt_readme.md @@ -13,7 +13,7 @@ Benchmarking To run Bcrypt benchmarks: ```bash -go test -v --bench github.com/cosmos/cosmos-sdk/crypto/keys/mintkey +go test -v --bench github.com/eligion/cosmos-sdk/crypto/keys/mintkey ``` On the test machine (midrange ThinkPad; i7 6600U), this results in: @@ -21,7 +21,7 @@ On the test machine (midrange ThinkPad; i7 6600U), this results in: ```bash goos: linux goarch: amd64 -pkg: github.com/cosmos/cosmos-sdk/crypto/keys/mintkey +pkg: github.com/eligion/cosmos-sdk/crypto/keys/mintkey BenchmarkBcryptGenerateFromPassword/benchmark-security-param-9-4 50 34609268 ns/op BenchmarkBcryptGenerateFromPassword/benchmark-security-param-10-4 20 67874471 ns/op BenchmarkBcryptGenerateFromPassword/benchmark-security-param-11-4 10 135515404 ns/op @@ -30,7 +30,7 @@ BenchmarkBcryptGenerateFromPassword/benchmark-security-param-13-4 BenchmarkBcryptGenerateFromPassword/benchmark-security-param-14-4 1 1083685904 ns/op BenchmarkBcryptGenerateFromPassword/benchmark-security-param-15-4 1 2183674041 ns/op PASS -ok github.com/cosmos/cosmos-sdk/crypto/keys/mintkey 12.093s +ok github.com/eligion/cosmos-sdk/crypto/keys/mintkey 12.093s ``` Benchmark results are in nanoseconds, so security parameter 12 takes about a quarter of a second to generate the Bcrypt key, security param 13 takes half a second, and so on. diff --git a/crypto/codec/amino.go b/crypto/codec/amino.go index 50119ed19858..25b5b44d67df 100644 --- a/crypto/codec/amino.go +++ b/crypto/codec/amino.go @@ -3,11 +3,11 @@ package codec import ( "github.com/tendermint/tendermint/crypto/sr25519" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // RegisterCrypto registers all crypto dependency types with the provided Amino diff --git a/crypto/codec/proto.go b/crypto/codec/proto.go index 7f38dee61433..beec4cb30616 100644 --- a/crypto/codec/proto.go +++ b/crypto/codec/proto.go @@ -1,12 +1,12 @@ package codec import ( - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256r1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // RegisterInterfaces registers the sdk.Tx interface. diff --git a/crypto/codec/tm.go b/crypto/codec/tm.go index 8c841e96b3c7..4e3aa3c949ce 100644 --- a/crypto/codec/tm.go +++ b/crypto/codec/tm.go @@ -5,10 +5,10 @@ import ( "github.com/tendermint/tendermint/crypto/encoding" tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // FromTmProtoPublicKey converts a TM's tmprotocrypto.PublicKey into our own PubKey. diff --git a/crypto/hd/algo.go b/crypto/hd/algo.go index f934ad08aece..4d3056c5a2a3 100644 --- a/crypto/hd/algo.go +++ b/crypto/hd/algo.go @@ -3,8 +3,8 @@ package hd import ( bip39 "github.com/cosmos/go-bip39" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/types" ) // PubKeyType defines an algorithm to derive key-pairs which can be used for cryptographic signing. diff --git a/crypto/hd/algo_test.go b/crypto/hd/algo_test.go index 767b42154034..d1bf8cffa65f 100644 --- a/crypto/hd/algo_test.go +++ b/crypto/hd/algo_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/hd" ) func TestDefaults(t *testing.T) { diff --git a/crypto/hd/fundraiser_test.go b/crypto/hd/fundraiser_test.go index 4afbfc5a9ced..d635da188e1a 100644 --- a/crypto/hd/fundraiser_test.go +++ b/crypto/hd/fundraiser_test.go @@ -13,8 +13,8 @@ import ( "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" ) type addrData struct { diff --git a/crypto/hd/hdpath.go b/crypto/hd/hdpath.go index 058ddcc45667..05cb4a33458b 100644 --- a/crypto/hd/hdpath.go +++ b/crypto/hd/hdpath.go @@ -179,7 +179,7 @@ func ComputeMastersFromSeed(seed []byte) (secret [32]byte, chainCode [32]byte) { // using the given chainCode. func DerivePrivateKeyForPath(privKeyBytes, chainCode [32]byte, path string) ([]byte, error) { // First step is to trim the right end path separator lest we panic. - // See issue https://github.com/cosmos/cosmos-sdk/issues/8557 + // See issue https://github.com/eligion/cosmos-sdk/issues/8557 path = strings.TrimRightFunc(path, func(r rune) bool { return r == filepath.Separator }) data := privKeyBytes parts := strings.Split(path, "/") diff --git a/crypto/hd/hdpath_test.go b/crypto/hd/hdpath_test.go index 8b1c40692c82..9c0b71379d5b 100644 --- a/crypto/hd/hdpath_test.go +++ b/crypto/hd/hdpath_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/types" bip39 "github.com/cosmos/go-bip39" "github.com/stretchr/testify/require" @@ -120,7 +120,7 @@ func TestCreateHDPath(t *testing.T) { // the extended keys specification. If the index belongs to that of a hardened key, // its 0x80000000 bit will be set, so we can still accept values in [0, max(int32)] and then // increase its value as deriveKeyPath already augments. -// See issue https://github.com/cosmos/cosmos-sdk/issues/7627. +// See issue https://github.com/eligion/cosmos-sdk/issues/7627. func TestDeriveHDPathRange(t *testing.T) { seed := mnemonicToSeed("I am become Death, the destroyer of worlds!") @@ -283,7 +283,7 @@ func ExampleSomeBIP32TestVecs() { } // Ensuring that we don't crash if values have trailing slashes -// See issue https://github.com/cosmos/cosmos-sdk/issues/8557. +// See issue https://github.com/eligion/cosmos-sdk/issues/8557. func TestDerivePrivateKeyForPathDoNotCrash(t *testing.T) { paths := []string{ "m/5/", diff --git a/crypto/keyring/codec.go b/crypto/keyring/codec.go index 558f377752d2..692e5267103b 100644 --- a/crypto/keyring/codec.go +++ b/crypto/keyring/codec.go @@ -1,9 +1,9 @@ package keyring import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/legacy" - "github.com/cosmos/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/legacy" + "github.com/eligion/cosmos-sdk/crypto/hd" ) func init() { diff --git a/crypto/keyring/info.go b/crypto/keyring/info.go index 2b183317c971..9529caa663d6 100644 --- a/crypto/keyring/info.go +++ b/crypto/keyring/info.go @@ -3,12 +3,12 @@ package keyring import ( "fmt" - "github.com/cosmos/cosmos-sdk/codec/legacy" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec/legacy" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types" ) // Info is the publicly exposed information about a keypair diff --git a/crypto/keyring/keyring.go b/crypto/keyring/keyring.go index f96c8635243c..dc7edd5afe92 100644 --- a/crypto/keyring/keyring.go +++ b/crypto/keyring/keyring.go @@ -17,14 +17,14 @@ import ( "github.com/tendermint/crypto/bcrypt" tmcrypto "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/client/input" - "github.com/cosmos/cosmos-sdk/codec/legacy" - "github.com/cosmos/cosmos-sdk/crypto" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/ledger" - "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/client/input" + "github.com/eligion/cosmos-sdk/codec/legacy" + "github.com/eligion/cosmos-sdk/crypto" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/ledger" + "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // Backend options for Keyring diff --git a/crypto/keyring/keyring_ledger_test.go b/crypto/keyring/keyring_ledger_test.go index cccfa20452bc..e7fd3a0ace35 100644 --- a/crypto/keyring/keyring_ledger_test.go +++ b/crypto/keyring/keyring_ledger_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/types" ) func TestInMemoryCreateLedger(t *testing.T) { diff --git a/crypto/keyring/keyring_test.go b/crypto/keyring/keyring_test.go index 2f8e928e7a7e..35fe1246e04d 100644 --- a/crypto/keyring/keyring_test.go +++ b/crypto/keyring/keyring_test.go @@ -10,13 +10,13 @@ import ( bip39 "github.com/cosmos/go-bip39" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/crypto/keyring/legacy.go b/crypto/keyring/legacy.go index 00ca8bfcc3df..b899ad8d7972 100644 --- a/crypto/keyring/legacy.go +++ b/crypto/keyring/legacy.go @@ -8,10 +8,10 @@ import ( tmos "github.com/tendermint/tendermint/libs/os" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/crypto" - "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/crypto" + "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // LegacyKeybase is implemented by the legacy keybase implementation. diff --git a/crypto/keyring/legacy_test.go b/crypto/keyring/legacy_test.go index d1b0dbf3e682..19bdf678f9de 100644 --- a/crypto/keyring/legacy_test.go +++ b/crypto/keyring/legacy_test.go @@ -7,7 +7,7 @@ import ( "github.com/otiai10/copy" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/crypto/keyring" ) func TestNewLegacyKeyBase(t *testing.T) { diff --git a/crypto/keyring/output.go b/crypto/keyring/output.go index 91588e31379f..402e2665a071 100644 --- a/crypto/keyring/output.go +++ b/crypto/keyring/output.go @@ -1,10 +1,10 @@ package keyring import ( - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // TODO: Move this file to client/keys diff --git a/crypto/keyring/output_test.go b/crypto/keyring/output_test.go index 8f28e8cd1f9f..8f776531368c 100644 --- a/crypto/keyring/output_test.go +++ b/crypto/keyring/output_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestBech32KeysOutput(t *testing.T) { diff --git a/crypto/keyring/signing_algorithms.go b/crypto/keyring/signing_algorithms.go index 920dd7b55310..33cf6548bf6a 100644 --- a/crypto/keyring/signing_algorithms.go +++ b/crypto/keyring/signing_algorithms.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/cosmos/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/hd" ) // SignatureAlgo defines the interface for a keyring supported algorithm. diff --git a/crypto/keyring/signing_algorithms_test.go b/crypto/keyring/signing_algorithms_test.go index 14283b910846..0d516f16aecf 100644 --- a/crypto/keyring/signing_algorithms_test.go +++ b/crypto/keyring/signing_algorithms_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/hd" ) func TestNewSigningAlgoByString(t *testing.T) { diff --git a/crypto/keyring/types.go b/crypto/keyring/types.go index 0b893ea4cccc..0bae5500d280 100644 --- a/crypto/keyring/types.go +++ b/crypto/keyring/types.go @@ -1,8 +1,8 @@ package keyring import ( - "github.com/cosmos/cosmos-sdk/crypto/hd" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // Language is a language to create the BIP 39 mnemonic in. diff --git a/crypto/keyring/types_test.go b/crypto/keyring/types_test.go index daf75b5d84f6..ca41290b2a8f 100644 --- a/crypto/keyring/types_test.go +++ b/crypto/keyring/types_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_writeReadLedgerInfo(t *testing.T) { diff --git a/crypto/keys/ed25519/ed25519.go b/crypto/keys/ed25519/ed25519.go index 4ade041c4137..3435a6c491dd 100644 --- a/crypto/keys/ed25519/ed25519.go +++ b/crypto/keys/ed25519/ed25519.go @@ -10,9 +10,9 @@ import ( "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/crypto/tmhash" - "github.com/cosmos/cosmos-sdk/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types/errors" ) //------------------------------------- diff --git a/crypto/keys/ed25519/ed25519_test.go b/crypto/keys/ed25519/ed25519_test.go index 83622ee43030..9171f8afa093 100644 --- a/crypto/keys/ed25519/ed25519_test.go +++ b/crypto/keys/ed25519/ed25519_test.go @@ -10,12 +10,12 @@ import ( "github.com/tendermint/tendermint/crypto" tmed25519 "github.com/tendermint/tendermint/crypto/ed25519" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) func TestSignAndValidateEd25519(t *testing.T) { diff --git a/crypto/keys/internal/benchmarking/bench.go b/crypto/keys/internal/benchmarking/bench.go index aab5d5f30382..b9823f524871 100644 --- a/crypto/keys/internal/benchmarking/bench.go +++ b/crypto/keys/internal/benchmarking/bench.go @@ -5,7 +5,7 @@ import ( "io" "testing" - "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types" ) // The code in this file is adapted from agl/ed25519. diff --git a/crypto/keys/internal/ecdsa/privkey.go b/crypto/keys/internal/ecdsa/privkey.go index 690c07670d64..44678243ad22 100644 --- a/crypto/keys/internal/ecdsa/privkey.go +++ b/crypto/keys/internal/ecdsa/privkey.go @@ -86,7 +86,7 @@ func (sk *PrivKey) Bytes() []byte { // NOTE: this now calls the ecdsa Sign function // (not method!) directly as the s value of the signature is needed to // low-s normalize the signature value -// See issue: https://github.com/cosmos/cosmos-sdk/issues/9723 +// See issue: https://github.com/eligion/cosmos-sdk/issues/9723 // It then raw encodes the signature as two fixed width 32-byte values // concatenated, reusing the code copied from secp256k1_nocgo.go func (sk *PrivKey) Sign(msg []byte) ([]byte, error) { diff --git a/crypto/keys/internal/ecdsa/pubkey.go b/crypto/keys/internal/ecdsa/pubkey.go index 75fbd8b8826d..2685235801cf 100644 --- a/crypto/keys/internal/ecdsa/pubkey.go +++ b/crypto/keys/internal/ecdsa/pubkey.go @@ -9,8 +9,8 @@ import ( tmcrypto "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/types/address" - "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/address" + "github.com/eligion/cosmos-sdk/types/errors" ) // signatureFromBytes function roughly copied from secp256k1_nocgo.go diff --git a/crypto/keys/multisig/amino.go b/crypto/keys/multisig/amino.go index c6d0aab1d745..458d3a916505 100644 --- a/crypto/keys/multisig/amino.go +++ b/crypto/keys/multisig/amino.go @@ -1,9 +1,9 @@ package multisig import ( - types "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + types "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // tmMultisig implements a K of N threshold multisig. It is used for @@ -23,7 +23,7 @@ import ( // Amino binary marshaling, as that _might_ introduce breaking changes in the // keyring, where multisigs are amino-binary-encoded. // -// ref: https://github.com/cosmos/cosmos-sdk/issues/8776 +// ref: https://github.com/eligion/cosmos-sdk/issues/8776 type tmMultisig struct { K uint `json:"threshold"` PubKeys []cryptotypes.PubKey `json:"pubkeys"` diff --git a/crypto/keys/multisig/codec.go b/crypto/keys/multisig/codec.go index d501e1b427cf..2296674b1c96 100644 --- a/crypto/keys/multisig/codec.go +++ b/crypto/keys/multisig/codec.go @@ -3,10 +3,10 @@ package multisig import ( "github.com/tendermint/tendermint/crypto/sr25519" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // TODO: Figure out API for others to either add their own pubkey types, or diff --git a/crypto/keys/multisig/keys.pb.go b/crypto/keys/multisig/keys.pb.go index 27ccf0fa5a27..55c23b317910 100644 --- a/crypto/keys/multisig/keys.pb.go +++ b/crypto/keys/multisig/keys.pb.go @@ -5,7 +5,7 @@ package multisig import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" diff --git a/crypto/keys/multisig/multisig.go b/crypto/keys/multisig/multisig.go index e39c508be6f8..7735f4036d60 100644 --- a/crypto/keys/multisig/multisig.go +++ b/crypto/keys/multisig/multisig.go @@ -5,10 +5,10 @@ import ( tmcrypto "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - multisigtypes "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + multisigtypes "github.com/eligion/cosmos-sdk/crypto/types/multisig" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) var _ multisigtypes.PubKey = &LegacyAminoPubKey{} @@ -97,7 +97,7 @@ func (m *LegacyAminoPubKey) VerifyMultisignature(getSignBytes multisigtypes.GetS // VerifySignature implements cryptotypes.PubKey VerifySignature method, // it panics because it can't handle MultiSignatureData -// cf. https://github.com/cosmos/cosmos-sdk/issues/7109#issuecomment-686329936 +// cf. https://github.com/eligion/cosmos-sdk/issues/7109#issuecomment-686329936 func (m *LegacyAminoPubKey) VerifySignature(msg []byte, sig []byte) bool { panic("not implemented") } diff --git a/crypto/keys/multisig/multisig_test.go b/crypto/keys/multisig/multisig_test.go index 8fb93d3524c4..ffdcf4af307c 100644 --- a/crypto/keys/multisig/multisig_test.go +++ b/crypto/keys/multisig/multisig_test.go @@ -6,19 +6,19 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/legacy" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/legacy" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keyring" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) func TestNewMultiSig(t *testing.T) { @@ -390,7 +390,7 @@ func TestAminoUnmarshalJSON(t *testing.T) { // v0.39, hence the `threshold` field as a string. // We are testing that when unmarshaling this JSON into a LegacyAminoPubKey // with amino, there's no error. - // ref: https://github.com/cosmos/cosmos-sdk/issues/8776 + // ref: https://github.com/eligion/cosmos-sdk/issues/8776 pkJSON := `{ "type": "tendermint/PubKeyMultisigThreshold", "value": { diff --git a/crypto/keys/secp256k1/bench_test.go b/crypto/keys/secp256k1/bench_test.go index a9f694de7552..c402c76e8620 100644 --- a/crypto/keys/secp256k1/bench_test.go +++ b/crypto/keys/secp256k1/bench_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/cosmos/cosmos-sdk/crypto/keys/internal/benchmarking" - "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/keys/internal/benchmarking" + "github.com/eligion/cosmos-sdk/crypto/types" ) func BenchmarkKeyGeneration(b *testing.B) { diff --git a/crypto/keys/secp256k1/secp256k1.go b/crypto/keys/secp256k1/secp256k1.go index 231a895a6103..823ccb23b043 100644 --- a/crypto/keys/secp256k1/secp256k1.go +++ b/crypto/keys/secp256k1/secp256k1.go @@ -12,9 +12,9 @@ import ( "github.com/tendermint/tendermint/crypto" "golang.org/x/crypto/ripemd160" // nolint: staticcheck // necessary for Bitcoin address format - "github.com/cosmos/cosmos-sdk/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types/errors" ) var _ cryptotypes.PrivKey = &PrivKey{} diff --git a/crypto/keys/secp256k1/secp256k1_cgo.go b/crypto/keys/secp256k1/secp256k1_cgo.go index 42088483d3f9..b881449c9090 100644 --- a/crypto/keys/secp256k1/secp256k1_cgo.go +++ b/crypto/keys/secp256k1/secp256k1_cgo.go @@ -5,7 +5,7 @@ package secp256k1 import ( "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1/internal/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1/internal/secp256k1" ) // Sign creates an ECDSA signature on curve Secp256k1, using SHA256 on the msg. diff --git a/crypto/keys/secp256k1/secp256k1_test.go b/crypto/keys/secp256k1/secp256k1_test.go index 79d2faf5158e..c306d4098489 100644 --- a/crypto/keys/secp256k1/secp256k1_test.go +++ b/crypto/keys/secp256k1/secp256k1_test.go @@ -14,10 +14,10 @@ import ( "github.com/tendermint/tendermint/crypto" tmsecp256k1 "github.com/tendermint/tendermint/crypto/secp256k1" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) type keyData struct { diff --git a/crypto/keys/secp256r1/doc.go b/crypto/keys/secp256r1/doc.go index be938dc77f97..297b8a98e2d2 100644 --- a/crypto/keys/secp256r1/doc.go +++ b/crypto/keys/secp256r1/doc.go @@ -6,8 +6,8 @@ import ( "crypto/elliptic" "fmt" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) const ( diff --git a/crypto/keys/secp256r1/privkey.go b/crypto/keys/secp256r1/privkey.go index c6702111c738..1a4bf81c6685 100644 --- a/crypto/keys/secp256r1/privkey.go +++ b/crypto/keys/secp256r1/privkey.go @@ -1,8 +1,8 @@ package secp256r1 import ( - "github.com/cosmos/cosmos-sdk/crypto/keys/internal/ecdsa" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/keys/internal/ecdsa" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // GenPrivKey generates a new secp256r1 private key. It uses operating system randomness. diff --git a/crypto/keys/secp256r1/privkey_internal_test.go b/crypto/keys/secp256r1/privkey_internal_test.go index 74ad9ec1ac75..96c74af8f820 100644 --- a/crypto/keys/secp256r1/privkey_internal_test.go +++ b/crypto/keys/secp256r1/privkey_internal_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/suite" "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) var _ cryptotypes.PrivKey = &PrivKey{} diff --git a/crypto/keys/secp256r1/pubkey.go b/crypto/keys/secp256r1/pubkey.go index d462deff89c2..f0a19c6483b5 100644 --- a/crypto/keys/secp256r1/pubkey.go +++ b/crypto/keys/secp256r1/pubkey.go @@ -4,8 +4,8 @@ import ( "github.com/gogo/protobuf/proto" tmcrypto "github.com/tendermint/tendermint/crypto" - ecdsa "github.com/cosmos/cosmos-sdk/crypto/keys/internal/ecdsa" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + ecdsa "github.com/eligion/cosmos-sdk/crypto/keys/internal/ecdsa" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // String implements proto.Message interface. diff --git a/crypto/keys/secp256r1/pubkey_internal_test.go b/crypto/keys/secp256r1/pubkey_internal_test.go index 3df25ebedf0e..169001dc76d0 100644 --- a/crypto/keys/secp256r1/pubkey_internal_test.go +++ b/crypto/keys/secp256r1/pubkey_internal_test.go @@ -6,9 +6,9 @@ import ( proto "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) var _ cryptotypes.PubKey = (*PubKey)(nil) diff --git a/crypto/ledger/amino.go b/crypto/ledger/amino.go index 0e717a9604f0..35485e5f2b32 100644 --- a/crypto/ledger/amino.go +++ b/crypto/ledger/amino.go @@ -1,8 +1,8 @@ package ledger import ( - "github.com/cosmos/cosmos-sdk/codec" - cryptoAmino "github.com/cosmos/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/codec" + cryptoAmino "github.com/eligion/cosmos-sdk/crypto/codec" ) var cdc = codec.NewLegacyAmino() diff --git a/crypto/ledger/encode_test.go b/crypto/ledger/encode_test.go index 447891fde768..589138e41833 100644 --- a/crypto/ledger/encode_test.go +++ b/crypto/ledger/encode_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) type byter interface { diff --git a/crypto/ledger/ledger_mock.go b/crypto/ledger/ledger_mock.go index 2a05c7f2bdb9..ee6b11dd1699 100644 --- a/crypto/ledger/ledger_mock.go +++ b/crypto/ledger/ledger_mock.go @@ -14,10 +14,10 @@ import ( "github.com/cosmos/go-bip39" - "github.com/cosmos/cosmos-sdk/crypto/hd" - csecp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + csecp256k1 "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) // If ledger support (build tag) has been enabled, which implies a CGO dependency, diff --git a/crypto/ledger/ledger_secp256k1.go b/crypto/ledger/ledger_secp256k1.go index db09ba2e8d3a..b0e9ca614a1f 100644 --- a/crypto/ledger/ledger_secp256k1.go +++ b/crypto/ledger/ledger_secp256k1.go @@ -9,9 +9,9 @@ import ( tmbtcec "github.com/tendermint/btcd/btcec" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/types" ) var ( diff --git a/crypto/ledger/ledger_test.go b/crypto/ledger/ledger_test.go index 9f4bf9427484..ac9861dd0106 100644 --- a/crypto/ledger/ledger_test.go +++ b/crypto/ledger/ledger_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec/legacy" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec/legacy" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestErrorHandling(t *testing.T) { diff --git a/crypto/types/compact_bit_array.go b/crypto/types/compact_bit_array.go index 1bbd5ec07db4..a10b7ee68ee0 100644 --- a/crypto/types/compact_bit_array.go +++ b/crypto/types/compact_bit_array.go @@ -29,7 +29,7 @@ func NewCompactBitArray(bits int) *CompactBitArray { if nElems <= 0 || nElems > math.MaxInt32 { // We encountered an overflow here, and shouldn't pass negatives // to make, nor should we allow unreasonable limits > maxint32. - // See https://github.com/cosmos/cosmos-sdk/issues/9162 + // See https://github.com/eligion/cosmos-sdk/issues/9162 return nil } return &CompactBitArray{ diff --git a/crypto/types/compact_bit_array_test.go b/crypto/types/compact_bit_array_test.go index 11984729ac28..e0698b1e6580 100644 --- a/crypto/types/compact_bit_array_test.go +++ b/crypto/types/compact_bit_array_test.go @@ -186,7 +186,7 @@ func TestCompactMarshalUnmarshal(t *testing.T) { // Ensure that CompactUnmarshal does not blindly try to slice using // a negative/out of bounds index of size returned from binary.Uvarint. -// See issue https://github.com/cosmos/cosmos-sdk/issues/9165 +// See issue https://github.com/eligion/cosmos-sdk/issues/9165 func TestCompactMarshalUnmarshalReturnsErrorOnInvalidSize(t *testing.T) { malicious := []byte{0xd7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x24, 0x28} cba, err := CompactUnmarshal(malicious) @@ -240,7 +240,7 @@ func TestCompactBitArrayGetSetIndex(t *testing.T) { require.Equal(t, val, bA.GetIndex(index), "bA.SetIndex(%d, %v) failed on bit array: %s", index, val, copy) // Ensure that passing in negative indices to .SetIndex and .GetIndex do not - // panic. See issue https://github.com/cosmos/cosmos-sdk/issues/9164. + // panic. See issue https://github.com/eligion/cosmos-sdk/issues/9164. // To intentionally use negative indices, We want only values that aren't 0. if index == 0 { continue diff --git a/crypto/types/multisig/multisignature.go b/crypto/types/multisig/multisignature.go index 362fa469358b..166e4555ffde 100644 --- a/crypto/types/multisig/multisignature.go +++ b/crypto/types/multisig/multisignature.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) // AminoMultisignature is used to represent amino multi-signatures for StdTx's. diff --git a/crypto/types/multisig/pubkey.go b/crypto/types/multisig/pubkey.go index 2e778bae6fd1..de0b771d900c 100644 --- a/crypto/types/multisig/pubkey.go +++ b/crypto/types/multisig/pubkey.go @@ -1,8 +1,8 @@ package multisig import ( - "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) // PubKey defines a type which supports multi-signature verification via MultiSignatureData diff --git a/crypto/types/types.go b/crypto/types/types.go index eccdba73813d..3f1d84fabf3f 100644 --- a/crypto/types/types.go +++ b/crypto/types/types.go @@ -20,7 +20,7 @@ type PubKey interface { // LedgerSecp256k1 keys are not converted to proto.Message yet, this is why // they use LedgerPrivKey instead of PrivKey. All other keys must use PrivKey // instead of LedgerPrivKey. -// TODO https://github.com/cosmos/cosmos-sdk/issues/7357. +// TODO https://github.com/eligion/cosmos-sdk/issues/7357. type LedgerPrivKey interface { Bytes() []byte Sign(msg []byte) ([]byte, error) @@ -32,7 +32,7 @@ type LedgerPrivKey interface { // PrivKey defines a private key and extends proto.Message. For now, it extends // LedgerPrivKey (see godoc for LedgerPrivKey). Ultimately, we should remove // LedgerPrivKey and add its methods here directly. -// TODO https://github.com/cosmos/cosmos-sdk/issues/7357. +// TODO https://github.com/eligion/cosmos-sdk/issues/7357. type PrivKey interface { proto.Message LedgerPrivKey diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 9db03d5bf8d3..18ac48d4f7f7 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -80,7 +80,7 @@ module.exports = { }, { title: "SDK API Reference", - path: "https://godoc.org/github.com/cosmos/cosmos-sdk" + path: "https://godoc.org/github.com/eligion/cosmos-sdk" }, { title: "REST API Spec", @@ -189,11 +189,11 @@ module.exports = { { title: "Contributing to the docs", url: - "https://github.com/cosmos/cosmos-sdk/blob/master/docs/DOCS_README.md" + "https://github.com/eligion/cosmos-sdk/blob/master/docs/DOCS_README.md" }, { title: "Source code on GitHub", - url: "https://github.com/cosmos/cosmos-sdk/" + url: "https://github.com/eligion/cosmos-sdk/" } ] } diff --git a/docs/DOCS_README.md b/docs/DOCS_README.md index 59bedcca3cff..1b6ff6f7aa02 100644 --- a/docs/DOCS_README.md +++ b/docs/DOCS_README.md @@ -1,6 +1,6 @@ # Updating the docs -If you want to open a PR in Cosmos SDK to update the documentation, please follow the guidelines in [`CONTRIBUTING.md`](https://github.com/cosmos/cosmos-sdk/tree/master/CONTRIBUTING.md#updating-documentation). +If you want to open a PR in Cosmos SDK to update the documentation, please follow the guidelines in [`CONTRIBUTING.md`](https://github.com/eligion/cosmos-sdk/tree/master/CONTRIBUTING.md#updating-documentation). ## Internationalization @@ -13,7 +13,7 @@ If you want to open a PR in Cosmos SDK to update the documentation, please follo - `docs/intro/` - `docs/migrations/` - `docs/run-node/` -- Each `docs//` folder must also have a `README.md` that includes a translated version of both the layout and content within the root-level [`README.md`](https://github.com/cosmos/cosmos-sdk/tree/master/docs/README.md). The layout defined in the `README.md` is used to build the homepage. +- Each `docs//` folder must also have a `README.md` that includes a translated version of both the layout and content within the root-level [`README.md`](https://github.com/eligion/cosmos-sdk/tree/master/docs/README.md). The layout defined in the `README.md` is used to build the homepage. - Always translate content living on `master` unless you are revising documentation for a specific release. Translated documentation like the root-level documentation is semantically versioned. - For additional configuration options, please see [VuePress Internationalization](https://vuepress.vuejs.org/guide/i18n.html). @@ -22,7 +22,7 @@ If you want to open a PR in Cosmos SDK to update the documentation, please follo The documentation for the Cosmos SDK is hosted at https://cosmos.network/docs/ built from the files in this (`/docs`) directory for -[master](https://github.com/cosmos/cosmos-sdk/tree/master/docs). +[master](https://github.com/eligion/cosmos-sdk/tree/master/docs). ### How It Works @@ -100,7 +100,7 @@ To build documentation as a static website run `npm run build`. You will find th First, run `make tools` from the root of repo, to install the swagger-ui tool. -Then, edit the `swagger.yaml` manually; it is found [here](https://github.com/cosmos/cosmos-sdk/blob/master/client/lcd/swagger-ui/swagger.yaml) +Then, edit the `swagger.yaml` manually; it is found [here](https://github.com/eligion/cosmos-sdk/blob/master/client/lcd/swagger-ui/swagger.yaml) Finally, run `make update_gaia_lite_docs` from the root of the repo. diff --git a/docs/README.md b/docs/README.md index d3caf5497404..1140dccaade6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -64,7 +64,7 @@ aside: false - **[Module Directory](../x/)**: Cosmos SDK module implementations and their respective documentation. - **[Specifications](./spec/)**: Specifications of modules and other parts of the Cosmos SDK. -- **[SDK API Reference](https://godoc.org/github.com/cosmos/cosmos-sdk)**: Godocs of the Cosmos SDK. +- **[SDK API Reference](https://godoc.org/github.com/eligion/cosmos-sdk)**: Godocs of the Cosmos SDK. - **[REST API spec](https://cosmos.network/rpc/)**: List of endpoints to interact with a `gaia` full-node through REST. ## Cosmos Hub @@ -79,5 +79,5 @@ Contact us for information about funding an implementation in another language. ## Contribute -See the [DOCS_README.md](https://github.com/cosmos/cosmos-sdk/blob/master/docs/DOCS_README.md) for details of the build process and +See the [DOCS_README.md](https://github.com/eligion/cosmos-sdk/blob/master/docs/DOCS_README.md) for details of the build process and considerations when making changes. diff --git a/docs/architecture/adr-002-docs-structure.md b/docs/architecture/adr-002-docs-structure.md index 1c8201890c22..416a5081fc0b 100644 --- a/docs/architecture/adr-002-docs-structure.md +++ b/docs/architecture/adr-002-docs-structure.md @@ -70,7 +70,7 @@ Accepted - Developers only have to update `/docs` folder when they open a PR (and not `/examples` for example). - Easier for developers to find what they need to update in the docs thanks to reworked architecture. - Cleaner vuepress build for website docs. -- Will help build an executable doc (cf https://github.com/cosmos/cosmos-sdk/issues/2611) +- Will help build an executable doc (cf https://github.com/eligion/cosmos-sdk/issues/2611) ### Neutral @@ -81,6 +81,6 @@ Accepted ## References -- https://github.com/cosmos/cosmos-sdk/issues/1460 -- https://github.com/cosmos/cosmos-sdk/pull/2695 -- https://github.com/cosmos/cosmos-sdk/issues/2611 +- https://github.com/eligion/cosmos-sdk/issues/1460 +- https://github.com/eligion/cosmos-sdk/pull/2695 +- https://github.com/eligion/cosmos-sdk/issues/2611 diff --git a/docs/architecture/adr-003-dynamic-capability-store.md b/docs/architecture/adr-003-dynamic-capability-store.md index 3f5c9387c6ae..a0e8795f8673 100644 --- a/docs/architecture/adr-003-dynamic-capability-store.md +++ b/docs/architecture/adr-003-dynamic-capability-store.md @@ -341,4 +341,4 @@ Proposed. ## References -- [Original discussion](https://github.com/cosmos/cosmos-sdk/pull/5230#discussion_r343978513) +- [Original discussion](https://github.com/eligion/cosmos-sdk/pull/5230#discussion_r343978513) diff --git a/docs/architecture/adr-004-split-denomination-keys.md b/docs/architecture/adr-004-split-denomination-keys.md index ae192c63226c..e2da413b2f31 100644 --- a/docs/architecture/adr-004-split-denomination-keys.md +++ b/docs/architecture/adr-004-split-denomination-keys.md @@ -13,7 +13,7 @@ ## Context -With permissionless IBC, anyone will be able to send arbitrary denominations to any other account. Currently, all non-zero balances are stored along with the account in an `sdk.Coins` struct, which creates a potential denial-of-service concern, as too many denominations will become expensive to load & store each time the account is modified. See issues [5467](https://github.com/cosmos/cosmos-sdk/issues/5467) and [4982](https://github.com/cosmos/cosmos-sdk/issues/4982) for additional context. +With permissionless IBC, anyone will be able to send arbitrary denominations to any other account. Currently, all non-zero balances are stored along with the account in an `sdk.Coins` struct, which creates a potential denial-of-service concern, as too many denominations will become expensive to load & store each time the account is modified. See issues [5467](https://github.com/eligion/cosmos-sdk/issues/5467) and [4982](https://github.com/eligion/cosmos-sdk/issues/4982) for additional context. Simply rejecting incoming deposits after a denomination count limit doesn't work, since it opens up a griefing vector: someone could send a user lots of nonsensical coins over IBC, and then prevent the user from receiving real denominations (such as staking rewards). @@ -115,6 +115,6 @@ None in particular. ## References -- Ref: https://github.com/cosmos/cosmos-sdk/issues/4982 -- Ref: https://github.com/cosmos/cosmos-sdk/issues/5467 -- Ref: https://github.com/cosmos/cosmos-sdk/issues/5492 +- Ref: https://github.com/eligion/cosmos-sdk/issues/4982 +- Ref: https://github.com/eligion/cosmos-sdk/issues/5467 +- Ref: https://github.com/eligion/cosmos-sdk/issues/5492 diff --git a/docs/architecture/adr-010-modular-antehandler.md b/docs/architecture/adr-010-modular-antehandler.md index 15d28dbeebff..0a691d0fdb3a 100644 --- a/docs/architecture/adr-010-modular-antehandler.md +++ b/docs/architecture/adr-010-modular-antehandler.md @@ -14,7 +14,7 @@ For example, let's say a user wants to implement some custom signature verificat ### Per-Module AnteHandler -One approach is to use the [ModuleManager](https://godoc.org/github.com/cosmos/cosmos-sdk/types/module) and have each module implement its own antehandler if it requires custom antehandler logic. The ModuleManager can then be passed in an AnteHandler order in the same way it has an order for BeginBlockers and EndBlockers. The ModuleManager returns a single AnteHandler function that will take in a tx and run each module's `AnteHandle` in the specified order. The module manager's AnteHandler is set as the baseapp's AnteHandler. +One approach is to use the [ModuleManager](https://godoc.org/github.com/eligion/cosmos-sdk/types/module) and have each module implement its own antehandler if it requires custom antehandler logic. The ModuleManager can then be passed in an AnteHandler order in the same way it has an order for BeginBlockers and EndBlockers. The ModuleManager returns a single AnteHandler function that will take in a tx and run each module's `AnteHandle` in the specified order. The module manager's AnteHandler is set as the baseapp's AnteHandler. Pros: @@ -279,7 +279,7 @@ Since pros and cons are written for each approach, it is omitted from this secti ## References -- [#4572](https://github.com/cosmos/cosmos-sdk/issues/4572): Modular AnteHandler Issue -- [#4582](https://github.com/cosmos/cosmos-sdk/pull/4583): Initial Implementation of Per-Module AnteHandler Approach +- [#4572](https://github.com/eligion/cosmos-sdk/issues/4572): Modular AnteHandler Issue +- [#4582](https://github.com/eligion/cosmos-sdk/pull/4583): Initial Implementation of Per-Module AnteHandler Approach - [Weave Decorator Code](https://github.com/iov-one/weave/blob/master/handler.go#L35) - [Weave Design Videos](https://vimeo.com/showcase/6189877) diff --git a/docs/architecture/adr-011-generalize-genesis-accounts.md b/docs/architecture/adr-011-generalize-genesis-accounts.md index db323966e1f0..bd76ed26b86e 100644 --- a/docs/architecture/adr-011-generalize-genesis-accounts.md +++ b/docs/architecture/adr-011-generalize-genesis-accounts.md @@ -63,7 +63,7 @@ The `auth` codec must have all custom account types registered to marshal them. An example custom account definition: ```go -import authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" +import authtypes "github.com/eligion/cosmos-sdk/x/auth/types" // Register the module account type with the auth module codec so it can decode module accounts stored in a genesis file func init() { diff --git a/docs/architecture/adr-012-state-accessors.md b/docs/architecture/adr-012-state-accessors.md index b66e23eb67b2..3f712005bd0c 100644 --- a/docs/architecture/adr-012-state-accessors.md +++ b/docs/architecture/adr-012-state-accessors.md @@ -152,4 +152,4 @@ Proposed ## References -- [#4554](https://github.com/cosmos/cosmos-sdk/issues/4554) +- [#4554](https://github.com/eligion/cosmos-sdk/issues/4554) diff --git a/docs/architecture/adr-016-validator-consensus-key-rotation.md b/docs/architecture/adr-016-validator-consensus-key-rotation.md index 9b5d77e7d750..9bba5c1d6e5a 100644 --- a/docs/architecture/adr-016-validator-consensus-key-rotation.md +++ b/docs/architecture/adr-016-validator-consensus-key-rotation.md @@ -121,5 +121,5 @@ Proposed ## References - on tendermint repo : https://github.com/tendermint/tendermint/issues/1136 -- on cosmos-sdk repo : https://github.com/cosmos/cosmos-sdk/issues/5231 +- on cosmos-sdk repo : https://github.com/eligion/cosmos-sdk/issues/5231 - about multiple consensus keys : https://github.com/tendermint/tendermint/issues/1758#issuecomment-545291698 diff --git a/docs/architecture/adr-019-protobuf-state-encoding.md b/docs/architecture/adr-019-protobuf-state-encoding.md index cddf7092fb98..97cb02811b45 100644 --- a/docs/architecture/adr-019-protobuf-state-encoding.md +++ b/docs/architecture/adr-019-protobuf-state-encoding.md @@ -7,7 +7,7 @@ - 2020 Apr 27: Convert usages of `oneof` for interfaces to `Any` - 2020 May 15: Describe `cosmos_proto` extensions and amino compatibility - 2020 Dec 4: Move and rename `MarshalAny` and `UnmarshalAny` into the `codec.Codec` interface. -- 2021 Feb 24: Remove mentions of `HybridCodec`, which has been abandoned in [#6843](https://github.com/cosmos/cosmos-sdk/pull/6843). +- 2021 Feb 24: Remove mentions of `HybridCodec`, which has been abandoned in [#6843](https://github.com/eligion/cosmos-sdk/pull/6843). ## Status @@ -120,7 +120,7 @@ type Codec interface { In general, module-level .proto files should define messages which encode interfaces using [`google.protobuf.Any`](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). -After [extension discussion](https://github.com/cosmos/cosmos-sdk/issues/6030), +After [extension discussion](https://github.com/eligion/cosmos-sdk/issues/6030), this was chosen as the preferred alternative to application-level `oneof`s as in our original protobuf design. The arguments in favor of `Any` can be summarized as follows: @@ -229,7 +229,7 @@ every module that implements it in order to populate the `InterfaceRegistry`. The SDK will provide support methods `MarshalInterface` and `UnmarshalInterface` to hide a complexity of wrapping interface types into `Any` and allow easy serialization. ```go -import "github.com/cosmos/cosmos-sdk/codec" +import "github.com/eligion/cosmos-sdk/codec" // note: eviexported.Evidence is an interface type func MarshalEvidence(cdc codec.BinaryCodec, e eviexported.Evidence) ([]byte, error) { @@ -255,7 +255,7 @@ an interface: message MsgSubmitEvidence { bytes submitter = 1 [ - (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress" + (gogoproto.casttype) = "github.com/eligion/cosmos-sdk/types.AccAddress" ]; google.protobuf.Any evidence = 2; } @@ -375,5 +375,5 @@ seamless. ## References -1. https://github.com/cosmos/cosmos-sdk/issues/4977 -2. https://github.com/cosmos/cosmos-sdk/issues/5444 +1. https://github.com/eligion/cosmos-sdk/issues/4977 +2. https://github.com/eligion/cosmos-sdk/issues/5444 diff --git a/docs/architecture/adr-020-protobuf-transaction-encoding.md b/docs/architecture/adr-020-protobuf-transaction-encoding.md index 2efe583cf590..56d92d0b55c7 100644 --- a/docs/architecture/adr-020-protobuf-transaction-encoding.md +++ b/docs/architecture/adr-020-protobuf-transaction-encoding.md @@ -9,7 +9,7 @@ - 2020 May 14: Describe public key encoding - 2020 June 08: Store `TxBody` and `AuthInfo` as bytes in `SignDoc`; Document `TxRaw` as broadcast and storage type. - 2020 August 07: Use ADR 027 for serializing `SignDoc`. -- 2020 August 19: Move sequence field from `SignDoc` to `SignerInfo`, as discussed in [#6966](https://github.com/cosmos/cosmos-sdk/issues/6966). +- 2020 August 19: Move sequence field from `SignDoc` to `SignerInfo`, as discussed in [#6966](https://github.com/eligion/cosmos-sdk/issues/6966). - 2020 September 25: Remove `PublicKey` type in favor of `secp256k1.PubKey`, `ed25519.PubKey` and `multisig.LegacyAminoPubKey`. - 2020 October 15: Add `GetAccount` and `GetAccountWithHeight` methods to the `AccountRetriever` interface. - 2021 Feb 24: The SDK does not use Tendermint's `PubKey` interface anymore, but its own `cryptotypes.PubKey`. Updates to reflect this. @@ -34,8 +34,8 @@ With this in mind, we will tackle the migration path via two main areas, txs and querying. However, this ADR solely focuses on transactions. Querying should be addressed in a future ADR, but it should build off of these proposals. -Based on detailed discussions ([\#6030](https://github.com/cosmos/cosmos-sdk/issues/6030) -and [\#6078](https://github.com/cosmos/cosmos-sdk/issues/6078)), the original +Based on detailed discussions ([\#6030](https://github.com/eligion/cosmos-sdk/issues/6030) +and [\#6078](https://github.com/eligion/cosmos-sdk/issues/6078)), the original design for transactions was changed substantially from an `oneof` /JSON-signing approach to the approach described below. @@ -239,7 +239,7 @@ endpoint before broadcasting. #### `SIGN_MODE_TEXTUAL` -As was discussed extensively in [\#6078](https://github.com/cosmos/cosmos-sdk/issues/6078), +As was discussed extensively in [\#6078](https://github.com/eligion/cosmos-sdk/issues/6078), there is a desire for a human-readable signing encoding, especially for hardware wallets like the [Ledger](https://www.ledger.com) which display transaction contents to users before signing. JSON was an attempt at this but @@ -270,7 +270,7 @@ processors because: not `TxBody`) There are also scenarios where we may choose to safely ignore unknown fields -(https://github.com/cosmos/cosmos-sdk/issues/6078#issuecomment-624400188) to +(https://github.com/eligion/cosmos-sdk/issues/6078#issuecomment-624400188) to provide graceful forwards compatibility with newer clients. We propose that field numbers with bit 11 set (for most use cases this is @@ -355,8 +355,8 @@ generate or broadcast a transaction. For example: ```go import "github.com/spf13/cobra" -import "github.com/cosmos/cosmos-sdk/client" -import "github.com/cosmos/cosmos-sdk/client/tx" +import "github.com/eligion/cosmos-sdk/client" +import "github.com/eligion/cosmos-sdk/client/tx" func NewCmdDoSomething(clientCtx client.Context) *cobra.Command { return &cobra.Command{ @@ -379,7 +379,7 @@ can gracefully transition away from Amino JSON. ### `SIGN_MODE_DIRECT_AUX` -(\*Documented as option (3) in https://github.com/cosmos/cosmos-sdk/issues/6078#issuecomment-628026933) +(\*Documented as option (3) in https://github.com/eligion/cosmos-sdk/issues/6078#issuecomment-628026933) We could add a mode `SIGN_MODE_DIRECT_AUX` to support scenarios where multiple signatures @@ -437,7 +437,7 @@ message SignDocAux { ### `SIGN_MODE_DIRECT_RELAXED` -(_Documented as option (1)(a) in https://github.com/cosmos/cosmos-sdk/issues/6078#issuecomment-628026933_) +(_Documented as option (1)(a) in https://github.com/eligion/cosmos-sdk/issues/6078#issuecomment-628026933_) This is a variation of `SIGN_MODE_DIRECT` where multiple signers wouldn't need to coordinate public keys and signing modes in advance. It would involve an alternate diff --git a/docs/architecture/adr-022-custom-panic-handling.md b/docs/architecture/adr-022-custom-panic-handling.md index 034f2e7344b9..d2ed93f7488a 100644 --- a/docs/architecture/adr-022-custom-panic-handling.md +++ b/docs/architecture/adr-022-custom-panic-handling.md @@ -7,7 +7,7 @@ ## Context The current implementation of BaseApp does not allow developers to write custom error handlers during panic recovery -[runTx()](https://github.com/cosmos/cosmos-sdk/blob/bad4ca75f58b182f600396ca350ad844c18fc80b/baseapp/baseapp.go#L539) +[runTx()](https://github.com/eligion/cosmos-sdk/blob/bad4ca75f58b182f600396ca350ad844c18fc80b/baseapp/baseapp.go#L539) method. We think that this method can be more flexible and can give SDK users more options for customizations without the need to rewrite whole BaseApp. Also there's one special case for `sdk.ErrorOutOfGas` error handling, that case might be handled in a "standard" way (middleware) alongside the others. @@ -34,7 +34,7 @@ in order to customize it. Instead of hardcoding custom error handling into BaseApp we suggest using set of middlewares which can be customized externally and will allow developers use as many custom error handlers as they want. Implementation with tests -can be found [here](https://github.com/cosmos/cosmos-sdk/pull/6053). +can be found [here](https://github.com/eligion/cosmos-sdk/pull/6053). #### Implementation details @@ -209,5 +209,5 @@ This method would prepend handlers to an existing chain. ## References -- [PR-6053 with proposed solution](https://github.com/cosmos/cosmos-sdk/pull/6053) -- [Similar solution. ADR-010 Modular AnteHandler](https://github.com/cosmos/cosmos-sdk/blob/v0.38.3/docs/architecture/adr-010-modular-antehandler.md) +- [PR-6053 with proposed solution](https://github.com/eligion/cosmos-sdk/pull/6053) +- [Similar solution. ADR-010 Modular AnteHandler](https://github.com/eligion/cosmos-sdk/blob/v0.38.3/docs/architecture/adr-010-modular-antehandler.md) diff --git a/docs/architecture/adr-023-protobuf-naming.md b/docs/architecture/adr-023-protobuf-naming.md index 6e9ead13c829..2af6d9da24ba 100644 --- a/docs/architecture/adr-023-protobuf-naming.md +++ b/docs/architecture/adr-023-protobuf-naming.md @@ -222,7 +222,7 @@ and `BalanceResponse`. #### Use just `Query` for the query service -Instead of [Buf's default service suffix recommendation](https://github.com/cosmos/cosmos-sdk/pull/6033), +Instead of [Buf's default service suffix recommendation](https://github.com/eligion/cosmos-sdk/pull/6033), we should simply use the shorter `Query` for query services. For other types of gRPC services, we should consider sticking with Buf's diff --git a/docs/architecture/adr-027-deterministic-protobuf-serialization.md b/docs/architecture/adr-027-deterministic-protobuf-serialization.md index ab303e8d007a..5bb1e652dc4c 100644 --- a/docs/architecture/adr-027-deterministic-protobuf-serialization.md +++ b/docs/architecture/adr-027-deterministic-protobuf-serialization.md @@ -30,9 +30,9 @@ the same serialization of a `SignDoc` as defined in [ADR-020](./adr-020-protobuf-transaction-encoding.md) without transmitting the serialization. -Currently, for block signatures we are using a workaround: we create a new [TxRaw](https://github.com/cosmos/cosmos-sdk/blob/9e85e81e0e8140067dd893421290c191529c148c/proto/cosmos/tx/v1beta1/tx.proto#L30) -instance (as defined in [adr-020-protobuf-transaction-encoding](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md#transactions)) -by converting all [Tx](https://github.com/cosmos/cosmos-sdk/blob/9e85e81e0e8140067dd893421290c191529c148c/proto/cosmos/tx/v1beta1/tx.proto#L13) +Currently, for block signatures we are using a workaround: we create a new [TxRaw](https://github.com/eligion/cosmos-sdk/blob/9e85e81e0e8140067dd893421290c191529c148c/proto/cosmos/tx/v1beta1/tx.proto#L30) +instance (as defined in [adr-020-protobuf-transaction-encoding](https://github.com/eligion/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md#transactions)) +by converting all [Tx](https://github.com/eligion/cosmos-sdk/blob/9e85e81e0e8140067dd893421290c191529c148c/proto/cosmos/tx/v1beta1/tx.proto#L13) fields to bytes on the client side. This adds an additional manual step when sending and signing transactions. @@ -260,7 +260,7 @@ for all protobuf documents we need in the context of Cosmos SDK signing. - Simple enough to keep the barrier to implement transaction signing low - It allows us to continue to use 0 and other empty values in SignDoc, avoiding the need to work around 0 sequences. This does not imply the change from - https://github.com/cosmos/cosmos-sdk/pull/6949 should not be merged, but not + https://github.com/eligion/cosmos-sdk/pull/6949 should not be merged, but not too important anymore. ### Negative diff --git a/docs/architecture/adr-028-public-key-addresses.md b/docs/architecture/adr-028-public-key-addresses.md index d86a0426f83e..722ef969a95b 100644 --- a/docs/architecture/adr-028-public-key-addresses.md +++ b/docs/architecture/adr-028-public-key-addresses.md @@ -15,7 +15,7 @@ This ADR defines an address format for all addressable SDK accounts. That includ ## Context -Issue [\#3685](https://github.com/cosmos/cosmos-sdk/issues/3685) identified that public key +Issue [\#3685](https://github.com/eligion/cosmos-sdk/issues/3685) identified that public key address spaces are currently overlapping. We confirmed that it significantly decreases security of Cosmos SDK. ### Problem @@ -47,7 +47,7 @@ we concatenate a key type with a public key, hash it and take the first 20 bytes ### Review and Discussions -In [\#5694](https://github.com/cosmos/cosmos-sdk/issues/5694) we discussed various solutions. +In [\#5694](https://github.com/eligion/cosmos-sdk/issues/5694) we discussed various solutions. We agreed that 20 bytes it's not future proof, and extending the address length is the only way to allow addresses of different types, various signature types, etc. This disqualifies the initial proposal. @@ -60,7 +60,7 @@ In the issue we discussed various modifications: ### Requirements -+ Support currently used tools - we don't want to break an ecosystem, or add a long adaptation period. Ref: https://github.com/cosmos/cosmos-sdk/issues/8041 ++ Support currently used tools - we don't want to break an ecosystem, or add a long adaptation period. Ref: https://github.com/eligion/cosmos-sdk/issues/8041 + Try to keep the address length small - addresses are widely used in state, both as part of a key and object value. ### Scope diff --git a/docs/architecture/adr-029-fee-grant-module.md b/docs/architecture/adr-029-fee-grant-module.md index f6e9a4883c3d..163327375202 100644 --- a/docs/architecture/adr-029-fee-grant-module.md +++ b/docs/architecture/adr-029-fee-grant-module.md @@ -150,4 +150,4 @@ created to use it - Blog article describing initial work: https://medium.com/regen-network/hacking-the-cosmos-cosmwasm-and-key-management-a08b9f561d1b - Initial public specification: https://gist.github.com/aaronc/b60628017352df5983791cad30babe56 -- Original subkeys proposal from B-harvest which influenced this design: https://github.com/cosmos/cosmos-sdk/issues/4480 +- Original subkeys proposal from B-harvest which influenced this design: https://github.com/eligion/cosmos-sdk/issues/4480 diff --git a/docs/architecture/adr-030-authz-module.md b/docs/architecture/adr-030-authz-module.md index eccbabf16bbf..e635cddd6779 100644 --- a/docs/architecture/adr-030-authz-module.md +++ b/docs/architecture/adr-030-authz-module.md @@ -22,7 +22,7 @@ The concrete use cases which motivated this module include: - the desire to delegate the ability to vote on proposals to other accounts besides the account which one has delegated stake -- "sub-keys" functionality, as originally proposed in [\#4480](https://github.com/cosmos/cosmos-sdk/issues/4480) which +- "sub-keys" functionality, as originally proposed in [\#4480](https://github.com/eligion/cosmos-sdk/issues/4480) which is a term used to describe the functionality provided by this module together with the `fee_grant` module from [ADR 029](./adr-029-fee-grant-module.md) and the [group module](https://github.com/regen-network/cosmos-modules/tree/master/incubator/group). @@ -246,4 +246,4 @@ SDK users - Initial Hackatom implementation: https://github.com/cosmos-gaians/cosmos-sdk/tree/hackatom/x/delegation - Post-Hackatom spec: https://gist.github.com/aaronc/b60628017352df5983791cad30babe56#delegation-module -- B-Harvest subkeys spec: https://github.com/cosmos/cosmos-sdk/issues/4480 +- B-Harvest subkeys spec: https://github.com/eligion/cosmos-sdk/issues/4480 diff --git a/docs/architecture/adr-031-msg-service.md b/docs/architecture/adr-031-msg-service.md index e11813c735be..07803ffe228d 100644 --- a/docs/architecture/adr-031-msg-service.md +++ b/docs/architecture/adr-031-msg-service.md @@ -3,7 +3,7 @@ ## Changelog - 2020-10-05: Initial Draft -- 2021-04-21: Remove `ServiceMsg`s to follow Protobuf `Any`'s spec, see [#9063](https://github.com/cosmos/cosmos-sdk/issues/9063). +- 2021-04-21: Remove `ServiceMsg`s to follow Protobuf `Any`'s spec, see [#9063](https://github.com/eligion/cosmos-sdk/issues/9063). ## Status @@ -41,7 +41,7 @@ This isn’t really documented anywhere and clients would need to know the inter of the SDK to parse that value and return it to users. Also, there may be cases where we want to use these return values programatically. -For instance, https://github.com/cosmos/cosmos-sdk/issues/7093 proposes a method for +For instance, https://github.com/eligion/cosmos-sdk/issues/7093 proposes a method for doing inter-module Ocaps using the `Msg` router. A well-defined return type would improve the developer UX for this approach. @@ -83,7 +83,7 @@ With this approach, we would get an auto-generated `MsgServer` interface: In addition to clearly specifying return types, this has the benefit of generating client and server code. On the server side, this is almost like an automatically generated keeper method and could maybe be used intead of keepers eventually -(see [\#7093](https://github.com/cosmos/cosmos-sdk/issues/7093)): +(see [\#7093](https://github.com/eligion/cosmos-sdk/issues/7093)): ```go package gov @@ -147,8 +147,8 @@ func (am AppModule) RegisterServices(cfg Configurator) { ``` The `RegisterServices` method and the `Configurator` interface are intended to -evolve to satisfy the use cases discussed in [\#7093](https://github.com/cosmos/cosmos-sdk/issues/7093) -and [\#7122](https://github.com/cosmos/cosmos-sdk/issues/7421). +evolve to satisfy the use cases discussed in [\#7093](https://github.com/eligion/cosmos-sdk/issues/7093) +and [\#7122](https://github.com/eligion/cosmos-sdk/issues/7421). When `Msg` services are registered, the framework _should_ verify that all `Msg` types implement the `sdk.Msg` interface and throw an error during initialization rather @@ -185,7 +185,7 @@ Finally, closing a module to client API opens desirable OCAP patterns discussed - communicates return type clearly - manual handler registration and return type marshaling is no longer needed, just implement the interface and register it -- communication interface is automatically generated, the developer can now focus only on the state transition methods - this would improve the UX of [\#7093](https://github.com/cosmos/cosmos-sdk/issues/7093) approach (1) if we chose to adopt that +- communication interface is automatically generated, the developer can now focus only on the state transition methods - this would improve the UX of [\#7093](https://github.com/eligion/cosmos-sdk/issues/7093) approach (1) if we chose to adopt that - generated client code could be useful for clients and tests - dramatically reduces and simplifies the code @@ -195,7 +195,7 @@ Finally, closing a module to client API opens desirable OCAP patterns discussed ## References -- [Initial Github Issue \#7122](https://github.com/cosmos/cosmos-sdk/issues/7122) +- [Initial Github Issue \#7122](https://github.com/eligion/cosmos-sdk/issues/7122) - [proto 3 Language Guide: Defining Services](https://developers.google.com/protocol-buffers/docs/proto3#services) - [Initial pre-`Any` `Msg` designs](https://docs.google.com/document/d/1eEgYgvgZqLE45vETjhwIw4VOqK-5hwQtZtjVbiXnIGc) - [ADR 020](./adr-020-protobuf-transaction-encoding.md) diff --git a/docs/architecture/adr-033-protobuf-inter-module-comm.md b/docs/architecture/adr-033-protobuf-inter-module-comm.md index 6234c3d10b34..169372070fe2 100644 --- a/docs/architecture/adr-033-protobuf-inter-module-comm.md +++ b/docs/architecture/adr-033-protobuf-inter-module-comm.md @@ -94,7 +94,7 @@ evolution. the two which checks if one module is authorized to send the specified `Msg` to the other module providing a proper object capability system (see below). 3. The router for inter-module communication gives us a convenient place to handle rollback of transactions, -enabling atomicy of operations ([currently a problem](https://github.com/cosmos/cosmos-sdk/issues/8030)). Any failure within a module-to-module call would result in a failure of the entire +enabling atomicy of operations ([currently a problem](https://github.com/eligion/cosmos-sdk/issues/8030)). Any failure within a module-to-module call would result in a failure of the entire transaction This mechanism has the added benefits of: @@ -156,7 +156,7 @@ func (foo *FooMsgServer) Bar(ctx context.Context, req *MsgBarRequest) (*MsgBarRe This design is also intended to be extensible to cover use cases of more fine grained permissioning like minting by denom prefix being restricted to certain modules (as discussed in -[#7459](https://github.com/cosmos/cosmos-sdk/pull/7459#discussion_r529545528)). +[#7459](https://github.com/eligion/cosmos-sdk/pull/7459#discussion_r529545528)). ### `ModuleKey`s and `ModuleID`s @@ -165,7 +165,7 @@ corresponding "public key". From the [ADR 028](./adr-028-public-key-addresses.md or derived accounts that can be used for different pools (ex. staking pools) or managed accounts (ex. group accounts). We can also think of module sub-accounts as similar to derived keys - there is a root key and then some derivation path. `ModuleID` is a simple struct which contains the module name and optional "derivation" path, -and forms its address based on the `AddressHash` method from [the ADR-028](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-028-public-key-addresses.md): +and forms its address based on the `AddressHash` method from [the ADR-028](https://github.com/eligion/cosmos-sdk/blob/master/docs/architecture/adr-028-public-key-addresses.md): ```go type ModuleID struct { @@ -323,14 +323,14 @@ proto package. Services registered against `InternalServer` will be callable from other modules but not by external clients. -An alternative solution to internal-only methods could involve hooks / plugins as discussed [here](https://github.com/cosmos/cosmos-sdk/pull/7459#issuecomment-733807753). +An alternative solution to internal-only methods could involve hooks / plugins as discussed [here](https://github.com/eligion/cosmos-sdk/pull/7459#issuecomment-733807753). A more detailed evaluation of a hooks / plugin system will be addressed later in follow-ups to this ADR or as a separate ADR. ### Authorization By default, the inter-module router requires that messages are sent by the first signer returned by `GetSigners`. The -inter-module router should also accept authorization middleware such as that provided by [ADR 030](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-030-authz-module.md). +inter-module router should also accept authorization middleware such as that provided by [ADR 030](https://github.com/eligion/cosmos-sdk/blob/master/docs/architecture/adr-030-authz-module.md). This middleware will allow accounts to otherwise specific module accounts to perform actions on their behalf. Authorization middleware should take into account the need to grant certain modules effectively "admin" privileges to other modules. This will be addressed in separate ADRs or updates to this ADR. @@ -352,7 +352,7 @@ Other future improvements may include: ### MsgServices vs `x/capability` The `x/capability` module does provide a proper object-capability implementation that can be used by any module in the -SDK and could even be used for inter-module OCAPs as described in [\#5931](https://github.com/cosmos/cosmos-sdk/issues/5931). +SDK and could even be used for inter-module OCAPs as described in [\#5931](https://github.com/eligion/cosmos-sdk/issues/5931). The advantages of the approach described in this ADR are mostly around how it integrates with other parts of the SDK, specifically: @@ -396,5 +396,5 @@ replacing `Keeper` interfaces altogether. - [ADR 021](./adr-021-protobuf-query-encoding.md) - [ADR 031](./adr-031-msg-service.md) - [ADR 028](./adr-028-public-key-addresses.md) -- [ADR 030 draft](https://github.com/cosmos/cosmos-sdk/pull/7105) +- [ADR 030 draft](https://github.com/eligion/cosmos-sdk/pull/7105) - [Object-Capability Model](../docs/core/ocap.md) diff --git a/docs/architecture/adr-036-arbitrary-signature.md b/docs/architecture/adr-036-arbitrary-signature.md index 0d0737bfff71..2183573c5e0b 100644 --- a/docs/architecture/adr-036-arbitrary-signature.md +++ b/docs/architecture/adr-036-arbitrary-signature.md @@ -61,7 +61,7 @@ Proto definition: // MsgSignData defines an arbitrary, general-purpose, off-chain message message MsgSignData { // Signer is the sdk.AccAddress of the message signer - bytes Signer = 1 [(gogoproto.jsontag) = "signer", (gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; + bytes Signer = 1 [(gogoproto.jsontag) = "signer", (gogoproto.casttype) = "github.com/eligion/cosmos-sdk/types.AccAddress"]; // Data represents the raw bytes of the content that is signed (text, json, etc) bytes Data = 2 [(gogoproto.jsontag) = "data"]; } @@ -127,6 +127,6 @@ Backwards compatibility is maintained as this is a new message spec definition. ## References 1. https://github.com/cosmos/ics/pull/33 -2. https://github.com/cosmos/cosmos-sdk/pull/7727#discussion_r515668204 -3. https://github.com/cosmos/cosmos-sdk/pull/7727#issuecomment-722478477 -4. https://github.com/cosmos/cosmos-sdk/pull/7727#issuecomment-721062923 +2. https://github.com/eligion/cosmos-sdk/pull/7727#discussion_r515668204 +3. https://github.com/eligion/cosmos-sdk/pull/7727#issuecomment-722478477 +4. https://github.com/eligion/cosmos-sdk/pull/7727#issuecomment-721062923 diff --git a/docs/architecture/adr-038-state-listening.md b/docs/architecture/adr-038-state-listening.md index 9bc644dddb26..017fd0078cc3 100644 --- a/docs/architecture/adr-038-state-listening.md +++ b/docs/architecture/adr-038-state-listening.md @@ -14,7 +14,7 @@ This ADR defines a set of changes to enable listening to state changes of indivi ## Context -Currently, KVStore data can be remotely accessed through [Queries](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/messages-and-queries.md#queries) +Currently, KVStore data can be remotely accessed through [Queries](https://github.com/eligion/cosmos-sdk/blob/master/docs/building-modules/messages-and-queries.md#queries) which proceed either through Tendermint and the ABCI, or through the gRPC server. In addition to these request/response queries, it would be beneficial to have a means of listening to state changes as they occur in real time. diff --git a/docs/architecture/adr-040-storage-and-smt-state-commitments.md b/docs/architecture/adr-040-storage-and-smt-state-commitments.md index 115723576091..a47ad46cd4b8 100644 --- a/docs/architecture/adr-040-storage-and-smt-state-commitments.md +++ b/docs/architecture/adr-040-storage-and-smt-state-commitments.md @@ -21,7 +21,7 @@ In the current design, IAVL is used for both data storage and as a Merkle Tree f + Each object query requires a tree traversal from the root. Subsequent queries for the same object are cached on the SDK level. + Each edge traversal requires a DB query. -+ Creating snapshots is [expensive](https://github.com/cosmos/cosmos-sdk/issues/7215#issuecomment-684804950). It takes about 30 seconds to export less than 100 MB of state (as of March 2020). ++ Creating snapshots is [expensive](https://github.com/eligion/cosmos-sdk/issues/7215#issuecomment-684804950). It takes about 30 seconds to export less than 100 MB of state (as of March 2020). + Updates in IAVL may trigger tree reorganization and possible O(log(n)) hashes re-computation, which can become a CPU bottleneck. + The node structure is pretty expensive - it contains a standard tree node elements (key, value, left and right element) and additional metadata such as height, version (which is not required by the SDK). The entire node is hashed, and that hash is used as the key in the underlying database, [ref](https://github.com/cosmos/iavl/blob/master/docs/node/node.md ). @@ -96,7 +96,7 @@ One of the functional requirements is to access old state. This is done through Moreover, SDK could provide a way to directly access the state. However, a state machine shouldn't do that - since the number of snapshots is configurable, it would lead to nondeterministic execution. -We positively [validated](https://github.com/cosmos/cosmos-sdk/discussions/8297) a versioning and snapshot mechanism for querying old state with regards to the database we evaluated. +We positively [validated](https://github.com/eligion/cosmos-sdk/discussions/8297) a versioning and snapshot mechanism for querying old state with regards to the database we evaluated. ### State Proofs @@ -155,10 +155,10 @@ We were discussing use case where modules can use a support database, which is n ## References -+ [IAVL What's Next?](https://github.com/cosmos/cosmos-sdk/issues/7100) ++ [IAVL What's Next?](https://github.com/eligion/cosmos-sdk/issues/7100) + [IAVL overview](https://docs.google.com/document/d/16Z_hW2rSAmoyMENO-RlAhQjAG3mSNKsQueMnKpmcBv0/edit#heading=h.yd2th7x3o1iv) of it's state v0.15 + [State commitments and storage report](https://paper.dropbox.com/published/State-commitments-and-storage-review--BDvA1MLwRtOx55KRihJ5xxLbBw-KeEB7eOd11pNrZvVtqUgL3h) + [LazyLedger SMT](https://github.com/lazyledger/smt) + Facebook Diem (Libra) SMT [design](https://developers.diem.com/papers/jellyfish-merkle-tree/2021-01-14.pdf) + [Trillian Revocation Transparency](https://github.com/google/trillian/blob/master/docs/papers/RevocationTransparency.pdf), [Trillian Verifiable Data Structures](https://github.com/google/trillian/blob/master/docs/papers/VerifiableDataStructures.pdf). -+ Design and implementation [discussion](https://github.com/cosmos/cosmos-sdk/discussions/8297). ++ Design and implementation [discussion](https://github.com/eligion/cosmos-sdk/discussions/8297). diff --git a/docs/architecture/adr-041-in-place-store-migrations.md b/docs/architecture/adr-041-in-place-store-migrations.md index 1cc9ef901ba0..d941bb330cd0 100644 --- a/docs/architecture/adr-041-in-place-store-migrations.md +++ b/docs/architecture/adr-041-in-place-store-migrations.md @@ -19,7 +19,7 @@ When a chain upgrade introduces state-breaking changes inside modules, the curre This procedure is cumbersome for multiple reasons: - The procedure takes time. It can take hours to run the `export` command, plus some additional hours to run `InitChain` on the fresh chain using the migrated JSON. -- The exported JSON file can be heavy (~100MB-1GB), making it difficult to view, edit and transfer, which in turn introduces additional work to solve these problems (such as [streaming genesis](https://github.com/cosmos/cosmos-sdk/issues/6936)). +- The exported JSON file can be heavy (~100MB-1GB), making it difficult to view, edit and transfer, which in turn introduces additional work to solve these problems (such as [streaming genesis](https://github.com/eligion/cosmos-sdk/issues/6936)). ## Decision @@ -75,7 +75,7 @@ func (m Migrator) Migrate1to2(ctx sdk.Context) error { } ``` -Each module's migration functions are specific to the module's store evolutions, and are not described in this ADR. An example of x/bank store key migrations after the introduction of ADR-028 length-prefixed addresses can be seen in this [store.go code](https://github.com/cosmos/cosmos-sdk/blob/36f68eb9e041e20a5bb47e216ac5eb8b91f95471/x/bank/legacy/v043/store.go#L41-L62). +Each module's migration functions are specific to the module's store evolutions, and are not described in this ADR. An example of x/bank store key migrations after the introduction of ADR-028 length-prefixed addresses can be seen in this [store.go code](https://github.com/eligion/cosmos-sdk/blob/36f68eb9e041e20a5bb47e216ac5eb8b91f95471/x/bank/legacy/v043/store.go#L41-L62). ### Tracking Module Versions in `x/upgrade` @@ -162,6 +162,6 @@ While modules MUST register their migration functions when bumping ConsensusVers ## References -- Initial discussion: https://github.com/cosmos/cosmos-sdk/discussions/8429 -- Implementation of `ConsensusVersion` and `RunMigrations`: https://github.com/cosmos/cosmos-sdk/pull/8485 -- Issue discussing `x/upgrade` design: https://github.com/cosmos/cosmos-sdk/issues/8514 +- Initial discussion: https://github.com/eligion/cosmos-sdk/discussions/8429 +- Implementation of `ConsensusVersion` and `RunMigrations`: https://github.com/eligion/cosmos-sdk/pull/8485 +- Issue discussing `x/upgrade` design: https://github.com/eligion/cosmos-sdk/issues/8514 diff --git a/docs/architecture/adr-042-group-module.md b/docs/architecture/adr-042-group-module.md index 7d863f958f32..c2836b136cbd 100644 --- a/docs/architecture/adr-042-group-module.md +++ b/docs/architecture/adr-042-group-module.md @@ -18,8 +18,8 @@ The legacy amino multi-signature mechanism of the Cosmos SDK has certain limitat - Key rotation is not possible, although this can be solved with [account rekeying](adr-034-account-rekeying.md). - Thresholds can't be changed. -- UX is cumbersome for non-technical users ([#5661](https://github.com/cosmos/cosmos-sdk/issues/5661)). -- It requires `legacy_amino` sign mode ([#8141](https://github.com/cosmos/cosmos-sdk/issues/8141)). +- UX is cumbersome for non-technical users ([#5661](https://github.com/eligion/cosmos-sdk/issues/5661)). +- It requires `legacy_amino` sign mode ([#8141](https://github.com/eligion/cosmos-sdk/issues/8141)). While the group module is not meant to be a total replacement for the current multi-signature accounts, it provides a solution to the limitations described above, with a more flexible key management system where keys can be added, updated or removed, as well as configurable thresholds. It's meant to be used with other access control modules such as [`x/feegrant`](./adr-029-fee-grant-module.md) ans [`x/authz`](adr-030-authz-module.md) to simplify key management for individuals and organizations. @@ -28,7 +28,7 @@ The proof of concept of the group module can be found in https://github.com/rege ## Decision -We propose merging the `x/group` module with its supporting [ORM/Table Store package](https://github.com/regen-network/regen-ledger/tree/master/orm) ([#7098](https://github.com/cosmos/cosmos-sdk/issues/7098)) into the Cosmos SDK and continuing development here. There will be a dedicated ADR for the ORM package. +We propose merging the `x/group` module with its supporting [ORM/Table Store package](https://github.com/regen-network/regen-ledger/tree/master/orm) ([#7098](https://github.com/eligion/cosmos-sdk/issues/7098)) into the Cosmos SDK and continuing development here. There will be a dedicated ADR for the ORM package. ### Group @@ -236,7 +236,7 @@ This section outlines the current implementation used in the proof of concept of #### ORM -The [ORM package](https://github.com/cosmos/cosmos-sdk/discussions/9156) defines tables, sequences and secondary indexes which are used in the group module. +The [ORM package](https://github.com/eligion/cosmos-sdk/discussions/9156) defines tables, sequences and secondary indexes which are used in the group module. Groups are stored in state as part of a `groupTable`, the `group_id` being an auto-increment integer. Group members are stored in a `groupMemberTable`. @@ -265,7 +265,7 @@ Inter-module communication introduced by [ADR-033](adr-033-protobuf-inter-module ## Further Discussions -- Convergence of `/group` and `x/gov` as both support proposals and voting: https://github.com/cosmos/cosmos-sdk/discussions/9066 +- Convergence of `/group` and `x/gov` as both support proposals and voting: https://github.com/eligion/cosmos-sdk/discussions/9066 - `x/group` possible future improvements: - Execute proposals on submission (https://github.com/regen-network/regen-ledger/issues/288) - Withdraw a proposal (https://github.com/regen-network/cosmos-modules/issues/41) @@ -275,5 +275,5 @@ Inter-module communication introduced by [ADR-033](adr-033-protobuf-inter-module - Initial specification: - https://gist.github.com/aaronc/b60628017352df5983791cad30babe56#group-module - - [#5236](https://github.com/cosmos/cosmos-sdk/pull/5236) -- Proposal to add `x/group` into the SDK: [#7633](https://github.com/cosmos/cosmos-sdk/issues/7633) + - [#5236](https://github.com/eligion/cosmos-sdk/pull/5236) +- Proposal to add `x/group` into the SDK: [#7633](https://github.com/eligion/cosmos-sdk/issues/7633) diff --git a/docs/basics/accounts.md b/docs/basics/accounts.md index b8bcb76aef77..e762b5505309 100644 --- a/docs/basics/accounts.md +++ b/docs/basics/accounts.md @@ -66,9 +66,9 @@ In the node, all data is stored using Protocol Buffers serialization. The Cosmos SDK supports the following digital key schemes for creating digital signatures: -- `secp256k1`, as implemented in the [SDK's `crypto/keys/secp256k1` package](https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/crypto/keys/secp256k1/secp256k1.go). -- `secp256r1`, as implemented in the [SDK's `crypto/keys/secp256r1` package](https://github.com/cosmos/cosmos-sdk/blob/master/crypto/keys/secp256r1/pubkey.go), -- `tm-ed25519`, as implemented in the [SDK `crypto/keys/ed25519` package](https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/crypto/keys/ed25519/ed25519.go). This scheme is supported only for the consensus validation. +- `secp256k1`, as implemented in the [SDK's `crypto/keys/secp256k1` package](https://github.com/eligion/cosmos-sdk/blob/v0.42.1/crypto/keys/secp256k1/secp256k1.go). +- `secp256r1`, as implemented in the [SDK's `crypto/keys/secp256r1` package](https://github.com/eligion/cosmos-sdk/blob/master/crypto/keys/secp256r1/pubkey.go), +- `tm-ed25519`, as implemented in the [SDK `crypto/keys/ed25519` package](https://github.com/eligion/cosmos-sdk/blob/v0.42.1/crypto/keys/ed25519/ed25519.go). This scheme is supported only for the consensus validation. | | Address length | Public key length | Used for transaction | Used for consensus | | | in bytes | in bytes | authentication | (tendermint) | @@ -89,9 +89,9 @@ Each account is identified using `Address` which is a sequence of bytes derived These types implement the `Address` interface: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/types/address.go#L71-L90 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/types/address.go#L71-L90 -Address construction algorithm is defined in [ADR-28](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-028-public-key-addresses.md). +Address construction algorithm is defined in [ADR-28](https://github.com/eligion/cosmos-sdk/blob/master/docs/architecture/adr-028-public-key-addresses.md). Here is the standard way to obtain an account address from a `pub` public key: ```go @@ -102,7 +102,7 @@ Of note, the `Marshal()` and `Bytes()` method both return the same raw `[]byte` For user interaction, addresses are formatted using [Bech32](https://en.bitcoin.it/wiki/Bech32) and implemented by the `String` method. The Bech32 method is the only supported format to use when interacting with a blockchain. The Bech32 human-readable part (Bech32 prefix) is used to denote an address type. Example: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/types/address.go#L230-L244 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/types/address.go#L230-L244 | | Address Bech32 Prefix | | ------------------ | --------------------- | @@ -114,7 +114,7 @@ For user interaction, addresses are formatted using [Bech32](https://en.bitcoin. Public keys in Cosmos SDK are defined by `cryptotypes.PubKey` interface. Since public keys are saved in a store, `cryptotypes.PubKey` extends the `proto.Message` interface: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/crypto/types/types.go#L8-L17 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/crypto/types/types.go#L8-L17 A compressed format is used for `secp256k1` and `secp256r1` serialization. @@ -124,24 +124,24 @@ A compressed format is used for `secp256k1` and `secp256r1` serialization. This prefix is followed by the `x`-coordinate. Public Keys are not used to reference accounts (or users) and in general are not used when composing transaction messages (with few exceptions: `MsgCreateValidator`, `Validator` and `Multisig` messages). -For user interactions, `PubKey` is formatted using Protobufs JSON ([ProtoMarshalJSON](https://github.com/cosmos/cosmos-sdk/blob/release/v0.42.x/codec/json.go#L12) function). Example: +For user interactions, `PubKey` is formatted using Protobufs JSON ([ProtoMarshalJSON](https://github.com/eligion/cosmos-sdk/blob/release/v0.42.x/codec/json.go#L12) function). Example: -+++ https://github.com/cosmos/cosmos-sdk/blob/7568b66/crypto/keyring/output.go#L23-L39 ++++ https://github.com/eligion/cosmos-sdk/blob/7568b66/crypto/keyring/output.go#L23-L39 ## Keyring A `Keyring` is an object that stores and manages accounts. In the Cosmos SDK, a `Keyring` implementation follows the `Keyring` interface: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/crypto/keyring/keyring.go#L51-L89 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/crypto/keyring/keyring.go#L51-L89 The default implementation of `Keyring` comes from the third-party [`99designs/keyring`](https://github.com/99designs/keyring) library. A few notes on the `Keyring` methods: - `Sign(uid string, payload []byte) ([]byte, sdkcrypto.PubKey, error)` strictly deals with the signature of the `payload` bytes. You must prepare and encode the transaction into a canonical `[]byte` form. Because protobuf is not deterministic, it has been decided in [ADR-020](../architecture/adr-020-protobuf-transaction-encoding.md) that the canonical `payload` to sign is the `SignDoc` struct, deterministically encoded using [ADR-027](adr-027-deterministic-protobuf-serialization.md). Note that signature verification is not implemented in the SDK by default, it is deferred to the [`anteHandler`](../core/baseapp.md#antehandler). - +++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/proto/cosmos/tx/v1beta1/tx.proto#L47-L64 + +++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/proto/cosmos/tx/v1beta1/tx.proto#L47-L64 -- `NewAccount(uid, mnemonic, bip39Passwd, hdPath string, algo SignatureAlgo) (Info, error)` creates a new account based on the [`bip44 path`](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki) and persists it on disk. The `PrivKey` is **never stored unencrypted**, instead it is [encrypted with a passphrase](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/crypto/armor.go) before being persisted. In the context of this method, the key type and sequence number refer to the segment of the BIP44 derivation path (for example, `0`, `1`, `2`, ...) that is used to derive a private and a public key from the mnemonic. Using the same mnemonic and derivation path, the same `PrivKey`, `PubKey` and `Address` is generated. The following keys are supported by the keyring: +- `NewAccount(uid, mnemonic, bip39Passwd, hdPath string, algo SignatureAlgo) (Info, error)` creates a new account based on the [`bip44 path`](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki) and persists it on disk. The `PrivKey` is **never stored unencrypted**, instead it is [encrypted with a passphrase](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/crypto/armor.go) before being persisted. In the context of this method, the key type and sequence number refer to the segment of the BIP44 derivation path (for example, `0`, `1`, `2`, ...) that is used to derive a private and a public key from the mnemonic. Using the same mnemonic and derivation path, the same `PrivKey`, `PubKey` and `Address` is generated. The following keys are supported by the keyring: - `secp256k1` - `ed25519` diff --git a/docs/basics/app-anatomy.md b/docs/basics/app-anatomy.md index 0373d24aafa5..21ec1bf2aeba 100644 --- a/docs/basics/app-anatomy.md +++ b/docs/basics/app-anatomy.md @@ -53,13 +53,13 @@ The first thing defined in `app.go` is the `type` of the application. It is gene See an example of application type definition from `simapp`, the SDK's own app used for demo and testing purposes: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/simapp/app.go#L145-L187 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/simapp/app.go#L145-L187 ### Constructor Function This function constructs a new application of the type defined in the section above. It must fulfill the `AppCreator` signature in order to be used in the [`start` command](../core/node.md#start-command) of the application's daemon command. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/server/types/app.go#L48-L50 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/server/types/app.go#L48-L50 Here are the main actions performed by this function: @@ -81,21 +81,21 @@ Note that this function only creates an instance of the app, while the actual st See an example of application constructor from `simapp`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/simapp/app.go#L198-L441 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/simapp/app.go#L198-L441 ### InitChainer -The `InitChainer` is a function that initializes the state of the application from a genesis file (i.e. token balances of genesis accounts). It is called when the application receives the `InitChain` message from the Tendermint engine, which happens when the node is started at `appBlockHeight == 0` (i.e. on genesis). The application must set the `InitChainer` in its [constructor](#constructor-function) via the [`SetInitChainer`](https://godoc.org/github.com/cosmos/cosmos-sdk/baseapp#BaseApp.SetInitChainer) method. +The `InitChainer` is a function that initializes the state of the application from a genesis file (i.e. token balances of genesis accounts). It is called when the application receives the `InitChain` message from the Tendermint engine, which happens when the node is started at `appBlockHeight == 0` (i.e. on genesis). The application must set the `InitChainer` in its [constructor](#constructor-function) via the [`SetInitChainer`](https://godoc.org/github.com/eligion/cosmos-sdk/baseapp#BaseApp.SetInitChainer) method. In general, the `InitChainer` is mostly composed of the [`InitGenesis`](../building-modules/genesis.md#initgenesis) function of each of the application's modules. This is done by calling the `InitGenesis` function of the module manager, which in turn will call the `InitGenesis` function of each of the modules it contains. Note that the order in which the modules' `InitGenesis` functions must be called has to be set in the module manager using the [module manager's](../building-modules/module-manager.md) `SetOrderInitGenesis` method. This is done in the [application's constructor](#application-constructor), and the `SetOrderInitGenesis` has to be called before the `SetInitChainer`. See an example of an `InitChainer` from `simapp`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/simapp/app.go#L464-L471 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/simapp/app.go#L464-L471 ### BeginBlocker and EndBlocker -The SDK offers developers the possibility to implement automatic execution of code as part of their application. This is implemented through two function called `BeginBlocker` and `EndBlocker`. They are called when the application receives respectively the `BeginBlock` and `EndBlock` messages from the Tendermint engine, which happens at the beginning and at the end of each block. The application must set the `BeginBlocker` and `EndBlocker` in its [constructor](#constructor-function) via the [`SetBeginBlocker`](https://godoc.org/github.com/cosmos/cosmos-sdk/baseapp#BaseApp.SetBeginBlocker) and [`SetEndBlocker`](https://godoc.org/github.com/cosmos/cosmos-sdk/baseapp#BaseApp.SetEndBlocker) methods. +The SDK offers developers the possibility to implement automatic execution of code as part of their application. This is implemented through two function called `BeginBlocker` and `EndBlocker`. They are called when the application receives respectively the `BeginBlock` and `EndBlock` messages from the Tendermint engine, which happens at the beginning and at the end of each block. The application must set the `BeginBlocker` and `EndBlocker` in its [constructor](#constructor-function) via the [`SetBeginBlocker`](https://godoc.org/github.com/eligion/cosmos-sdk/baseapp#BaseApp.SetBeginBlocker) and [`SetEndBlocker`](https://godoc.org/github.com/eligion/cosmos-sdk/baseapp#BaseApp.SetEndBlocker) methods. In general, the `BeginBlocker` and `EndBlocker` functions are mostly composed of the [`BeginBlock` and `EndBlock`](../building-modules/beginblock-endblock.md) functions of each of the application's modules. This is done by calling the `BeginBlock` and `EndBlock` functions of the module manager, which in turn will call the `BeginBLock` and `EndBlock` functions of each of the modules it contains. Note that the order in which the modules' `BegingBlock` and `EndBlock` functions must be called has to be set in the module manager using the `SetOrderBeginBlock` and `SetOrderEndBlock` methods respectively. This is done via the [module manager](../building-modules/module-manager.md) in the [application's constructor](#application-constructor), and the `SetOrderBeginBlock` and `SetOrderEndBlock` methods have to be called before the `SetBeginBlocker` and `SetEndBlocker` functions. @@ -103,13 +103,13 @@ As a sidenote, it is important to remember that application-specific blockchains See an example of `BeginBlocker` and `EndBlocker` functions from `simapp` -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/simapp/app.go#L454-L462 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/simapp/app.go#L454-L462 ### Register Codec The `EncodingConfig` structure is the last important part of the `app.go` file. The goal of this structure is to define the codecs that will be used throughout the app. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/simapp/params/encoding.go#L9-L16 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/simapp/params/encoding.go#L9-L16 Here are descriptions of what each of the four fields means: @@ -125,7 +125,7 @@ NOTE: this function is marked deprecated and should only be used to create an ap See an example of a `MakeTestEncodingConfig` from `simapp`: -+++ https://github.com/cosmos/cosmos-sdk/blob/590358652cc1cbc13872ea1659187e073ea38e75/simapp/encoding.go#L8-L19 ++++ https://github.com/eligion/cosmos-sdk/blob/590358652cc1cbc13872ea1659187e073ea38e75/simapp/encoding.go#L8-L19 ## Modules @@ -154,7 +154,7 @@ For a more details look at a transaction [lifecycle](./tx-lifecycle.md). Module developers create custom `Msg` services when they build their own module. The general practice is to define the `Msg` Protobuf service in a `tx.proto` file. For example, the `x/bank` module defines a service with two methods to transfer tokens: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/bank/v1beta1/tx.proto#L10-L17 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/bank/v1beta1/tx.proto#L10-L17 Service methods use `keeper` in order to update the module state. @@ -218,7 +218,7 @@ The [module's Legacy REST interface](../building-modules/module-interfaces.md#le - A `RegisterRoutes` function, which registers each route defined in the file. This function is called from the [main application's interface](#application-interfaces) for each module used within the application. The router used in the SDK is [Gorilla's mux](https://github.com/gorilla/mux). - Custom request type definitions for each query or transaction creation function that needs to be exposed. These custom request types build on the base `request` type of the Cosmos SDK: - +++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/types/rest/rest.go#L62-L76 + +++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/types/rest/rest.go#L62-L76 - One handler function for each request that can be routed to the given module. These functions implement the core logic necessary to serve the request. These Legacy API endpoints are present in the SDK for backward compatibility purposes and will be removed in the next release. @@ -240,7 +240,7 @@ See an example of an application's main command-line file from the [nameservice ## Dependencies and Makefile ::: warning -A patch introduced in `go-grpc v1.34.0` made gRPC incompatible with the `gogoproto` library, making some [gRPC queries](https://github.com/cosmos/cosmos-sdk/issues/8426) panic. As such, the SDK requires that `go-grpc <=v1.33.2` is installed in your `go.mod`. +A patch introduced in `go-grpc v1.34.0` made gRPC incompatible with the `gogoproto` library, making some [gRPC queries](https://github.com/eligion/cosmos-sdk/issues/8426) panic. As such, the SDK requires that `go-grpc <=v1.33.2` is installed in your `go.mod`. To make sure that gRPC is working properly, it is **highly recommended** to add the following line in your application's `go.mod`: @@ -248,7 +248,7 @@ To make sure that gRPC is working properly, it is **highly recommended** to add replace google.golang.org/grpc => google.golang.org/grpc v1.33.2 ``` -Please see [issue #8392](https://github.com/cosmos/cosmos-sdk/issues/8392) for more info. +Please see [issue #8392](https://github.com/eligion/cosmos-sdk/issues/8392) for more info. ::: This section is optional, as developers are free to choose their dependency manager and project building method. That said, the current most used framework for versioning control is [`go.mod`](https://github.com/golang/go/wiki/Modules). It ensures each of the libraries used throughout the application are imported with the correct version. See an example from the [nameservice tutorial](https://github.com/cosmos/sdk-tutorials/tree/master/nameservice): diff --git a/docs/basics/gas-fees.md b/docs/basics/gas-fees.md index 0a93c133580f..9486422ffadf 100644 --- a/docs/basics/gas-fees.md +++ b/docs/basics/gas-fees.md @@ -21,7 +21,7 @@ In the Cosmos SDK, `gas` is a special unit that is used to track the consumption In the Cosmos SDK, `gas` is a simple alias for `uint64`, and is managed by an object called a _gas meter_. Gas meters implement the `GasMeter` interface -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/store/types/gas.go#L34-L43 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/store/types/gas.go#L34-L43 where: @@ -71,12 +71,12 @@ The `AnteHandler` is run for every transaction during `CheckTx` and `DeliverTx`, type AnteHandler func(ctx Context, tx Tx, simulate bool) (newCtx Context, result Result, abort bool) ``` -The `anteHandler` is not implemented in the core SDK but in a module. This gives the possibility to developers to choose which version of `AnteHandler` fits their application's needs. That said, most applications today use the default implementation defined in the [`auth` module](https://github.com/cosmos/cosmos-sdk/tree/master/x/auth). Here is what the `anteHandler` is intended to do in a normal Cosmos SDK application: +The `anteHandler` is not implemented in the core SDK but in a module. This gives the possibility to developers to choose which version of `AnteHandler` fits their application's needs. That said, most applications today use the default implementation defined in the [`auth` module](https://github.com/eligion/cosmos-sdk/tree/master/x/auth). Here is what the `anteHandler` is intended to do in a normal Cosmos SDK application: - Verify that the transaction are of the correct type. Transaction types are defined in the module that implements the `anteHandler`, and they follow the transaction interface: - +++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/types/tx_msg.go#L49-L57 + +++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/types/tx_msg.go#L49-L57 This enables developers to play with various types for the transaction of their application. In the default `auth` module, the default transaction type is `Tx`: - +++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/tx/v1beta1/tx.proto#L12-L25 + +++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/tx/v1beta1/tx.proto#L12-L25 - Verify signatures for each [`message`](../building-modules/messages-and-queries.md#messages) contained in the transaction. Each `message` should be signed by one or multiple sender(s), and these signatures must be verified in the `anteHandler`. - During `CheckTx`, verify that the gas prices provided with the transaction is greater than the local `min-gas-prices` (as a reminder, gas-prices can be deducted from the following equation: `fees = gas * gas-prices`). `min-gas-prices` is a parameter local to each full-node and used during `CheckTx` to discard transactions that do not provide a minimum amount of fees. This ensure that the mempool cannot be spammed with garbage transactions. - Verify that the sender of the transaction has enough funds to cover for the `fees`. When the end-user generates a transaction, they must indicate 2 of the 3 following parameters (the third one being implicit): `fees`, `gas` and `gas-prices`. This signals how much they are willing to pay for nodes to execute their transaction. The provided `gas` value is stored in a parameter called `GasWanted` for later use. diff --git a/docs/basics/query-lifecycle.md b/docs/basics/query-lifecycle.md index 55902e698d3c..88ec306370d6 100644 --- a/docs/basics/query-lifecycle.md +++ b/docs/basics/query-lifecycle.md @@ -39,7 +39,7 @@ The CLI understands a specific set of commands, defined in a hierarchical struct ### gRPC ::: warning -A patch introduced in `go-grpc v1.34.0` made gRPC incompatible with the `gogoproto` library, making some [gRPC queries](https://github.com/cosmos/cosmos-sdk/issues/8426) panic. As such, the SDK requires that `go-grpc <=v1.33.2` is installed in your `go.mod`. +A patch introduced in `go-grpc v1.34.0` made gRPC incompatible with the `gogoproto` library, making some [gRPC queries](https://github.com/eligion/cosmos-sdk/issues/8426) panic. As such, the SDK requires that `go-grpc <=v1.33.2` is installed in your `go.mod`. To make sure that gRPC is working properly, it is **highly recommended** to add the following line in your application's `go.mod`: @@ -47,7 +47,7 @@ To make sure that gRPC is working properly, it is **highly recommended** to add replace google.golang.org/grpc => google.golang.org/grpc v1.33.2 ``` -Please see [issue #8392](https://github.com/cosmos/cosmos-sdk/issues/8392) for more info. +Please see [issue #8392](https://github.com/eligion/cosmos-sdk/issues/8392) for more info. ::: Another interface through which users can make queries, introduced in Cosmos SDK v0.40, is [gRPC](https://grpc.io) requests to a [gRPC server](../core/grpc_rest.md#grpc-server). The endpoints are defined as [Protocol Buffers](https://developers.google.com/protocol-buffers) service methods inside `.proto` files, written in Protobuf's own language-agnostic interface definition language (IDL). The Protobuf ecosystem developed tools for code-generation from `*.proto` files into various languages. These tools allow to build gRPC clients easily. @@ -91,7 +91,7 @@ The first thing that is created in the execution of a CLI command is a `client.C The `client.Context` also contains various functions such as `Query()` which retrieves the RPC Client and makes an ABCI call to relay a query to a full-node. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/client/context.go#L20-L50 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/client/context.go#L20-L50 The `client.Context`'s primary role is to store data used during interactions with the end-user and provide methods to interact with this data - it is used before and after the query is processed by the full-node. Specifically, in handling `MyQuery`, the `client.Context` is utilized to encode the query parameters, retrieve the full-node, and write the output. Prior to being relayed to a full-node, the query needs to be encoded into a `[]byte` form, as full-nodes are application-agnostic and do not understand specific types. The full-node (RPC Client) itself is retrieved using the `client.Context`, which knows which node the user CLI is connected to. The query is relayed to this full-node to be processed. Finally, the `client.Context` contains a `Writer` to write output when the response is returned. These steps are further described in later sections. @@ -105,19 +105,19 @@ In our case (querying an address's delegations), `MyQuery` contains an [address] Here is what the code looks like for the CLI command: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/x/staking/client/cli/query.go#L324-L327 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/x/staking/client/cli/query.go#L324-L327 #### gRPC Query Client Creation The SDK leverages code generated from Protobuf services to make queries. The `staking` module's `MyQuery` service generates a `queryClient`, which the CLI will use to make queries. Here is the relevant code: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/x/staking/client/cli/query.go#L318-L342 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/x/staking/client/cli/query.go#L318-L342 Under the hood, the `client.Context` has a `Query()` function used to retrieve the pre-configured node and relay a query to it; the function takes the query fully-qualified service method name as path (in our case: `/cosmos.staking.v1beta1.Query/Delegations`), and arguments as parameters. It first retrieves the RPC Client (called the [**node**](../core/node.md)) configured by the user to relay this query to, and creates the `ABCIQueryOptions` (parameters formatted for the ABCI call). The node is then used to make the ABCI call, `ABCIQueryWithOptions()`. Here is what the code looks like: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/client/query.go#L65-L91 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/client/query.go#L65-L91 ## RPC @@ -143,7 +143,7 @@ Since `Query()` is an ABCI function, `baseapp` returns the response as an [`abci The application [`codec`](../core/encoding.md) is used to unmarshal the response to a JSON and the `client.Context` prints the output to the command line, applying any configurations such as the output type (text, JSON or YAML). -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/client/context.go#L248-L283 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/client/context.go#L248-L283 And that's a wrap! The result of the query is outputted to the console by the CLI. diff --git a/docs/basics/tx-lifecycle.md b/docs/basics/tx-lifecycle.md index fa51eef1c85e..a7ee236df3c4 100644 --- a/docs/basics/tx-lifecycle.md +++ b/docs/basics/tx-lifecycle.md @@ -102,7 +102,7 @@ After the ValidateBasic checks, the `AnteHandler`s are run. Technically, they ar A copy of the cached context is provided to the `AnteHandler`, which performs limited checks specified for the transaction type. Using a copy allows the AnteHandler to do stateful checks for `Tx` without modifying the last committed state, and revert back to the original if the execution fails. -For example, the [`auth`](https://github.com/cosmos/cosmos-sdk/tree/master/x/auth/spec) module `AnteHandler` checks and increments sequence numbers, checks signatures and account numbers, and deducts fees from the first signer of the transaction - all state changes are made using the `checkState`. +For example, the [`auth`](https://github.com/eligion/cosmos-sdk/tree/master/x/auth/spec) module `AnteHandler` checks and increments sequence numbers, checks signatures and account numbers, and deducts fees from the first signer of the transaction - all state changes are made using the `checkState`. ### Gas diff --git a/docs/building-modules/beginblock-endblock.md b/docs/building-modules/beginblock-endblock.md index 2814c0ae9c78..30a6b511399a 100644 --- a/docs/building-modules/beginblock-endblock.md +++ b/docs/building-modules/beginblock-endblock.md @@ -28,11 +28,11 @@ It is possible for developers to define the order of execution between the `Begi See an example implementation of `BeginBlocker` from the `distr` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/f33749263f4ecc796115ad6e789cb0f7cddf9148/x/distribution/abci.go#L14-L38 ++++ https://github.com/eligion/cosmos-sdk/blob/f33749263f4ecc796115ad6e789cb0f7cddf9148/x/distribution/abci.go#L14-L38 and an example implementation of `EndBlocker` from the `staking` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/f33749263f4ecc796115ad6e789cb0f7cddf9148/x/staking/abci.go#L22-L27 ++++ https://github.com/eligion/cosmos-sdk/blob/f33749263f4ecc796115ad6e789cb0f7cddf9148/x/staking/abci.go#L22-L27 ## Next {hide} diff --git a/docs/building-modules/errors.md b/docs/building-modules/errors.md index d1bc36824562..be1e809bfdda 100644 --- a/docs/building-modules/errors.md +++ b/docs/building-modules/errors.md @@ -18,7 +18,7 @@ of errors is handled via the `types/errors` package. Example: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.38.1/x/distribution/types/errors.go#L1-L21 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.38.1/x/distribution/types/errors.go#L1-L21 Each custom module error must provide the codespace, which is typically the module name (e.g. "distribution") and is unique per module, and a uint32 code. Together, the codespace and code @@ -38,7 +38,7 @@ execution. Example: -+++ https://github.com/cosmos/cosmos-sdk/blob/b2d48a9e815fe534a7faeec6ca2adb0874252b81/x/bank/keeper/keeper.go#L85-L122 ++++ https://github.com/eligion/cosmos-sdk/blob/b2d48a9e815fe534a7faeec6ca2adb0874252b81/x/bank/keeper/keeper.go#L85-L122 Regardless if an error is wrapped or not, the SDK's `errors` package provides an API to determine if an error is of a particular kind via `Is`. diff --git a/docs/building-modules/genesis.md b/docs/building-modules/genesis.md index 7ad32b4d474d..b16902375325 100644 --- a/docs/building-modules/genesis.md +++ b/docs/building-modules/genesis.md @@ -17,7 +17,7 @@ The subset of the genesis state defined from a given module is generally defined See an example of `GenesisState` protobuf message definition from the `auth` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/a9547b54ffac9729fe1393651126ddfc0d236cff/proto/cosmos/auth/v1beta1/genesis.proto ++++ https://github.com/eligion/cosmos-sdk/blob/a9547b54ffac9729fe1393651126ddfc0d236cff/proto/cosmos/auth/v1beta1/genesis.proto Next we present the main genesis-related methods that need to be implemented by module developers in order for their module to be used in Cosmos SDK applications. @@ -25,13 +25,13 @@ Next we present the main genesis-related methods that need to be implemented by The `DefaultGenesis()` method is a simple method that calls the constructor function for `GenesisState` with the default value for each parameter. See an example from the `auth` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/64b6bb5270e1a3b688c2d98a8f481ae04bb713ca/x/auth/module.go#L48-L52 ++++ https://github.com/eligion/cosmos-sdk/blob/64b6bb5270e1a3b688c2d98a8f481ae04bb713ca/x/auth/module.go#L48-L52 ### `ValidateGenesis` The `ValidateGenesis(genesisState GenesisState)` method is called to verify that the provided `genesisState` is correct. It should perform validity checks on each of the parameters listed in `GenesisState`. See an example from the `auth` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/64b6bb5270e1a3b688c2d98a8f481ae04bb713ca/x/auth/types/genesis.go#L57-L70 ++++ https://github.com/eligion/cosmos-sdk/blob/64b6bb5270e1a3b688c2d98a8f481ae04bb713ca/x/auth/types/genesis.go#L57-L70 ## Other Genesis Methods @@ -45,7 +45,7 @@ The [module manager](./module-manager.md#manager) of the application is responsi See an example of `InitGenesis` from the `auth` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/64b6bb5270e1a3b688c2d98a8f481ae04bb713ca/x/auth/genesis.go#L13-L28 ++++ https://github.com/eligion/cosmos-sdk/blob/64b6bb5270e1a3b688c2d98a8f481ae04bb713ca/x/auth/genesis.go#L13-L28 ### `ExportGenesis` @@ -53,7 +53,7 @@ The `ExportGenesis` method is executed whenever an export of the state is made. See an example of `ExportGenesis` from the `auth` module. -+++ https://github.com/cosmos/cosmos-sdk/blob/64b6bb5270e1a3b688c2d98a8f481ae04bb713ca/x/auth/genesis.go#L31-L42 ++++ https://github.com/eligion/cosmos-sdk/blob/64b6bb5270e1a3b688c2d98a8f481ae04bb713ca/x/auth/genesis.go#L31-L42 ## Next {hide} diff --git a/docs/building-modules/invariants.md b/docs/building-modules/invariants.md index 0adce4dc1f9e..6e523b4ed208 100644 --- a/docs/building-modules/invariants.md +++ b/docs/building-modules/invariants.md @@ -14,7 +14,7 @@ An invariant is a property of the application that should always be true. In the An `Invariant` is a function that checks for a particular invariant within a module. Module `Invariant`s must follow the `Invariant` type: -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/invariant.go#L9 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/invariant.go#L9 The `string` return value is the invariant message, which can be used when printing logs, and the `bool` return value is the actual result of the invariant check. @@ -61,7 +61,7 @@ func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper) { } ``` -For more, see an example of [`Invariant`s implementation from the `staking` module](https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/staking/keeper/invariants.go). +For more, see an example of [`Invariant`s implementation from the `staking` module](https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/staking/keeper/invariants.go). ## Invariant Registry @@ -69,17 +69,17 @@ The `InvariantRegistry` is a registry where the `Invariant`s of all the modules At its core, the `InvariantRegistry` is defined in the SDK as an interface: -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/invariant.go#L14-L17 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/invariant.go#L14-L17 Typically, this interface is implemented in the `keeper` of a specific module. The most used implementation of an `InvariantRegistry` can be found in the `crisis` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/x/crisis/keeper/keeper.go#L50-L54 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/x/crisis/keeper/keeper.go#L50-L54 The `InvariantRegistry` is therefore typically instantiated by instantiating the `keeper` of the `crisis` module in the [application's constructor function](../basics/app-anatomy.md#constructor-function). `Invariant`s can be checked manually via [`message`s](./messages-and-queries.md), but most often they are checked automatically at the end of each block. Here is an example from the `crisis` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/crisis/abci.go#L7-L14 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/crisis/abci.go#L7-L14 In both cases, if one of the `Invariant`s returns false, the `InvariantRegistry` can trigger special logic (e.g. have the application panic and print the `Invariant`s message in the log). diff --git a/docs/building-modules/keeper.md b/docs/building-modules/keeper.md index 0f82ccd2e8fa..68888427ac92 100644 --- a/docs/building-modules/keeper.md +++ b/docs/building-modules/keeper.md @@ -34,7 +34,7 @@ type Keeper struct { For example, here is the type definition of the `keeper` from the `staking` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/staking/keeper/keeper.go#L23-L33 ++++ https://github.com/eligion/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/staking/keeper/keeper.go#L23-L33 Let us go through the different parameters: @@ -72,13 +72,13 @@ and the method will go through the following steps: 2. Marshal `value` to `[]byte` using the codec `cdc`. 3. Set the encoded value in the store at location `key` using the `Set(key []byte, value []byte)` method of the store. -For more, see an example of `keeper`'s [methods implementation from the `staking` module](https://github.com/cosmos/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/staking/keeper/keeper.go). +For more, see an example of `keeper`'s [methods implementation from the `staking` module](https://github.com/eligion/cosmos-sdk/blob/3bafd8255a502e5a9cee07391cf8261538245dfd/x/staking/keeper/keeper.go). The [module `KVStore`](../core/store.md#kvstore-and-commitkvstore-interfaces) also provides an `Iterator()` method which returns an `Iterator` object to iterate over a domain of keys. This is an example from the `auth` module to iterate accounts: -+++ https://github.com/cosmos/cosmos-sdk/blob/bf8809ef9840b4f5369887a38d8345e2380a567f/x/auth/keeper/account.go#L70-L83 ++++ https://github.com/eligion/cosmos-sdk/blob/bf8809ef9840b4f5369887a38d8345e2380a567f/x/auth/keeper/account.go#L70-L83 ## Next {hide} diff --git a/docs/building-modules/messages-and-queries.md b/docs/building-modules/messages-and-queries.md index 6b5db1a72e12..ab5f30e118e0 100644 --- a/docs/building-modules/messages-and-queries.md +++ b/docs/building-modules/messages-and-queries.md @@ -22,7 +22,7 @@ Starting from v0.40, defining Protobuf `Msg` services is the recommended way to See an example of a `Msg` service definition from `x/bank` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc1/proto/cosmos/bank/v1beta1/tx.proto#L10-L17 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc1/proto/cosmos/bank/v1beta1/tx.proto#L10-L17 Each `Msg` service method must have exactly one argument, which must implement the `sdk.Msg` interface, and a Protobuf response. The naming convention is to call the RPC argument `Msg` and the RPC response `MsgResponse`. For example: @@ -49,7 +49,7 @@ Amino `LegacyMsg`s can be defined as protobuf messages. The messages definition A `LegacyMsg` is typically accompanied by a standard constructor function, that is called from one of the [module's interface](./module-interfaces.md). `message`s also need to implement the `sdk.Msg` interface: -+++ https://github.com/cosmos/cosmos-sdk/blob/4a1b2fba43b1052ca162b3a1e0b6db6db9c26656/types/tx_msg.go#L10-L33 ++++ https://github.com/eligion/cosmos-sdk/blob/4a1b2fba43b1052ca162b3a1e0b6db6db9c26656/types/tx_msg.go#L10-L33 It extends `proto.Message` and contains the following methods: @@ -61,7 +61,7 @@ It extends `proto.Message` and contains the following methods: See an example implementation of a `message` from the `gov` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc1/x/gov/types/msgs.go#L77-L125 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc1/x/gov/types/msgs.go#L77-L125 ## Queries @@ -73,7 +73,7 @@ Starting from v0.40, the prefered way to define queries is by using [Protobuf se Here's an example of such a `Query` service definition: -+++ https://github.com/cosmos/cosmos-sdk/blob/d55c1a26657a0af937fa2273b38dcfa1bb3cff9f/proto/cosmos/auth/v1beta1/query.proto#L12-L23 ++++ https://github.com/eligion/cosmos-sdk/blob/d55c1a26657a0af937fa2273b38dcfa1bb3cff9f/proto/cosmos/auth/v1beta1/query.proto#L12-L23 As `proto.Message`s, generated `Response` types implement by default `String()` method of [`fmt.Stringer`](https://golang.org/pkg/fmt/#Stringer). @@ -106,9 +106,9 @@ Store queries query directly for store keys. They use `clientCtx.QueryABCI(req a See following examples: -+++ https://github.com/cosmos/cosmos-sdk/blob/080fcf1df25ccdf97f3029b6b6f83caaf5a235e4/x/ibc/core/client/query.go#L36-L46 ++++ https://github.com/eligion/cosmos-sdk/blob/080fcf1df25ccdf97f3029b6b6f83caaf5a235e4/x/ibc/core/client/query.go#L36-L46 -+++ https://github.com/cosmos/cosmos-sdk/blob/080fcf1df25ccdf97f3029b6b6f83caaf5a235e4/baseapp/abci.go#L722-L749 ++++ https://github.com/eligion/cosmos-sdk/blob/080fcf1df25ccdf97f3029b6b6f83caaf5a235e4/baseapp/abci.go#L722-L749 ## Next {hide} diff --git a/docs/building-modules/module-interfaces.md b/docs/building-modules/module-interfaces.md index 161d9f4559a9..5d5e47d3bc6d 100644 --- a/docs/building-modules/module-interfaces.md +++ b/docs/building-modules/module-interfaces.md @@ -22,7 +22,7 @@ One of the main interfaces for an application is the [command-line interface](.. Here is an example from the `x/bank` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/bank/client/cli/tx.go#L28-L63 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/bank/client/cli/tx.go#L28-L63 In the example, `NewSendTxCmd()` creates and returns the transaction command for a transaction that wraps and delivers `MsgSend`. `MsgSend` is the message used to send tokens from one account to another. @@ -42,17 +42,17 @@ In general, the getter function does the following: Each module must implement `NewTxCmd()`, which aggregates all of the transaction commands of the module. Here is an example from the `x/bank` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/bank/client/cli/tx.go#L13-L26 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/bank/client/cli/tx.go#L13-L26 Each module must also implement the `GetTxCmd()` method for `AppModuleBasic` that simply returns `NewTxCmd()`. This allows the root command to easily aggregate all of the transaction commands for each module. Here is an example: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/bank/module.go#L75-L78 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/bank/module.go#L75-L78 ### Query Commands [Queries](./messages-and-queries.md#queries) allow users to gather information about the application or network state; they are routed by the application and processed by the module in which they are defined. Query commands typically have their own `query.go` file in the module's `./client/cli` folder. Like transaction commands, they are specified in getter functions. Here is an example of a query command from the `x/auth` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/auth/client/cli/query.go#L75-L105 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/auth/client/cli/query.go#L75-L105 In the example, `GetAccountCmd()` creates and returns a query command that returns the state of an account based on the provided account address. @@ -72,11 +72,11 @@ In general, the getter function does the following: Each module must implement `GetQueryCmd()`, which aggregates all of the query commands of the module. Here is an example from the `x/auth` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/auth/client/cli/query.go#L25-L42 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/auth/client/cli/query.go#L25-L42 Each module must also implement the `GetQueryCmd()` method for `AppModuleBasic` that returns the `GetQueryCmd()` function. This allows for the root command to easily aggregate all of the query commands for each module. Here is an example: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/auth/module.go#L80-L83 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/auth/module.go#L80-L83 ### Flags @@ -102,13 +102,13 @@ For more detailed information on creating flags, visit the [Cobra Documentation] As mentioned in [transaction commands](#transaction-commands), there is a set of flags that all transaction commands must add. This is done with the `AddTxFlagsToCmd` method defined in the SDK's `./client/flags` package. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/client/flags/flags.go#L94-L120 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/client/flags/flags.go#L94-L120 Since `AddTxFlagsToCmd(cmd *cobra.Command)` includes all of the basic flags required for a transaction command, module developers may choose not to add any of their own (specifying arguments instead may often be more appropriate). Similarly, there is a `AddQueryFlagsToCmd(cmd *cobra.Command)` to add common flags to a module query command. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/client/flags/flags.go#L85-L92 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/client/flags/flags.go#L85-L92 ## gRPC @@ -120,7 +120,7 @@ In order to do that, modules must implement `RegisterGRPCGatewayRoutes(clientCtx Here's an example from the `x/auth` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/auth/module.go#L68-L73 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/auth/module.go#L68-L73 ## gRPC-gateway REST @@ -128,7 +128,7 @@ Applications need to support web services that use HTTP requests (e.g. a web wal Modules that want to expose REST queries should add `google.api.http` annotations to their `rpc` methods, such as in the example below from the `x/auth` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/auth/v1beta1/query.proto#L13-L29 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/auth/v1beta1/query.proto#L13-L29 gRPC gateway is started in-process along with the application and Tendermint. It can be enabled or disabled by setting gRPC Configuration `enable` in [`app.toml`](../run-node/run-node.md#configuring-the-node-using-apptoml). diff --git a/docs/building-modules/module-manager.md b/docs/building-modules/module-manager.md index 334d252e6188..73b0466c5783 100644 --- a/docs/building-modules/module-manager.md +++ b/docs/building-modules/module-manager.md @@ -29,7 +29,7 @@ are only used for genesis can take advantage of the `Module` patterns without ha The `AppModuleBasic` interface defines the independent methods modules need to implement. -+++ https://github.com/cosmos/cosmos-sdk/blob/325be6ff215db457c6fc7668109640cd7fdac461/types/module/module.go#L49-L63 ++++ https://github.com/eligion/cosmos-sdk/blob/325be6ff215db457c6fc7668109640cd7fdac461/types/module/module.go#L49-L63 Let us go through the methods: @@ -49,7 +49,7 @@ All the `AppModuleBasic` of an application are managed by the [`BasicManager`](# The `AppModuleGenesis` interface is a simple embedding of the `AppModuleBasic` interface with two added methods. -+++ https://github.com/cosmos/cosmos-sdk/blob/325be6ff215db457c6fc7668109640cd7fdac461/types/module/module.go#L152-L158 ++++ https://github.com/eligion/cosmos-sdk/blob/325be6ff215db457c6fc7668109640cd7fdac461/types/module/module.go#L152-L158 Let us go through the two added methods: @@ -62,7 +62,7 @@ It does not have its own manager, and exists separately from [`AppModule`](#appm The `AppModule` interface defines the inter-dependent methods that modules need to implement. -+++ https://github.com/cosmos/cosmos-sdk/blob/b4cce159bcc6a32ac78245c6866dd87c73f3720d/types/module/module.go#L160-L182 ++++ https://github.com/eligion/cosmos-sdk/blob/b4cce159bcc6a32ac78245c6866dd87c73f3720d/types/module/module.go#L160-L182 `AppModule`s are managed by the [module manager](#manager). This interface embeds the `AppModuleGenesis` interface so that the manager can access all the independent and genesis inter-dependent methods of the module. This means that a concrete type implementing the `AppModule` interface must either implement all the methods of `AppModuleGenesis` (and by extension `AppModuleBasic`), or include a concrete type that does as parameter. @@ -106,7 +106,7 @@ Module managers are used to manage collections of `AppModuleBasic` and `AppModul The `BasicManager` is a structure that lists all the `AppModuleBasic` of an application: -+++ https://github.com/cosmos/cosmos-sdk/blob/325be6ff215db457c6fc7668109640cd7fdac461/types/module/module.go#L65-L66 ++++ https://github.com/eligion/cosmos-sdk/blob/325be6ff215db457c6fc7668109640cd7fdac461/types/module/module.go#L65-L66 It implements the following methods: @@ -124,7 +124,7 @@ It implements the following methods: The `Manager` is a structure that holds all the `AppModule` of an application, and defines the order of execution between several key components of these modules: -+++ https://github.com/cosmos/cosmos-sdk/blob/325be6ff215db457c6fc7668109640cd7fdac461/types/module/module.go#L223-L231 ++++ https://github.com/eligion/cosmos-sdk/blob/325be6ff215db457c6fc7668109640cd7fdac461/types/module/module.go#L223-L231 The module manager is used throughout the application whenever an action on a collection of modules is required. It implements the following methods: @@ -143,7 +143,7 @@ The module manager is used throughout the application whenever an action on a co Here's an example of a concrete integration within an application: -+++ https://github.com/cosmos/cosmos-sdk/blob/2323f1ac0e9a69a0da6b43693061036134193464/simapp/app.go#L315-L362 ++++ https://github.com/eligion/cosmos-sdk/blob/2323f1ac0e9a69a0da6b43693061036134193464/simapp/app.go#L315-L362 ## Next {hide} diff --git a/docs/building-modules/msg-services.md b/docs/building-modules/msg-services.md index dea6bb988e29..0d0744b6416f 100644 --- a/docs/building-modules/msg-services.md +++ b/docs/building-modules/msg-services.md @@ -19,15 +19,15 @@ As further described in [ADR 031](../architecture/adr-031-msg-service.md), this Protobuf generates a `MsgServer` interface based on a definition of `Msg` service. It is the role of the module developer to implement this interface, by implementing the state transition logic that should happen upon receival of each `sdk.Msg`. As an example, here is the generated `MsgServer` interface for `x/bank`, which exposes two `sdk.Msg`s: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/x/bank/types/tx.pb.go#L285-L291 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/x/bank/types/tx.pb.go#L285-L291 When possible, the existing module's [`Keeper`](keeper.md) should implement `MsgServer`, otherwise a `msgServer` struct that embeds the `Keeper` can be created, typically in `./keeper/msg_server.go`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc1/x/bank/keeper/msg_server.go#L14-L16 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc1/x/bank/keeper/msg_server.go#L14-L16 `msgServer` methods can retrieve the `sdk.Context` from the `context.Context` parameter method using the `sdk.UnwrapSDKContext`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc1/x/bank/keeper/msg_server.go#L27-L28 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc1/x/bank/keeper/msg_server.go#L27-L28 `sdk.Msg` processing usually follows these 3 steps: @@ -77,11 +77,11 @@ These events are relayed back to the underlying consensus engine and can be used The invoked `msgServer` method returns a `proto.Message` response and an `error`. These return values are then wrapped into an `*sdk.Result` or an `error` using `sdk.WrapServiceResult(ctx sdk.Context, res proto.Message, err error)`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc2/baseapp/msg_service_router.go#L104-L104 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc2/baseapp/msg_service_router.go#L104-L104 This method takes care of marshaling the `res` parameter to protobuf and attaching any events on the `ctx.EventManager()` to the `sdk.Result`. -+++ https://github.com/cosmos/cosmos-sdk/blob/d55c1a26657a0af937fa2273b38dcfa1bb3cff9f/proto/cosmos/base/abci/v1beta1/abci.proto#L81-L95 ++++ https://github.com/eligion/cosmos-sdk/blob/d55c1a26657a0af937fa2273b38dcfa1bb3cff9f/proto/cosmos/base/abci/v1beta1/abci.proto#L81-L95 This diagram shows a typical structure of a Protobuf `Msg` service, and how the message propagates through the module. @@ -95,7 +95,7 @@ The `handler` type defined in the Cosmos SDK will be deprecated in favor of [`Ms Here is the typical structure of a `handler` function: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc2/types/handler.go#L4-L4 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc2/types/handler.go#L4-L4 Let us break it down: @@ -107,13 +107,13 @@ Module `handler`s are typically implemented in a `./handler.go` file inside the [application's `router`](../core/baseapp.md#message-routing) via the `Route()` method. Typically, the manager's `Route()` method simply constructs a Route that calls a `NewHandler()` method defined in `handler.go`. -+++ https://github.com/cosmos/cosmos-sdk/blob/228728cce2af8d494c8b4e996d011492139b04ab/x/gov/module.go#L143-L146 ++++ https://github.com/eligion/cosmos-sdk/blob/228728cce2af8d494c8b4e996d011492139b04ab/x/gov/module.go#L143-L146 ### Implementation `NewHandler` function dispatches a `LegacyMsg` to appropriate handler function, usually by using a switch statement: -+++ https://github.com/cosmos/cosmos-sdk/blob/d55c1a26657a0af937fa2273b38dcfa1bb3cff9f/x/bank/handler.go#L13-L29 ++++ https://github.com/eligion/cosmos-sdk/blob/d55c1a26657a0af937fa2273b38dcfa1bb3cff9f/x/bank/handler.go#L13-L29 First, `NewHandler` function sets a new `EventManager` to the context to isolate events per `msg`. Then, a simple switch calls the appropriate `handler` based on the `LegacyMsg` type. @@ -127,7 +127,7 @@ New [telemetry metrics](../core/telemetry.md) can be created from `msgServer` me This is an example from the `x/auth/vesting` module: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc1/x/auth/vesting/msg_server.go#L73-L85 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc1/x/auth/vesting/msg_server.go#L73-L85 ## Next {hide} diff --git a/docs/building-modules/query-services.md b/docs/building-modules/query-services.md index 4113e099efe0..b341347969b1 100644 --- a/docs/building-modules/query-services.md +++ b/docs/building-modules/query-services.md @@ -15,7 +15,7 @@ A Protobuf Query service processes [`queries`](./messages-and-queries.md#queries The `querier` type defined in the Cosmos SDK will be deprecated in favor of [gRPC Services](#grpc-service). It specifies the typical structure of a `querier` function: -+++ https://github.com/cosmos/cosmos-sdk/blob/9a183ffbcc0163c8deb71c7fd5f8089a83e58f05/types/queryable.go#L9 ++++ https://github.com/eligion/cosmos-sdk/blob/9a183ffbcc0163c8deb71c7fd5f8089a83e58f05/types/queryable.go#L9 Let us break it down: @@ -43,7 +43,7 @@ from the store. Therefore, the SDK provides a function `sdk.UnwrapSDKContext` to Here's an example implementation for the bank module: -+++ https://github.com/cosmos/cosmos-sdk/blob/d55c1a26657a0af937fa2273b38dcfa1bb3cff9f/x/bank/keeper/grpc_query.go ++++ https://github.com/eligion/cosmos-sdk/blob/d55c1a26657a0af937fa2273b38dcfa1bb3cff9f/x/bank/keeper/grpc_query.go ### Legacy Queriers @@ -70,7 +70,7 @@ This simple switch returns a `querier` function specific to the type of the rece The `querier` functions themselves are pretty straighforward. They generally fetch a value or values from the state using the [`keeper`](./keeper.md). Then, they marshall the value(s) using the [`codec`](../core/encoding.md) and return the `[]byte` obtained as result. -For a deeper look at `querier`s, see this [example implementation of a `querier` function](https://github.com/cosmos/cosmos-sdk/blob/7f59723d889b69ca19966167f0b3a7fec7a39e53/x/gov/keeper/querier.go) from the bank module. +For a deeper look at `querier`s, see this [example implementation of a `querier` function](https://github.com/eligion/cosmos-sdk/blob/7f59723d889b69ca19966167f0b3a7fec7a39e53/x/gov/keeper/querier.go) from the bank module. ## Next {hide} diff --git a/docs/building-modules/simulator.md b/docs/building-modules/simulator.md index e6f07fbb6231..dc4d5c203bde 100644 --- a/docs/building-modules/simulator.md +++ b/docs/building-modules/simulator.md @@ -33,7 +33,7 @@ for the key-value pairs from the stores to be decoded (_i.e_ unmarshalled) to their corresponding types. In particular, it matches the key to a concrete type and then unmarshals the value from the `KVPair` to the type provided. -You can use the example [here](https://github.com/cosmos/cosmos-sdk/blob/v0.42.0/x/distribution/simulation/decoder.go) from the distribution module to implement your store decoders. +You can use the example [here](https://github.com/eligion/cosmos-sdk/blob/v0.42.0/x/distribution/simulation/decoder.go) from the distribution module to implement your store decoders. ### Randomized genesis @@ -44,13 +44,13 @@ Once the module genesis parameter are generated randomly (or with the key and values defined in a `params` file), they are marshaled to JSON format and added to the app genesis JSON to use it on the simulations. -You can check an example on how to create the randomized genesis [here](https://github.com/cosmos/cosmos-sdk/blob/v0.42.0/x/staking/simulation/genesis.go). +You can check an example on how to create the randomized genesis [here](https://github.com/eligion/cosmos-sdk/blob/v0.42.0/x/staking/simulation/genesis.go). ### Randomized parameter changes The simulator is able to test parameter changes at random. The simulator package from each module must contain a `RandomizedParams` func that will simulate parameter changes of the module throughout the simulations lifespan. -You can see how an example of what is needed to fully test parameter changes [here](https://github.com/cosmos/cosmos-sdk/blob/v0.42.0/x/staking/simulation/params.go) +You can see how an example of what is needed to fully test parameter changes [here](https://github.com/eligion/cosmos-sdk/blob/v0.42.0/x/staking/simulation/params.go) ### Random weighted operations @@ -63,7 +63,7 @@ Operations on the simulation are simulated using the full [transaction cycle](.. Shown below is how weights are set: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/x/staking/simulation/operations.go#L18-L68 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/x/staking/simulation/operations.go#L18-L68 As you can see, the weights are predefined in this case. Options exist to override this behavior with different weights. One option is to use `*rand.Rand` to define a random weight for the operation, or you can inject your own predefined weights. @@ -83,7 +83,7 @@ them to be used on the parameters. Now that all the required functions are defined, we need to integrate them into the module pattern within the `module.go`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.0/x/distribution/module.go ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.0/x/distribution/module.go ## App Simulator manager diff --git a/docs/building-modules/upgrade.md b/docs/building-modules/upgrade.md index f1c37930cffa..2e6d95102302 100644 --- a/docs/building-modules/upgrade.md +++ b/docs/building-modules/upgrade.md @@ -41,7 +41,7 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { Since these migrations are functions that need access to a Keeper's store, use a wrapper around the keepers called `Migrator` as shown in this example: -+++ https://github.com/cosmos/cosmos-sdk/blob/6ac8898fec9bd7ea2c1e5c79e0ed0c3f827beb55/x/bank/keeper/migrations.go#L8-L21 ++++ https://github.com/eligion/cosmos-sdk/blob/6ac8898fec9bd7ea2c1e5c79e0ed0c3f827beb55/x/bank/keeper/migrations.go#L8-L21 ## Writing Migration Scripts @@ -54,4 +54,4 @@ func (m Migrator) Migrate1to2(ctx sdk.Context) error { } ``` -To see example code of changes that were implemented in a migration of balance keys, check out [migrateBalanceKeys](https://github.com/cosmos/cosmos-sdk/blob/36f68eb9e041e20a5bb47e216ac5eb8b91f95471/x/bank/legacy/v043/store.go#L41-L62). For context, this code introduced migrations of the bank store that updated addresses to be prefixed by their length in bytes as outlined in [ADR-028](../architecture/adr-028-public-key-addresses.md). +To see example code of changes that were implemented in a migration of balance keys, check out [migrateBalanceKeys](https://github.com/eligion/cosmos-sdk/blob/36f68eb9e041e20a5bb47e216ac5eb8b91f95471/x/bank/legacy/v043/store.go#L41-L62). For context, this code introduced migrations of the bank store that updated addresses to be prefixed by their length in bytes as outlined in [ADR-028](../architecture/adr-028-public-key-addresses.md). diff --git a/docs/cn/README.md b/docs/cn/README.md index 195a513a83dc..2c1117d10c01 100644 --- a/docs/cn/README.md +++ b/docs/cn/README.md @@ -27,7 +27,7 @@ This documentation is not complete and it's outdated. Please use the English ver - **[模块目录](../../x/)**:模块的实现和文档 - **[规范](./spec/):** Cosmos SDK 的模块及其他规范。 -- **[SDK API 参考](https://godoc.org/github.com/cosmos/cosmos-sdk):** Cosmos SDK Godocs 文档 。 +- **[SDK API 参考](https://godoc.org/github.com/eligion/cosmos-sdk):** Cosmos SDK Godocs 文档 。 - **[REST API 规范](https://cosmos.network/rpc/):** 通过 REST 与 `gaia` 全节点交互的 API 列表。 ## Cosmos Hub @@ -40,4 +40,4 @@ Cosmos-SDK 目前是用 [Golang](https://golang.org/)编写的, 尽管该框架 ## 贡献 -参考 [文档说明](https://github.com/cosmos/cosmos-sdk/blob/master/docs/DOCS_README.md) 了解构建细节及更新时注意事项。 +参考 [文档说明](https://github.com/eligion/cosmos-sdk/blob/master/docs/DOCS_README.md) 了解构建细节及更新时注意事项。 diff --git a/docs/cn/basics/accounts.md b/docs/cn/basics/accounts.md index e6d5cce4fa67..fa81a9ca2f57 100644 --- a/docs/cn/basics/accounts.md +++ b/docs/cn/basics/accounts.md @@ -1,4 +1,4 @@ -**原文路径:https://github.com/cosmos/cosmos-sdk/blob/master/docs/basics/accounts.md** +**原文路径:https://github.com/eligion/cosmos-sdk/blob/master/docs/basics/accounts.md** # 账户系统 @@ -58,24 +58,24 @@ Cosmos SDK 使用一套称之为 [BIP32](https://github.com/bitcoin/bips/blob/ma `Keybase` 是储存和管理账户的对象,在 Cosmos SDK 中,`Keybase` 要实现以下接口 -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/crypto/keys/types.go#L13-L86 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/crypto/keys/types.go#L13-L86 在 Cosmos SDK 中,`Keybase` 接口的默认实现对象是 `dbKeybase`。 -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/crypto/keys/keybase.go ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/crypto/keys/keybase.go `dbKeybase` 上面对 `Keybase` 接口中方法实现的笔记: - `Sign(name, passphrase string, msg []byte) ([]byte, crypto.PubKey, error)` 对 `message` 字节进行签名。需要做一些准备工作将 `message` 编码成 []byte 类型,可以参考 `auth` 模块 `message` 准备的例子。注意,SDK 上面没有实现签名的验证,签名验证被推迟到[`anteHandler`](#antehandler)中进行 -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/auth/types/txbuilder.go#L176-L209 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/auth/types/txbuilder.go#L176-L209 - `CreateMnemonic(name string, language Language, passwd string, algo SigningAlgo) (info Info, seed string, err error)`创建一个新的助记符并打印在日志里,但是**并不保存在磁盘上** -- `CreateAccount(name, mnemonic, bip39Passwd, encryptPasswd string, account uint32, index uint32) (Info, error)` 基于[`bip44 path`](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki)创建一个新的账户并将其保存在磁盘上。注意私钥在[保存前用密码加密](https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/crypto/keys/mintkey/mintkey.go),**永远不会储存未加密的私钥**.在这个方法的上下文中, `account`和 `address` 参数指的是 BIP44 派生路径的段(例如`0`, `1`, `2`, ...)用于从助记符派生出私钥和公钥(注意:给相同的助记符和 `account` 将派生出相同的私钥,给相同的 `account` 和 `address` 也会派生出相同的公钥和 `Address`)。最后注意 `CreateAccount` 方法使用在 [Tendermint library](https://github.com/tendermint/tendermint/tree/bc572217c07b90ad9cee851f193aaa8e9557cbc7/crypto/secp256k1) 中的 `secp256k1` 派生出公私钥和 `Address`。总之,这个方法是用来创建用户的钥匙和地址的,并不是共识秘钥,参见[`Addresses`](#addresses) 获取更多信息 +- `CreateAccount(name, mnemonic, bip39Passwd, encryptPasswd string, account uint32, index uint32) (Info, error)` 基于[`bip44 path`](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki)创建一个新的账户并将其保存在磁盘上。注意私钥在[保存前用密码加密](https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/crypto/keys/mintkey/mintkey.go),**永远不会储存未加密的私钥**.在这个方法的上下文中, `account`和 `address` 参数指的是 BIP44 派生路径的段(例如`0`, `1`, `2`, ...)用于从助记符派生出私钥和公钥(注意:给相同的助记符和 `account` 将派生出相同的私钥,给相同的 `account` 和 `address` 也会派生出相同的公钥和 `Address`)。最后注意 `CreateAccount` 方法使用在 [Tendermint library](https://github.com/tendermint/tendermint/tree/bc572217c07b90ad9cee851f193aaa8e9557cbc7/crypto/secp256k1) 中的 `secp256k1` 派生出公私钥和 `Address`。总之,这个方法是用来创建用户的钥匙和地址的,并不是共识秘钥,参见[`Addresses`](#addresses) 获取更多信息 `dbKeybase` 的实现是最基本的,并没有根据需求提供锁定功能。锁定功能指如果一个`dbKeybase`实例被创建,底层的`db`就被锁定意味着除了实例化它的程序其他程序无法访问它。这就是 SDK 程序使用另外一套 `Keybase` 接口的实现 `lazyKeybase` 的原因 -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/crypto/keys/lazy_keybase.go ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/crypto/keys/lazy_keybase.go `lazyKeybase` 是 `dbKeybase` 的一个简单包装,它仅在要执行操作时锁定数据库,并在之后立即将其解锁。使用 `lazyKeybase`[命令行界面](../core/cli.md) 可以在 [rest server](../core/grpc_rest.md)运行时创建新的账户,它也可以同时传递多个 CLI 命令 @@ -103,7 +103,7 @@ Cosmos SDK 使用一套称之为 [BIP32](https://github.com/bitcoin/bips/blob/ma 请注意,在 Cosmos SDK 中,`Pubkeys` 并非以其原始格式进行操作。它使用 [`Amino`](../core/encoding.md#amino) 和 [`bech32`](https://en.bitcoin.it/wiki/Bech32) 进行 2 次编码。在 SDK 里面,`Pubkeys` 首先调用 `Bytes()` 方法在原始的 `Pubkey` 中(这里面提供 amino 编码),然后使用 `bech32` 的 `ConvertAndEncode` 方法 -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/address.go#L579-L729 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/address.go#L579-L729 ### 地址 @@ -121,11 +121,11 @@ aa := sdk.AccAddress(pub.Address().Bytes()) 这些地址实现了 `Address` 接口 -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/address.go#L71-L80 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/address.go#L71-L80 值得注意的是,`Marhsal()` 和 `Bytes()` 方法都返回相同的 `[]byte` 类型的地址,根据 protobuf 的兼容性要求我们需要前者。同样,`String()` 也被用来返回 `bech32` 编码类型的地址,这个应该是用户看到的最终编码形式。下面是一个例子: -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/address.go#L229-L243 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/address.go#L229-L243 ## 接下来 {hide} diff --git a/docs/cn/basics/app-anatomy.md b/docs/cn/basics/app-anatomy.md index c7e39c9553b9..79cc16c3ac1d 100644 --- a/docs/cn/basics/app-anatomy.md +++ b/docs/cn/basics/app-anatomy.md @@ -54,7 +54,7 @@ Blockchain Node | | Consensus | | 此函数构造了以上部分中定义的类型的新应用程序。在应用程的 start 命令中使用,它必须具有 AppCreator 签名。 -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/server/constructors.go#L20 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/server/constructors.go#L20 以下是此功能执行的主要操作: @@ -79,7 +79,7 @@ Blockchain Node | | Consensus | | ### InitChainer -InitChainer 用于根据创始文件(即创始账户的代币余额)初始化应用程序的状态。 当应用程序从 Tendermint 引擎收到`InitChain`消息时调用该消息,该消息是在节点以`appBlockHeight == 0`(即创世)启动。 应用程序必须通过[`SetInitChainer`](https://godoc.org/github.com/cosmos/cosmos-sdk/baseapp#BaseApp.SetInitChainer)方法设置其[constructor](https://docs.cosmos.network/master/basics/app-anatomy.html#constructor-function)中的`Initchainer`。 +InitChainer 用于根据创始文件(即创始账户的代币余额)初始化应用程序的状态。 当应用程序从 Tendermint 引擎收到`InitChain`消息时调用该消息,该消息是在节点以`appBlockHeight == 0`(即创世)启动。 应用程序必须通过[`SetInitChainer`](https://godoc.org/github.com/eligion/cosmos-sdk/baseapp#BaseApp.SetInitChainer)方法设置其[constructor](https://docs.cosmos.network/master/basics/app-anatomy.html#constructor-function)中的`Initchainer`。 通常,`InitChainer`主要由每个应用程序模块的 InitGenesis 函数组成。 这是通过调用模块管理器的 InitGenesis 函数来完成的,而模块管理器的 InitGenesis 函数将依次调用其包含的每个模块的 InitGenesis 函数。 请注意,必须使用模块管理器的 SetOrderInitGenesis 方法设置模块的 InitGenesis 函数的顺序。 这是在 应用程序的构造函数 application-constructor 中完成的,必须在 SetInitChainer 之前调用 SetOrderInitGenesis。 @@ -92,7 +92,7 @@ See an example of an `InitChainer` from [`gaia`](https://github.com/cosmos/gaia) ### BeginBlocker and EndBlocker -该 SDK 为开发人员提供了在其应用程序中实现自定义代码可能性。 这是通过两个名为 `BeginBlocker` 和 `EndBlocker` 的函数实现的。当应用程序分别从 Tendermint 引擎接收到 `BeginBlock` 和 `EndBlock` 消息时,将调用它们,它们分别在每个块的开始和结尾处发生。应用程序必须通过 [SetBeginBlocker](https://godoc.org/github.com/cosmos/cosmos-sdk/baseapp) 和 [SetEndBlocker](https://godoc.org/github.com/cosmos/cosmos-sdk/baseapp#BaseApp.SetEndBlocker) 方法在其 constructor 中设置 `BeginBlocker` 和 `EndBlocker`。 +该 SDK 为开发人员提供了在其应用程序中实现自定义代码可能性。 这是通过两个名为 `BeginBlocker` 和 `EndBlocker` 的函数实现的。当应用程序分别从 Tendermint 引擎接收到 `BeginBlock` 和 `EndBlock` 消息时,将调用它们,它们分别在每个块的开始和结尾处发生。应用程序必须通过 [SetBeginBlocker](https://godoc.org/github.com/eligion/cosmos-sdk/baseapp) 和 [SetEndBlocker](https://godoc.org/github.com/eligion/cosmos-sdk/baseapp#BaseApp.SetEndBlocker) 方法在其 constructor 中设置 `BeginBlocker` 和 `EndBlocker`。 通常,`BeginBlocker` 和 `EndBlocker` 函数主要由每个应用程序模块的 `BeginBlock` 和 `EndBlock` 函数组成。 这是通过调用模块管理器的 BeginBlock 和 EndBlock 函数来完成的,而后者又会调用其包含的每个模块的 BeginBLock 和 EndBlock 函数。 请注意,必须分别在模块管理器中使用 SetOrderBeginBlock 和 SetOrderEndBlock 方法来设置模块的 BegingBlock 和 EndBlock 函数必须调用的顺序。这是通过应用程序的构造函数中的模块管理器完成的,必须调用 SetOrderBeginBlock 和 SetOrderEndBlock 方法。 在 SetBeginBlocker 和 SetEndBlocker 函数之前。 @@ -137,7 +137,7 @@ AppModule 在模块上公开了一组有用的方法,这些方法有助于将 模块开发人员在构建自己的模块时会创建自定义消息类型。 通常的做法是在消息的类型声明前加上 `Msg`。 例如,消息类型 `MsgSend` 允许用户传输 tokens: -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/bank/internal/types/msgs.go#L10-L15 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/bank/internal/types/msgs.go#L10-L15 它由 `bank` 模块的回调 `handler` 处理,最终会调用 `auth` 模块来写 `keeper` 以更新状态。 @@ -155,13 +155,13 @@ AppModule 在模块上公开了一组有用的方法,这些方法有助于将 处理程序函数返回结果类型为 sdk.Result,该结果通知应用程序消息是否已成功处理: -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/result.go#L15-L40 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/result.go#L15-L40 ### Querier `Queriers` 与 `handlers` 非常相似,除了它们向状态查询用户而不是处理事务。 最终用户从 interface 发起 query,最终用户会提供 `queryRoute` 和一些 `data`。 然后使用 `queryRoute` 通过 `baseapp` 的 `handleQueryCustom` 方法查询到正确的应用程序的 `querier` 函数 -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/baseapp/abci.go#L395-L453 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/baseapp/abci.go#L395-L453 模块的 Querier 是在名为 querier.go 的文件中定义的,包括: @@ -201,7 +201,7 @@ AppModule 在模块上公开了一组有用的方法,这些方法有助于将 - `RegisterRoutes` 函数,用于注册路由。从主应用程序的接口 application-interfaces 中为应用程序内使用的每个模块调用此函数。SDK 中使用的路由器是 [Gorilla's mux](https://github.com/gorilla/mux)。 - 需要公开的每个查询或事务创建功能的自定义请求类型定义。这些自定义请求类型基于 Cosmos SDK 的基本`请求`类型构建: - +++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/rest/rest.go#L47-L60 + +++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/rest/rest.go#L47-L60 - 每个请求的一个处理函数可以找到给定的模块。 这些功能实现了服务请求所需的核心逻辑。 diff --git a/docs/cn/basics/gas-fees.md b/docs/cn/basics/gas-fees.md index 8c8441a760ea..5034d9963ce4 100644 --- a/docs/cn/basics/gas-fees.md +++ b/docs/cn/basics/gas-fees.md @@ -1,4 +1,4 @@ -**原文路径:https://github.com/cosmos/cosmos-sdk/blob/master/docs/basics/gas-fees.md** +**原文路径:https://github.com/eligion/cosmos-sdk/blob/master/docs/basics/gas-fees.md** # Gas and Fees @@ -17,7 +17,7 @@ 在 Cosmos SDK 中 `gas` 是一种简单的 `uint64` 类型,被称之为 `gas meter` 的对象进行管理,Gas meters 实现了 `GasMeter` 接口 -+++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/store/types/gas.go#L31-L39 ++++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/store/types/gas.go#L31-L39 这里: @@ -67,15 +67,15 @@ ctx.BlockGasMeter().ConsumeGas( type AnteHandler func(ctx Context, tx Tx, simulate bool) (newCtx Context, result Result, abort bool) ``` -`AnteHandler` 不是在核心 SDK 中实现的,而是在每一个模块中实现的,这使开发者可以使用适合其程序需求的`AnteHandler`版本,也就是说当前大多数应用程序都使用 [`auth` module](https://github.com/cosmos/cosmos-sdk/tree/master/x/auth) 中定义的默认实现。下面是 `AnteHandler` 在普通 Cosmos SDK 程序中的作用: +`AnteHandler` 不是在核心 SDK 中实现的,而是在每一个模块中实现的,这使开发者可以使用适合其程序需求的`AnteHandler`版本,也就是说当前大多数应用程序都使用 [`auth` module](https://github.com/eligion/cosmos-sdk/tree/master/x/auth) 中定义的默认实现。下面是 `AnteHandler` 在普通 Cosmos SDK 程序中的作用: - 验证事务的类型正确。事务类型在实现 `anteHandler` 的模块中定义,它们遵循事务接口: - +++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/tx_msg.go#L33-L41 + +++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/types/tx_msg.go#L33-L41 这使开发人员可以使用各种类型的应用程序进行交易。 在默认的 auth 模块中,标准事务类型为 StdTx: - +++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/auth/types/stdtx.go#L22-L29 + +++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/auth/types/stdtx.go#L22-L29 - 验证交易中包含的每个 [`message`](../building-modules/messages-and-queries.md#messages) 的签名,每个 `message` 应该由一个或多个发送者签名,这些签名必须在 `anteHandler` 中进行验证. - 在 `CheckTx` 期间,验证 `transaction` 提供的 `gas prices` 是否大于本地配置 `min-gas-prices`(提醒一下,`gas-prices` 可以从以下等式中扣除`fees = gas * gas-prices`)`min-gas-prices` 是每个独立节点的本地配置,在`CheckTx`期间用于丢弃未提供最低费用的交易。这确保了内存池不会被垃圾交易填充. diff --git a/docs/cn/basics/tx-lifecycle.md b/docs/cn/basics/tx-lifecycle.md index 1845978752ee..b1c56ef22fc8 100644 --- a/docs/cn/basics/tx-lifecycle.md +++ b/docs/cn/basics/tx-lifecycle.md @@ -68,7 +68,7 @@ appcli tx send 1000uatom --from --gas auto -- [`AnteHandler`](https://docs.cosmos.network/master/basics/gas-fees.html#antehandler)是可选的,但每个应用程序都需要定义。`AnteHandler` 使用副本为特定的 `Tx` 执行有限的检查,副本可以使对 `Tx` 进行状态检查时无需修改最后的提交状态,如果执行失败,还可以还原为原始状态。 -例如,[`auth`](https://github.com/cosmos/cosmos-sdk/tree/master/x/auth/spec) 模块的 `AnteHandler` 检查并增加序列号,检查签名和帐号,并从 `Tx` 的第一个签名者中扣除费用,这个过程中所有状态更改都使用 `checkState` +例如,[`auth`](https://github.com/eligion/cosmos-sdk/tree/master/x/auth/spec) 模块的 `AnteHandler` 检查并增加序列号,检查签名和帐号,并从 `Tx` 的第一个签名者中扣除费用,这个过程中所有状态更改都使用 `checkState` ### Gas diff --git a/docs/cn/cn-translation-progress.md b/docs/cn/cn-translation-progress.md index 47362cdb8ed5..362df3b04e24 100644 --- a/docs/cn/cn-translation-progress.md +++ b/docs/cn/cn-translation-progress.md @@ -18,7 +18,7 @@ Please refer to the official english version of the documentation for the latest ### README.md -- Synced until commit [b18bd06a](https://github.com/cosmos/cosmos-sdk/commit/b18bd06a364e6ac15f22423e6b66a9feb3eeae93) (2019-12-10) +- Synced until commit [b18bd06a](https://github.com/eligion/cosmos-sdk/commit/b18bd06a364e6ac15f22423e6b66a9feb3eeae93) (2019-12-10) ### [`concepts`](../concepts/) @@ -30,11 +30,11 @@ Please refer to the official english version of the documentation for the latest ### [`cosmos-hub`](../cosmos-hub/) -- Synced until commit [7558f760](https://github.com/cosmos/cosmos-sdk/commit/7558f7607918b6337a8b58b8f956d6776f503138) (2019-05-13) +- Synced until commit [7558f760](https://github.com/eligion/cosmos-sdk/commit/7558f7607918b6337a8b58b8f956d6776f503138) (2019-05-13) ### [`intro`](../intro/) -- Synced until commit [be194ca1](https://github.com/cosmos/cosmos-sdk/commit/be194ca1b7d159590a0147da3226b7e09eaa3f61) (2020-07-07) +- Synced until commit [be194ca1](https://github.com/eligion/cosmos-sdk/commit/be194ca1b7d159590a0147da3226b7e09eaa3f61) (2020-07-07) ### [`modules`](../modules/) @@ -42,4 +42,4 @@ Please refer to the official english version of the documentation for the latest ### [`clients`](../clients/) -- Synced until Commit [7558f760](https://github.com/cosmos/cosmos-sdk/commit/7558f7607918b6337a8b58b8f956d6776f503138) (2019-05-13) +- Synced until Commit [7558f760](https://github.com/eligion/cosmos-sdk/commit/7558f7607918b6337a8b58b8f956d6776f503138) (2019-05-13) diff --git a/docs/cn/intro/ocap.md b/docs/cn/intro/ocap.md index 72c062f2b32f..80398152fd24 100644 --- a/docs/cn/intro/ocap.md +++ b/docs/cn/intro/ocap.md @@ -44,6 +44,6 @@ var sumValue := externalModule.ComputeSumValue(account) var sumValue := externalModule.ComputeSumValue(*account) ``` -在 Cosmos SDK 中,你可以看到[gaia app](https://github.com/cosmos/cosmos-sdk/blob/master/simapp/app.go)中对该原则的实践。 +在 Cosmos SDK 中,你可以看到[gaia app](https://github.com/eligion/cosmos-sdk/blob/master/simapp/app.go)中对该原则的实践。 +++ https://github.com/cosmos/gaia/blob/master/app/app.go#L197-L209 diff --git a/docs/cn/intro/overview.md b/docs/cn/intro/overview.md index 96da5ebf54af..f3da65411fbc 100644 --- a/docs/cn/intro/overview.md +++ b/docs/cn/intro/overview.md @@ -2,7 +2,7 @@ ## 什么是 Cosmos SDK -[Cosmos SDK](https://github.com/cosmos/cosmos-sdk)是开源框架,用于构建类似 Cosmos Hub 等基于 POS 共识算法的多元资产公有区块链,以及基于权威证明共识算法的许可链。使用 Cosmos SDK 构建的区块链通常被称为特定应用区块链(专用区块链)(application-specific blockchains)。 +[Cosmos SDK](https://github.com/eligion/cosmos-sdk)是开源框架,用于构建类似 Cosmos Hub 等基于 POS 共识算法的多元资产公有区块链,以及基于权威证明共识算法的许可链。使用 Cosmos SDK 构建的区块链通常被称为特定应用区块链(专用区块链)(application-specific blockchains)。 Cosmos SDK 的目标是让开发者可以快速地构建一条能与其他区块链以原生的方式进行互操作的可定制区块链。在我们的设想中,这套 SDK 就像 Web 应用框架一样,可以让开发者迅速构建出基于[Tendermint](https://github.com/tendermint/tendermint)的安全区块链应用程序。 基于 Cosmos SDK 的区块链由组合式[模块](https://docs.cosmos.network/master/building-modules/intro.html)构建,其中大部分模块都是开源的,且任何开发者均可使用。任何人都能为 Cosmos SDK 创建新的模块,集成已经构建的模块就像将他们导入你的区块链应用程序一样简单。还有一点,Cosmos SDK 是基于功能(capabilities)的系统,这允许开发者可以更好地考虑模块之间交互的安全性。更深入地了解功能,请跳至[本节](https://docs.cosmos.network/master/core/ocap.html)。 diff --git a/docs/core/baseapp.md b/docs/core/baseapp.md index c3da524e3f20..34e59c265dcf 100644 --- a/docs/core/baseapp.md +++ b/docs/core/baseapp.md @@ -45,7 +45,7 @@ management logic. The `BaseApp` type holds many important parameters for any Cosmos SDK based application. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/baseapp/baseapp.go#L46-L131 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/baseapp/baseapp.go#L46-L131 Let us go through the most important components. @@ -67,7 +67,7 @@ First, the important parameters that are initialized during the bootstrapping of - [gRPC Query Router](#grpc-query-router): The `grpcQueryRouter` facilitates the routing of gRPC queries to the appropriate module for it to be processed. These queries are not ABCI messages themselves, but they are relayed to the relevant module's gRPC `Query` service. -- [`TxDecoder`](https://godoc.org/github.com/cosmos/cosmos-sdk/types#TxDecoder): It is used to decode +- [`TxDecoder`](https://godoc.org/github.com/eligion/cosmos-sdk/types#TxDecoder): It is used to decode raw transaction bytes relayed by the underlying Tendermint engine. - [`ParamStore`](#paramstore): The parameter store used to get and set application consensus parameters. - [`AnteHandler`](#antehandler): This handler is used to handle signature verification, fee payment, @@ -112,7 +112,7 @@ func NewBaseApp( ``` The `BaseApp` constructor function is pretty straightforward. The only thing worth noting is the -possibility to provide additional [`options`](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/baseapp/options.go) +possibility to provide additional [`options`](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/baseapp/options.go) to the `BaseApp`, which will execute them in order. The `options` are generally `setter` functions for important parameters, like `SetPruning()` to set pruning options or `SetMinGasPrices()` to set the node's `min-gas-prices`. @@ -193,7 +193,7 @@ When messages and queries are received by the application, they must be routed t [`sdk.Msg`s](#../building-modules/messages-and-queries.md#messages) need to be routed after they are extracted from transactions, which are sent from the underlying Tendermint engine via the [`CheckTx`](#checktx) and [`DeliverTx`](#delivertx) ABCI messages. To do so, `BaseApp` holds a `msgServiceRouter` which maps fully-qualified service methods (`string`, defined in each module's Protobuf `Msg` service) to the appropriate module's `MsgServer` implementation. -The [default `msgServiceRouter` included in `BaseApp`](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/baseapp/msg_service_router.go) is stateless. However, some applications may want to make use of more stateful routing mechanisms such as allowing governance to disable certain routes or point them to new modules for upgrade purposes. For this reason, the `sdk.Context` is also passed into each [route handler inside `msgServiceRouter`](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/baseapp/msg_service_router.go#L31-L32). For a stateless router that doesn't want to make use of this, you can just ignore the `ctx`. +The [default `msgServiceRouter` included in `BaseApp`](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/baseapp/msg_service_router.go) is stateless. However, some applications may want to make use of more stateful routing mechanisms such as allowing governance to disable certain routes or point them to new modules for upgrade purposes. For this reason, the `sdk.Context` is also passed into each [route handler inside `msgServiceRouter`](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/baseapp/msg_service_router.go#L31-L32). For a stateless router that doesn't want to make use of this, you can just ignore the `ctx`. The application's `msgServiceRouter` is initialized with all the routes using the application's [module manager](../building-modules/module-manager.md#manager) (via the `RegisterServices` method), which itself is initialized with all the application's modules in the application's [constructor](../basics/app-anatomy.md#app-constructor). @@ -263,7 +263,7 @@ The response contains: - `Info (string):` Additional information. May be non-deterministic. - `GasWanted (int64)`: Amount of gas requested for transaction. It is provided by users when they generate the transaction. - `GasUsed (int64)`: Amount of gas consumed by transaction. During `CheckTx`, this value is computed by multiplying the standard cost of a transaction byte by the size of the raw transaction. Next is an example: - +++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/auth/ante/basic.go#L104-L105 + +++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/x/auth/ante/basic.go#L104-L105 - `Events ([]cmn.KVPair)`: Key-Value tags for filtering and indexing transactions (eg. by account). See [`event`s](./events.md) for more. - `Codespace (string)`: Namespace for the Code. @@ -289,7 +289,7 @@ Before the first transaction of a given block is processed, a [volatile state](# During the additional fifth step outlined in (2), each read/write to the store increases the value of `GasConsumed`. You can find the default cost of each operation: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/store/types/gas.go#L164-L175 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/store/types/gas.go#L164-L175 At any point, if `GasConsumed > GasWanted`, the function returns with `Code != 0` and `DeliverTx` fails. @@ -316,7 +316,7 @@ After that, `RunTx()` calls `ValidateBasic()` on each `sdk.Msg`in the `Tx`, whic Then, the [`anteHandler`](#antehandler) of the application is run (if it exists). In preparation of this step, both the `checkState`/`deliverState`'s `context` and `context`'s `CacheMultiStore` are branched using the `cacheTxContext()` function. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/baseapp/baseapp.go#L623-L630 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/baseapp/baseapp.go#L623-L630 This allows `RunTx` not to commit the changes made to the state during the execution of `anteHandler` if it ends up failing. It also prevents the module implementing the `anteHandler` from writing to state, which is an important part of the [object-capabilities](./ocap.md) of the Cosmos SDK. @@ -326,7 +326,7 @@ Finally, the [`RunMsgs()`](#runmsgs) function is called to process the `sdk.Msg` The `AnteHandler` is a special handler that implements the `AnteHandler` interface and is used to authenticate the transaction before the transaction's internal messages are processed. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/types/handler.go#L6-L8 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/types/handler.go#L6-L8 The `AnteHandler` is theoretically optional, but still a very important component of public blockchain networks. It serves 3 primary purposes: @@ -334,7 +334,7 @@ The `AnteHandler` is theoretically optional, but still a very important componen - Perform preliminary _stateful_ validity checks like ensuring signatures are valid or that the sender has enough funds to pay for fees. - Play a role in the incentivisation of stakeholders via the collection of transaction fees. -`BaseApp` holds an `anteHandler` as parameter that is initialized in the [application's constructor](../basics/app-anatomy.md#application-constructor). The most widely used `anteHandler` is the [`auth` module](https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/x/auth/ante/ante.go). +`BaseApp` holds an `anteHandler` as parameter that is initialized in the [application's constructor](../basics/app-anatomy.md#application-constructor). The most widely used `anteHandler` is the [`auth` module](https://github.com/eligion/cosmos-sdk/blob/v0.42.1/x/auth/ante/ante.go). Click [here](../basics/gas-fees.md#antehandler) for more on the `anteHandler`. @@ -361,7 +361,7 @@ Finally, the `InitChain(req abci.RequestInitChain)` method of `BaseApp` calls th The [`BeginBlock` ABCI message](#https://tendermint.com/docs/app-dev/abci-spec.html#beginblock) is sent from the underlying Tendermint engine when a block proposal created by the correct proposer is received, before [`DeliverTx`](#delivertx) is run for each transaction in the block. It allows developers to have logic be executed at the beginning of each block. In the Cosmos SDK, the `BeginBlock(req abci.RequestBeginBlock)` method does the following: - Initialize [`deliverState`](#volatile-states) with the latest header using the `req abci.RequestBeginBlock` passed as parameter via the `setDeliverState` function. - +++ https://github.com/cosmos/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/baseapp/baseapp.go#L387-L397 + +++ https://github.com/eligion/cosmos-sdk/blob/7d7821b9af132b0f6131640195326aa02b6751db/baseapp/baseapp.go#L387-L397 This function also resets the [main gas meter](../basics/gas-fees.md#main-gas-meter). - Initialize the [block gas meter](../basics/gas-fees.md#block-gas-meter) with the `maxGas` limit. The `gas` consumed within the block cannot go above `maxGas`. This parameter is defined in the application's consensus parameters. - Run the application's [`beginBlocker()`](../basics/app-anatomy.md#beginblocker-and-endblock), which mainly runs the [`BeginBlocker()`](../building-modules/beginblock-endblock.md#beginblock) method of each of the application's modules. diff --git a/docs/core/cli.md b/docs/core/cli.md index 36a225cb3ad5..f3a809d46ab4 100644 --- a/docs/core/cli.md +++ b/docs/core/cli.md @@ -40,7 +40,7 @@ The `main.go` file needs to have a `main()` function that creates a root command The `main()` function finally creates an executor and [execute](https://godoc.org/github.com/spf13/cobra#Command.Execute) the root command. See an example of `main()` function from the `simapp` application: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/simapp/simd/main.go#L12-L24 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/simapp/simd/main.go#L12-L24 The rest of the document will detail what needs to be implemented for each step and include smaller portions of code from the `simapp` CLI files. @@ -53,24 +53,24 @@ Every application CLI first constructs a root command, then adds functionality b The root command (called `rootCmd`) is what the user first types into the command line to indicate which application they wish to interact with. The string used to invoke the command (the "Use" field) is typically the name of the application suffixed with `-d`, e.g. `simd` or `gaiad`. The root command typically includes the following commands to support basic functionality in the application. - **Status** command from the SDK rpc client tools, which prints information about the status of the connected [`Node`](../core/node.md). The Status of a node includes `NodeInfo`,`SyncInfo` and `ValidatorInfo`. -- **Keys** [commands](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/client/keys) from the SDK client tools, which includes a collection of subcommands for using the key functions in the SDK crypto tools, including adding a new key and saving it to the keyring, listing all public keys stored in the keyring, and deleting a key. For example, users can type `simd keys add ` to add a new key and save an encrypted copy to the keyring, using the flag `--recover` to recover a private key from a seed phrase or the flag `--multisig` to group multiple keys together to create a multisig key. For full details on the `add` key command, see the code [here](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/client/keys/add.go). For more details about usage of `--keyring-backend` for storage of key credentials look at the [keyring docs](../run-node/keyring.md). -- **Server** commands from the SDK server package. These commands are responsible for providing the mechanisms necessary to start an ABCI Tendermint application and provides the CLI framework (based on [cobra](github.com/spf13/cobra)) necessary to fully bootstrap an application. The package exposes two core functions: `StartCmd` and `ExportCmd` which creates commands to start the application and export state respectively. Click [here](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/server) to learn more. +- **Keys** [commands](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/client/keys) from the SDK client tools, which includes a collection of subcommands for using the key functions in the SDK crypto tools, including adding a new key and saving it to the keyring, listing all public keys stored in the keyring, and deleting a key. For example, users can type `simd keys add ` to add a new key and save an encrypted copy to the keyring, using the flag `--recover` to recover a private key from a seed phrase or the flag `--multisig` to group multiple keys together to create a multisig key. For full details on the `add` key command, see the code [here](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/client/keys/add.go). For more details about usage of `--keyring-backend` for storage of key credentials look at the [keyring docs](../run-node/keyring.md). +- **Server** commands from the SDK server package. These commands are responsible for providing the mechanisms necessary to start an ABCI Tendermint application and provides the CLI framework (based on [cobra](github.com/spf13/cobra)) necessary to fully bootstrap an application. The package exposes two core functions: `StartCmd` and `ExportCmd` which creates commands to start the application and export state respectively. Click [here](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/server) to learn more. - [**Transaction**](#transaction-commands) commands. - [**Query**](#query-commands) commands. Next is an example `rootCmd` function from the `simapp` application. It instantiates the root command, adds a [_persistent_ flag](#flags) and `PreRun` function to be run before every execution, and adds all of the necessary subcommands. -+++ https://github.com/cosmos/cosmos-sdk/blob/4eea4cafd3b8b1c2cd493886db524500c9dd745c/simapp/simd/cmd/root.go#L37-L150 ++++ https://github.com/eligion/cosmos-sdk/blob/4eea4cafd3b8b1c2cd493886db524500c9dd745c/simapp/simd/cmd/root.go#L37-L150 `rootCmd` has a function called `initAppConfig()` which is useful for setting the application's custom configs. By default app uses Tendermint app config template from SDK, which can be over-written via `initAppConfig()`. Here's an example code to override default `app.toml` template. -+++ https://github.com/cosmos/cosmos-sdk/blob/4eea4cafd3b8b1c2cd493886db524500c9dd745c/simapp/simd/cmd/root.go#L84-L117 ++++ https://github.com/eligion/cosmos-sdk/blob/4eea4cafd3b8b1c2cd493886db524500c9dd745c/simapp/simd/cmd/root.go#L84-L117 -The `initAppConfig()` also allows overriding the default SDK's [server config](https://github.com/cosmos/cosmos-sdk/blob/4eea4cafd3b8b1c2cd493886db524500c9dd745c/server/config/config.go#L199). One example is the `min-gas-prices` config, which defines the minimum gas prices a validator is willing to accept for processing a transaction. By default, the SDK sets this parameter to `""` (empty string), which forces all validators to tweak their own `app.toml` and set a non-empty value, or else the node will halt on startup. This might not be the best UX for validators, so the chain developer can set a default `app.toml` value for validators inside this `initAppConfig()` function. +The `initAppConfig()` also allows overriding the default SDK's [server config](https://github.com/eligion/cosmos-sdk/blob/4eea4cafd3b8b1c2cd493886db524500c9dd745c/server/config/config.go#L199). One example is the `min-gas-prices` config, which defines the minimum gas prices a validator is willing to accept for processing a transaction. By default, the SDK sets this parameter to `""` (empty string), which forces all validators to tweak their own `app.toml` and set a non-empty value, or else the node will halt on startup. This might not be the best UX for validators, so the chain developer can set a default `app.toml` value for validators inside this `initAppConfig()` function. -+++ https://github.com/cosmos/cosmos-sdk/blob/aa9b055ddb46aacd4737335a92d0b8a82d577341/simapp/simd/cmd/root.go#L101-L116 ++++ https://github.com/eligion/cosmos-sdk/blob/aa9b055ddb46aacd4737335a92d0b8a82d577341/simapp/simd/cmd/root.go#L101-L116 The root-level `status` and `keys` subcommands are common across most applications and do not interact with application state. The bulk of an application's functionality - what users can actually _do_ with it - is enabled by its `tx` and `query` commands. @@ -78,7 +78,7 @@ The root-level `status` and `keys` subcommands are common across most applicatio [Transactions](./transactions.md) are objects wrapping [`Msg`s](../building-modules/messages-and-queries.md#messages) that trigger state changes. To enable the creation of transactions using the CLI interface, a function `txCmd` is generally added to the `rootCmd`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L86-L92 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L86-L92 This `txCmd` function adds all the transaction available to end-users for the application. This typically includes: @@ -88,13 +88,13 @@ This `txCmd` function adds all the transaction available to end-users for the ap Here is an example of a `txCmd` aggregating these subcommands from the `simapp` application: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L123-L149 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L123-L149 ### Query Commands [**Queries**](../building-modules/messages-and-queries.md#queries) are objects that allow users to retrieve information about the application's state. To enable the creation of transactions using the CLI interface, a function `txCmd` is generally added to the `rootCmd`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L86-L92 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L86-L92 This `queryCmd` function adds all the queries available to end-users for the application. This typically includes: @@ -106,7 +106,7 @@ This `queryCmd` function adds all the queries available to end-users for the app Here is an example of a `queryCmd` aggregating subcommands from the `simapp` application: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L99-L121 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L99-L121 ## Flags @@ -116,7 +116,7 @@ A _persistent_ flag (as opposed to a _local_ flag) added to a command transcends Flags are added to commands directly (generally in the [module's CLI file](../building-modules/module-interfaces.md#flags) where module commands are defined) and no flag except for the `rootCmd` persistent flags has to be added at application level. It is common to add a _persistent_ flag for `--chain-id`, the unique identifier of the blockchain the application pertains to, to the root command. Adding this flag can be done in the `main()` function. Adding this flag makes sense as the chain ID should not be changing across commands in this application CLI. Here is an example from the `simapp` application: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L118-L119 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L118-L119 ## Environment variables @@ -145,7 +145,7 @@ It is vital that the root command of an application uses `PersistentPreRun()` co Here is an example of an `PersistentPreRun()` function from `simapp``: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L54-L60 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/simapp/simd/cmd/root.go#L54-L60 The `SetCmdClientContextHandler` call reads persistent flags via `ReadPersistentCommandFlags` which creates a `client.Context` and sets that on the root command's `Context`. diff --git a/docs/core/context.md b/docs/core/context.md index 1fc74bd8ac32..98177de6dd9a 100644 --- a/docs/core/context.md +++ b/docs/core/context.md @@ -15,7 +15,7 @@ The `context` is a data structure intended to be passed from function to functio The SDK `Context` is a custom data structure that contains Go's stdlib [`context`](https://golang.org/pkg/context) as its base, and has many additional types within its definition that are specific to the Cosmos SDK. The `Context` is integral to transaction processing in that it allows modules to easily access their respective [store](./store.md#base-layer-kvstores) in the [`multistore`](./store.md#multistore) and retrieve transactional context such as the block header and gas meter. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/types/context.go#L16-L39 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/types/context.go#L16-L39 - **Context:** The base type is a Go [Context](https://golang.org/pkg/context), which is explained further in the [Go Context Package](#go-context-package) section below. - **Multistore:** Every application's `BaseApp` contains a [`CommitMultiStore`](./store.md#multistore) which is provided when a `Context` is created. Calling the `KVStore()` and `TransientStore()` methods allows modules to fetch their respective [`KVStore`](./store.md#base-layer-kvstores) using their unique `StoreKey`. diff --git a/docs/core/encoding.md b/docs/core/encoding.md index 084cffadad20..5e720fa50324 100644 --- a/docs/core/encoding.md +++ b/docs/core/encoding.md @@ -91,13 +91,13 @@ the consensus engine accepts only transactions in the form of raw bytes. - The `TxEncoder` object performs the encoding. - The `TxDecoder` object performs the decoding. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc4/types/tx_msg.go#L83-L87 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc4/types/tx_msg.go#L83-L87 A standard implementation of both these objects can be found in the [`auth` module](../../x/auth/spec/README.md): -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc4/x/auth/tx/decoder.go ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc4/x/auth/tx/decoder.go -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc4/x/auth/tx/encoder.go ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc4/x/auth/tx/encoder.go See [ADR-020](../architecture/adr-020-protobuf-transaction-encoding.md) for details of how a transaction is encoded. @@ -116,7 +116,7 @@ message Profile { In this `Profile` example, we hardcoded `account` as a `BaseAccount`. However, there are several other types of [user accounts related to vesting](../../x/auth/spec/05_vesting.md), such as `BaseVestingAccount` or `ContinuousVestingAccount`. All of these accounts are different, but they all implement the `AccountI` interface. How would you create a `Profile` that allows all these types of accounts with an `account` field that accepts an `AccountI` interface? -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/x/auth/types/account.go#L307-L330 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/x/auth/types/account.go#L307-L330 In [ADR-019](../architecture/adr-019-protobuf-state-encoding.md), it has been decided to use [`Any`](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto)s to encode interfaces in protobuf. An `Any` contains an arbitrary serialized message as bytes, along with a URL that acts as a globally unique identifier for and resolves to that message's type. This strategy allows us to pack arbitrary Go types inside protobuf messages. Our new `Profile` then looks like: @@ -154,7 +154,7 @@ bz, err := cdc.Marshal(profile) jsonBz, err := cdc.MarshalJSON(profile) ``` -To summarize, to encode an interface, you must 1/ pack the interface into an `Any` and 2/ marshal the `Any`. For convenience, the SDK provides a `MarshalInterface` method to bundle these two steps. Have a look at [a real-life example in the x/auth module](https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/x/auth/keeper/keeper.go#L218-L221). +To summarize, to encode an interface, you must 1/ pack the interface into an `Any` and 2/ marshal the `Any`. For convenience, the SDK provides a `MarshalInterface` method to bundle these two steps. Have a look at [a real-life example in the x/auth module](https://github.com/eligion/cosmos-sdk/blob/v0.42.1/x/auth/keeper/keeper.go#L218-L221). The reverse operation of retrieving the concrete Go type from inside an `Any`, called "unpacking", is done with the `GetCachedValue()` on `Any`. @@ -198,11 +198,11 @@ The above `Profile` example is a fictive example used for educational purposes. - the `AccountI` interface for encodinig different types of accounts (similar to the above example) in the x/auth query responses, - the `Evidencei` interface for encoding different types of evidences in the x/evidence module, - the `AuthorizationI` interface for encoding different types of x/authz authorizations, -- the [`Validator`](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/x/staking/types/staking.pb.go#L306-L337) struct that contains information about a validator. +- the [`Validator`](https://github.com/eligion/cosmos-sdk/blob/v0.42.5/x/staking/types/staking.pb.go#L306-L337) struct that contains information about a validator. A real-life example of encoding the pubkey as `Any` inside the Validator struct in x/staking is shown in the following example: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/x/staking/types/validator.go#L40-L61 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/x/staking/types/validator.go#L40-L61 ## FAQ @@ -246,7 +246,7 @@ The SDK `codec.Codec` interface provides support methods `MarshalInterface` and Module should register interfaces using `InterfaceRegistry` which provides a mechanism for registering interfaces: `RegisterInterface(protoName string, iface interface{})` and implementations: `RegisterImplementations(iface interface{}, impls ...proto.Message)` that can be safely unpacked from Any, similarly to type registration with Amino: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc4/codec/types/interface_registry.go#L25-L66 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc4/codec/types/interface_registry.go#L25-L66 In addition, an `UnpackInterfaces` phase should be introduced to deserialization to unpack interfaces before they're needed. Protobuf types that contain a protobuf `Any` either directly or via one of their members should implement the `UnpackInterfacesMessage` interface: diff --git a/docs/core/events.md b/docs/core/events.md index d62663abd2fd..e0cb6cdac945 100644 --- a/docs/core/events.md +++ b/docs/core/events.md @@ -57,13 +57,13 @@ In Cosmos SDK applications, Events are managed by an abstraction called the `Eve Internally, the `EventManager` tracks a list of Events for the entire execution flow of a transaction or `BeginBlock`/`EndBlock`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/types/events.go#L17-L25 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/types/events.go#L17-L25 The `EventManager` comes with a set of useful methods to manage Events. The method that is used most by module and application developers is `EmitEvent` that tracks an Event in the `EventManager`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/types/events.go#L33-L37 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.1/types/events.go#L33-L37 Module developers should handle Event emission via the `EventManager#EmitEvent` in each message `Handler` and in each `BeginBlock`/`EndBlock` handler. The `EventManager` is accessed via @@ -111,7 +111,7 @@ The main `eventCategory` you can subscribe to are: These Events are triggered from the `state` package after a block is committed. You can get the full list of Event categories [on the Tendermint Godoc page](https://godoc.org/github.com/tendermint/tendermint/types#pkg-constants). -The `type` and `attribute` value of the `query` allow you to filter the specific Event you are looking for. For example, a `transfer` transaction triggers an Event of type `Transfer` and has `Recipient` and `Sender` as `attributes` (as defined in the [`events.go` file of the `bank` module](https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/x/bank/types/events.go)). Subscribing to this Event would be done like so: +The `type` and `attribute` value of the `query` allow you to filter the specific Event you are looking for. For example, a `transfer` transaction triggers an Event of type `Transfer` and has `Recipient` and `Sender` as `attributes` (as defined in the [`events.go` file of the `bank` module](https://github.com/eligion/cosmos-sdk/blob/v0.42.1/x/bank/types/events.go)). Subscribing to this Event would be done like so: ```json { diff --git a/docs/core/grpc_rest.md b/docs/core/grpc_rest.md index d962e43907f0..61bab5b09769 100644 --- a/docs/core/grpc_rest.md +++ b/docs/core/grpc_rest.md @@ -21,7 +21,7 @@ The node also exposes some other endpoints, such as the Tendermint P2P endpoint, ## gRPC Server ::: warning -A patch introduced in `go-grpc v1.34.0` made gRPC incompatible with the `gogoproto` library, making some [gRPC queries](https://github.com/cosmos/cosmos-sdk/issues/8426) panic. As such, the SDK requires that `go-grpc <=v1.33.2` is installed in your `go.mod`. +A patch introduced in `go-grpc v1.34.0` made gRPC incompatible with the `gogoproto` library, making some [gRPC queries](https://github.com/eligion/cosmos-sdk/issues/8426) panic. As such, the SDK requires that `go-grpc <=v1.33.2` is installed in your `go.mod`. To make sure that gRPC is working properly, it is **highly recommended** to add the following line in your application's `go.mod`: @@ -29,14 +29,14 @@ To make sure that gRPC is working properly, it is **highly recommended** to add replace google.golang.org/grpc => google.golang.org/grpc v1.33.2 ``` -Please see [issue #8392](https://github.com/cosmos/cosmos-sdk/issues/8392) for more info. +Please see [issue #8392](https://github.com/eligion/cosmos-sdk/issues/8392) for more info. ::: Cosmos SDK v0.40 introduced Protobuf as the main [encoding](./encoding) library, and this brings a wide range of Protobuf-based tools that can be plugged into the SDK. One such tool is [gRPC](https://grpc.io), a modern open source high performance RPC framework that has decent client support in several languages. Each module exposes a [Protobuf `Query` service](../building-modules/messages-and-queries.md#queries) that defines state queries. The `Query` services and a transaction service used to broadcast transactions are hooked up to the gRPC server via the following function inside the application: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-rc0/server/types/app.go#L39-L41 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-rc0/server/types/app.go#L39-L41 Note: It is not possible to expose any [Protobuf `Msg` service](../building-modules/messages-and-queries.md#messages) endpoints via gRPC. Transactions must be generated and signed using the CLI or programatically before they can be broadcasted using gRPC. See [Generating, Signing, and Broadcasting Transactions](../run-node/txs.html) for more information. @@ -69,7 +69,7 @@ If, for various reasons, you cannot use gRPC (for example, you are building a we [gRPC-gateway](https://grpc-ecosystem.github.io/grpc-gateway/) is a tool to expose gRPC endpoints as REST endpoints. For each gRPC endpoint defined in a Protobuf `Query` service, the SDK offers a REST equivalent. For instance, querying a balance could be done via the `/cosmos.bank.v1beta1.QueryAllBalances` gRPC endpoint, or alternatively via the gRPC-gateway `"/cosmos/bank/v1beta1/balances/{address}"` REST endpoint: both will return the same result. For each RPC method defined in a Protobuf `Query` service, the corresponding REST endpoint is defined as an option: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/proto/cosmos/bank/v1beta1/query.proto#L19-L22 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.41.0/proto/cosmos/bank/v1beta1/query.proto#L19-L22 For application developers, gRPC-gateway REST routes needs to be wired up to the REST server, this is done by calling the `RegisterGRPCGatewayRoutes` function on the ModuleManager. @@ -85,7 +85,7 @@ A [Swagger](https://swagger.io/) (or OpenAPIv2) specification file is exposed un Enabling the `/swagger` endpoint is configurable inside `~/.simapp/config/app.toml` via the `api.swagger` field, which is set to true by default. -For application developers, you may want to generate your own Swagger definitions based on your custom modules. The SDK's [Swagger generation script](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc4/scripts/protoc-swagger-gen.sh) is a good place to start. +For application developers, you may want to generate your own Swagger definitions based on your custom modules. The SDK's [Swagger generation script](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc4/scripts/protoc-swagger-gen.sh) is a good place to start. ## Tendermint RPC diff --git a/docs/core/node.md b/docs/core/node.md index 132b6a8a84ef..168e9b4cb7fa 100644 --- a/docs/core/node.md +++ b/docs/core/node.md @@ -18,7 +18,7 @@ In general, developers will implement the `main.go` function with the following - First, an [`appCodec`](./encoding.md) is instantiated for the application. - Then, the `config` is retrieved and config parameters are set. This mainly involves setting the Bech32 prefixes for [addresses](../basics/accounts.md#addresses). - +++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/types/config.go#L13-L24 + +++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/types/config.go#L13-L24 - Using [cobra](https://github.com/spf13/cobra), the root command of the full-node client is created. After that, all the custom commands of the application are added using the `AddCommand()` method of `rootCmd`. - Add default server commands to `rootCmd` using the `server.AddCommands()` method. These commands are separated from the ones added above since they are standard and defined at SDK level. They should be shared by all SDK-based applications. They include the most important command: the [`start` command](#start-command). - Prepare and execute the `executor`. @@ -26,7 +26,7 @@ In general, developers will implement the `main.go` function with the following See an example of `main` function from the `simapp` application, the SDK's application for demo purposes: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/simapp/simd/main.go ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/simapp/simd/main.go ## `start` command @@ -46,24 +46,24 @@ The flow of the `start` command is pretty straightforward. First, it retrieves t With the `db`, the `start` command creates a new instance of the application using an `appCreator` function: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/server/start.go#L227-L228 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/server/start.go#L227-L228 Note that an `appCreator` is a function that fulfills the `AppCreator` signature: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/server/types/app.go#L48-L50 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/server/types/app.go#L48-L50 In practice, the [constructor of the application](../basics/app-anatomy.md#constructor-function) is passed as the `appCreator`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/simapp/simd/cmd/root.go#L170-L215 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/simapp/simd/cmd/root.go#L170-L215 Then, the instance of `app` is used to instanciate a new Tendermint node: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/server/start.go#L235-L244 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/server/start.go#L235-L244 The Tendermint node can be created with `app` because the latter satisfies the [`abci.Application` interface](https://github.com/tendermint/tendermint/blob/v0.34.0/abci/types/application.go#L7-L32) (given that `app` extends [`baseapp`](./baseapp.md)). As part of the `NewNode` method, Tendermint makes sure that the height of the application (i.e. number of blocks since genesis) is equal to the height of the Tendermint node. The difference between these two heights should always be negative or null. If it is strictly negative, `NewNode` will replay blocks until the height of the application reaches the height of the Tendermint node. Finally, if the height of the application is `0`, the Tendermint node will call [`InitChain`](./baseapp.md#initchain) on the application to initialize the state from the genesis file. Once the Tendermint node is instanciated and in sync with the application, the node can be started: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/server/start.go#L250-L252 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/server/start.go#L250-L252 Upon starting, the node will bootstrap its RPC and P2P server and start dialing peers. During handshake with its peers, if the node realizes they are ahead, it will query all the blocks sequentially in order to catch up. Then, it will wait for new block proposals and block signatures from validators in order to make progress. diff --git a/docs/core/ocap.md b/docs/core/ocap.md index 46152edee85b..2674f15d75c7 100644 --- a/docs/core/ocap.md +++ b/docs/core/ocap.md @@ -68,7 +68,7 @@ sumValue := externalModule.ComputeSumValue(*account) In the Cosmos SDK, you can see the application of this principle in the gaia app. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.41.4/simapp/app.go#L249-L273 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.41.4/simapp/app.go#L249-L273 The following diagram shows the current dependencies between keepers. diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index 7d876f4e91c0..adab1cfb9921 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -7626,7 +7626,7 @@ TxBody is the body of a transaction that all signers sign over. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | `messages` | [google.protobuf.Any](#google.protobuf.Any) | repeated | messages is a list of messages to be executed. The required signers of those messages define the number and order of elements in AuthInfo's signer_infos and Tx's signatures. Each required signer address is added to the list only the first time it occurs. By convention, the first required signer (usually from the first message) is referred to as the primary signer and pays the fee for the whole transaction. | -| `memo` | [string](#string) | | memo is any arbitrary note/comment to be added to the transaction. WARNING: in clients, any publicly exposed text should not be called memo, but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). | +| `memo` | [string](#string) | | memo is any arbitrary note/comment to be added to the transaction. WARNING: in clients, any publicly exposed text should not be called memo, but should be called `note` instead (see https://github.com/eligion/cosmos-sdk/issues/9122). | | `timeout_height` | [uint64](#uint64) | | timeout is the block height after which this transaction will not be processed by the chain | | `extension_options` | [google.protobuf.Any](#google.protobuf.Any) | repeated | extension_options are arbitrary options that can be added by chains when the default options are not sufficient. If any of these are present and can't be handled, the transaction will be rejected | | `non_critical_extension_options` | [google.protobuf.Any](#google.protobuf.Any) | repeated | extension_options are arbitrary options that can be added by chains when the default options are not sufficient. If any of these are present and can't be handled, they will be ignored | diff --git a/docs/core/simulation.md b/docs/core/simulation.md index 9b838b40b526..8b4ba520d77b 100644 --- a/docs/core/simulation.md +++ b/docs/core/simulation.md @@ -7,8 +7,8 @@ order: 13 The Cosmos SDK offers a full fledged simulation framework to fuzz test every message defined by a module. -On the SDK, this functionality is provided by the[`SimApp`](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/simapp/app.go), which is a -`Baseapp` application that is used for running the [`simulation`](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/x/simulation) module. +On the SDK, this functionality is provided by the[`SimApp`](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/simapp/app.go), which is a +`Baseapp` application that is used for running the [`simulation`](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/x/simulation) module. This module defines all the simulation logic as well as the operations for randomized parameters like accounts, balances etc. @@ -41,7 +41,7 @@ failure type: Each simulation must receive a set of inputs (_i.e_ flags) such as the number of blocks that the simulation is run, seed, block size, etc. -Check the full list of flags [here](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/simapp/config.go#L32-L55). +Check the full list of flags [here](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/simapp/config.go#L32-L55). ## Simulator Modes @@ -53,7 +53,7 @@ In addition to the various inputs and commands, the simulator runs in three mode This mode is helpful for running simulations on a known state such as a live network export where a new (mostly likely breaking) version of the application needs to be tested. 3. From a `params.json` file where the initial state is pseudo-randomly generated but the module and simulation parameters can be provided manually. This allows for a more controlled and deterministic simulation setup while allowing the state space to still be pseudo-randomly simulated. - The list of available parameters are listed [here](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/x/simulation/params.go#L44-L52). + The list of available parameters are listed [here](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/x/simulation/params.go#L44-L52). ::: tip These modes are not mutually exclusive. So you can for example run a randomly @@ -63,10 +63,10 @@ generated genesis state (`1`) with manually generated simulation params (`3`). ## Usage This is a general example of how simulations are run. For more specific examples -check the SDK [Makefile](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/Makefile#L251-L287). +check the SDK [Makefile](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/Makefile#L251-L287). ```bash - $ go test -mod=readonly github.com/cosmos/cosmos-sdk/simapp \ + $ go test -mod=readonly github.com/eligion/cosmos-sdk/simapp \ -run=TestApp \ ... -v -timeout 24h @@ -90,7 +90,7 @@ Here are some suggestions when encountering a simulation failure: - Run invariants on every operation with `-SimulateEveryOperation`. _Note_: this will slow down your simulation **a lot**. - Try adding logs to operations that are not logged. You will have to define a - [Logger](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/x/staking/keeper/keeper.go#L66-L69) on your `Keeper`. + [Logger](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/x/staking/keeper/keeper.go#L66-L69) on your `Keeper`. ## Use simulation in your SDK-based application diff --git a/docs/core/store.md b/docs/core/store.md index a469b77ebfd3..fb000aace4f0 100644 --- a/docs/core/store.md +++ b/docs/core/store.md @@ -58,11 +58,11 @@ The Cosmos SDK comes with a large set of stores to persist the state of applicat At its very core, a Cosmos SDK `store` is an object that holds a `CacheWrapper` and has a `GetStoreType()` method: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L15-L18 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L15-L18 The `GetStoreType` is a simple method that returns the type of store, whereas a `CacheWrapper` is a simple interface that implements store read caching and write branching through `Write` method: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L240-L264 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L240-L264 Branching and cache is used ubiquitously in the Cosmos SDK and required to be implemented on every store type. A storage branch creates an isolated, ephemeral branch of a store that can be passed around and updated without affecting the main underlying store. This is used to trigger temporary state-transitions that may be reverted later should an error occur. Read more about it in [context](./context.md#Store-branching) @@ -70,11 +70,11 @@ Branching and cache is used ubiquitously in the Cosmos SDK and required to be im A commit store is a store that has the ability to commit changes made to the underlying tree or db. The Cosmos SDK differentiates simple stores from commit stores by extending the basic store interfaces with a `Committer`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L29-L33 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L29-L33 The `Committer` is an interface that defines methods to persist changes to disk: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L20-L27 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L20-L27 The `CommitID` is a deterministic commit of the state tree. Its hash is returned to the underlying consensus engine and stored in the block header. Note that commit store interfaces exist for various purposes, one of which is to make sure not every object can commit the store. As part of the [object-capabilities model](./ocap.md) of the Cosmos SDK, only `baseapp` should have the ability to commit stores. For example, this is the reason why the `ctx.KVStore()` method by which modules typically access stores returns a `KVStore` and not a `CommitKVStore`. @@ -86,7 +86,7 @@ The Cosmos SDK comes with many types of stores, the most used being [`CommitMult Each Cosmos SDK application holds a multistore at its root to persist its state. The multistore is a store of `KVStores` that follows the `Multistore` interface: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L104-L133 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L104-L133 If tracing is enabled, then branching the multistore will firstly wrap all the underlying `KVStore` in [`TraceKv.Store`](#tracekv-store). @@ -94,19 +94,19 @@ If tracing is enabled, then branching the multistore will firstly wrap all the u The main type of `Multistore` used in the Cosmos SDK is `CommitMultiStore`, which is an extension of the `Multistore` interface: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L141-L184 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L141-L184 As for concrete implementation, the [`rootMulti.Store`] is the go-to implementation of the `CommitMultiStore` interface. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/rootmulti/store.go#L43-L61 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/rootmulti/store.go#L43-L61 The `rootMulti.Store` is a base-layer multistore built around a `db` on top of which multiple `KVStores` can be mounted, and is the default multistore store used in [`baseapp`](./baseapp.md). ### CacheMultiStore -Whenever the `rootMulti.Store` needs to be branched, a [`cachemulti.Store`](https://github.com/cosmos/cosmos-sdk/blob/v0.42.1/store/cachemulti/store.go) is used. +Whenever the `rootMulti.Store` needs to be branched, a [`cachemulti.Store`](https://github.com/eligion/cosmos-sdk/blob/v0.42.1/store/cachemulti/store.go) is used. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/cachemulti/store.go#L17-L28 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/cachemulti/store.go#L17-L28 `cachemulti.Store` branches all substores (creates a virtual store for each substore) in its constructor and hold them in `Store.stores`. Moreover caches all read queries. `Store.GetKVStore()` returns the store from `Store.stores`, and `Store.Write()` recursively calls `CacheWrap.Write()` on all the substores. @@ -120,17 +120,17 @@ Individual `KVStore`s are used by modules to manage a subset of the global state `CommitKVStore`s are declared by proxy of their respective `key` and mounted on the application's [multistore](#multistore) in the [main application file](../basics/app-anatomy.md#core-application-file). In the same file, the `key` is also passed to the module's `keeper` that is responsible for managing the store. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L189-L219 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/types/store.go#L189-L219 Apart from the traditional `Get` and `Set` methods, a `KVStore` must provide an `Iterator(start, end)` method which returns an `Iterator` object. It is used to iterate over a range of keys, typically keys that share a common prefix. Below is an example from the bank's module keeper, used to iterate over all account balances: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/x/bank/keeper/view.go#L115-L134 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/x/bank/keeper/view.go#L115-L134 ### `IAVL` Store The default implementation of `KVStore` and `CommitKVStore` used in `baseapp` is the `iavl.Store`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/iavl/store.go#L37-L40 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/iavl/store.go#L37-L40 `iavl` stores are based around an [IAVL Tree](https://github.com/tendermint/iavl), a self-balancing binary tree which guarantees that: @@ -144,7 +144,7 @@ The documentation on the IAVL Tree is located [here](https://github.com/cosmos/i `dbadapter.Store` is a adapter for `dbm.DB` making it fulfilling the `KVStore` interface. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/dbadapter/store.go#L13-L16 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/dbadapter/store.go#L13-L16 `dbadapter.Store` embeds `dbm.DB`, meaning most of the `KVStore` interface functions are implemented. The other functions (mostly miscellaneous) are manually implemented. This store is primarily used within [Transient Stores](#transient-stores) @@ -152,17 +152,17 @@ The documentation on the IAVL Tree is located [here](https://github.com/cosmos/i `Transient.Store` is a base-layer `KVStore` which is automatically discarded at the end of the block. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/transient/store.go#L13-L16 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/transient/store.go#L13-L16 `Transient.Store` is a `dbadapter.Store` with a `dbm.NewMemDB()`. All `KVStore` methods are reused. When `Store.Commit()` is called, a new `dbadapter.Store` is assigned, discarding previous reference and making it garbage collected. This type of store is useful to persist information that is only relevant per-block. One example would be to store parameter changes (i.e. a bool set to `true` if a parameter changed in a block). -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/x/params/types/subspace.go#L20-L30 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/x/params/types/subspace.go#L20-L30 Transient stores are typically accessed via the [`context`](./context.md) via the `TransientStore()` method: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/types/context.go#L232-L235 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/types/context.go#L232-L235 ## KVStore Wrappers @@ -170,7 +170,7 @@ Transient stores are typically accessed via the [`context`](./context.md) via th `cachekv.Store` is a wrapper `KVStore` which provides buffered writing / cached reading functionalities over the underlying `KVStore`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/cachekv/store.go#L27-L34 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/cachekv/store.go#L27-L34 This is the type used whenever an IAVL Store needs to be branched to create an isolated store (typically when we need to mutate a state that might be reverted later). @@ -188,27 +188,27 @@ This is the type used whenever an IAVL Store needs to be branched to create an i ### `GasKv` Store -Cosmos SDK applications use [`gas`](../basics/gas-fees.md) to track resources usage and prevent spam. [`GasKv.Store`](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/gaskv/store.go) is a `KVStore` wrapper that enables automatic gas consumption each time a read or write to the store is made. It is the solution of choice to track storage usage in Cosmos SDK applications. +Cosmos SDK applications use [`gas`](../basics/gas-fees.md) to track resources usage and prevent spam. [`GasKv.Store`](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/gaskv/store.go) is a `KVStore` wrapper that enables automatic gas consumption each time a read or write to the store is made. It is the solution of choice to track storage usage in Cosmos SDK applications. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/gaskv/store.go#L13-L19 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/gaskv/store.go#L13-L19 When methods of the parent `KVStore` are called, `GasKv.Store` automatically consumes appropriate amount of gas depending on the `Store.gasConfig`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/types/gas.go#L153-L162 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/types/gas.go#L153-L162 By default, all `KVStores` are wrapped in `GasKv.Stores` when retrieved. This is done in the `KVStore()` method of the [`context`](./context.md): -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/types/context.go#L227-L230 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/types/context.go#L227-L230 In this case, the default gas configuration is used: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/types/gas.go#L164-L175 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/types/gas.go#L164-L175 ### `TraceKv` Store `tracekv.Store` is a wrapper `KVStore` which provides operation tracing functionalities over the underlying `KVStore`. It is applied automatically by the Cosmos SDK on all `KVStore` if tracing is enabled on the parent `MultiStore`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/tracekv/store.go#L20-L43 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/tracekv/store.go#L20-L43 When each `KVStore` methods are called, `tracekv.Store` automatically logs `traceOperation` to the `Store.writer`. `traceOperation.Metadata` is filled with `Store.context` when it is not nil. `TraceContext` is a `map[string]interface{}`. @@ -216,7 +216,7 @@ When each `KVStore` methods are called, `tracekv.Store` automatically logs `trac `prefix.Store` is a wrapper `KVStore` which provides automatic key-prefixing functionalities over the underlying `KVStore`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/store/prefix/store.go#L15-L21 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/store/prefix/store.go#L15-L21 When `Store.{Get, Set}()` is called, the store forwards the call to its parent, with the key prefixed with the `Store.prefix`. diff --git a/docs/core/transactions.md b/docs/core/transactions.md index 710df881a856..64948a81070a 100644 --- a/docs/core/transactions.md +++ b/docs/core/transactions.md @@ -20,12 +20,12 @@ When users want to interact with an application and make state changes (e.g. sen Transaction objects are SDK types that implement the `Tx` interface -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/types/tx_msg.go#L49-L57 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/types/tx_msg.go#L49-L57 It contains the following methods: - **GetMsgs:** unwraps the transaction and returns a list of contained `sdk.Msg`s - one transaction may have one or multiple messages, which are defined by module developers. -- **ValidateBasic:** lightweight, [_stateless_](../basics/tx-lifecycle.md#types-of-checks) checks used by ABCI messages [`CheckTx`](./baseapp.md#checktx) and [`DeliverTx`](./baseapp.md#delivertx) to make sure transactions are not invalid. For example, the [`auth`](https://github.com/cosmos/cosmos-sdk/tree/master/x/auth) module's `StdTx` `ValidateBasic` function checks that its transactions are signed by the correct number of signers and that the fees do not exceed what the user's maximum. Note that this function is to be distinct from `sdk.Msg` [`ValidateBasic`](../basics/tx-lifecycle.md#ValidateBasic) methods, which perform basic validity checks on messages only. When [`runTx`](./baseapp.md#runtx) is checking a transaction created from the [`auth`](https://github.com/cosmos/cosmos-sdk/tree/master/x/auth/spec) module, it first runs `ValidateBasic` on each message, then runs the `auth` module AnteHandler which calls `ValidateBasic` for the transaction itself. +- **ValidateBasic:** lightweight, [_stateless_](../basics/tx-lifecycle.md#types-of-checks) checks used by ABCI messages [`CheckTx`](./baseapp.md#checktx) and [`DeliverTx`](./baseapp.md#delivertx) to make sure transactions are not invalid. For example, the [`auth`](https://github.com/eligion/cosmos-sdk/tree/master/x/auth) module's `StdTx` `ValidateBasic` function checks that its transactions are signed by the correct number of signers and that the fees do not exceed what the user's maximum. Note that this function is to be distinct from `sdk.Msg` [`ValidateBasic`](../basics/tx-lifecycle.md#ValidateBasic) methods, which perform basic validity checks on messages only. When [`runTx`](./baseapp.md#runtx) is checking a transaction created from the [`auth`](https://github.com/eligion/cosmos-sdk/tree/master/x/auth/spec) module, it first runs `ValidateBasic` on each message, then runs the `auth` module AnteHandler which calls `ValidateBasic` for the transaction itself. As a developer, you should rarely manipulate `Tx` directly, as `Tx` is really an intermediate type used for transaction generation. Instead, developers should prefer the `TxBuilder` interface, which you can learn more about [below](#transaction-generation). @@ -37,11 +37,11 @@ Every message in a transaction must be signed by the addresses specified by its The most used implementation of the `Tx` interface is the Protobuf `Tx` message, which is used in `SIGN_MODE_DIRECT`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/tx/v1beta1/tx.proto#L12-L25 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/tx/v1beta1/tx.proto#L12-L25 Because Protobuf serialization is not deterministic, the SDK uses an additional `TxRaw` type to denote the pinned bytes over which a transaction is signed. Any user can generate a valid `body` and `auth_info` for a transaction, and serialize these two messages using Protobuf. `TxRaw` then pins the user's exact binary representation of `body` and `auth_info`, called respectively `body_bytes` and `auth_info_bytes`. The document that is signed by all signers of the transaction is `SignDoc` (deterministically serialized using [ADR-027](../architecture/adr-027-deterministic-protobuf-serialization.md)): -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/tx/v1beta1/tx.proto#L47-L64 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/tx/v1beta1/tx.proto#L47-L64 Once signed by all signers, the `body_bytes`, `auth_info_bytes` and `signatures` are gathered into `TxRaw`, whose serialized bytes are broadcasted over the network. @@ -49,11 +49,11 @@ Once signed by all signers, the `body_bytes`, `auth_info_bytes` and `signatures` The legacy implemention of the `Tx` interface is the `StdTx` struct from `x/auth`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/x/auth/legacy/legacytx/stdtx.go#L120-L130 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/x/auth/legacy/legacytx/stdtx.go#L120-L130 The document signed by all signers is `StdSignDoc`: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/x/auth/legacy/legacytx/stdsign.go#L20-L33 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/x/auth/legacy/legacytx/stdsign.go#L20-L33 which is encoded into bytes using Amino JSON. Once all signatures are gathered into `StdTx`, `StdTx` is serialized using Amino JSON, and these bytes are broadcasted over the network. @@ -90,7 +90,7 @@ While messages contain the information for state transition logic, a transaction The `TxBuilder` interface contains data closely related with the generation of transactions, which an end-user can freely set to generate the desired transaction: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/client/tx_config.go#L32-L45 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/client/tx_config.go#L32-L45 - `Msg`s, the array of [messages](#messages) included in the transaction. - `GasLimit`, option chosen by the users for how to calculate how much gas they will need to pay. @@ -101,12 +101,12 @@ The `TxBuilder` interface contains data closely related with the generation of t As there are currently two sign modes for signing transactions, there are also two implementations of `TxBuilder`: -- [wrapper](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/x/auth/tx/builder.go#L19-L33) for creating transactions for `SIGN_MODE_DIRECT`, -- [StdTxBuilder](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/x/auth/legacy/legacytx/stdtx_builder.go#L14-L20) for `SIGN_MODE_LEGACY_AMINO_JSON`. +- [wrapper](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/x/auth/tx/builder.go#L19-L33) for creating transactions for `SIGN_MODE_DIRECT`, +- [StdTxBuilder](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/x/auth/legacy/legacytx/stdtx_builder.go#L14-L20) for `SIGN_MODE_LEGACY_AMINO_JSON`. However, the two implementation of `TxBuilder` should be hidden away from end-users, as they should prefer using the overarching `TxConfig` interface: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/client/tx_config.go#L21-L30 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/client/tx_config.go#L21-L30 `TxConfig` is an app-wide configuration for managing transactions. Most importantly, it holds the information about whether to sign each transaction with `SIGN_MODE_DIRECT` or `SIGN_MODE_LEGACY_AMINO_JSON`. By calling `txBuilder := txConfig.NewTxBuilder()`, a new `TxBuilder` will be created with the appropriate sign mode. @@ -138,7 +138,7 @@ simd tx send $MY_VALIDATOR_ADDRESS $RECIPIENT 1000stake [gRPC](https://grpc.io) is introduced in Cosmos SDK 0.40 as the main component for the SDK's RPC layer. The principal usage of gRPC is in the context of modules' [`Query` services](../building-modules). However, the SDK also exposes a few other module-agnostic gRPC services, one of them being the `Tx` service: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/tx/v1beta1/service.proto ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/proto/cosmos/tx/v1beta1/service.proto The `Tx` service exposes a handful of utility functions, such as simulating a transaction or querying a transaction, and also one method to broadcast transactions. diff --git a/docs/core/upgrade.md b/docs/core/upgrade.md index c1cf37acde8a..dfec42172c53 100644 --- a/docs/core/upgrade.md +++ b/docs/core/upgrade.md @@ -65,7 +65,7 @@ To learn more about configuring migration scripts for your modules, see the [Mod ### Order Of Migrations -By default, all migrations are run in module name alphabetical ascending order, except `x/auth` which is run last. The reason is state dependencies between x/auth and other modules (you can read more in [issue #10606](https://github.com/cosmos/cosmos-sdk/issues/10606)). +By default, all migrations are run in module name alphabetical ascending order, except `x/auth` which is run last. The reason is state dependencies between x/auth and other modules (you can read more in [issue #10606](https://github.com/eligion/cosmos-sdk/issues/10606)). If you want to change the order of migration then you should call `app.mm.SetOrderMigrations(module1, module2, ...)` in your app.go file. The function will panic if you forget to include a module in the argument list. diff --git a/docs/ibc/custom.md b/docs/ibc/custom.md index 36de3085cc72..5fa2f9b27420 100644 --- a/docs/ibc/custom.md +++ b/docs/ibc/custom.md @@ -465,4 +465,4 @@ callbacks](https://github.com/cosmos/ibc-go/blob/main/modules/apps/transfer/modu ## Next {hide} -Learn about [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/intro.md) {hide} +Learn about [building modules](https://github.com/eligion/cosmos-sdk/blob/master/docs/building-modules/intro.md) {hide} diff --git a/docs/ibc/relayer.md b/docs/ibc/relayer.md index 0e59885c8b3a..37ef1dc04d51 100644 --- a/docs/ibc/relayer.md +++ b/docs/ibc/relayer.md @@ -7,7 +7,7 @@ order: 4 ## Prerequisites Readings - [IBC Overview](./overview.md) {prereq} -- [Events](https://github.com/cosmos/cosmos-sdk/blob/master/docs/core/events.md) {prereq} +- [Events](https://github.com/eligion/cosmos-sdk/blob/master/docs/core/events.md) {prereq} ## Events diff --git a/docs/intro/overview.md b/docs/intro/overview.md index 4d0212719f8d..523b6962d543 100644 --- a/docs/intro/overview.md +++ b/docs/intro/overview.md @@ -6,7 +6,7 @@ order: 1 ## What is the SDK? -The [Cosmos-SDK](https://github.com/cosmos/cosmos-sdk) is an open-source framework for building multi-asset public Proof-of-Stake (PoS) blockchains, like the Cosmos Hub, as well as permissioned Proof-Of-Authority (PoA) blockchains. Blockchains built with the Cosmos SDK are generally referred to as **application-specific blockchains**. +The [Cosmos-SDK](https://github.com/eligion/cosmos-sdk) is an open-source framework for building multi-asset public Proof-of-Stake (PoS) blockchains, like the Cosmos Hub, as well as permissioned Proof-Of-Authority (PoA) blockchains. Blockchains built with the Cosmos SDK are generally referred to as **application-specific blockchains**. The goal of the Cosmos SDK is to allow developers to easily create custom blockchains from scratch that can natively interoperate with other blockchains. We envision the SDK as the npm-like framework to build secure blockchain applications on top of [Tendermint](https://github.com/tendermint/tendermint). SDK-based blockchains are built out of composable [modules](../building-modules/intro.md), most of which are open source and readily available for any developers to use. Anyone can create a module for the Cosmos-SDK, and integrating already-built modules is as simple as importing them into your blockchain application. What's more, the Cosmos SDK is a capabilities-based system, which allows developers to better reason about the security of interactions between modules. For a deeper look at capabilities, jump to [this section](../core/ocap.md). diff --git a/docs/kr/README.md b/docs/kr/README.md index 23a5ad220917..6d438859fd65 100755 --- a/docs/kr/README.md +++ b/docs/kr/README.md @@ -30,7 +30,7 @@ This documentation is not complete and it's outdated. Please use the English ver 다음 항목은 실제로 작동하는 SDK 기반 블록체인에 필요한 모든 정보를 포함하고 있습니다. ->*NOTE*: 코스모스 SDK 지원 문서의 완성도와 정확성을 높이기 위해 해당 문서는 꾸준히 업데이트 되고 있습니다. 혹시 오류나 제안사항이 있으시다면 [코스모스 포럼](https://forum.cosmos.network) 또는 [깃허브 이슈를](https://github.com/cosmos/cosmos-sdk/issues/new) 통해서 알려주시면 감사하겠습니다. +>*NOTE*: 코스모스 SDK 지원 문서의 완성도와 정확성을 높이기 위해 해당 문서는 꾸준히 업데이트 되고 있습니다. 혹시 오류나 제안사항이 있으시다면 [코스모스 포럼](https://forum.cosmos.network) 또는 [깃허브 이슈를](https://github.com/eligion/cosmos-sdk/issues/new) 통해서 알려주시면 감사하겠습니다. - [인트로](./intro/README.md): 코스모스 SDK에 대한 high-level 소개 자료 - [Gaia](https://github.com/cosmos/gaia/blob/master/docs/translations/kr/README.md): Gaia 애플리케이션(현재 코스모스 허브 명칭)에 대한 모든 문서들이 있습니다. Gaia 테스트넷에 참여하는 방법에 대한 정보 @@ -46,4 +46,4 @@ This documentation is not complete and it's outdated. Please use the English ver ## 기여하기 -코스모스 도큐멘테이션 또는 코드 업데이트 규칙에 관련해서는 [이 파일](https://github.com/cosmos/cosmos-sdk/blob/master/docs/DOCS_README.md)을 참고해주세요. +코스모스 도큐멘테이션 또는 코드 업데이트 규칙에 관련해서는 [이 파일](https://github.com/eligion/cosmos-sdk/blob/master/docs/DOCS_README.md)을 참고해주세요. diff --git a/docs/kr/intro/overview.md b/docs/kr/intro/overview.md index 1056410c0a5b..b7830921cb04 100644 --- a/docs/kr/intro/overview.md +++ b/docs/kr/intro/overview.md @@ -6,7 +6,7 @@ order: 1 ## 코스모스 SDK는 무엇인가? -[코스모스 SDK](https://github.com/cosmos/cosmos-sdk)는 코스모스 허브와 같은 다수 자산(multi-asset) 퍼블릭 지분증명 블록체인과 권한증명(PoA, Proof-of-Authority) 블록체인을 만들 수 있는 오픈소스 프레임워크입니다. 코스모스 SDK를 사용하여 만들어진 블록체인은 통상 **애플리케이션 특화 블록체인(application-specific blockchain)**이라 불립니다. +[코스모스 SDK](https://github.com/eligion/cosmos-sdk)는 코스모스 허브와 같은 다수 자산(multi-asset) 퍼블릭 지분증명 블록체인과 권한증명(PoA, Proof-of-Authority) 블록체인을 만들 수 있는 오픈소스 프레임워크입니다. 코스모스 SDK를 사용하여 만들어진 블록체인은 통상 **애플리케이션 특화 블록체인(application-specific blockchain)**이라 불립니다. 코스모스 SDK의 목적은 개발자가 간편하게 처음부터 다른 블록체인과 상호환이 가능한 블록체인을 만들 수 있게 하는 것이 목적입니다. 코스모스 SDK는 npm과 같은 프레임워크로 자리잡으며 [텐더민트](https://github.com/tendermint/tendermint) 상의 안전한 블록체인 애플리케이션을 만들 수 있게 자리잡는 것이 목표입니다. SDK 기반 블록체인은 구성적(composable) 모듈을 기반으로 만들어지며, 대다수의 모듈은 오픈 소스로 모든 개발자가 사용할 수 있습니다. 누구나 코스모스 SDK 모듈을 만들 수 있으며, 단순히 블록체인 애플리케이션에 모듈을 불러와 이미 개발된 모듈을 간편하게 사용할 수 있습니다. 또한, 코스모스 SDK는 능력성 기반(capabilities-based) 시스템으로 모듈 간 인터랙션의 보안성을 더욱 직관적으로 설계할 수 있습니다. 능력성 기반 시스템에 대해 더 알고싶으시다면 [이 항목](./ocap.md)을 참고하세요. diff --git a/docs/kr/kr-translation-progress.md b/docs/kr/kr-translation-progress.md index b6e3198aa9e9..9939507ac9a3 100644 --- a/docs/kr/kr-translation-progress.md +++ b/docs/kr/kr-translation-progress.md @@ -18,7 +18,7 @@ Please refer to the official english version of the documentation for the latest ### [`concepts`](../concepts/) -- Synced until commit [14ebc65](https://github.com/cosmos/cosmos-sdk/commit/14ebc65daffd63e1adf17995c103aac9380207ef#diff-f874f370376bf359320af0543de53fcf) +- Synced until commit [14ebc65](https://github.com/eligion/cosmos-sdk/commit/14ebc65daffd63e1adf17995c103aac9380207ef#diff-f874f370376bf359320af0543de53fcf) ### [`spec`](../spec/) @@ -26,16 +26,16 @@ Please refer to the official english version of the documentation for the latest ### [`gaia`](../gaia/) -- Synced until commit [288df6f](https://github.com/cosmos/cosmos-sdk/commit/288df6fe69dcef8fa95aca022039f92ba1e98c11#diff-3302fe357e01f0996ddb0f10adec85f0) +- Synced until commit [288df6f](https://github.com/eligion/cosmos-sdk/commit/288df6fe69dcef8fa95aca022039f92ba1e98c11#diff-3302fe357e01f0996ddb0f10adec85f0) ### [`intro`](../intro/) -- Synced until commit [0043912](https://github.com/cosmos/cosmos-sdk/commit/0043912548808b4cfd6ab84ec49ba73bd5f65b5b#diff-e518eaec0d99787e6f75682d54751821) +- Synced until commit [0043912](https://github.com/eligion/cosmos-sdk/commit/0043912548808b4cfd6ab84ec49ba73bd5f65b5b#diff-e518eaec0d99787e6f75682d54751821) ### [`modules`](../modules/) -- Synced until commit [78a2135](https://github.com/cosmos/cosmos-sdk/commit/78a21353da978d6c2a9b711f29b3874ff9ca14ae#diff-449cc65858e8929d15f4a170950e7758) +- Synced until commit [78a2135](https://github.com/eligion/cosmos-sdk/commit/78a21353da978d6c2a9b711f29b3874ff9ca14ae#diff-449cc65858e8929d15f4a170950e7758) ### [`clients`](../clients/) -- Synced until Commit [857a65d](https://github.com/cosmos/cosmos-sdk/commit/857a65dc610cd736a47980b5d4778e5123206a3d#diff-93dd988c16d20a1bce170b86ad89425a) +- Synced until Commit [857a65d](https://github.com/eligion/cosmos-sdk/commit/857a65dc610cd736a47980b5d4778e5123206a3d#diff-93dd988c16d20a1bce170b86ad89425a) diff --git a/docs/kr/modules/README.md b/docs/kr/modules/README.md index 45f73e36932d..7f5e40454628 100755 --- a/docs/kr/modules/README.md +++ b/docs/kr/modules/README.md @@ -2,36 +2,36 @@ `x/bank` 모듈은 계정 간 코인을 이동할때 사용됩니다. -[API 문서](https://godoc.org/github.com/cosmos/cosmos-sdk/x/bank)를 확인하세요. +[API 문서](https://godoc.org/github.com/eligion/cosmos-sdk/x/bank)를 확인하세요. # Stake `x/staking` 모듈은 코스모스 위임형 지분증명(Delegated-Proof-of-Stake) 시스템에서 사용됩니다. -[API 문서](https://godoc.org/github.com/cosmos/cosmos-sdk/x/staking)를 확인하세요. +[API 문서](https://godoc.org/github.com/eligion/cosmos-sdk/x/staking)를 확인하세요. -관련 스펙은 [여기](https://github.com/cosmos/cosmos-sdk/tree/master/docs/spec/staking)에서 확인하실 수 있습니다. +관련 스펙은 [여기](https://github.com/eligion/cosmos-sdk/tree/master/docs/spec/staking)에서 확인하실 수 있습니다. # Slashing `x/slashing` 모듈은 코스모스 위임형 지분증명(Delegated-Proof-of-Stake) 시스템에서 사용됩니다. -[API 문서](https://godoc.org/github.com/cosmos/cosmos-sdk/x/slashing)를 확인하세요. +[API 문서](https://godoc.org/github.com/eligion/cosmos-sdk/x/slashing)를 확인하세요. -관련 스펙은 [여기](https://github.com/cosmos/cosmos-sdk/tree/master/docs/spec/slashing)에서 확인하실 수 있습니다. +관련 스펙은 [여기](https://github.com/eligion/cosmos-sdk/tree/master/docs/spec/slashing)에서 확인하실 수 있습니다. # Provisions `x/provisions` 모듈은 수수료 보상 분배와 스테이킹 인플레이션을 조정할때 사용됩니다. -[API 문서](https://godoc.org/github.com/cosmos/cosmos-sdk/x/distribution)를 확인하세요. +[API 문서](https://godoc.org/github.com/eligion/cosmos-sdk/x/distribution)를 확인하세요. -관련 스펙은 [여기](https://github.com/cosmos/cosmos-sdk/tree/master/docs/spec/distribution)에서 확인하실 수 있습니다. +관련 스펙은 [여기](https://github.com/eligion/cosmos-sdk/tree/master/docs/spec/distribution)에서 확인하실 수 있습니다. # Governance `x/gov` 모듈은 본딩한 토큰 보유자들이 프로포절을 만들고 투표를 진행할때 사용됩니다. -[API 문서](https://godoc.org/github.com/cosmos/cosmos-sdk/x/gov)를 확인하세요. +[API 문서](https://godoc.org/github.com/eligion/cosmos-sdk/x/gov)를 확인하세요. -관렉 스펙은 [여기](https://github.com/cosmos/cosmos-sdk/tree/master/docs/spec/governance)에서 확인하실 수 있습니다. +관렉 스펙은 [여기](https://github.com/eligion/cosmos-sdk/tree/master/docs/spec/governance)에서 확인하실 수 있습니다. diff --git a/docs/migrations/README.md b/docs/migrations/README.md index 4b9f85863479..e530373faa70 100644 --- a/docs/migrations/README.md +++ b/docs/migrations/README.md @@ -9,5 +9,5 @@ parent: This document contains all the migration guides to update your app and modules to the current Cosmos SDK. 1. [Chain Upgrade Guide to v0.44](./chain-upgrade-guide-044.md) -1. Chain Upgrade Guide to v0.45: no migration is required. See [Release Notes](https://github.com/cosmos/cosmos-sdk/blob/v0.45.0/RELEASE_NOTES.md) and [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.45.0/CHANGELOG.md) for the list of API and State Machine breaking changes. +1. Chain Upgrade Guide to v0.45: no migration is required. See [Release Notes](https://github.com/eligion/cosmos-sdk/blob/v0.45.0/RELEASE_NOTES.md) and [changelog](https://github.com/eligion/cosmos-sdk/blob/v0.45.0/CHANGELOG.md) for the list of API and State Machine breaking changes. 1. [REST Endpoints Migration](./rest.md) diff --git a/docs/migrations/chain-upgrade-guide-044.md b/docs/migrations/chain-upgrade-guide-044.md index f7ed5dc53aac..3d9ee77954e7 100644 --- a/docs/migrations/chain-upgrade-guide-044.md +++ b/docs/migrations/chain-upgrade-guide-044.md @@ -38,7 +38,7 @@ Validators can use the auto-restart option to prevent unecessary downtime during ## Migrating app.toml -With the update to `v0.44`, new server configuration options have been added to `app.toml`. The updates include new configuration sections for Rosetta and gRPC Web as well as a new configuration option for State Sync. Check out the default [`app.toml`](https://github.com/cosmos/cosmos-sdk/blob/release/v0.44.x/server/config/toml.go) file in the latest version of `v0.44` for more information. +With the update to `v0.44`, new server configuration options have been added to `app.toml`. The updates include new configuration sections for Rosetta and gRPC Web as well as a new configuration option for State Sync. Check out the default [`app.toml`](https://github.com/eligion/cosmos-sdk/blob/release/v0.44.x/server/config/toml.go) file in the latest version of `v0.44` for more information. ## Example: Simapp Upgrade @@ -113,7 +113,7 @@ Now that our node is initialized and we are ready to start a new `simapp` chain, First, install or update `cosmovisor`: ``` -go get github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor +go get github.com/eligion/cosmos-sdk/cosmovisor/cmd/cosmovisor ``` Set the required environment variables: @@ -202,7 +202,7 @@ func (app *SimApp) registerUpgradeHandlers() { Add `storetypes` to imports: ```go - storetypes "github.com/cosmos/cosmos-sdk/store/types" + storetypes "github.com/eligion/cosmos-sdk/store/types" ``` Build the `simd` binary for `v0.44.x` (the upgrade binary): diff --git a/docs/run-node/interact-node.md b/docs/run-node/interact-node.md index 7c29170ec644..bfb022346179 100644 --- a/docs/run-node/interact-node.md +++ b/docs/run-node/interact-node.md @@ -88,7 +88,7 @@ grpcurl \ cosmos.bank.v1beta1.Query/AllBalances ``` -The list of all available gRPC query endpoints is [coming soon](https://github.com/cosmos/cosmos-sdk/issues/7786). +The list of all available gRPC query endpoints is [coming soon](https://github.com/eligion/cosmos-sdk/issues/7786). #### Query for historical state using grpcurl @@ -116,8 +116,8 @@ import ( "google.golang.org/grpc" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx" ) func queryState() error { @@ -149,7 +149,7 @@ func queryState() error { } ``` -You can replace the query client (here we are using `x/bank`'s) with one generated from any other Protobuf service. The list of all available gRPC query endpoints is [coming soon](https://github.com/cosmos/cosmos-sdk/issues/7786). +You can replace the query client (here we are using `x/bank`'s) with one generated from any other Protobuf service. The list of all available gRPC query endpoints is [coming soon](https://github.com/eligion/cosmos-sdk/issues/7786). #### Query for historical state using Go @@ -163,8 +163,8 @@ import ( "google.golang.org/grpc" "google.golang.org/grpc/metadata" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - "github.com/cosmos/cosmos-sdk/types/tx" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/types/tx" ) func queryState() error { diff --git a/docs/run-node/keyring.md b/docs/run-node/keyring.md index 679a730f732a..6351b1a1b8d0 100644 --- a/docs/run-node/keyring.md +++ b/docs/run-node/keyring.md @@ -110,7 +110,7 @@ The `memory` backend stores keys in memory. The keys are immediately deleted aft Make sure you can build your own binary, and replace `simd` with the name of your binary in the snippets. ::: -Applications developed using the Cosmos SDK come with the `keys` subcommand. For the purpose of this tutorial, we're running the `simd` CLI, which is an application built using the Cosmos SDK for testing and educational purposes. For more information, see [`simapp`](https://github.com/cosmos/cosmos-sdk/tree/v0.40.0-rc3/simapp). +Applications developed using the Cosmos SDK come with the `keys` subcommand. For the purpose of this tutorial, we're running the `simd` CLI, which is an application built using the Cosmos SDK for testing and educational purposes. For more information, see [`simapp`](https://github.com/eligion/cosmos-sdk/tree/v0.40.0-rc3/simapp). You can use `simd keys` for help about the keys command and `simd keys [command] --help` for more information about a particular subcommand. diff --git a/docs/run-node/rosetta.md b/docs/run-node/rosetta.md index 49f64866568c..2667a0e1cdfd 100644 --- a/docs/run-node/rosetta.md +++ b/docs/run-node/rosetta.md @@ -11,7 +11,7 @@ To enable Rosetta API support, it's required to add the `RosettaCommand` to your Import the `server` package: ```go - "github.com/cosmos/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/server" ``` Find the following line: @@ -74,7 +74,7 @@ import ( "context" "github.com/coinbase/rosetta-sdk-go/types" -"github.com/cosmos/cosmos-sdk/server/rosetta/lib" +"github.com/eligion/cosmos-sdk/server/rosetta/lib" ) // CustomClient embeds the standard cosmos client @@ -98,7 +98,7 @@ Example: ```go package custom_errors -import crgerrs "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" +import crgerrs "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" var customErrRetriable = true var CustomError = crgerrs.RegisterError(100, "custom message", customErrRetriable, "description") @@ -116,7 +116,7 @@ Example: package app import ( -"github.com/cosmos/cosmos-sdk/server" +"github.com/eligion/cosmos-sdk/server" "github.com/spf13/cobra" ) diff --git a/docs/run-node/run-node.md b/docs/run-node/run-node.md index ae38f67c2e2e..6bef0a7bfff9 100644 --- a/docs/run-node/run-node.md +++ b/docs/run-node/run-node.md @@ -4,7 +4,7 @@ order: 2 # Running a Node -Now that the application is ready and the keyring populated, it's time to see how to run the blockchain node. In this section, the application we are running is called [`simapp`](https://github.com/cosmos/cosmos-sdk/tree/v0.40.0-rc3/simapp), and its corresponding CLI binary `simd`. {synopsis} +Now that the application is ready and the keyring populated, it's time to see how to run the blockchain node. In this section, the application we are running is called [`simapp`](https://github.com/eligion/cosmos-sdk/tree/v0.40.0-rc3/simapp), and its corresponding CLI binary `simd`. {synopsis} ## Pre-requisite Readings @@ -67,7 +67,7 @@ Now that you have created a local account, go ahead and grant it some `stake` to simd add-genesis-account $MY_VALIDATOR_ADDRESS 100000000000stake ``` -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. `atom` or `uatom`). Here, we are granting `stake` tokens, as `stake` is the token identifier used for staking in [`simapp`](https://github.com/cosmos/cosmos-sdk/tree/v0.40.0-rc3/simapp). For your own chain with its own staking denom, that token identifier should be used instead. +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. `atom` or `uatom`). Here, we are granting `stake` tokens, as `stake` is the token identifier used for staking in [`simapp`](https://github.com/eligion/cosmos-sdk/tree/v0.40.0-rc3/simapp). For your own chain with its own staking denom, that token identifier should be used instead. Now that your account has some tokens, you need to add a validator to your chain. Validators are special full-nodes that participate in the consensus process (implemented in the [underlying consensus engine](../intro/sdk-app-architecture.md#tendermint)) in order to add new blocks to the chain. Any account can declare its intention to become a validator operator, but only those with sufficient delegation get to enter the active set (for example, only the top 125 validator candidates with the most delegation get to be validators in the Cosmos Hub). For this guide, you will add your local node (created via the `init` command above) as a validator of your chain. Validators can be declared before a chain is first started via a special transaction included in the genesis file called a `gentx`: @@ -121,7 +121,7 @@ You should see blocks come in. The previous command allow you to run a single node. This is enough for the next section on interacting with this node, but you may wish to run multiple nodes at the same time, and see how consensus happens between them. -The naive way would be to run the same commands again in separate terminal windows. This is possible, however in the SDK, we leverage the power of [Docker Compose](https://docs.docker.com/compose/) to run a localnet. If you need inspiration on how to set up your own localnet with Docker Compose, you can have a look at the SDK's [`docker-compose.yml`](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc3/docker-compose.yml). +The naive way would be to run the same commands again in separate terminal windows. This is possible, however in the SDK, we leverage the power of [Docker Compose](https://docs.docker.com/compose/) to run a localnet. If you need inspiration on how to set up your own localnet with Docker Compose, you can have a look at the SDK's [`docker-compose.yml`](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc3/docker-compose.yml). ## Next {hide} diff --git a/docs/run-node/txs.md b/docs/run-node/txs.md index 85e0488e74eb..508a01cfdf5b 100644 --- a/docs/run-node/txs.md +++ b/docs/run-node/txs.md @@ -52,7 +52,7 @@ Some useful flags to consider in the `tx sign` command: #### Signing with Multiple Signers ::: warning -Please note that signing a transaction with multiple signers or with a multisig account, where at least one signer uses `SIGN_MODE_DIRECT`, is not yet possible. You may follow [this Github issue](https://github.com/cosmos/cosmos-sdk/issues/8141) for more info. +Please note that signing a transaction with multiple signers or with a multisig account, where at least one signer uses `SIGN_MODE_DIRECT`, is not yet possible. You may follow [this Github issue](https://github.com/eligion/cosmos-sdk/issues/8141) for more info. ::: Signing with multiple signers is done with the `tx multisign` command. This command assumes that all signers use `SIGN_MODE_LEGACY_AMINO_JSON`. The flow is similar to the `tx sign` command flow, but instead of signing an unsigned transaction file, each signer signs the file signed by previous signer(s). The `tx multisign` command will append signatures to the existing transactions. It is important that signers sign the transaction **in the same order** as given by the transaction, which is retrievable using the `GetSigners()` method. @@ -93,7 +93,7 @@ Before generating a transaction, a new instance of a `TxBuilder` needs to be cre ```go import ( - "github.com/cosmos/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp" ) func sendTx() error { @@ -112,7 +112,7 @@ We can also set up some keys and addresses that will send and receive the transa ```go import ( - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) priv1, _, addr1 := testdata.KeyTestPubAddr() @@ -120,11 +120,11 @@ priv2, _, addr2 := testdata.KeyTestPubAddr() priv3, _, addr3 := testdata.KeyTestPubAddr() ``` -Populating the `TxBuilder` can be done via its [methods](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/client/tx_config.go#L32-L45): +Populating the `TxBuilder` can be done via its [methods](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/client/tx_config.go#L32-L45): ```go import ( - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) func sendTx() error { @@ -153,7 +153,7 @@ At this point, `TxBuilder`'s underlying transaction is ready to be signed. ### Signing a Transaction -We set encoding config to use Protobuf, which will use `SIGN_MODE_DIRECT` by default. As per [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc6/docs/architecture/adr-020-protobuf-transaction-encoding.md), each signer needs to sign the `SignerInfo`s of all other signers. This means that we need to perform two steps sequentially: +We set encoding config to use Protobuf, which will use `SIGN_MODE_DIRECT` by default. As per [ADR-020](https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc6/docs/architecture/adr-020-protobuf-transaction-encoding.md), each signer needs to sign the `SignerInfo`s of all other signers. This means that we need to perform two steps sequentially: - for each signer, populate the signer's `SignerInfo` inside `TxBuilder`, - once all `SignerInfo`s are populated, for each signer, sign the `SignDoc` (the payload to be signed). @@ -162,9 +162,9 @@ In the current `TxBuilder`'s API, both steps are done using the same method: `Se ```go import ( - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - xauthsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" + xauthsigning "github.com/eligion/cosmos-sdk/x/auth/signing" ) func sendTx() error { @@ -250,7 +250,7 @@ import ( "google.golang.org/grpc" - "github.com/cosmos/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx" ) func sendTx(ctx context.Context) error { @@ -294,9 +294,9 @@ import ( "fmt" "testing" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/types/tx" - authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/types/tx" + authtx "github.com/eligion/cosmos-sdk/x/auth/tx" ) func simulateTx() error { diff --git a/go.mod b/go.mod index e76278cd39f9..44fa92084511 100644 --- a/go.mod +++ b/go.mod @@ -64,5 +64,5 @@ replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alp replace github.com/99designs/keyring => github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76 // Fix upstream GHSA-h395-qcrw-5vmq vulnerability. -// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 +// TODO Remove it: https://github.com/eligion/cosmos-sdk/issues/10409 replace github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 diff --git a/proto/cosmos/auth/v1beta1/auth.proto b/proto/cosmos/auth/v1beta1/auth.proto index 72e1d9ec285b..bd258121b01d 100644 --- a/proto/cosmos/auth/v1beta1/auth.proto +++ b/proto/cosmos/auth/v1beta1/auth.proto @@ -5,7 +5,7 @@ import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/auth/types"; // BaseAccount defines a base account type. It contains all the necessary fields // for basic account functionality. Any custom account type should extend this diff --git a/proto/cosmos/auth/v1beta1/genesis.proto b/proto/cosmos/auth/v1beta1/genesis.proto index c88b94ee4ece..9ab4f5ce149a 100644 --- a/proto/cosmos/auth/v1beta1/genesis.proto +++ b/proto/cosmos/auth/v1beta1/genesis.proto @@ -5,7 +5,7 @@ import "google/protobuf/any.proto"; import "gogoproto/gogo.proto"; import "cosmos/auth/v1beta1/auth.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/auth/types"; // GenesisState defines the auth module's genesis state. message GenesisState { diff --git a/proto/cosmos/auth/v1beta1/query.proto b/proto/cosmos/auth/v1beta1/query.proto index 4d9759cada6b..6fe2cf868824 100644 --- a/proto/cosmos/auth/v1beta1/query.proto +++ b/proto/cosmos/auth/v1beta1/query.proto @@ -8,7 +8,7 @@ import "google/api/annotations.proto"; import "cosmos/auth/v1beta1/auth.proto"; import "cosmos_proto/cosmos.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/auth/types"; // Query defines the gRPC querier service. service Query { diff --git a/proto/cosmos/authz/v1beta1/authz.proto b/proto/cosmos/authz/v1beta1/authz.proto index 2c376905eb8b..21dad7aa6079 100644 --- a/proto/cosmos/authz/v1beta1/authz.proto +++ b/proto/cosmos/authz/v1beta1/authz.proto @@ -7,7 +7,7 @@ import "google/protobuf/timestamp.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/authz"; +option go_package = "github.com/eligion/cosmos-sdk/x/authz"; option (gogoproto.goproto_getters_all) = false; // GenericAuthorization gives the grantee unrestricted permissions to execute diff --git a/proto/cosmos/authz/v1beta1/event.proto b/proto/cosmos/authz/v1beta1/event.proto index 7a3cf7c8cf04..2d3c55518c49 100644 --- a/proto/cosmos/authz/v1beta1/event.proto +++ b/proto/cosmos/authz/v1beta1/event.proto @@ -2,7 +2,7 @@ syntax = "proto3"; package cosmos.authz.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/authz"; +option go_package = "github.com/eligion/cosmos-sdk/x/authz"; // EventGrant is emitted on Msg/Grant message EventGrant { diff --git a/proto/cosmos/authz/v1beta1/genesis.proto b/proto/cosmos/authz/v1beta1/genesis.proto index ea898694456a..82e15009479d 100644 --- a/proto/cosmos/authz/v1beta1/genesis.proto +++ b/proto/cosmos/authz/v1beta1/genesis.proto @@ -7,7 +7,7 @@ import "google/protobuf/any.proto"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/authz"; +option go_package = "github.com/eligion/cosmos-sdk/x/authz"; // GenesisState defines the authz module's genesis state. message GenesisState { diff --git a/proto/cosmos/authz/v1beta1/query.proto b/proto/cosmos/authz/v1beta1/query.proto index 428210de01e7..9063d3652202 100644 --- a/proto/cosmos/authz/v1beta1/query.proto +++ b/proto/cosmos/authz/v1beta1/query.proto @@ -6,7 +6,7 @@ import "google/api/annotations.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "cosmos/authz/v1beta1/authz.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/authz"; +option go_package = "github.com/eligion/cosmos-sdk/x/authz"; // Query defines the gRPC querier service. service Query { diff --git a/proto/cosmos/authz/v1beta1/tx.proto b/proto/cosmos/authz/v1beta1/tx.proto index 457f0d662aa3..fccbd68f28d6 100644 --- a/proto/cosmos/authz/v1beta1/tx.proto +++ b/proto/cosmos/authz/v1beta1/tx.proto @@ -9,7 +9,7 @@ import "google/protobuf/any.proto"; import "cosmos/base/abci/v1beta1/abci.proto"; import "cosmos/authz/v1beta1/authz.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/authz"; +option go_package = "github.com/eligion/cosmos-sdk/x/authz"; option (gogoproto.goproto_getters_all) = false; // Msg defines the authz Msg service. diff --git a/proto/cosmos/bank/v1beta1/authz.proto b/proto/cosmos/bank/v1beta1/authz.proto index 4f58b15e4970..ca5a75c98b32 100644 --- a/proto/cosmos/bank/v1beta1/authz.proto +++ b/proto/cosmos/bank/v1beta1/authz.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/bank/types"; // SendAuthorization allows the grantee to spend up to spend_limit coins from // the granter's account. @@ -15,5 +15,5 @@ message SendAuthorization { option (cosmos_proto.implements_interface) = "Authorization"; repeated cosmos.base.v1beta1.Coin spend_limit = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; } diff --git a/proto/cosmos/bank/v1beta1/bank.proto b/proto/cosmos/bank/v1beta1/bank.proto index df91008df648..08853c2cc0ea 100644 --- a/proto/cosmos/bank/v1beta1/bank.proto +++ b/proto/cosmos/bank/v1beta1/bank.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/bank/types"; // Params defines the parameters for the bank module. message Params { @@ -30,7 +30,7 @@ message Input { string address = 1; repeated cosmos.base.v1beta1.Coin coins = 2 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; } // Output models transaction outputs. @@ -40,7 +40,7 @@ message Output { string address = 1; repeated cosmos.base.v1beta1.Coin coins = 2 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; } // Supply represents a struct that passively keeps track of the total supply @@ -52,10 +52,10 @@ message Supply { option (gogoproto.equal) = true; option (gogoproto.goproto_getters) = false; - option (cosmos_proto.implements_interface) = "*github.com/cosmos/cosmos-sdk/x/bank/legacy/v040.SupplyI"; + option (cosmos_proto.implements_interface) = "*github.com/eligion/cosmos-sdk/x/bank/legacy/v040.SupplyI"; repeated cosmos.base.v1beta1.Coin total = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; } // DenomUnit represents a struct that describes a given diff --git a/proto/cosmos/bank/v1beta1/genesis.proto b/proto/cosmos/bank/v1beta1/genesis.proto index 8fd7329a0a5d..70618af767f3 100644 --- a/proto/cosmos/bank/v1beta1/genesis.proto +++ b/proto/cosmos/bank/v1beta1/genesis.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/bank/v1beta1/bank.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/bank/types"; // GenesisState defines the bank module's genesis state. message GenesisState { @@ -18,7 +18,7 @@ message GenesisState { // supply represents the total supply. If it is left empty, then supply will be calculated based on the provided // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. repeated cosmos.base.v1beta1.Coin supply = 3 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; + [(gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; // denom_metadata defines the metadata of the differents coins. repeated Metadata denom_metadata = 4 [(gogoproto.moretags) = "yaml:\"denom_metadata\"", (gogoproto.nullable) = false]; @@ -35,5 +35,5 @@ message Balance { // coins defines the different coins this balance holds. repeated cosmos.base.v1beta1.Coin coins = 2 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; + [(gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins", (gogoproto.nullable) = false]; } diff --git a/proto/cosmos/bank/v1beta1/query.proto b/proto/cosmos/bank/v1beta1/query.proto index 520ba0696412..228240769d5d 100644 --- a/proto/cosmos/bank/v1beta1/query.proto +++ b/proto/cosmos/bank/v1beta1/query.proto @@ -7,7 +7,7 @@ import "google/api/annotations.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/bank/v1beta1/bank.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/bank/types"; // Query defines the gRPC querier service. service Query { @@ -82,7 +82,7 @@ message QueryAllBalancesRequest { message QueryAllBalancesResponse { // balances is the balances of all the coins. repeated cosmos.base.v1beta1.Coin balances = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; // pagination defines the pagination in the response. cosmos.base.query.v1beta1.PageResponse pagination = 2; @@ -105,7 +105,7 @@ message QueryTotalSupplyRequest { message QueryTotalSupplyResponse { // supply is the supply of the coins repeated cosmos.base.v1beta1.Coin supply = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; // pagination defines the pagination in the response. // diff --git a/proto/cosmos/bank/v1beta1/tx.proto b/proto/cosmos/bank/v1beta1/tx.proto index 26b2ab41f4c3..5d35e7fc61a9 100644 --- a/proto/cosmos/bank/v1beta1/tx.proto +++ b/proto/cosmos/bank/v1beta1/tx.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/bank/v1beta1/bank.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/bank/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/bank/types"; // Msg defines the bank Msg service. service Msg { @@ -24,7 +24,7 @@ message MsgSend { string from_address = 1 [(gogoproto.moretags) = "yaml:\"from_address\""]; string to_address = 2 [(gogoproto.moretags) = "yaml:\"to_address\""]; repeated cosmos.base.v1beta1.Coin amount = 3 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; } // MsgSendResponse defines the Msg/Send response type. diff --git a/proto/cosmos/base/abci/v1beta1/abci.proto b/proto/cosmos/base/abci/v1beta1/abci.proto index e24ae7bd5e97..d8547eb5289b 100644 --- a/proto/cosmos/base/abci/v1beta1/abci.proto +++ b/proto/cosmos/base/abci/v1beta1/abci.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "tendermint/abci/types.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/types"; +option go_package = "github.com/eligion/cosmos-sdk/types"; option (gogoproto.goproto_stringer_all) = false; // TxResponse defines a structure containing relevant tx data and metadata. The diff --git a/proto/cosmos/base/kv/v1beta1/kv.proto b/proto/cosmos/base/kv/v1beta1/kv.proto index 4e9b8d285031..d8f371042e86 100644 --- a/proto/cosmos/base/kv/v1beta1/kv.proto +++ b/proto/cosmos/base/kv/v1beta1/kv.proto @@ -3,7 +3,7 @@ package cosmos.base.kv.v1beta1; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/types/kv"; +option go_package = "github.com/eligion/cosmos-sdk/types/kv"; // Pairs defines a repeated slice of Pair objects. message Pairs { diff --git a/proto/cosmos/base/query/v1beta1/pagination.proto b/proto/cosmos/base/query/v1beta1/pagination.proto index cd5eb066d399..3a8977125b9b 100644 --- a/proto/cosmos/base/query/v1beta1/pagination.proto +++ b/proto/cosmos/base/query/v1beta1/pagination.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.base.query.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/types/query"; +option go_package = "github.com/eligion/cosmos-sdk/types/query"; // PageRequest is to be embedded in gRPC request messages for efficient // pagination. Ex: diff --git a/proto/cosmos/base/reflection/v1beta1/reflection.proto b/proto/cosmos/base/reflection/v1beta1/reflection.proto index 22670e72b883..79145ee05c15 100644 --- a/proto/cosmos/base/reflection/v1beta1/reflection.proto +++ b/proto/cosmos/base/reflection/v1beta1/reflection.proto @@ -3,7 +3,7 @@ package cosmos.base.reflection.v1beta1; import "google/api/annotations.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/reflection"; +option go_package = "github.com/eligion/cosmos-sdk/client/grpc/reflection"; // ReflectionService defines a service for interface reflection. service ReflectionService { diff --git a/proto/cosmos/base/reflection/v2alpha1/reflection.proto b/proto/cosmos/base/reflection/v2alpha1/reflection.proto index d5b048558fa0..d85e4890e543 100644 --- a/proto/cosmos/base/reflection/v2alpha1/reflection.proto +++ b/proto/cosmos/base/reflection/v2alpha1/reflection.proto @@ -4,7 +4,7 @@ package cosmos.base.reflection.v2alpha1; import "google/api/annotations.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/server/grpc/reflection/v2alpha1"; +option go_package = "github.com/eligion/cosmos-sdk/server/grpc/reflection/v2alpha1"; // AppDescriptor describes a cosmos-sdk based application message AppDescriptor { diff --git a/proto/cosmos/base/snapshots/v1beta1/snapshot.proto b/proto/cosmos/base/snapshots/v1beta1/snapshot.proto index 9ac5a7c31be4..013feb705ee4 100644 --- a/proto/cosmos/base/snapshots/v1beta1/snapshot.proto +++ b/proto/cosmos/base/snapshots/v1beta1/snapshot.proto @@ -3,7 +3,7 @@ package cosmos.base.snapshots.v1beta1; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/snapshots/types"; +option go_package = "github.com/eligion/cosmos-sdk/snapshots/types"; // Snapshot contains Tendermint state sync snapshot info. message Snapshot { diff --git a/proto/cosmos/base/store/v1beta1/commit_info.proto b/proto/cosmos/base/store/v1beta1/commit_info.proto index 98a33d30e754..bbece0bbefca 100644 --- a/proto/cosmos/base/store/v1beta1/commit_info.proto +++ b/proto/cosmos/base/store/v1beta1/commit_info.proto @@ -3,7 +3,7 @@ package cosmos.base.store.v1beta1; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/store/types"; +option go_package = "github.com/eligion/cosmos-sdk/store/types"; // CommitInfo defines commit information used by the multi-store when committing // a version/height. diff --git a/proto/cosmos/base/store/v1beta1/listening.proto b/proto/cosmos/base/store/v1beta1/listening.proto index 359997109c10..82681e1a9119 100644 --- a/proto/cosmos/base/store/v1beta1/listening.proto +++ b/proto/cosmos/base/store/v1beta1/listening.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.base.store.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/store/types"; +option go_package = "github.com/eligion/cosmos-sdk/store/types"; // StoreKVPair is a KVStore KVPair used for listening to state changes (Sets and Deletes) // It optionally includes the StoreKey for the originating KVStore and a Boolean flag to distinguish between Sets and diff --git a/proto/cosmos/base/store/v1beta1/snapshot.proto b/proto/cosmos/base/store/v1beta1/snapshot.proto index 834855093b24..ff931e4aef9c 100644 --- a/proto/cosmos/base/store/v1beta1/snapshot.proto +++ b/proto/cosmos/base/store/v1beta1/snapshot.proto @@ -3,7 +3,7 @@ package cosmos.base.store.v1beta1; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/store/types"; +option go_package = "github.com/eligion/cosmos-sdk/store/types"; // SnapshotItem is an item contained in a rootmulti.Store snapshot. message SnapshotItem { diff --git a/proto/cosmos/base/tendermint/v1beta1/query.proto b/proto/cosmos/base/tendermint/v1beta1/query.proto index 3c31877aa0ce..ea270951395d 100644 --- a/proto/cosmos/base/tendermint/v1beta1/query.proto +++ b/proto/cosmos/base/tendermint/v1beta1/query.proto @@ -9,7 +9,7 @@ import "tendermint/types/block.proto"; import "tendermint/types/types.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/client/grpc/tmservice"; +option go_package = "github.com/eligion/cosmos-sdk/client/grpc/tmservice"; // Service defines the gRPC querier service for tendermint queries. service Service { diff --git a/proto/cosmos/base/v1beta1/coin.proto b/proto/cosmos/base/v1beta1/coin.proto index fab75284b7f6..609d298601ad 100644 --- a/proto/cosmos/base/v1beta1/coin.proto +++ b/proto/cosmos/base/v1beta1/coin.proto @@ -3,7 +3,7 @@ package cosmos.base.v1beta1; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/types"; +option go_package = "github.com/eligion/cosmos-sdk/types"; option (gogoproto.goproto_stringer_all) = false; option (gogoproto.stringer_all) = false; diff --git a/proto/cosmos/capability/v1beta1/capability.proto b/proto/cosmos/capability/v1beta1/capability.proto index 1c8332f34163..cae3c5375285 100644 --- a/proto/cosmos/capability/v1beta1/capability.proto +++ b/proto/cosmos/capability/v1beta1/capability.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.capability.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/capability/types"; import "gogoproto/gogo.proto"; diff --git a/proto/cosmos/capability/v1beta1/genesis.proto b/proto/cosmos/capability/v1beta1/genesis.proto index 05bb0afc4a1f..6234beb65fa1 100644 --- a/proto/cosmos/capability/v1beta1/genesis.proto +++ b/proto/cosmos/capability/v1beta1/genesis.proto @@ -4,7 +4,7 @@ package cosmos.capability.v1beta1; import "gogoproto/gogo.proto"; import "cosmos/capability/v1beta1/capability.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/capability/types"; // GenesisOwners defines the capability owners with their corresponding index. message GenesisOwners { diff --git a/proto/cosmos/crisis/v1beta1/genesis.proto b/proto/cosmos/crisis/v1beta1/genesis.proto index 5b0ff7ec72a0..1500c3642f12 100644 --- a/proto/cosmos/crisis/v1beta1/genesis.proto +++ b/proto/cosmos/crisis/v1beta1/genesis.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.crisis.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/crisis/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/crisis/types"; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; diff --git a/proto/cosmos/crisis/v1beta1/tx.proto b/proto/cosmos/crisis/v1beta1/tx.proto index 26457ad6d52a..6e3e7f4a0512 100644 --- a/proto/cosmos/crisis/v1beta1/tx.proto +++ b/proto/cosmos/crisis/v1beta1/tx.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.crisis.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/crisis/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/crisis/types"; import "gogoproto/gogo.proto"; diff --git a/proto/cosmos/crypto/ed25519/keys.proto b/proto/cosmos/crypto/ed25519/keys.proto index 6ffec3448370..2112fa201702 100644 --- a/proto/cosmos/crypto/ed25519/keys.proto +++ b/proto/cosmos/crypto/ed25519/keys.proto @@ -3,7 +3,7 @@ package cosmos.crypto.ed25519; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519"; +option go_package = "github.com/eligion/cosmos-sdk/crypto/keys/ed25519"; // PubKey is an ed25519 public key for handling Tendermint keys in SDK. // It's needed for Any serialization and SDK compatibility. diff --git a/proto/cosmos/crypto/multisig/keys.proto b/proto/cosmos/crypto/multisig/keys.proto index f8398e8052ac..60e0aa653d65 100644 --- a/proto/cosmos/crypto/multisig/keys.proto +++ b/proto/cosmos/crypto/multisig/keys.proto @@ -4,7 +4,7 @@ package cosmos.crypto.multisig; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/multisig"; +option go_package = "github.com/eligion/cosmos-sdk/crypto/keys/multisig"; // LegacyAminoPubKey specifies a public key type // which nests multiple public keys and a threshold, diff --git a/proto/cosmos/crypto/multisig/v1beta1/multisig.proto b/proto/cosmos/crypto/multisig/v1beta1/multisig.proto index bf671f171143..9667a0ea7057 100644 --- a/proto/cosmos/crypto/multisig/v1beta1/multisig.proto +++ b/proto/cosmos/crypto/multisig/v1beta1/multisig.proto @@ -3,7 +3,7 @@ package cosmos.crypto.multisig.v1beta1; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/crypto/types"; +option go_package = "github.com/eligion/cosmos-sdk/crypto/types"; // MultiSignature wraps the signatures from a multisig.LegacyAminoPubKey. // See cosmos.tx.v1betata1.ModeInfo.Multi for how to specify which signers diff --git a/proto/cosmos/crypto/secp256k1/keys.proto b/proto/cosmos/crypto/secp256k1/keys.proto index a22725713a59..6e09b0c5913b 100644 --- a/proto/cosmos/crypto/secp256k1/keys.proto +++ b/proto/cosmos/crypto/secp256k1/keys.proto @@ -3,7 +3,7 @@ package cosmos.crypto.secp256k1; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"; +option go_package = "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1"; // PubKey defines a secp256k1 public key // Key is the compressed form of the pubkey. The first byte depends is a 0x02 byte diff --git a/proto/cosmos/crypto/secp256r1/keys.proto b/proto/cosmos/crypto/secp256r1/keys.proto index 2e96c6e3c65e..8dd62f381242 100644 --- a/proto/cosmos/crypto/secp256r1/keys.proto +++ b/proto/cosmos/crypto/secp256r1/keys.proto @@ -4,7 +4,7 @@ package cosmos.crypto.secp256r1; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1"; +option go_package = "github.com/eligion/cosmos-sdk/crypto/keys/secp256r1"; option (gogoproto.messagename_all) = true; option (gogoproto.goproto_stringer_all) = false; option (gogoproto.goproto_getters_all) = false; diff --git a/proto/cosmos/distribution/v1beta1/distribution.proto b/proto/cosmos/distribution/v1beta1/distribution.proto index ae98ec0b98f2..ee8ce90052a8 100644 --- a/proto/cosmos/distribution/v1beta1/distribution.proto +++ b/proto/cosmos/distribution/v1beta1/distribution.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.distribution.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/distribution/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; @@ -12,17 +12,17 @@ message Params { option (gogoproto.goproto_stringer) = false; string community_tax = 1 [ (gogoproto.moretags) = "yaml:\"community_tax\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; string base_proposer_reward = 2 [ (gogoproto.moretags) = "yaml:\"base_proposer_reward\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; string bonus_proposer_reward = 3 [ (gogoproto.moretags) = "yaml:\"bonus_proposer_reward\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; bool withdraw_addr_enabled = 4 [(gogoproto.moretags) = "yaml:\"withdraw_addr_enabled\""]; @@ -43,7 +43,7 @@ message Params { message ValidatorHistoricalRewards { repeated cosmos.base.v1beta1.DecCoin cumulative_reward_ratio = 1 [ (gogoproto.moretags) = "yaml:\"cumulative_reward_ratio\"", - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false ]; uint32 reference_count = 2 [(gogoproto.moretags) = "yaml:\"reference_count\""]; @@ -54,7 +54,7 @@ message ValidatorHistoricalRewards { // each block as long as the validator's tokens remain constant. message ValidatorCurrentRewards { repeated cosmos.base.v1beta1.DecCoin rewards = 1 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; + [(gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; uint64 period = 2; } @@ -62,7 +62,7 @@ message ValidatorCurrentRewards { // for a validator kept as a running counter, can be withdrawn at any time. message ValidatorAccumulatedCommission { repeated cosmos.base.v1beta1.DecCoin commission = 1 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; + [(gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; } // ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards @@ -70,7 +70,7 @@ message ValidatorAccumulatedCommission { message ValidatorOutstandingRewards { repeated cosmos.base.v1beta1.DecCoin rewards = 1 [ (gogoproto.moretags) = "yaml:\"rewards\"", - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false ]; } @@ -81,7 +81,7 @@ message ValidatorOutstandingRewards { // for delegations which are withdrawn after a slash has occurred. message ValidatorSlashEvent { uint64 validator_period = 1 [(gogoproto.moretags) = "yaml:\"validator_period\""]; - string fraction = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string fraction = 2 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } // ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. @@ -95,7 +95,7 @@ message ValidatorSlashEvents { message FeePool { repeated cosmos.base.v1beta1.DecCoin community_pool = 1 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins", (gogoproto.moretags) = "yaml:\"community_pool\"" ]; } @@ -112,7 +112,7 @@ message CommunityPoolSpendProposal { string description = 2; string recipient = 3; repeated cosmos.base.v1beta1.Coin amount = 4 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; } // DelegatorStartingInfo represents the starting info for a delegator reward @@ -125,7 +125,7 @@ message DelegatorStartingInfo { uint64 previous_period = 1 [(gogoproto.moretags) = "yaml:\"previous_period\""]; string stake = 2 [ (gogoproto.moretags) = "yaml:\"stake\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; uint64 height = 3 [(gogoproto.moretags) = "yaml:\"creation_height\"", (gogoproto.jsontag) = "creation_height"]; @@ -140,7 +140,7 @@ message DelegationDelegatorReward { string validator_address = 1 [(gogoproto.moretags) = "yaml:\"validator_address\""]; repeated cosmos.base.v1beta1.DecCoin reward = 2 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; + [(gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; } // CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal diff --git a/proto/cosmos/distribution/v1beta1/genesis.proto b/proto/cosmos/distribution/v1beta1/genesis.proto index c0b17cdf1149..360bde85d3de 100644 --- a/proto/cosmos/distribution/v1beta1/genesis.proto +++ b/proto/cosmos/distribution/v1beta1/genesis.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.distribution.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/distribution/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; @@ -32,7 +32,7 @@ message ValidatorOutstandingRewardsRecord { // outstanding_rewards represents the oustanding rewards of a validator. repeated cosmos.base.v1beta1.DecCoin outstanding_rewards = 2 [ - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"outstanding_rewards\"" ]; diff --git a/proto/cosmos/distribution/v1beta1/query.proto b/proto/cosmos/distribution/v1beta1/query.proto index 2991218d8049..4e711e022710 100644 --- a/proto/cosmos/distribution/v1beta1/query.proto +++ b/proto/cosmos/distribution/v1beta1/query.proto @@ -7,7 +7,7 @@ import "google/api/annotations.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/distribution/v1beta1/distribution.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/distribution/types"; // Query defines the gRPC querier service for distribution module. service Query { @@ -143,7 +143,7 @@ message QueryDelegationRewardsRequest { message QueryDelegationRewardsResponse { // rewards defines the rewards accrued by a delegation. repeated cosmos.base.v1beta1.DecCoin rewards = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins"]; } // QueryDelegationTotalRewardsRequest is the request type for the @@ -162,7 +162,7 @@ message QueryDelegationTotalRewardsResponse { repeated DelegationDelegatorReward rewards = 1 [(gogoproto.nullable) = false]; // total defines the sum of all the rewards. repeated cosmos.base.v1beta1.DecCoin total = 2 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins"]; } // QueryDelegatorValidatorsRequest is the request type for the @@ -214,5 +214,5 @@ message QueryCommunityPoolRequest {} message QueryCommunityPoolResponse { // pool defines community pool's coins. repeated cosmos.base.v1beta1.DecCoin pool = 1 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; + [(gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; } diff --git a/proto/cosmos/distribution/v1beta1/tx.proto b/proto/cosmos/distribution/v1beta1/tx.proto index e6ce478bcdc4..c1abc0579043 100644 --- a/proto/cosmos/distribution/v1beta1/tx.proto +++ b/proto/cosmos/distribution/v1beta1/tx.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.distribution.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/distribution/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/distribution/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; @@ -71,7 +71,7 @@ message MsgFundCommunityPool { option (gogoproto.goproto_getters) = false; repeated cosmos.base.v1beta1.Coin amount = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; string depositor = 2; } diff --git a/proto/cosmos/evidence/v1beta1/evidence.proto b/proto/cosmos/evidence/v1beta1/evidence.proto index 14612c314f01..594f8b790534 100644 --- a/proto/cosmos/evidence/v1beta1/evidence.proto +++ b/proto/cosmos/evidence/v1beta1/evidence.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.evidence.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/evidence/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; diff --git a/proto/cosmos/evidence/v1beta1/genesis.proto b/proto/cosmos/evidence/v1beta1/genesis.proto index 199f446f7e6c..3e7e94229783 100644 --- a/proto/cosmos/evidence/v1beta1/genesis.proto +++ b/proto/cosmos/evidence/v1beta1/genesis.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.evidence.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/evidence/types"; import "google/protobuf/any.proto"; diff --git a/proto/cosmos/evidence/v1beta1/query.proto b/proto/cosmos/evidence/v1beta1/query.proto index eda00544c725..497c087848c1 100644 --- a/proto/cosmos/evidence/v1beta1/query.proto +++ b/proto/cosmos/evidence/v1beta1/query.proto @@ -6,7 +6,7 @@ import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; import "google/api/annotations.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/evidence/types"; // Query defines the gRPC querier service. service Query { diff --git a/proto/cosmos/evidence/v1beta1/tx.proto b/proto/cosmos/evidence/v1beta1/tx.proto index 38795f25d4e3..1fc54e2d1849 100644 --- a/proto/cosmos/evidence/v1beta1/tx.proto +++ b/proto/cosmos/evidence/v1beta1/tx.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.evidence.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/evidence/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/evidence/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; diff --git a/proto/cosmos/feegrant/v1beta1/feegrant.proto b/proto/cosmos/feegrant/v1beta1/feegrant.proto index a86691f912a4..cc41caab94d4 100644 --- a/proto/cosmos/feegrant/v1beta1/feegrant.proto +++ b/proto/cosmos/feegrant/v1beta1/feegrant.proto @@ -9,7 +9,7 @@ import "cosmos/base/v1beta1/coin.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/duration.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/feegrant"; +option go_package = "github.com/eligion/cosmos-sdk/x/feegrant"; // BasicAllowance implements Allowance with a one-time grant of tokens // that optionally expires. The grantee can use up to SpendLimit to cover fees. @@ -20,7 +20,7 @@ message BasicAllowance { // by this allowance and will be updated as tokens are spent. If it is // empty, there is no spend limit and any amount of coins can be spent. repeated cosmos.base.v1beta1.Coin spend_limit = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; // expiration specifies an optional time when this allowance expires google.protobuf.Timestamp expiration = 2 [(gogoproto.stdtime) = true]; @@ -41,11 +41,11 @@ message PeriodicAllowance { // period_spend_limit specifies the maximum number of coins that can be spent // in the period repeated cosmos.base.v1beta1.Coin period_spend_limit = 3 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; // period_can_spend is the number of coins left to be spent before the period_reset time repeated cosmos.base.v1beta1.Coin period_can_spend = 4 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; // period_reset is the time at which this period resets and a new one begins, // it is calculated from the start time of the first transaction after the diff --git a/proto/cosmos/feegrant/v1beta1/genesis.proto b/proto/cosmos/feegrant/v1beta1/genesis.proto index 5b1ac4ca5593..92d9c3168ba6 100644 --- a/proto/cosmos/feegrant/v1beta1/genesis.proto +++ b/proto/cosmos/feegrant/v1beta1/genesis.proto @@ -5,7 +5,7 @@ package cosmos.feegrant.v1beta1; import "gogoproto/gogo.proto"; import "cosmos/feegrant/v1beta1/feegrant.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/feegrant"; +option go_package = "github.com/eligion/cosmos-sdk/x/feegrant"; // GenesisState contains a set of fee allowances, persisted from the store message GenesisState { diff --git a/proto/cosmos/feegrant/v1beta1/query.proto b/proto/cosmos/feegrant/v1beta1/query.proto index 9cf2a4987d17..afede5c7ac64 100644 --- a/proto/cosmos/feegrant/v1beta1/query.proto +++ b/proto/cosmos/feegrant/v1beta1/query.proto @@ -6,7 +6,7 @@ import "cosmos/feegrant/v1beta1/feegrant.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; import "google/api/annotations.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/feegrant"; +option go_package = "github.com/eligion/cosmos-sdk/x/feegrant"; // Query defines the gRPC querier service. service Query { diff --git a/proto/cosmos/feegrant/v1beta1/tx.proto b/proto/cosmos/feegrant/v1beta1/tx.proto index 2d875e922458..aa49d27813af 100644 --- a/proto/cosmos/feegrant/v1beta1/tx.proto +++ b/proto/cosmos/feegrant/v1beta1/tx.proto @@ -6,7 +6,7 @@ import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; import "cosmos_proto/cosmos.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/feegrant"; +option go_package = "github.com/eligion/cosmos-sdk/x/feegrant"; // Msg defines the feegrant msg service. service Msg { diff --git a/proto/cosmos/genutil/v1beta1/genesis.proto b/proto/cosmos/genutil/v1beta1/genesis.proto index a0207793d9fc..a87dda36da6b 100644 --- a/proto/cosmos/genutil/v1beta1/genesis.proto +++ b/proto/cosmos/genutil/v1beta1/genesis.proto @@ -3,7 +3,7 @@ package cosmos.genutil.v1beta1; import "gogoproto/gogo.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/genutil/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/genutil/types"; // GenesisState defines the raw genesis transaction in JSON. message GenesisState { diff --git a/proto/cosmos/gov/v1beta1/genesis.proto b/proto/cosmos/gov/v1beta1/genesis.proto index a999500449fa..e34cb35f044f 100644 --- a/proto/cosmos/gov/v1beta1/genesis.proto +++ b/proto/cosmos/gov/v1beta1/genesis.proto @@ -5,7 +5,7 @@ package cosmos.gov.v1beta1; import "gogoproto/gogo.proto"; import "cosmos/gov/v1beta1/gov.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/gov/types"; // GenesisState defines the gov module's genesis state. message GenesisState { diff --git a/proto/cosmos/gov/v1beta1/gov.proto b/proto/cosmos/gov/v1beta1/gov.proto index 344b5ada19a5..6820e9850f0e 100644 --- a/proto/cosmos/gov/v1beta1/gov.proto +++ b/proto/cosmos/gov/v1beta1/gov.proto @@ -8,7 +8,7 @@ import "google/protobuf/timestamp.proto"; import "google/protobuf/any.proto"; import "google/protobuf/duration.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/gov/types"; option (gogoproto.goproto_stringer_all) = false; option (gogoproto.stringer_all) = false; option (gogoproto.goproto_getters_all) = false; @@ -35,7 +35,7 @@ enum VoteOption { message WeightedVoteOption { VoteOption option = 1; string weight = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"weight\"" ]; @@ -61,7 +61,7 @@ message Deposit { uint64 proposal_id = 1 [(gogoproto.moretags) = "yaml:\"proposal_id\""]; string depositor = 2; repeated cosmos.base.v1beta1.Coin amount = 3 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; } // Proposal defines the core field members of a governance proposal. @@ -79,7 +79,7 @@ message Proposal { [(gogoproto.stdtime) = true, (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"deposit_end_time\""]; repeated cosmos.base.v1beta1.Coin total_deposit = 7 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"total_deposit\"" ]; google.protobuf.Timestamp voting_start_time = 8 @@ -115,11 +115,11 @@ enum ProposalStatus { message TallyResult { option (gogoproto.equal) = true; - string yes = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; - string abstain = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; - string no = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string yes = 1 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string abstain = 2 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string no = 3 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; string no_with_veto = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"no_with_veto\"" ]; @@ -146,7 +146,7 @@ message DepositParams { // Minimum deposit for a proposal to enter voting period. repeated cosmos.base.v1beta1.Coin min_deposit = 1 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"min_deposit\"", (gogoproto.jsontag) = "min_deposit,omitempty" ]; @@ -177,14 +177,14 @@ message TallyParams { // Minimum percentage of total stake needed to vote for a result to be // considered valid. bytes quorum = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "quorum,omitempty" ]; // Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. bytes threshold = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "threshold,omitempty" ]; @@ -192,7 +192,7 @@ message TallyParams { // Minimum value of Veto votes to Total votes ratio for proposal to be // vetoed. Default value: 1/3. bytes veto_threshold = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.jsontag) = "veto_threshold,omitempty", (gogoproto.moretags) = "yaml:\"veto_threshold\"" diff --git a/proto/cosmos/gov/v1beta1/query.proto b/proto/cosmos/gov/v1beta1/query.proto index da62bdbad16b..a9397f50ac9b 100644 --- a/proto/cosmos/gov/v1beta1/query.proto +++ b/proto/cosmos/gov/v1beta1/query.proto @@ -6,7 +6,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/gov/v1beta1/gov.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/gov/types"; // Query defines the gRPC querier service for gov module service Query { diff --git a/proto/cosmos/gov/v1beta1/tx.proto b/proto/cosmos/gov/v1beta1/tx.proto index 36c0a95d27d5..b89212c90c85 100644 --- a/proto/cosmos/gov/v1beta1/tx.proto +++ b/proto/cosmos/gov/v1beta1/tx.proto @@ -7,7 +7,7 @@ import "cosmos_proto/cosmos.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/gov/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/gov/types"; // Msg defines the bank Msg service. service Msg { @@ -37,7 +37,7 @@ message MsgSubmitProposal { google.protobuf.Any content = 1 [(cosmos_proto.accepts_interface) = "Content"]; repeated cosmos.base.v1beta1.Coin initial_deposit = 2 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"initial_deposit\"" ]; string proposer = 3; @@ -92,7 +92,7 @@ message MsgDeposit { uint64 proposal_id = 1 [(gogoproto.jsontag) = "proposal_id", (gogoproto.moretags) = "yaml:\"proposal_id\""]; string depositor = 2; repeated cosmos.base.v1beta1.Coin amount = 3 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; } // MsgDepositResponse defines the Msg/Deposit response type. diff --git a/proto/cosmos/mint/v1beta1/genesis.proto b/proto/cosmos/mint/v1beta1/genesis.proto index 4e783fb5448a..09d42441f8f0 100644 --- a/proto/cosmos/mint/v1beta1/genesis.proto +++ b/proto/cosmos/mint/v1beta1/genesis.proto @@ -4,7 +4,7 @@ package cosmos.mint.v1beta1; import "gogoproto/gogo.proto"; import "cosmos/mint/v1beta1/mint.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/mint/types"; // GenesisState defines the mint module's genesis state. message GenesisState { diff --git a/proto/cosmos/mint/v1beta1/mint.proto b/proto/cosmos/mint/v1beta1/mint.proto index f94d4ae2e8e9..d82c2de3dbe1 100644 --- a/proto/cosmos/mint/v1beta1/mint.proto +++ b/proto/cosmos/mint/v1beta1/mint.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.mint.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/mint/types"; import "gogoproto/gogo.proto"; @@ -9,11 +9,11 @@ import "gogoproto/gogo.proto"; message Minter { // current annual inflation rate string inflation = 1 - [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // current annual expected provisions string annual_provisions = 2 [ (gogoproto.moretags) = "yaml:\"annual_provisions\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; } @@ -27,25 +27,25 @@ message Params { // maximum annual change in inflation rate string inflation_rate_change = 2 [ (gogoproto.moretags) = "yaml:\"inflation_rate_change\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; // maximum inflation rate string inflation_max = 3 [ (gogoproto.moretags) = "yaml:\"inflation_max\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; // minimum inflation rate string inflation_min = 4 [ (gogoproto.moretags) = "yaml:\"inflation_min\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; // goal of percent bonded atoms string goal_bonded = 5 [ (gogoproto.moretags) = "yaml:\"goal_bonded\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; // expected blocks per year diff --git a/proto/cosmos/mint/v1beta1/query.proto b/proto/cosmos/mint/v1beta1/query.proto index acd341d777d5..cce49bd72958 100644 --- a/proto/cosmos/mint/v1beta1/query.proto +++ b/proto/cosmos/mint/v1beta1/query.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/mint/v1beta1/mint.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/mint/types"; // Query provides defines the gRPC querier service. service Query { @@ -41,7 +41,7 @@ message QueryInflationRequest {} // method. message QueryInflationResponse { // inflation is the current minting inflation value. - bytes inflation = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + bytes inflation = 1 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } // QueryAnnualProvisionsRequest is the request type for the @@ -53,5 +53,5 @@ message QueryAnnualProvisionsRequest {} message QueryAnnualProvisionsResponse { // annual_provisions is the current minting annual provisions value. bytes annual_provisions = 1 - [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } diff --git a/proto/cosmos/params/v1beta1/params.proto b/proto/cosmos/params/v1beta1/params.proto index 5382fd799964..fe9c469b6dd5 100644 --- a/proto/cosmos/params/v1beta1/params.proto +++ b/proto/cosmos/params/v1beta1/params.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.params.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/params/types/proposal"; +option go_package = "github.com/eligion/cosmos-sdk/x/params/types/proposal"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; diff --git a/proto/cosmos/params/v1beta1/query.proto b/proto/cosmos/params/v1beta1/query.proto index 1078e02ae3e6..f01dd983793d 100644 --- a/proto/cosmos/params/v1beta1/query.proto +++ b/proto/cosmos/params/v1beta1/query.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/params/v1beta1/params.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/params/types/proposal"; +option go_package = "github.com/eligion/cosmos-sdk/x/params/types/proposal"; // Query defines the gRPC querier service. service Query { diff --git a/proto/cosmos/slashing/v1beta1/genesis.proto b/proto/cosmos/slashing/v1beta1/genesis.proto index a7aebcfbad6c..ec336d5bc091 100644 --- a/proto/cosmos/slashing/v1beta1/genesis.proto +++ b/proto/cosmos/slashing/v1beta1/genesis.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.slashing.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/slashing/types"; import "gogoproto/gogo.proto"; import "cosmos/slashing/v1beta1/slashing.proto"; diff --git a/proto/cosmos/slashing/v1beta1/query.proto b/proto/cosmos/slashing/v1beta1/query.proto index 869049a0edfd..c40356a66e1e 100644 --- a/proto/cosmos/slashing/v1beta1/query.proto +++ b/proto/cosmos/slashing/v1beta1/query.proto @@ -6,7 +6,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/slashing/v1beta1/slashing.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/slashing/types"; // Query provides defines the gRPC querier service service Query { diff --git a/proto/cosmos/slashing/v1beta1/slashing.proto b/proto/cosmos/slashing/v1beta1/slashing.proto index 882a0fb60cb5..a9bf1cb037b9 100644 --- a/proto/cosmos/slashing/v1beta1/slashing.proto +++ b/proto/cosmos/slashing/v1beta1/slashing.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.slashing.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/slashing/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; @@ -37,7 +37,7 @@ message Params { int64 signed_blocks_window = 1 [(gogoproto.moretags) = "yaml:\"signed_blocks_window\""]; bytes min_signed_per_window = 2 [ (gogoproto.moretags) = "yaml:\"min_signed_per_window\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; google.protobuf.Duration downtime_jail_duration = 3 [ @@ -47,12 +47,12 @@ message Params { ]; bytes slash_fraction_double_sign = 4 [ (gogoproto.moretags) = "yaml:\"slash_fraction_double_sign\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; bytes slash_fraction_downtime = 5 [ (gogoproto.moretags) = "yaml:\"slash_fraction_downtime\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; } diff --git a/proto/cosmos/slashing/v1beta1/tx.proto b/proto/cosmos/slashing/v1beta1/tx.proto index 4d63370ecca8..c82c74940bb7 100644 --- a/proto/cosmos/slashing/v1beta1/tx.proto +++ b/proto/cosmos/slashing/v1beta1/tx.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.slashing.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/slashing/types"; option (gogoproto.equal_all) = true; import "gogoproto/gogo.proto"; diff --git a/proto/cosmos/staking/v1beta1/authz.proto b/proto/cosmos/staking/v1beta1/authz.proto index d50c329c9107..ad432338ff15 100644 --- a/proto/cosmos/staking/v1beta1/authz.proto +++ b/proto/cosmos/staking/v1beta1/authz.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/staking/types"; // StakeAuthorization defines authorization for delegate/undelegate/redelegate. // @@ -15,7 +15,7 @@ message StakeAuthorization { // max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is // empty, there is no spend limit and any amount of coins can be delegated. - cosmos.base.v1beta1.Coin max_tokens = 1 [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin"]; + cosmos.base.v1beta1.Coin max_tokens = 1 [(gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coin"]; // validators is the oneof that represents either allow_list or deny_list oneof validators { // allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's diff --git a/proto/cosmos/staking/v1beta1/genesis.proto b/proto/cosmos/staking/v1beta1/genesis.proto index d1563dbc5470..f621c26d10eb 100644 --- a/proto/cosmos/staking/v1beta1/genesis.proto +++ b/proto/cosmos/staking/v1beta1/genesis.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package cosmos.staking.v1beta1; -option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/staking/types"; import "gogoproto/gogo.proto"; import "cosmos/staking/v1beta1/staking.proto"; @@ -14,7 +14,7 @@ message GenesisState { // last_total_power tracks the total amounts of bonded tokens recorded during // the previous end block. bytes last_total_power = 2 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.moretags) = "yaml:\"last_total_power\"", (gogoproto.nullable) = false ]; diff --git a/proto/cosmos/staking/v1beta1/query.proto b/proto/cosmos/staking/v1beta1/query.proto index 4852c5353584..fdc2c1948eb2 100644 --- a/proto/cosmos/staking/v1beta1/query.proto +++ b/proto/cosmos/staking/v1beta1/query.proto @@ -6,7 +6,7 @@ import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; import "cosmos/staking/v1beta1/staking.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/staking/types"; // Query defines the gRPC querier service. service Query { diff --git a/proto/cosmos/staking/v1beta1/staking.proto b/proto/cosmos/staking/v1beta1/staking.proto index 76e9599e2d35..fff5f587c802 100644 --- a/proto/cosmos/staking/v1beta1/staking.proto +++ b/proto/cosmos/staking/v1beta1/staking.proto @@ -10,7 +10,7 @@ import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; import "tendermint/types/types.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/staking/types"; // HistoricalInfo contains header and validator information for a given block. // It is stored as part of staking module's state, which persists the `n` most @@ -28,17 +28,17 @@ message CommissionRates { option (gogoproto.goproto_stringer) = false; // rate is the commission rate charged to delegators, as a fraction. - string rate = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string rate = 1 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; // max_rate defines the maximum commission rate which validator can ever charge, as a fraction. string max_rate = 2 [ (gogoproto.moretags) = "yaml:\"max_rate\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; // max_change_rate defines the maximum daily increase of the validator commission, as a fraction. string max_change_rate = 3 [ (gogoproto.moretags) = "yaml:\"max_change_rate\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; } @@ -95,11 +95,11 @@ message Validator { // status is the validator status (bonded/unbonding/unbonded). BondStatus status = 4; // tokens define the delegated tokens (incl. self-delegation). - string tokens = 5 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string tokens = 5 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; // delegator_shares defines total shares issued to a validator's delegators. string delegator_shares = 6 [ (gogoproto.moretags) = "yaml:\"delegator_shares\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; // description defines the description terms for the validator. @@ -114,7 +114,7 @@ message Validator { // min_self_delegation is the validator's self declared minimum self delegation. string min_self_delegation = 11 [ (gogoproto.moretags) = "yaml:\"min_self_delegation\"", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false ]; } @@ -190,7 +190,7 @@ message Delegation { // validator_address is the bech32-encoded address of the validator. string validator_address = 2 [(gogoproto.moretags) = "yaml:\"validator_address\""]; // shares define the delegation shares received. - string shares = 3 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + string shares = 3 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } // UnbondingDelegation stores all of a single delegator's unbonding bonds @@ -220,12 +220,12 @@ message UnbondingDelegationEntry { [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"completion_time\""]; // initial_balance defines the tokens initially scheduled to receive at completion. string initial_balance = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"initial_balance\"" ]; // balance defines the tokens to receive at completion. - string balance = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string balance = 4 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } // RedelegationEntry defines a redelegation object with relevant metadata. @@ -240,13 +240,13 @@ message RedelegationEntry { [(gogoproto.nullable) = false, (gogoproto.stdtime) = true, (gogoproto.moretags) = "yaml:\"completion_time\""]; // initial_balance defines the initial balance when redelegation started. string initial_balance = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"initial_balance\"" ]; // shares_dst is the amount of destination-validator shares created by redelegation. string shares_dst = 4 - [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; + [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; } // Redelegation contains the list of a particular delegator's redelegating bonds @@ -302,7 +302,7 @@ message RedelegationEntryResponse { option (gogoproto.equal) = true; RedelegationEntry redelegation_entry = 1 [(gogoproto.nullable) = false]; - string balance = 4 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; + string balance = 4 [(gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false]; } // RedelegationResponse is equivalent to a Redelegation except that its entries @@ -321,13 +321,13 @@ message Pool { option (gogoproto.description) = true; option (gogoproto.equal) = true; string not_bonded_tokens = 1 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.jsontag) = "not_bonded_tokens", (gogoproto.nullable) = false ]; string bonded_tokens = 2 [ (gogoproto.jsontag) = "bonded_tokens", - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"bonded_tokens\"" ]; diff --git a/proto/cosmos/staking/v1beta1/tx.proto b/proto/cosmos/staking/v1beta1/tx.proto index 7b05d89eea22..e7554eed6b96 100644 --- a/proto/cosmos/staking/v1beta1/tx.proto +++ b/proto/cosmos/staking/v1beta1/tx.proto @@ -9,7 +9,7 @@ import "cosmos_proto/cosmos.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/staking/v1beta1/staking.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/staking/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/staking/types"; // Msg defines the staking Msg service. service Msg { @@ -40,7 +40,7 @@ message MsgCreateValidator { Description description = 1 [(gogoproto.nullable) = false]; CommissionRates commission = 2 [(gogoproto.nullable) = false]; string min_self_delegation = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.moretags) = "yaml:\"min_self_delegation\"", (gogoproto.nullable) = false ]; @@ -66,11 +66,11 @@ message MsgEditValidator { // zero with no way to distinguish if an update was intended. // REF: #2373 string commission_rate = 3 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Dec", (gogoproto.moretags) = "yaml:\"commission_rate\"" ]; string min_self_delegation = 4 [ - (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", + (gogoproto.customtype) = "github.com/eligion/cosmos-sdk/types.Int", (gogoproto.moretags) = "yaml:\"min_self_delegation\"" ]; } diff --git a/proto/cosmos/tx/signing/v1beta1/signing.proto b/proto/cosmos/tx/signing/v1beta1/signing.proto index 4c1be40594d1..50e15eb9f57c 100644 --- a/proto/cosmos/tx/signing/v1beta1/signing.proto +++ b/proto/cosmos/tx/signing/v1beta1/signing.proto @@ -4,7 +4,7 @@ package cosmos.tx.signing.v1beta1; import "cosmos/crypto/multisig/v1beta1/multisig.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/types/tx/signing"; +option go_package = "github.com/eligion/cosmos-sdk/types/tx/signing"; // SignMode represents a signing mode with its own security guarantees. enum SignMode { diff --git a/proto/cosmos/tx/v1beta1/service.proto b/proto/cosmos/tx/v1beta1/service.proto index acfbf15b3689..0aa80be4ad59 100644 --- a/proto/cosmos/tx/v1beta1/service.proto +++ b/proto/cosmos/tx/v1beta1/service.proto @@ -8,7 +8,7 @@ import "gogoproto/gogo.proto"; import "cosmos/base/query/v1beta1/pagination.proto"; option (gogoproto.goproto_registration) = true; -option go_package = "github.com/cosmos/cosmos-sdk/types/tx"; +option go_package = "github.com/eligion/cosmos-sdk/types/tx"; // Service defines a gRPC service for interacting with transactions. service Service { diff --git a/proto/cosmos/tx/v1beta1/tx.proto b/proto/cosmos/tx/v1beta1/tx.proto index 6d5caf12c71c..0671f3271c40 100644 --- a/proto/cosmos/tx/v1beta1/tx.proto +++ b/proto/cosmos/tx/v1beta1/tx.proto @@ -7,7 +7,7 @@ import "cosmos/base/v1beta1/coin.proto"; import "cosmos/tx/signing/v1beta1/signing.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/types/tx"; +option go_package = "github.com/eligion/cosmos-sdk/types/tx"; // Tx is the standard type used for broadcasting transactions. message Tx { @@ -76,7 +76,7 @@ message TxBody { // memo is any arbitrary note/comment to be added to the transaction. // WARNING: in clients, any publicly exposed text should not be called memo, - // but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). + // but should be called `note` instead (see https://github.com/eligion/cosmos-sdk/issues/9122). string memo = 2; // timeout is the block height after which this transaction will not @@ -165,7 +165,7 @@ message ModeInfo { message Fee { // amount is the amount of coins to be paid as a fee repeated cosmos.base.v1beta1.Coin amount = 1 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; // gas_limit is the maximum gas that can be used in transaction processing // before an out of gas error occurs diff --git a/proto/cosmos/upgrade/v1beta1/query.proto b/proto/cosmos/upgrade/v1beta1/query.proto index dd14ba6401c4..db10e1b053d9 100644 --- a/proto/cosmos/upgrade/v1beta1/query.proto +++ b/proto/cosmos/upgrade/v1beta1/query.proto @@ -5,7 +5,7 @@ import "google/protobuf/any.proto"; import "google/api/annotations.proto"; import "cosmos/upgrade/v1beta1/upgrade.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/upgrade/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/upgrade/types"; // Query defines the gRPC upgrade querier service. service Query { diff --git a/proto/cosmos/upgrade/v1beta1/upgrade.proto b/proto/cosmos/upgrade/v1beta1/upgrade.proto index e888b393d68a..8228030a6771 100644 --- a/proto/cosmos/upgrade/v1beta1/upgrade.proto +++ b/proto/cosmos/upgrade/v1beta1/upgrade.proto @@ -5,7 +5,7 @@ import "google/protobuf/any.proto"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/upgrade/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/upgrade/types"; option (gogoproto.goproto_getters_all) = false; // Plan specifies information about a planned upgrade and when it should occur. diff --git a/proto/cosmos/vesting/v1beta1/tx.proto b/proto/cosmos/vesting/v1beta1/tx.proto index c49be802a76e..6cf4637ed5dd 100644 --- a/proto/cosmos/vesting/v1beta1/tx.proto +++ b/proto/cosmos/vesting/v1beta1/tx.proto @@ -4,7 +4,7 @@ package cosmos.vesting.v1beta1; import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/auth/vesting/types"; // Msg defines the bank Msg service. service Msg { @@ -21,7 +21,7 @@ message MsgCreateVestingAccount { string from_address = 1 [(gogoproto.moretags) = "yaml:\"from_address\""]; string to_address = 2 [(gogoproto.moretags) = "yaml:\"to_address\""]; repeated cosmos.base.v1beta1.Coin amount = 3 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; int64 end_time = 4 [(gogoproto.moretags) = "yaml:\"end_time\""]; bool delayed = 5; diff --git a/proto/cosmos/vesting/v1beta1/vesting.proto b/proto/cosmos/vesting/v1beta1/vesting.proto index e9f661f93c71..5a04b06bf2f9 100644 --- a/proto/cosmos/vesting/v1beta1/vesting.proto +++ b/proto/cosmos/vesting/v1beta1/vesting.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "cosmos/base/v1beta1/coin.proto"; import "cosmos/auth/v1beta1/auth.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"; +option go_package = "github.com/eligion/cosmos-sdk/x/auth/vesting/types"; // BaseVestingAccount implements the VestingAccount interface. It contains all // the necessary fields needed for any vesting account implementation. @@ -16,17 +16,17 @@ message BaseVestingAccount { cosmos.auth.v1beta1.BaseAccount base_account = 1 [(gogoproto.embed) = true]; repeated cosmos.base.v1beta1.Coin original_vesting = 2 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"original_vesting\"" ]; repeated cosmos.base.v1beta1.Coin delegated_free = 3 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"delegated_free\"" ]; repeated cosmos.base.v1beta1.Coin delegated_vesting = 4 [ (gogoproto.nullable) = false, - (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", + (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins", (gogoproto.moretags) = "yaml:\"delegated_vesting\"" ]; int64 end_time = 5 [(gogoproto.moretags) = "yaml:\"end_time\""]; @@ -58,7 +58,7 @@ message Period { int64 length = 1; repeated cosmos.base.v1beta1.Coin amount = 2 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/eligion/cosmos-sdk/types.Coins"]; } // PeriodicVestingAccount implements the VestingAccount interface. It diff --git a/scripts/linkify_changelog.py b/scripts/linkify_changelog.py index cea22ec6cfe3..8090290a96f3 100644 --- a/scripts/linkify_changelog.py +++ b/scripts/linkify_changelog.py @@ -3,7 +3,7 @@ # This script goes through the provided file, and replaces any " \#", # with the valid mark down formatted link to it. e.g. -# " [\#number](https://github.com/cosmos/cosmos-sdk/issues/) +# " [\#number](https://github.com/eligion/cosmos-sdk/issues/) # Note that if the number is for a PR, github will auto-redirect you when you click the link. # It is safe to run the script multiple times in succession. # @@ -11,5 +11,5 @@ # # $ python ./scripts/linkify_changelog.py CHANGELOG.md for line in fileinput.input(inplace=1): - line = re.sub(r"\s\\#([0-9]+)", r" [\\#\1](https://github.com/cosmos/cosmos-sdk/issues/\1)", line.rstrip()) + line = re.sub(r"\s\\#([0-9]+)", r" [\\#\1](https://github.com/eligion/cosmos-sdk/issues/\1)", line.rstrip()) print(line) \ No newline at end of file diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index 20b8d7020069..4888e4a14696 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -19,7 +19,7 @@ for dir in $proto_dirs; do -I "proto" \ -I "third_party/proto" \ --gocosmos_out=plugins=interfacetype+grpc,\ -Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:. \ +Mgoogle/protobuf/any.proto=github.com/eligion/cosmos-sdk/codec/types:. \ --grpc-gateway_out=logtostderr=true,allow_colon_final_segments=true:. \ $(find "${dir}" -maxdepth 1 -name '*.proto') @@ -36,8 +36,8 @@ go mod tidy # generate codec/testdata proto code buf protoc -I "proto" -I "third_party/proto" -I "testutil/testdata" --gocosmos_out=plugins=interfacetype+grpc,\ -Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:. ./testutil/testdata/*.proto +Mgoogle/protobuf/any.proto=github.com/eligion/cosmos-sdk/codec/types:. ./testutil/testdata/*.proto # move proto files to the right places -cp -r github.com/cosmos/cosmos-sdk/* ./ +cp -r github.com/eligion/cosmos-sdk/* ./ rm -rf github.com diff --git a/server/api/server.go b/server/api/server.go index c2987f860d1a..bb68bd38e369 100644 --- a/server/api/server.go +++ b/server/api/server.go @@ -14,14 +14,14 @@ import ( "github.com/tendermint/tendermint/libs/log" tmrpcserver "github.com/tendermint/tendermint/rpc/jsonrpc/server" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/server/config" - "github.com/cosmos/cosmos-sdk/telemetry" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - "github.com/cosmos/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/server/config" + "github.com/eligion/cosmos-sdk/telemetry" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/types/rest" // unnamed import of statik for swagger UI support - _ "github.com/cosmos/cosmos-sdk/client/docs/statik" + _ "github.com/eligion/cosmos-sdk/client/docs/statik" ) // Server defines the server's API interface. diff --git a/server/cmd/execute.go b/server/cmd/execute.go index 83e9bc0b25a8..8818575f9c84 100644 --- a/server/cmd/execute.go +++ b/server/cmd/execute.go @@ -8,9 +8,9 @@ import ( tmcfg "github.com/tendermint/tendermint/config" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/server" ) // Execute executes the root command of an application. It handles creating a diff --git a/server/config/config.go b/server/config/config.go index 803808b19a72..5e017c8fa4d2 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -6,10 +6,10 @@ import ( "github.com/spf13/viper" - storetypes "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + storetypes "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) const ( @@ -101,7 +101,7 @@ type APIConfig struct { // TODO: TLS/Proxy configuration. // - // Ref: https://github.com/cosmos/cosmos-sdk/issues/6420 + // Ref: https://github.com/eligion/cosmos-sdk/issues/6420 } // RosettaConfig defines the Rosetta API listener configuration. diff --git a/server/config/config_test.go b/server/config/config_test.go index e828a0716dc8..fe4fc547e33b 100644 --- a/server/config/config_test.go +++ b/server/config/config_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestDefaultConfig(t *testing.T) { diff --git a/server/export.go b/server/export.go index 150add98e78d..b572145c24b9 100644 --- a/server/export.go +++ b/server/export.go @@ -12,9 +12,9 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/server/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/server/types" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/server/export_test.go b/server/export_test.go index 364a8475dd33..53b080466911 100644 --- a/server/export_test.go +++ b/server/export_test.go @@ -20,14 +20,14 @@ import ( tmtypes "github.com/tendermint/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/genutil" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/server/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/genutil" ) func TestExportCmd_ConsensusParams(t *testing.T) { diff --git a/server/grpc/grpc_web.go b/server/grpc/grpc_web.go index e08f007c73f0..91ecc2bcd41f 100644 --- a/server/grpc/grpc_web.go +++ b/server/grpc/grpc_web.go @@ -8,8 +8,8 @@ import ( "github.com/improbable-eng/grpc-web/go/grpcweb" "google.golang.org/grpc" - "github.com/cosmos/cosmos-sdk/server/config" - "github.com/cosmos/cosmos-sdk/server/types" + "github.com/eligion/cosmos-sdk/server/config" + "github.com/eligion/cosmos-sdk/server/types" ) // StartGRPCWeb starts a gRPC-Web server on the given address. diff --git a/server/grpc/grpc_web_test.go b/server/grpc/grpc_web_test.go index fa657ae941ad..e481ccd783ad 100644 --- a/server/grpc/grpc_web_test.go +++ b/server/grpc/grpc_web_test.go @@ -19,11 +19,11 @@ import ( "github.com/stretchr/testify/suite" "google.golang.org/grpc/codes" - "github.com/cosmos/cosmos-sdk/client/grpc/tmservice" - "github.com/cosmos/cosmos-sdk/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil/network" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client/grpc/tmservice" + "github.com/eligion/cosmos-sdk/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/testutil/network" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) // https://github.com/improbable-eng/grpc-web/blob/master/go/grpcweb/wrapper_test.go used as a reference diff --git a/server/grpc/reflection/v2alpha1/reflection.go b/server/grpc/reflection/v2alpha1/reflection.go index 789f9e35ff86..5902dede5d51 100644 --- a/server/grpc/reflection/v2alpha1/reflection.go +++ b/server/grpc/reflection/v2alpha1/reflection.go @@ -7,9 +7,9 @@ import ( "github.com/gogo/protobuf/proto" "google.golang.org/grpc" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx" ) type Config struct { diff --git a/server/grpc/server.go b/server/grpc/server.go index 0b41a57cd323..284a1aa0b2c9 100644 --- a/server/grpc/server.go +++ b/server/grpc/server.go @@ -7,11 +7,11 @@ import ( "google.golang.org/grpc" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/server/grpc/gogoreflection" - reflection "github.com/cosmos/cosmos-sdk/server/grpc/reflection/v2alpha1" - "github.com/cosmos/cosmos-sdk/server/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/server/grpc/gogoreflection" + reflection "github.com/eligion/cosmos-sdk/server/grpc/reflection/v2alpha1" + "github.com/eligion/cosmos-sdk/server/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // StartGRPCServer starts a gRPC server on the given address. diff --git a/server/grpc/server_test.go b/server/grpc/server_test.go index 2c18754e03c0..9ee11de697df 100644 --- a/server/grpc/server_test.go +++ b/server/grpc/server_test.go @@ -17,21 +17,21 @@ import ( "google.golang.org/grpc/metadata" rpb "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" - "github.com/cosmos/cosmos-sdk/client" - reflectionv1 "github.com/cosmos/cosmos-sdk/client/grpc/reflection" - clienttx "github.com/cosmos/cosmos-sdk/client/tx" - reflectionv2 "github.com/cosmos/cosmos-sdk/server/grpc/reflection/v2alpha1" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - "github.com/cosmos/cosmos-sdk/types/tx" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + reflectionv1 "github.com/eligion/cosmos-sdk/client/grpc/reflection" + clienttx "github.com/eligion/cosmos-sdk/client/tx" + reflectionv2 "github.com/eligion/cosmos-sdk/server/grpc/reflection/v2alpha1" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/types/tx" + txtypes "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx/signing" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) type IntegrationTestSuite struct { @@ -155,7 +155,7 @@ func (s *IntegrationTestSuite) TestGRPCServer_InterfaceReflection() { func (s *IntegrationTestSuite) TestGRPCServer_GetTxsEvent() { // Query the tx via gRPC without pagination. This used to panic, see - // https://github.com/cosmos/cosmos-sdk/issues/8038. + // https://github.com/eligion/cosmos-sdk/issues/8038. txServiceClient := txtypes.NewServiceClient(s.conn) _, err := txServiceClient.GetTxsEvent( context.Background(), @@ -190,7 +190,7 @@ func (s *IntegrationTestSuite) TestGRPCServer_BroadcastTx() { // Test and enforce that we upfront reject any connections to baseapp containing // invalid initial x-cosmos-block-height that aren't positive and in the range [0, max(int64)] -// See issue https://github.com/cosmos/cosmos-sdk/issues/7662. +// See issue https://github.com/eligion/cosmos-sdk/issues/7662. func (s *IntegrationTestSuite) TestGRPCServerInvalidHeaderHeights() { t := s.T() @@ -218,7 +218,7 @@ func (s *IntegrationTestSuite) TestGRPCServerInvalidHeaderHeights() { } // TestGRPCUnpacker - tests the grpc endpoint for Validator and using the interface registry unpack and extract the -// ConsAddr. (ref: https://github.com/cosmos/cosmos-sdk/issues/8045) +// ConsAddr. (ref: https://github.com/eligion/cosmos-sdk/issues/8045) func (s *IntegrationTestSuite) TestGRPCUnpacker() { ir := s.app.InterfaceRegistry() queryClient := stakingtypes.NewQueryClient(s.conn) diff --git a/server/init.go b/server/init.go index 00b7b26af30b..d879422f1dd5 100644 --- a/server/init.go +++ b/server/init.go @@ -3,8 +3,8 @@ package server import ( "fmt" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/keyring" + sdk "github.com/eligion/cosmos-sdk/types" ) // Deprecated: GenerateCoinKey generates a new key mnemonic along with its addrress. diff --git a/server/mock/app.go b/server/mock/app.go index e3fdd2c91477..d36e1681e47a 100644 --- a/server/mock/app.go +++ b/server/mock/app.go @@ -11,9 +11,9 @@ import ( abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" - bam "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" + bam "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewApp creates a simple mock kvstore app for testing. It should work @@ -89,7 +89,7 @@ func InitChainer(key sdk.StoreKey) func(sdk.Context, abci.RequestInitChain) abci genesisState := new(GenesisJSON) err := json.Unmarshal(stateJSON, genesisState) if err != nil { - panic(err) // TODO https://github.com/cosmos/cosmos-sdk/issues/468 + panic(err) // TODO https://github.com/eligion/cosmos-sdk/issues/468 // return sdk.ErrGenesisParse("").TraceCause(err, "") } diff --git a/server/mock/store.go b/server/mock/store.go index c8c233bb7c37..b477600f5ad0 100644 --- a/server/mock/store.go +++ b/server/mock/store.go @@ -5,8 +5,8 @@ import ( dbm "github.com/tendermint/tm-db" - store "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" + store "github.com/eligion/cosmos-sdk/store/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var _ sdk.MultiStore = multiStore{} diff --git a/server/mock/store_test.go b/server/mock/store_test.go index b945cd30599f..c1f4a5b34096 100644 --- a/server/mock/store_test.go +++ b/server/mock/store_test.go @@ -7,7 +7,7 @@ import ( dbm "github.com/tendermint/tm-db" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestStore(t *testing.T) { diff --git a/server/mock/tx.go b/server/mock/tx.go index 0cb79c28986f..260939b4cf86 100644 --- a/server/mock/tx.go +++ b/server/mock/tx.go @@ -5,8 +5,8 @@ import ( "bytes" "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // An sdk.Tx which is its own sdk.Msg. diff --git a/server/pruning.go b/server/pruning.go index 44aa4ba2d1e6..46d80e461662 100644 --- a/server/pruning.go +++ b/server/pruning.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/cast" - "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/store" - storetypes "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/server/types" + "github.com/eligion/cosmos-sdk/store" + storetypes "github.com/eligion/cosmos-sdk/store/types" ) // GetPruningOptionsFromFlags parses command flags and returns the correct diff --git a/server/pruning_test.go b/server/pruning_test.go index baef9b59163c..481d1147089c 100644 --- a/server/pruning_test.go +++ b/server/pruning_test.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" ) func TestGetPruningOptionsFromFlags(t *testing.T) { diff --git a/server/rosetta.go b/server/rosetta.go index fe8d5ec6df12..b07af4b3c863 100644 --- a/server/rosetta.go +++ b/server/rosetta.go @@ -5,9 +5,9 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/server/rosetta" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/server/rosetta" ) // RosettaCommand builds the rosetta root command given diff --git a/server/rosetta/client_offline.go b/server/rosetta/client_offline.go index 1dca56de22d0..cf2c626ce082 100644 --- a/server/rosetta/client_offline.go +++ b/server/rosetta/client_offline.go @@ -6,9 +6,9 @@ import ( "github.com/coinbase/rosetta-sdk-go/types" - crgerrs "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" + crgerrs "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // ---------- cosmos-rosetta-gateway.types.NetworkInformationProvider implementation ------------ // diff --git a/server/rosetta/client_online.go b/server/rosetta/client_online.go index f8396aab3a43..51ccb665df87 100644 --- a/server/rosetta/client_online.go +++ b/server/rosetta/client_online.go @@ -11,7 +11,7 @@ import ( "strconv" "time" - "github.com/cosmos/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/version" abcitypes "github.com/tendermint/tendermint/abci/types" @@ -21,14 +21,14 @@ import ( "github.com/tendermint/tendermint/rpc/client/http" "google.golang.org/grpc" - crgerrs "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" - crgtypes "github.com/cosmos/cosmos-sdk/server/rosetta/lib/types" + crgerrs "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" + crgtypes "github.com/eligion/cosmos-sdk/server/rosetta/lib/types" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" - auth "github.com/cosmos/cosmos-sdk/x/auth/types" - bank "github.com/cosmos/cosmos-sdk/x/bank/types" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + authtx "github.com/eligion/cosmos-sdk/x/auth/tx" + auth "github.com/eligion/cosmos-sdk/x/auth/types" + bank "github.com/eligion/cosmos-sdk/x/bank/types" tmrpc "github.com/tendermint/tendermint/rpc/client" ) diff --git a/server/rosetta/codec.go b/server/rosetta/codec.go index 96242a9e044a..a4bffdce6a34 100644 --- a/server/rosetta/codec.go +++ b/server/rosetta/codec.go @@ -1,11 +1,11 @@ package rosetta import ( - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - authcodec "github.com/cosmos/cosmos-sdk/x/auth/types" - bankcodec "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + authcodec "github.com/eligion/cosmos-sdk/x/auth/types" + bankcodec "github.com/eligion/cosmos-sdk/x/bank/types" ) // MakeCodec generates the codec required to interact diff --git a/server/rosetta/config.go b/server/rosetta/config.go index dac86e25de93..e42174c5d02b 100644 --- a/server/rosetta/config.go +++ b/server/rosetta/config.go @@ -8,10 +8,10 @@ import ( "github.com/coinbase/rosetta-sdk-go/types" "github.com/spf13/pflag" - crg "github.com/cosmos/cosmos-sdk/server/rosetta/lib/server" + crg "github.com/eligion/cosmos-sdk/server/rosetta/lib/server" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" ) // configuration defaults constants diff --git a/server/rosetta/converter.go b/server/rosetta/converter.go index 4fdd87c75b67..bc8f47aa3af2 100644 --- a/server/rosetta/converter.go +++ b/server/rosetta/converter.go @@ -6,31 +6,31 @@ import ( "fmt" "reflect" - auth "github.com/cosmos/cosmos-sdk/x/auth/types" + auth "github.com/eligion/cosmos-sdk/x/auth/types" "github.com/tendermint/tendermint/crypto" "github.com/btcsuite/btcd/btcec" tmcoretypes "github.com/tendermint/tendermint/rpc/core/types" - crgtypes "github.com/cosmos/cosmos-sdk/server/rosetta/lib/types" + crgtypes "github.com/eligion/cosmos-sdk/server/rosetta/lib/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/types/tx/signing" rosettatypes "github.com/coinbase/rosetta-sdk-go/types" abci "github.com/tendermint/tendermint/abci/types" tmtypes "github.com/tendermint/tendermint/types" - crgerrs "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" + crgerrs "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" - sdkclient "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + sdkclient "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) // Converter is a utility that can be used to convert diff --git a/server/rosetta/converter_test.go b/server/rosetta/converter_test.go index 1177d33405df..967c1bfc0a6e 100644 --- a/server/rosetta/converter_test.go +++ b/server/rosetta/converter_test.go @@ -7,21 +7,21 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" rosettatypes "github.com/coinbase/rosetta-sdk-go/types" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/server/rosetta" - crgerrs "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" + "github.com/eligion/cosmos-sdk/server/rosetta" + crgerrs "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" - bank "github.com/cosmos/cosmos-sdk/x/bank/types" + sdk "github.com/eligion/cosmos-sdk/types" + authtx "github.com/eligion/cosmos-sdk/x/auth/tx" + bank "github.com/eligion/cosmos-sdk/x/bank/types" ) type ConverterTestSuite struct { diff --git a/server/rosetta/lib/internal/service/construction.go b/server/rosetta/lib/internal/service/construction.go index 4be6e9461241..b13209439c53 100644 --- a/server/rosetta/lib/internal/service/construction.go +++ b/server/rosetta/lib/internal/service/construction.go @@ -8,7 +8,7 @@ import ( "github.com/coinbase/rosetta-sdk-go/types" - "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" + "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" ) // ConstructionCombine Combine creates a network-specific transaction from an unsigned transaction diff --git a/server/rosetta/lib/internal/service/data.go b/server/rosetta/lib/internal/service/data.go index cda420487202..d7d73b49647f 100644 --- a/server/rosetta/lib/internal/service/data.go +++ b/server/rosetta/lib/internal/service/data.go @@ -5,8 +5,8 @@ import ( "github.com/coinbase/rosetta-sdk-go/types" - "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" - crgtypes "github.com/cosmos/cosmos-sdk/server/rosetta/lib/types" + "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" + crgtypes "github.com/eligion/cosmos-sdk/server/rosetta/lib/types" ) // AccountBalance retrieves the account balance of an address diff --git a/server/rosetta/lib/internal/service/offline.go b/server/rosetta/lib/internal/service/offline.go index 0d0f4eb1b4c0..ef2a50a3b547 100644 --- a/server/rosetta/lib/internal/service/offline.go +++ b/server/rosetta/lib/internal/service/offline.go @@ -5,8 +5,8 @@ import ( "github.com/coinbase/rosetta-sdk-go/types" - crgerrs "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" - crgtypes "github.com/cosmos/cosmos-sdk/server/rosetta/lib/types" + crgerrs "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" + crgtypes "github.com/eligion/cosmos-sdk/server/rosetta/lib/types" ) // NewOffline instantiates the instance of an offline network diff --git a/server/rosetta/lib/internal/service/online.go b/server/rosetta/lib/internal/service/online.go index 5cf3331273b1..8b25965ce2d5 100644 --- a/server/rosetta/lib/internal/service/online.go +++ b/server/rosetta/lib/internal/service/online.go @@ -6,8 +6,8 @@ import ( "github.com/coinbase/rosetta-sdk-go/types" - crgerrs "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" - crgtypes "github.com/cosmos/cosmos-sdk/server/rosetta/lib/types" + crgerrs "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" + crgtypes "github.com/eligion/cosmos-sdk/server/rosetta/lib/types" ) // genesisBlockFetchTimeout defines a timeout to fetch the genesis block diff --git a/server/rosetta/lib/server/server.go b/server/rosetta/lib/server/server.go index 1d82ce8a6ff5..9e28e4a65702 100644 --- a/server/rosetta/lib/server/server.go +++ b/server/rosetta/lib/server/server.go @@ -9,8 +9,8 @@ import ( "github.com/coinbase/rosetta-sdk-go/server" "github.com/coinbase/rosetta-sdk-go/types" - "github.com/cosmos/cosmos-sdk/server/rosetta/lib/internal/service" - crgtypes "github.com/cosmos/cosmos-sdk/server/rosetta/lib/types" + "github.com/eligion/cosmos-sdk/server/rosetta/lib/internal/service" + crgtypes "github.com/eligion/cosmos-sdk/server/rosetta/lib/types" ) const DefaultRetries = 5 diff --git a/server/rosetta/util.go b/server/rosetta/util.go index 6aa3d94a64b1..d20aceae78fc 100644 --- a/server/rosetta/util.go +++ b/server/rosetta/util.go @@ -4,7 +4,7 @@ import ( "encoding/json" "time" - crgerrs "github.com/cosmos/cosmos-sdk/server/rosetta/lib/errors" + crgerrs "github.com/eligion/cosmos-sdk/server/rosetta/lib/errors" ) // timeToMilliseconds converts time to milliseconds timestamp diff --git a/server/start.go b/server/start.go index bda8b6ed8117..0da85d3a688b 100644 --- a/server/start.go +++ b/server/start.go @@ -9,7 +9,7 @@ import ( "runtime/pprof" "time" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" "github.com/spf13/cobra" "google.golang.org/grpc" @@ -23,16 +23,16 @@ import ( "github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/rpc/client/local" - "github.com/cosmos/cosmos-sdk/server/rosetta" - crgserver "github.com/cosmos/cosmos-sdk/server/rosetta/lib/server" + "github.com/eligion/cosmos-sdk/server/rosetta" + crgserver "github.com/eligion/cosmos-sdk/server/rosetta/lib/server" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/server/api" - "github.com/cosmos/cosmos-sdk/server/config" - servergrpc "github.com/cosmos/cosmos-sdk/server/grpc" - "github.com/cosmos/cosmos-sdk/server/types" - storetypes "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/server/api" + "github.com/eligion/cosmos-sdk/server/config" + servergrpc "github.com/eligion/cosmos-sdk/server/grpc" + "github.com/eligion/cosmos-sdk/server/types" + storetypes "github.com/eligion/cosmos-sdk/store/types" ) // Tendermint full-node start flags diff --git a/server/test_helpers.go b/server/test_helpers.go index 68d87aa08d62..7bec60387b20 100644 --- a/server/test_helpers.go +++ b/server/test_helpers.go @@ -4,7 +4,7 @@ import ( "fmt" "net" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // Get a free address for a test tendermint server diff --git a/server/tm_cmds.go b/server/tm_cmds.go index 35e202abc22e..121e435d23a9 100644 --- a/server/tm_cmds.go +++ b/server/tm_cmds.go @@ -12,9 +12,9 @@ import ( tversion "github.com/tendermint/tendermint/version" yaml "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/client" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" ) // ShowNodeIDCmd - ported from Tendermint, dump node ID to stdout diff --git a/server/types/app.go b/server/types/app.go index 467f627c605f..8aa05fab2c9b 100644 --- a/server/types/app.go +++ b/server/types/app.go @@ -12,9 +12,9 @@ import ( tmtypes "github.com/tendermint/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/server/api" - "github.com/cosmos/cosmos-sdk/server/config" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/server/api" + "github.com/eligion/cosmos-sdk/server/config" ) // ServerStartTime defines the time duration that the server need to stay running after startup diff --git a/server/util.go b/server/util.go index bc9ab45df182..4bbafa3d454a 100644 --- a/server/util.go +++ b/server/util.go @@ -23,11 +23,11 @@ import ( tmlog "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/server/config" - "github.com/cosmos/cosmos-sdk/server/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/server/config" + "github.com/eligion/cosmos-sdk/server/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" ) // DONTCOVER diff --git a/server/util_test.go b/server/util_test.go index 0d70a891e1dd..bb46ba6029ea 100644 --- a/server/util_test.go +++ b/server/util_test.go @@ -12,8 +12,8 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/server" ) var cancelledInPreRun = errors.New("Cancelled in prerun") @@ -380,7 +380,7 @@ func TestInterceptConfigsPreRunHandlerPrecedenceConfigDefault(t *testing.T) { // Ensure that if interceptConfigs encounters any error other than non-existen errors // that we correctly return the offending error, for example a permission error. -// See https://github.com/cosmos/cosmos-sdk/issues/7578 +// See https://github.com/eligion/cosmos-sdk/issues/7578 func TestInterceptConfigsWithBadPermissions(t *testing.T) { tempDir := t.TempDir() subDir := filepath.Join(tempDir, "nonPerms") diff --git a/simapp/app.go b/simapp/app.go index d30301c14c8d..68f20a09ae61 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -15,77 +15,77 @@ import ( tmos "github.com/tendermint/tendermint/libs/os" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/grpc/tmservice" - "github.com/cosmos/cosmos-sdk/client/rpc" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/server/api" - "github.com/cosmos/cosmos-sdk/server/config" - servertypes "github.com/cosmos/cosmos-sdk/server/types" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest" - authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" - authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation" - authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/auth/vesting" - vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" - "github.com/cosmos/cosmos-sdk/x/authz" - authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" - authzmodule "github.com/cosmos/cosmos-sdk/x/authz/module" - "github.com/cosmos/cosmos-sdk/x/bank" - bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/capability" - capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper" - capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - "github.com/cosmos/cosmos-sdk/x/crisis" - crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper" - crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types" - distr "github.com/cosmos/cosmos-sdk/x/distribution" - distrclient "github.com/cosmos/cosmos-sdk/x/distribution/client" - distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper" - distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - "github.com/cosmos/cosmos-sdk/x/evidence" - evidencekeeper "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" - feegrantkeeper "github.com/cosmos/cosmos-sdk/x/feegrant/keeper" - feegrantmodule "github.com/cosmos/cosmos-sdk/x/feegrant/module" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - "github.com/cosmos/cosmos-sdk/x/gov" - govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/mint" - mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" - "github.com/cosmos/cosmos-sdk/x/params" - paramsclient "github.com/cosmos/cosmos-sdk/x/params/client" - paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" - paramstypes "github.com/cosmos/cosmos-sdk/x/params/types" - paramproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal" - "github.com/cosmos/cosmos-sdk/x/slashing" - slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" - "github.com/cosmos/cosmos-sdk/x/staking" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" - "github.com/cosmos/cosmos-sdk/x/upgrade" - upgradeclient "github.com/cosmos/cosmos-sdk/x/upgrade/client" - upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" - upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/grpc/tmservice" + "github.com/eligion/cosmos-sdk/client/rpc" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/server/api" + "github.com/eligion/cosmos-sdk/server/config" + servertypes "github.com/eligion/cosmos-sdk/server/types" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/auth" + "github.com/eligion/cosmos-sdk/x/auth/ante" + authrest "github.com/eligion/cosmos-sdk/x/auth/client/rest" + authkeeper "github.com/eligion/cosmos-sdk/x/auth/keeper" + authsims "github.com/eligion/cosmos-sdk/x/auth/simulation" + authtx "github.com/eligion/cosmos-sdk/x/auth/tx" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/auth/vesting" + vestingtypes "github.com/eligion/cosmos-sdk/x/auth/vesting/types" + "github.com/eligion/cosmos-sdk/x/authz" + authzkeeper "github.com/eligion/cosmos-sdk/x/authz/keeper" + authzmodule "github.com/eligion/cosmos-sdk/x/authz/module" + "github.com/eligion/cosmos-sdk/x/bank" + bankkeeper "github.com/eligion/cosmos-sdk/x/bank/keeper" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/capability" + capabilitykeeper "github.com/eligion/cosmos-sdk/x/capability/keeper" + capabilitytypes "github.com/eligion/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/x/crisis" + crisiskeeper "github.com/eligion/cosmos-sdk/x/crisis/keeper" + crisistypes "github.com/eligion/cosmos-sdk/x/crisis/types" + distr "github.com/eligion/cosmos-sdk/x/distribution" + distrclient "github.com/eligion/cosmos-sdk/x/distribution/client" + distrkeeper "github.com/eligion/cosmos-sdk/x/distribution/keeper" + distrtypes "github.com/eligion/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/x/evidence" + evidencekeeper "github.com/eligion/cosmos-sdk/x/evidence/keeper" + evidencetypes "github.com/eligion/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/x/feegrant" + feegrantkeeper "github.com/eligion/cosmos-sdk/x/feegrant/keeper" + feegrantmodule "github.com/eligion/cosmos-sdk/x/feegrant/module" + "github.com/eligion/cosmos-sdk/x/genutil" + genutiltypes "github.com/eligion/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/x/gov" + govkeeper "github.com/eligion/cosmos-sdk/x/gov/keeper" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/mint" + mintkeeper "github.com/eligion/cosmos-sdk/x/mint/keeper" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/x/params" + paramsclient "github.com/eligion/cosmos-sdk/x/params/client" + paramskeeper "github.com/eligion/cosmos-sdk/x/params/keeper" + paramstypes "github.com/eligion/cosmos-sdk/x/params/types" + paramproposal "github.com/eligion/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/x/slashing" + slashingkeeper "github.com/eligion/cosmos-sdk/x/slashing/keeper" + slashingtypes "github.com/eligion/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/x/staking" + stakingkeeper "github.com/eligion/cosmos-sdk/x/staking/keeper" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/x/upgrade" + upgradeclient "github.com/eligion/cosmos-sdk/x/upgrade/client" + upgradekeeper "github.com/eligion/cosmos-sdk/x/upgrade/keeper" + upgradetypes "github.com/eligion/cosmos-sdk/x/upgrade/types" // unnamed import of statik for swagger UI support - _ "github.com/cosmos/cosmos-sdk/client/docs/statik" + _ "github.com/eligion/cosmos-sdk/client/docs/statik" ) const appName = "SimApp" diff --git a/simapp/app_test.go b/simapp/app_test.go index 56c6dc1485ad..b6633f0ba4ba 100644 --- a/simapp/app_test.go +++ b/simapp/app_test.go @@ -12,27 +12,27 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/tests/mocks" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/auth" - "github.com/cosmos/cosmos-sdk/x/auth/vesting" - authzmodule "github.com/cosmos/cosmos-sdk/x/authz/module" - "github.com/cosmos/cosmos-sdk/x/bank" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/capability" - "github.com/cosmos/cosmos-sdk/x/crisis" - "github.com/cosmos/cosmos-sdk/x/distribution" - "github.com/cosmos/cosmos-sdk/x/evidence" - feegrantmodule "github.com/cosmos/cosmos-sdk/x/feegrant/module" - "github.com/cosmos/cosmos-sdk/x/genutil" - "github.com/cosmos/cosmos-sdk/x/gov" - "github.com/cosmos/cosmos-sdk/x/mint" - "github.com/cosmos/cosmos-sdk/x/params" - "github.com/cosmos/cosmos-sdk/x/slashing" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/upgrade" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/tests/mocks" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/auth" + "github.com/eligion/cosmos-sdk/x/auth/vesting" + authzmodule "github.com/eligion/cosmos-sdk/x/authz/module" + "github.com/eligion/cosmos-sdk/x/bank" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/capability" + "github.com/eligion/cosmos-sdk/x/crisis" + "github.com/eligion/cosmos-sdk/x/distribution" + "github.com/eligion/cosmos-sdk/x/evidence" + feegrantmodule "github.com/eligion/cosmos-sdk/x/feegrant/module" + "github.com/eligion/cosmos-sdk/x/genutil" + "github.com/eligion/cosmos-sdk/x/gov" + "github.com/eligion/cosmos-sdk/x/mint" + "github.com/eligion/cosmos-sdk/x/params" + "github.com/eligion/cosmos-sdk/x/slashing" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/upgrade" ) func TestSimAppExportAndBlockedAddrs(t *testing.T) { diff --git a/simapp/config.go b/simapp/config.go index 98df982bd304..77fb0586a760 100644 --- a/simapp/config.go +++ b/simapp/config.go @@ -3,7 +3,7 @@ package simapp import ( "flag" - "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/types/simulation" ) // List of available flags for the simulator diff --git a/simapp/encoding.go b/simapp/encoding.go index 8a90ff852478..39df6c9bde69 100644 --- a/simapp/encoding.go +++ b/simapp/encoding.go @@ -1,8 +1,8 @@ package simapp import ( - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/cosmos/cosmos-sdk/std" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + "github.com/eligion/cosmos-sdk/std" ) // MakeTestEncodingConfig creates an EncodingConfig for testing. This function diff --git a/simapp/export.go b/simapp/export.go index 8d09e333a2e1..03dda0e430b8 100644 --- a/simapp/export.go +++ b/simapp/export.go @@ -6,11 +6,11 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - servertypes "github.com/cosmos/cosmos-sdk/server/types" - sdk "github.com/cosmos/cosmos-sdk/types" - slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" - "github.com/cosmos/cosmos-sdk/x/staking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + servertypes "github.com/eligion/cosmos-sdk/server/types" + sdk "github.com/eligion/cosmos-sdk/types" + slashingtypes "github.com/eligion/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/x/staking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // ExportAppStateAndValidators exports the state of the application for a genesis diff --git a/simapp/genesis.go b/simapp/genesis.go index a002aead9ae5..b30626d2a961 100644 --- a/simapp/genesis.go +++ b/simapp/genesis.go @@ -3,7 +3,7 @@ package simapp import ( "encoding/json" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" ) // GenesisState of the blockchain is represented here as a map of raw json diff --git a/simapp/genesis_account.go b/simapp/genesis_account.go index 5c9c7f9a03f8..64bff48ef37c 100644 --- a/simapp/genesis_account.go +++ b/simapp/genesis_account.go @@ -3,8 +3,8 @@ package simapp import ( "errors" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" ) var _ authtypes.GenesisAccount = (*SimGenesisAccount)(nil) diff --git a/simapp/genesis_account_test.go b/simapp/genesis_account_test.go index 5d5c59003e6b..cff812bf4687 100644 --- a/simapp/genesis_account_test.go +++ b/simapp/genesis_account_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/crypto" diff --git a/simapp/helpers/test_helpers.go b/simapp/helpers/test_helpers.go index 9ccecbd976c4..ea84d3434913 100644 --- a/simapp/helpers/test_helpers.go +++ b/simapp/helpers/test_helpers.go @@ -4,12 +4,12 @@ import ( "math/rand" "time" - "github.com/cosmos/cosmos-sdk/client" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authsign "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/types/tx/signing" + authsign "github.com/eligion/cosmos-sdk/x/auth/signing" ) // SimAppChainID hardcoded chainID for simulation diff --git a/simapp/params/amino.go b/simapp/params/amino.go index 440c29f817ea..a6545923f457 100644 --- a/simapp/params/amino.go +++ b/simapp/params/amino.go @@ -3,9 +3,9 @@ package params import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) // MakeTestEncodingConfig creates an EncodingConfig for an amino based test configuration. diff --git a/simapp/params/encoding.go b/simapp/params/encoding.go index 2cd16263a899..7893dfd7dab2 100644 --- a/simapp/params/encoding.go +++ b/simapp/params/encoding.go @@ -1,9 +1,9 @@ package params import ( - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" ) // EncodingConfig specifies the concrete encoding types to use for a given app. diff --git a/simapp/params/proto.go b/simapp/params/proto.go index a752d1079077..0998d5908dad 100644 --- a/simapp/params/proto.go +++ b/simapp/params/proto.go @@ -4,9 +4,9 @@ package params import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/x/auth/tx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/x/auth/tx" ) // MakeTestEncodingConfig creates an EncodingConfig for a non-amino based test configuration. diff --git a/simapp/sim_bench_test.go b/simapp/sim_bench_test.go index b5592051001f..e764ed244194 100644 --- a/simapp/sim_bench_test.go +++ b/simapp/sim_bench_test.go @@ -7,12 +7,12 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/simulation" ) // Profile with: -// /usr/local/go/bin/go test -benchmem -run=^$ github.com/cosmos/cosmos-sdk/simapp -bench ^BenchmarkFullAppSimulation$ -Commit=true -cpuprofile cpu.out +// /usr/local/go/bin/go test -benchmem -run=^$ github.com/eligion/cosmos-sdk/simapp -bench ^BenchmarkFullAppSimulation$ -Commit=true -cpuprofile cpu.out func BenchmarkFullAppSimulation(b *testing.B) { b.ReportAllocs() config, db, dir, logger, skip, err := SetupSimulation("goleveldb-app-sim", "Simulation") diff --git a/simapp/sim_test.go b/simapp/sim_test.go index bab40cfbf6cd..61504ec22f72 100644 --- a/simapp/sim_test.go +++ b/simapp/sim_test.go @@ -13,23 +13,23 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - "github.com/cosmos/cosmos-sdk/store" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - authzkeeper "github.com/cosmos/cosmos-sdk/x/authz/keeper" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types" - distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cosmos/cosmos-sdk/x/simulation" - slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp/helpers" + "github.com/eligion/cosmos-sdk/store" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + authzkeeper "github.com/eligion/cosmos-sdk/x/authz/keeper" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + capabilitytypes "github.com/eligion/cosmos-sdk/x/capability/types" + distrtypes "github.com/eligion/cosmos-sdk/x/distribution/types" + evidencetypes "github.com/eligion/cosmos-sdk/x/evidence/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/x/simulation" + slashingtypes "github.com/eligion/cosmos-sdk/x/slashing/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // Get flags every time the simulator is run diff --git a/simapp/simd/cmd/cmd_test.go b/simapp/simd/cmd/cmd_test.go index 1a9183d33e08..810fe3c4de47 100644 --- a/simapp/simd/cmd/cmd_test.go +++ b/simapp/simd/cmd/cmd_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" - svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/simapp/simd/cmd" - "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" + svrcmd "github.com/eligion/cosmos-sdk/server/cmd" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp/simd/cmd" + "github.com/eligion/cosmos-sdk/x/genutil/client/cli" ) func TestInitCmd(t *testing.T) { diff --git a/simapp/simd/cmd/genaccounts.go b/simapp/simd/cmd/genaccounts.go index c3340dccad18..c8a16c9d54dd 100644 --- a/simapp/simd/cmd/genaccounts.go +++ b/simapp/simd/cmd/genaccounts.go @@ -8,16 +8,16 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/server" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - authvesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/server" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + authvesting "github.com/eligion/cosmos-sdk/x/auth/vesting/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/genutil" + genutiltypes "github.com/eligion/cosmos-sdk/x/genutil/types" ) const ( diff --git a/simapp/simd/cmd/genaccounts_test.go b/simapp/simd/cmd/genaccounts_test.go index 8ed82d0918ab..e2d4eededcb7 100644 --- a/simapp/simd/cmd/genaccounts_test.go +++ b/simapp/simd/cmd/genaccounts_test.go @@ -3,24 +3,24 @@ package cmd_test import ( "context" "fmt" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + sdk "github.com/eligion/cosmos-sdk/types" "testing" "github.com/spf13/viper" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/simapp" - simcmd "github.com/cosmos/cosmos-sdk/simapp/simd/cmd" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltest "github.com/cosmos/cosmos-sdk/x/genutil/client/testutil" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/simapp" + simcmd "github.com/eligion/cosmos-sdk/simapp/simd/cmd" + "github.com/eligion/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/genutil" + genutiltest "github.com/eligion/cosmos-sdk/x/genutil/client/testutil" ) var testMbm = module.NewBasicManager(genutil.AppModuleBasic{}) diff --git a/simapp/simd/cmd/root.go b/simapp/simd/cmd/root.go index 679723c0bc68..fe5d3268ac49 100644 --- a/simapp/simd/cmd/root.go +++ b/simapp/simd/cmd/root.go @@ -6,32 +6,32 @@ import ( "os" "path/filepath" - serverconfig "github.com/cosmos/cosmos-sdk/server/config" + serverconfig "github.com/eligion/cosmos-sdk/server/config" "github.com/spf13/cast" "github.com/spf13/cobra" tmcli "github.com/tendermint/tendermint/libs/cli" "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/config" - "github.com/cosmos/cosmos-sdk/client/debug" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/keys" - "github.com/cosmos/cosmos-sdk/client/rpc" - "github.com/cosmos/cosmos-sdk/server" - servertypes "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/cosmos/cosmos-sdk/snapshots" - "github.com/cosmos/cosmos-sdk/store" - sdk "github.com/cosmos/cosmos-sdk/types" - authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" - "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/crisis" - genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/config" + "github.com/eligion/cosmos-sdk/client/debug" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/keys" + "github.com/eligion/cosmos-sdk/client/rpc" + "github.com/eligion/cosmos-sdk/server" + servertypes "github.com/eligion/cosmos-sdk/server/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp/params" + "github.com/eligion/cosmos-sdk/snapshots" + "github.com/eligion/cosmos-sdk/store" + sdk "github.com/eligion/cosmos-sdk/types" + authcmd "github.com/eligion/cosmos-sdk/x/auth/client/cli" + "github.com/eligion/cosmos-sdk/x/auth/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/crisis" + genutilcli "github.com/eligion/cosmos-sdk/x/genutil/client/cli" ) // NewRootCmd creates a new root command for simd. It is called once in the diff --git a/simapp/simd/cmd/testnet.go b/simapp/simd/cmd/testnet.go index 443f7899fbc5..925b724cb057 100644 --- a/simapp/simd/cmd/testnet.go +++ b/simapp/simd/cmd/testnet.go @@ -17,22 +17,22 @@ import ( "github.com/tendermint/tendermint/types" tmtime "github.com/tendermint/tendermint/types/time" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/server" - srvconfig "github.com/cosmos/cosmos-sdk/server/config" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/server" + srvconfig "github.com/eligion/cosmos-sdk/server/config" + "github.com/eligion/cosmos-sdk/testutil" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/genutil" + genutiltypes "github.com/eligion/cosmos-sdk/x/genutil/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/simapp/simd/cmd/testnet_test.go b/simapp/simd/cmd/testnet_test.go index da58fd454d82..9d42551a11ed 100644 --- a/simapp/simd/cmd/testnet_test.go +++ b/simapp/simd/cmd/testnet_test.go @@ -5,13 +5,13 @@ import ( "fmt" "testing" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/simapp" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - genutiltest "github.com/cosmos/cosmos-sdk/x/genutil/client/testutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/simapp" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + genutiltest "github.com/eligion/cosmos-sdk/x/genutil/client/testutil" + genutiltypes "github.com/eligion/cosmos-sdk/x/genutil/types" "github.com/spf13/viper" "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/log" diff --git a/simapp/simd/main.go b/simapp/simd/main.go index 3e744360f468..ae7987ae8f02 100644 --- a/simapp/simd/main.go +++ b/simapp/simd/main.go @@ -3,10 +3,10 @@ package main import ( "os" - "github.com/cosmos/cosmos-sdk/server" - svrcmd "github.com/cosmos/cosmos-sdk/server/cmd" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/simapp/simd/cmd" + "github.com/eligion/cosmos-sdk/server" + svrcmd "github.com/eligion/cosmos-sdk/server/cmd" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp/simd/cmd" ) func main() { diff --git a/simapp/state.go b/simapp/state.go index 5c568479e46f..0b216d527983 100644 --- a/simapp/state.go +++ b/simapp/state.go @@ -11,15 +11,15 @@ import ( tmjson "github.com/tendermint/tendermint/libs/json" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // AppStateFn returns the initial application state using a genesis or the simulation parameters. diff --git a/simapp/test_helpers.go b/simapp/test_helpers.go index 4f45b23eacd2..4671c26d7c01 100644 --- a/simapp/test_helpers.go +++ b/simapp/test_helpers.go @@ -16,20 +16,20 @@ import ( tmtypes "github.com/tendermint/tendermint/types" dbm "github.com/tendermint/tm-db" - bam "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/client" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + bam "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/client" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp/helpers" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/errors" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + bankkeeper "github.com/eligion/cosmos-sdk/x/bank/keeper" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // DefaultConsensusParams defines the default Tendermint consensus params used in diff --git a/simapp/types.go b/simapp/types.go index 0e190af1bc93..daa6eb4d188c 100644 --- a/simapp/types.go +++ b/simapp/types.go @@ -3,10 +3,10 @@ package simapp import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/server/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/server/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" ) // App implements the common methods for a Cosmos SDK-based application diff --git a/simapp/utils.go b/simapp/utils.go index a1614198b3dd..92f3f117adef 100644 --- a/simapp/utils.go +++ b/simapp/utils.go @@ -8,12 +8,12 @@ import ( "github.com/tendermint/tendermint/libs/log" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp/helpers" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" ) // SetupSimulation creates the config, db (levelDB), temporary directory and logger for diff --git a/simapp/utils_test.go b/simapp/utils_test.go index 0240c482a558..e6eac522d694 100644 --- a/simapp/utils_test.go +++ b/simapp/utils_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/std" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/types/module" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/std" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/types/module" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" ) func makeCodec(bm module.BasicManager) *codec.LegacyAmino { diff --git a/snapshots/helpers_test.go b/snapshots/helpers_test.go index 705667919146..bb44e68db6f5 100644 --- a/snapshots/helpers_test.go +++ b/snapshots/helpers_test.go @@ -13,8 +13,8 @@ import ( "github.com/stretchr/testify/require" db "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/snapshots" - "github.com/cosmos/cosmos-sdk/snapshots/types" + "github.com/eligion/cosmos-sdk/snapshots" + "github.com/eligion/cosmos-sdk/snapshots/types" ) func checksums(slice [][]byte) [][]byte { @@ -102,7 +102,7 @@ func (m *mockSnapshotter) Snapshot(height uint64, format uint32) (<-chan io.Read // The snapshot will complete when the returned closer is called. func setupBusyManager(t *testing.T) *snapshots.Manager { // ioutil.TempDir() is used instead of testing.T.TempDir() - // see https://github.com/cosmos/cosmos-sdk/pull/8475 for + // see https://github.com/eligion/cosmos-sdk/pull/8475 for // this change's rationale. tempdir, err := ioutil.TempDir("", "") require.NoError(t, err) diff --git a/snapshots/manager.go b/snapshots/manager.go index 3cb96e65f42f..ad2bbfcd67e6 100644 --- a/snapshots/manager.go +++ b/snapshots/manager.go @@ -7,8 +7,8 @@ import ( "io/ioutil" "sync" - "github.com/cosmos/cosmos-sdk/snapshots/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/snapshots/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) const ( diff --git a/snapshots/manager_test.go b/snapshots/manager_test.go index 6069666f14f5..be9dd468a9d8 100644 --- a/snapshots/manager_test.go +++ b/snapshots/manager_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/snapshots" - "github.com/cosmos/cosmos-sdk/snapshots/types" + "github.com/eligion/cosmos-sdk/snapshots" + "github.com/eligion/cosmos-sdk/snapshots/types" ) func TestManager_List(t *testing.T) { diff --git a/snapshots/store.go b/snapshots/store.go index 77ff58e22ff6..407e2548a6a1 100644 --- a/snapshots/store.go +++ b/snapshots/store.go @@ -13,8 +13,8 @@ import ( "github.com/gogo/protobuf/proto" db "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/snapshots/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/snapshots/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) const ( diff --git a/snapshots/store_test.go b/snapshots/store_test.go index 333031bc44cd..988f5c80a19e 100644 --- a/snapshots/store_test.go +++ b/snapshots/store_test.go @@ -14,14 +14,14 @@ import ( "github.com/stretchr/testify/require" db "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/snapshots" - "github.com/cosmos/cosmos-sdk/snapshots/types" - "github.com/cosmos/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/snapshots" + "github.com/eligion/cosmos-sdk/snapshots/types" + "github.com/eligion/cosmos-sdk/testutil" ) func setupStore(t *testing.T) *snapshots.Store { // ioutil.TempDir() is used instead of testing.T.TempDir() - // see https://github.com/cosmos/cosmos-sdk/pull/8475 for + // see https://github.com/eligion/cosmos-sdk/pull/8475 for // this change's rationale. tempdir, err := ioutil.TempDir("", "") require.NoError(t, err) diff --git a/snapshots/types/convert.go b/snapshots/types/convert.go index d0db6e3dc170..dcadf027adf7 100644 --- a/snapshots/types/convert.go +++ b/snapshots/types/convert.go @@ -4,7 +4,7 @@ import ( proto "github.com/gogo/protobuf/proto" abci "github.com/tendermint/tendermint/abci/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // Converts an ABCI snapshot to a snapshot. Mainly to decode the SDK metadata. diff --git a/snapshots/util.go b/snapshots/util.go index 674bd49d9278..0eb065f5d883 100644 --- a/snapshots/util.go +++ b/snapshots/util.go @@ -3,7 +3,7 @@ package snapshots import ( "io" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // ChunkWriter reads an input stream, splits it into fixed-size chunks, and writes them to a diff --git a/snapshots/util_test.go b/snapshots/util_test.go index 78c870b90a1b..2c974c87d6c6 100644 --- a/snapshots/util_test.go +++ b/snapshots/util_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/snapshots" + "github.com/eligion/cosmos-sdk/snapshots" ) func TestChunkWriter(t *testing.T) { diff --git a/std/codec.go b/std/codec.go index 9a5b6a7467a1..9f18c06705c1 100644 --- a/std/codec.go +++ b/std/codec.go @@ -1,11 +1,11 @@ package std import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + txtypes "github.com/eligion/cosmos-sdk/types/tx" ) // RegisterLegacyAminoCodec registers types with the Amino codec. diff --git a/store/cache/benchmark_test.go b/store/cache/benchmark_test.go index 10b5da2bfb0b..0c3f0358c269 100644 --- a/store/cache/benchmark_test.go +++ b/store/cache/benchmark_test.go @@ -3,7 +3,7 @@ package cache import ( "testing" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" ) func freshMgr() *CommitKVStoreCacheManager { diff --git a/store/cache/cache.go b/store/cache/cache.go index 62bed91d978e..2d1bbf2aba3a 100644 --- a/store/cache/cache.go +++ b/store/cache/cache.go @@ -3,8 +3,8 @@ package cache import ( "fmt" - "github.com/cosmos/cosmos-sdk/store/cachekv" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/types" lru "github.com/hashicorp/golang-lru" ) @@ -83,7 +83,7 @@ func (cmgr *CommitKVStoreCacheManager) Unwrap(key types.StoreKey) types.CommitKV func (cmgr *CommitKVStoreCacheManager) Reset() { // Clear the map. // Please note that we are purposefully using the map clearing idiom. - // See https://github.com/cosmos/cosmos-sdk/issues/6681. + // See https://github.com/eligion/cosmos-sdk/issues/6681. for key := range cmgr.caches { delete(cmgr.caches, key) } diff --git a/store/cache/cache_test.go b/store/cache/cache_test.go index 45c5d147a4ca..84cd1584fc0e 100644 --- a/store/cache/cache_test.go +++ b/store/cache/cache_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/cache" - iavlstore "github.com/cosmos/cosmos-sdk/store/iavl" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/cache" + iavlstore "github.com/eligion/cosmos-sdk/store/iavl" + "github.com/eligion/cosmos-sdk/store/types" ) func TestGetOrSetStoreCache(t *testing.T) { diff --git a/store/cachekv/memiterator.go b/store/cachekv/memiterator.go index 04df40ff56aa..40d5535e37ed 100644 --- a/store/cachekv/memiterator.go +++ b/store/cachekv/memiterator.go @@ -5,7 +5,7 @@ import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" ) // Iterates over iterKVCache items. diff --git a/store/cachekv/mergeiterator.go b/store/cachekv/mergeiterator.go index 25dfac803329..be5c9cd8ac3b 100644 --- a/store/cachekv/mergeiterator.go +++ b/store/cachekv/mergeiterator.go @@ -4,7 +4,7 @@ import ( "bytes" "errors" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" ) // cacheMergeIterator merges a parent Iterator and a cache Iterator. diff --git a/store/cachekv/store.go b/store/cachekv/store.go index 3e9afff83bc9..fb346f884f08 100644 --- a/store/cachekv/store.go +++ b/store/cachekv/store.go @@ -9,12 +9,12 @@ import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/internal/conv" - "github.com/cosmos/cosmos-sdk/store/listenkv" - "github.com/cosmos/cosmos-sdk/store/tracekv" - "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/telemetry" - "github.com/cosmos/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/internal/conv" + "github.com/eligion/cosmos-sdk/store/listenkv" + "github.com/eligion/cosmos-sdk/store/tracekv" + "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/telemetry" + "github.com/eligion/cosmos-sdk/types/kv" ) // If value is nil but deleted is false, it means the parent doesn't have the diff --git a/store/cachekv/store_bench_test.go b/store/cachekv/store_bench_test.go index 88c86eff564a..4de5cfd6b94c 100644 --- a/store/cachekv/store_bench_test.go +++ b/store/cachekv/store_bench_test.go @@ -5,8 +5,8 @@ import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/cachekv" - "github.com/cosmos/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/dbadapter" ) var sink interface{} diff --git a/store/cachekv/store_test.go b/store/cachekv/store_test.go index 0404f33f2a28..85997ed8fdcf 100644 --- a/store/cachekv/store_test.go +++ b/store/cachekv/store_test.go @@ -8,9 +8,9 @@ import ( tmrand "github.com/tendermint/tendermint/libs/rand" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/cachekv" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/types" ) func newCacheKVStore() types.CacheKVStore { diff --git a/store/cachemulti/store.go b/store/cachemulti/store.go index 05637a45ff16..a130149fbe7a 100644 --- a/store/cachemulti/store.go +++ b/store/cachemulti/store.go @@ -6,9 +6,9 @@ import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/cachekv" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/types" ) //---------------------------------------- diff --git a/store/cachemulti/store_test.go b/store/cachemulti/store_test.go index 8747df9ef966..7bf5975f3411 100644 --- a/store/cachemulti/store_test.go +++ b/store/cachemulti/store_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" "github.com/stretchr/testify/require" ) diff --git a/store/dbadapter/store.go b/store/dbadapter/store.go index 2f0ceb5df54a..cff40f0e6477 100644 --- a/store/dbadapter/store.go +++ b/store/dbadapter/store.go @@ -5,10 +5,10 @@ import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/cachekv" - "github.com/cosmos/cosmos-sdk/store/listenkv" - "github.com/cosmos/cosmos-sdk/store/tracekv" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/listenkv" + "github.com/eligion/cosmos-sdk/store/tracekv" + "github.com/eligion/cosmos-sdk/store/types" ) // Wrapper type for dbm.Db with implementation of KVStore diff --git a/store/dbadapter/store_test.go b/store/dbadapter/store_test.go index 9f8ac71b25cf..8513702bee8e 100644 --- a/store/dbadapter/store_test.go +++ b/store/dbadapter/store_test.go @@ -5,14 +5,14 @@ import ( "errors" "testing" - "github.com/cosmos/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/cachekv" "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/tests/mocks" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/tests/mocks" ) var errFoo = errors.New("dummy") diff --git a/store/firstlast.go b/store/firstlast.go index 307f932fb0c8..f1bde927c194 100644 --- a/store/firstlast.go +++ b/store/firstlast.go @@ -3,8 +3,8 @@ package store import ( "bytes" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkkv "github.com/cosmos/cosmos-sdk/types/kv" + sdk "github.com/eligion/cosmos-sdk/types" + sdkkv "github.com/eligion/cosmos-sdk/types/kv" ) // Gets the first item. diff --git a/store/gaskv/store.go b/store/gaskv/store.go index f36119169c76..4c0cb79c8f1c 100644 --- a/store/gaskv/store.go +++ b/store/gaskv/store.go @@ -4,8 +4,8 @@ import ( "io" "time" - "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/telemetry" + "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/telemetry" ) var _ types.KVStore = &Store{} diff --git a/store/gaskv/store_test.go b/store/gaskv/store_test.go index 90137f344bac..ea10ab916723 100644 --- a/store/gaskv/store_test.go +++ b/store/gaskv/store_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/gaskv" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/gaskv" + "github.com/eligion/cosmos-sdk/store/types" ) func bz(s string) []byte { return []byte(s) } diff --git a/store/iavl/store.go b/store/iavl/store.go index 29a4d9871139..27d9f540d36d 100644 --- a/store/iavl/store.go +++ b/store/iavl/store.go @@ -12,13 +12,13 @@ import ( tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/cachekv" - "github.com/cosmos/cosmos-sdk/store/listenkv" - "github.com/cosmos/cosmos-sdk/store/tracekv" - "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/listenkv" + "github.com/eligion/cosmos-sdk/store/tracekv" + "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/kv" ) const ( diff --git a/store/iavl/store_test.go b/store/iavl/store_test.go index b9c9e25ad43d..5693695849e8 100644 --- a/store/iavl/store_test.go +++ b/store/iavl/store_test.go @@ -5,15 +5,15 @@ import ( "fmt" "testing" - "github.com/cosmos/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/cachekv" "github.com/cosmos/iavl" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/types/kv" ) var ( diff --git a/store/internal/maps/maps.go b/store/internal/maps/maps.go index 778f1c84ed98..51520abadb45 100644 --- a/store/internal/maps/maps.go +++ b/store/internal/maps/maps.go @@ -7,7 +7,7 @@ import ( "github.com/tendermint/tendermint/crypto/tmhash" tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/types/kv" ) // merkleMap defines a merkle-ized tree from a map. Leave values are treated as diff --git a/store/internal/proofs/create.go b/store/internal/proofs/create.go index 63b6bf69b149..a83b7207586d 100644 --- a/store/internal/proofs/create.go +++ b/store/internal/proofs/create.go @@ -7,7 +7,7 @@ import ( ics23 "github.com/confio/ics23/go" - sdkmaps "github.com/cosmos/cosmos-sdk/store/internal/maps" + sdkmaps "github.com/eligion/cosmos-sdk/store/internal/maps" ) var ( diff --git a/store/internal/proofs/helpers.go b/store/internal/proofs/helpers.go index 98b04ef5eff7..98397018f436 100644 --- a/store/internal/proofs/helpers.go +++ b/store/internal/proofs/helpers.go @@ -6,7 +6,7 @@ import ( "github.com/tendermint/tendermint/libs/rand" tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" - sdkmaps "github.com/cosmos/cosmos-sdk/store/internal/maps" + sdkmaps "github.com/eligion/cosmos-sdk/store/internal/maps" ) // SimpleResult contains a merkle.SimpleProof along with all data needed to build the confio/proof diff --git a/store/listenkv/store.go b/store/listenkv/store.go index dfb6dea46c2f..40571ad60193 100644 --- a/store/listenkv/store.go +++ b/store/listenkv/store.go @@ -3,7 +3,7 @@ package listenkv import ( "io" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" ) var _ types.KVStore = &Store{} diff --git a/store/listenkv/store_test.go b/store/listenkv/store_test.go index 5d4fd0cca9c4..25661a74995b 100644 --- a/store/listenkv/store_test.go +++ b/store/listenkv/store_test.go @@ -6,12 +6,12 @@ import ( "io" "testing" - "github.com/cosmos/cosmos-sdk/codec" - codecTypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/listenkv" - "github.com/cosmos/cosmos-sdk/store/prefix" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/codec" + codecTypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/listenkv" + "github.com/eligion/cosmos-sdk/store/prefix" + "github.com/eligion/cosmos-sdk/store/types" "github.com/stretchr/testify/require" diff --git a/store/mem/mem_test.go b/store/mem/mem_test.go index a2fc6add8a3e..e5b136a045bc 100644 --- a/store/mem/mem_test.go +++ b/store/mem/mem_test.go @@ -3,12 +3,12 @@ package mem_test import ( "testing" - "github.com/cosmos/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/cachekv" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/store/mem" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/mem" + "github.com/eligion/cosmos-sdk/store/types" ) func TestStore(t *testing.T) { diff --git a/store/mem/store.go b/store/mem/store.go index c8aa6dca5997..ecee1d47f50c 100644 --- a/store/mem/store.go +++ b/store/mem/store.go @@ -5,11 +5,11 @@ import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/cachekv" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/listenkv" - "github.com/cosmos/cosmos-sdk/store/tracekv" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/listenkv" + "github.com/eligion/cosmos-sdk/store/tracekv" + "github.com/eligion/cosmos-sdk/store/types" ) var ( diff --git a/store/prefix/store.go b/store/prefix/store.go index 295278a0a853..c8c875033f71 100644 --- a/store/prefix/store.go +++ b/store/prefix/store.go @@ -5,10 +5,10 @@ import ( "errors" "io" - "github.com/cosmos/cosmos-sdk/store/cachekv" - "github.com/cosmos/cosmos-sdk/store/listenkv" - "github.com/cosmos/cosmos-sdk/store/tracekv" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/listenkv" + "github.com/eligion/cosmos-sdk/store/tracekv" + "github.com/eligion/cosmos-sdk/store/types" ) var _ types.KVStore = Store{} diff --git a/store/prefix/store_test.go b/store/prefix/store_test.go index bf49e9cfe528..4b1844dfe002 100644 --- a/store/prefix/store_test.go +++ b/store/prefix/store_test.go @@ -4,18 +4,18 @@ import ( "crypto/rand" "testing" - "github.com/cosmos/cosmos-sdk/store/cachekv" + "github.com/eligion/cosmos-sdk/store/cachekv" "github.com/stretchr/testify/require" dbm "github.com/tendermint/tm-db" tiavl "github.com/cosmos/iavl" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/gaskv" - "github.com/cosmos/cosmos-sdk/store/iavl" - "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/gaskv" + "github.com/eligion/cosmos-sdk/store/iavl" + "github.com/eligion/cosmos-sdk/store/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // copied from iavl/store_test.go diff --git a/store/reexport.go b/store/reexport.go index 8a365ab758fd..c611713f2d74 100644 --- a/store/reexport.go +++ b/store/reexport.go @@ -1,7 +1,7 @@ package store import ( - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" ) // Import cosmos-sdk/types/store.go for convenience. diff --git a/store/rootmulti/dbadapter.go b/store/rootmulti/dbadapter.go index 4d6e5afeb875..1731e141ceeb 100644 --- a/store/rootmulti/dbadapter.go +++ b/store/rootmulti/dbadapter.go @@ -1,8 +1,8 @@ package rootmulti import ( - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/types" ) var commithash = []byte("FAKE_HASH") diff --git a/store/rootmulti/proof.go b/store/rootmulti/proof.go index fc8925b7f20d..c929c0ef44fd 100644 --- a/store/rootmulti/proof.go +++ b/store/rootmulti/proof.go @@ -3,7 +3,7 @@ package rootmulti import ( "github.com/tendermint/tendermint/crypto/merkle" - storetypes "github.com/cosmos/cosmos-sdk/store/types" + storetypes "github.com/eligion/cosmos-sdk/store/types" ) // RequireProof returns whether proof is required for the subpath. diff --git a/store/rootmulti/proof_test.go b/store/rootmulti/proof_test.go index 10f8397e7284..e290922557d8 100644 --- a/store/rootmulti/proof_test.go +++ b/store/rootmulti/proof_test.go @@ -7,8 +7,8 @@ import ( abci "github.com/tendermint/tendermint/abci/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/iavl" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/iavl" + "github.com/eligion/cosmos-sdk/store/types" ) func TestVerifyIAVLStoreQueryProof(t *testing.T) { diff --git a/store/rootmulti/store.go b/store/rootmulti/store.go index 17b9fd592bd3..3affa933faa7 100644 --- a/store/rootmulti/store.go +++ b/store/rootmulti/store.go @@ -17,17 +17,17 @@ import ( abci "github.com/tendermint/tendermint/abci/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/snapshots" - snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types" - "github.com/cosmos/cosmos-sdk/store/cachemulti" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/iavl" - "github.com/cosmos/cosmos-sdk/store/listenkv" - "github.com/cosmos/cosmos-sdk/store/mem" - "github.com/cosmos/cosmos-sdk/store/tracekv" - "github.com/cosmos/cosmos-sdk/store/transient" - "github.com/cosmos/cosmos-sdk/store/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/snapshots" + snapshottypes "github.com/eligion/cosmos-sdk/snapshots/types" + "github.com/eligion/cosmos-sdk/store/cachemulti" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/iavl" + "github.com/eligion/cosmos-sdk/store/listenkv" + "github.com/eligion/cosmos-sdk/store/mem" + "github.com/eligion/cosmos-sdk/store/tracekv" + "github.com/eligion/cosmos-sdk/store/transient" + "github.com/eligion/cosmos-sdk/store/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) const ( diff --git a/store/rootmulti/store_test.go b/store/rootmulti/store_test.go index cf7653b076cb..729a43308d43 100644 --- a/store/rootmulti/store_test.go +++ b/store/rootmulti/store_test.go @@ -17,15 +17,15 @@ import ( abci "github.com/tendermint/tendermint/abci/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/codec" - codecTypes "github.com/cosmos/cosmos-sdk/codec/types" - snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types" - "github.com/cosmos/cosmos-sdk/store/cachemulti" - "github.com/cosmos/cosmos-sdk/store/iavl" - sdkmaps "github.com/cosmos/cosmos-sdk/store/internal/maps" - "github.com/cosmos/cosmos-sdk/store/listenkv" - "github.com/cosmos/cosmos-sdk/store/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec" + codecTypes "github.com/eligion/cosmos-sdk/codec/types" + snapshottypes "github.com/eligion/cosmos-sdk/snapshots/types" + "github.com/eligion/cosmos-sdk/store/cachemulti" + "github.com/eligion/cosmos-sdk/store/iavl" + sdkmaps "github.com/eligion/cosmos-sdk/store/internal/maps" + "github.com/eligion/cosmos-sdk/store/listenkv" + "github.com/eligion/cosmos-sdk/store/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) func TestStoreType(t *testing.T) { @@ -821,7 +821,7 @@ func BenchmarkMultistoreSnapshotRestore1M(b *testing.B) { } func benchmarkMultistoreSnapshot(b *testing.B, stores uint8, storeKeys uint64) { - b.Skip("Noisy with slow setup time, please see https://github.com/cosmos/cosmos-sdk/issues/8855.") + b.Skip("Noisy with slow setup time, please see https://github.com/eligion/cosmos-sdk/issues/8855.") b.ReportAllocs() b.StopTimer() @@ -851,7 +851,7 @@ func benchmarkMultistoreSnapshot(b *testing.B, stores uint8, storeKeys uint64) { } func benchmarkMultistoreSnapshotRestore(b *testing.B, stores uint8, storeKeys uint64) { - b.Skip("Noisy with slow setup time, please see https://github.com/cosmos/cosmos-sdk/issues/8855.") + b.Skip("Noisy with slow setup time, please see https://github.com/eligion/cosmos-sdk/issues/8855.") b.ReportAllocs() b.StopTimer() diff --git a/store/store.go b/store/store.go index 2c068c413f47..ab31545db765 100644 --- a/store/store.go +++ b/store/store.go @@ -3,9 +3,9 @@ package store import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/cache" - "github.com/cosmos/cosmos-sdk/store/rootmulti" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/cache" + "github.com/eligion/cosmos-sdk/store/rootmulti" + "github.com/eligion/cosmos-sdk/store/types" ) func NewCommitMultiStore(db dbm.DB) types.CommitMultiStore { diff --git a/store/tracekv/store.go b/store/tracekv/store.go index a454edc7dd5f..e6715e76e66a 100644 --- a/store/tracekv/store.go +++ b/store/tracekv/store.go @@ -5,8 +5,8 @@ import ( "encoding/json" "io" - "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/types/errors" ) const ( diff --git a/store/tracekv/store_test.go b/store/tracekv/store_test.go index db9a981237f4..006f985c3373 100644 --- a/store/tracekv/store_test.go +++ b/store/tracekv/store_test.go @@ -10,10 +10,10 @@ import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/prefix" - "github.com/cosmos/cosmos-sdk/store/tracekv" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/prefix" + "github.com/eligion/cosmos-sdk/store/tracekv" + "github.com/eligion/cosmos-sdk/store/types" ) func bz(s string) []byte { return []byte(s) } diff --git a/store/transient/store.go b/store/transient/store.go index 572ab55f7697..6ad56f55cf33 100644 --- a/store/transient/store.go +++ b/store/transient/store.go @@ -3,8 +3,8 @@ package transient import ( dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/dbadapter" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/dbadapter" + "github.com/eligion/cosmos-sdk/store/types" ) var _ types.Committer = (*Store)(nil) diff --git a/store/transient/store_test.go b/store/transient/store_test.go index 632b561b618a..afe53b5cf9a5 100644 --- a/store/transient/store_test.go +++ b/store/transient/store_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/store/transient" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/transient" + "github.com/eligion/cosmos-sdk/store/types" ) var k, v = []byte("hello"), []byte("world") diff --git a/store/types/commit_info.go b/store/types/commit_info.go index e713040739f8..3bb8344b9bd0 100644 --- a/store/types/commit_info.go +++ b/store/types/commit_info.go @@ -6,8 +6,8 @@ import ( ics23 "github.com/confio/ics23/go" tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" - sdkmaps "github.com/cosmos/cosmos-sdk/store/internal/maps" - sdkproofs "github.com/cosmos/cosmos-sdk/store/internal/proofs" + sdkmaps "github.com/eligion/cosmos-sdk/store/internal/maps" + sdkproofs "github.com/eligion/cosmos-sdk/store/internal/proofs" ) // GetHash returns the GetHash from the CommitID. diff --git a/store/types/errors.go b/store/types/errors.go index 780fcdef37ab..2736e683103c 100644 --- a/store/types/errors.go +++ b/store/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) const StoreCodespace = "store" diff --git a/store/types/gas.go b/store/types/gas.go index fe72cc520701..e140e4cf1aaf 100644 --- a/store/types/gas.go +++ b/store/types/gas.go @@ -105,7 +105,7 @@ func (g *basicGasMeter) ConsumeGas(amount Gas, descriptor string) { // // Use case: This functionality enables refunding gas to the transaction or block gas pools so that // EVM-compatible chains can fully support the go-ethereum StateDb interface. -// See https://github.com/cosmos/cosmos-sdk/pull/9403 for reference. +// See https://github.com/eligion/cosmos-sdk/pull/9403 for reference. func (g *basicGasMeter) RefundGas(amount Gas, descriptor string) { if g.consumed < amount { panic(ErrorNegativeGasConsumed{Descriptor: descriptor}) @@ -163,7 +163,7 @@ func (g *infiniteGasMeter) ConsumeGas(amount Gas, descriptor string) { // // Use case: This functionality enables refunding gas to the trasaction or block gas pools so that // EVM-compatible chains can fully support the go-ethereum StateDb interface. -// See https://github.com/cosmos/cosmos-sdk/pull/9403 for reference. +// See https://github.com/eligion/cosmos-sdk/pull/9403 for reference. func (g *infiniteGasMeter) RefundGas(amount Gas, descriptor string) { if g.consumed < amount { panic(ErrorNegativeGasConsumed{Descriptor: descriptor}) diff --git a/store/types/iterator_test.go b/store/types/iterator_test.go index 686aa1123708..0009469570d6 100644 --- a/store/types/iterator_test.go +++ b/store/types/iterator_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/iavl" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/iavl" + "github.com/eligion/cosmos-sdk/store/types" ) func newMemTestKVStore(t *testing.T) types.KVStore { diff --git a/store/types/listening.go b/store/types/listening.go index 2294a5ada531..04da3aee4120 100644 --- a/store/types/listening.go +++ b/store/types/listening.go @@ -3,7 +3,7 @@ package types import ( "io" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" ) // WriteListener interface for streaming data out from a listenkv.Store diff --git a/store/types/listening_test.go b/store/types/listening_test.go index af1362e4f938..9bcacf54d3e6 100644 --- a/store/types/listening_test.go +++ b/store/types/listening_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" ) func TestNewStoreKVPairWriteListener(t *testing.T) { diff --git a/store/types/proof.go b/store/types/proof.go index db8f673f46cd..92e683fb1a06 100644 --- a/store/types/proof.go +++ b/store/types/proof.go @@ -5,7 +5,7 @@ import ( "github.com/tendermint/tendermint/crypto/merkle" tmmerkle "github.com/tendermint/tendermint/proto/tendermint/crypto" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) const ( diff --git a/store/types/store.go b/store/types/store.go index 1bad58ea2eba..34602c64c5bd 100644 --- a/store/types/store.go +++ b/store/types/store.go @@ -8,8 +8,8 @@ import ( tmstrings "github.com/tendermint/tendermint/libs/strings" dbm "github.com/tendermint/tm-db" - snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types" - "github.com/cosmos/cosmos-sdk/types/kv" + snapshottypes "github.com/eligion/cosmos-sdk/snapshots/types" + "github.com/eligion/cosmos-sdk/types/kv" ) type Store interface { diff --git a/store/types/utils.go b/store/types/utils.go index 22c8ca0761f9..3005574c43fe 100644 --- a/store/types/utils.go +++ b/store/types/utils.go @@ -3,7 +3,7 @@ package types import ( "bytes" - "github.com/cosmos/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/types/kv" ) // Iterator over all the keys with a certain prefix in ascending order diff --git a/store/types/utils_test.go b/store/types/utils_test.go index 32064d7e1821..7741d820cdf9 100644 --- a/store/types/utils_test.go +++ b/store/types/utils_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/rootmulti" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/rootmulti" + "github.com/eligion/cosmos-sdk/store/types" ) func initTestStores(t *testing.T) (types.KVStore, types.KVStore) { diff --git a/store/types/validity_test.go b/store/types/validity_test.go index 0f5d0466a346..03d84ce2e6e8 100644 --- a/store/types/validity_test.go +++ b/store/types/validity_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" ) func TestAssertValidKey(t *testing.T) { diff --git a/tests/mocks/account_retriever.go b/tests/mocks/account_retriever.go index c75e1d059b05..47bda097c181 100644 --- a/tests/mocks/account_retriever.go +++ b/tests/mocks/account_retriever.go @@ -7,9 +7,9 @@ package mocks import ( reflect "reflect" - client "github.com/cosmos/cosmos-sdk/client" - types "github.com/cosmos/cosmos-sdk/crypto/types" - types0 "github.com/cosmos/cosmos-sdk/types" + client "github.com/eligion/cosmos-sdk/client" + types "github.com/eligion/cosmos-sdk/crypto/types" + types0 "github.com/eligion/cosmos-sdk/types" gomock "github.com/golang/mock/gomock" ) diff --git a/tests/mocks/types_handler.go b/tests/mocks/types_handler.go index 1be212dcf2e2..2a49b9b23abe 100644 --- a/tests/mocks/types_handler.go +++ b/tests/mocks/types_handler.go @@ -9,7 +9,7 @@ package mocks import ( reflect "reflect" - types "github.com/cosmos/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" gomock "github.com/golang/mock/gomock" ) diff --git a/tests/mocks/types_invariant.go b/tests/mocks/types_invariant.go index c6b9fe94d113..59aef638abaa 100644 --- a/tests/mocks/types_invariant.go +++ b/tests/mocks/types_invariant.go @@ -7,7 +7,7 @@ package mocks import ( reflect "reflect" - types "github.com/cosmos/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" gomock "github.com/golang/mock/gomock" ) diff --git a/tests/mocks/types_module_module.go b/tests/mocks/types_module_module.go index 772dc5de6ebe..2b554eb2ca47 100644 --- a/tests/mocks/types_module_module.go +++ b/tests/mocks/types_module_module.go @@ -8,11 +8,11 @@ import ( json "encoding/json" reflect "reflect" - client "github.com/cosmos/cosmos-sdk/client" - codec "github.com/cosmos/cosmos-sdk/codec" - types "github.com/cosmos/cosmos-sdk/codec/types" - types0 "github.com/cosmos/cosmos-sdk/types" - module "github.com/cosmos/cosmos-sdk/types/module" + client "github.com/eligion/cosmos-sdk/client" + codec "github.com/eligion/cosmos-sdk/codec" + types "github.com/eligion/cosmos-sdk/codec/types" + types0 "github.com/eligion/cosmos-sdk/types" + module "github.com/eligion/cosmos-sdk/types/module" gomock "github.com/golang/mock/gomock" mux "github.com/gorilla/mux" runtime "github.com/grpc-ecosystem/grpc-gateway/runtime" diff --git a/tests/mocks/types_router.go b/tests/mocks/types_router.go index 27f8fe56b8f1..be78a6d454c2 100644 --- a/tests/mocks/types_router.go +++ b/tests/mocks/types_router.go @@ -7,7 +7,7 @@ package mocks import ( reflect "reflect" - types "github.com/cosmos/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" gomock "github.com/golang/mock/gomock" ) diff --git a/testutil/cli/cmd.go b/testutil/cli/cmd.go index 1f09ae92966c..20dc00b5b8b6 100644 --- a/testutil/cli/cmd.go +++ b/testutil/cli/cmd.go @@ -5,8 +5,8 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/testutil" ) // ExecTestCLICmd builds the client context, mocks the output and executes the command. diff --git a/testutil/context.go b/testutil/context.go index 2fb9865a2696..439290548b39 100644 --- a/testutil/context.go +++ b/testutil/context.go @@ -5,8 +5,8 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/store" + sdk "github.com/eligion/cosmos-sdk/types" ) // DefaultContext creates a sdk.Context with a fresh MemDB that can be used in tests. diff --git a/testutil/ioutil_test.go b/testutil/ioutil_test.go index 415e7842c15d..0eb0e1d754bd 100644 --- a/testutil/ioutil_test.go +++ b/testutil/ioutil_test.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil" ) func TestApplyMockIO(t *testing.T) { diff --git a/testutil/key.go b/testutil/key.go index 142f53c24e00..5af300917bb9 100644 --- a/testutil/key.go +++ b/testutil/key.go @@ -3,8 +3,8 @@ package testutil import ( "fmt" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/keyring" + sdk "github.com/eligion/cosmos-sdk/types" ) // GenerateCoinKey generates a new key mnemonic along with its addrress. diff --git a/testutil/key_test.go b/testutil/key_test.go index d3fec6ef502f..6565d98c7c7e 100644 --- a/testutil/key_test.go +++ b/testutil/key_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/types" ) func TestGenerateCoinKey(t *testing.T) { diff --git a/testutil/network/network.go b/testutil/network/network.go index 9c5bf6f3b67a..6ba174b3feb1 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -25,27 +25,27 @@ import ( dbm "github.com/tendermint/tm-db" "google.golang.org/grpc" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/server/api" - srvconfig "github.com/cosmos/cosmos-sdk/server/config" - servertypes "github.com/cosmos/cosmos-sdk/server/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/simapp/params" - storetypes "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/server/api" + srvconfig "github.com/eligion/cosmos-sdk/server/config" + servertypes "github.com/eligion/cosmos-sdk/server/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp/params" + storetypes "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/testutil" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/genutil" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // package-wide network lock to only allow one test network at a time diff --git a/testutil/network/network_test.go b/testutil/network/network_test.go index 3e45309f2f12..dc4914a44698 100644 --- a/testutil/network/network_test.go +++ b/testutil/network/network_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" ) type IntegrationTestSuite struct { diff --git a/testutil/network/util.go b/testutil/network/util.go index e7542113a87b..1534165100d9 100644 --- a/testutil/network/util.go +++ b/testutil/network/util.go @@ -14,13 +14,13 @@ import ( "github.com/tendermint/tendermint/types" tmtime "github.com/tendermint/tendermint/types/time" - "github.com/cosmos/cosmos-sdk/server/api" - servergrpc "github.com/cosmos/cosmos-sdk/server/grpc" - srvtypes "github.com/cosmos/cosmos-sdk/server/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/server/api" + servergrpc "github.com/eligion/cosmos-sdk/server/grpc" + srvtypes "github.com/eligion/cosmos-sdk/server/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/genutil" + genutiltypes "github.com/eligion/cosmos-sdk/x/genutil/types" ) func startInProcess(cfg Config, val *Validator) error { diff --git a/testutil/testdata/animal.go b/testutil/testdata/animal.go index 96981a40b9b4..bdf3a312b07a 100644 --- a/testutil/testdata/animal.go +++ b/testutil/testdata/animal.go @@ -8,7 +8,7 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" ) type Animal interface { diff --git a/testutil/testdata/codec.go b/testutil/testdata/codec.go index d5c6e8abd2f2..5c55953588e3 100644 --- a/testutil/testdata/codec.go +++ b/testutil/testdata/codec.go @@ -3,9 +3,9 @@ package testdata import ( amino "github.com/tendermint/go-amino" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" ) func NewTestInterfaceRegistry() types.InterfaceRegistry { diff --git a/testutil/testdata/grpc_query.go b/testutil/testdata/grpc_query.go index 6e2b64152995..cf7c593b9a5c 100644 --- a/testutil/testdata/grpc_query.go +++ b/testutil/testdata/grpc_query.go @@ -6,7 +6,7 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" ) type QueryImpl struct{} diff --git a/testutil/testdata/query.pb.go b/testutil/testdata/query.pb.go index e7d38dc7ceb8..88aebdd4c9f0 100644 --- a/testutil/testdata/query.pb.go +++ b/testutil/testdata/query.pb.go @@ -6,7 +6,7 @@ package testdata import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" diff --git a/testutil/testdata/query.proto b/testutil/testdata/query.proto index 3a60acaad1f8..794e75140a72 100644 --- a/testutil/testdata/query.proto +++ b/testutil/testdata/query.proto @@ -4,10 +4,10 @@ package testdata; import "google/protobuf/any.proto"; import "testdata.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; +option go_package = "github.com/eligion/cosmos-sdk/testutil/testdata"; // Query tests the protobuf Query service as defined in -// https://github.com/cosmos/cosmos-sdk/issues/5921. +// https://github.com/eligion/cosmos-sdk/issues/5921. service Query { rpc Echo(EchoRequest) returns (EchoResponse); rpc SayHello(SayHelloRequest) returns (SayHelloResponse); diff --git a/testutil/testdata/testdata.pb.go b/testutil/testdata/testdata.pb.go index 400e64936810..9f615265e6a4 100644 --- a/testutil/testdata/testdata.pb.go +++ b/testutil/testdata/testdata.pb.go @@ -5,7 +5,7 @@ package testdata import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" diff --git a/testutil/testdata/testdata.proto b/testutil/testdata/testdata.proto index 585c2303c139..3faf900667d2 100644 --- a/testutil/testdata/testdata.proto +++ b/testutil/testdata/testdata.proto @@ -4,7 +4,7 @@ package testdata; import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; +option go_package = "github.com/eligion/cosmos-sdk/testutil/testdata"; message Dog { string size = 1; diff --git a/testutil/testdata/tx.go b/testutil/testdata/tx.go index e6ffbb8060e0..bfc4319d84ea 100644 --- a/testutil/testdata/tx.go +++ b/testutil/testdata/tx.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256r1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // KeyTestPubAddr generates a new secp256k1 keypair. diff --git a/testutil/testdata/tx.pb.go b/testutil/testdata/tx.pb.go index 694a045fffae..722d39f817af 100644 --- a/testutil/testdata/tx.pb.go +++ b/testutil/testdata/tx.pb.go @@ -117,7 +117,7 @@ func (m *MsgCreateDogResponse) GetName() string { } // TestMsg is msg type for testing protobuf message using any, as defined in -// https://github.com/cosmos/cosmos-sdk/issues/6213. +// https://github.com/eligion/cosmos-sdk/issues/6213. type TestMsg struct { Signers []string `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"` } diff --git a/testutil/testdata/tx.proto b/testutil/testdata/tx.proto index eaeb9580e5e2..04afe40d2541 100644 --- a/testutil/testdata/tx.proto +++ b/testutil/testdata/tx.proto @@ -4,10 +4,10 @@ package testdata; import "gogoproto/gogo.proto"; import "testdata.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; +option go_package = "github.com/eligion/cosmos-sdk/testutil/testdata"; // Msg tests the Protobuf message service as defined in -// https://github.com/cosmos/cosmos-sdk/issues/7500. +// https://github.com/eligion/cosmos-sdk/issues/7500. service Msg { rpc CreateDog(MsgCreateDog) returns (MsgCreateDogResponse); } @@ -21,7 +21,7 @@ message MsgCreateDogResponse { } // TestMsg is msg type for testing protobuf message using any, as defined in -// https://github.com/cosmos/cosmos-sdk/issues/6213. +// https://github.com/eligion/cosmos-sdk/issues/6213. message TestMsg { option (gogoproto.goproto_getters) = false; repeated string signers = 1; diff --git a/testutil/testdata/unknonwnproto.pb.go b/testutil/testdata/unknonwnproto.pb.go index eb4abf1fff10..6cb486c6bc4d 100644 --- a/testutil/testdata/unknonwnproto.pb.go +++ b/testutil/testdata/unknonwnproto.pb.go @@ -6,8 +6,8 @@ package testdata import ( encoding_binary "encoding/binary" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" - tx "github.com/cosmos/cosmos-sdk/types/tx" + types "github.com/eligion/cosmos-sdk/codec/types" + tx "github.com/eligion/cosmos-sdk/types/tx" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" diff --git a/testutil/testdata/unknonwnproto.proto b/testutil/testdata/unknonwnproto.proto index 7bf1ce6bba71..fc1e66689e75 100644 --- a/testutil/testdata/unknonwnproto.proto +++ b/testutil/testdata/unknonwnproto.proto @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto"; import "google/protobuf/any.proto"; import "cosmos/tx/v1beta1/tx.proto"; -option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata"; +option go_package = "github.com/eligion/cosmos-sdk/testutil/testdata"; message Customer1 { int32 id = 1; diff --git a/types/abci.pb.go b/types/abci.pb.go index 2e5a4604a7a4..9fc09ea2ae71 100644 --- a/types/abci.pb.go +++ b/types/abci.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types1 "github.com/tendermint/tendermint/abci/types" diff --git a/types/address.go b/types/address.go index 8ae46d119c43..0b1a0ca0e42e 100644 --- a/types/address.go +++ b/types/address.go @@ -12,11 +12,11 @@ import ( "github.com/hashicorp/golang-lru/simplelru" yaml "gopkg.in/yaml.v2" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/internal/conv" - "github.com/cosmos/cosmos-sdk/types/address" - "github.com/cosmos/cosmos-sdk/types/bech32" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/internal/conv" + "github.com/eligion/cosmos-sdk/types/address" + "github.com/eligion/cosmos-sdk/types/bech32" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) const ( diff --git a/types/address/hash.go b/types/address/hash.go index 2e5496897a60..c8c2c977a2fa 100644 --- a/types/address/hash.go +++ b/types/address/hash.go @@ -6,8 +6,8 @@ import ( "fmt" "sort" - "github.com/cosmos/cosmos-sdk/internal/conv" - "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/internal/conv" + "github.com/eligion/cosmos-sdk/types/errors" ) // Len is the length of base addresses diff --git a/types/address/store_key.go b/types/address/store_key.go index 948491972936..72b432d84c50 100644 --- a/types/address/store_key.go +++ b/types/address/store_key.go @@ -1,7 +1,7 @@ package address import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // MaxAddrLen is the maximum allowed length (in bytes) for an address. diff --git a/types/address/store_key_test.go b/types/address/store_key_test.go index ac28f814cc36..bfc3a396fd5b 100644 --- a/types/address/store_key_test.go +++ b/types/address/store_key_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/types/address" + "github.com/eligion/cosmos-sdk/types/address" ) func TestStoreKeySuite(t *testing.T) { diff --git a/types/address_race_test.go b/types/address_race_test.go index c603df976207..6ef1a50c0d0d 100644 --- a/types/address_race_test.go +++ b/types/address_race_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types" ) // generates AccAddress with `prefix` and calls String method diff --git a/types/address_test.go b/types/address_test.go index bc79fd43363b..ad63ee09bdff 100644 --- a/types/address_test.go +++ b/types/address_test.go @@ -12,11 +12,11 @@ import ( "github.com/stretchr/testify/suite" "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/bech32/legacybech32" ) type addressTestSuite struct { diff --git a/types/bech32/bech32_test.go b/types/bech32/bech32_test.go index ba2beb783220..5269669c7c1f 100644 --- a/types/bech32/bech32_test.go +++ b/types/bech32/bech32_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/types/bech32" + "github.com/eligion/cosmos-sdk/types/bech32" ) func TestEncodeAndDecode(t *testing.T) { diff --git a/types/bech32/legacybech32/pk.go b/types/bech32/legacybech32/pk.go index 114e05944f87..d715e980d0f2 100644 --- a/types/bech32/legacybech32/pk.go +++ b/types/bech32/legacybech32/pk.go @@ -3,10 +3,10 @@ package legacybech32 import ( - "github.com/cosmos/cosmos-sdk/codec/legacy" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32" + "github.com/eligion/cosmos-sdk/codec/legacy" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/bech32" ) // TODO: when removing this package remove: diff --git a/types/bech32/legacybech32/pk_bench_test.go b/types/bech32/legacybech32/pk_bench_test.go index 087b2da3d332..49de85224c08 100644 --- a/types/bech32/legacybech32/pk_bench_test.go +++ b/types/bech32/legacybech32/pk_bench_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" ) func BenchmarkAccAddressString(b *testing.B) { diff --git a/types/bech32/legacybech32/pk_test.go b/types/bech32/legacybech32/pk_test.go index 26183475bd78..ea8e4c1d729e 100644 --- a/types/bech32/legacybech32/pk_test.go +++ b/types/bech32/legacybech32/pk_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/ledger" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/ledger" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestBeach32ifPbKey(t *testing.T) { diff --git a/types/bench_test.go b/types/bench_test.go index e9ed9fa12bff..bff8a8f75c40 100644 --- a/types/bench_test.go +++ b/types/bench_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types" ) var coinStrs = []string{ diff --git a/types/codec.go b/types/codec.go index 69202d488fc6..d2f6df94667c 100644 --- a/types/codec.go +++ b/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" ) const ( diff --git a/types/coin_test.go b/types/coin_test.go index 240b15d11de0..7a9f6300082c 100644 --- a/types/coin_test.go +++ b/types/coin_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" ) var ( diff --git a/types/config.go b/types/config.go index 00b701a025d7..a36e0a1133c9 100644 --- a/types/config.go +++ b/types/config.go @@ -5,7 +5,7 @@ import ( "fmt" "sync" - "github.com/cosmos/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/version" ) // DefaultKeyringServiceName defines a default service name for the keyring. diff --git a/types/config_test.go b/types/config_test.go index df281b1f852a..05fa96aadb79 100644 --- a/types/config_test.go +++ b/types/config_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/suite" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type configTestSuite struct { diff --git a/types/context.go b/types/context.go index 35030dad9a96..45db61615827 100644 --- a/types/context.go +++ b/types/context.go @@ -10,8 +10,8 @@ import ( "github.com/tendermint/tendermint/libs/log" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/store/gaskv" - stypes "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/gaskv" + stypes "github.com/eligion/cosmos-sdk/store/types" ) /* diff --git a/types/context_test.go b/types/context_test.go index 9533a52ee2e3..4fc77e9c3f89 100644 --- a/types/context_test.go +++ b/types/context_test.go @@ -10,10 +10,10 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/tests/mocks" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/tests/mocks" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/types" ) type contextTestSuite struct { diff --git a/types/dec_coin_test.go b/types/dec_coin_test.go index 938f7dddffb4..8a453861171c 100644 --- a/types/dec_coin_test.go +++ b/types/dec_coin_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/suite" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type decCoinTestSuite struct { diff --git a/types/decimal_test.go b/types/decimal_test.go index 16a1561cb3ee..db1315702a97 100644 --- a/types/decimal_test.go +++ b/types/decimal_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/suite" "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type decimalTestSuite struct { diff --git a/types/errors/abci_test.go b/types/errors/abci_test.go index 02c12e7bbdd6..c128b7026de4 100644 --- a/types/errors/abci_test.go +++ b/types/errors/abci_test.go @@ -143,7 +143,7 @@ func (s *abciTestSuite) TestABCIInfoStacktrace() { }, } - const thisTestSrc = "github.com/cosmos/cosmos-sdk/types/errors.(*abciTestSuite).TestABCIInfoStacktrace" + const thisTestSrc = "github.com/eligion/cosmos-sdk/types/errors.(*abciTestSuite).TestABCIInfoStacktrace" for testName, tc := range cases { _, _, log := ABCIInfo(tc.err, tc.debug) diff --git a/types/errors/stacktrace.go b/types/errors/stacktrace.go index f7079c56d831..e89622a54016 100644 --- a/types/errors/stacktrace.go +++ b/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/cosmos/cosmos-sdk/types/errors.Wrap", - "github.com/cosmos/cosmos-sdk/types/errors.Wrapf", - "github.com/cosmos/cosmos-sdk/types/errors.WithType", + "github.com/eligion/cosmos-sdk/types/errors.Wrap", + "github.com/eligion/cosmos-sdk/types/errors.Wrapf", + "github.com/eligion/cosmos-sdk/types/errors.WithType", // runtime are added on panics "runtime.", // _test is defined in coverage tests, causing failure diff --git a/types/errors/stacktrace_test.go b/types/errors/stacktrace_test.go index 06eb829f0f44..8d8ee4a76918 100644 --- a/types/errors/stacktrace_test.go +++ b/types/errors/stacktrace_test.go @@ -32,8 +32,8 @@ func (s *errorsTestSuite) TestStackTrace() { // Wrapping code is unwanted in the errors stack trace. unwantedSrc := []string{ - "github.com/cosmos/cosmos-sdk/types/errors.Wrap\n", - "github.com/cosmos/cosmos-sdk/types/errors.Wrapf\n", + "github.com/eligion/cosmos-sdk/types/errors.Wrap\n", + "github.com/eligion/cosmos-sdk/types/errors.Wrapf\n", "runtime.goexit\n", } const thisTestSrc = "types/errors/stacktrace_test.go" diff --git a/types/events.go b/types/events.go index 9c495a9da2a7..9ead952a1cb7 100644 --- a/types/events.go +++ b/types/events.go @@ -11,7 +11,7 @@ import ( proto "github.com/gogo/protobuf/proto" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" ) // ---------------------------------------------------------------------------- diff --git a/types/events_test.go b/types/events_test.go index 7363355fb1b8..71b50419bd7c 100644 --- a/types/events_test.go +++ b/types/events_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - testdata "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + testdata "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) type eventsTestSuite struct { diff --git a/types/handler_test.go b/types/handler_test.go index 449d1b602f5c..71f106afae48 100644 --- a/types/handler_test.go +++ b/types/handler_test.go @@ -6,8 +6,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/tests/mocks" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/tests/mocks" + sdk "github.com/eligion/cosmos-sdk/types" ) type handlerTestSuite struct { diff --git a/types/int_test.go b/types/int_test.go index a6ec8c6d48bd..f3f2823fbb39 100644 --- a/types/int_test.go +++ b/types/int_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/suite" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type intTestSuite struct { diff --git a/types/invariant_test.go b/types/invariant_test.go index dc6fbcf6a9c9..738257cb94a9 100644 --- a/types/invariant_test.go +++ b/types/invariant_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/suite" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type invariantTestSuite struct { diff --git a/types/kv/list.go b/types/kv/list.go index 9e928c84912b..e13736762622 100644 --- a/types/kv/list.go +++ b/types/kv/list.go @@ -2,7 +2,7 @@ package kv // This code was copied from golang.org/pkg/container/list, but specially adapted // for use with kv.Pair to avoid the type assertion CPU expense of using Value with -// an interface, per https://github.com/cosmos/cosmos-sdk/issues/8810 +// an interface, per https://github.com/eligion/cosmos-sdk/issues/8810 // // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/types/module/configurator.go b/types/module/configurator.go index 07c3b50942cc..c1d105e648d3 100644 --- a/types/module/configurator.go +++ b/types/module/configurator.go @@ -5,15 +5,15 @@ import ( "github.com/gogo/protobuf/grpc" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // Configurator provides the hooks to allow modules to configure and register // their services in the RegisterServices method. It is designed to eventually // support module object capabilities isolation as described in -// https://github.com/cosmos/cosmos-sdk/issues/7093 +// https://github.com/eligion/cosmos-sdk/issues/7093 type Configurator interface { // MsgServer returns a grpc.Server instance which allows registering services // that will handle TxBody.messages in transactions. These Msg's WILL NOT diff --git a/types/module/module.go b/types/module/module.go index c1955c8b8498..cc76d3b486df 100644 --- a/types/module/module.go +++ b/types/module/module.go @@ -38,11 +38,11 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // AppModuleBasic is the standard form for basic non-dependant elements of an application module. @@ -125,7 +125,7 @@ func (bm BasicManager) RegisterGRPCGatewayRoutes(clientCtx client.Context, rtr * // AddTxCommands adds all tx commands to the rootTxCmd. // // TODO: Remove clientCtx argument. -// REF: https://github.com/cosmos/cosmos-sdk/issues/6571 +// REF: https://github.com/eligion/cosmos-sdk/issues/6571 func (bm BasicManager) AddTxCommands(rootTxCmd *cobra.Command) { for _, b := range bm { if cmd := b.GetTxCmd(); cmd != nil { @@ -137,7 +137,7 @@ func (bm BasicManager) AddTxCommands(rootTxCmd *cobra.Command) { // AddQueryCommands adds all query commands to the rootQueryCmd. // // TODO: Remove clientCtx argument. -// REF: https://github.com/cosmos/cosmos-sdk/issues/6571 +// REF: https://github.com/eligion/cosmos-sdk/issues/6571 func (bm BasicManager) AddQueryCommands(rootQueryCmd *cobra.Command) { for _, b := range bm { if cmd := b.GetQueryCmd(); cmd != nil { @@ -536,7 +536,7 @@ func (m *Manager) ModuleNames() []string { // DefaultMigrationsOrder returns a default migrations order: ascending alphabetical by module name, // except x/auth which will run last, see: -// https://github.com/cosmos/cosmos-sdk/issues/10591 +// https://github.com/eligion/cosmos-sdk/issues/10591 func DefaultMigrationsOrder(modules []string) []string { const authName = "auth" out := make([]string, 0, len(modules)) diff --git a/types/module/module_test.go b/types/module/module_test.go index 9f7a21f5c50c..8ef259cad149 100644 --- a/types/module/module_test.go +++ b/types/module/module_test.go @@ -5,7 +5,7 @@ import ( "errors" "testing" - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" "github.com/golang/mock/gomock" "github.com/gorilla/mux" @@ -13,11 +13,11 @@ import ( "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/tests/mocks" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/tests/mocks" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" ) var errFoo = errors.New("dummy") diff --git a/types/module/simulation.go b/types/module/simulation.go index 252cf268f837..4f44713db209 100644 --- a/types/module/simulation.go +++ b/types/module/simulation.go @@ -6,9 +6,9 @@ import ( "math/rand" "time" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/simulation" ) // AppModuleSimulation defines the standard functions that every module should expose diff --git a/types/msgservice/msg_service.go b/types/msgservice/msg_service.go index 382913590cad..47d3e6becf3a 100644 --- a/types/msgservice/msg_service.go +++ b/types/msgservice/msg_service.go @@ -6,8 +6,8 @@ import ( "google.golang.org/grpc" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // RegisterMsgServiceDesc registers all type_urls from Msg services described diff --git a/types/query/filtered_pagination.go b/types/query/filtered_pagination.go index 2856d513f225..1ab221d69308 100644 --- a/types/query/filtered_pagination.go +++ b/types/query/filtered_pagination.go @@ -3,7 +3,7 @@ package query import ( "fmt" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" ) // FilteredPaginate does pagination of all the results in the PrefixStore based on the diff --git a/types/query/filtered_pagination_test.go b/types/query/filtered_pagination_test.go index 913211b28472..e4f22f29b9ae 100644 --- a/types/query/filtered_pagination_test.go +++ b/types/query/filtered_pagination_test.go @@ -3,13 +3,13 @@ package query_test import ( "fmt" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/bank/types" ) var addr1 = sdk.AccAddress([]byte("addr1")) diff --git a/types/query/pagination.go b/types/query/pagination.go index 3244e283259e..b0fd040e9b63 100644 --- a/types/query/pagination.go +++ b/types/query/pagination.go @@ -8,7 +8,7 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/store/types" ) // DefaultLimit is the default `limit` for queries diff --git a/types/query/pagination_test.go b/types/query/pagination_test.go index da07a5e1b093..e0ed1d43cf4a 100644 --- a/types/query/pagination_test.go +++ b/types/query/pagination_test.go @@ -9,16 +9,16 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/store" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/store" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/bank/types" ) const ( diff --git a/types/rest/rest.go b/types/rest/rest.go index 1f4d1f50c40a..4b28441e55ba 100644 --- a/types/rest/rest.go +++ b/types/rest/rest.go @@ -15,10 +15,10 @@ import ( "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/legacy" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/legacy" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/types/rest/rest_test.go b/types/rest/rest_test.go index 8f873645d64c..ff5361f8d5f1 100644 --- a/types/rest/rest_test.go +++ b/types/rest/rest_test.go @@ -13,15 +13,15 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/codec" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/codec" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" ) func TestBaseReq_Sanitize(t *testing.T) { diff --git a/types/result.go b/types/result.go index 88aa24e34cbd..a9193b4d2ed9 100644 --- a/types/result.go +++ b/types/result.go @@ -10,8 +10,8 @@ import ( abci "github.com/tendermint/tendermint/abci/types" ctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" ) var cdc = codec.NewLegacyAmino() diff --git a/types/result_test.go b/types/result_test.go index ab47b544a279..dbd2b9c6cb93 100644 --- a/types/result_test.go +++ b/types/result_test.go @@ -13,9 +13,9 @@ import ( "github.com/tendermint/tendermint/libs/bytes" ctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) type resultTestSuite struct { diff --git a/types/router_test.go b/types/router_test.go index 7387e9b94506..b1dded64950f 100644 --- a/types/router_test.go +++ b/types/router_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/suite" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type routeTestSuite struct { diff --git a/types/simulation/account.go b/types/simulation/account.go index 5bc5bfe14dc6..a2410749a881 100644 --- a/types/simulation/account.go +++ b/types/simulation/account.go @@ -4,10 +4,10 @@ import ( "fmt" "math/rand" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // Account contains a privkey, pubkey, address tuple diff --git a/types/simulation/account_test.go b/types/simulation/account_test.go index 85034a0d24e2..046cb31eca6e 100644 --- a/types/simulation/account_test.go +++ b/types/simulation/account_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/simulation" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/simulation" ) func TestRandomAccounts(t *testing.T) { diff --git a/types/simulation/rand_util.go b/types/simulation/rand_util.go index 84cd4492c8a7..d8e463f31280 100644 --- a/types/simulation/rand_util.go +++ b/types/simulation/rand_util.go @@ -7,7 +7,7 @@ import ( "time" "unsafe" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/types/simulation/rand_util_test.go b/types/simulation/rand_util_test.go index c487625ed042..db16f1bbad7a 100644 --- a/types/simulation/rand_util_test.go +++ b/types/simulation/rand_util_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/simulation" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/simulation" ) func TestRandSubsetCoins(t *testing.T) { diff --git a/types/simulation/types.go b/types/simulation/types.go index 89e5c813772a..e320da6a5098 100644 --- a/types/simulation/types.go +++ b/types/simulation/types.go @@ -5,10 +5,10 @@ import ( "math/rand" "time" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) type WeightedProposalContent interface { diff --git a/types/staking_test.go b/types/staking_test.go index fe6c36bd991b..079b10e82ad4 100644 --- a/types/staking_test.go +++ b/types/staking_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/suite" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type stakingTestSuite struct { diff --git a/types/store.go b/types/store.go index 5fb34b5fae5d..e89f5a9d8986 100644 --- a/types/store.go +++ b/types/store.go @@ -5,8 +5,8 @@ import ( "sort" "strings" - "github.com/cosmos/cosmos-sdk/store/types" - "github.com/cosmos/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/store/types" + "github.com/eligion/cosmos-sdk/types/kv" ) type ( diff --git a/types/store_test.go b/types/store_test.go index 9c3ef2f79dd6..ff59f53f22d1 100644 --- a/types/store_test.go +++ b/types/store_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/suite" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/store/rootmulti" - "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/store/rootmulti" + "github.com/eligion/cosmos-sdk/store/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type storeTestSuite struct { diff --git a/types/tx/service.pb.go b/types/tx/service.pb.go index 13c068cae088..d2435fda9493 100644 --- a/types/tx/service.pb.go +++ b/types/tx/service.pb.go @@ -6,8 +6,8 @@ package tx import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/types" - query "github.com/cosmos/cosmos-sdk/types/query" + types "github.com/eligion/cosmos-sdk/types" + query "github.com/eligion/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/types/tx/signing/signature.go b/types/tx/signing/signature.go index 1323543f023a..35e88e666ae8 100644 --- a/types/tx/signing/signature.go +++ b/types/tx/signing/signature.go @@ -3,8 +3,8 @@ package signing import ( "fmt" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // SignatureV2 is a convenience type that is easier to use in application logic diff --git a/types/tx/signing/signature_data.go b/types/tx/signing/signature_data.go index 0dd61fe63459..1d375873b53f 100644 --- a/types/tx/signing/signature_data.go +++ b/types/tx/signing/signature_data.go @@ -1,7 +1,7 @@ package signing import ( - "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types" ) // SignatureData represents either a *SingleSignatureData or *MultiSignatureData. diff --git a/types/tx/signing/signing.pb.go b/types/tx/signing/signing.pb.go index f06a270c7cbd..e47d1c639924 100644 --- a/types/tx/signing/signing.pb.go +++ b/types/tx/signing/signing.pb.go @@ -5,8 +5,8 @@ package signing import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" - types1 "github.com/cosmos/cosmos-sdk/crypto/types" + types "github.com/eligion/cosmos-sdk/codec/types" + types1 "github.com/eligion/cosmos-sdk/crypto/types" proto "github.com/gogo/protobuf/proto" io "io" math "math" diff --git a/types/tx/tx.pb.go b/types/tx/tx.pb.go index 174248a9812f..2603bcb6cb01 100644 --- a/types/tx/tx.pb.go +++ b/types/tx/tx.pb.go @@ -5,11 +5,11 @@ package tx import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" - types1 "github.com/cosmos/cosmos-sdk/crypto/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types2 "github.com/cosmos/cosmos-sdk/types" - signing "github.com/cosmos/cosmos-sdk/types/tx/signing" + types "github.com/eligion/cosmos-sdk/codec/types" + types1 "github.com/eligion/cosmos-sdk/crypto/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types2 "github.com/eligion/cosmos-sdk/types" + signing "github.com/eligion/cosmos-sdk/types/tx/signing" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" @@ -256,7 +256,7 @@ type TxBody struct { Messages []*types.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // memo is any arbitrary note/comment to be added to the transaction. // WARNING: in clients, any publicly exposed text should not be called memo, - // but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122). + // but should be called `note` instead (see https://github.com/eligion/cosmos-sdk/issues/9122). Memo string `protobuf:"bytes,2,opt,name=memo,proto3" json:"memo,omitempty"` // timeout is the block height after which this transaction will not // be processed by the chain @@ -669,7 +669,7 @@ func (m *ModeInfo_Multi) GetModeInfos() []*ModeInfo { // which must be above some miminum to be accepted into the mempool. type Fee struct { // amount is the amount of coins to be paid as a fee - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"amount"` // gas_limit is the maximum gas that can be used in transaction processing // before an out of gas error occurs GasLimit uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` diff --git a/types/tx/types.go b/types/tx/types.go index 3aa8bbbb5e55..1674ea7901fa 100644 --- a/types/tx/types.go +++ b/types/tx/types.go @@ -3,10 +3,10 @@ package tx import ( "fmt" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // MaxGasWanted defines the max gas allowed. diff --git a/types/tx_msg.go b/types/tx_msg.go index 42d01fdc55ee..cc6f55e1e7c6 100644 --- a/types/tx_msg.go +++ b/types/tx_msg.go @@ -3,7 +3,7 @@ package types import ( "github.com/gogo/protobuf/proto" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) type ( diff --git a/types/tx_msg_test.go b/types/tx_msg_test.go index bf7763b02913..077f5b01bb63 100644 --- a/types/tx_msg_test.go +++ b/types/tx_msg_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" ) type testMsgSuite struct { diff --git a/types/uint_test.go b/types/uint_test.go index b91f9ab4a96a..6d2e363120cf 100644 --- a/types/uint_test.go +++ b/types/uint_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/suite" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type uintTestSuite struct { diff --git a/types/utils_test.go b/types/utils_test.go index c04c9c81f3e1..b9128d25c92d 100644 --- a/types/utils_test.go +++ b/types/utils_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/suite" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type utilsTestSuite struct { diff --git a/version/version.go b/version/version.go index cfb37683f12e..7725b69da4cc 100644 --- a/version/version.go +++ b/version/version.go @@ -9,11 +9,11 @@ // At build time, the variables Name, Version, Commit, and BuildTags // can be passed as build flags as shown in the following example: // -// go build -X github.com/cosmos/cosmos-sdk/version.Name=gaia \ -// -X github.com/cosmos/cosmos-sdk/version.AppName=gaiad \ -// -X github.com/cosmos/cosmos-sdk/version.Version=1.0 \ -// -X github.com/cosmos/cosmos-sdk/version.Commit=f0f7b7dab7e36c20b757cebce0e8f4fc5b95de60 \ -// -X "github.com/cosmos/cosmos-sdk/version.BuildTags=linux darwin amd64" +// go build -X github.com/eligion/cosmos-sdk/version.Name=gaia \ +// -X github.com/eligion/cosmos-sdk/version.AppName=gaiad \ +// -X github.com/eligion/cosmos-sdk/version.Version=1.0 \ +// -X github.com/eligion/cosmos-sdk/version.Commit=f0f7b7dab7e36c20b757cebce0e8f4fc5b95de60 \ +// -X "github.com/eligion/cosmos-sdk/version.BuildTags=linux darwin amd64" package version import ( @@ -43,7 +43,7 @@ func getSDKVersion() string { } var sdkVersion string for _, dep := range deps.Deps { - if dep.Path == "github.com/cosmos/cosmos-sdk" { + if dep.Path == "github.com/eligion/cosmos-sdk" { sdkVersion = dep.Version } } diff --git a/version/version_test.go b/version/version_test.go index ccfbf189d585..7003e707e3c9 100644 --- a/version/version_test.go +++ b/version/version_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/require" "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/version" ) func TestNewInfo(t *testing.T) { diff --git a/x/auth/ante/ante.go b/x/auth/ante/ante.go index 3b4aa6a56f11..1262b9ba40c4 100644 --- a/x/auth/ante/ante.go +++ b/x/auth/ante/ante.go @@ -1,11 +1,11 @@ package ante import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" - "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx/signing" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // HandlerOptions are the options required for constructing a default SDK AnteHandler. diff --git a/x/auth/ante/ante_test.go b/x/auth/ante/ante_test.go index d2af80904476..af0a7158cc0f 100644 --- a/x/auth/ante/ante_test.go +++ b/x/auth/ante/ante_test.go @@ -7,22 +7,22 @@ import ( "strings" "testing" - "github.com/cosmos/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/ante" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // Test that simulate transaction accurately estimates gas cost @@ -906,7 +906,7 @@ func generatePubKeysAndSignatures(n int, msg []byte, _ bool) (pubkeys []cryptoty var privkey cryptotypes.PrivKey = secp256k1.GenPrivKey() // TODO: also generate ed25519 keys as below when ed25519 keys are - // actually supported, https://github.com/cosmos/cosmos-sdk/issues/4789 + // actually supported, https://github.com/eligion/cosmos-sdk/issues/4789 // for now this fails: //if rand.Int63()%2 == 0 { // privkey = ed25519.GenPrivKey() diff --git a/x/auth/ante/basic.go b/x/auth/ante/basic.go index 8ec0d68ec495..44c7b93a20bb 100644 --- a/x/auth/ante/basic.go +++ b/x/auth/ante/basic.go @@ -1,14 +1,14 @@ package ante import ( - "github.com/cosmos/cosmos-sdk/codec/legacy" - "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/codec/legacy" + "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" ) // ValidateBasicDecorator will call tx.ValidateBasic and return any non-nil error. diff --git a/x/auth/ante/basic_test.go b/x/auth/ante/basic_test.go index 4a8cb830fdf6..e2487956a477 100644 --- a/x/auth/ante/basic_test.go +++ b/x/auth/ante/basic_test.go @@ -3,12 +3,12 @@ package ante_test import ( "strings" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/ante" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/ante" ) func (suite *AnteTestSuite) TestValidateBasic() { diff --git a/x/auth/ante/expected_keepers.go b/x/auth/ante/expected_keepers.go index 4dbbbd21c713..165e50ba740e 100644 --- a/x/auth/ante/expected_keepers.go +++ b/x/auth/ante/expected_keepers.go @@ -1,8 +1,8 @@ package ante import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // AccountKeeper defines the contract needed for AccountKeeper related APIs. diff --git a/x/auth/ante/ext.go b/x/auth/ante/ext.go index 362b8d32a971..fc3624b3c5de 100644 --- a/x/auth/ante/ext.go +++ b/x/auth/ante/ext.go @@ -1,9 +1,9 @@ package ante import ( - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) type HasExtensionOptionsTx interface { diff --git a/x/auth/ante/ext_test.go b/x/auth/ante/ext_test.go index 89ce6a7d649f..769ef2a53f26 100644 --- a/x/auth/ante/ext_test.go +++ b/x/auth/ante/ext_test.go @@ -1,11 +1,11 @@ package ante_test import ( - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - "github.com/cosmos/cosmos-sdk/x/auth/tx" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/ante" + "github.com/eligion/cosmos-sdk/x/auth/tx" ) func (suite *AnteTestSuite) TestRejectExtensionOptionsDecorator() { diff --git a/x/auth/ante/fee.go b/x/auth/ante/fee.go index 19e8258cfa73..a9ad2cff1bda 100644 --- a/x/auth/ante/fee.go +++ b/x/auth/ante/fee.go @@ -3,9 +3,9 @@ package ante import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // MempoolFeeDecorator will check if the transaction's fee is at least as large diff --git a/x/auth/ante/fee_test.go b/x/auth/ante/fee_test.go index 7edd8fad9257..73c4d825eb9f 100644 --- a/x/auth/ante/fee_test.go +++ b/x/auth/ante/fee_test.go @@ -1,11 +1,11 @@ package ante_test import ( - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/ante" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/ante" ) func (suite *AnteTestSuite) TestEnsureMempoolFees() { diff --git a/x/auth/ante/feegrant_test.go b/x/auth/ante/feegrant_test.go index b23c2cec619d..08a196a17a0d 100644 --- a/x/auth/ante/feegrant_test.go +++ b/x/auth/ante/feegrant_test.go @@ -7,21 +7,21 @@ import ( "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - authsign "github.com/cosmos/cosmos-sdk/x/auth/signing" - "github.com/cosmos/cosmos-sdk/x/auth/tx" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp/helpers" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/ante" + authsign "github.com/eligion/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/x/auth/tx" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/feegrant" ) func (suite *AnteTestSuite) TestDeductFeesNoDelegation() { diff --git a/x/auth/ante/setup.go b/x/auth/ante/setup.go index 5f21aba8bd5c..9b3d8e6a8fb5 100644 --- a/x/auth/ante/setup.go +++ b/x/auth/ante/setup.go @@ -3,9 +3,9 @@ package ante import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) var ( diff --git a/x/auth/ante/setup_test.go b/x/auth/ante/setup_test.go index 4942665cac04..e1f8bf900d7e 100644 --- a/x/auth/ante/setup_test.go +++ b/x/auth/ante/setup_test.go @@ -1,11 +1,11 @@ package ante_test import ( - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/ante" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/ante" ) func (suite *AnteTestSuite) TestSetup() { diff --git a/x/auth/ante/sigverify.go b/x/auth/ante/sigverify.go index 8ff8ee8d98d7..ac3f81d39eb8 100644 --- a/x/auth/ante/sigverify.go +++ b/x/auth/ante/sigverify.go @@ -6,18 +6,18 @@ import ( "encoding/hex" "fmt" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256r1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/x/auth/types" ) var ( diff --git a/x/auth/ante/sigverify_benchmark_test.go b/x/auth/ante/sigverify_benchmark_test.go index 56e596fa6b55..c08a05867a13 100644 --- a/x/auth/ante/sigverify_benchmark_test.go +++ b/x/auth/ante/sigverify_benchmark_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" tmcrypto "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256r1" ) // This benchmark is used to asses the ante.Secp256k1ToR1GasFactor value diff --git a/x/auth/ante/sigverify_test.go b/x/auth/ante/sigverify_test.go index 6e720ac20353..3be40718de77 100644 --- a/x/auth/ante/sigverify_test.go +++ b/x/auth/ante/sigverify_test.go @@ -3,21 +3,21 @@ package ante_test import ( "fmt" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256r1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/ante" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/types" ) func (suite *AnteTestSuite) TestSetPubKey() { @@ -187,10 +187,10 @@ func (suite *AnteTestSuite) TestSigVerification() { // This test is exactly like the one above, but we set the codec explicitly to // Amino. -// Once https://github.com/cosmos/cosmos-sdk/issues/6190 is in, we can remove +// Once https://github.com/eligion/cosmos-sdk/issues/6190 is in, we can remove // this, since it'll be handled by the test matrix. // In the meantime, we want to make double-sure amino compatibility works. -// ref: https://github.com/cosmos/cosmos-sdk/issues/7229 +// ref: https://github.com/eligion/cosmos-sdk/issues/7229 func (suite *AnteTestSuite) TestSigVerification_ExplicitAmino() { suite.app, suite.ctx = createTestApp(true) suite.ctx = suite.ctx.WithBlockHeight(1) diff --git a/x/auth/ante/testutil_test.go b/x/auth/ante/testutil_test.go index 74216420eb14..9c8f6e96de41 100644 --- a/x/auth/ante/testutil_test.go +++ b/x/auth/ante/testutil_test.go @@ -5,22 +5,22 @@ import ( "fmt" "testing" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - xauthsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" - "github.com/cosmos/cosmos-sdk/x/auth/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/ante" + xauthsigning "github.com/eligion/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/x/auth/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" ) // TestAccount represents an account used in the tests in x/auth/ante. diff --git a/x/auth/atlas/atlas-v0.39.1.md b/x/auth/atlas/atlas-v0.39.1.md index 8a9de98cd45c..0d5a040331dc 100644 --- a/x/auth/atlas/atlas-v0.39.1.md +++ b/x/auth/atlas/atlas-v0.39.1.md @@ -9,7 +9,7 @@ account types for an application, as well as AnteHandler and authentication logi ```go import ( - "github.com/cosmos/cosmos-sdk/x/auth" + "github.com/eligion/cosmos-sdk/x/auth" ) ``` @@ -103,7 +103,7 @@ Where ever you define the application `Codec`, be sure to register types via: ```go import ( - "github.com/cosmos/cosmos-sdk/x/auth/vesting" + "github.com/eligion/cosmos-sdk/x/auth/vesting" ) func MakeCodec() *codec.Codec { diff --git a/x/auth/atlas/atlas.toml b/x/auth/atlas/atlas.toml index 2476ba3e02b9..449695443965 100644 --- a/x/auth/atlas/atlas.toml +++ b/x/auth/atlas/atlas.toml @@ -1,6 +1,6 @@ [module] description = "The auth module is responsible for specifying the base transaction and account types for an application, as well as AnteHandler and authentication logic." -homepage = "https://github.com/cosmos/cosmos-sdk" +homepage = "https://github.com/eligion/cosmos-sdk" keywords = [ "authentication", "signatures", @@ -12,7 +12,7 @@ keywords = [ name = "x/auth" [bug_tracker] -url = "https://github.com/cosmos/cosmos-sdk/issues" +url = "https://github.com/eligion/cosmos-sdk/issues" [[authors]] name = "alexanderbez" @@ -28,6 +28,6 @@ name = "alessio" [version] documentation = "https://raw.githubusercontent.com/cosmos/cosmos-sdk/master/x/auth/atlas/atlas-v0.39.1.md" -repo = "https://github.com/cosmos/cosmos-sdk/releases/tag/v0.39.2" +repo = "https://github.com/eligion/cosmos-sdk/releases/tag/v0.39.2" sdk_compat = "v0.39.x" version = "v0.39.2" diff --git a/x/auth/client/cli/broadcast.go b/x/auth/client/cli/broadcast.go index ef5eefc410b2..e19480e44bd6 100644 --- a/x/auth/client/cli/broadcast.go +++ b/x/auth/client/cli/broadcast.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" ) // GetBroadcastCommand returns the tx broadcast command. diff --git a/x/auth/client/cli/decode.go b/x/auth/client/cli/decode.go index 6af5bb5c38ac..151ce903d315 100644 --- a/x/auth/client/cli/decode.go +++ b/x/auth/client/cli/decode.go @@ -6,8 +6,8 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" ) const flagHex = "hex" diff --git a/x/auth/client/cli/encode.go b/x/auth/client/cli/encode.go index c883980de956..42b3988b85da 100644 --- a/x/auth/client/cli/encode.go +++ b/x/auth/client/cli/encode.go @@ -5,9 +5,9 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" ) // GetEncodeCommand returns the encode command to take a JSONified transaction and turn it into diff --git a/x/auth/client/cli/encode_test.go b/x/auth/client/cli/encode_test.go index ed3566aaf2c6..b5bfb56fe57d 100644 --- a/x/auth/client/cli/encode_test.go +++ b/x/auth/client/cli/encode_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/client" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + "github.com/eligion/cosmos-sdk/testutil" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" ) func TestGetCommandEncode(t *testing.T) { diff --git a/x/auth/client/cli/query.go b/x/auth/client/cli/query.go index e38dac0e3dd6..482f38f3efbf 100644 --- a/x/auth/client/cli/query.go +++ b/x/auth/client/cli/query.go @@ -7,15 +7,15 @@ import ( "github.com/spf13/cobra" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/version" - authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/version" + authtx "github.com/eligion/cosmos-sdk/x/auth/tx" + "github.com/eligion/cosmos-sdk/x/auth/types" ) const ( diff --git a/x/auth/client/cli/tx_multisign.go b/x/auth/client/cli/tx_multisign.go index 67d703025058..8f08fe6b69dd 100644 --- a/x/auth/client/cli/tx_multisign.go +++ b/x/auth/client/cli/tx_multisign.go @@ -9,19 +9,19 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/version" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/crypto/keyring" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/errors" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/version" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) // BroadcastReq defines a tx broadcasting request. diff --git a/x/auth/client/cli/tx_sign.go b/x/auth/client/cli/tx_sign.go index 34483f9c935b..66abad342a62 100644 --- a/x/auth/client/cli/tx_sign.go +++ b/x/auth/client/cli/tx_sign.go @@ -6,10 +6,10 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" ) const ( diff --git a/x/auth/client/cli/validate_sigs.go b/x/auth/client/cli/validate_sigs.go index 03acf833f13d..ee2d166762f4 100644 --- a/x/auth/client/cli/validate_sigs.go +++ b/x/auth/client/cli/validate_sigs.go @@ -5,12 +5,12 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" ) func GetValidateSignaturesCommand() *cobra.Command { diff --git a/x/auth/client/rest/decode.go b/x/auth/client/rest/decode.go index 5b732fa0a19d..abf7b28a59fe 100644 --- a/x/auth/client/rest/decode.go +++ b/x/auth/client/rest/decode.go @@ -6,12 +6,12 @@ import ( "io/ioutil" "net/http" - "github.com/cosmos/cosmos-sdk/client" - clienttx "github.com/cosmos/cosmos-sdk/client/tx" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + clienttx "github.com/eligion/cosmos-sdk/client/tx" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) type ( diff --git a/x/auth/client/rest/query.go b/x/auth/client/rest/query.go index cf292fd7f7e5..ee65fe544193 100644 --- a/x/auth/client/rest/query.go +++ b/x/auth/client/rest/query.go @@ -8,14 +8,14 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - clientrest "github.com/cosmos/cosmos-sdk/client/rest" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" - "github.com/cosmos/cosmos-sdk/x/auth/types" - genutilrest "github.com/cosmos/cosmos-sdk/x/genutil/client/rest" + "github.com/eligion/cosmos-sdk/client" + clientrest "github.com/eligion/cosmos-sdk/client/rest" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + authtx "github.com/eligion/cosmos-sdk/x/auth/tx" + "github.com/eligion/cosmos-sdk/x/auth/types" + genutilrest "github.com/eligion/cosmos-sdk/x/genutil/client/rest" ) // QueryAccountRequestHandlerFn is the query accountREST Handler. @@ -39,7 +39,7 @@ func QueryAccountRequestHandlerFn(storeName string, clientCtx client.Context) ht account, height, err := accGetter.GetAccountWithHeight(clientCtx, addr) if err != nil { // TODO: Handle more appropriately based on the error type. - // Ref: https://github.com/cosmos/cosmos-sdk/issues/4923 + // Ref: https://github.com/eligion/cosmos-sdk/issues/4923 if err := accGetter.EnsureExists(clientCtx, addr); err != nil { clientCtx = clientCtx.WithHeight(height) rest.PostProcessResponse(w, clientCtx, types.BaseAccount{}) diff --git a/x/auth/client/rest/rest.go b/x/auth/client/rest/rest.go index 03b7564acef0..fc92689ee98d 100644 --- a/x/auth/client/rest/rest.go +++ b/x/auth/client/rest/rest.go @@ -3,8 +3,8 @@ package rest import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/rest" ) // REST query and parameter values diff --git a/x/auth/client/testutil/cli_test.go b/x/auth/client/testutil/cli_test.go index 0a7a5cc25871..ecec5c4d700d 100644 --- a/x/auth/client/testutil/cli_test.go +++ b/x/auth/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/auth/client/testutil/helpers.go b/x/auth/client/testutil/helpers.go index 6d68ef9236f2..559f948732bb 100644 --- a/x/auth/client/testutil/helpers.go +++ b/x/auth/client/testutil/helpers.go @@ -6,12 +6,12 @@ import ( tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/x/auth/client/cli" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/x/auth/client/cli" ) func TxSignExec(clientCtx client.Context, from fmt.Stringer, filename string, extraArgs ...string) (testutil.BufferWriter, error) { diff --git a/x/auth/client/testutil/suite.go b/x/auth/client/testutil/suite.go index 626e0130f42a..87e8f229cb51 100644 --- a/x/auth/client/testutil/suite.go +++ b/x/auth/client/testutil/suite.go @@ -14,24 +14,24 @@ import ( "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authcli "github.com/cosmos/cosmos-sdk/x/auth/client/cli" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - bankcli "github.com/cosmos/cosmos-sdk/x/bank/client/testutil" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx/signing" + authcli "github.com/eligion/cosmos-sdk/x/auth/client/cli" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + bankcli "github.com/eligion/cosmos-sdk/x/bank/client/testutil" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) type IntegrationTestSuite struct { @@ -1174,7 +1174,7 @@ func (s *IntegrationTestSuite) TestQueryParamsCmd() { // TestTxWithoutPublicKey makes sure sending a proto tx message without the // public key doesn't cause any error in the RPC layer (broadcast). -// See https://github.com/cosmos/cosmos-sdk/issues/7585 for more details. +// See https://github.com/eligion/cosmos-sdk/issues/7585 for more details. func (s *IntegrationTestSuite) TestTxWithoutPublicKey() { val1 := s.network.Validators[0] txCfg := val1.ClientCtx.TxConfig diff --git a/x/auth/client/tx.go b/x/auth/client/tx.go index 80debcc1dedf..c77a3da2c3e3 100644 --- a/x/auth/client/tx.go +++ b/x/auth/client/tx.go @@ -11,14 +11,14 @@ import ( "github.com/gogo/protobuf/jsonpb" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/keyring" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) // GasEstimateResponse defines a response definition for tx gas estimation. diff --git a/x/auth/client/tx_test.go b/x/auth/client/tx_test.go index 3e1d31383ddc..cc3f9f0b9e3e 100644 --- a/x/auth/client/tx_test.go +++ b/x/auth/client/tx_test.go @@ -7,17 +7,17 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" ) var ( diff --git a/x/auth/genesis.go b/x/auth/genesis.go index 851b588083d4..c2eb066e10cc 100644 --- a/x/auth/genesis.go +++ b/x/auth/genesis.go @@ -1,9 +1,9 @@ package auth import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/keeper" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // InitGenesis - Init store state from genesis data diff --git a/x/auth/keeper/account.go b/x/auth/keeper/account.go index 7474e93a5469..f2694749bf81 100644 --- a/x/auth/keeper/account.go +++ b/x/auth/keeper/account.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // NewAccountWithAddress implements AccountKeeperI. diff --git a/x/auth/keeper/grpc_query.go b/x/auth/keeper/grpc_query.go index 4305c1cd0a8e..37e2ed7b0583 100644 --- a/x/auth/keeper/grpc_query.go +++ b/x/auth/keeper/grpc_query.go @@ -3,15 +3,15 @@ package keeper import ( "context" - "github.com/cosmos/cosmos-sdk/store/prefix" - "github.com/cosmos/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/store/prefix" + "github.com/eligion/cosmos-sdk/types/query" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) var _ types.QueryServer = AccountKeeper{} diff --git a/x/auth/keeper/grpc_query_test.go b/x/auth/keeper/grpc_query_test.go index e593829a7172..e0cf1c6a28fb 100644 --- a/x/auth/keeper/grpc_query_test.go +++ b/x/auth/keeper/grpc_query_test.go @@ -3,9 +3,9 @@ package keeper_test import ( "fmt" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) func (suite *KeeperTestSuite) TestGRPCQueryAccounts() { diff --git a/x/auth/keeper/integration_test.go b/x/auth/keeper/integration_test.go index d2069d6d3586..d298ed556044 100644 --- a/x/auth/keeper/integration_test.go +++ b/x/auth/keeper/integration_test.go @@ -3,9 +3,9 @@ package keeper_test import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" ) // returns context and app with params set on account keeper diff --git a/x/auth/keeper/keeper.go b/x/auth/keeper/keeper.go index a73f97dc3446..1f39e4f98468 100644 --- a/x/auth/keeper/keeper.go +++ b/x/auth/keeper/keeper.go @@ -6,12 +6,12 @@ import ( gogotypes "github.com/gogo/protobuf/types" "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // AccountKeeperI is the interface contract that x/auth's keeper implements. diff --git a/x/auth/keeper/keeper_bench_test.go b/x/auth/keeper/keeper_bench_test.go index 3e15783d9605..c88b29855098 100644 --- a/x/auth/keeper/keeper_bench_test.go +++ b/x/auth/keeper/keeper_bench_test.go @@ -3,7 +3,7 @@ package keeper_test import ( "testing" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func BenchmarkAccountMapperGetAccountFound(b *testing.B) { diff --git a/x/auth/keeper/keeper_test.go b/x/auth/keeper/keeper_test.go index 16cf53a253cf..b869166539b0 100644 --- a/x/auth/keeper/keeper_test.go +++ b/x/auth/keeper/keeper_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/keeper" + "github.com/eligion/cosmos-sdk/x/auth/types" ) const ( diff --git a/x/auth/keeper/migrations.go b/x/auth/keeper/migrations.go index d3ad7a2f8c5a..df95553fb07c 100644 --- a/x/auth/keeper/migrations.go +++ b/x/auth/keeper/migrations.go @@ -3,10 +3,10 @@ package keeper import ( "github.com/gogo/protobuf/grpc" - v043 "github.com/cosmos/cosmos-sdk/x/auth/legacy/v043" - "github.com/cosmos/cosmos-sdk/x/auth/types" + v043 "github.com/eligion/cosmos-sdk/x/auth/legacy/v043" + "github.com/eligion/cosmos-sdk/x/auth/types" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // Migrator is a struct for handling in-place store migrations. diff --git a/x/auth/keeper/params.go b/x/auth/keeper/params.go index 0236c7ae1627..5a05f6f04144 100644 --- a/x/auth/keeper/params.go +++ b/x/auth/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // SetParams sets the auth module's parameters. diff --git a/x/auth/keeper/querier.go b/x/auth/keeper/querier.go index 130aaacda9e9..054c702beadc 100644 --- a/x/auth/keeper/querier.go +++ b/x/auth/keeper/querier.go @@ -3,10 +3,10 @@ package keeper import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // NewQuerier creates a querier for auth REST endpoints diff --git a/x/auth/keeper/querier_test.go b/x/auth/keeper/querier_test.go index b64f971b3c6c..fad44a170580 100644 --- a/x/auth/keeper/querier_test.go +++ b/x/auth/keeper/querier_test.go @@ -4,15 +4,15 @@ import ( "fmt" "testing" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - keep "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + keep "github.com/eligion/cosmos-sdk/x/auth/keeper" + "github.com/eligion/cosmos-sdk/x/auth/types" ) func TestQueryAccount(t *testing.T) { diff --git a/x/auth/legacy/legacytx/amino_signing.go b/x/auth/legacy/legacytx/amino_signing.go index 2f5b1d4a4218..ecf1dc742a89 100644 --- a/x/auth/legacy/legacytx/amino_signing.go +++ b/x/auth/legacy/legacytx/amino_signing.go @@ -3,12 +3,12 @@ package legacytx import ( "fmt" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) // stdTxSignModeHandler is a SignModeHandler that handles SIGN_MODE_LEGACY_AMINO_JSON diff --git a/x/auth/legacy/legacytx/amino_signing_test.go b/x/auth/legacy/legacytx/amino_signing_test.go index 7abccbfd8206..b2ebab17c1be 100644 --- a/x/auth/legacy/legacytx/amino_signing_test.go +++ b/x/auth/legacy/legacytx/amino_signing_test.go @@ -5,11 +5,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) func TestLegacyAminoJSONHandler_GetSignBytes(t *testing.T) { diff --git a/x/auth/legacy/legacytx/codec.go b/x/auth/legacy/legacytx/codec.go index 2bad4718e1e6..276ac2d78fbe 100644 --- a/x/auth/legacy/legacytx/codec.go +++ b/x/auth/legacy/legacytx/codec.go @@ -1,7 +1,7 @@ package legacytx import ( - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" ) func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { diff --git a/x/auth/legacy/legacytx/config_test.go b/x/auth/legacy/legacytx/config_test.go index 95a37b1e4d43..a2da15b2a562 100644 --- a/x/auth/legacy/legacytx/config_test.go +++ b/x/auth/legacy/legacytx/config_test.go @@ -5,12 +5,12 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/codec" - cryptoAmino "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/testutil" + "github.com/eligion/cosmos-sdk/codec" + cryptoAmino "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/testutil" ) func testCodec() *codec.LegacyAmino { diff --git a/x/auth/legacy/legacytx/stdsig_test.go b/x/auth/legacy/legacytx/stdsig_test.go index 3e1662ba9960..fe71b2434a44 100644 --- a/x/auth/legacy/legacytx/stdsig_test.go +++ b/x/auth/legacy/legacytx/stdsig_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" yaml "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) func TestStdSignatureMarshalYAML(t *testing.T) { diff --git a/x/auth/legacy/legacytx/stdsign.go b/x/auth/legacy/legacytx/stdsign.go index 06e44aacef44..cb5d18af3633 100644 --- a/x/auth/legacy/legacytx/stdsign.go +++ b/x/auth/legacy/legacytx/stdsign.go @@ -6,14 +6,14 @@ import ( "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/legacy" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/legacy" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) // LegacyMsg defines the old interface a message must fulfill, containing diff --git a/x/auth/legacy/legacytx/stdsignmsg.go b/x/auth/legacy/legacytx/stdsignmsg.go index 07ee29a06324..33bc170465bd 100644 --- a/x/auth/legacy/legacytx/stdsignmsg.go +++ b/x/auth/legacy/legacytx/stdsignmsg.go @@ -1,8 +1,8 @@ package legacytx import ( - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var _ types.UnpackInterfacesMessage = StdSignMsg{} diff --git a/x/auth/legacy/legacytx/stdtx.go b/x/auth/legacy/legacytx/stdtx.go index 55ec38e603cc..6a1fe61cf94d 100644 --- a/x/auth/legacy/legacytx/stdtx.go +++ b/x/auth/legacy/legacytx/stdtx.go @@ -1,13 +1,13 @@ package legacytx import ( - "github.com/cosmos/cosmos-sdk/codec/legacy" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/codec/legacy" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + txtypes "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) // Interface implementation checks diff --git a/x/auth/legacy/legacytx/stdtx_builder.go b/x/auth/legacy/legacytx/stdtx_builder.go index 7e2e1c604438..015e53fb9e5a 100644 --- a/x/auth/legacy/legacytx/stdtx_builder.go +++ b/x/auth/legacy/legacytx/stdtx_builder.go @@ -3,12 +3,12 @@ package legacytx import ( "fmt" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx/signing" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" ) // StdTxBuilder wraps StdTx to implement to the context.TxBuilder interface. diff --git a/x/auth/legacy/legacytx/stdtx_test.go b/x/auth/legacy/legacytx/stdtx_test.go index ec70281f6828..554d155029dc 100644 --- a/x/auth/legacy/legacytx/stdtx_test.go +++ b/x/auth/legacy/legacytx/stdtx_test.go @@ -8,16 +8,16 @@ import ( "github.com/tendermint/tendermint/libs/log" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - "github.com/cosmos/cosmos-sdk/crypto/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/codec" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + "github.com/eligion/cosmos-sdk/crypto/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) var ( diff --git a/x/auth/legacy/v034/types.go b/x/auth/legacy/v034/types.go index e028b0874044..03c5d115392b 100644 --- a/x/auth/legacy/v034/types.go +++ b/x/auth/legacy/v034/types.go @@ -5,7 +5,7 @@ package v034 import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/x/auth/legacy/v038/types.go b/x/auth/legacy/v038/types.go index 8bda3813f568..87bfbc8a690b 100644 --- a/x/auth/legacy/v038/types.go +++ b/x/auth/legacy/v038/types.go @@ -15,12 +15,12 @@ import ( tmcrypto "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/codec" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32" - v034auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v034" + "github.com/eligion/cosmos-sdk/codec" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/bech32/legacybech32" + v034auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v034" ) const ( diff --git a/x/auth/legacy/v039/types.go b/x/auth/legacy/v039/types.go index 3de576f27ffa..c85768715e9a 100644 --- a/x/auth/legacy/v039/types.go +++ b/x/auth/legacy/v039/types.go @@ -10,13 +10,13 @@ import ( tmcrypto "github.com/tendermint/tendermint/crypto" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/legacy" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - v034auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v034" - v038auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v038" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/legacy" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + v034auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v034" + v038auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v038" ) const ( diff --git a/x/auth/legacy/v040/migrate.go b/x/auth/legacy/v040/migrate.go index 4ba3e0cb7c81..edb7e95c443a 100644 --- a/x/auth/legacy/v040/migrate.go +++ b/x/auth/legacy/v040/migrate.go @@ -1,11 +1,11 @@ package v040 import ( - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - v039auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v039" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/types" - v040vesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + v039auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v039" + v040auth "github.com/eligion/cosmos-sdk/x/auth/types" + v040vesting "github.com/eligion/cosmos-sdk/x/auth/vesting/types" ) // convertBaseAccount converts a 0.39 BaseAccount to a 0.40 BaseAccount. diff --git a/x/auth/legacy/v040/migrate_test.go b/x/auth/legacy/v040/migrate_test.go index 9b09d6e18a02..086b418e29e6 100644 --- a/x/auth/legacy/v040/migrate_test.go +++ b/x/auth/legacy/v040/migrate_test.go @@ -6,14 +6,14 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - v034 "github.com/cosmos/cosmos-sdk/x/auth/legacy/v034" - v038auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v038" - v039auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v039" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + v034 "github.com/eligion/cosmos-sdk/x/auth/legacy/v034" + v038auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v038" + v039auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v039" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" ) func TestMigrate(t *testing.T) { diff --git a/x/auth/legacy/v043/store.go b/x/auth/legacy/v043/store.go index f95f1b3a1bb7..9f543658ef58 100644 --- a/x/auth/legacy/v043/store.go +++ b/x/auth/legacy/v043/store.go @@ -1,7 +1,7 @@ // Package v043 creates in-place store migrations for fixing tracking // delegations with vesting accounts. -// ref: https://github.com/cosmos/cosmos-sdk/issues/8601 -// ref: https://github.com/cosmos/cosmos-sdk/issues/8812 +// ref: https://github.com/eligion/cosmos-sdk/issues/8601 +// ref: https://github.com/eligion/cosmos-sdk/issues/8812 // // The migration script modifies x/auth state, hence lives in the `x/auth/legacy` // folder. However, it needs access to staking and bank state. To avoid @@ -12,7 +12,7 @@ // PLEASE DO NOT REPLICATE THIS PATTERN IN YOUR OWN APP. // // Proposals to refactor this file have been made in: -// https://github.com/cosmos/cosmos-sdk/issues/9070 +// https://github.com/eligion/cosmos-sdk/issues/9070 // The preferred solution is to use inter-module communication (ADR-033), and // this file will be refactored to use ADR-033 once it's ready. package v043 @@ -27,14 +27,14 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/baseapp" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/exported" - vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/baseapp" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/auth/vesting/exported" + vestingtypes "github.com/eligion/cosmos-sdk/x/auth/vesting/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) const ( @@ -290,7 +290,7 @@ func getBondDenom(ctx sdk.Context, queryServer grpc.Server) (string, error) { // MigrateAccount migrates vesting account to make the DelegatedVesting and DelegatedFree fields correctly // track delegations. -// References: https://github.com/cosmos/cosmos-sdk/issues/8601, https://github.com/cosmos/cosmos-sdk/issues/8812 +// References: https://github.com/eligion/cosmos-sdk/issues/8601, https://github.com/eligion/cosmos-sdk/issues/8812 // // We use the baseapp.QueryRouter here to do inter-module state querying. // PLEASE DO NOT REPLICATE THIS PATTERN IN YOUR OWN APP. diff --git a/x/auth/legacy/v043/store_test.go b/x/auth/legacy/v043/store_test.go index 3daa2d52fc53..5d12794623f2 100644 --- a/x/auth/legacy/v043/store_test.go +++ b/x/auth/legacy/v043/store_test.go @@ -8,15 +8,15 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/exported" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" - "github.com/cosmos/cosmos-sdk/x/staking" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + authkeeper "github.com/eligion/cosmos-sdk/x/auth/keeper" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/auth/vesting/exported" + "github.com/eligion/cosmos-sdk/x/auth/vesting/types" + "github.com/eligion/cosmos-sdk/x/staking" + stakingkeeper "github.com/eligion/cosmos-sdk/x/staking/keeper" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestMigrateVestingAccounts(t *testing.T) { diff --git a/x/auth/module.go b/x/auth/module.go index ca2be016761e..a8597fce149f 100644 --- a/x/auth/module.go +++ b/x/auth/module.go @@ -12,17 +12,17 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/auth/client/cli" - "github.com/cosmos/cosmos-sdk/x/auth/client/rest" - "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/cosmos/cosmos-sdk/x/auth/simulation" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/auth/client/cli" + "github.com/eligion/cosmos-sdk/x/auth/client/rest" + "github.com/eligion/cosmos-sdk/x/auth/keeper" + "github.com/eligion/cosmos-sdk/x/auth/simulation" + "github.com/eligion/cosmos-sdk/x/auth/types" ) var ( diff --git a/x/auth/module_test.go b/x/auth/module_test.go index 0bf268ddba5c..c277f704d831 100644 --- a/x/auth/module_test.go +++ b/x/auth/module_test.go @@ -7,8 +7,8 @@ import ( abcitypes "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/x/auth/types" ) func TestItCreatesModuleAccountOnInitBlock(t *testing.T) { diff --git a/x/auth/signing/handler_map.go b/x/auth/signing/handler_map.go index 936de47da5db..eb10d16a8a6d 100644 --- a/x/auth/signing/handler_map.go +++ b/x/auth/signing/handler_map.go @@ -3,9 +3,9 @@ package signing import ( "fmt" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/types/tx/signing" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // SignModeHandlerMap is SignModeHandler that aggregates multiple SignModeHandler's into diff --git a/x/auth/signing/handler_map_test.go b/x/auth/signing/handler_map_test.go index 041b8182e95a..2f1e1a9373b7 100644 --- a/x/auth/signing/handler_map_test.go +++ b/x/auth/signing/handler_map_test.go @@ -5,12 +5,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - sdk "github.com/cosmos/cosmos-sdk/types" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/signing" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + sdk "github.com/eligion/cosmos-sdk/types" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/signing" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) func MakeTestHandlerMap() signing.SignModeHandler { diff --git a/x/auth/signing/sig_verifiable_tx.go b/x/auth/signing/sig_verifiable_tx.go index 2d8aeb49db9a..28eac566b099 100644 --- a/x/auth/signing/sig_verifiable_tx.go +++ b/x/auth/signing/sig_verifiable_tx.go @@ -1,9 +1,9 @@ package signing import ( - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) // SigVerifiableTx defines a transaction interface for all signature verification diff --git a/x/auth/signing/sign_mode_handler.go b/x/auth/signing/sign_mode_handler.go index e70246ee27f8..207a3d0b96cc 100644 --- a/x/auth/signing/sign_mode_handler.go +++ b/x/auth/signing/sign_mode_handler.go @@ -1,8 +1,8 @@ package signing import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) // SignModeHandler defines a interface to be implemented by types which will handle diff --git a/x/auth/signing/verify.go b/x/auth/signing/verify.go index 5a5395de69f3..506f47b72e04 100644 --- a/x/auth/signing/verify.go +++ b/x/auth/signing/verify.go @@ -3,10 +3,10 @@ package signing import ( "fmt" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) // VerifySignature verifies a transaction signature contained in SignatureData abstracting over different signing modes diff --git a/x/auth/signing/verify_test.go b/x/auth/signing/verify_test.go index 56df1811c2ab..8e3fbb7367a2 100644 --- a/x/auth/signing/verify_test.go +++ b/x/auth/signing/verify_test.go @@ -6,17 +6,17 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/signing" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/codec" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/ante" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/x/auth/types" ) func TestVerifySignature(t *testing.T) { diff --git a/x/auth/simulation/decoder.go b/x/auth/simulation/decoder.go index 61a551ba5208..20e5e1a4541a 100644 --- a/x/auth/simulation/decoder.go +++ b/x/auth/simulation/decoder.go @@ -6,9 +6,9 @@ import ( gogotypes "github.com/gogo/protobuf/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/auth/types" ) type AuthUnmarshaler interface { diff --git a/x/auth/simulation/decoder_test.go b/x/auth/simulation/decoder_test.go index 9e21df6e5791..937e7a9cf8f9 100644 --- a/x/auth/simulation/decoder_test.go +++ b/x/auth/simulation/decoder_test.go @@ -7,12 +7,12 @@ import ( gogotypes "github.com/gogo/protobuf/types" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/auth/simulation" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/auth/simulation" + "github.com/eligion/cosmos-sdk/x/auth/types" ) var ( diff --git a/x/auth/simulation/genesis.go b/x/auth/simulation/genesis.go index 2da36b54fa82..bf538699de2f 100644 --- a/x/auth/simulation/genesis.go +++ b/x/auth/simulation/genesis.go @@ -5,11 +5,11 @@ import ( "fmt" "math/rand" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/auth/types" - vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/auth/types" + vestingtypes "github.com/eligion/cosmos-sdk/x/auth/vesting/types" ) // Simulation parameter constants diff --git a/x/auth/simulation/genesis_test.go b/x/auth/simulation/genesis_test.go index 830a264ff4c6..c1fda44168d5 100644 --- a/x/auth/simulation/genesis_test.go +++ b/x/auth/simulation/genesis_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - 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/cosmos/cosmos-sdk/x/auth/simulation" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/auth/simulation" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/x/auth/simulation/params.go b/x/auth/simulation/params.go index 5ce9ac95fcc5..cdbf072fa5fc 100644 --- a/x/auth/simulation/params.go +++ b/x/auth/simulation/params.go @@ -6,9 +6,9 @@ import ( "fmt" "math/rand" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/simulation" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/simulation" ) const ( diff --git a/x/auth/simulation/params_test.go b/x/auth/simulation/params_test.go index b8fb384a80f6..c381a78b1128 100644 --- a/x/auth/simulation/params_test.go +++ b/x/auth/simulation/params_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/auth/simulation" + "github.com/eligion/cosmos-sdk/x/auth/simulation" ) func TestParamChanges(t *testing.T) { diff --git a/x/auth/spec/03_antehandlers.md b/x/auth/spec/03_antehandlers.md index 851005162d78..4a349b630b36 100644 --- a/x/auth/spec/03_antehandlers.md +++ b/x/auth/spec/03_antehandlers.md @@ -5,7 +5,7 @@ order: 3 # AnteHandlers The `x/auth` module presently has no transaction handlers of its own, but does expose the special `AnteHandler`, used for performing basic validity checks on a transaction, such that it could be thrown out of the mempool. -The `AnteHandler` can be seen as a set of decorators that check transactions within the current context, per [ADR 010](https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-alpha1/docs/architecture/adr-010-modular-antehandler.md). +The `AnteHandler` can be seen as a set of decorators that check transactions within the current context, per [ADR 010](https://github.com/eligion/cosmos-sdk/blob/v0.43.0-alpha1/docs/architecture/adr-010-modular-antehandler.md). Note that the `AnteHandler` is called on both `CheckTx` and `DeliverTx`, as Tendermint proposers presently have the ability to include in their proposed block transactions which fail `CheckTx`. diff --git a/x/auth/spec/05_vesting.md b/x/auth/spec/05_vesting.md index 7519cb2f24b8..9df0005d89fd 100644 --- a/x/auth/spec/05_vesting.md +++ b/x/auth/spec/05_vesting.md @@ -92,19 +92,19 @@ type VestingAccount interface { ### BaseVestingAccount -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L10-L33 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L10-L33 ### ContinuousVestingAccount -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L35-L43 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L35-L43 ### DelayedVestingAccount -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L45-L53 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L45-L53 ### Period -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L56-L62 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L56-L62 ```go // Stores all vesting periods passed as part of a PeriodicVestingAccount @@ -114,7 +114,7 @@ type Periods []Period ### PeriodicVestingAccount -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L64-L73 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/vesting/v1beta1/vesting.proto#L64-L73 In order to facilitate less ad-hoc type checking and assertions and to support flexibility in account balance usage, the existing `x/bank` `ViewKeeper` interface diff --git a/x/auth/testutil/suite.go b/x/auth/testutil/suite.go index 253ce3409c5b..99d77d017930 100644 --- a/x/auth/testutil/suite.go +++ b/x/auth/testutil/suite.go @@ -5,14 +5,14 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/crypto/types/multisig" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types/multisig" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) // TxConfigTestSuite provides a test suite that can be used to test that a TxConfig implementation is correct. diff --git a/x/auth/tx/builder.go b/x/auth/tx/builder.go index 32eacd0137f7..754787813160 100644 --- a/x/auth/tx/builder.go +++ b/x/auth/tx/builder.go @@ -3,15 +3,15 @@ package tx import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/client" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - authsigning "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/ante" + authsigning "github.com/eligion/cosmos-sdk/x/auth/signing" ) // wrapper is a wrapper around the tx.Tx proto.Message which retain the raw diff --git a/x/auth/tx/builder_test.go b/x/auth/tx/builder_test.go index e45a67116378..4715ce01b81d 100644 --- a/x/auth/tx/builder_test.go +++ b/x/auth/tx/builder_test.go @@ -5,14 +5,14 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/legacy" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/legacy" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + txtypes "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) func TestTxBuilder(t *testing.T) { diff --git a/x/auth/tx/config.go b/x/auth/tx/config.go index 8402423dbf77..7ee07fab5842 100644 --- a/x/auth/tx/config.go +++ b/x/auth/tx/config.go @@ -3,13 +3,13 @@ package tx import ( "fmt" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) type config struct { diff --git a/x/auth/tx/config_test.go b/x/auth/tx/config_test.go index b20cf1ce4e85..8de34c9eec43 100644 --- a/x/auth/tx/config_test.go +++ b/x/auth/tx/config_test.go @@ -5,12 +5,12 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/std" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/testutil" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/std" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/testutil" ) func TestGenerator(t *testing.T) { diff --git a/x/auth/tx/decoder.go b/x/auth/tx/decoder.go index 2fef6312b994..cbef3d5d75f3 100644 --- a/x/auth/tx/decoder.go +++ b/x/auth/tx/decoder.go @@ -5,11 +5,11 @@ import ( "google.golang.org/protobuf/encoding/protowire" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/unknownproto" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/unknownproto" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx" ) // DefaultTxDecoder returns a default protobuf TxDecoder using the provided Marshaler. diff --git a/x/auth/tx/direct.go b/x/auth/tx/direct.go index 4acc52a08dd6..0c312c8eb673 100644 --- a/x/auth/tx/direct.go +++ b/x/auth/tx/direct.go @@ -3,11 +3,11 @@ package tx import ( "fmt" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" - sdk "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + sdk "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) // signModeDirectHandler defines the SIGN_MODE_DIRECT SignModeHandler diff --git a/x/auth/tx/direct_test.go b/x/auth/tx/direct_test.go index bef1e81ed974..1adc864b6093 100644 --- a/x/auth/tx/direct_test.go +++ b/x/auth/tx/direct_test.go @@ -6,13 +6,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + txtypes "github.com/eligion/cosmos-sdk/types/tx" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) func TestDirectModeHandler(t *testing.T) { diff --git a/x/auth/tx/encode_decode_test.go b/x/auth/tx/encode_decode_test.go index d4d5ad7554d0..c3ebf560cdf4 100644 --- a/x/auth/tx/encode_decode_test.go +++ b/x/auth/tx/encode_decode_test.go @@ -9,13 +9,13 @@ import ( "github.com/stretchr/testify/require" "google.golang.org/protobuf/encoding/protowire" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/tx" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/tx" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) func TestDefaultTxDecoderError(t *testing.T) { diff --git a/x/auth/tx/encoder.go b/x/auth/tx/encoder.go index 35cecac556eb..ccfce8e62358 100644 --- a/x/auth/tx/encoder.go +++ b/x/auth/tx/encoder.go @@ -5,9 +5,9 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + txtypes "github.com/eligion/cosmos-sdk/types/tx" ) // DefaultTxEncoder returns a default protobuf TxEncoder using the provided Marshaler diff --git a/x/auth/tx/legacy_amino_json.go b/x/auth/tx/legacy_amino_json.go index 090e3d864eab..5e751a3a3bf2 100644 --- a/x/auth/tx/legacy_amino_json.go +++ b/x/auth/tx/legacy_amino_json.go @@ -3,11 +3,11 @@ package tx import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) const aminoNonCriticalFieldsError = "protobuf transaction contains unknown non-critical fields. This is a transaction malleability issue and SIGN_MODE_LEGACY_AMINO_JSON cannot be used." diff --git a/x/auth/tx/legacy_amino_json_test.go b/x/auth/tx/legacy_amino_json_test.go index 3db335286901..1a7048178874 100644 --- a/x/auth/tx/legacy_amino_json_test.go +++ b/x/auth/tx/legacy_amino_json_test.go @@ -5,12 +5,12 @@ import ( "github.com/stretchr/testify/require" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) var ( diff --git a/x/auth/tx/mode_handler.go b/x/auth/tx/mode_handler.go index f49ee16198d7..4045c31d6e54 100644 --- a/x/auth/tx/mode_handler.go +++ b/x/auth/tx/mode_handler.go @@ -3,8 +3,8 @@ package tx import ( "fmt" - signingtypes "github.com/cosmos/cosmos-sdk/types/tx/signing" - "github.com/cosmos/cosmos-sdk/x/auth/signing" + signingtypes "github.com/eligion/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/x/auth/signing" ) // DefaultSignModes are the default sign modes enabled for protobuf transactions. diff --git a/x/auth/tx/query.go b/x/auth/tx/query.go index 756f0db07828..1f86b9ce830c 100644 --- a/x/auth/tx/query.go +++ b/x/auth/tx/query.go @@ -10,9 +10,9 @@ import ( ctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/cosmos/cosmos-sdk/client" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // QueryTxsByEvents performs a search for transactions for a given set of events @@ -43,7 +43,7 @@ func QueryTxsByEvents(clientCtx client.Context, events []string, page, limit int } // TODO: this may not always need to be proven - // https://github.com/cosmos/cosmos-sdk/issues/6807 + // https://github.com/eligion/cosmos-sdk/issues/6807 resTxs, err := node.TxSearch(context.Background(), query, true, &page, &limit, orderBy) if err != nil { return nil, err @@ -78,7 +78,7 @@ func QueryTx(clientCtx client.Context, hashHexStr string) (*sdk.TxResponse, erro } //TODO: this may not always need to be proven - // https://github.com/cosmos/cosmos-sdk/issues/6807 + // https://github.com/eligion/cosmos-sdk/issues/6807 resTx, err := node.Tx(context.Background(), hash, true) if err != nil { return nil, err diff --git a/x/auth/tx/service.go b/x/auth/tx/service.go index 00f123c57112..d19655b42fb7 100644 --- a/x/auth/tx/service.go +++ b/x/auth/tx/service.go @@ -11,11 +11,11 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/client" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - pagination "github.com/cosmos/cosmos-sdk/types/query" - txtypes "github.com/cosmos/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/client" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + pagination "github.com/eligion/cosmos-sdk/types/query" + txtypes "github.com/eligion/cosmos-sdk/types/tx" ) // baseAppSimulateFn is the signature of the Baseapp#Simulate function. @@ -136,7 +136,7 @@ func (s txServer) GetTx(ctx context.Context, req *txtypes.GetTxRequest) (*txtype } // TODO We should also check the proof flag in gRPC header. - // https://github.com/cosmos/cosmos-sdk/issues/7036. + // https://github.com/eligion/cosmos-sdk/issues/7036. result, err := QueryTx(s.clientCtx, req.Hash) if err != nil { if strings.Contains(err.Error(), "not found") { diff --git a/x/auth/tx/service_test.go b/x/auth/tx/service_test.go index fd03df3411a7..f42c6895d812 100644 --- a/x/auth/tx/service_test.go +++ b/x/auth/tx/service_test.go @@ -10,26 +10,26 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - clienttx "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - kmultisig "github.com/cosmos/cosmos-sdk/crypto/keys/multisig" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" - authtest "github.com/cosmos/cosmos-sdk/x/auth/client/testutil" - bankcli "github.com/cosmos/cosmos-sdk/x/bank/client/testutil" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + clienttx "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + kmultisig "github.com/eligion/cosmos-sdk/crypto/keys/multisig" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx/signing" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" + authtest "github.com/eligion/cosmos-sdk/x/auth/client/testutil" + bankcli "github.com/eligion/cosmos-sdk/x/bank/client/testutil" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) var bankMsgSendEventAction = fmt.Sprintf("message.action='%s'", sdk.MsgTypeURL(&banktypes.MsgSend{})) @@ -239,8 +239,8 @@ func (s IntegrationTestSuite) TestGetTxEvents_GRPC() { s.Require().Equal("foobar", grpcRes.Txs[0].Body.Memo) // Make sure fields are populated. - // ref: https://github.com/cosmos/cosmos-sdk/issues/8680 - // ref: https://github.com/cosmos/cosmos-sdk/issues/8681 + // ref: https://github.com/eligion/cosmos-sdk/issues/8680 + // ref: https://github.com/eligion/cosmos-sdk/issues/8681 s.Require().NotEmpty(grpcRes.TxResponses[0].Timestamp) s.Require().NotEmpty(grpcRes.TxResponses[0].RawLog) } @@ -388,8 +388,8 @@ func (s IntegrationTestSuite) TestGetTx_GRPCGateway() { s.Require().NotZero(result.TxResponse.Height) // Make sure fields are populated. - // ref: https://github.com/cosmos/cosmos-sdk/issues/8680 - // ref: https://github.com/cosmos/cosmos-sdk/issues/8681 + // ref: https://github.com/eligion/cosmos-sdk/issues/8680 + // ref: https://github.com/eligion/cosmos-sdk/issues/8681 s.Require().NotEmpty(result.TxResponse.Timestamp) s.Require().NotEmpty(result.TxResponse.RawLog) } diff --git a/x/auth/tx/sigs.go b/x/auth/tx/sigs.go index e2d5d63a6015..90e40bebbf27 100644 --- a/x/auth/tx/sigs.go +++ b/x/auth/tx/sigs.go @@ -3,11 +3,11 @@ package tx import ( "fmt" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/cosmos/cosmos-sdk/types/tx/signing" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types/tx" + "github.com/eligion/cosmos-sdk/types/tx/signing" ) // SignatureDataToModeInfoAndSig converts a SignatureData to a ModeInfo and raw bytes signature diff --git a/x/auth/tx/sigs_test.go b/x/auth/tx/sigs_test.go index ab868db1cdef..d59e7576d954 100644 --- a/x/auth/tx/sigs_test.go +++ b/x/auth/tx/sigs_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/testutil/testdata" ) func TestDecodeMultisignatures(t *testing.T) { diff --git a/x/auth/types/account.go b/x/auth/types/account.go index c0ef8e5da64b..c858bff1d46d 100644 --- a/x/auth/types/account.go +++ b/x/auth/types/account.go @@ -11,10 +11,10 @@ import ( "github.com/tendermint/tendermint/crypto" "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var ( diff --git a/x/auth/types/account_retriever.go b/x/auth/types/account_retriever.go index 792524fff017..2c2ede340197 100644 --- a/x/auth/types/account_retriever.go +++ b/x/auth/types/account_retriever.go @@ -8,9 +8,9 @@ import ( grpc "google.golang.org/grpc" "google.golang.org/grpc/metadata" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" ) var ( diff --git a/x/auth/types/account_retriever_test.go b/x/auth/types/account_retriever_test.go index 1053ffdcbdf6..df4a4aef4033 100644 --- a/x/auth/types/account_retriever_test.go +++ b/x/auth/types/account_retriever_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/x/auth/types" ) func TestAccountRetriever(t *testing.T) { diff --git a/x/auth/types/account_test.go b/x/auth/types/account_test.go index 033b1c3ef966..9291aa9bb19c 100644 --- a/x/auth/types/account_test.go +++ b/x/auth/types/account_test.go @@ -9,10 +9,10 @@ import ( "github.com/stretchr/testify/require" yaml "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) func TestBaseAddressPubKey(t *testing.T) { diff --git a/x/auth/types/auth.pb.go b/x/auth/types/auth.pb.go index fa52ac5a8b90..e39818ff6160 100644 --- a/x/auth/types/auth.pb.go +++ b/x/auth/types/auth.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/regen-network/cosmos-proto" diff --git a/x/auth/types/codec.go b/x/auth/types/codec.go index 629e2919d24d..adbb4273064c 100644 --- a/x/auth/types/codec.go +++ b/x/auth/types/codec.go @@ -1,10 +1,10 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) // RegisterLegacyAminoCodec registers the account interfaces and concrete types on the diff --git a/x/auth/types/common_test.go b/x/auth/types/common_test.go index 8588778994ec..bbcb3a9bb002 100644 --- a/x/auth/types/common_test.go +++ b/x/auth/types/common_test.go @@ -1,7 +1,7 @@ package types_test import ( - "github.com/cosmos/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp" ) var ( diff --git a/x/auth/types/expected_keepers.go b/x/auth/types/expected_keepers.go index 0ab3f9c4308e..03d7396aa76c 100644 --- a/x/auth/types/expected_keepers.go +++ b/x/auth/types/expected_keepers.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // BankKeeper defines the contract needed for supply related APIs (noalias) diff --git a/x/auth/types/genesis.go b/x/auth/types/genesis.go index 380d85fc6b81..4316bc4644f2 100644 --- a/x/auth/types/genesis.go +++ b/x/auth/types/genesis.go @@ -7,9 +7,9 @@ import ( proto "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/types/module" ) var _ types.UnpackInterfacesMessage = GenesisState{} diff --git a/x/auth/types/genesis.pb.go b/x/auth/types/genesis.pb.go index 4e7396ab7cb3..6ee9583430d5 100644 --- a/x/auth/types/genesis.pb.go +++ b/x/auth/types/genesis.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" diff --git a/x/auth/types/genesis_test.go b/x/auth/types/genesis_test.go index 1030885e799e..db2516f6d3ba 100644 --- a/x/auth/types/genesis_test.go +++ b/x/auth/types/genesis_test.go @@ -7,10 +7,10 @@ import ( proto "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/require" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) func TestSanitize(t *testing.T) { diff --git a/x/auth/types/keys.go b/x/auth/types/keys.go index 4cb2538f252c..c3b454f5f9b5 100644 --- a/x/auth/types/keys.go +++ b/x/auth/types/keys.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/x/auth/types/params.go b/x/auth/types/params.go index 3b9dbe9592f2..2bc8063850e2 100644 --- a/x/auth/types/params.go +++ b/x/auth/types/params.go @@ -5,7 +5,7 @@ import ( yaml "gopkg.in/yaml.v2" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // Default parameter values diff --git a/x/auth/types/params_test.go b/x/auth/types/params_test.go index fcec36cb833c..fe5fb564ed9e 100644 --- a/x/auth/types/params_test.go +++ b/x/auth/types/params_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) func TestParamsEqual(t *testing.T) { diff --git a/x/auth/types/permissions.go b/x/auth/types/permissions.go index 8547235003c4..d23deaca7da7 100644 --- a/x/auth/types/permissions.go +++ b/x/auth/types/permissions.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // permissions diff --git a/x/auth/types/query.go b/x/auth/types/query.go index ce0fa7fe2c44..3192831902ac 100644 --- a/x/auth/types/query.go +++ b/x/auth/types/query.go @@ -1,6 +1,6 @@ package types -import codectypes "github.com/cosmos/cosmos-sdk/codec/types" +import codectypes "github.com/eligion/cosmos-sdk/codec/types" func (m *QueryAccountResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error { var account AccountI diff --git a/x/auth/types/query.pb.go b/x/auth/types/query.pb.go index 4150c3f6ff16..b65633ebeffe 100644 --- a/x/auth/types/query.pb.go +++ b/x/auth/types/query.pb.go @@ -6,8 +6,8 @@ package types import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" - query "github.com/cosmos/cosmos-sdk/types/query" + types "github.com/eligion/cosmos-sdk/codec/types" + query "github.com/eligion/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/x/auth/vesting/client/cli/tx.go b/x/auth/vesting/client/cli/tx.go index 686a941e5de2..0aa5e39da457 100644 --- a/x/auth/vesting/client/cli/tx.go +++ b/x/auth/vesting/client/cli/tx.go @@ -5,11 +5,11 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/vesting/types" ) // Transaction command flags diff --git a/x/auth/vesting/client/testutil/cli_test.go b/x/auth/vesting/client/testutil/cli_test.go index dd36a6af2d3e..e6b57e58c2c2 100644 --- a/x/auth/vesting/client/testutil/cli_test.go +++ b/x/auth/vesting/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/auth/vesting/client/testutil/suite.go b/x/auth/vesting/client/testutil/suite.go index f619f31165c8..193ddf931287 100644 --- a/x/auth/vesting/client/testutil/suite.go +++ b/x/auth/vesting/client/testutil/suite.go @@ -6,11 +6,11 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/client/cli" + "github.com/eligion/cosmos-sdk/client/flags" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/vesting/client/cli" ) type IntegrationTestSuite struct { diff --git a/x/auth/vesting/exported/exported.go b/x/auth/vesting/exported/exported.go index 858e53ed4f98..47b3634ae565 100644 --- a/x/auth/vesting/exported/exported.go +++ b/x/auth/vesting/exported/exported.go @@ -3,9 +3,9 @@ package exported import ( "time" - "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/auth/types" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // VestingAccount defines an account type that vests coins via a vesting schedule. diff --git a/x/auth/vesting/handler.go b/x/auth/vesting/handler.go index 1d32e9969bb5..92771218a957 100644 --- a/x/auth/vesting/handler.go +++ b/x/auth/vesting/handler.go @@ -1,10 +1,10 @@ package vesting import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/keeper" + "github.com/eligion/cosmos-sdk/x/auth/vesting/types" ) // NewHandler returns a handler for x/auth message types. diff --git a/x/auth/vesting/handler_test.go b/x/auth/vesting/handler_test.go index f78a337044db..ce3589425a2b 100644 --- a/x/auth/vesting/handler_test.go +++ b/x/auth/vesting/handler_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/vesting" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/vesting" + "github.com/eligion/cosmos-sdk/x/auth/vesting/types" ) type HandlerTestSuite struct { diff --git a/x/auth/vesting/module.go b/x/auth/vesting/module.go index 25820b11bf66..cb1562c372bb 100644 --- a/x/auth/vesting/module.go +++ b/x/auth/vesting/module.go @@ -8,14 +8,14 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/client/cli" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/auth/keeper" + "github.com/eligion/cosmos-sdk/x/auth/vesting/client/cli" + "github.com/eligion/cosmos-sdk/x/auth/vesting/types" ) var ( diff --git a/x/auth/vesting/msg_server.go b/x/auth/vesting/msg_server.go index 795fc2c60581..a834d1beb052 100644 --- a/x/auth/vesting/msg_server.go +++ b/x/auth/vesting/msg_server.go @@ -3,15 +3,15 @@ package vesting import ( "context" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" "github.com/armon/go-metrics" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/keeper" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/keeper" + "github.com/eligion/cosmos-sdk/x/auth/vesting/types" ) type msgServer struct { diff --git a/x/auth/vesting/types/codec.go b/x/auth/vesting/types/codec.go index 6a4b795107d8..29a95b80901e 100644 --- a/x/auth/vesting/types/codec.go +++ b/x/auth/vesting/types/codec.go @@ -1,12 +1,12 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/exported" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/auth/vesting/exported" ) // RegisterLegacyAminoCodec registers the vesting interfaces and concrete types on the diff --git a/x/auth/vesting/types/common_test.go b/x/auth/vesting/types/common_test.go index 289b2d427701..942190b61073 100644 --- a/x/auth/vesting/types/common_test.go +++ b/x/auth/vesting/types/common_test.go @@ -1,7 +1,7 @@ package types_test import ( - "github.com/cosmos/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp" ) var ( diff --git a/x/auth/vesting/types/expected_keepers.go b/x/auth/vesting/types/expected_keepers.go index 5705eea30baf..8495fa3e3682 100644 --- a/x/auth/vesting/types/expected_keepers.go +++ b/x/auth/vesting/types/expected_keepers.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // BankKeeper defines the expected interface contract the vesting module requires diff --git a/x/auth/vesting/types/genesis_test.go b/x/auth/vesting/types/genesis_test.go index 98aabb15cfde..1a2fc67efc9e 100644 --- a/x/auth/vesting/types/genesis_test.go +++ b/x/auth/vesting/types/genesis_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" ) var ( diff --git a/x/auth/vesting/types/msgs.go b/x/auth/vesting/types/msgs.go index 3308e0304881..4105b74c7745 100644 --- a/x/auth/vesting/types/msgs.go +++ b/x/auth/vesting/types/msgs.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // TypeMsgCreateVestingAccount defines the type value for a MsgCreateVestingAccount. diff --git a/x/auth/vesting/types/test_common.go b/x/auth/vesting/types/test_common.go index 0e22ea2352dd..27bccdabac74 100644 --- a/x/auth/vesting/types/test_common.go +++ b/x/auth/vesting/types/test_common.go @@ -1,11 +1,11 @@ package types import ( - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewTestMsg generates a test message diff --git a/x/auth/vesting/types/tx.pb.go b/x/auth/vesting/types/tx.pb.go index d07a154dd326..85026891b68c 100644 --- a/x/auth/vesting/types/tx.pb.go +++ b/x/auth/vesting/types/tx.pb.go @@ -6,8 +6,8 @@ package types import ( context "context" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -35,7 +35,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MsgCreateVestingAccount struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"amount"` EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"` Delayed bool `protobuf:"varint,5,opt,name=delayed,proto3" json:"delayed,omitempty"` } diff --git a/x/auth/vesting/types/vesting.pb.go b/x/auth/vesting/types/vesting.pb.go index ef6c8d01e425..a5fe973376e9 100644 --- a/x/auth/vesting/types/vesting.pb.go +++ b/x/auth/vesting/types/vesting.pb.go @@ -5,9 +5,9 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types1 "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/x/auth/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types1 "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/x/auth/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" @@ -30,9 +30,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // the necessary fields needed for any vesting account implementation. type BaseVestingAccount struct { *types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"` - OriginalVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"original_vesting" yaml:"original_vesting"` - DelegatedFree github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_free" yaml:"delegated_free"` - DelegatedVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"delegated_vesting" yaml:"delegated_vesting"` + OriginalVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=original_vesting,json=originalVesting,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"original_vesting" yaml:"original_vesting"` + DelegatedFree github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=delegated_free,json=delegatedFree,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"delegated_free" yaml:"delegated_free"` + DelegatedVesting github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=delegated_vesting,json=delegatedVesting,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"delegated_vesting" yaml:"delegated_vesting"` EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty" yaml:"end_time"` } @@ -149,7 +149,7 @@ var xxx_messageInfo_DelayedVestingAccount proto.InternalMessageInfo // Period defines a length of time and amount of coins that will vest. type Period struct { Length int64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"amount"` } func (m *Period) Reset() { *m = Period{} } diff --git a/x/auth/vesting/types/vesting_account.go b/x/auth/vesting/types/vesting_account.go index b4e35835cc83..d8863c7a71f2 100644 --- a/x/auth/vesting/types/vesting_account.go +++ b/x/auth/vesting/types/vesting_account.go @@ -6,10 +6,10 @@ import ( yaml "gopkg.in/yaml.v2" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - vestexported "github.com/cosmos/cosmos-sdk/x/auth/vesting/exported" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + vestexported "github.com/eligion/cosmos-sdk/x/auth/vesting/exported" ) // Compile-time type assertions diff --git a/x/auth/vesting/types/vesting_account_test.go b/x/auth/vesting/types/vesting_account_test.go index 979b0221292b..2adc7b858d79 100644 --- a/x/auth/vesting/types/vesting_account_test.go +++ b/x/auth/vesting/types/vesting_account_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" tmtime "github.com/tendermint/tendermint/types/time" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/auth/vesting/types" ) var ( diff --git a/x/authz/authorization_grant.go b/x/authz/authorization_grant.go index a873499b621b..6fd443e3cbb2 100644 --- a/x/authz/authorization_grant.go +++ b/x/authz/authorization_grant.go @@ -5,8 +5,8 @@ import ( proto "github.com/gogo/protobuf/proto" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // NewGrant returns new Grant diff --git a/x/authz/authorization_grant_test.go b/x/authz/authorization_grant_test.go index 9f9f00108c73..e718e6afc91b 100644 --- a/x/authz/authorization_grant_test.go +++ b/x/authz/authorization_grant_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - // banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + // banktypes "github.com/eligion/cosmos-sdk/x/bank/types" "github.com/stretchr/testify/require" ) diff --git a/x/authz/authorizations.go b/x/authz/authorizations.go index b0412ad4b34a..6a39c7ea60e4 100644 --- a/x/authz/authorizations.go +++ b/x/authz/authorizations.go @@ -3,7 +3,7 @@ package authz import ( "github.com/gogo/protobuf/proto" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // Authorization represents the interface of various Authorization types implemented diff --git a/x/authz/authz.pb.go b/x/authz/authz.pb.go index 34fe197e01db..31fa4457a336 100644 --- a/x/authz/authz.pb.go +++ b/x/authz/authz.pb.go @@ -5,7 +5,7 @@ package authz import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" diff --git a/x/authz/client/cli/query.go b/x/authz/client/cli/query.go index c8772b2aaa46..53e675d9398d 100644 --- a/x/authz/client/cli/query.go +++ b/x/authz/client/cli/query.go @@ -6,12 +6,12 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/authz" - bank "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/authz" + bank "github.com/eligion/cosmos-sdk/x/bank/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/authz/client/cli/tx.go b/x/authz/client/cli/tx.go index f4117ee1c740..d7937c8d1bdf 100644 --- a/x/authz/client/cli/tx.go +++ b/x/authz/client/cli/tx.go @@ -8,15 +8,15 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" - "github.com/cosmos/cosmos-sdk/x/authz" - bank "github.com/cosmos/cosmos-sdk/x/bank/types" - staking "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" + "github.com/eligion/cosmos-sdk/x/authz" + bank "github.com/eligion/cosmos-sdk/x/bank/types" + staking "github.com/eligion/cosmos-sdk/x/staking/types" ) // Flag names and values diff --git a/x/authz/client/rest/grpc_query_test.go b/x/authz/client/rest/grpc_query_test.go index 614e283a15ed..f1f1ea1f007d 100644 --- a/x/authz/client/rest/grpc_query_test.go +++ b/x/authz/client/rest/grpc_query_test.go @@ -9,18 +9,18 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/authz" - "github.com/cosmos/cosmos-sdk/x/authz/client/cli" - authztestutil "github.com/cosmos/cosmos-sdk/x/authz/client/testutil" - banktestutil "github.com/cosmos/cosmos-sdk/x/bank/client/testutil" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/x/authz/client/cli" + authztestutil "github.com/eligion/cosmos-sdk/x/authz/client/testutil" + banktestutil "github.com/eligion/cosmos-sdk/x/bank/client/testutil" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) type IntegrationTestSuite struct { diff --git a/x/authz/client/testutil/cli_test.go b/x/authz/client/testutil/cli_test.go index 3c083e694726..3c2e238e5895 100644 --- a/x/authz/client/testutil/cli_test.go +++ b/x/authz/client/testutil/cli_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" ) func TestIntegrationTestSuite(t *testing.T) { diff --git a/x/authz/client/testutil/query.go b/x/authz/client/testutil/query.go index 529939a7019c..8b97a392c711 100644 --- a/x/authz/client/testutil/query.go +++ b/x/authz/client/testutil/query.go @@ -7,11 +7,11 @@ import ( tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/authz" - "github.com/cosmos/cosmos-sdk/x/authz/client/cli" + "github.com/eligion/cosmos-sdk/client/flags" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/x/authz/client/cli" ) func (s *IntegrationTestSuite) TestQueryAuthorizations() { diff --git a/x/authz/client/testutil/test_helpers.go b/x/authz/client/testutil/test_helpers.go index 1a1cd4830fc1..3766d9faed5e 100644 --- a/x/authz/client/testutil/test_helpers.go +++ b/x/authz/client/testutil/test_helpers.go @@ -1,10 +1,10 @@ package testutil import ( - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/x/authz/client/cli" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/x/authz/client/cli" ) func ExecGrant(val *network.Validator, args []string) (testutil.BufferWriter, error) { diff --git a/x/authz/client/testutil/tx.go b/x/authz/client/testutil/tx.go index ebc3e3c31d2b..db6fc4ce302b 100644 --- a/x/authz/client/testutil/tx.go +++ b/x/authz/client/testutil/tx.go @@ -7,20 +7,20 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/authz/client/cli" - banktestutil "github.com/cosmos/cosmos-sdk/x/bank/client/testutil" - bank "github.com/cosmos/cosmos-sdk/x/bank/types" - govcli "github.com/cosmos/cosmos-sdk/x/gov/client/cli" - govtestutil "github.com/cosmos/cosmos-sdk/x/gov/client/testutil" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - stakingcli "github.com/cosmos/cosmos-sdk/x/staking/client/cli" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/authz/client/cli" + banktestutil "github.com/eligion/cosmos-sdk/x/bank/client/testutil" + bank "github.com/eligion/cosmos-sdk/x/bank/types" + govcli "github.com/eligion/cosmos-sdk/x/gov/client/cli" + govtestutil "github.com/eligion/cosmos-sdk/x/gov/client/testutil" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + stakingcli "github.com/eligion/cosmos-sdk/x/staking/client/cli" ) type IntegrationTestSuite struct { diff --git a/x/authz/codec.go b/x/authz/codec.go index e9a490cea379..7ce85e65ec65 100644 --- a/x/authz/codec.go +++ b/x/authz/codec.go @@ -1,9 +1,9 @@ package authz import ( - types "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" + types "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" ) // RegisterInterfaces registers the interfaces types with the interface registry diff --git a/x/authz/errors.go b/x/authz/errors.go index 02251c8d6f7e..b47bdb7a9631 100644 --- a/x/authz/errors.go +++ b/x/authz/errors.go @@ -1,7 +1,7 @@ package authz import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/authz module sentinel errors diff --git a/x/authz/expected_keepers.go b/x/authz/expected_keepers.go index 1d00ed19aac2..1f08ef3f182a 100644 --- a/x/authz/expected_keepers.go +++ b/x/authz/expected_keepers.go @@ -1,8 +1,8 @@ package authz import ( - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" ) // AccountKeeper defines the expected account keeper (noalias) diff --git a/x/authz/generic_authorization.go b/x/authz/generic_authorization.go index d6249b137a28..4502e6e77ee6 100644 --- a/x/authz/generic_authorization.go +++ b/x/authz/generic_authorization.go @@ -1,7 +1,7 @@ package authz import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var ( diff --git a/x/authz/generic_authorization_test.go b/x/authz/generic_authorization_test.go index 8d0ff8a122ce..4e495fe883d7 100644 --- a/x/authz/generic_authorization_test.go +++ b/x/authz/generic_authorization_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/authz" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/authz" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) func TestGenericAuthorization(t *testing.T) { diff --git a/x/authz/genesis.go b/x/authz/genesis.go index d14bbbb18a8c..f9a0e94d5fd5 100644 --- a/x/authz/genesis.go +++ b/x/authz/genesis.go @@ -1,7 +1,7 @@ package authz import ( - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" ) // NewGenesisState creates new GenesisState object diff --git a/x/authz/genesis.pb.go b/x/authz/genesis.pb.go index eb6b63d4c72b..e1b18781251c 100644 --- a/x/authz/genesis.pb.go +++ b/x/authz/genesis.pb.go @@ -5,7 +5,7 @@ package authz import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" diff --git a/x/authz/keeper/genesis_test.go b/x/authz/keeper/genesis_test.go index 0af0c842d457..5f96012688f8 100644 --- a/x/authz/keeper/genesis_test.go +++ b/x/authz/keeper/genesis_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/authz/keeper" - bank "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/authz/keeper" + bank "github.com/eligion/cosmos-sdk/x/bank/types" ) type GenesisTestSuite struct { diff --git a/x/authz/keeper/grpc_query.go b/x/authz/keeper/grpc_query.go index 76091daaf7e9..9ef18cef80e9 100644 --- a/x/authz/keeper/grpc_query.go +++ b/x/authz/keeper/grpc_query.go @@ -8,12 +8,12 @@ import ( proto "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/authz" ) var _ authz.QueryServer = Keeper{} diff --git a/x/authz/keeper/grpc_query_test.go b/x/authz/keeper/grpc_query_test.go index 37ddb7cf84c0..481aabd67e06 100644 --- a/x/authz/keeper/grpc_query_test.go +++ b/x/authz/keeper/grpc_query_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/authz" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/authz" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) func (suite *TestSuite) TestGRPCQueryAuthorization() { diff --git a/x/authz/keeper/keeper.go b/x/authz/keeper/keeper.go index ce4e421c1259..4a6b51a520bf 100644 --- a/x/authz/keeper/keeper.go +++ b/x/authz/keeper/keeper.go @@ -8,12 +8,12 @@ import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/authz" ) type Keeper struct { diff --git a/x/authz/keeper/keeper_test.go b/x/authz/keeper/keeper_test.go index 8dfebac95a3b..b57971986512 100644 --- a/x/authz/keeper/keeper_test.go +++ b/x/authz/keeper/keeper_test.go @@ -8,11 +8,11 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmtime "github.com/tendermint/tendermint/types/time" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/authz" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/authz" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) var bankSendAuthMsgType = banktypes.SendAuthorization{}.MsgTypeURL() @@ -197,7 +197,7 @@ func (s *TestSuite) TestKeeperFees() { } // Tests that all msg events included in an authz MsgExec tx -// Ref: https://github.com/cosmos/cosmos-sdk/issues/9501 +// Ref: https://github.com/eligion/cosmos-sdk/issues/9501 func (s *TestSuite) TestDispatchedEvents() { require := s.Require() app, addrs := s.app, s.addrs diff --git a/x/authz/keeper/keys.go b/x/authz/keeper/keys.go index 3bdd02138efb..ffbdfb00af3d 100644 --- a/x/authz/keeper/keys.go +++ b/x/authz/keeper/keys.go @@ -1,10 +1,10 @@ package keeper import ( - "github.com/cosmos/cosmos-sdk/internal/conv" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" - "github.com/cosmos/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/internal/conv" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" + "github.com/eligion/cosmos-sdk/x/authz" ) // Keys for store prefixes diff --git a/x/authz/keeper/keys_test.go b/x/authz/keeper/keys_test.go index 4af555eef410..a421e64291f5 100644 --- a/x/authz/keeper/keys_test.go +++ b/x/authz/keeper/keys_test.go @@ -5,10 +5,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" - bank "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" + bank "github.com/eligion/cosmos-sdk/x/bank/types" ) var granter = sdk.AccAddress(ed25519.GenPrivKey().PubKey().Address()) diff --git a/x/authz/keeper/msg_server.go b/x/authz/keeper/msg_server.go index 2e5183865a2a..be02f7b2ca0e 100644 --- a/x/authz/keeper/msg_server.go +++ b/x/authz/keeper/msg_server.go @@ -3,9 +3,9 @@ package keeper import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/authz" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/authz" ) var _ authz.MsgServer = Keeper{} diff --git a/x/authz/module/module.go b/x/authz/module/module.go index 211b814aa6d7..958e5b29f6bb 100644 --- a/x/authz/module/module.go +++ b/x/authz/module/module.go @@ -10,17 +10,17 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - sdkclient "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/authz" - "github.com/cosmos/cosmos-sdk/x/authz/client/cli" - "github.com/cosmos/cosmos-sdk/x/authz/keeper" - "github.com/cosmos/cosmos-sdk/x/authz/simulation" + sdkclient "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/x/authz/client/cli" + "github.com/eligion/cosmos-sdk/x/authz/keeper" + "github.com/eligion/cosmos-sdk/x/authz/simulation" ) var ( diff --git a/x/authz/msgs.go b/x/authz/msgs.go index e8ecde0553b4..16b1308c026e 100644 --- a/x/authz/msgs.go +++ b/x/authz/msgs.go @@ -5,11 +5,11 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/legacy" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/codec/legacy" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) var ( diff --git a/x/authz/msgs_test.go b/x/authz/msgs_test.go index c7b4192d3783..9b1bf7393350 100644 --- a/x/authz/msgs_test.go +++ b/x/authz/msgs_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/authz" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/authz" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) var ( diff --git a/x/authz/query.pb.go b/x/authz/query.pb.go index 3e332ef64453..4a1e1438b439 100644 --- a/x/authz/query.pb.go +++ b/x/authz/query.pb.go @@ -6,7 +6,7 @@ package authz import ( context "context" fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" + query "github.com/eligion/cosmos-sdk/types/query" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" diff --git a/x/authz/simulation/decoder.go b/x/authz/simulation/decoder.go index 908a90abf554..97d7eeebb9ee 100644 --- a/x/authz/simulation/decoder.go +++ b/x/authz/simulation/decoder.go @@ -4,10 +4,10 @@ import ( "bytes" "fmt" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/authz" - "github.com/cosmos/cosmos-sdk/x/authz/keeper" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/x/authz/keeper" ) // NewDecodeStore returns a decoder function closure that umarshals the KVPair's diff --git a/x/authz/simulation/decoder_test.go b/x/authz/simulation/decoder_test.go index cfda286a8377..6494f01983f9 100644 --- a/x/authz/simulation/decoder_test.go +++ b/x/authz/simulation/decoder_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/authz" - "github.com/cosmos/cosmos-sdk/x/authz/keeper" - "github.com/cosmos/cosmos-sdk/x/authz/simulation" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/x/authz/keeper" + "github.com/eligion/cosmos-sdk/x/authz/simulation" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) func TestDecodeStore(t *testing.T) { diff --git a/x/authz/simulation/genesis.go b/x/authz/simulation/genesis.go index b95207be9758..c0da510845ac 100644 --- a/x/authz/simulation/genesis.go +++ b/x/authz/simulation/genesis.go @@ -3,13 +3,13 @@ package simulation import ( "math/rand" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/authz" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/authz" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) // genGrant returns a slice of authorization grants. diff --git a/x/authz/simulation/genesis_test.go b/x/authz/simulation/genesis_test.go index ef217f92c5ca..ca4684ac84dc 100644 --- a/x/authz/simulation/genesis_test.go +++ b/x/authz/simulation/genesis_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/authz" - "github.com/cosmos/cosmos-sdk/x/authz/simulation" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/x/authz/simulation" ) func TestRandomizedGenState(t *testing.T) { diff --git a/x/authz/simulation/operations.go b/x/authz/simulation/operations.go index b2a5f20d4d90..038519737167 100644 --- a/x/authz/simulation/operations.go +++ b/x/authz/simulation/operations.go @@ -6,20 +6,20 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/authz" - - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/authz/keeper" - - banktype "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/simapp/helpers" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/authz" + + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/authz/keeper" + + banktype "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/simulation" ) // authz message types diff --git a/x/authz/simulation/operations_test.go b/x/authz/simulation/operations_test.go index bdb7f98f82db..036e5e9f860d 100644 --- a/x/authz/simulation/operations_test.go +++ b/x/authz/simulation/operations_test.go @@ -10,12 +10,12 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/authz" - "github.com/cosmos/cosmos-sdk/x/authz/simulation" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/x/authz/simulation" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) type SimTestSuite struct { diff --git a/x/authz/spec/01_concepts.md b/x/authz/spec/01_concepts.md index 1aeb68650d3c..71510aec5d78 100644 --- a/x/authz/spec/01_concepts.md +++ b/x/authz/spec/01_concepts.md @@ -12,7 +12,7 @@ on behalf of one account to other accounts. The design is defined in the [ADR 03 Grant is an allowance to execute a Msg by the grantee on behalf of the granter. Authorization is an interface which must be implemented by a concrete authorization logic to validate and execute grants. They are extensible and can be defined for any Msg service method even outside of the module where the Msg method is defined. See the `SendAuthorization` example in the next section for more details. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/authz/authorizations.go#L11-L25 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/authz/authorizations.go#L11-L25 ## Built-in Authorizations @@ -22,9 +22,9 @@ Cosmos-SDK `x/authz` module comes with following authorization types `SendAuthorization` implements the `Authorization` interface for the `cosmos.bank.v1beta1.MsgSend` Msg. It takes a `SpendLimit` that specifies the maximum amount of tokens the grantee can spend, which is updated as the tokens are spent. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/bank/v1beta1/authz.proto#L10-L19 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/bank/v1beta1/authz.proto#L10-L19 -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/bank/types/send_authorization.go#L25-L40 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/bank/types/send_authorization.go#L25-L40 - `spent_limit` keeps track of how many coins are left in the authorization. @@ -32,9 +32,9 @@ Cosmos-SDK `x/authz` module comes with following authorization types `GenericAuthorization` implements the `Authorization` interface, that gives unrestricted permission to execute the provided Msg on behalf of granter's account. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/authz.proto#L14-L19 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/authz.proto#L14-L19 -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/x/authz/generic_authorization.go#L18-L31 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/x/authz/generic_authorization.go#L18-L31 - `msg` stores Msg type URL. diff --git a/x/authz/spec/02_state.md b/x/authz/spec/02_state.md index 5b07f645a120..b1455755f5d4 100644 --- a/x/authz/spec/02_state.md +++ b/x/authz/spec/02_state.md @@ -12,4 +12,4 @@ Grants are identified by combining granter address (the address bytes of the gra The grant object encapsulates an `Authorization` type and an expiration timestamp: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/authz.proto#L21-L26 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/authz.proto#L21-L26 diff --git a/x/authz/spec/03_messages.md b/x/authz/spec/03_messages.md index 736c5761b96f..9abd77fc466b 100644 --- a/x/authz/spec/03_messages.md +++ b/x/authz/spec/03_messages.md @@ -11,7 +11,7 @@ In this section we describe the processing of messages for the authz module. An authorization grant is created using the `MsgGrant` message. If there is already a grant for the `(granter, grantee, Authorization)` triple, then the new grant will overwrite the previous one. To update or extend an existing grant, a new grant with the same `(granter, grantee, Authorization)` triple should be created. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/tx.proto#L32-L37 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/tx.proto#L32-L37 The message handling should fail if: @@ -24,7 +24,7 @@ The message handling should fail if: A grant can be removed with the `MsgRevoke` message. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/tx.proto#L60-L64 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/tx.proto#L60-L64 The message handling should fail if: @@ -37,7 +37,7 @@ NOTE: The `MsgExec` message removes a grant if the grant has expired. When a grantee wants to execute a transaction on behalf of a granter, they must send `MsgExec`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/tx.proto#L47-L53 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-beta1/proto/cosmos/authz/v1beta1/tx.proto#L47-L53 The message handling should fail if: diff --git a/x/authz/tx.pb.go b/x/authz/tx.pb.go index 9f75a1936185..cbca21a248dd 100644 --- a/x/authz/tx.pb.go +++ b/x/authz/tx.pb.go @@ -6,8 +6,8 @@ package authz import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" - _ "github.com/cosmos/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/codec/types" + _ "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/x/bank/app_test.go b/x/bank/app_test.go index ba8085026a5c..b6be04f20885 100644 --- a/x/bank/app_test.go +++ b/x/bank/app_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/bank/types" ) type ( diff --git a/x/bank/atlas/atlas-v0.39.1.md b/x/bank/atlas/atlas-v0.39.1.md index bdd6d15089c2..64dc5fced931 100644 --- a/x/bank/atlas/atlas-v0.39.1.md +++ b/x/bank/atlas/atlas-v0.39.1.md @@ -10,7 +10,7 @@ with particular kinds of accounts. ```go import ( - "github.com/cosmos/cosmos-sdk/x/bank" + "github.com/eligion/cosmos-sdk/x/bank" ) ``` diff --git a/x/bank/atlas/atlas.toml b/x/bank/atlas/atlas.toml index 9639ffd40000..4596c3061b62 100644 --- a/x/bank/atlas/atlas.toml +++ b/x/bank/atlas/atlas.toml @@ -1,6 +1,6 @@ [module] description = "The bank module is responsible for handling multi-asset coin transfers between accounts and tracking special-case pseudo-transfers which must work differently with particular kinds of accounts." -homepage = "https://github.com/cosmos/cosmos-sdk" +homepage = "https://github.com/eligion/cosmos-sdk" keywords = [ "tokens", "bank", @@ -13,7 +13,7 @@ keywords = [ name = "x/bank" [bug_tracker] -url = "https://github.com/cosmos/cosmos-sdk/issues" +url = "https://github.com/eligion/cosmos-sdk/issues" [[authors]] name = "alexanderbez" @@ -29,6 +29,6 @@ name = "alessio" [version] documentation = "https://raw.githubusercontent.com/cosmos/cosmos-sdk/master/x/bank/atlas/atlas-v0.39.1.md" -repo = "https://github.com/cosmos/cosmos-sdk/releases/tag/v0.39.2" +repo = "https://github.com/eligion/cosmos-sdk/releases/tag/v0.39.2" sdk_compat = "v0.39.x" version = "v0.39.2" diff --git a/x/bank/bench_test.go b/x/bank/bench_test.go index 4ba2624b7627..398a7bb0ab5f 100644 --- a/x/bank/bench_test.go +++ b/x/bank/bench_test.go @@ -7,12 +7,12 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var moduleAccAddr = authtypes.NewModuleAddress(stakingtypes.BondedPoolName) diff --git a/x/bank/client/cli/query.go b/x/bank/client/cli/query.go index 4019bb738d9a..c08f94a032cc 100644 --- a/x/bank/client/cli/query.go +++ b/x/bank/client/cli/query.go @@ -6,11 +6,11 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/bank/types" ) const ( diff --git a/x/bank/client/cli/tx.go b/x/bank/client/cli/tx.go index 4fee9ffd1e81..c83f676f12b2 100644 --- a/x/bank/client/cli/tx.go +++ b/x/bank/client/cli/tx.go @@ -3,11 +3,11 @@ package cli import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // NewTxCmd returns a root CLI command handler for all x/bank transaction commands. diff --git a/x/bank/client/rest/grpc_query_test.go b/x/bank/client/rest/grpc_query_test.go index 857aa58e4b83..4c90fa5647c4 100644 --- a/x/bank/client/rest/grpc_query_test.go +++ b/x/bank/client/rest/grpc_query_test.go @@ -7,12 +7,12 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/testutil" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/bank/types" ) func (s *IntegrationTestSuite) TestTotalSupplyGRPCHandler() { diff --git a/x/bank/client/rest/query.go b/x/bank/client/rest/query.go index 7c88c790f83c..e046d2bad6b4 100644 --- a/x/bank/client/rest/query.go +++ b/x/bank/client/rest/query.go @@ -6,10 +6,10 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // QueryBalancesRequestHandlerFn returns a REST handler that queries for all diff --git a/x/bank/client/rest/query_test.go b/x/bank/client/rest/query_test.go index a9e43a53db86..2192489f910f 100644 --- a/x/bank/client/rest/query_test.go +++ b/x/bank/client/rest/query_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/bank/types" ) type IntegrationTestSuite struct { diff --git a/x/bank/client/rest/rest.go b/x/bank/client/rest/rest.go index db4909c53258..a055c790e532 100644 --- a/x/bank/client/rest/rest.go +++ b/x/bank/client/rest/rest.go @@ -3,9 +3,9 @@ package rest import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client/rest" + "github.com/eligion/cosmos-sdk/client/rest" - "github.com/cosmos/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client" ) // RegisterHandlers registers all x/bank transaction and query HTTP REST handlers diff --git a/x/bank/client/rest/tx.go b/x/bank/client/rest/tx.go index e630710dff22..68a4876aeb69 100644 --- a/x/bank/client/rest/tx.go +++ b/x/bank/client/rest/tx.go @@ -5,11 +5,11 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // SendReq defines the properties of a send request's body. diff --git a/x/bank/client/rest/tx_test.go b/x/bank/client/rest/tx_test.go index 8406a2c2abdf..3fe235cad6d2 100644 --- a/x/bank/client/rest/tx_test.go +++ b/x/bank/client/rest/tx_test.go @@ -5,15 +5,15 @@ package rest_test import ( "fmt" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - bankrest "github.com/cosmos/cosmos-sdk/x/bank/client/rest" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + bankrest "github.com/eligion/cosmos-sdk/x/bank/client/rest" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" ) func (s *IntegrationTestSuite) TestCoinSend() { diff --git a/x/bank/client/testutil/cli_helpers.go b/x/bank/client/testutil/cli_helpers.go index a1a33c4f67bc..e3b4864c953b 100644 --- a/x/bank/client/testutil/cli_helpers.go +++ b/x/bank/client/testutil/cli_helpers.go @@ -5,10 +5,10 @@ import ( "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - bankcli "github.com/cosmos/cosmos-sdk/x/bank/client/cli" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + bankcli "github.com/eligion/cosmos-sdk/x/bank/client/cli" ) func MsgSendExec(clientCtx client.Context, from, to, amount fmt.Stringer, extraArgs ...string) (testutil.BufferWriter, error) { diff --git a/x/bank/client/testutil/cli_test.go b/x/bank/client/testutil/cli_test.go index dd36a6af2d3e..e6b57e58c2c2 100644 --- a/x/bank/client/testutil/cli_test.go +++ b/x/bank/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/bank/client/testutil/suite.go b/x/bank/client/testutil/suite.go index 19be5401c672..fe2aa306571d 100644 --- a/x/bank/client/testutil/suite.go +++ b/x/bank/client/testutil/suite.go @@ -7,14 +7,14 @@ import ( "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/bank/client/cli" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client/flags" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/bank/client/cli" + "github.com/eligion/cosmos-sdk/x/bank/types" ) type IntegrationTestSuite struct { diff --git a/x/bank/exported/exported.go b/x/bank/exported/exported.go index c4f2e9f6da09..8f12f0201707 100644 --- a/x/bank/exported/exported.go +++ b/x/bank/exported/exported.go @@ -1,7 +1,7 @@ package exported import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // GenesisBalance defines a genesis balance interface that allows for account diff --git a/x/bank/handler.go b/x/bank/handler.go index 0fb0f53a4cd8..493462664905 100644 --- a/x/bank/handler.go +++ b/x/bank/handler.go @@ -1,10 +1,10 @@ package bank import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/bank/keeper" - "github.com/cosmos/cosmos-sdk/x/bank/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/bank/keeper" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // NewHandler returns a handler for "bank" type messages. diff --git a/x/bank/handler_test.go b/x/bank/handler_test.go index 5fcdf02f1a93..d638ba236c45 100644 --- a/x/bank/handler_test.go +++ b/x/bank/handler_test.go @@ -7,16 +7,16 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/bank" - bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" - "github.com/cosmos/cosmos-sdk/x/bank/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/bank" + bankkeeper "github.com/eligion/cosmos-sdk/x/bank/keeper" + "github.com/eligion/cosmos-sdk/x/bank/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestInvalidMsg(t *testing.T) { diff --git a/x/bank/keeper/genesis.go b/x/bank/keeper/genesis.go index 24b5ef44f9fc..10fef9a978f7 100644 --- a/x/bank/keeper/genesis.go +++ b/x/bank/keeper/genesis.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/bank/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // InitGenesis initializes the bank module's state from a given genesis state. diff --git a/x/bank/keeper/genesis_test.go b/x/bank/keeper/genesis_test.go index 70d53b9f0430..0aecff27d25a 100644 --- a/x/bank/keeper/genesis_test.go +++ b/x/bank/keeper/genesis_test.go @@ -1,10 +1,10 @@ package keeper_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/bank/types" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/bank/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" ) func (suite *IntegrationTestSuite) TestExportGenesis() { diff --git a/x/bank/keeper/grpc_query.go b/x/bank/keeper/grpc_query.go index 02655aa2f595..bfef3fd7c3c5 100644 --- a/x/bank/keeper/grpc_query.go +++ b/x/bank/keeper/grpc_query.go @@ -6,10 +6,10 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/bank/types" ) var _ types.QueryServer = BaseKeeper{} diff --git a/x/bank/keeper/grpc_query_test.go b/x/bank/keeper/grpc_query_test.go index 181506a6d7fb..c03d560a6310 100644 --- a/x/bank/keeper/grpc_query_test.go +++ b/x/bank/keeper/grpc_query_test.go @@ -4,14 +4,14 @@ import ( gocontext "context" "fmt" - "github.com/cosmos/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/bank/types" ) func (suite *IntegrationTestSuite) TestQueryBalance() { diff --git a/x/bank/keeper/invariants.go b/x/bank/keeper/invariants.go index 52da98381fc6..9beac0990a7e 100644 --- a/x/bank/keeper/invariants.go +++ b/x/bank/keeper/invariants.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/bank/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // RegisterInvariants registers the bank module invariants diff --git a/x/bank/keeper/keeper.go b/x/bank/keeper/keeper.go index 482c002870bd..940c2a04e991 100644 --- a/x/bank/keeper/keeper.go +++ b/x/bank/keeper/keeper.go @@ -3,15 +3,15 @@ package keeper import ( "fmt" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/query" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - vestexported "github.com/cosmos/cosmos-sdk/x/auth/vesting/exported" - "github.com/cosmos/cosmos-sdk/x/bank/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/query" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + vestexported "github.com/eligion/cosmos-sdk/x/auth/vesting/exported" + "github.com/eligion/cosmos-sdk/x/bank/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) var _ Keeper = (*BaseKeeper)(nil) diff --git a/x/bank/keeper/keeper_test.go b/x/bank/keeper/keeper_test.go index 93f355260bf8..c2a296fee34e 100644 --- a/x/bank/keeper/keeper_test.go +++ b/x/bank/keeper/keeper_test.go @@ -4,24 +4,24 @@ import ( "testing" "time" - "github.com/cosmos/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/auth/vesting/exported" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/x/auth/vesting/exported" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmtime "github.com/tendermint/tendermint/types/time" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - vesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types" - "github.com/cosmos/cosmos-sdk/x/bank/keeper" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + authkeeper "github.com/eligion/cosmos-sdk/x/auth/keeper" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + vesting "github.com/eligion/cosmos-sdk/x/auth/vesting/types" + "github.com/eligion/cosmos-sdk/x/bank/keeper" + "github.com/eligion/cosmos-sdk/x/bank/types" ) const ( diff --git a/x/bank/keeper/migrations.go b/x/bank/keeper/migrations.go index e46b386b81a9..b1109be63bc1 100644 --- a/x/bank/keeper/migrations.go +++ b/x/bank/keeper/migrations.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v043 "github.com/cosmos/cosmos-sdk/x/bank/legacy/v043" + sdk "github.com/eligion/cosmos-sdk/types" + v043 "github.com/eligion/cosmos-sdk/x/bank/legacy/v043" ) // Migrator is a struct for handling in-place store migrations. diff --git a/x/bank/keeper/msg_server.go b/x/bank/keeper/msg_server.go index 5d940b459e47..4887a0704489 100644 --- a/x/bank/keeper/msg_server.go +++ b/x/bank/keeper/msg_server.go @@ -5,10 +5,10 @@ import ( "github.com/armon/go-metrics" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/bank/types" ) type msgServer struct { diff --git a/x/bank/keeper/querier.go b/x/bank/keeper/querier.go index e64321b6c0a8..880453ea7440 100644 --- a/x/bank/keeper/querier.go +++ b/x/bank/keeper/querier.go @@ -3,10 +3,10 @@ package keeper import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // NewQuerier returns a new sdk.Keeper instance. diff --git a/x/bank/keeper/querier_test.go b/x/bank/keeper/querier_test.go index 66f98fdd17f8..abd91e90bff2 100644 --- a/x/bank/keeper/querier_test.go +++ b/x/bank/keeper/querier_test.go @@ -5,13 +5,13 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/bank/keeper" - "github.com/cosmos/cosmos-sdk/x/bank/types" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/bank/keeper" + "github.com/eligion/cosmos-sdk/x/bank/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" ) func (suite *IntegrationTestSuite) TestQuerier_QueryBalance() { diff --git a/x/bank/keeper/send.go b/x/bank/keeper/send.go index 80fdb555b332..ddf249a4ccbc 100644 --- a/x/bank/keeper/send.go +++ b/x/bank/keeper/send.go @@ -1,12 +1,12 @@ package keeper import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/bank/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/bank/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // SendKeeper defines a module interface that facilitates the transfer of coins diff --git a/x/bank/keeper/view.go b/x/bank/keeper/view.go index fe46ec9b6ec1..da57c25a4ca6 100644 --- a/x/bank/keeper/view.go +++ b/x/bank/keeper/view.go @@ -5,12 +5,12 @@ import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - vestexported "github.com/cosmos/cosmos-sdk/x/auth/vesting/exported" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + vestexported "github.com/eligion/cosmos-sdk/x/auth/vesting/exported" + "github.com/eligion/cosmos-sdk/x/bank/types" ) var _ ViewKeeper = (*BaseViewKeeper)(nil) @@ -144,7 +144,7 @@ func (k BaseViewKeeper) IterateAllBalances(ctx sdk.Context, cb func(sdk.AccAddre if err != nil { k.Logger(ctx).With("key", iterator.Key(), "err", err).Error("failed to get address from balances store") // TODO: revisit, for now, panic here to keep same behavior as in 0.42 - // ref: https://github.com/cosmos/cosmos-sdk/issues/7409 + // ref: https://github.com/eligion/cosmos-sdk/issues/7409 panic(err) } diff --git a/x/bank/legacy/v036/types.go b/x/bank/legacy/v036/types.go index 081a41fc11fa..894bb4474c5c 100644 --- a/x/bank/legacy/v036/types.go +++ b/x/bank/legacy/v036/types.go @@ -5,7 +5,7 @@ package v036 import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) const ModuleName = "supply" diff --git a/x/bank/legacy/v040/keys.go b/x/bank/legacy/v040/keys.go index 043c208b627c..3f12168f71af 100644 --- a/x/bank/legacy/v040/keys.go +++ b/x/bank/legacy/v040/keys.go @@ -1,12 +1,12 @@ // Package v040 is copy-pasted from: -// https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/bank/types/key.go +// https://github.com/eligion/cosmos-sdk/blob/v0.41.0/x/bank/types/key.go package v040 import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" + sdk "github.com/eligion/cosmos-sdk/types" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" ) const ( diff --git a/x/bank/legacy/v040/migrate.go b/x/bank/legacy/v040/migrate.go index 1c8d270e406a..9622b46ca44e 100644 --- a/x/bank/legacy/v040/migrate.go +++ b/x/bank/legacy/v040/migrate.go @@ -1,10 +1,10 @@ package v040 import ( - v039auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v039" - v036supply "github.com/cosmos/cosmos-sdk/x/bank/legacy/v036" - v038bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v038" - "github.com/cosmos/cosmos-sdk/x/bank/types" + v039auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v039" + v036supply "github.com/eligion/cosmos-sdk/x/bank/legacy/v036" + v038bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v038" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // Migrate accepts exported v0.39 x/auth and v0.38 x/bank genesis state and diff --git a/x/bank/legacy/v040/migrate_test.go b/x/bank/legacy/v040/migrate_test.go index e30299ff9251..2b7a566de241 100644 --- a/x/bank/legacy/v040/migrate_test.go +++ b/x/bank/legacy/v040/migrate_test.go @@ -5,14 +5,14 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - v038auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v038" - v039auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v039" - v036supply "github.com/cosmos/cosmos-sdk/x/bank/legacy/v036" - v038bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v038" - v040bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v040" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + v038auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v038" + v039auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v039" + v036supply "github.com/eligion/cosmos-sdk/x/bank/legacy/v036" + v038bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v038" + v040bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v040" ) func TestMigrate(t *testing.T) { diff --git a/x/bank/legacy/v040/types.go b/x/bank/legacy/v040/types.go index 11fdf1dfe8c5..7011f8ad9a1b 100644 --- a/x/bank/legacy/v040/types.go +++ b/x/bank/legacy/v040/types.go @@ -3,14 +3,14 @@ package v040 import ( "github.com/golang/protobuf/proto" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/x/bank/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // SupplyI defines an inflationary supply interface for modules that handle // token supply. // It is copy-pasted from: -// https://github.com/cosmos/cosmos-sdk/blob/v042.3/x/bank/exported/exported.go +// https://github.com/eligion/cosmos-sdk/blob/v042.3/x/bank/exported/exported.go // where we stripped off the unnecessary methods. // // It is used in the migration script, because we save this interface as an Any diff --git a/x/bank/legacy/v043/json.go b/x/bank/legacy/v043/json.go index 7b5ce62593bd..a08348a272ac 100644 --- a/x/bank/legacy/v043/json.go +++ b/x/bank/legacy/v043/json.go @@ -1,8 +1,8 @@ package v043 import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/bank/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // pruneZeroBalancesJSON removes the zero balance addresses from exported genesis. @@ -21,7 +21,7 @@ func pruneZeroBalancesJSON(oldBalances []types.Balance) []types.Balance { // MigrateJSON accepts exported v0.40 x/bank genesis state and migrates it to // v0.43 x/bank genesis state. The migration includes: -// - Prune balances & supply with zero coins (ref: https://github.com/cosmos/cosmos-sdk/pull/9229) +// - Prune balances & supply with zero coins (ref: https://github.com/eligion/cosmos-sdk/pull/9229) func MigrateJSON(oldState *types.GenesisState) *types.GenesisState { return &types.GenesisState{ Params: oldState.Params, diff --git a/x/bank/legacy/v043/json_test.go b/x/bank/legacy/v043/json_test.go index d56ce35195a6..287c6c2f9245 100644 --- a/x/bank/legacy/v043/json_test.go +++ b/x/bank/legacy/v043/json_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - v043bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v043" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + v043bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v043" + "github.com/eligion/cosmos-sdk/x/bank/types" ) func TestMigrateJSON(t *testing.T) { diff --git a/x/bank/legacy/v043/store.go b/x/bank/legacy/v043/store.go index c4924f17df2d..ff4c89a704b4 100644 --- a/x/bank/legacy/v043/store.go +++ b/x/bank/legacy/v043/store.go @@ -1,17 +1,17 @@ package v043 import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" - v040bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v040" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" + v040bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v040" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // migrateSupply migrates the supply to be stored by denom key instead in a // single blob. -// ref: https://github.com/cosmos/cosmos-sdk/issues/7092 +// ref: https://github.com/eligion/cosmos-sdk/issues/7092 func migrateSupply(store sdk.KVStore, cdc codec.BinaryCodec) error { // Old supply was stored as a single blob under the SupplyKey. var oldSupplyI v040bank.SupplyI @@ -75,7 +75,7 @@ func migrateBalanceKeys(store sdk.KVStore) { // - Change addresses to be length-prefixed. // - Change balances prefix to 1 byte // - Change supply to be indexed by denom -// - Prune balances & supply with zero coins (ref: https://github.com/cosmos/cosmos-sdk/pull/9229) +// - Prune balances & supply with zero coins (ref: https://github.com/eligion/cosmos-sdk/pull/9229) func MigrateStore(ctx sdk.Context, storeKey sdk.StoreKey, cdc codec.BinaryCodec) error { store := ctx.KVStore(storeKey) migrateBalanceKeys(store) diff --git a/x/bank/legacy/v043/store_test.go b/x/bank/legacy/v043/store_test.go index 2b6af2c6ed9b..5edbdd85823e 100644 --- a/x/bank/legacy/v043/store_test.go +++ b/x/bank/legacy/v043/store_test.go @@ -5,14 +5,14 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/store/prefix" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - v040bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v040" - v043bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v043" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/store/prefix" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + v040bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v040" + v043bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v043" + "github.com/eligion/cosmos-sdk/x/bank/types" ) func TestSupplyMigration(t *testing.T) { diff --git a/x/bank/module.go b/x/bank/module.go index c43251acc253..c2fa7867a8a9 100644 --- a/x/bank/module.go +++ b/x/bank/module.go @@ -12,19 +12,19 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/bank/client/cli" - "github.com/cosmos/cosmos-sdk/x/bank/client/rest" - "github.com/cosmos/cosmos-sdk/x/bank/keeper" - v040 "github.com/cosmos/cosmos-sdk/x/bank/legacy/v040" - "github.com/cosmos/cosmos-sdk/x/bank/simulation" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/bank/client/cli" + "github.com/eligion/cosmos-sdk/x/bank/client/rest" + "github.com/eligion/cosmos-sdk/x/bank/keeper" + v040 "github.com/eligion/cosmos-sdk/x/bank/legacy/v040" + "github.com/eligion/cosmos-sdk/x/bank/simulation" + "github.com/eligion/cosmos-sdk/x/bank/types" ) var ( diff --git a/x/bank/simulation/genesis.go b/x/bank/simulation/genesis.go index 9031d0336451..0ac83c654e2c 100644 --- a/x/bank/simulation/genesis.go +++ b/x/bank/simulation/genesis.go @@ -7,9 +7,9 @@ import ( "fmt" "math/rand" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/bank/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // RandomGenesisDefaultSendParam computes randomized allow all send transfers param for the bank module diff --git a/x/bank/simulation/genesis_test.go b/x/bank/simulation/genesis_test.go index fc31ca38e9ef..f953914c5a0b 100644 --- a/x/bank/simulation/genesis_test.go +++ b/x/bank/simulation/genesis_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - 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/cosmos/cosmos-sdk/x/bank/simulation" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/bank/simulation" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/x/bank/simulation/operations.go b/x/bank/simulation/operations.go index 3b30157b857f..47017e7c5605 100644 --- a/x/bank/simulation/operations.go +++ b/x/bank/simulation/operations.go @@ -3,17 +3,17 @@ package simulation import ( "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/bank/keeper" - "github.com/cosmos/cosmos-sdk/x/bank/types" - distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - "github.com/cosmos/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp/helpers" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/bank/keeper" + "github.com/eligion/cosmos-sdk/x/bank/types" + distributiontypes "github.com/eligion/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/x/simulation" ) // Simulation operation weights constants diff --git a/x/bank/simulation/operations_test.go b/x/bank/simulation/operations_test.go index aeaa9f938905..f6809dee98cb 100644 --- a/x/bank/simulation/operations_test.go +++ b/x/bank/simulation/operations_test.go @@ -8,12 +8,12 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/bank/simulation" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/simapp" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/bank/simulation" + "github.com/eligion/cosmos-sdk/x/bank/types" ) type SimTestSuite struct { diff --git a/x/bank/simulation/params.go b/x/bank/simulation/params.go index 222f88acaba2..93ccd58d1949 100644 --- a/x/bank/simulation/params.go +++ b/x/bank/simulation/params.go @@ -7,10 +7,10 @@ import ( "fmt" "math/rand" - "github.com/cosmos/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/x/simulation" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/bank/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/bank/types" ) // ParamChanges defines the parameters that can be modified by param change proposals diff --git a/x/bank/simulation/params_test.go b/x/bank/simulation/params_test.go index 3045bb507530..8be6b3eb099d 100644 --- a/x/bank/simulation/params_test.go +++ b/x/bank/simulation/params_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/bank/simulation" + "github.com/eligion/cosmos-sdk/x/bank/simulation" ) func TestParamChanges(t *testing.T) { diff --git a/x/bank/spec/03_messages.md b/x/bank/spec/03_messages.md index 61f83abf3d80..71660c407656 100644 --- a/x/bank/spec/03_messages.md +++ b/x/bank/spec/03_messages.md @@ -7,7 +7,7 @@ order: 3 ## MsgSend Send coins from one address to another. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28 The message will fail under the following conditions: @@ -17,7 +17,7 @@ The message will fail under the following conditions: ## MsgMultiSend Send coins from and to a series of different address. If any of the receiving addresses do not correspond to an existing account, a new account is created. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L33-L39 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L33-L39 The message will fail under the following conditions: diff --git a/x/bank/types/authz.pb.go b/x/bank/types/authz.pb.go index 9d3660351df7..2f89eaebab56 100644 --- a/x/bank/types/authz.pb.go +++ b/x/bank/types/authz.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/regen-network/cosmos-proto" @@ -31,7 +31,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // // Since: cosmos-sdk 0.43 type SendAuthorization struct { - SpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"spend_limit"` + SpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"spend_limit"` } func (m *SendAuthorization) Reset() { *m = SendAuthorization{} } diff --git a/x/bank/types/balance.go b/x/bank/types/balance.go index 78539ace6cff..553bf1d88bb4 100644 --- a/x/bank/types/balance.go +++ b/x/bank/types/balance.go @@ -6,9 +6,9 @@ import ( "fmt" "sort" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/bank/exported" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/bank/exported" ) var _ exported.GenesisBalance = (*Balance)(nil) @@ -64,7 +64,7 @@ func SanitizeGenesisBalances(balances []Balance) []Balance { // The comparator used MUST be cheap to use lest we incur expenses like we had // before whereby sdk.AccAddressFromBech32, which is a very expensive operation // compared n * n elements yet discarded computations each time, as per: - // https://github.com/cosmos/cosmos-sdk/issues/7766#issuecomment-786671734 + // https://github.com/eligion/cosmos-sdk/issues/7766#issuecomment-786671734 // 1. Retrieve the address equivalents for each Balance's address. addresses := make([]sdk.AccAddress, len(balances)) diff --git a/x/bank/types/balance_test.go b/x/bank/types/balance_test.go index 10ee2a74bf6e..0c82713b9c8b 100644 --- a/x/bank/types/balance_test.go +++ b/x/bank/types/balance_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - sdk "github.com/cosmos/cosmos-sdk/types" - bank "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + sdk "github.com/eligion/cosmos-sdk/types" + bank "github.com/eligion/cosmos-sdk/x/bank/types" ) func TestBalanceValidate(t *testing.T) { diff --git a/x/bank/types/bank.pb.go b/x/bank/types/bank.pb.go index 8557be66e56b..3e8e16521c4a 100644 --- a/x/bank/types/bank.pb.go +++ b/x/bank/types/bank.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/regen-network/cosmos-proto" @@ -134,7 +134,7 @@ func (m *SendEnabled) GetEnabled() bool { // Input models transaction input. type Input struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"coins"` } func (m *Input) Reset() { *m = Input{} } @@ -173,7 +173,7 @@ var xxx_messageInfo_Input proto.InternalMessageInfo // Output models transaction outputs. type Output struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"coins"` } func (m *Output) Reset() { *m = Output{} } @@ -215,7 +215,7 @@ var xxx_messageInfo_Output proto.InternalMessageInfo // // Deprecated: Do not use. type Supply struct { - Total github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total"` + Total github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=total,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"total"` } func (m *Supply) Reset() { *m = Supply{} } diff --git a/x/bank/types/codec.go b/x/bank/types/codec.go index 07859ceab603..76024e333ad2 100644 --- a/x/bank/types/codec.go +++ b/x/bank/types/codec.go @@ -1,12 +1,12 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" - "github.com/cosmos/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" + "github.com/eligion/cosmos-sdk/x/authz" ) // RegisterLegacyAminoCodec registers the necessary x/bank interfaces and concrete types diff --git a/x/bank/types/errors.go b/x/bank/types/errors.go index 8446d957b678..b4ffe8c1a66f 100644 --- a/x/bank/types/errors.go +++ b/x/bank/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/bank module sentinel errors diff --git a/x/bank/types/events.go b/x/bank/types/events.go index 9f06b85e491c..5ceb7da9911e 100644 --- a/x/bank/types/events.go +++ b/x/bank/types/events.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // bank module event types diff --git a/x/bank/types/expected_keepers.go b/x/bank/types/expected_keepers.go index 23ca020a34b0..361bf733df0e 100644 --- a/x/bank/types/expected_keepers.go +++ b/x/bank/types/expected_keepers.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // AccountKeeper defines the account contract that must be fulfilled when diff --git a/x/bank/types/genesis.go b/x/bank/types/genesis.go index ffeb23e2014a..6dd1c593781a 100644 --- a/x/bank/types/genesis.go +++ b/x/bank/types/genesis.go @@ -4,8 +4,8 @@ import ( "encoding/json" "fmt" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" ) // Validate performs basic validation of supply genesis data returning an diff --git a/x/bank/types/genesis.pb.go b/x/bank/types/genesis.pb.go index 4e4724f34a7d..443b22947d03 100644 --- a/x/bank/types/genesis.pb.go +++ b/x/bank/types/genesis.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" @@ -33,7 +33,7 @@ type GenesisState struct { Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"` // supply represents the total supply. If it is left empty, then supply will be calculated based on the provided // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. - Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` + Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=supply,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"supply"` // denom_metadata defines the metadata of the differents coins. DenomMetadata []Metadata `protobuf:"bytes,4,rep,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata" yaml:"denom_metadata"` } @@ -105,7 +105,7 @@ type Balance struct { // address is the address of the balance holder. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // coins defines the different coins this balance holds. - Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` + Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"coins"` } func (m *Balance) Reset() { *m = Balance{} } diff --git a/x/bank/types/genesis_test.go b/x/bank/types/genesis_test.go index fa1c836c9cbe..04f9012df536 100644 --- a/x/bank/types/genesis_test.go +++ b/x/bank/types/genesis_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestGenesisStateValidate(t *testing.T) { diff --git a/x/bank/types/key.go b/x/bank/types/key.go index 5d7f52baa531..4806ad9d074c 100644 --- a/x/bank/types/key.go +++ b/x/bank/types/key.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" ) const ( diff --git a/x/bank/types/key_test.go b/x/bank/types/key_test.go index 9a7f457e45bd..e8900a548c79 100644 --- a/x/bank/types/key_test.go +++ b/x/bank/types/key_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" - "github.com/cosmos/cosmos-sdk/x/bank/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" + "github.com/eligion/cosmos-sdk/x/bank/types" ) func cloneAppend(bz []byte, tail []byte) (res []byte) { diff --git a/x/bank/types/metadata.go b/x/bank/types/metadata.go index 9583b85ce44d..f8a97e38f106 100644 --- a/x/bank/types/metadata.go +++ b/x/bank/types/metadata.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // Validate performs a basic validation of the coin metadata fields. It checks: diff --git a/x/bank/types/metadata_test.go b/x/bank/types/metadata_test.go index 3d4fe0a0e634..7148dab2e6c9 100644 --- a/x/bank/types/metadata_test.go +++ b/x/bank/types/metadata_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/x/bank/types" ) func TestMetadataValidate(t *testing.T) { diff --git a/x/bank/types/msgs.go b/x/bank/types/msgs.go index 22fdc30b3886..dc283b82f70f 100644 --- a/x/bank/types/msgs.go +++ b/x/bank/types/msgs.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // bank message types diff --git a/x/bank/types/msgs_test.go b/x/bank/types/msgs_test.go index 334d72c13243..8d73ebcf5975 100644 --- a/x/bank/types/msgs_test.go +++ b/x/bank/types/msgs_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestMsgSendRoute(t *testing.T) { diff --git a/x/bank/types/params.go b/x/bank/types/params.go index ed94ead34765..9b00e5737586 100644 --- a/x/bank/types/params.go +++ b/x/bank/types/params.go @@ -5,8 +5,8 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + sdk "github.com/eligion/cosmos-sdk/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) const ( diff --git a/x/bank/types/params_test.go b/x/bank/types/params_test.go index f6f95d73737e..2c16bfa421c6 100644 --- a/x/bank/types/params_test.go +++ b/x/bank/types/params_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_validateSendEnabledParam(t *testing.T) { diff --git a/x/bank/types/querier.go b/x/bank/types/querier.go index 1ef0093386e4..517bb192ae62 100644 --- a/x/bank/types/querier.go +++ b/x/bank/types/querier.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" ) // Querier path constants diff --git a/x/bank/types/query.pb.go b/x/bank/types/query.pb.go index 2b9432192388..36a02b145e67 100644 --- a/x/bank/types/query.pb.go +++ b/x/bank/types/query.pb.go @@ -6,9 +6,9 @@ package types import ( context "context" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - query "github.com/cosmos/cosmos-sdk/types/query" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" + query "github.com/eligion/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -164,7 +164,7 @@ var xxx_messageInfo_QueryAllBalancesRequest proto.InternalMessageInfo // method. type QueryAllBalancesResponse struct { // balances is the balances of all the coins. - Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balances"` + Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"balances"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -262,7 +262,7 @@ var xxx_messageInfo_QueryTotalSupplyRequest proto.InternalMessageInfo // method type QueryTotalSupplyResponse struct { // supply is the supply of the coins - Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` + Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=supply,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"supply"` // pagination defines the pagination in the response. // // Since: cosmos-sdk 0.43 diff --git a/x/bank/types/send_authorization.go b/x/bank/types/send_authorization.go index 75a47cdf0d32..fbd431a399e1 100644 --- a/x/bank/types/send_authorization.go +++ b/x/bank/types/send_authorization.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/authz" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/authz" ) var ( diff --git a/x/bank/types/send_authorization_test.go b/x/bank/types/send_authorization_test.go index 11d2ae05dfd6..a8c56342d56a 100644 --- a/x/bank/types/send_authorization_test.go +++ b/x/bank/types/send_authorization_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/bank/types" ) var ( diff --git a/x/bank/types/tx.pb.go b/x/bank/types/tx.pb.go index 6dd52c4b64d8..62a53b57afdd 100644 --- a/x/bank/types/tx.pb.go +++ b/x/bank/types/tx.pb.go @@ -6,8 +6,8 @@ package types import ( context "context" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -34,7 +34,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MsgSend struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"amount"` } func (m *MsgSend) Reset() { *m = MsgSend{} } diff --git a/x/capability/abci.go b/x/capability/abci.go index 9d1c94b5b901..a0b91e498066 100644 --- a/x/capability/abci.go +++ b/x/capability/abci.go @@ -3,10 +3,10 @@ package capability import ( "time" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/capability/keeper" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/capability/keeper" + "github.com/eligion/cosmos-sdk/x/capability/types" ) // BeginBlocker will call InitMemStore to initialize the memory stores in the case diff --git a/x/capability/capability_test.go b/x/capability/capability_test.go index 45a5f6ea42a8..0b567cba7720 100644 --- a/x/capability/capability_test.go +++ b/x/capability/capability_test.go @@ -7,14 +7,14 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/capability" - "github.com/cosmos/cosmos-sdk/x/capability/keeper" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/capability" + "github.com/eligion/cosmos-sdk/x/capability/keeper" + "github.com/eligion/cosmos-sdk/x/capability/types" ) type CapabilityTestSuite struct { @@ -42,7 +42,7 @@ func (suite *CapabilityTestSuite) SetupTest() { suite.module = capability.NewAppModule(cdc, *keeper) } -// The following test case mocks a specific bug discovered in https://github.com/cosmos/cosmos-sdk/issues/9800 +// The following test case mocks a specific bug discovered in https://github.com/eligion/cosmos-sdk/issues/9800 // and ensures that the current code successfully fixes the issue. func (suite *CapabilityTestSuite) TestInitializeMemStore() { sk1 := suite.keeper.ScopeToModule(banktypes.ModuleName) diff --git a/x/capability/genesis.go b/x/capability/genesis.go index 2e9a11b994be..13bad009b883 100644 --- a/x/capability/genesis.go +++ b/x/capability/genesis.go @@ -1,9 +1,9 @@ package capability import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/capability/keeper" - "github.com/cosmos/cosmos-sdk/x/capability/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/capability/keeper" + "github.com/eligion/cosmos-sdk/x/capability/types" ) // InitGenesis initializes the capability module's state from a provided genesis diff --git a/x/capability/genesis_test.go b/x/capability/genesis_test.go index 34a09960e750..c8fbf345734d 100644 --- a/x/capability/genesis_test.go +++ b/x/capability/genesis_test.go @@ -5,13 +5,13 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/capability" - "github.com/cosmos/cosmos-sdk/x/capability/keeper" - "github.com/cosmos/cosmos-sdk/x/capability/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/capability" + "github.com/eligion/cosmos-sdk/x/capability/keeper" + "github.com/eligion/cosmos-sdk/x/capability/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func (suite *CapabilityTestSuite) TestGenesis() { diff --git a/x/capability/keeper/keeper.go b/x/capability/keeper/keeper.go index 35b8addf4273..840c3f18a529 100644 --- a/x/capability/keeper/keeper.go +++ b/x/capability/keeper/keeper.go @@ -6,11 +6,11 @@ import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/capability/types" ) type ( @@ -377,7 +377,7 @@ func (sk ScopedKeeper) GetCapability(ctx sdk.Context, name string) (*types.Capab // go map do not automatically get reverted on tx failure, // so we delete here to remove unnecessary values in map // TODO: Delete index correctly from capMap by storing some reverse lookup - // in-memory map. Issue: https://github.com/cosmos/cosmos-sdk/issues/7805 + // in-memory map. Issue: https://github.com/eligion/cosmos-sdk/issues/7805 return nil, false } diff --git a/x/capability/keeper/keeper_test.go b/x/capability/keeper/keeper_test.go index e7b9b2d4a32d..3f4fa35f4459 100644 --- a/x/capability/keeper/keeper_test.go +++ b/x/capability/keeper/keeper_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/capability/keeper" - "github.com/cosmos/cosmos-sdk/x/capability/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/capability/keeper" + "github.com/eligion/cosmos-sdk/x/capability/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) type KeeperTestSuite struct { diff --git a/x/capability/module.go b/x/capability/module.go index 65d7a92f7c65..f6beee0dec4c 100644 --- a/x/capability/module.go +++ b/x/capability/module.go @@ -12,16 +12,16 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/capability/keeper" - "github.com/cosmos/cosmos-sdk/x/capability/simulation" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/capability/keeper" + "github.com/eligion/cosmos-sdk/x/capability/simulation" + "github.com/eligion/cosmos-sdk/x/capability/types" ) var ( diff --git a/x/capability/simulation/decoder.go b/x/capability/simulation/decoder.go index 96e2c41c0a2e..dcbf0ac000a9 100644 --- a/x/capability/simulation/decoder.go +++ b/x/capability/simulation/decoder.go @@ -4,10 +4,10 @@ import ( "bytes" "fmt" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/capability/types" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/x/capability/simulation/decoder_test.go b/x/capability/simulation/decoder_test.go index a18bcd56115d..96232f1883aa 100644 --- a/x/capability/simulation/decoder_test.go +++ b/x/capability/simulation/decoder_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/capability/simulation" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/capability/simulation" + "github.com/eligion/cosmos-sdk/x/capability/types" ) func TestDecodeStore(t *testing.T) { diff --git a/x/capability/simulation/genesis.go b/x/capability/simulation/genesis.go index ab1d11fb3d46..b4c77187b408 100644 --- a/x/capability/simulation/genesis.go +++ b/x/capability/simulation/genesis.go @@ -7,8 +7,8 @@ import ( "fmt" "math/rand" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/capability/types" ) // Simulation parameter constants diff --git a/x/capability/simulation/genesis_test.go b/x/capability/simulation/genesis_test.go index 16d54c177a50..3b8f2582f94f 100644 --- a/x/capability/simulation/genesis_test.go +++ b/x/capability/simulation/genesis_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - 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/cosmos/cosmos-sdk/x/capability/simulation" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/capability/simulation" + "github.com/eligion/cosmos-sdk/x/capability/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/x/capability/types/errors.go b/x/capability/types/errors.go index 7c582ccbb0a5..8f5aeda5054d 100644 --- a/x/capability/types/errors.go +++ b/x/capability/types/errors.go @@ -3,7 +3,7 @@ package types // DONTCOVER import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/capability module sentinel errors diff --git a/x/capability/types/keys.go b/x/capability/types/keys.go index aefd13ba2286..c8c27a458e2d 100644 --- a/x/capability/types/keys.go +++ b/x/capability/types/keys.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/x/capability/types/keys_test.go b/x/capability/types/keys_test.go index e767c3d34222..704df4c58208 100644 --- a/x/capability/types/keys_test.go +++ b/x/capability/types/keys_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/x/capability/types" ) func TestRevCapabilityKey(t *testing.T) { diff --git a/x/capability/types/types.go b/x/capability/types/types.go index 2dcceb8c8818..4765fd9138cf 100644 --- a/x/capability/types/types.go +++ b/x/capability/types/types.go @@ -6,7 +6,7 @@ import ( yaml "gopkg.in/yaml.v2" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // NewCapability returns a reference to a new Capability to be used as an diff --git a/x/capability/types/types_test.go b/x/capability/types/types_test.go index 8cec569d2faf..d2b45cff0d6f 100644 --- a/x/capability/types/types_test.go +++ b/x/capability/types/types_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/capability/types" + "github.com/eligion/cosmos-sdk/x/capability/types" ) func TestCapabilityKey(t *testing.T) { diff --git a/x/crisis/abci.go b/x/crisis/abci.go index fa1b932b8f63..9937c09f0eeb 100644 --- a/x/crisis/abci.go +++ b/x/crisis/abci.go @@ -3,10 +3,10 @@ package crisis import ( "time" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/crisis/keeper" - "github.com/cosmos/cosmos-sdk/x/crisis/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/crisis/keeper" + "github.com/eligion/cosmos-sdk/x/crisis/types" ) // check all registered invariants diff --git a/x/crisis/client/cli/tx.go b/x/crisis/client/cli/tx.go index 50b7e16a34b8..bded57528651 100644 --- a/x/crisis/client/cli/tx.go +++ b/x/crisis/client/cli/tx.go @@ -5,10 +5,10 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/x/crisis/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/x/crisis/types" ) // NewTxCmd returns a root CLI command handler for all x/crisis transaction commands. diff --git a/x/crisis/client/testsuite/cli_test.go b/x/crisis/client/testsuite/cli_test.go index 3c083e694726..3c2e238e5895 100644 --- a/x/crisis/client/testsuite/cli_test.go +++ b/x/crisis/client/testsuite/cli_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" ) func TestIntegrationTestSuite(t *testing.T) { diff --git a/x/crisis/client/testsuite/suite.go b/x/crisis/client/testsuite/suite.go index d0d82f62120b..39588d5a58d6 100644 --- a/x/crisis/client/testsuite/suite.go +++ b/x/crisis/client/testsuite/suite.go @@ -6,11 +6,11 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/crisis/client/cli" + "github.com/eligion/cosmos-sdk/client/flags" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/crisis/client/cli" ) type IntegrationTestSuite struct { diff --git a/x/crisis/handler.go b/x/crisis/handler.go index 0e6cf985f877..9bbb9644f15d 100644 --- a/x/crisis/handler.go +++ b/x/crisis/handler.go @@ -1,9 +1,9 @@ package crisis import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/crisis/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/crisis/types" ) // RouterKey diff --git a/x/crisis/handler_test.go b/x/crisis/handler_test.go index e981a1a78749..0ef3c66f7289 100644 --- a/x/crisis/handler_test.go +++ b/x/crisis/handler_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/crisis" - "github.com/cosmos/cosmos-sdk/x/crisis/types" - distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/crisis" + "github.com/eligion/cosmos-sdk/x/crisis/types" + distrtypes "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/crisis/keeper/genesis.go b/x/crisis/keeper/genesis.go index 8420201d4e96..3cedb7010c9f 100644 --- a/x/crisis/keeper/genesis.go +++ b/x/crisis/keeper/genesis.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/crisis/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/crisis/types" ) // new crisis genesis diff --git a/x/crisis/keeper/keeper.go b/x/crisis/keeper/keeper.go index b9c563d5293d..5a9754c4fb8e 100644 --- a/x/crisis/keeper/keeper.go +++ b/x/crisis/keeper/keeper.go @@ -6,9 +6,9 @@ import ( "github.com/tendermint/tendermint/libs/log" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/crisis/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/crisis/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // Keeper - crisis keeper diff --git a/x/crisis/keeper/keeper_test.go b/x/crisis/keeper/keeper_test.go index 563c0e4b1096..04e874496b11 100644 --- a/x/crisis/keeper/keeper_test.go +++ b/x/crisis/keeper/keeper_test.go @@ -7,8 +7,8 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestLogger(t *testing.T) { diff --git a/x/crisis/keeper/msg_server.go b/x/crisis/keeper/msg_server.go index a3eb07e6ba47..48466370b185 100644 --- a/x/crisis/keeper/msg_server.go +++ b/x/crisis/keeper/msg_server.go @@ -3,8 +3,8 @@ package keeper import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/crisis/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/crisis/types" ) var _ types.MsgServer = Keeper{} diff --git a/x/crisis/keeper/params.go b/x/crisis/keeper/params.go index d44efa4ebf11..2e15b3a36c30 100644 --- a/x/crisis/keeper/params.go +++ b/x/crisis/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/crisis/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/crisis/types" ) // GetConstantFee get's the constant fee from the paramSpace diff --git a/x/crisis/legacy/v039/types.go b/x/crisis/legacy/v039/types.go index 44903e349118..852d4e6b1fec 100644 --- a/x/crisis/legacy/v039/types.go +++ b/x/crisis/legacy/v039/types.go @@ -1,6 +1,6 @@ package v039 -import sdk "github.com/cosmos/cosmos-sdk/types" +import sdk "github.com/eligion/cosmos-sdk/types" const ( ModuleName = "crisis" diff --git a/x/crisis/legacy/v040/migrate.go b/x/crisis/legacy/v040/migrate.go index eb97ba9ee645..47cdb477f180 100644 --- a/x/crisis/legacy/v040/migrate.go +++ b/x/crisis/legacy/v040/migrate.go @@ -1,8 +1,8 @@ package v040 import ( - v039crisis "github.com/cosmos/cosmos-sdk/x/crisis/legacy/v039" - v040crisis "github.com/cosmos/cosmos-sdk/x/crisis/types" + v039crisis "github.com/eligion/cosmos-sdk/x/crisis/legacy/v039" + v040crisis "github.com/eligion/cosmos-sdk/x/crisis/types" ) // Migrate accepts exported v0.39 x/crisis genesis state and diff --git a/x/crisis/module.go b/x/crisis/module.go index 0f75edfcf886..1b1d7cbe554b 100644 --- a/x/crisis/module.go +++ b/x/crisis/module.go @@ -10,15 +10,15 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/crisis/client/cli" - "github.com/cosmos/cosmos-sdk/x/crisis/keeper" - "github.com/cosmos/cosmos-sdk/x/crisis/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/crisis/client/cli" + "github.com/eligion/cosmos-sdk/x/crisis/keeper" + "github.com/eligion/cosmos-sdk/x/crisis/types" ) var ( diff --git a/x/crisis/spec/02_messages.md b/x/crisis/spec/02_messages.md index 640d2c46159d..c0142cebcf95 100644 --- a/x/crisis/spec/02_messages.md +++ b/x/crisis/spec/02_messages.md @@ -11,7 +11,7 @@ corresponding updates to the state. Blockchain invariants can be checked using the `MsgVerifyInvariant` message. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc7/proto/cosmos/crisis/v1beta1/tx.proto#L14-L22 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc7/proto/cosmos/crisis/v1beta1/tx.proto#L14-L22 This message is expected to fail if: diff --git a/x/crisis/types/codec.go b/x/crisis/types/codec.go index ac02c54630cb..af3ef48a28e2 100644 --- a/x/crisis/types/codec.go +++ b/x/crisis/types/codec.go @@ -1,11 +1,11 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" ) // RegisterLegacyAminoCodec registers the necessary x/crisis interfaces and concrete types diff --git a/x/crisis/types/errors.go b/x/crisis/types/errors.go index cf8c4901b315..806426e0895c 100644 --- a/x/crisis/types/errors.go +++ b/x/crisis/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/crisis module sentinel errors diff --git a/x/crisis/types/expected_keepers.go b/x/crisis/types/expected_keepers.go index 3cd0e9e7f57a..4ea303fb1705 100644 --- a/x/crisis/types/expected_keepers.go +++ b/x/crisis/types/expected_keepers.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // SupplyKeeper defines the expected supply keeper (noalias) diff --git a/x/crisis/types/genesis.go b/x/crisis/types/genesis.go index f53099130277..2089dc761a5f 100644 --- a/x/crisis/types/genesis.go +++ b/x/crisis/types/genesis.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewGenesisState creates a new GenesisState object diff --git a/x/crisis/types/genesis.pb.go b/x/crisis/types/genesis.pb.go index 06a870ff7193..805674494ac3 100644 --- a/x/crisis/types/genesis.pb.go +++ b/x/crisis/types/genesis.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" diff --git a/x/crisis/types/msgs.go b/x/crisis/types/msgs.go index 6161a1d4b73e..24eafa5ddd27 100644 --- a/x/crisis/types/msgs.go +++ b/x/crisis/types/msgs.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // ensure Msg interface compliance at compile time diff --git a/x/crisis/types/params.go b/x/crisis/types/params.go index 880f350f117c..cccc75d14050 100644 --- a/x/crisis/types/params.go +++ b/x/crisis/types/params.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + sdk "github.com/eligion/cosmos-sdk/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) var ( diff --git a/x/crisis/types/route.go b/x/crisis/types/route.go index 1096798e8c71..3995e82444b8 100644 --- a/x/crisis/types/route.go +++ b/x/crisis/types/route.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // invariant route diff --git a/x/distribution/abci.go b/x/distribution/abci.go index 7c612c1665f2..d50d5e994f4f 100644 --- a/x/distribution/abci.go +++ b/x/distribution/abci.go @@ -5,10 +5,10 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/keeper" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/keeper" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // BeginBlocker sets the proposer for determining distribution during endblock @@ -26,7 +26,7 @@ func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper) } // TODO this is Tendermint-dependent - // ref https://github.com/cosmos/cosmos-sdk/issues/3095 + // ref https://github.com/eligion/cosmos-sdk/issues/3095 if ctx.BlockHeight() > 1 { previousProposer := k.GetPreviousProposerConsAddr(ctx) k.AllocateTokens(ctx, sumPreviousPrecommitPower, previousTotalPower, previousProposer, req.LastCommitInfo.GetVotes()) diff --git a/x/distribution/client/cli/query.go b/x/distribution/client/cli/query.go index aa087f5f8b27..b274bfbdb83a 100644 --- a/x/distribution/client/cli/query.go +++ b/x/distribution/client/cli/query.go @@ -7,11 +7,11 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/distribution/client/cli/tx.go b/x/distribution/client/cli/tx.go index 4808b50cc26a..43501af36e2e 100644 --- a/x/distribution/client/cli/tx.go +++ b/x/distribution/client/cli/tx.go @@ -7,13 +7,13 @@ import ( "github.com/spf13/cobra" "github.com/spf13/pflag" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/distribution/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) // Transaction flags for the x/distribution module diff --git a/x/distribution/client/cli/tx_test.go b/x/distribution/client/cli/tx_test.go index 36a946e7cca7..bccf86a61b6b 100644 --- a/x/distribution/client/cli/tx_test.go +++ b/x/distribution/client/cli/tx_test.go @@ -5,17 +5,17 @@ import ( "github.com/spf13/pflag" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp/params" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" "github.com/stretchr/testify/require" "github.com/stretchr/testify/assert" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_splitAndCall_NoMessages(t *testing.T) { diff --git a/x/distribution/client/cli/utils.go b/x/distribution/client/cli/utils.go index 45f941f08979..0fcff1f29243 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/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // ParseCommunityPoolSpendProposalWithDeposit reads and parses a CommunityPoolSpendProposalWithDeposit from a file. diff --git a/x/distribution/client/common/common.go b/x/distribution/client/common/common.go index a2d5fceda0bb..73b3a99ca843 100644 --- a/x/distribution/client/common/common.go +++ b/x/distribution/client/common/common.go @@ -3,9 +3,9 @@ package common import ( "fmt" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // QueryDelegationRewards queries a delegation rewards between a delegator and a diff --git a/x/distribution/client/common/common_test.go b/x/distribution/client/common/common_test.go index 6b3ecdd5cdfb..dc45bbff3ace 100644 --- a/x/distribution/client/common/common_test.go +++ b/x/distribution/client/common/common_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) func TestQueryDelegationRewardsAddrValidation(t *testing.T) { diff --git a/x/distribution/client/proposal_handler.go b/x/distribution/client/proposal_handler.go index 517f508bff68..259245a1c9a9 100644 --- a/x/distribution/client/proposal_handler.go +++ b/x/distribution/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - "github.com/cosmos/cosmos-sdk/x/distribution/client/cli" - "github.com/cosmos/cosmos-sdk/x/distribution/client/rest" - govclient "github.com/cosmos/cosmos-sdk/x/gov/client" + "github.com/eligion/cosmos-sdk/x/distribution/client/cli" + "github.com/eligion/cosmos-sdk/x/distribution/client/rest" + govclient "github.com/eligion/cosmos-sdk/x/gov/client" ) // ProposalHandler is the community spend proposal handler. diff --git a/x/distribution/client/rest/grpc_query_test.go b/x/distribution/client/rest/grpc_query_test.go index ec8e2a7666dd..b595f4068776 100644 --- a/x/distribution/client/rest/grpc_query_test.go +++ b/x/distribution/client/rest/grpc_query_test.go @@ -7,13 +7,13 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) type IntegrationTestSuite struct { diff --git a/x/distribution/client/rest/query.go b/x/distribution/client/rest/query.go index 0fb923afc94d..e39f9f39c04d 100644 --- a/x/distribution/client/rest/query.go +++ b/x/distribution/client/rest/query.go @@ -6,12 +6,12 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/x/distribution/client/common" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/x/distribution/client/common" + "github.com/eligion/cosmos-sdk/x/distribution/types" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" ) func registerQueryRoutes(clientCtx client.Context, r *mux.Router) { diff --git a/x/distribution/client/rest/rest.go b/x/distribution/client/rest/rest.go index 3fdcef89e1cc..2850e8826ee3 100644 --- a/x/distribution/client/rest/rest.go +++ b/x/distribution/client/rest/rest.go @@ -5,13 +5,13 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - clientrest "github.com/cosmos/cosmos-sdk/client/rest" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - govrest "github.com/cosmos/cosmos-sdk/x/gov/client/rest" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + clientrest "github.com/eligion/cosmos-sdk/client/rest" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/distribution/types" + govrest "github.com/eligion/cosmos-sdk/x/gov/client/rest" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) func RegisterHandlers(clientCtx client.Context, rtr *mux.Router) { diff --git a/x/distribution/client/rest/tx.go b/x/distribution/client/rest/tx.go index 675be4af1abc..37b3da62453b 100644 --- a/x/distribution/client/rest/tx.go +++ b/x/distribution/client/rest/tx.go @@ -5,12 +5,12 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/distribution/client/common" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/distribution/client/common" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) type ( diff --git a/x/distribution/client/rest/utils.go b/x/distribution/client/rest/utils.go index 3f7a3d0020ba..e8f82cc04131 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/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" ) type ( diff --git a/x/distribution/client/testutil/cli_test.go b/x/distribution/client/testutil/cli_test.go index dd36a6af2d3e..e6b57e58c2c2 100644 --- a/x/distribution/client/testutil/cli_test.go +++ b/x/distribution/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/distribution/client/testutil/helpers.go b/x/distribution/client/testutil/helpers.go index 19612c23fec0..43e900ed5aee 100644 --- a/x/distribution/client/testutil/helpers.go +++ b/x/distribution/client/testutil/helpers.go @@ -5,8 +5,8 @@ import ( "context" "fmt" - "github.com/cosmos/cosmos-sdk/client" - distrcli "github.com/cosmos/cosmos-sdk/x/distribution/client/cli" + "github.com/eligion/cosmos-sdk/client" + distrcli "github.com/eligion/cosmos-sdk/x/distribution/client/cli" ) func MsgWithdrawDelegatorRewardExec(clientCtx client.Context, valAddr fmt.Stringer, extraArgs ...string) ([]byte, error) { diff --git a/x/distribution/client/testutil/suite.go b/x/distribution/client/testutil/suite.go index 3dcfca70aa68..8674ce76995e 100644 --- a/x/distribution/client/testutil/suite.go +++ b/x/distribution/client/testutil/suite.go @@ -9,13 +9,13 @@ import ( "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/client/cli" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/client/cli" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" ) type IntegrationTestSuite struct { diff --git a/x/distribution/handler.go b/x/distribution/handler.go index 279a6bf726de..ce27eaf3179f 100644 --- a/x/distribution/handler.go +++ b/x/distribution/handler.go @@ -1,11 +1,11 @@ package distribution import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/distribution/keeper" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/distribution/keeper" + "github.com/eligion/cosmos-sdk/x/distribution/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) func NewHandler(k keeper.Keeper) sdk.Handler { diff --git a/x/distribution/keeper/alias_functions.go b/x/distribution/keeper/alias_functions.go index 5d7f1b97f23c..f151cbb79e5d 100644 --- a/x/distribution/keeper/alias_functions.go +++ b/x/distribution/keeper/alias_functions.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // get outstanding rewards diff --git a/x/distribution/keeper/allocation.go b/x/distribution/keeper/allocation.go index ad9ef55ad07c..9f336f075d36 100644 --- a/x/distribution/keeper/allocation.go +++ b/x/distribution/keeper/allocation.go @@ -5,9 +5,9 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // AllocateTokens handles distribution of the collected fees @@ -34,7 +34,7 @@ func (k Keeper) AllocateTokens( } // temporary workaround to keep CanWithdrawInvariant happy - // general discussions here: https://github.com/cosmos/cosmos-sdk/issues/2906#issuecomment-441867634 + // general discussions here: https://github.com/eligion/cosmos-sdk/issues/2906#issuecomment-441867634 feePool := k.GetFeePool(ctx) if totalPreviousPower == 0 { feePool.CommunityPool = feePool.CommunityPool.Add(feesCollected...) @@ -84,12 +84,12 @@ func (k Keeper) AllocateTokens( voteMultiplier := sdk.OneDec().Sub(proposerMultiplier).Sub(communityTax) // allocate tokens proportionally to voting power - // TODO consider parallelizing later, ref https://github.com/cosmos/cosmos-sdk/pull/3099#discussion_r246276376 + // TODO consider parallelizing later, ref https://github.com/eligion/cosmos-sdk/pull/3099#discussion_r246276376 for _, vote := range bondedVotes { validator := k.stakingKeeper.ValidatorByConsAddr(ctx, vote.Validator.Address) // TODO consider microslashing for missing votes. - // ref https://github.com/cosmos/cosmos-sdk/issues/2525#issuecomment-430838701 + // ref https://github.com/eligion/cosmos-sdk/issues/2525#issuecomment-430838701 powerFraction := sdk.NewDec(vote.Validator.Power).QuoTruncate(sdk.NewDec(totalPreviousPower)) reward := feesCollected.MulDecTruncate(voteMultiplier).MulDecTruncate(powerFraction) k.AllocateTokensToValidator(ctx, validator, reward) diff --git a/x/distribution/keeper/allocation_test.go b/x/distribution/keeper/allocation_test.go index 5bcb8c1cff49..aea588319313 100644 --- a/x/distribution/keeper/allocation_test.go +++ b/x/distribution/keeper/allocation_test.go @@ -7,11 +7,11 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestAllocateTokensToValidatorWithCommission(t *testing.T) { diff --git a/x/distribution/keeper/common_test.go b/x/distribution/keeper/common_test.go index 807fd45c2520..e1218c4b090d 100644 --- a/x/distribution/keeper/common_test.go +++ b/x/distribution/keeper/common_test.go @@ -1,10 +1,10 @@ package keeper_test import ( - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) var ( diff --git a/x/distribution/keeper/delegation.go b/x/distribution/keeper/delegation.go index 61631da5dc22..57a25a3ff10e 100644 --- a/x/distribution/keeper/delegation.go +++ b/x/distribution/keeper/delegation.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // initialize starting info for a new delegation diff --git a/x/distribution/keeper/delegation_test.go b/x/distribution/keeper/delegation_test.go index 8b4219e28028..4f960f4d63b7 100644 --- a/x/distribution/keeper/delegation_test.go +++ b/x/distribution/keeper/delegation_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestCalculateRewardsBasic(t *testing.T) { diff --git a/x/distribution/keeper/fee_pool.go b/x/distribution/keeper/fee_pool.go index a6047501355c..84d9e565d4e1 100644 --- a/x/distribution/keeper/fee_pool.go +++ b/x/distribution/keeper/fee_pool.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // DistributeFromFeePool distributes funds from the distribution module account to diff --git a/x/distribution/keeper/genesis.go b/x/distribution/keeper/genesis.go index 5cb65d760c1e..02b3bda4e2c6 100644 --- a/x/distribution/keeper/genesis.go +++ b/x/distribution/keeper/genesis.go @@ -3,8 +3,8 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // InitGenesis sets distribution information for genesis diff --git a/x/distribution/keeper/grpc_query.go b/x/distribution/keeper/grpc_query.go index 5cf71bbb102d..eeee74c2c7cd 100644 --- a/x/distribution/keeper/grpc_query.go +++ b/x/distribution/keeper/grpc_query.go @@ -6,12 +6,12 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/distribution/keeper/grpc_query_test.go b/x/distribution/keeper/grpc_query_test.go index b8b716ddbc06..821175638493 100644 --- a/x/distribution/keeper/grpc_query_test.go +++ b/x/distribution/keeper/grpc_query_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) type KeeperTestSuite struct { diff --git a/x/distribution/keeper/hooks.go b/x/distribution/keeper/hooks.go index 1d12fcc55513..11bccffe9290 100644 --- a/x/distribution/keeper/hooks.go +++ b/x/distribution/keeper/hooks.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // Wrapper struct diff --git a/x/distribution/keeper/invariants.go b/x/distribution/keeper/invariants.go index 0a23d36be8f7..a5193aaac965 100644 --- a/x/distribution/keeper/invariants.go +++ b/x/distribution/keeper/invariants.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // register all distribution invariants diff --git a/x/distribution/keeper/keeper.go b/x/distribution/keeper/keeper.go index b139c35f4a50..f83ea8fbc823 100644 --- a/x/distribution/keeper/keeper.go +++ b/x/distribution/keeper/keeper.go @@ -5,11 +5,11 @@ import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/distribution/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // Keeper of the distribution store diff --git a/x/distribution/keeper/keeper_test.go b/x/distribution/keeper/keeper_test.go index 40d6dcd7364c..320a8c80bc45 100644 --- a/x/distribution/keeper/keeper_test.go +++ b/x/distribution/keeper/keeper_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) func TestSetWithdrawAddr(t *testing.T) { diff --git a/x/distribution/keeper/migrations.go b/x/distribution/keeper/migrations.go index 7f7273c650b7..1765d82dc147 100644 --- a/x/distribution/keeper/migrations.go +++ b/x/distribution/keeper/migrations.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v043 "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v043" + sdk "github.com/eligion/cosmos-sdk/types" + v043 "github.com/eligion/cosmos-sdk/x/distribution/legacy/v043" ) // Migrator is a struct for handling in-place store migrations. diff --git a/x/distribution/keeper/msg_server.go b/x/distribution/keeper/msg_server.go index bff869ee55d7..42f14d819dd8 100644 --- a/x/distribution/keeper/msg_server.go +++ b/x/distribution/keeper/msg_server.go @@ -5,9 +5,9 @@ import ( "github.com/armon/go-metrics" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) type msgServer struct { diff --git a/x/distribution/keeper/params.go b/x/distribution/keeper/params.go index 23b4bbeb8118..18d60f957987 100644 --- a/x/distribution/keeper/params.go +++ b/x/distribution/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // GetParams returns the total set of distribution parameters. diff --git a/x/distribution/keeper/proposal_handler.go b/x/distribution/keeper/proposal_handler.go index d96bfc64908c..8238465e6b9b 100644 --- a/x/distribution/keeper/proposal_handler.go +++ b/x/distribution/keeper/proposal_handler.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // HandleCommunityPoolSpendProposal is a handler for executing a passed community spend proposal diff --git a/x/distribution/keeper/querier.go b/x/distribution/keeper/querier.go index 71370e24ba51..fe36b88b0ffb 100644 --- a/x/distribution/keeper/querier.go +++ b/x/distribution/keeper/querier.go @@ -5,11 +5,11 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier { diff --git a/x/distribution/keeper/querier_test.go b/x/distribution/keeper/querier_test.go index 9a3da854ab5d..9bbe5275739b 100644 --- a/x/distribution/keeper/querier_test.go +++ b/x/distribution/keeper/querier_test.go @@ -8,15 +8,15 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/distribution/keeper" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/distribution/keeper" + "github.com/eligion/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) const custom = "custom" diff --git a/x/distribution/keeper/store.go b/x/distribution/keeper/store.go index 0203ee13f672..a15b4d2bb9e5 100644 --- a/x/distribution/keeper/store.go +++ b/x/distribution/keeper/store.go @@ -3,8 +3,8 @@ package keeper import ( gogotypes "github.com/gogo/protobuf/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // get the delegator withdraw address, defaulting to the delegator address diff --git a/x/distribution/keeper/validator.go b/x/distribution/keeper/validator.go index 3d1953c3b5fa..d11fb7ad6b35 100644 --- a/x/distribution/keeper/validator.go +++ b/x/distribution/keeper/validator.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // initialize rewards for a new validator diff --git a/x/distribution/legacy/v034/types.go b/x/distribution/legacy/v034/types.go index e32b92a5cf55..25d67feea22a 100644 --- a/x/distribution/legacy/v034/types.go +++ b/x/distribution/legacy/v034/types.go @@ -5,7 +5,7 @@ package v034 import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // ---------------------------------------------------------------------------- diff --git a/x/distribution/legacy/v036/types.go b/x/distribution/legacy/v036/types.go index 32431b7a0d47..05444449638b 100644 --- a/x/distribution/legacy/v036/types.go +++ b/x/distribution/legacy/v036/types.go @@ -8,11 +8,11 @@ import ( "fmt" "strings" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - v034distr "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v034" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - v036gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v036" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + v034distr "github.com/eligion/cosmos-sdk/x/distribution/legacy/v034" + "github.com/eligion/cosmos-sdk/x/distribution/types" + v036gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v036" ) // ---------------------------------------------------------------------------- diff --git a/x/distribution/legacy/v038/types.go b/x/distribution/legacy/v038/types.go index 0422472fbb49..c07ad2a0cec7 100644 --- a/x/distribution/legacy/v038/types.go +++ b/x/distribution/legacy/v038/types.go @@ -4,9 +4,9 @@ package v038 import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v034distr "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v034" - v036distr "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v036" + sdk "github.com/eligion/cosmos-sdk/types" + v034distr "github.com/eligion/cosmos-sdk/x/distribution/legacy/v034" + v036distr "github.com/eligion/cosmos-sdk/x/distribution/legacy/v036" ) // DONTCOVER diff --git a/x/distribution/legacy/v040/keys.go b/x/distribution/legacy/v040/keys.go index 88a3c78079bb..4b54f8463a9e 100644 --- a/x/distribution/legacy/v040/keys.go +++ b/x/distribution/legacy/v040/keys.go @@ -1,12 +1,12 @@ // Package v040 is copy-pasted from: -// https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/distribution/types/keys.go +// https://github.com/eligion/cosmos-sdk/blob/v0.41.0/x/distribution/types/keys.go package v040 import ( "encoding/binary" - sdk "github.com/cosmos/cosmos-sdk/types" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" + sdk "github.com/eligion/cosmos-sdk/types" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" ) const ( diff --git a/x/distribution/legacy/v040/migrate.go b/x/distribution/legacy/v040/migrate.go index b0ba30bba861..863f009c3fc1 100644 --- a/x/distribution/legacy/v040/migrate.go +++ b/x/distribution/legacy/v040/migrate.go @@ -1,8 +1,8 @@ package v040 import ( - v038distribution "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v038" - v040distribution "github.com/cosmos/cosmos-sdk/x/distribution/types" + v038distribution "github.com/eligion/cosmos-sdk/x/distribution/legacy/v038" + v040distribution "github.com/eligion/cosmos-sdk/x/distribution/types" ) // Migrate accepts exported x/distribution genesis state from v0.38 and migrates it diff --git a/x/distribution/legacy/v043/helpers.go b/x/distribution/legacy/v043/helpers.go index 58c6d741ce04..40c46bb6b9cb 100644 --- a/x/distribution/legacy/v043/helpers.go +++ b/x/distribution/legacy/v043/helpers.go @@ -1,10 +1,10 @@ package v043 import ( - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" ) // MigratePrefixAddress is a helper function that migrates all keys of format: diff --git a/x/distribution/legacy/v043/store.go b/x/distribution/legacy/v043/store.go index 4448c59b75ff..a847bb647298 100644 --- a/x/distribution/legacy/v043/store.go +++ b/x/distribution/legacy/v043/store.go @@ -1,8 +1,8 @@ package v043 import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v040distribution "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v040" + sdk "github.com/eligion/cosmos-sdk/types" + v040distribution "github.com/eligion/cosmos-sdk/x/distribution/legacy/v040" ) // MigrateStore performs in-place store migrations from v0.40 to v0.43. The diff --git a/x/distribution/legacy/v043/store_test.go b/x/distribution/legacy/v043/store_test.go index c719d34ddb1e..ed5ba55e4404 100644 --- a/x/distribution/legacy/v043/store_test.go +++ b/x/distribution/legacy/v043/store_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - v040distribution "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v040" - v043distribution "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v043" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + v040distribution "github.com/eligion/cosmos-sdk/x/distribution/legacy/v040" + v043distribution "github.com/eligion/cosmos-sdk/x/distribution/legacy/v043" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) func TestStoreMigration(t *testing.T) { diff --git a/x/distribution/module.go b/x/distribution/module.go index b2dec5b30167..e192b1576556 100644 --- a/x/distribution/module.go +++ b/x/distribution/module.go @@ -12,18 +12,18 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - sdkclient "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/client/cli" - "github.com/cosmos/cosmos-sdk/x/distribution/client/rest" - "github.com/cosmos/cosmos-sdk/x/distribution/keeper" - "github.com/cosmos/cosmos-sdk/x/distribution/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" + sdkclient "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/client/cli" + "github.com/eligion/cosmos-sdk/x/distribution/client/rest" + "github.com/eligion/cosmos-sdk/x/distribution/keeper" + "github.com/eligion/cosmos-sdk/x/distribution/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingkeeper "github.com/eligion/cosmos-sdk/x/staking/keeper" ) var ( diff --git a/x/distribution/module_test.go b/x/distribution/module_test.go index 113622d208e9..34d282757b87 100644 --- a/x/distribution/module_test.go +++ b/x/distribution/module_test.go @@ -7,9 +7,9 @@ import ( abcitypes "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/simapp" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) func TestItCreatesModuleAccountOnInitBlock(t *testing.T) { diff --git a/x/distribution/proposal_handler_test.go b/x/distribution/proposal_handler_test.go index a9b11b321df3..4bf9d47b2a48 100644 --- a/x/distribution/proposal_handler_test.go +++ b/x/distribution/proposal_handler_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) var ( diff --git a/x/distribution/simulation/decoder.go b/x/distribution/simulation/decoder.go index a1d64d20dc05..b8d47f2669a9 100644 --- a/x/distribution/simulation/decoder.go +++ b/x/distribution/simulation/decoder.go @@ -4,10 +4,10 @@ import ( "bytes" "fmt" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/x/distribution/simulation/decoder_test.go b/x/distribution/simulation/decoder_test.go index 69bb6b3b77a0..350edbe86a52 100644 --- a/x/distribution/simulation/decoder_test.go +++ b/x/distribution/simulation/decoder_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/distribution/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/distribution/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) var ( diff --git a/x/distribution/simulation/genesis.go b/x/distribution/simulation/genesis.go index 3f64d5c01e54..f28d2ec3ac69 100644 --- a/x/distribution/simulation/genesis.go +++ b/x/distribution/simulation/genesis.go @@ -7,9 +7,9 @@ import ( "fmt" "math/rand" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // Simulation parameter constants diff --git a/x/distribution/simulation/genesis_test.go b/x/distribution/simulation/genesis_test.go index e923fbd4c833..fd0d2b2aceea 100644 --- a/x/distribution/simulation/genesis_test.go +++ b/x/distribution/simulation/genesis_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/x/distribution/simulation/operations.go b/x/distribution/simulation/operations.go index f82e921290b4..abd6f9135377 100644 --- a/x/distribution/simulation/operations.go +++ b/x/distribution/simulation/operations.go @@ -4,15 +4,15 @@ import ( "fmt" "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/keeper" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - "github.com/cosmos/cosmos-sdk/x/simulation" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/keeper" + "github.com/eligion/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/x/simulation" + stakingkeeper "github.com/eligion/cosmos-sdk/x/staking/keeper" ) // Simulation operation weights constants diff --git a/x/distribution/simulation/operations_test.go b/x/distribution/simulation/operations_test.go index 33b59a53cca9..4ed2b6c50baa 100644 --- a/x/distribution/simulation/operations_test.go +++ b/x/distribution/simulation/operations_test.go @@ -8,14 +8,14 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/types" + distrtypes "github.com/eligion/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // TestWeightedOperations tests the weights of the operations. diff --git a/x/distribution/simulation/params.go b/x/distribution/simulation/params.go index 98fcec342fd9..b6e557e28c5b 100644 --- a/x/distribution/simulation/params.go +++ b/x/distribution/simulation/params.go @@ -6,10 +6,10 @@ import ( "fmt" "math/rand" - "github.com/cosmos/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/x/simulation" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) const ( diff --git a/x/distribution/simulation/params_test.go b/x/distribution/simulation/params_test.go index d28ee9076a2b..481b2bb3e6a6 100644 --- a/x/distribution/simulation/params_test.go +++ b/x/distribution/simulation/params_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/distribution/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/simulation" ) func TestParamChanges(t *testing.T) { diff --git a/x/distribution/simulation/proposals.go b/x/distribution/simulation/proposals.go index 719229cb96f3..5384829b4c56 100644 --- a/x/distribution/simulation/proposals.go +++ b/x/distribution/simulation/proposals.go @@ -3,12 +3,12 @@ package simulation import ( "math/rand" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/keeper" - "github.com/cosmos/cosmos-sdk/x/distribution/types" - "github.com/cosmos/cosmos-sdk/x/simulation" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/keeper" + "github.com/eligion/cosmos-sdk/x/distribution/types" + "github.com/eligion/cosmos-sdk/x/simulation" ) // OpWeightSubmitCommunitySpendProposal app params key for community spend proposal diff --git a/x/distribution/simulation/proposals_test.go b/x/distribution/simulation/proposals_test.go index 6d5895ea8dfd..4c99a9ce51c2 100644 --- a/x/distribution/simulation/proposals_test.go +++ b/x/distribution/simulation/proposals_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/distribution/simulation" + "github.com/eligion/cosmos-sdk/simapp" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/distribution/simulation" ) func TestProposalContents(t *testing.T) { diff --git a/x/distribution/spec/02_state.md b/x/distribution/spec/02_state.md index df85f3f7eda2..d62f99d029f7 100644 --- a/x/distribution/spec/02_state.md +++ b/x/distribution/spec/02_state.md @@ -27,7 +27,7 @@ type DecCoin struct { } ``` -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/distribution/v1beta1/distribution.proto#L94-L101 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/distribution/v1beta1/distribution.proto#L94-L101 ## Validator Distribution diff --git a/x/distribution/spec/04_messages.md b/x/distribution/spec/04_messages.md index 65fde1af039a..bbda12b602f7 100644 --- a/x/distribution/spec/04_messages.md +++ b/x/distribution/spec/04_messages.md @@ -13,7 +13,7 @@ The withdraw address cannot be any of the module accounts. These accounts are bl Response: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37 ```go func (k Keeper) SetWithdrawAddr(ctx sdk.Context, delegatorAddr sdk.AccAddress, withdrawAddr sdk.AccAddress) error @@ -63,7 +63,7 @@ The final calculated stake is equivalent to the actual staked coins in the deleg Response: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50 ## WithdrawValidatorCommission diff --git a/x/distribution/spec/README.md b/x/distribution/spec/README.md index ea56f59e6f1a..bbbcd396d58e 100644 --- a/x/distribution/spec/README.md +++ b/x/distribution/spec/README.md @@ -63,7 +63,7 @@ reward withdrawal by other delegators. If you happen to know that incoming rewards are about to significantly increase, you are incentivized to not withdraw until after this event, increasing the -worth of your existing _accum_. See [#2764](https://github.com/cosmos/cosmos-sdk/issues/2764) +worth of your existing _accum_. See [#2764](https://github.com/eligion/cosmos-sdk/issues/2764) for further details. ## Effect on Staking diff --git a/x/distribution/types/codec.go b/x/distribution/types/codec.go index 73aca45060e6..13d16cb5e55d 100644 --- a/x/distribution/types/codec.go +++ b/x/distribution/types/codec.go @@ -1,12 +1,12 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) // RegisterLegacyAminoCodec registers the necessary x/distribution interfaces and concrete types diff --git a/x/distribution/types/common_test.go b/x/distribution/types/common_test.go index 4e6ef6b01231..5c0706f07941 100644 --- a/x/distribution/types/common_test.go +++ b/x/distribution/types/common_test.go @@ -1,9 +1,9 @@ package types import ( - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // nolint:deadcode,unused,varcheck diff --git a/x/distribution/types/delegator.go b/x/distribution/types/delegator.go index 850878660780..3168ff458c8a 100644 --- a/x/distribution/types/delegator.go +++ b/x/distribution/types/delegator.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // create a new DelegatorStartingInfo diff --git a/x/distribution/types/distribution.pb.go b/x/distribution/types/distribution.pb.go index 2657160a6ea0..95e152b57460 100644 --- a/x/distribution/types/distribution.pb.go +++ b/x/distribution/types/distribution.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" @@ -27,9 +27,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the set of params for the distribution module. type Params struct { - CommunityTax github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=community_tax,json=communityTax,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"community_tax" yaml:"community_tax"` - BaseProposerReward github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=base_proposer_reward,json=baseProposerReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"base_proposer_reward" yaml:"base_proposer_reward"` - BonusProposerReward github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=bonus_proposer_reward,json=bonusProposerReward,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"bonus_proposer_reward" yaml:"bonus_proposer_reward"` + CommunityTax github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=community_tax,json=communityTax,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"community_tax" yaml:"community_tax"` + BaseProposerReward github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=base_proposer_reward,json=baseProposerReward,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"base_proposer_reward" yaml:"base_proposer_reward"` + BonusProposerReward github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=bonus_proposer_reward,json=bonusProposerReward,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"bonus_proposer_reward" yaml:"bonus_proposer_reward"` WithdrawAddrEnabled bool `protobuf:"varint,4,opt,name=withdraw_addr_enabled,json=withdrawAddrEnabled,proto3" json:"withdraw_addr_enabled,omitempty" yaml:"withdraw_addr_enabled"` } @@ -85,7 +85,7 @@ func (m *Params) GetWithdrawAddrEnabled() bool { // read that record) // + one per validator for the zeroeth period, set on initialization type ValidatorHistoricalRewards struct { - CumulativeRewardRatio github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=cumulative_reward_ratio,json=cumulativeRewardRatio,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"cumulative_reward_ratio" yaml:"cumulative_reward_ratio"` + CumulativeRewardRatio github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=cumulative_reward_ratio,json=cumulativeRewardRatio,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"cumulative_reward_ratio" yaml:"cumulative_reward_ratio"` ReferenceCount uint32 `protobuf:"varint,2,opt,name=reference_count,json=referenceCount,proto3" json:"reference_count,omitempty" yaml:"reference_count"` } @@ -140,7 +140,7 @@ func (m *ValidatorHistoricalRewards) GetReferenceCount() uint32 { // period for a validator kept as a running counter and incremented // each block as long as the validator's tokens remain constant. type ValidatorCurrentRewards struct { - Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"` + Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"rewards"` Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"` } @@ -194,7 +194,7 @@ func (m *ValidatorCurrentRewards) GetPeriod() uint64 { // ValidatorAccumulatedCommission represents accumulated commission // for a validator kept as a running counter, can be withdrawn at any time. type ValidatorAccumulatedCommission struct { - Commission github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=commission,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"commission"` + Commission github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=commission,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"commission"` } func (m *ValidatorAccumulatedCommission) Reset() { *m = ValidatorAccumulatedCommission{} } @@ -240,7 +240,7 @@ func (m *ValidatorAccumulatedCommission) GetCommission() github_com_cosmos_cosmo // ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards // for a validator inexpensive to track, allows simple sanity checks. type ValidatorOutstandingRewards struct { - Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards" yaml:"rewards"` + Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"rewards" yaml:"rewards"` } func (m *ValidatorOutstandingRewards) Reset() { *m = ValidatorOutstandingRewards{} } @@ -289,7 +289,7 @@ func (m *ValidatorOutstandingRewards) GetRewards() github_com_cosmos_cosmos_sdk_ // for delegations which are withdrawn after a slash has occurred. type ValidatorSlashEvent struct { ValidatorPeriod uint64 `protobuf:"varint,1,opt,name=validator_period,json=validatorPeriod,proto3" json:"validator_period,omitempty" yaml:"validator_period"` - Fraction github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=fraction,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fraction"` + Fraction github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=fraction,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"fraction"` } func (m *ValidatorSlashEvent) Reset() { *m = ValidatorSlashEvent{} } @@ -378,7 +378,7 @@ func (m *ValidatorSlashEvents) GetValidatorSlashEvents() []ValidatorSlashEvent { // FeePool is the global fee pool for distribution. type FeePool struct { - CommunityPool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=community_pool,json=communityPool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"community_pool" yaml:"community_pool"` + CommunityPool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=community_pool,json=communityPool,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"community_pool" yaml:"community_pool"` } func (m *FeePool) Reset() { *m = FeePool{} } @@ -428,7 +428,7 @@ type CommunityPoolSpendProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"amount"` } func (m *CommunityPoolSpendProposal) Reset() { *m = CommunityPoolSpendProposal{} } @@ -471,7 +471,7 @@ var xxx_messageInfo_CommunityPoolSpendProposal proto.InternalMessageInfo // thus sdk.Dec is used. type DelegatorStartingInfo struct { PreviousPeriod uint64 `protobuf:"varint,1,opt,name=previous_period,json=previousPeriod,proto3" json:"previous_period,omitempty" yaml:"previous_period"` - Stake github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=stake,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"stake" yaml:"stake"` + Stake github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=stake,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"stake" yaml:"stake"` Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"creation_height" yaml:"creation_height"` } @@ -526,7 +526,7 @@ func (m *DelegatorStartingInfo) GetHeight() uint64 { // of a delegator's delegation reward. type DelegationDelegatorReward struct { ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` - Reward github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"reward"` + Reward github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=reward,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"reward"` } func (m *DelegationDelegatorReward) Reset() { *m = DelegationDelegatorReward{} } diff --git a/x/distribution/types/errors.go b/x/distribution/types/errors.go index 147cfd320341..9bb034392b02 100644 --- a/x/distribution/types/errors.go +++ b/x/distribution/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/distribution module sentinel errors diff --git a/x/distribution/types/expected_keepers.go b/x/distribution/types/expected_keepers.go index ac9ebc3a4eea..d09871c32a18 100644 --- a/x/distribution/types/expected_keepers.go +++ b/x/distribution/types/expected_keepers.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // AccountKeeper defines the expected account keeper used for simulations (noalias) @@ -13,7 +13,7 @@ type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, name string) types.ModuleAccountI - // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 + // TODO remove with genesis 2-phases refactor https://github.com/eligion/cosmos-sdk/issues/2862 SetModuleAccount(sdk.Context, types.ModuleAccountI) } diff --git a/x/distribution/types/fee_pool.go b/x/distribution/types/fee_pool.go index 645afd401a33..7027cd6065cf 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/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // zero fee pool diff --git a/x/distribution/types/fee_pool_test.go b/x/distribution/types/fee_pool_test.go index de774ca3cc0f..781a3ee85830 100644 --- a/x/distribution/types/fee_pool_test.go +++ b/x/distribution/types/fee_pool_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) func TestValidateGenesis(t *testing.T) { diff --git a/x/distribution/types/genesis.go b/x/distribution/types/genesis.go index 3aa251bba997..76120bbf0257 100644 --- a/x/distribution/types/genesis.go +++ b/x/distribution/types/genesis.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) //nolint:interfacer diff --git a/x/distribution/types/genesis.pb.go b/x/distribution/types/genesis.pb.go index 5c94d4359ffa..52e5c57d2d64 100644 --- a/x/distribution/types/genesis.pb.go +++ b/x/distribution/types/genesis.pb.go @@ -5,8 +5,8 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" @@ -73,7 +73,7 @@ type ValidatorOutstandingRewardsRecord struct { // validator_address is the address of the validator. ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` // outstanding_rewards represents the oustanding rewards of a validator. - OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"outstanding_rewards" yaml:"outstanding_rewards"` + OutstandingRewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=outstanding_rewards,json=outstandingRewards,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"outstanding_rewards" yaml:"outstanding_rewards"` } func (m *ValidatorOutstandingRewardsRecord) Reset() { *m = ValidatorOutstandingRewardsRecord{} } diff --git a/x/distribution/types/keys.go b/x/distribution/types/keys.go index d28ba2d6b7d7..dfc904e6e4be 100644 --- a/x/distribution/types/keys.go +++ b/x/distribution/types/keys.go @@ -3,8 +3,8 @@ package types import ( "encoding/binary" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" ) const ( diff --git a/x/distribution/types/msg.go b/x/distribution/types/msg.go index 09e9994c16a9..0ac2cee167ce 100644 --- a/x/distribution/types/msg.go +++ b/x/distribution/types/msg.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // distribution message types diff --git a/x/distribution/types/msg_test.go b/x/distribution/types/msg_test.go index 324626178d04..0e7c4d094db0 100644 --- a/x/distribution/types/msg_test.go +++ b/x/distribution/types/msg_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // test ValidateBasic for MsgSetWithdrawAddress diff --git a/x/distribution/types/params.go b/x/distribution/types/params.go index 212b0b99f3e5..f8b6a0b2dece 100644 --- a/x/distribution/types/params.go +++ b/x/distribution/types/params.go @@ -5,8 +5,8 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + sdk "github.com/eligion/cosmos-sdk/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // Parameter keys diff --git a/x/distribution/types/params_internal_test.go b/x/distribution/types/params_internal_test.go index f132df9d5daf..82901ef4f624 100644 --- a/x/distribution/types/params_internal_test.go +++ b/x/distribution/types/params_internal_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func Test_validateAuxFuncs(t *testing.T) { diff --git a/x/distribution/types/params_test.go b/x/distribution/types/params_test.go index d156df728d65..8b5cea8b6b21 100644 --- a/x/distribution/types/params_test.go +++ b/x/distribution/types/params_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/distribution/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/distribution/types" ) func TestParams_ValidateBasic(t *testing.T) { diff --git a/x/distribution/types/proposal.go b/x/distribution/types/proposal.go index 1a0d0a886ed7..f8a1a9e2a9e7 100644 --- a/x/distribution/types/proposal.go +++ b/x/distribution/types/proposal.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - sdk "github.com/cosmos/cosmos-sdk/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) const ( diff --git a/x/distribution/types/querier.go b/x/distribution/types/querier.go index fb9fd4677dca..ebde7406a7b2 100644 --- a/x/distribution/types/querier.go +++ b/x/distribution/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // querier keys diff --git a/x/distribution/types/query.go b/x/distribution/types/query.go index caaf2b7860be..a2dd357bb53c 100644 --- a/x/distribution/types/query.go +++ b/x/distribution/types/query.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // QueryDelegatorTotalRewardsResponse defines the properties of diff --git a/x/distribution/types/query.pb.go b/x/distribution/types/query.pb.go index 47acd5e73c52..93923676a69f 100644 --- a/x/distribution/types/query.pb.go +++ b/x/distribution/types/query.pb.go @@ -6,9 +6,9 @@ package types import ( context "context" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" - query "github.com/cosmos/cosmos-sdk/types/query" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" + query "github.com/eligion/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -454,7 +454,7 @@ var xxx_messageInfo_QueryDelegationRewardsRequest proto.InternalMessageInfo // Query/DelegationRewards RPC method. type QueryDelegationRewardsResponse struct { // rewards defines the rewards accrued by a delegation. - Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"` + Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"rewards"` } func (m *QueryDelegationRewardsResponse) Reset() { *m = QueryDelegationRewardsResponse{} } @@ -543,7 +543,7 @@ type QueryDelegationTotalRewardsResponse struct { // rewards defines all the rewards accrued by a delegator. Rewards []DelegationDelegatorReward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` // total defines the sum of all the rewards. - Total github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"total"` + Total github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,2,rep,name=total,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"total"` } func (m *QueryDelegationTotalRewardsResponse) Reset() { *m = QueryDelegationTotalRewardsResponse{} } @@ -795,7 +795,7 @@ var xxx_messageInfo_QueryCommunityPoolRequest proto.InternalMessageInfo // RPC method. type QueryCommunityPoolResponse struct { // pool defines community pool's coins. - Pool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=pool,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"pool"` + Pool github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=pool,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.DecCoins" json:"pool"` } func (m *QueryCommunityPoolResponse) Reset() { *m = QueryCommunityPoolResponse{} } diff --git a/x/distribution/types/tx.pb.go b/x/distribution/types/tx.pb.go index 55cfce4e78f4..6726de415e74 100644 --- a/x/distribution/types/tx.pb.go +++ b/x/distribution/types/tx.pb.go @@ -6,8 +6,8 @@ package types import ( context "context" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -265,7 +265,7 @@ var xxx_messageInfo_MsgWithdrawValidatorCommissionResponse proto.InternalMessage // MsgFundCommunityPool allows an account to directly // fund the community pool. type MsgFundCommunityPool struct { - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"amount"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` } diff --git a/x/distribution/types/validator.go b/x/distribution/types/validator.go index aa64a3703068..d67e1e3df25c 100644 --- a/x/distribution/types/validator.go +++ b/x/distribution/types/validator.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // create a new ValidatorHistoricalRewards diff --git a/x/evidence/abci.go b/x/evidence/abci.go index 63866fd2bc68..cb2662d94aa1 100644 --- a/x/evidence/abci.go +++ b/x/evidence/abci.go @@ -6,10 +6,10 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/keeper" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) // BeginBlocker iterates through and handles any newly discovered evidence of diff --git a/x/evidence/atlas/atlas-v0.41.x.md b/x/evidence/atlas/atlas-v0.41.x.md index be157916d879..5eb006c25e11 100644 --- a/x/evidence/atlas/atlas-v0.41.x.md +++ b/x/evidence/atlas/atlas-v0.41.x.md @@ -10,9 +10,9 @@ with particular kinds of accounts. ```go import ( - "github.com/cosmos/cosmos-sdk/x/evidence" - evidencekeeper "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/x/evidence" + evidencekeeper "github.com/eligion/cosmos-sdk/x/evidence/keeper" + evidencetypes "github.com/eligion/cosmos-sdk/x/evidence/types" ) ``` @@ -49,7 +49,7 @@ with particular kinds of accounts. } ``` -5. Create the keeper. Note, the `x/evidence` module depends on the `x/staking` and `x/slashing` modules. Evidence has expected interfaces, these interfaces are linked to slashing and staking. You can find these interfaces [here](https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/evidence/types/expected_keepers.go) +5. Create the keeper. Note, the `x/evidence` module depends on the `x/staking` and `x/slashing` modules. Evidence has expected interfaces, these interfaces are linked to slashing and staking. You can find these interfaces [here](https://github.com/eligion/cosmos-sdk/blob/v0.41.0/x/evidence/types/expected_keepers.go) ```go func NewApp(...) *App { diff --git a/x/evidence/atlas/manifest.toml b/x/evidence/atlas/manifest.toml index e277c6802445..10793be7d42f 100644 --- a/x/evidence/atlas/manifest.toml +++ b/x/evidence/atlas/manifest.toml @@ -6,7 +6,7 @@ name = "x/evidence" description = "The evidence module is responsible for storing and handling evidence of misbeaviour." # Link to where the module is located, it can also be a link to your project. (Optional) -homepage = "https://github.com/cosmos/cosmos-sdk" +homepage = "https://github.com/eligion/cosmos-sdk" #List of key words describing your module (Optional) keywords = [ @@ -19,7 +19,7 @@ keywords = [ [bug_tracker] # A URL to a site that provides information or guidance on how to submit or deal # with security vulnerabilities and bug reports. -url = "https://github.com/cosmos/cosmos-sdk/issues" +url = "https://github.com/eligion/cosmos-sdk/issues" # To list multiple authors, multiple [[authors]] need to be created [[authors]] @@ -36,7 +36,7 @@ name = "aaronc" # The repository field should be a URL to the source repository for your module. # Typically, this will point to the specific GitHub repository release/tag for the # module, although this is not enforced or required. (Required) -repo = "https://github.com/cosmos/cosmos-sdk" +repo = "https://github.com/eligion/cosmos-sdk" # The documentation field specifies a URL to a website hosting the module's documentation. (Optional) documentation = "https://raw.githubusercontent.com/cosmos/cosmos-sdk/master/x/evidence/atlas/atlas-v0.41.x.md" diff --git a/x/evidence/client/cli/query.go b/x/evidence/client/cli/query.go index 9c987fb15e36..1abc512543ac 100644 --- a/x/evidence/client/cli/query.go +++ b/x/evidence/client/cli/query.go @@ -8,11 +8,11 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/evidence/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 f13e3e8e2f65..4b3f798974ca 100644 --- a/x/evidence/client/cli/tx.go +++ b/x/evidence/client/cli/tx.go @@ -1,8 +1,8 @@ package cli import ( - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/x/evidence/types" "github.com/spf13/cobra" ) diff --git a/x/evidence/client/evidence_handler.go b/x/evidence/client/evidence_handler.go index 7cada571ccc3..fcb651b3e2a2 100644 --- a/x/evidence/client/evidence_handler.go +++ b/x/evidence/client/evidence_handler.go @@ -3,8 +3,8 @@ package client import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/x/evidence/client/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/x/evidence/client/rest" ) type ( diff --git a/x/evidence/client/rest/query.go b/x/evidence/client/rest/query.go index b8bdcf4813f6..2fb124e7a94e 100644 --- a/x/evidence/client/rest/query.go +++ b/x/evidence/client/rest/query.go @@ -6,9 +6,9 @@ import ( "net/http" "strings" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/evidence/types" "github.com/gorilla/mux" ) diff --git a/x/evidence/client/rest/rest.go b/x/evidence/client/rest/rest.go index f2714cc7ba4e..62fa23a5e667 100644 --- a/x/evidence/client/rest/rest.go +++ b/x/evidence/client/rest/rest.go @@ -3,8 +3,8 @@ package rest import ( "net/http" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/rest" "github.com/gorilla/mux" ) diff --git a/x/evidence/client/rest/tx.go b/x/evidence/client/rest/tx.go index 0c3c0966a3d0..fe8bddbf3013 100644 --- a/x/evidence/client/rest/tx.go +++ b/x/evidence/client/rest/tx.go @@ -1,7 +1,7 @@ package rest import ( - "github.com/cosmos/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client" "github.com/gorilla/mux" ) diff --git a/x/evidence/client/testutil/cli_test.go b/x/evidence/client/testutil/cli_test.go index dd36a6af2d3e..e6b57e58c2c2 100644 --- a/x/evidence/client/testutil/cli_test.go +++ b/x/evidence/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/evidence/client/testutil/suite.go b/x/evidence/client/testutil/suite.go index d12083b64789..23ca22d8f681 100644 --- a/x/evidence/client/testutil/suite.go +++ b/x/evidence/client/testutil/suite.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/suite" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/x/evidence/client/cli" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/x/evidence/client/cli" ) type IntegrationTestSuite struct { diff --git a/x/evidence/exported/evidence.go b/x/evidence/exported/evidence.go index 8cf00fa6a93c..b59742994f0a 100644 --- a/x/evidence/exported/evidence.go +++ b/x/evidence/exported/evidence.go @@ -4,7 +4,7 @@ import ( "github.com/gogo/protobuf/proto" tmbytes "github.com/tendermint/tendermint/libs/bytes" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // Evidence defines the contract which concrete evidence types of misbehavior diff --git a/x/evidence/genesis.go b/x/evidence/genesis.go index 2be3fee88276..a8a9e2a3898c 100644 --- a/x/evidence/genesis.go +++ b/x/evidence/genesis.go @@ -5,11 +5,11 @@ import ( "github.com/gogo/protobuf/proto" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/keeper" + "github.com/eligion/cosmos-sdk/x/evidence/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 3ae8eee03cd8..e3d39009d57b 100644 --- a/x/evidence/genesis_test.go +++ b/x/evidence/genesis_test.go @@ -8,13 +8,13 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" "github.com/tendermint/tendermint/types/time" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/keeper" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) type GenesisTestSuite struct { diff --git a/x/evidence/handler.go b/x/evidence/handler.go index 93da4d7bf50d..c90cb8c12b06 100644 --- a/x/evidence/handler.go +++ b/x/evidence/handler.go @@ -1,10 +1,10 @@ package evidence import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/evidence/keeper" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) // NewHandler returns a handler for evidence messages. diff --git a/x/evidence/handler_test.go b/x/evidence/handler_test.go index f6294f3e5526..5b5191776b31 100644 --- a/x/evidence/handler_test.go +++ b/x/evidence/handler_test.go @@ -9,13 +9,13 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/keeper" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) type HandlerTestSuite struct { diff --git a/x/evidence/keeper/grpc_query.go b/x/evidence/keeper/grpc_query.go index f084c16717a0..efae5212b556 100644 --- a/x/evidence/keeper/grpc_query.go +++ b/x/evidence/keeper/grpc_query.go @@ -6,14 +6,14 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/store/prefix" - "github.com/cosmos/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/store/prefix" + "github.com/eligion/cosmos-sdk/types/query" proto "github.com/gogo/protobuf/proto" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/evidence/keeper/grpc_query_test.go b/x/evidence/keeper/grpc_query_test.go index df760c8edfe0..31ae46c065ce 100644 --- a/x/evidence/keeper/grpc_query_test.go +++ b/x/evidence/keeper/grpc_query_test.go @@ -3,10 +3,10 @@ package keeper_test import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/types" tmbytes "github.com/tendermint/tendermint/libs/bytes" ) diff --git a/x/evidence/keeper/infraction.go b/x/evidence/keeper/infraction.go index 3ae74bc216de..3f9183b18408 100644 --- a/x/evidence/keeper/infraction.go +++ b/x/evidence/keeper/infraction.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) // HandleEquivocationEvidence implements an equivocation evidence handler. Assuming the diff --git a/x/evidence/keeper/infraction_test.go b/x/evidence/keeper/infraction_test.go index 4c7368b1df7c..426d56032d89 100644 --- a/x/evidence/keeper/infraction_test.go +++ b/x/evidence/keeper/infraction_test.go @@ -3,10 +3,10 @@ package keeper_test import ( "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/types" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" ) func (suite *KeeperTestSuite) TestHandleDoubleSign() { diff --git a/x/evidence/keeper/keeper.go b/x/evidence/keeper/keeper.go index e913e7ab55ee..876120ed202a 100644 --- a/x/evidence/keeper/keeper.go +++ b/x/evidence/keeper/keeper.go @@ -6,12 +6,12 @@ import ( tmbytes "github.com/tendermint/tendermint/libs/bytes" "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) // Keeper defines the evidence module's keeper. The keeper is responsible for diff --git a/x/evidence/keeper/keeper_test.go b/x/evidence/keeper/keeper_test.go index 102f9773e61d..8ee13896dddb 100644 --- a/x/evidence/keeper/keeper_test.go +++ b/x/evidence/keeper/keeper_test.go @@ -5,21 +5,21 @@ import ( "fmt" "time" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - "github.com/cosmos/cosmos-sdk/x/evidence/types" - "github.com/cosmos/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/keeper" + "github.com/eligion/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/x/staking" ) var ( diff --git a/x/evidence/keeper/msg_server.go b/x/evidence/keeper/msg_server.go index df3cabd4fe67..9903c168af75 100644 --- a/x/evidence/keeper/msg_server.go +++ b/x/evidence/keeper/msg_server.go @@ -3,8 +3,8 @@ package keeper import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) type msgServer struct { diff --git a/x/evidence/keeper/querier.go b/x/evidence/keeper/querier.go index c1ae20d4d9c1..6a2b16f49d3d 100644 --- a/x/evidence/keeper/querier.go +++ b/x/evidence/keeper/querier.go @@ -1,12 +1,12 @@ package keeper import ( - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evidence/keeper/querier_test.go b/x/evidence/keeper/querier_test.go index 40a9f94e5fb0..954b3a3a6f9e 100644 --- a/x/evidence/keeper/querier_test.go +++ b/x/evidence/keeper/querier_test.go @@ -3,10 +3,10 @@ package keeper_test import ( "strings" - "github.com/cosmos/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/evidence/legacy/v038/types.go b/x/evidence/legacy/v038/types.go index b42a72f0ae85..c5753e626a94 100644 --- a/x/evidence/legacy/v038/types.go +++ b/x/evidence/legacy/v038/types.go @@ -11,8 +11,8 @@ import ( tmbytes "github.com/tendermint/tendermint/libs/bytes" "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" ) // Default parameter values diff --git a/x/evidence/legacy/v040/migrate.go b/x/evidence/legacy/v040/migrate.go index f848130f345c..a67b846b4858 100644 --- a/x/evidence/legacy/v040/migrate.go +++ b/x/evidence/legacy/v040/migrate.go @@ -3,9 +3,9 @@ package v040 import ( "fmt" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - v038evidence "github.com/cosmos/cosmos-sdk/x/evidence/legacy/v038" - v040evidence "github.com/cosmos/cosmos-sdk/x/evidence/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + v038evidence "github.com/eligion/cosmos-sdk/x/evidence/legacy/v038" + v040evidence "github.com/eligion/cosmos-sdk/x/evidence/types" ) func migrateEvidence(oldEvidence v038evidence.Evidence) *codectypes.Any { diff --git a/x/evidence/legacy/v040/migrate_test.go b/x/evidence/legacy/v040/migrate_test.go index 43d3d9db7e2e..d84fb71ef3af 100644 --- a/x/evidence/legacy/v040/migrate_test.go +++ b/x/evidence/legacy/v040/migrate_test.go @@ -5,11 +5,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - v038evidence "github.com/cosmos/cosmos-sdk/x/evidence/legacy/v038" - v040evidence "github.com/cosmos/cosmos-sdk/x/evidence/legacy/v040" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + v038evidence "github.com/eligion/cosmos-sdk/x/evidence/legacy/v038" + v040evidence "github.com/eligion/cosmos-sdk/x/evidence/legacy/v040" ) func TestMigrate(t *testing.T) { diff --git a/x/evidence/module.go b/x/evidence/module.go index cfcf5a35d353..0e0a1b14bae7 100644 --- a/x/evidence/module.go +++ b/x/evidence/module.go @@ -13,18 +13,18 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - eviclient "github.com/cosmos/cosmos-sdk/x/evidence/client" - "github.com/cosmos/cosmos-sdk/x/evidence/client/cli" - "github.com/cosmos/cosmos-sdk/x/evidence/client/rest" - "github.com/cosmos/cosmos-sdk/x/evidence/keeper" - "github.com/cosmos/cosmos-sdk/x/evidence/simulation" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + eviclient "github.com/eligion/cosmos-sdk/x/evidence/client" + "github.com/eligion/cosmos-sdk/x/evidence/client/cli" + "github.com/eligion/cosmos-sdk/x/evidence/client/rest" + "github.com/eligion/cosmos-sdk/x/evidence/keeper" + "github.com/eligion/cosmos-sdk/x/evidence/simulation" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) var ( diff --git a/x/evidence/simulation/decoder.go b/x/evidence/simulation/decoder.go index d8c185fd0488..1b347720d6f9 100644 --- a/x/evidence/simulation/decoder.go +++ b/x/evidence/simulation/decoder.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) type EvidenceUnmarshaler interface { diff --git a/x/evidence/simulation/decoder_test.go b/x/evidence/simulation/decoder_test.go index a63beae50120..12eacc90e757 100644 --- a/x/evidence/simulation/decoder_test.go +++ b/x/evidence/simulation/decoder_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/evidence/simulation" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/evidence/simulation" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) func TestDecodeStore(t *testing.T) { diff --git a/x/evidence/simulation/genesis.go b/x/evidence/simulation/genesis.go index 640670ebe9a9..51f0de8e3b69 100644 --- a/x/evidence/simulation/genesis.go +++ b/x/evidence/simulation/genesis.go @@ -7,10 +7,10 @@ import ( "fmt" "math/rand" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) // Simulation parameter constants diff --git a/x/evidence/simulation/genesis_test.go b/x/evidence/simulation/genesis_test.go index 8cfa086adc97..b9f0a0348fed 100644 --- a/x/evidence/simulation/genesis_test.go +++ b/x/evidence/simulation/genesis_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - 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/cosmos/cosmos-sdk/x/evidence/simulation" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/evidence/simulation" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/x/evidence/types/codec.go b/x/evidence/types/codec.go index 9de2743e38ef..25e8edd45a29 100644 --- a/x/evidence/types/codec.go +++ b/x/evidence/types/codec.go @@ -1,12 +1,12 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" + "github.com/eligion/cosmos-sdk/x/evidence/exported" ) // RegisterLegacyAminoCodec registers all the necessary types and interfaces for the diff --git a/x/evidence/types/errors.go b/x/evidence/types/errors.go index f44802709149..c3dc29e871bd 100644 --- a/x/evidence/types/errors.go +++ b/x/evidence/types/errors.go @@ -2,7 +2,7 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/evidence module sentinel errors diff --git a/x/evidence/types/evidence.go b/x/evidence/types/evidence.go index fca6126ec36f..b9a68c987f41 100644 --- a/x/evidence/types/evidence.go +++ b/x/evidence/types/evidence.go @@ -9,8 +9,8 @@ import ( tmbytes "github.com/tendermint/tendermint/libs/bytes" "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/exported" ) // Evidence type constants diff --git a/x/evidence/types/evidence_test.go b/x/evidence/types/evidence_test.go index c78f0b059cc9..b0a37611ec5b 100644 --- a/x/evidence/types/evidence_test.go +++ b/x/evidence/types/evidence_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) func TestEquivocation_Valid(t *testing.T) { diff --git a/x/evidence/types/expected_keepers.go b/x/evidence/types/expected_keepers.go index 0f1d87774c6c..cef70280b31a 100644 --- a/x/evidence/types/expected_keepers.go +++ b/x/evidence/types/expected_keepers.go @@ -3,9 +3,9 @@ package types import ( "time" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) type ( diff --git a/x/evidence/types/genesis.go b/x/evidence/types/genesis.go index b274ea20714f..0b444074446c 100644 --- a/x/evidence/types/genesis.go +++ b/x/evidence/types/genesis.go @@ -5,8 +5,8 @@ import ( proto "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/x/evidence/exported" ) var _ types.UnpackInterfacesMessage = GenesisState{} diff --git a/x/evidence/types/genesis.pb.go b/x/evidence/types/genesis.pb.go index 672a0ce8cf2e..bda5e2a111a3 100644 --- a/x/evidence/types/genesis.pb.go +++ b/x/evidence/types/genesis.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" proto "github.com/gogo/protobuf/proto" io "io" math "math" diff --git a/x/evidence/types/genesis_test.go b/x/evidence/types/genesis_test.go index 339696c82e1f..5aaca15d4f19 100644 --- a/x/evidence/types/genesis_test.go +++ b/x/evidence/types/genesis_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/require" tmbytes "github.com/tendermint/tendermint/libs/bytes" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) func TestDefaultGenesisState(t *testing.T) { diff --git a/x/evidence/types/msgs.go b/x/evidence/types/msgs.go index cd2e2ba0321d..13bc4d80d873 100644 --- a/x/evidence/types/msgs.go +++ b/x/evidence/types/msgs.go @@ -5,10 +5,10 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/evidence/exported" ) // Message types for the evidence module diff --git a/x/evidence/types/msgs_test.go b/x/evidence/types/msgs_test.go index b591e7fc86ab..46a9f7f76fb1 100644 --- a/x/evidence/types/msgs_test.go +++ b/x/evidence/types/msgs_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) func testMsgSubmitEvidence(t *testing.T, e exported.Evidence, s sdk.AccAddress) exported.MsgSubmitEvidenceI { diff --git a/x/evidence/types/querier.go b/x/evidence/types/querier.go index 72f8a604d3e0..bafd7e01655f 100644 --- a/x/evidence/types/querier.go +++ b/x/evidence/types/querier.go @@ -3,7 +3,7 @@ package types import ( tmbytes "github.com/tendermint/tendermint/libs/bytes" - query "github.com/cosmos/cosmos-sdk/types/query" + query "github.com/eligion/cosmos-sdk/types/query" ) // Querier routes for the evidence module diff --git a/x/evidence/types/query.pb.go b/x/evidence/types/query.pb.go index e084ea29c899..b9e63e75216e 100644 --- a/x/evidence/types/query.pb.go +++ b/x/evidence/types/query.pb.go @@ -6,8 +6,8 @@ package types import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" - query "github.com/cosmos/cosmos-sdk/types/query" + types "github.com/eligion/cosmos-sdk/codec/types" + query "github.com/eligion/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/x/evidence/types/router.go b/x/evidence/types/router.go index 343c72e41de5..fd95989a5882 100644 --- a/x/evidence/types/router.go +++ b/x/evidence/types/router.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/exported" ) type ( diff --git a/x/evidence/types/router_test.go b/x/evidence/types/router_test.go index 01e942e9ea52..f2e0c730e8ab 100644 --- a/x/evidence/types/router_test.go +++ b/x/evidence/types/router_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/evidence/exported" - "github.com/cosmos/cosmos-sdk/x/evidence/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/evidence/exported" + "github.com/eligion/cosmos-sdk/x/evidence/types" ) func testHandler(sdk.Context, exported.Evidence) error { return nil } diff --git a/x/evidence/types/tx.pb.go b/x/evidence/types/tx.pb.go index 0cce8d2cbb4a..4fc7d54c16d2 100644 --- a/x/evidence/types/tx.pb.go +++ b/x/evidence/types/tx.pb.go @@ -7,7 +7,7 @@ import ( bytes "bytes" context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/x/feegrant/basic_fee.go b/x/feegrant/basic_fee.go index 85ba8ab2564a..ceaa0ef7cb5e 100644 --- a/x/feegrant/basic_fee.go +++ b/x/feegrant/basic_fee.go @@ -1,8 +1,8 @@ package feegrant import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) var _ FeeAllowanceI = (*BasicAllowance)(nil) diff --git a/x/feegrant/basic_fee_test.go b/x/feegrant/basic_fee_test.go index 98df14ef7e4e..5a44a957ba77 100644 --- a/x/feegrant/basic_fee_test.go +++ b/x/feegrant/basic_fee_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/feegrant" ) func TestBasicFeeValidAllow(t *testing.T) { diff --git a/x/feegrant/client/cli/query.go b/x/feegrant/client/cli/query.go index 93aab3765c37..d240c0a540cf 100644 --- a/x/feegrant/client/cli/query.go +++ b/x/feegrant/client/cli/query.go @@ -6,11 +6,11 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/feegrant" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/feegrant/client/cli/tx.go b/x/feegrant/client/cli/tx.go index 66022abfa90a..3c2aac0ef674 100644 --- a/x/feegrant/client/cli/tx.go +++ b/x/feegrant/client/cli/tx.go @@ -7,12 +7,12 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/feegrant" ) // flag for feegrant module diff --git a/x/feegrant/client/testutil/cli_test.go b/x/feegrant/client/testutil/cli_test.go index bdbfb78d0bd1..03fceaf29847 100644 --- a/x/feegrant/client/testutil/cli_test.go +++ b/x/feegrant/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/feegrant/client/testutil/suite.go b/x/feegrant/client/testutil/suite.go index 47724a38cae5..9ffcdef6abf3 100644 --- a/x/feegrant/client/testutil/suite.go +++ b/x/feegrant/client/testutil/suite.go @@ -10,18 +10,18 @@ import ( "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" - "github.com/cosmos/cosmos-sdk/x/feegrant/client/cli" - govtestutil "github.com/cosmos/cosmos-sdk/x/gov/client/testutil" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/x/feegrant/client/cli" + govtestutil "github.com/eligion/cosmos-sdk/x/gov/client/testutil" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) const ( diff --git a/x/feegrant/codec.go b/x/feegrant/codec.go index 7e307f42197d..16ebb6429af4 100644 --- a/x/feegrant/codec.go +++ b/x/feegrant/codec.go @@ -1,9 +1,9 @@ package feegrant import ( - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" ) // RegisterInterfaces registers the interfaces types with the interface registry diff --git a/x/feegrant/errors.go b/x/feegrant/errors.go index 232020e6a24e..a756d16a5369 100644 --- a/x/feegrant/errors.go +++ b/x/feegrant/errors.go @@ -1,7 +1,7 @@ package feegrant import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // Codes for governance errors diff --git a/x/feegrant/expected_keepers.go b/x/feegrant/expected_keepers.go index eb5d4bf04465..79e1572787e0 100644 --- a/x/feegrant/expected_keepers.go +++ b/x/feegrant/expected_keepers.go @@ -1,8 +1,8 @@ package feegrant import ( - sdk "github.com/cosmos/cosmos-sdk/types" - auth "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + auth "github.com/eligion/cosmos-sdk/x/auth/types" ) // AccountKeeper defines the expected auth Account Keeper (noalias) diff --git a/x/feegrant/feegrant.pb.go b/x/feegrant/feegrant.pb.go index a76572321924..0e274a0139aa 100644 --- a/x/feegrant/feegrant.pb.go +++ b/x/feegrant/feegrant.pb.go @@ -5,9 +5,9 @@ package feegrant import ( fmt "fmt" - types1 "github.com/cosmos/cosmos-sdk/codec/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/eligion/cosmos-sdk/codec/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" @@ -38,7 +38,7 @@ type BasicAllowance struct { // spend_limit specifies the maximum amount of tokens that can be spent // by this allowance and will be updated as tokens are spent. If it is // empty, there is no spend limit and any amount of coins can be spent. - SpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"spend_limit"` + SpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"spend_limit"` // expiration specifies an optional time when this allowance expires Expiration *time.Time `protobuf:"bytes,2,opt,name=expiration,proto3,stdtime" json:"expiration,omitempty"` } @@ -100,9 +100,9 @@ type PeriodicAllowance struct { Period time.Duration `protobuf:"bytes,2,opt,name=period,proto3,stdduration" json:"period"` // period_spend_limit specifies the maximum number of coins that can be spent // in the period - PeriodSpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=period_spend_limit,json=periodSpendLimit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"period_spend_limit"` + PeriodSpendLimit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=period_spend_limit,json=periodSpendLimit,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"period_spend_limit"` // period_can_spend is the number of coins left to be spent before the period_reset time - PeriodCanSpend github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=period_can_spend,json=periodCanSpend,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"period_can_spend"` + PeriodCanSpend github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=period_can_spend,json=periodCanSpend,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"period_can_spend"` // period_reset is the time at which this period resets and a new one begins, // it is calculated from the start time of the first transaction after the // last period ended diff --git a/x/feegrant/fees.go b/x/feegrant/fees.go index bd8c682608fd..35055d9c28ce 100644 --- a/x/feegrant/fees.go +++ b/x/feegrant/fees.go @@ -1,7 +1,7 @@ package feegrant import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // FeeAllowance implementations are tied to a given fee delegator and delegatee, diff --git a/x/feegrant/filtered_fee.go b/x/feegrant/filtered_fee.go index d842e40852af..561fadf41139 100644 --- a/x/feegrant/filtered_fee.go +++ b/x/feegrant/filtered_fee.go @@ -3,13 +3,13 @@ package feegrant import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // TODO: Revisit this once we have propoer gas fee framework. -// Tracking issues https://github.com/cosmos/cosmos-sdk/issues/9054, https://github.com/cosmos/cosmos-sdk/discussions/9072 +// Tracking issues https://github.com/eligion/cosmos-sdk/issues/9054, https://github.com/eligion/cosmos-sdk/discussions/9072 const ( gasCostPerIteration = uint64(10) ) diff --git a/x/feegrant/genesis.go b/x/feegrant/genesis.go index 83b29baeb85d..fa177d37bc7c 100644 --- a/x/feegrant/genesis.go +++ b/x/feegrant/genesis.go @@ -1,7 +1,7 @@ package feegrant import ( - "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec/types" ) var _ types.UnpackInterfacesMessage = GenesisState{} diff --git a/x/feegrant/grant.go b/x/feegrant/grant.go index a51e65ab5e1d..0c374e9b089f 100644 --- a/x/feegrant/grant.go +++ b/x/feegrant/grant.go @@ -3,9 +3,9 @@ package feegrant import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) var ( diff --git a/x/feegrant/grant_test.go b/x/feegrant/grant_test.go index 5fbbd8190e6f..5a83b9ebd079 100644 --- a/x/feegrant/grant_test.go +++ b/x/feegrant/grant_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/feegrant" ) func TestGrant(t *testing.T) { diff --git a/x/feegrant/keeper/genesis_test.go b/x/feegrant/keeper/genesis_test.go index 51203dbb6a77..2debfd90c2ca 100644 --- a/x/feegrant/keeper/genesis_test.go +++ b/x/feegrant/keeper/genesis_test.go @@ -6,13 +6,13 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" - "github.com/cosmos/cosmos-sdk/x/feegrant/keeper" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/x/feegrant/keeper" ) type GenesisTestSuite struct { diff --git a/x/feegrant/keeper/grpc_query.go b/x/feegrant/keeper/grpc_query.go index d8c23d0313cf..651e0162f49d 100644 --- a/x/feegrant/keeper/grpc_query.go +++ b/x/feegrant/keeper/grpc_query.go @@ -7,11 +7,11 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/feegrant" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/feegrant" ) var _ feegrant.QueryServer = Keeper{} diff --git a/x/feegrant/keeper/grpc_query_test.go b/x/feegrant/keeper/grpc_query_test.go index 299b1b121eed..0517d374da12 100644 --- a/x/feegrant/keeper/grpc_query_test.go +++ b/x/feegrant/keeper/grpc_query_test.go @@ -1,8 +1,8 @@ package keeper_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/feegrant" ) func (suite *KeeperTestSuite) TestFeeAllowance() { diff --git a/x/feegrant/keeper/keeper.go b/x/feegrant/keeper/keeper.go index fd2614ccf72e..96e30d751ae7 100644 --- a/x/feegrant/keeper/keeper.go +++ b/x/feegrant/keeper/keeper.go @@ -5,11 +5,11 @@ import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/ante" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/ante" + "github.com/eligion/cosmos-sdk/x/feegrant" ) // Keeper manages state of all fee grants, as well as calculating approval. diff --git a/x/feegrant/keeper/keeper_test.go b/x/feegrant/keeper/keeper_test.go index b2e08734bad4..8ae07eec395d 100644 --- a/x/feegrant/keeper/keeper_test.go +++ b/x/feegrant/keeper/keeper_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" - "github.com/cosmos/cosmos-sdk/x/feegrant/keeper" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/x/feegrant/keeper" ) type KeeperTestSuite struct { diff --git a/x/feegrant/keeper/msg_server.go b/x/feegrant/keeper/msg_server.go index 044e7b57e170..b0fa6793e54a 100644 --- a/x/feegrant/keeper/msg_server.go +++ b/x/feegrant/keeper/msg_server.go @@ -3,10 +3,10 @@ package keeper import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/feegrant" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/feegrant" ) type msgServer struct { diff --git a/x/feegrant/keeper/msg_server_test.go b/x/feegrant/keeper/msg_server_test.go index 40d3443973bc..a67ab329f86e 100644 --- a/x/feegrant/keeper/msg_server_test.go +++ b/x/feegrant/keeper/msg_server_test.go @@ -1,9 +1,9 @@ package keeper_test import ( - codectypes "github.com/cosmos/cosmos-sdk/codec/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/x/feegrant" ) func (suite *KeeperTestSuite) TestGrantAllowance() { diff --git a/x/feegrant/key.go b/x/feegrant/key.go index cfc885d9a7a1..5f3c3fde4241 100644 --- a/x/feegrant/key.go +++ b/x/feegrant/key.go @@ -1,8 +1,8 @@ package feegrant import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" ) const ( diff --git a/x/feegrant/module/module.go b/x/feegrant/module/module.go index c9a7555506ad..8d28adb66b83 100644 --- a/x/feegrant/module/module.go +++ b/x/feegrant/module/module.go @@ -11,17 +11,17 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - sdkclient "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/feegrant" - "github.com/cosmos/cosmos-sdk/x/feegrant/client/cli" - "github.com/cosmos/cosmos-sdk/x/feegrant/keeper" - "github.com/cosmos/cosmos-sdk/x/feegrant/simulation" + sdkclient "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/x/feegrant/client/cli" + "github.com/eligion/cosmos-sdk/x/feegrant/keeper" + "github.com/eligion/cosmos-sdk/x/feegrant/simulation" ) var ( diff --git a/x/feegrant/msgs.go b/x/feegrant/msgs.go index 63c29eb4eaeb..b571e95615c2 100644 --- a/x/feegrant/msgs.go +++ b/x/feegrant/msgs.go @@ -3,11 +3,11 @@ package feegrant import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/legacy" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/codec/legacy" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" ) var ( diff --git a/x/feegrant/msgs_test.go b/x/feegrant/msgs_test.go index c5eceb3b6bd3..4e44e1b3d11d 100644 --- a/x/feegrant/msgs_test.go +++ b/x/feegrant/msgs_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/feegrant" ) func TestMsgGrantAllowance(t *testing.T) { diff --git a/x/feegrant/periodic_fee.go b/x/feegrant/periodic_fee.go index c6fbc94b6ea9..d12ef56a8ec5 100644 --- a/x/feegrant/periodic_fee.go +++ b/x/feegrant/periodic_fee.go @@ -3,8 +3,8 @@ package feegrant import ( "time" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) var _ FeeAllowanceI = (*PeriodicAllowance)(nil) diff --git a/x/feegrant/periodic_fee_test.go b/x/feegrant/periodic_fee_test.go index f09640b5f064..34c41d1404be 100644 --- a/x/feegrant/periodic_fee_test.go +++ b/x/feegrant/periodic_fee_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/feegrant" ) func TestPeriodicFeeValidAllow(t *testing.T) { diff --git a/x/feegrant/query.pb.go b/x/feegrant/query.pb.go index 94368d66649b..0329306a5d93 100644 --- a/x/feegrant/query.pb.go +++ b/x/feegrant/query.pb.go @@ -6,7 +6,7 @@ package feegrant import ( context "context" fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" + query "github.com/eligion/cosmos-sdk/types/query" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" diff --git a/x/feegrant/simulation/decoder.go b/x/feegrant/simulation/decoder.go index bc0cc1fed623..ade86deee28e 100644 --- a/x/feegrant/simulation/decoder.go +++ b/x/feegrant/simulation/decoder.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/feegrant" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/x/feegrant/simulation/decoder_test.go b/x/feegrant/simulation/decoder_test.go index 57ed0dfa1a17..c96d303c8010 100644 --- a/x/feegrant/simulation/decoder_test.go +++ b/x/feegrant/simulation/decoder_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/feegrant" - "github.com/cosmos/cosmos-sdk/x/feegrant/simulation" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/x/feegrant/simulation" ) var ( diff --git a/x/feegrant/simulation/genesis.go b/x/feegrant/simulation/genesis.go index d01e42b2b663..28bd8d5bb453 100644 --- a/x/feegrant/simulation/genesis.go +++ b/x/feegrant/simulation/genesis.go @@ -4,10 +4,10 @@ import ( "math/rand" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/feegrant" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/feegrant" ) // genFeeGrants returns a slice of randomly generated allowances. diff --git a/x/feegrant/simulation/genesis_test.go b/x/feegrant/simulation/genesis_test.go index 5cd22fa6716a..39b5403ad7b4 100644 --- a/x/feegrant/simulation/genesis_test.go +++ b/x/feegrant/simulation/genesis_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/feegrant" - "github.com/cosmos/cosmos-sdk/x/feegrant/simulation" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/x/feegrant/simulation" ) func TestRandomizedGenState(t *testing.T) { diff --git a/x/feegrant/simulation/operations.go b/x/feegrant/simulation/operations.go index 58095c138454..43bbd42aef01 100644 --- a/x/feegrant/simulation/operations.go +++ b/x/feegrant/simulation/operations.go @@ -3,14 +3,14 @@ package simulation import ( "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/feegrant" - "github.com/cosmos/cosmos-sdk/x/feegrant/keeper" - "github.com/cosmos/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/x/feegrant/keeper" + "github.com/eligion/cosmos-sdk/x/simulation" ) // Simulation operation weights constants diff --git a/x/feegrant/simulation/operations_test.go b/x/feegrant/simulation/operations_test.go index 4d7671f77287..add1399adaee 100644 --- a/x/feegrant/simulation/operations_test.go +++ b/x/feegrant/simulation/operations_test.go @@ -10,12 +10,12 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/feegrant" - "github.com/cosmos/cosmos-sdk/x/feegrant/simulation" + "github.com/eligion/cosmos-sdk/simapp" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/feegrant" + "github.com/eligion/cosmos-sdk/x/feegrant/simulation" ) type SimTestSuite struct { diff --git a/x/feegrant/spec/01_concepts.md b/x/feegrant/spec/01_concepts.md index e880c5e76ce0..97458b50299e 100644 --- a/x/feegrant/spec/01_concepts.md +++ b/x/feegrant/spec/01_concepts.md @@ -8,11 +8,11 @@ order: 1 `Grant` is stored in the KVStore to record a grant with full context. Every grant will contain `granter`, `grantee` and what kind of `allowance` is granted. `granter` is an account address who is giving permission to `grantee` (the beneficiary account address) to pay for some or all of `grantee`'s transaction fees. `allowance` defines what kind of fee allowance (`BasicAllowance` or `PeriodicAllowance`, see below) is granted to `grantee`. `allowance` accepts an interface which implements `FeeAllowanceI`, encoded as `Any` type. There can be only one existing fee grant allowed for a `grantee` and `granter`, self grants are not allowed. -+++ https://github.com/cosmos/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/feegrant.proto#L75-L81 ++++ https://github.com/eligion/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/feegrant.proto#L75-L81 `FeeAllowanceI` looks like: -+++ https://github.com/cosmos/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/x/feegrant/fees.go#L9-L32 ++++ https://github.com/eligion/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/x/feegrant/fees.go#L9-L32 ## Fee Allowance types @@ -25,7 +25,7 @@ There are two types of fee allowances present at the moment: `BasicAllowance` is permission for `grantee` to use fee from a `granter`'s account. If any of the `spend_limit` or `expiration` reaches its limit, the grant will be removed from the state. -+++ https://github.com/cosmos/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/feegrant.proto#L13-L26 ++++ https://github.com/eligion/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/feegrant.proto#L13-L26 - `spend_limit` is the limit of coins that are allowed to be used from the `granter` account. If it is empty, it assumes there's no spend limit, `grantee` can use any number of available tokens from `granter` account address before the expiration. @@ -37,7 +37,7 @@ There are two types of fee allowances present at the moment: `PeriodicAllowance` is a repeating fee allowance for the mentioned period, we can mention when the grant can expire as well as when a period can reset. We can also define the maximum number of coins that can be used in a mentioned period of time. -+++ https://github.com/cosmos/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/feegrant.proto#L28-L73 ++++ https://github.com/eligion/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/feegrant.proto#L28-L73 - `basic` is the instance of `BasicAllowance` which is optional for periodic fee allowance. If empty, the grant will have no `expiration` and no `spend_limit`. @@ -53,13 +53,13 @@ There are two types of fee allowances present at the moment: `feegrant` module introduces a `FeeAccount` flag for CLI for the sake of executing transactions with fee granter. When this flag is set, `clientCtx` will append the granter account address for transactions generated through CLI. -+++ https://github.com/cosmos/cosmos-sdk/blob/d97e7907f176777ed8a464006d360bb3e1a223e4/client/cmd.go#L224-L235 ++++ https://github.com/eligion/cosmos-sdk/blob/d97e7907f176777ed8a464006d360bb3e1a223e4/client/cmd.go#L224-L235 -+++ https://github.com/cosmos/cosmos-sdk/blob/d97e7907f176777ed8a464006d360bb3e1a223e4/client/tx/tx.go#L120 ++++ https://github.com/eligion/cosmos-sdk/blob/d97e7907f176777ed8a464006d360bb3e1a223e4/client/tx/tx.go#L120 -+++ https://github.com/cosmos/cosmos-sdk/blob/d97e7907f176777ed8a464006d360bb3e1a223e4/x/auth/tx/builder.go#L268-L277 ++++ https://github.com/eligion/cosmos-sdk/blob/d97e7907f176777ed8a464006d360bb3e1a223e4/x/auth/tx/builder.go#L268-L277 -+++ https://github.com/cosmos/cosmos-sdk/blob/d97e7907f176777ed8a464006d360bb3e1a223e4/proto/cosmos/tx/v1beta1/tx.proto#L160-L181 ++++ https://github.com/eligion/cosmos-sdk/blob/d97e7907f176777ed8a464006d360bb3e1a223e4/proto/cosmos/tx/v1beta1/tx.proto#L160-L181 Example cmd: diff --git a/x/feegrant/spec/02_state.md b/x/feegrant/spec/02_state.md index 5b12cd2d0cee..f389211c1bb7 100644 --- a/x/feegrant/spec/02_state.md +++ b/x/feegrant/spec/02_state.md @@ -12,4 +12,4 @@ Fee allowance grants are stored in the state as follows: - Grant: `0x00 | grantee_addr_len (1 byte) | grantee_addr_bytes | granter_addr_len (1 byte) | granter_addr_bytes -> ProtocolBuffer(Grant)` -+++ https://github.com/cosmos/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/x/feegrant/feegrant.pb.go#L221-L229 ++++ https://github.com/eligion/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/x/feegrant/feegrant.pb.go#L221-L229 diff --git a/x/feegrant/spec/03_messages.md b/x/feegrant/spec/03_messages.md index 602dd2b7125a..23b18b2bb5c0 100644 --- a/x/feegrant/spec/03_messages.md +++ b/x/feegrant/spec/03_messages.md @@ -8,10 +8,10 @@ order: 3 A fee allowance grant will be created with the `MsgGrantAllowance` message. -+++ https://github.com/cosmos/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/tx.proto#L22-L33 ++++ https://github.com/eligion/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/tx.proto#L22-L33 ## Msg/RevokeAllowance An allowed grant fee allowance can be removed with the `MsgRevokeAllowance` message. -+++ https://github.com/cosmos/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/tx.proto#L38-L45 ++++ https://github.com/eligion/cosmos-sdk/blob/691032b8be0f7539ec99f8882caecefc51f33d1f/proto/cosmos/feegrant/v1beta1/tx.proto#L38-L45 diff --git a/x/feegrant/spec/README.md b/x/feegrant/spec/README.md index b1bd7febfd61..a932ec0202fd 100644 --- a/x/feegrant/spec/README.md +++ b/x/feegrant/spec/README.md @@ -7,7 +7,7 @@ parent: ## Abstract -This document specifies the feegrant module. For the full ADR, please see [Fee Grant ADR-029](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/docs/architecture/adr-029-fee-grant-module.md). +This document specifies the feegrant module. For the full ADR, please see [Fee Grant ADR-029](https://github.com/eligion/cosmos-sdk/blob/v0.40.0/docs/architecture/adr-029-fee-grant-module.md). This module allows accounts to grant fee allowances and to use fees from their accounts. Grantees can execute any transaction without the need to maintain sufficient fees. diff --git a/x/feegrant/tx.pb.go b/x/feegrant/tx.pb.go index 2a40a7ad49b4..c97a77440006 100644 --- a/x/feegrant/tx.pb.go +++ b/x/feegrant/tx.pb.go @@ -6,7 +6,7 @@ package feegrant import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/x/genutil/client/cli/collect.go b/x/genutil/client/cli/collect.go index 2a727ca8fba0..77cd00ea485d 100644 --- a/x/genutil/client/cli/collect.go +++ b/x/genutil/client/cli/collect.go @@ -8,11 +8,11 @@ import ( "github.com/spf13/cobra" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/x/genutil" - "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/x/genutil" + "github.com/eligion/cosmos-sdk/x/genutil/types" ) const flagGenTxDir = "gentx-dir" diff --git a/x/genutil/client/cli/gentx.go b/x/genutil/client/cli/gentx.go index be347b745b05..e6c17f20dd43 100644 --- a/x/genutil/client/cli/gentx.go +++ b/x/genutil/client/cli/gentx.go @@ -15,18 +15,18 @@ import ( tmos "github.com/tendermint/tendermint/libs/os" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/server" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/version" - authclient "github.com/cosmos/cosmos-sdk/x/auth/client" - "github.com/cosmos/cosmos-sdk/x/genutil" - "github.com/cosmos/cosmos-sdk/x/genutil/types" - "github.com/cosmos/cosmos-sdk/x/staking/client/cli" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/server" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/version" + authclient "github.com/eligion/cosmos-sdk/x/auth/client" + "github.com/eligion/cosmos-sdk/x/genutil" + "github.com/eligion/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/x/staking/client/cli" ) // GenTxCmd builds the application's gentx command. @@ -138,13 +138,13 @@ $ %s gentx my-key-name 1000000stake --home=/path/to/home/dir --keyring-backend=o // and `create-validator` commands: // - `gentx` expects amount as an arg, // - `create-validator` expects amount as a required flag. - // ref: https://github.com/cosmos/cosmos-sdk/issues/8251 + // ref: https://github.com/eligion/cosmos-sdk/issues/8251 // Since gentx doesn't set the amount flag (which `create-validator` // reads from), we copy the amount arg into the valCfg directly. // // Ideally, the `create-validator` command should take a validator // config file instead of so many flags. - // ref: https://github.com/cosmos/cosmos-sdk/issues/8177 + // ref: https://github.com/eligion/cosmos-sdk/issues/8177 createValCfg.Amount = amount // create a 'create-validator' message diff --git a/x/genutil/client/cli/init.go b/x/genutil/client/cli/init.go index 5d26085aa79e..8b20ff63d628 100644 --- a/x/genutil/client/cli/init.go +++ b/x/genutil/client/cli/init.go @@ -16,13 +16,13 @@ import ( tmrand "github.com/tendermint/tendermint/libs/rand" "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/input" - "github.com/cosmos/cosmos-sdk/server" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/genutil" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/input" + "github.com/eligion/cosmos-sdk/server" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/genutil" ) const ( diff --git a/x/genutil/client/cli/init_test.go b/x/genutil/client/cli/init_test.go index c35368b296b3..8106a86b6567 100644 --- a/x/genutil/client/cli/init_test.go +++ b/x/genutil/client/cli/init_test.go @@ -15,18 +15,18 @@ import ( "github.com/tendermint/tendermint/libs/cli" "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/server/mock" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/genutil" - genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - genutiltest "github.com/cosmos/cosmos-sdk/x/genutil/client/testutil" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/server/mock" + "github.com/eligion/cosmos-sdk/testutil" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/genutil" + genutilcli "github.com/eligion/cosmos-sdk/x/genutil/client/cli" + genutiltest "github.com/eligion/cosmos-sdk/x/genutil/client/testutil" ) var testMbm = module.NewBasicManager(genutil.AppModuleBasic{}) diff --git a/x/genutil/client/cli/migrate.go b/x/genutil/client/cli/migrate.go index 37e42ac4f704..8d608c453880 100644 --- a/x/genutil/client/cli/migrate.go +++ b/x/genutil/client/cli/migrate.go @@ -10,20 +10,20 @@ import ( "github.com/spf13/cobra" tmjson "github.com/tendermint/tendermint/libs/json" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - v040 "github.com/cosmos/cosmos-sdk/x/genutil/legacy/v040" - v043 "github.com/cosmos/cosmos-sdk/x/genutil/legacy/v043" - "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + v040 "github.com/eligion/cosmos-sdk/x/genutil/legacy/v040" + v043 "github.com/eligion/cosmos-sdk/x/genutil/legacy/v043" + "github.com/eligion/cosmos-sdk/x/genutil/types" ) const flagGenesisTime = "genesis-time" // Allow applications to extend and modify the migration process. // -// Ref: https://github.com/cosmos/cosmos-sdk/issues/5041 +// Ref: https://github.com/eligion/cosmos-sdk/issues/5041 var migrationMap = types.MigrationMap{ "v0.42": v040.Migrate, // NOTE: v0.40, v0.41 and v0.42 are genesis compatible. "v0.43": v043.Migrate, diff --git a/x/genutil/client/cli/validate_genesis.go b/x/genutil/client/cli/validate_genesis.go index 6c8e27dda8e0..23dffd2d5c27 100644 --- a/x/genutil/client/cli/validate_genesis.go +++ b/x/genutil/client/cli/validate_genesis.go @@ -7,9 +7,9 @@ import ( "github.com/spf13/cobra" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/types/module" ) const chainUpgradeGuide = "https://docs.cosmos.network/master/migrations/chain-upgrade-guide-040.html" diff --git a/x/genutil/client/rest/query.go b/x/genutil/client/rest/query.go index 5d3812ca31aa..34f7b956605d 100644 --- a/x/genutil/client/rest/query.go +++ b/x/genutil/client/rest/query.go @@ -5,10 +5,10 @@ import ( "fmt" "net/http" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/genutil/types" ) // QueryGenesisTxs writes the genesis transactions to the response if no error diff --git a/x/genutil/client/testutil/cli_test.go b/x/genutil/client/testutil/cli_test.go index dd36a6af2d3e..e6b57e58c2c2 100644 --- a/x/genutil/client/testutil/cli_test.go +++ b/x/genutil/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/genutil/client/testutil/helpers.go b/x/genutil/client/testutil/helpers.go index 1d71ba11411f..f50c7ba2f0a9 100644 --- a/x/genutil/client/testutil/helpers.go +++ b/x/genutil/client/testutil/helpers.go @@ -9,12 +9,12 @@ import ( "github.com/tendermint/tendermint/libs/cli" "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/types/module" - genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/types/module" + genutilcli "github.com/eligion/cosmos-sdk/x/genutil/client/cli" ) func ExecInitCmd(testMbm module.BasicManager, home string, cdc codec.Codec) error { diff --git a/x/genutil/client/testutil/migrate.go b/x/genutil/client/testutil/migrate.go index e5dd0f2d13bc..bc7539c9cabc 100644 --- a/x/genutil/client/testutil/migrate.go +++ b/x/genutil/client/testutil/migrate.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/x/genutil/client/cli" ) func TestGetMigrationCallback(t *testing.T) { diff --git a/x/genutil/client/testutil/suite.go b/x/genutil/client/testutil/suite.go index 084a5f530f8d..839089e047af 100644 --- a/x/genutil/client/testutil/suite.go +++ b/x/genutil/client/testutil/suite.go @@ -9,16 +9,16 @@ import ( "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - stakingcli "github.com/cosmos/cosmos-sdk/x/staking/client/cli" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/genutil/client/cli" + stakingcli "github.com/eligion/cosmos-sdk/x/staking/client/cli" + "github.com/eligion/cosmos-sdk/x/staking/types" ) type IntegrationTestSuite struct { diff --git a/x/genutil/client/testutil/validate_genesis.go b/x/genutil/client/testutil/validate_genesis.go index fe34e04bbc8a..58a0dbda542f 100644 --- a/x/genutil/client/testutil/validate_genesis.go +++ b/x/genutil/client/testutil/validate_genesis.go @@ -1,9 +1,9 @@ package testutil import ( - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/x/genutil/client/cli" ) // An example exported genesis file from a 0.37 chain. Note that evidence diff --git a/x/genutil/collect.go b/x/genutil/collect.go index b93942e0ba00..9f30109b1c77 100644 --- a/x/genutil/collect.go +++ b/x/genutil/collect.go @@ -16,12 +16,12 @@ import ( cfg "github.com/tendermint/tendermint/config" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - bankexported "github.com/cosmos/cosmos-sdk/x/bank/exported" - "github.com/cosmos/cosmos-sdk/x/genutil/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + bankexported "github.com/eligion/cosmos-sdk/x/bank/exported" + "github.com/eligion/cosmos-sdk/x/genutil/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // GenAppStateFromConfig gets the genesis app state from the config diff --git a/x/genutil/collect_test.go b/x/genutil/collect_test.go index 46e20f88f1b3..471f374c507d 100644 --- a/x/genutil/collect_test.go +++ b/x/genutil/collect_test.go @@ -11,13 +11,13 @@ import ( tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/server" - "github.com/cosmos/cosmos-sdk/types" - bankexported "github.com/cosmos/cosmos-sdk/x/bank/exported" - "github.com/cosmos/cosmos-sdk/x/genutil" - gtypes "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/server" + "github.com/eligion/cosmos-sdk/types" + bankexported "github.com/eligion/cosmos-sdk/x/bank/exported" + "github.com/eligion/cosmos-sdk/x/genutil" + gtypes "github.com/eligion/cosmos-sdk/x/genutil/types" ) type doNothingUnmarshalJSON struct { @@ -36,7 +36,7 @@ func (dni *doNothingIterator) IterateGenesisBalances(_ codec.JSONCodec, _ map[st } // Ensures that CollectTx correctly traverses directories and won't error out on encountering -// a directory during traversal of the first level. See issue https://github.com/cosmos/cosmos-sdk/issues/6788. +// a directory during traversal of the first level. See issue https://github.com/eligion/cosmos-sdk/issues/6788. func TestCollectTxsHandlesDirectories(t *testing.T) { testDir, err := ioutil.TempDir(os.TempDir(), "testCollectTxs") if err != nil { diff --git a/x/genutil/genesis.go b/x/genutil/genesis.go index c6d17edb8da9..cb6b6aec7604 100644 --- a/x/genutil/genesis.go +++ b/x/genutil/genesis.go @@ -3,9 +3,9 @@ package genutil import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/genutil/types" ) // InitGenesis - initialize accounts and deliver genesis transactions diff --git a/x/genutil/gentx.go b/x/genutil/gentx.go index 61b237151f2d..7122a33a4295 100644 --- a/x/genutil/gentx.go +++ b/x/genutil/gentx.go @@ -6,12 +6,12 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - bankexported "github.com/cosmos/cosmos-sdk/x/bank/exported" - "github.com/cosmos/cosmos-sdk/x/genutil/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + bankexported "github.com/eligion/cosmos-sdk/x/bank/exported" + "github.com/eligion/cosmos-sdk/x/genutil/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // SetGenTxsInAppGenesisState - sets the genesis transactions in the app genesis state diff --git a/x/genutil/gentx_test.go b/x/genutil/gentx_test.go index 8de5bc4afe41..03935674d5c9 100644 --- a/x/genutil/gentx_test.go +++ b/x/genutil/gentx_test.go @@ -8,16 +8,16 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil" - "github.com/cosmos/cosmos-sdk/x/genutil/types" - "github.com/cosmos/cosmos-sdk/x/staking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/simapp/helpers" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/genutil" + "github.com/eligion/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/x/staking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/genutil/legacy/v040/migrate.go b/x/genutil/legacy/v040/migrate.go index a022d9fcf985..7a813464d322 100644 --- a/x/genutil/legacy/v040/migrate.go +++ b/x/genutil/legacy/v040/migrate.go @@ -1,32 +1,32 @@ package v040 import ( - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - v039auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v039" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" - v036supply "github.com/cosmos/cosmos-sdk/x/bank/legacy/v036" - v038bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v038" - v040bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v040" - v039crisis "github.com/cosmos/cosmos-sdk/x/crisis/legacy/v039" - v040crisis "github.com/cosmos/cosmos-sdk/x/crisis/legacy/v040" - v036distr "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v036" - v038distr "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v038" - v040distr "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v040" - v038evidence "github.com/cosmos/cosmos-sdk/x/evidence/legacy/v038" - v040evidence "github.com/cosmos/cosmos-sdk/x/evidence/legacy/v040" - v039genutil "github.com/cosmos/cosmos-sdk/x/genutil/legacy/v039" - "github.com/cosmos/cosmos-sdk/x/genutil/types" - v036gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v036" - v040gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v040" - v039mint "github.com/cosmos/cosmos-sdk/x/mint/legacy/v039" - v040mint "github.com/cosmos/cosmos-sdk/x/mint/legacy/v040" - v036params "github.com/cosmos/cosmos-sdk/x/params/legacy/v036" - v039slashing "github.com/cosmos/cosmos-sdk/x/slashing/legacy/v039" - v040slashing "github.com/cosmos/cosmos-sdk/x/slashing/legacy/v040" - v038staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v038" - v040staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v040" - v038upgrade "github.com/cosmos/cosmos-sdk/x/upgrade/legacy/v038" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + v039auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v039" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" + v036supply "github.com/eligion/cosmos-sdk/x/bank/legacy/v036" + v038bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v038" + v040bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v040" + v039crisis "github.com/eligion/cosmos-sdk/x/crisis/legacy/v039" + v040crisis "github.com/eligion/cosmos-sdk/x/crisis/legacy/v040" + v036distr "github.com/eligion/cosmos-sdk/x/distribution/legacy/v036" + v038distr "github.com/eligion/cosmos-sdk/x/distribution/legacy/v038" + v040distr "github.com/eligion/cosmos-sdk/x/distribution/legacy/v040" + v038evidence "github.com/eligion/cosmos-sdk/x/evidence/legacy/v038" + v040evidence "github.com/eligion/cosmos-sdk/x/evidence/legacy/v040" + v039genutil "github.com/eligion/cosmos-sdk/x/genutil/legacy/v039" + "github.com/eligion/cosmos-sdk/x/genutil/types" + v036gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v036" + v040gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v040" + v039mint "github.com/eligion/cosmos-sdk/x/mint/legacy/v039" + v040mint "github.com/eligion/cosmos-sdk/x/mint/legacy/v040" + v036params "github.com/eligion/cosmos-sdk/x/params/legacy/v036" + v039slashing "github.com/eligion/cosmos-sdk/x/slashing/legacy/v039" + v040slashing "github.com/eligion/cosmos-sdk/x/slashing/legacy/v040" + v038staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v038" + v040staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v040" + v038upgrade "github.com/eligion/cosmos-sdk/x/upgrade/legacy/v038" ) func migrateGenutil(oldGenState v039genutil.GenesisState) *types.GenesisState { diff --git a/x/genutil/legacy/v043/migrate.go b/x/genutil/legacy/v043/migrate.go index 3314c987e410..9bc050b161df 100644 --- a/x/genutil/legacy/v043/migrate.go +++ b/x/genutil/legacy/v043/migrate.go @@ -1,14 +1,14 @@ package v043 import ( - "github.com/cosmos/cosmos-sdk/client" - v040bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v040" - v043bank "github.com/cosmos/cosmos-sdk/x/bank/legacy/v043" - bank "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil/types" - v040gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v040" - v043gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v043" - gov "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + v040bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v040" + v043bank "github.com/eligion/cosmos-sdk/x/bank/legacy/v043" + bank "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/genutil/types" + v040gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v040" + v043gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v043" + gov "github.com/eligion/cosmos-sdk/x/gov/types" ) // Migrate migrates exported state from v0.40 to a v0.43 genesis state. diff --git a/x/genutil/module.go b/x/genutil/module.go index 4b8bcc72e77d..176f61b51bb3 100644 --- a/x/genutil/module.go +++ b/x/genutil/module.go @@ -10,12 +10,12 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/genutil/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/genutil/types" ) var ( diff --git a/x/genutil/types/expected_keepers.go b/x/genutil/types/expected_keepers.go index 854422a3c990..7202b6e54437 100644 --- a/x/genutil/types/expected_keepers.go +++ b/x/genutil/types/expected_keepers.go @@ -5,10 +5,10 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - auth "github.com/cosmos/cosmos-sdk/x/auth/types" - bankexported "github.com/cosmos/cosmos-sdk/x/bank/exported" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + auth "github.com/eligion/cosmos-sdk/x/auth/types" + bankexported "github.com/eligion/cosmos-sdk/x/bank/exported" ) // StakingKeeper defines the expected staking keeper (noalias) diff --git a/x/genutil/types/genesis_state.go b/x/genutil/types/genesis_state.go index a7c4cdd8c6c4..6200e958a39a 100644 --- a/x/genutil/types/genesis_state.go +++ b/x/genutil/types/genesis_state.go @@ -8,14 +8,14 @@ import ( tmos "github.com/tendermint/tendermint/libs/os" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // NewGenesisState creates a new GenesisState object func NewGenesisState(genTxs []json.RawMessage) *GenesisState { - // Ensure genTxs is never nil, https://github.com/cosmos/cosmos-sdk/issues/5086 + // Ensure genTxs is never nil, https://github.com/eligion/cosmos-sdk/issues/5086 if len(genTxs) == 0 { genTxs = make([]json.RawMessage, 0) } diff --git a/x/genutil/types/genesis_state_test.go b/x/genutil/types/genesis_state_test.go index 01e1db9fd330..b4104718f4f7 100644 --- a/x/genutil/types/genesis_state_test.go +++ b/x/genutil/types/genesis_state_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/genutil/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/genutil/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( @@ -23,7 +23,7 @@ var ( func TestNetGenesisState(t *testing.T) { gen := types.NewGenesisState(nil) - assert.NotNil(t, gen.GenTxs) // https://github.com/cosmos/cosmos-sdk/issues/5086 + assert.NotNil(t, gen.GenTxs) // https://github.com/eligion/cosmos-sdk/issues/5086 gen = types.NewGenesisState( []json.RawMessage{ diff --git a/x/genutil/types/types.go b/x/genutil/types/types.go index 694eebdbe3bb..a5f75470d030 100644 --- a/x/genutil/types/types.go +++ b/x/genutil/types/types.go @@ -3,8 +3,8 @@ package types import ( "encoding/json" - "github.com/cosmos/cosmos-sdk/client" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/client" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // DONTCOVER diff --git a/x/genutil/utils.go b/x/genutil/utils.go index 4c46bdb6f121..595d25bc000d 100644 --- a/x/genutil/utils.go +++ b/x/genutil/utils.go @@ -14,8 +14,8 @@ import ( "github.com/tendermint/tendermint/privval" tmtypes "github.com/tendermint/tendermint/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" ) // ExportGenesisFile creates and writes the genesis configuration to disk. An diff --git a/x/gov/abci.go b/x/gov/abci.go index 04d6cedf5ac9..6ee700c33de2 100644 --- a/x/gov/abci.go +++ b/x/gov/abci.go @@ -4,10 +4,10 @@ import ( "fmt" "time" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/keeper" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/keeper" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // EndBlocker called every block, process inflation, update validator set. diff --git a/x/gov/abci_test.go b/x/gov/abci_test.go index 7681bae95cf6..752601b43359 100644 --- a/x/gov/abci_test.go +++ b/x/gov/abci_test.go @@ -9,11 +9,11 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov" - "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov" + "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/staking" ) func TestTickExpiredDepositPeriod(t *testing.T) { diff --git a/x/gov/client/cli/parse.go b/x/gov/client/cli/parse.go index 90066b645abe..7b6f45f1ab89 100644 --- a/x/gov/client/cli/parse.go +++ b/x/gov/client/cli/parse.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/pflag" - govutils "github.com/cosmos/cosmos-sdk/x/gov/client/utils" + govutils "github.com/eligion/cosmos-sdk/x/gov/client/utils" ) func parseSubmitProposalFlags(fs *pflag.FlagSet) (*proposal, error) { diff --git a/x/gov/client/cli/parse_test.go b/x/gov/client/cli/parse_test.go index da6aeea71949..3e7db1884183 100644 --- a/x/gov/client/cli/parse_test.go +++ b/x/gov/client/cli/parse_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil" ) func TestParseSubmitProposalFlags(t *testing.T) { diff --git a/x/gov/client/cli/query.go b/x/gov/client/cli/query.go index 4fa3a9bbf07f..a78fbef6dcda 100644 --- a/x/gov/client/cli/query.go +++ b/x/gov/client/cli/query.go @@ -7,12 +7,12 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - gcutils "github.com/cosmos/cosmos-sdk/x/gov/client/utils" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + gcutils "github.com/eligion/cosmos-sdk/x/gov/client/utils" + "github.com/eligion/cosmos-sdk/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 7e19b4838891..c617b9068e9b 100644 --- a/x/gov/client/cli/tx.go +++ b/x/gov/client/cli/tx.go @@ -7,13 +7,13 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - govutils "github.com/cosmos/cosmos-sdk/x/gov/client/utils" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + govutils "github.com/eligion/cosmos-sdk/x/gov/client/utils" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // Proposal flags diff --git a/x/gov/client/proposal_handler.go b/x/gov/client/proposal_handler.go index 61ee3d8c3be5..5fbeeaac4c8e 100644 --- a/x/gov/client/proposal_handler.go +++ b/x/gov/client/proposal_handler.go @@ -3,8 +3,8 @@ package client import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/x/gov/client/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/x/gov/client/rest" ) // function to create the rest handler diff --git a/x/gov/client/rest/grpc_query_test.go b/x/gov/client/rest/grpc_query_test.go index 12247aeb9a91..612bec823aac 100644 --- a/x/gov/client/rest/grpc_query_test.go +++ b/x/gov/client/rest/grpc_query_test.go @@ -9,14 +9,14 @@ import ( "github.com/golang/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/gov/client/cli" - govtestutil "github.com/cosmos/cosmos-sdk/x/gov/client/testutil" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/gov/client/cli" + govtestutil "github.com/eligion/cosmos-sdk/x/gov/client/testutil" + "github.com/eligion/cosmos-sdk/x/gov/types" ) type IntegrationTestSuite struct { diff --git a/x/gov/client/rest/query.go b/x/gov/client/rest/query.go index ffdbd8bc0290..58712c5bf71b 100644 --- a/x/gov/client/rest/query.go +++ b/x/gov/client/rest/query.go @@ -7,11 +7,11 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - gcutils "github.com/cosmos/cosmos-sdk/x/gov/client/utils" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + gcutils "github.com/eligion/cosmos-sdk/x/gov/client/utils" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func registerQueryRoutes(clientCtx client.Context, r *mux.Router) { diff --git a/x/gov/client/rest/rest.go b/x/gov/client/rest/rest.go index 46d66c240bc2..fc060400a66d 100644 --- a/x/gov/client/rest/rest.go +++ b/x/gov/client/rest/rest.go @@ -5,10 +5,10 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - clientrest "github.com/cosmos/cosmos-sdk/client/rest" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/client" + clientrest "github.com/eligion/cosmos-sdk/client/rest" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" ) // REST Variable names diff --git a/x/gov/client/rest/rest_test.go b/x/gov/client/rest/rest_test.go index 9049bd264017..4640a1bb1eea 100644 --- a/x/gov/client/rest/rest_test.go +++ b/x/gov/client/rest/rest_test.go @@ -5,9 +5,9 @@ package rest_test import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func (s *IntegrationTestSuite) TestLegacyGetAllProposals() { diff --git a/x/gov/client/rest/tx.go b/x/gov/client/rest/tx.go index 284c67148170..ec2a9b8cb6c2 100644 --- a/x/gov/client/rest/tx.go +++ b/x/gov/client/rest/tx.go @@ -6,11 +6,11 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/types/rest" - gcutils "github.com/cosmos/cosmos-sdk/x/gov/client/utils" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/types/rest" + gcutils "github.com/eligion/cosmos-sdk/x/gov/client/utils" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func registerTxHandlers(clientCtx client.Context, r *mux.Router, phs []ProposalRESTHandler) { diff --git a/x/gov/client/testutil/cli_test.go b/x/gov/client/testutil/cli_test.go index 713c33f12182..e53f1dff34d6 100644 --- a/x/gov/client/testutil/cli_test.go +++ b/x/gov/client/testutil/cli_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" diff --git a/x/gov/client/testutil/deposits.go b/x/gov/client/testutil/deposits.go index 57c3c9363330..9f526f5a387e 100644 --- a/x/gov/client/testutil/deposits.go +++ b/x/gov/client/testutil/deposits.go @@ -4,11 +4,11 @@ import ( "fmt" "time" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/client/cli" - "github.com/cosmos/cosmos-sdk/x/gov/types" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/client/cli" + "github.com/eligion/cosmos-sdk/x/gov/types" "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" ) diff --git a/x/gov/client/testutil/helpers.go b/x/gov/client/testutil/helpers.go index e16ac0e98e83..2fb885d25706 100644 --- a/x/gov/client/testutil/helpers.go +++ b/x/gov/client/testutil/helpers.go @@ -3,12 +3,12 @@ package testutil import ( "fmt" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - sdk "github.com/cosmos/cosmos-sdk/types" - govcli "github.com/cosmos/cosmos-sdk/x/gov/client/cli" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + sdk "github.com/eligion/cosmos-sdk/types" + govcli "github.com/eligion/cosmos-sdk/x/gov/client/cli" ) var commonArgs = []string{ diff --git a/x/gov/client/testutil/suite.go b/x/gov/client/testutil/suite.go index ee2634e3d188..5922243c6c9d 100644 --- a/x/gov/client/testutil/suite.go +++ b/x/gov/client/testutil/suite.go @@ -4,19 +4,19 @@ import ( "fmt" "strings" - "github.com/cosmos/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil" "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/client/cli" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client/flags" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/client/cli" + "github.com/eligion/cosmos-sdk/x/gov/types" ) type IntegrationTestSuite struct { diff --git a/x/gov/client/utils/query.go b/x/gov/client/utils/query.go index f4799a89d3a2..38aa83f9b1d5 100644 --- a/x/gov/client/utils/query.go +++ b/x/gov/client/utils/query.go @@ -3,11 +3,11 @@ package utils import ( "fmt" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + authtx "github.com/eligion/cosmos-sdk/x/auth/tx" + "github.com/eligion/cosmos-sdk/x/gov/types" ) const ( diff --git a/x/gov/client/utils/query_test.go b/x/gov/client/utils/query_test.go index 30822c0d671c..87dad8d5e48a 100644 --- a/x/gov/client/utils/query_test.go +++ b/x/gov/client/utils/query_test.go @@ -10,12 +10,12 @@ import ( ctypes "github.com/tendermint/tendermint/rpc/core/types" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/legacy/legacytx" - "github.com/cosmos/cosmos-sdk/x/gov/client/utils" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/legacy/legacytx" + "github.com/eligion/cosmos-sdk/x/gov/client/utils" + "github.com/eligion/cosmos-sdk/x/gov/types" ) type TxSearchMock struct { diff --git a/x/gov/client/utils/utils.go b/x/gov/client/utils/utils.go index f0bf6ead263a..512bcc1ea296 100644 --- a/x/gov/client/utils/utils.go +++ b/x/gov/client/utils/utils.go @@ -3,7 +3,7 @@ package utils import ( "strings" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // NormalizeVoteOption - normalize user specified vote option diff --git a/x/gov/client/utils/utils_test.go b/x/gov/client/utils/utils_test.go index bc3c43ca81d6..59b4f4b9789a 100644 --- a/x/gov/client/utils/utils_test.go +++ b/x/gov/client/utils/utils_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/gov/client/utils" + "github.com/eligion/cosmos-sdk/x/gov/client/utils" ) func TestNormalizeWeightedVoteOptions(t *testing.T) { diff --git a/x/gov/common_test.go b/x/gov/common_test.go index 3ff367e15972..b077215e53dd 100644 --- a/x/gov/common_test.go +++ b/x/gov/common_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/gov/genesis.go b/x/gov/genesis.go index 62a194d9c0a9..d942a15b8201 100644 --- a/x/gov/genesis.go +++ b/x/gov/genesis.go @@ -3,9 +3,9 @@ package gov import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/keeper" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/keeper" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // InitGenesis - store genesis parameters diff --git a/x/gov/genesis_test.go b/x/gov/genesis_test.go index 30890937ef53..488b16934c5c 100644 --- a/x/gov/genesis_test.go +++ b/x/gov/genesis_test.go @@ -10,13 +10,13 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/gov" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/gov" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func TestImportExportQueues(t *testing.T) { diff --git a/x/gov/handler.go b/x/gov/handler.go index 6af451d3dd31..68e9573b5911 100644 --- a/x/gov/handler.go +++ b/x/gov/handler.go @@ -1,10 +1,10 @@ package gov import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/gov/keeper" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/gov/keeper" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // NewHandler creates an sdk.Handler for all the gov type messages diff --git a/x/gov/handler_test.go b/x/gov/handler_test.go index a62134e4259e..0e28602d6903 100644 --- a/x/gov/handler_test.go +++ b/x/gov/handler_test.go @@ -6,13 +6,13 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/testutil/testdata" + "github.com/eligion/cosmos-sdk/testutil/testdata" "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov" - "github.com/cosmos/cosmos-sdk/x/gov/keeper" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov" + "github.com/eligion/cosmos-sdk/x/gov/keeper" ) func TestInvalidMsg(t *testing.T) { diff --git a/x/gov/keeper/common_test.go b/x/gov/keeper/common_test.go index e39ca9c70380..5000f672d8db 100644 --- a/x/gov/keeper/common_test.go +++ b/x/gov/keeper/common_test.go @@ -5,12 +5,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/staking" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/staking" + stakingkeeper "github.com/eligion/cosmos-sdk/x/staking/keeper" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/gov/keeper/deposit.go b/x/gov/keeper/deposit.go index 9275fbff40dc..a6d3af0f1db0 100644 --- a/x/gov/keeper/deposit.go +++ b/x/gov/keeper/deposit.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // GetDeposit gets the deposit of a specific depositor on a specific proposal diff --git a/x/gov/keeper/deposit_test.go b/x/gov/keeper/deposit_test.go index 0c8e370681aa..4906955c8758 100644 --- a/x/gov/keeper/deposit_test.go +++ b/x/gov/keeper/deposit_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestDeposits(t *testing.T) { diff --git a/x/gov/keeper/grpc_query.go b/x/gov/keeper/grpc_query.go index 5caf220f77bc..d9b904ef3850 100644 --- a/x/gov/keeper/grpc_query.go +++ b/x/gov/keeper/grpc_query.go @@ -6,10 +6,10 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/gov/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/gov/keeper/grpc_query_test.go b/x/gov/keeper/grpc_query_test.go index 0e7d6f251091..1971aba2b579 100644 --- a/x/gov/keeper/grpc_query_test.go +++ b/x/gov/keeper/grpc_query_test.go @@ -5,10 +5,10 @@ import ( "fmt" "strconv" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func (suite *KeeperTestSuite) TestGRPCQueryProposal() { diff --git a/x/gov/keeper/hooks.go b/x/gov/keeper/hooks.go index a63efdcc74f4..b22b5b2a313e 100644 --- a/x/gov/keeper/hooks.go +++ b/x/gov/keeper/hooks.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // Implements GovHooks interface diff --git a/x/gov/keeper/hooks_test.go b/x/gov/keeper/hooks_test.go index 536fc198304d..d168a4774584 100644 --- a/x/gov/keeper/hooks_test.go +++ b/x/gov/keeper/hooks_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov" - "github.com/cosmos/cosmos-sdk/x/gov/keeper" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov" + "github.com/eligion/cosmos-sdk/x/gov/keeper" + "github.com/eligion/cosmos-sdk/x/gov/types" ) var _ types.GovHooks = &MockGovHooksReceiver{} diff --git a/x/gov/keeper/internal_test.go b/x/gov/keeper/internal_test.go index fe01d08e46ea..30f107b31d46 100644 --- a/x/gov/keeper/internal_test.go +++ b/x/gov/keeper/internal_test.go @@ -1,6 +1,6 @@ package keeper -import "github.com/cosmos/cosmos-sdk/x/gov/types" +import "github.com/eligion/cosmos-sdk/x/gov/types" // UnsafeSetHooks updates the gov keeper's hooks, overriding any potential // pre-existing hooks. diff --git a/x/gov/keeper/invariants.go b/x/gov/keeper/invariants.go index d0ec4dbfacc8..e2bf1f9768e8 100644 --- a/x/gov/keeper/invariants.go +++ b/x/gov/keeper/invariants.go @@ -5,8 +5,8 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // RegisterInvariants registers all governance invariants diff --git a/x/gov/keeper/keeper.go b/x/gov/keeper/keeper.go index 9e639fe5d0fc..88869dba50a3 100644 --- a/x/gov/keeper/keeper.go +++ b/x/gov/keeper/keeper.go @@ -6,10 +6,10 @@ import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // Keeper defines the governance module Keeper diff --git a/x/gov/keeper/keeper_test.go b/x/gov/keeper/keeper_test.go index 105a9d002848..1fa44143f13f 100644 --- a/x/gov/keeper/keeper_test.go +++ b/x/gov/keeper/keeper_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) type KeeperTestSuite struct { diff --git a/x/gov/keeper/migrations.go b/x/gov/keeper/migrations.go index cad01432bb7d..1c014918c7fc 100644 --- a/x/gov/keeper/migrations.go +++ b/x/gov/keeper/migrations.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v043 "github.com/cosmos/cosmos-sdk/x/gov/legacy/v043" + sdk "github.com/eligion/cosmos-sdk/types" + v043 "github.com/eligion/cosmos-sdk/x/gov/legacy/v043" ) // Migrator is a struct for handling in-place store migrations. diff --git a/x/gov/keeper/msg_server.go b/x/gov/keeper/msg_server.go index 86e6e9326704..187a5195f478 100644 --- a/x/gov/keeper/msg_server.go +++ b/x/gov/keeper/msg_server.go @@ -7,9 +7,9 @@ import ( "github.com/armon/go-metrics" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) type msgServer struct { diff --git a/x/gov/keeper/params.go b/x/gov/keeper/params.go index 0c6fc4338b9f..8b69e014bea9 100644 --- a/x/gov/keeper/params.go +++ b/x/gov/keeper/params.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // GetDepositParams returns the current DepositParams from the global param store diff --git a/x/gov/keeper/proposal.go b/x/gov/keeper/proposal.go index 216596932fad..accbafe885dc 100644 --- a/x/gov/keeper/proposal.go +++ b/x/gov/keeper/proposal.go @@ -3,10 +3,10 @@ package keeper import ( "fmt" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // SubmitProposal create new proposal given a content diff --git a/x/gov/keeper/proposal_test.go b/x/gov/keeper/proposal_test.go index a40303fceb31..ee49da28cdd0 100644 --- a/x/gov/keeper/proposal_test.go +++ b/x/gov/keeper/proposal_test.go @@ -6,8 +6,8 @@ import ( "strings" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func (suite *KeeperTestSuite) TestGetSetProposal() { diff --git a/x/gov/keeper/querier.go b/x/gov/keeper/querier.go index 6eb343d070a7..87646a628742 100644 --- a/x/gov/keeper/querier.go +++ b/x/gov/keeper/querier.go @@ -3,11 +3,11 @@ package keeper import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // NewQuerier creates a new gov Querier instance diff --git a/x/gov/keeper/querier_test.go b/x/gov/keeper/querier_test.go index b3cf4dfd923f..1d58fd2ce1a1 100644 --- a/x/gov/keeper/querier_test.go +++ b/x/gov/keeper/querier_test.go @@ -10,11 +10,11 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/keeper" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/keeper" + "github.com/eligion/cosmos-sdk/x/gov/types" ) const custom = "custom" diff --git a/x/gov/keeper/tally.go b/x/gov/keeper/tally.go index f1f1f325455c..b844c0a958ee 100644 --- a/x/gov/keeper/tally.go +++ b/x/gov/keeper/tally.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // TODO: Break into several smaller functions for clarity diff --git a/x/gov/keeper/tally_test.go b/x/gov/keeper/tally_test.go index 7347cfbe670b..223f497c5a3f 100644 --- a/x/gov/keeper/tally_test.go +++ b/x/gov/keeper/tally_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/staking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/staking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestTallyNoOneVotes(t *testing.T) { diff --git a/x/gov/keeper/vote.go b/x/gov/keeper/vote.go index cb58c95da5ed..cca405efc5b5 100644 --- a/x/gov/keeper/vote.go +++ b/x/gov/keeper/vote.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // AddVote adds a vote on a specific proposal diff --git a/x/gov/keeper/vote_test.go b/x/gov/keeper/vote_test.go index 80df4671666b..decdd516fe05 100644 --- a/x/gov/keeper/vote_test.go +++ b/x/gov/keeper/vote_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func TestVotes(t *testing.T) { diff --git a/x/gov/legacy/v034/types.go b/x/gov/legacy/v034/types.go index 83955badd7e8..5fc9d7e4d73f 100644 --- a/x/gov/legacy/v034/types.go +++ b/x/gov/legacy/v034/types.go @@ -9,8 +9,8 @@ import ( "fmt" "time" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" ) var ( diff --git a/x/gov/legacy/v036/types.go b/x/gov/legacy/v036/types.go index 28b42657a0a5..1859b6f9ffd5 100644 --- a/x/gov/legacy/v036/types.go +++ b/x/gov/legacy/v036/types.go @@ -9,9 +9,9 @@ import ( "strings" "time" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - v034gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v034" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + v034gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v034" ) const ( diff --git a/x/gov/legacy/v040/keys.go b/x/gov/legacy/v040/keys.go index b1559875bb1f..bef8c8e8072f 100644 --- a/x/gov/legacy/v040/keys.go +++ b/x/gov/legacy/v040/keys.go @@ -1,5 +1,5 @@ // Package v040 is copy-pasted from: -// https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/gov/types/keys.go +// https://github.com/eligion/cosmos-sdk/blob/v0.41.0/x/gov/types/keys.go package v040 import ( @@ -7,8 +7,8 @@ import ( "fmt" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" + sdk "github.com/eligion/cosmos-sdk/types" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" ) const ( diff --git a/x/gov/legacy/v040/migrate.go b/x/gov/legacy/v040/migrate.go index 3adedde50932..c664a0f83e36 100644 --- a/x/gov/legacy/v040/migrate.go +++ b/x/gov/legacy/v040/migrate.go @@ -5,16 +5,16 @@ import ( proto "github.com/gogo/protobuf/proto" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - v036distr "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v036" - v040distr "github.com/cosmos/cosmos-sdk/x/distribution/types" - v034gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v034" - v036gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v036" - v040gov "github.com/cosmos/cosmos-sdk/x/gov/types" - v036params "github.com/cosmos/cosmos-sdk/x/params/legacy/v036" - v040params "github.com/cosmos/cosmos-sdk/x/params/types/proposal" - v038upgrade "github.com/cosmos/cosmos-sdk/x/upgrade/legacy/v038" - v040upgrade "github.com/cosmos/cosmos-sdk/x/upgrade/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + v036distr "github.com/eligion/cosmos-sdk/x/distribution/legacy/v036" + v040distr "github.com/eligion/cosmos-sdk/x/distribution/types" + v034gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v034" + v036gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v036" + v040gov "github.com/eligion/cosmos-sdk/x/gov/types" + v036params "github.com/eligion/cosmos-sdk/x/params/legacy/v036" + v040params "github.com/eligion/cosmos-sdk/x/params/types/proposal" + v038upgrade "github.com/eligion/cosmos-sdk/x/upgrade/legacy/v038" + v040upgrade "github.com/eligion/cosmos-sdk/x/upgrade/types" ) func migrateVoteOption(oldVoteOption v034gov.VoteOption) v040gov.VoteOption { diff --git a/x/gov/legacy/v040/migrate_test.go b/x/gov/legacy/v040/migrate_test.go index 664696bf296e..e651dca938b1 100644 --- a/x/gov/legacy/v040/migrate_test.go +++ b/x/gov/legacy/v040/migrate_test.go @@ -6,14 +6,14 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - v036distr "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v036" - v036gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v036" - v040gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v040" - v036params "github.com/cosmos/cosmos-sdk/x/params/legacy/v036" - v038upgrade "github.com/cosmos/cosmos-sdk/x/upgrade/legacy/v038" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + v036distr "github.com/eligion/cosmos-sdk/x/distribution/legacy/v036" + v036gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v036" + v040gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v040" + v036params "github.com/eligion/cosmos-sdk/x/params/legacy/v036" + v038upgrade "github.com/eligion/cosmos-sdk/x/upgrade/legacy/v038" ) func TestMigrate(t *testing.T) { diff --git a/x/gov/legacy/v043/json.go b/x/gov/legacy/v043/json.go index 16de6cdf4743..97a6e36461fe 100644 --- a/x/gov/legacy/v043/json.go +++ b/x/gov/legacy/v043/json.go @@ -1,7 +1,7 @@ package v043 import ( - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // migrateWeightedVotes migrates the ADR-037 weighted votes. diff --git a/x/gov/legacy/v043/json_test.go b/x/gov/legacy/v043/json_test.go index d9f045774661..3b044e8fe3c4 100644 --- a/x/gov/legacy/v043/json_test.go +++ b/x/gov/legacy/v043/json_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - v043gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v043" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + v043gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v043" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func TestMigrateJSON(t *testing.T) { diff --git a/x/gov/legacy/v043/store.go b/x/gov/legacy/v043/store.go index 2de980dbab37..8df53985bbb3 100644 --- a/x/gov/legacy/v043/store.go +++ b/x/gov/legacy/v043/store.go @@ -3,11 +3,11 @@ package v043 import ( "fmt" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" + "github.com/eligion/cosmos-sdk/x/gov/types" ) const proposalIDLen = 8 diff --git a/x/gov/legacy/v043/store_test.go b/x/gov/legacy/v043/store_test.go index b65b126b03ec..dd03e9fae35f 100644 --- a/x/gov/legacy/v043/store_test.go +++ b/x/gov/legacy/v043/store_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - v040gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v040" - v043gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v043" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + v040gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v040" + v043gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v043" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func TestMigrateStore(t *testing.T) { diff --git a/x/gov/module.go b/x/gov/module.go index a090b2c90da2..93894bc9ad2e 100644 --- a/x/gov/module.go +++ b/x/gov/module.go @@ -13,18 +13,18 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - govclient "github.com/cosmos/cosmos-sdk/x/gov/client" - "github.com/cosmos/cosmos-sdk/x/gov/client/cli" - "github.com/cosmos/cosmos-sdk/x/gov/client/rest" - "github.com/cosmos/cosmos-sdk/x/gov/keeper" - "github.com/cosmos/cosmos-sdk/x/gov/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + govclient "github.com/eligion/cosmos-sdk/x/gov/client" + "github.com/eligion/cosmos-sdk/x/gov/client/cli" + "github.com/eligion/cosmos-sdk/x/gov/client/rest" + "github.com/eligion/cosmos-sdk/x/gov/keeper" + "github.com/eligion/cosmos-sdk/x/gov/simulation" + "github.com/eligion/cosmos-sdk/x/gov/types" ) var ( diff --git a/x/gov/module_test.go b/x/gov/module_test.go index 4e54c0b79af3..e0df1482315e 100644 --- a/x/gov/module_test.go +++ b/x/gov/module_test.go @@ -7,9 +7,9 @@ import ( abcitypes "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/simapp" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/gov/types" ) func TestItCreatesModuleAccountOnInitBlock(t *testing.T) { diff --git a/x/gov/simulation/decoder.go b/x/gov/simulation/decoder.go index 762b8ffb13eb..a562570f6ffb 100644 --- a/x/gov/simulation/decoder.go +++ b/x/gov/simulation/decoder.go @@ -5,9 +5,9 @@ import ( "encoding/binary" "fmt" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/x/gov/simulation/decoder_test.go b/x/gov/simulation/decoder_test.go index 188fe9e540f0..fddc80e4def0 100644 --- a/x/gov/simulation/decoder_test.go +++ b/x/gov/simulation/decoder_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/gov/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/gov/simulation" + "github.com/eligion/cosmos-sdk/x/gov/types" ) var ( diff --git a/x/gov/simulation/genesis.go b/x/gov/simulation/genesis.go index 3f9ed2d086a7..8e7f8e0c0c4d 100644 --- a/x/gov/simulation/genesis.go +++ b/x/gov/simulation/genesis.go @@ -8,10 +8,10 @@ import ( "math/rand" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // Simulation parameter constants diff --git a/x/gov/simulation/genesis_test.go b/x/gov/simulation/genesis_test.go index db8b98bff103..79432f6d86f8 100644 --- a/x/gov/simulation/genesis_test.go +++ b/x/gov/simulation/genesis_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/gov/simulation" + "github.com/eligion/cosmos-sdk/x/gov/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/x/gov/simulation/operations.go b/x/gov/simulation/operations.go index 214fb9465676..d168568d4d33 100644 --- a/x/gov/simulation/operations.go +++ b/x/gov/simulation/operations.go @@ -5,15 +5,15 @@ import ( "math/rand" "time" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/keeper" - "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp/helpers" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/gov/keeper" + "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/simulation" ) var initialProposalID = uint64(100000000000000) diff --git a/x/gov/simulation/operations_test.go b/x/gov/simulation/operations_test.go index 6a5252dc3785..4cbd52759b76 100644 --- a/x/gov/simulation/operations_test.go +++ b/x/gov/simulation/operations_test.go @@ -10,13 +10,13 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/types" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/simapp" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/gov/simulation" + "github.com/eligion/cosmos-sdk/x/gov/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" ) type MockWeightedProposalContent struct { diff --git a/x/gov/simulation/params.go b/x/gov/simulation/params.go index c0f0ac05aecf..f70cbd7baa3e 100644 --- a/x/gov/simulation/params.go +++ b/x/gov/simulation/params.go @@ -7,10 +7,10 @@ import ( "fmt" "math/rand" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/simulation" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/simulation" ) const ( diff --git a/x/gov/simulation/params_test.go b/x/gov/simulation/params_test.go index de528d14d9d5..1b81e1aaf39a 100644 --- a/x/gov/simulation/params_test.go +++ b/x/gov/simulation/params_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/gov/simulation" + "github.com/eligion/cosmos-sdk/x/gov/simulation" ) func TestParamChanges(t *testing.T) { diff --git a/x/gov/simulation/proposals.go b/x/gov/simulation/proposals.go index 322774c984eb..1b74be2a6f42 100644 --- a/x/gov/simulation/proposals.go +++ b/x/gov/simulation/proposals.go @@ -3,11 +3,11 @@ package simulation import ( "math/rand" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/simulation" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/simulation" ) // OpWeightSubmitTextProposal app params key for text proposal diff --git a/x/gov/simulation/proposals_test.go b/x/gov/simulation/proposals_test.go index dcd6f3c3f08b..2acc84fc2344 100644 --- a/x/gov/simulation/proposals_test.go +++ b/x/gov/simulation/proposals_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/gov/simulation" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/gov/simulation" ) func TestProposalContents(t *testing.T) { diff --git a/x/gov/spec/01_concepts.md b/x/gov/spec/01_concepts.md index 29e582990b09..418292a14d56 100644 --- a/x/gov/spec/01_concepts.md +++ b/x/gov/spec/01_concepts.md @@ -126,9 +126,9 @@ Often times the entity owning that address might not be a single individual. For To represent weighted vote on chain, we use the following Protobuf message. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-alpha1/proto/cosmos/gov/v1beta1/gov.proto#L32-L40 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-alpha1/proto/cosmos/gov/v1beta1/gov.proto#L32-L40 -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.43.0-alpha1/proto/cosmos/gov/v1beta1/gov.proto#L126-L137 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.43.0-alpha1/proto/cosmos/gov/v1beta1/gov.proto#L126-L137 For a weighted vote to be valid, the `options` field must not contain duplicate vote options, and the sum of weights of all options must be equal to 1. diff --git a/x/gov/spec/02_state.md b/x/gov/spec/02_state.md index 269ff69272fc..6eaae9c2b5a9 100644 --- a/x/gov/spec/02_state.md +++ b/x/gov/spec/02_state.md @@ -13,15 +13,15 @@ parameter set has to be created and the previous one rendered inactive. ### DepositParams -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L127-L145 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L127-L145 ### VotingParams -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L147-L156 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L147-L156 ### TallyParams -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L158-L183 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L158-L183 Parameters are stored in a global `GlobalParams` KVStore. @@ -59,7 +59,7 @@ const ( ## Deposit -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L43-L53 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L43-L53 ## ValidatorGovInfo @@ -78,7 +78,7 @@ This type is used in a temp map when tallying what this proposal is about, and other fields, which are the mutable state of the governance process. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L55-L77 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/gov.proto#L55-L77 ```go type Content interface { diff --git a/x/gov/spec/03_messages.md b/x/gov/spec/03_messages.md index 53d550bda672..88c9869b5e15 100644 --- a/x/gov/spec/03_messages.md +++ b/x/gov/spec/03_messages.md @@ -9,7 +9,7 @@ order: 3 Proposals can be submitted by any account via a `MsgSubmitProposal` transaction. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/tx.proto#L24-L39 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/tx.proto#L24-L39 The `Content` of a `MsgSubmitProposal` message must have an appropriate router set in the governance module. @@ -75,7 +75,7 @@ Once a proposal is submitted, if `Proposal.TotalDeposit < ActiveParam.MinDeposit`, Atom holders can send `MsgDeposit` transactions to increase the proposal's deposit. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/tx.proto#L61-L72 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/tx.proto#L61-L72 **State modifications:** @@ -141,7 +141,7 @@ Once `ActiveParam.MinDeposit` is reached, voting period starts. From there, bonded Atom holders are able to send `MsgVote` transactions to cast their vote on the proposal. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/tx.proto#L46-L56 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/gov/v1beta1/tx.proto#L46-L56 **State modifications:** diff --git a/x/gov/types/codec.go b/x/gov/types/codec.go index e59e0ef49c66..bf2ada5d3109 100644 --- a/x/gov/types/codec.go +++ b/x/gov/types/codec.go @@ -1,11 +1,11 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" ) // RegisterLegacyAminoCodec registers all the necessary types and interfaces for the diff --git a/x/gov/types/content.go b/x/gov/types/content.go index a75c95509cd9..8a53de59ad34 100644 --- a/x/gov/types/content.go +++ b/x/gov/types/content.go @@ -3,8 +3,8 @@ package types import ( "strings" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // Constants pertaining to a Content object @@ -18,7 +18,7 @@ const ( // information for the appropriate handler to process the proposal. Content can // have additional fields, which will handled by a proposal's Handler. // TODO Try to unify this interface with types/module/simulation -// https://github.com/cosmos/cosmos-sdk/issues/5853 +// https://github.com/eligion/cosmos-sdk/issues/5853 type Content interface { GetTitle() string GetDescription() string diff --git a/x/gov/types/deposit.go b/x/gov/types/deposit.go index e386088737f7..b58112e838f5 100644 --- a/x/gov/types/deposit.go +++ b/x/gov/types/deposit.go @@ -5,7 +5,7 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewDeposit creates a new Deposit instance diff --git a/x/gov/types/errors.go b/x/gov/types/errors.go index 96973f1751a2..2c691b89ad52 100644 --- a/x/gov/types/errors.go +++ b/x/gov/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/gov module sentinel errors diff --git a/x/gov/types/expected_keepers.go b/x/gov/types/expected_keepers.go index a6e521647f31..a83bb7dfecd8 100644 --- a/x/gov/types/expected_keepers.go +++ b/x/gov/types/expected_keepers.go @@ -1,9 +1,9 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // ParamSubspace defines the expected Subspace interface for parameters (noalias) @@ -33,7 +33,7 @@ type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, name string) types.ModuleAccountI - // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 + // TODO remove with genesis 2-phases refactor https://github.com/eligion/cosmos-sdk/issues/2862 SetModuleAccount(sdk.Context, types.ModuleAccountI) } diff --git a/x/gov/types/genesis.go b/x/gov/types/genesis.go index 7f2d138ae300..ba4b1d7d7695 100644 --- a/x/gov/types/genesis.go +++ b/x/gov/types/genesis.go @@ -3,8 +3,8 @@ package types import ( "fmt" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewGenesisState creates a new genesis state for the governance module diff --git a/x/gov/types/gov.pb.go b/x/gov/types/gov.pb.go index cc46f20a9c54..784cd3046461 100644 --- a/x/gov/types/gov.pb.go +++ b/x/gov/types/gov.pb.go @@ -5,9 +5,9 @@ package types import ( fmt "fmt" - types1 "github.com/cosmos/cosmos-sdk/codec/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/eligion/cosmos-sdk/codec/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" @@ -126,7 +126,7 @@ func (ProposalStatus) EnumDescriptor() ([]byte, []int) { // Since: cosmos-sdk 0.43 type WeightedVoteOption struct { Option VoteOption `protobuf:"varint,1,opt,name=option,proto3,enum=cosmos.gov.v1beta1.VoteOption" json:"option,omitempty"` - Weight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weight" yaml:"weight"` + Weight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=weight,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"weight" yaml:"weight"` } func (m *WeightedVoteOption) Reset() { *m = WeightedVoteOption{} } @@ -205,7 +205,7 @@ var xxx_messageInfo_TextProposal proto.InternalMessageInfo type Deposit struct { ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty" yaml:"proposal_id"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"amount"` } func (m *Deposit) Reset() { *m = Deposit{} } @@ -248,7 +248,7 @@ type Proposal struct { FinalTallyResult TallyResult `protobuf:"bytes,4,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result" yaml:"final_tally_result"` SubmitTime time.Time `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3,stdtime" json:"submit_time" yaml:"submit_time"` DepositEndTime time.Time `protobuf:"bytes,6,opt,name=deposit_end_time,json=depositEndTime,proto3,stdtime" json:"deposit_end_time" yaml:"deposit_end_time"` - TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total_deposit" yaml:"total_deposit"` + TotalDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,7,rep,name=total_deposit,json=totalDeposit,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"total_deposit" yaml:"total_deposit"` VotingStartTime time.Time `protobuf:"bytes,8,opt,name=voting_start_time,json=votingStartTime,proto3,stdtime" json:"voting_start_time" yaml:"voting_start_time"` VotingEndTime time.Time `protobuf:"bytes,9,opt,name=voting_end_time,json=votingEndTime,proto3,stdtime" json:"voting_end_time" yaml:"voting_end_time"` } @@ -287,10 +287,10 @@ var xxx_messageInfo_Proposal proto.InternalMessageInfo // TallyResult defines a standard tally for a governance proposal. type TallyResult struct { - Yes github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=yes,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"yes"` - Abstain github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=abstain,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"abstain"` - No github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=no,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"no"` - NoWithVeto github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=no_with_veto,json=noWithVeto,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"no_with_veto" yaml:"no_with_veto"` + Yes github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=yes,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"yes"` + Abstain github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=abstain,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"abstain"` + No github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=no,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"no"` + NoWithVeto github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=no_with_veto,json=noWithVeto,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"no_with_veto" yaml:"no_with_veto"` } func (m *TallyResult) Reset() { *m = TallyResult{} } @@ -373,7 +373,7 @@ var xxx_messageInfo_Vote proto.InternalMessageInfo // DepositParams defines the params for deposits on governance proposals. type DepositParams struct { // Minimum deposit for a proposal to enter voting period. - MinDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"min_deposit,omitempty" yaml:"min_deposit"` + MinDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=min_deposit,json=minDeposit,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"min_deposit,omitempty" yaml:"min_deposit"` // Maximum period for Atom holders to deposit on a proposal. Initial value: 2 // months. MaxDepositPeriod time.Duration `protobuf:"bytes,2,opt,name=max_deposit_period,json=maxDepositPeriod,proto3,stdduration" json:"max_deposit_period,omitempty" yaml:"max_deposit_period"` @@ -453,12 +453,12 @@ var xxx_messageInfo_VotingParams proto.InternalMessageInfo type TallyParams struct { // Minimum percentage of total stake needed to vote for a result to be // considered valid. - Quorum github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=quorum,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quorum,omitempty"` + Quorum github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=quorum,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"quorum,omitempty"` // Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. - Threshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=threshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"threshold,omitempty"` + Threshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=threshold,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"threshold,omitempty"` // Minimum value of Veto votes to Total votes ratio for proposal to be // vetoed. Default value: 1/3. - VetoThreshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=veto_threshold,json=vetoThreshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"veto_threshold,omitempty" yaml:"veto_threshold"` + VetoThreshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=veto_threshold,json=vetoThreshold,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"veto_threshold,omitempty" yaml:"veto_threshold"` } func (m *TallyParams) Reset() { *m = TallyParams{} } diff --git a/x/gov/types/hooks.go b/x/gov/types/hooks.go index e90b19a08395..d93e18dd5746 100644 --- a/x/gov/types/hooks.go +++ b/x/gov/types/hooks.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var _ GovHooks = MultiGovHooks{} diff --git a/x/gov/types/keys.go b/x/gov/types/keys.go index fe98bcbf81c4..f597912228e6 100644 --- a/x/gov/types/keys.go +++ b/x/gov/types/keys.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" ) const ( diff --git a/x/gov/types/keys_test.go b/x/gov/types/keys_test.go index 30266f8f4d78..2b2a1b03d9f6 100644 --- a/x/gov/types/keys_test.go +++ b/x/gov/types/keys_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + sdk "github.com/eligion/cosmos-sdk/types" ) var addr = sdk.AccAddress(ed25519.GenPrivKey().PubKey().Address()) diff --git a/x/gov/types/msgs.go b/x/gov/types/msgs.go index f1c351e6ddca..a0ddd7d6953d 100644 --- a/x/gov/types/msgs.go +++ b/x/gov/types/msgs.go @@ -7,9 +7,9 @@ import ( "github.com/gogo/protobuf/proto" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // Governance message types and routes diff --git a/x/gov/types/msgs_test.go b/x/gov/types/msgs_test.go index 2a8fd5275895..8289e0a90d6e 100644 --- a/x/gov/types/msgs_test.go +++ b/x/gov/types/msgs_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var ( diff --git a/x/gov/types/params.go b/x/gov/types/params.go index 95621e100f8e..561698c1fb5a 100644 --- a/x/gov/types/params.go +++ b/x/gov/types/params.go @@ -6,8 +6,8 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + sdk "github.com/eligion/cosmos-sdk/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // Default period for deposits & voting diff --git a/x/gov/types/proposal.go b/x/gov/types/proposal.go index f7d5d9d4dd93..86fcaaab49ca 100644 --- a/x/gov/types/proposal.go +++ b/x/gov/types/proposal.go @@ -8,9 +8,9 @@ import ( "github.com/gogo/protobuf/proto" yaml "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // DefaultStartingProposalID is 1 diff --git a/x/gov/types/querier.go b/x/gov/types/querier.go index fe9b5e0f15cb..49c184b86cad 100644 --- a/x/gov/types/querier.go +++ b/x/gov/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // DONTCOVER diff --git a/x/gov/types/query.pb.go b/x/gov/types/query.pb.go index 4ca1f33ae5f4..e9316dbd3612 100644 --- a/x/gov/types/query.pb.go +++ b/x/gov/types/query.pb.go @@ -6,7 +6,7 @@ package types import ( context "context" fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" + query "github.com/eligion/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/x/gov/types/router.go b/x/gov/types/router.go index bc4d51251d56..37b6a550b4bf 100644 --- a/x/gov/types/router.go +++ b/x/gov/types/router.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var _ Router = (*router)(nil) diff --git a/x/gov/types/tally.go b/x/gov/types/tally.go index 3d5efe51cad3..5335c8cf0033 100644 --- a/x/gov/types/tally.go +++ b/x/gov/types/tally.go @@ -3,7 +3,7 @@ package types import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // ValidatorGovInfo used for tallying diff --git a/x/gov/types/tx.pb.go b/x/gov/types/tx.pb.go index 63a3660d49b3..bb2f1a910258 100644 --- a/x/gov/types/tx.pb.go +++ b/x/gov/types/tx.pb.go @@ -6,9 +6,9 @@ package types import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types1 "github.com/cosmos/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/codec/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types1 "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -36,7 +36,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // proposal Content. type MsgSubmitProposal struct { Content *types.Any `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` - InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"initial_deposit" yaml:"initial_deposit"` + InitialDeposit github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=initial_deposit,json=initialDeposit,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"initial_deposit" yaml:"initial_deposit"` Proposer string `protobuf:"bytes,3,opt,name=proposer,proto3" json:"proposer,omitempty"` } @@ -277,7 +277,7 @@ var xxx_messageInfo_MsgVoteWeightedResponse proto.InternalMessageInfo type MsgDeposit struct { ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id" yaml:"proposal_id"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` - Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` + Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coins" json:"amount"` } func (m *MsgDeposit) Reset() { *m = MsgDeposit{} } diff --git a/x/gov/types/vote.go b/x/gov/types/vote.go index 03d1e5a44f42..db15c3521e05 100644 --- a/x/gov/types/vote.go +++ b/x/gov/types/vote.go @@ -7,7 +7,7 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewVote creates a new Vote instance diff --git a/x/mint/abci.go b/x/mint/abci.go index 410415d743b8..44503e9fc966 100644 --- a/x/mint/abci.go +++ b/x/mint/abci.go @@ -3,10 +3,10 @@ package mint import ( "time" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/mint/keeper" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/mint/keeper" + "github.com/eligion/cosmos-sdk/x/mint/types" ) // BeginBlocker mints new tokens for the previous block. diff --git a/x/mint/client/cli/query.go b/x/mint/client/cli/query.go index 792fa8a6798f..ddbac6f034d4 100644 --- a/x/mint/client/cli/query.go +++ b/x/mint/client/cli/query.go @@ -5,9 +5,9 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/x/mint/types" ) // GetQueryCmd returns the cli query commands for the minting module. diff --git a/x/mint/client/rest/grpc_query_test.go b/x/mint/client/rest/grpc_query_test.go index fdbb4ff75998..c0adc2bcd6b5 100644 --- a/x/mint/client/rest/grpc_query_test.go +++ b/x/mint/client/rest/grpc_query_test.go @@ -6,15 +6,15 @@ import ( "fmt" "testing" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/testutil" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil/network" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/testutil/network" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" ) type IntegrationTestSuite struct { diff --git a/x/mint/client/rest/query.go b/x/mint/client/rest/query.go index 1dccd194c1ad..9af1cc577643 100644 --- a/x/mint/client/rest/query.go +++ b/x/mint/client/rest/query.go @@ -6,9 +6,9 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/mint/types" ) func registerQueryRoutes(clientCtx client.Context, r *mux.Router) { diff --git a/x/mint/client/rest/rest.go b/x/mint/client/rest/rest.go index 2ed28d41d771..6e8048d5a679 100644 --- a/x/mint/client/rest/rest.go +++ b/x/mint/client/rest/rest.go @@ -3,8 +3,8 @@ package rest import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/rest" ) // RegisterRoutes registers minting module REST handlers on the provided router. diff --git a/x/mint/client/testutil/cli_test.go b/x/mint/client/testutil/cli_test.go index dd36a6af2d3e..e6b57e58c2c2 100644 --- a/x/mint/client/testutil/cli_test.go +++ b/x/mint/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/mint/client/testutil/suite.go b/x/mint/client/testutil/suite.go index 24e74267608c..280161e56dde 100644 --- a/x/mint/client/testutil/suite.go +++ b/x/mint/client/testutil/suite.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/mint/client/cli" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/client/flags" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/mint/client/cli" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" ) type IntegrationTestSuite struct { diff --git a/x/mint/genesis.go b/x/mint/genesis.go index be7ac61d5019..bc56c4ce4347 100644 --- a/x/mint/genesis.go +++ b/x/mint/genesis.go @@ -1,9 +1,9 @@ package mint import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/mint/keeper" - "github.com/cosmos/cosmos-sdk/x/mint/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/mint/keeper" + "github.com/eligion/cosmos-sdk/x/mint/types" ) // InitGenesis new mint genesis diff --git a/x/mint/keeper/grpc_query.go b/x/mint/keeper/grpc_query.go index 6ad3bf309c7a..3a1523fdb26a 100644 --- a/x/mint/keeper/grpc_query.go +++ b/x/mint/keeper/grpc_query.go @@ -3,8 +3,8 @@ package keeper import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/mint/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/mint/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/mint/keeper/grpc_query_test.go b/x/mint/keeper/grpc_query_test.go index 11b627669438..9c950fa9ab46 100644 --- a/x/mint/keeper/grpc_query_test.go +++ b/x/mint/keeper/grpc_query_test.go @@ -7,10 +7,10 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/mint/types" ) type MintTestSuite struct { diff --git a/x/mint/keeper/integration_test.go b/x/mint/keeper/integration_test.go index df321c33bd0c..96f7bce7007c 100644 --- a/x/mint/keeper/integration_test.go +++ b/x/mint/keeper/integration_test.go @@ -3,9 +3,9 @@ package keeper_test import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/mint/types" ) // returns context and an app with updated mint keeper diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index b010204e8a18..7b528392a26d 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -3,10 +3,10 @@ package keeper import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/mint/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/mint/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // Keeper of the mint store diff --git a/x/mint/keeper/querier.go b/x/mint/keeper/querier.go index 294445614a5f..a5395ecfc794 100644 --- a/x/mint/keeper/querier.go +++ b/x/mint/keeper/querier.go @@ -3,10 +3,10 @@ package keeper import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/mint/types" ) // NewQuerier returns a minting Querier handler. diff --git a/x/mint/keeper/querier_test.go b/x/mint/keeper/querier_test.go index 2e987aa042ce..35398cdaacd6 100644 --- a/x/mint/keeper/querier_test.go +++ b/x/mint/keeper/querier_test.go @@ -3,13 +3,13 @@ package keeper_test import ( "testing" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - keep "github.com/cosmos/cosmos-sdk/x/mint/keeper" - "github.com/cosmos/cosmos-sdk/x/mint/types" + sdk "github.com/eligion/cosmos-sdk/types" + keep "github.com/eligion/cosmos-sdk/x/mint/keeper" + "github.com/eligion/cosmos-sdk/x/mint/types" abci "github.com/tendermint/tendermint/abci/types" ) diff --git a/x/mint/legacy/v039/types.go b/x/mint/legacy/v039/types.go index 10b351b7fb8f..38338067aec3 100644 --- a/x/mint/legacy/v039/types.go +++ b/x/mint/legacy/v039/types.go @@ -1,6 +1,6 @@ package v039 -import sdk "github.com/cosmos/cosmos-sdk/types" +import sdk "github.com/eligion/cosmos-sdk/types" const ( ModuleName = "mint" diff --git a/x/mint/legacy/v040/migrate.go b/x/mint/legacy/v040/migrate.go index b417c6828951..087b53381cfc 100644 --- a/x/mint/legacy/v040/migrate.go +++ b/x/mint/legacy/v040/migrate.go @@ -1,8 +1,8 @@ package v040 import ( - v039mint "github.com/cosmos/cosmos-sdk/x/mint/legacy/v039" - v040mint "github.com/cosmos/cosmos-sdk/x/mint/types" + v039mint "github.com/eligion/cosmos-sdk/x/mint/legacy/v039" + v040mint "github.com/eligion/cosmos-sdk/x/mint/types" ) // Migrate accepts exported v0.39 x/mint genesis state and diff --git a/x/mint/module.go b/x/mint/module.go index f8d51f9cf5f3..6e42ead3879b 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -11,17 +11,17 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/mint/client/cli" - "github.com/cosmos/cosmos-sdk/x/mint/client/rest" - "github.com/cosmos/cosmos-sdk/x/mint/keeper" - "github.com/cosmos/cosmos-sdk/x/mint/simulation" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/mint/client/cli" + "github.com/eligion/cosmos-sdk/x/mint/client/rest" + "github.com/eligion/cosmos-sdk/x/mint/keeper" + "github.com/eligion/cosmos-sdk/x/mint/simulation" + "github.com/eligion/cosmos-sdk/x/mint/types" ) var ( diff --git a/x/mint/module_test.go b/x/mint/module_test.go index 3b2df369e661..1c8f722da4c3 100644 --- a/x/mint/module_test.go +++ b/x/mint/module_test.go @@ -7,9 +7,9 @@ import ( abcitypes "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/simapp" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/mint/types" ) func TestItCreatesModuleAccountOnInitBlock(t *testing.T) { diff --git a/x/mint/simulation/decoder.go b/x/mint/simulation/decoder.go index b9337fed0074..a16634c200ce 100644 --- a/x/mint/simulation/decoder.go +++ b/x/mint/simulation/decoder.go @@ -4,9 +4,9 @@ import ( "bytes" "fmt" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/mint/types" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/x/mint/simulation/decoder_test.go b/x/mint/simulation/decoder_test.go index 43a8cfbd42c4..5311817a7780 100644 --- a/x/mint/simulation/decoder_test.go +++ b/x/mint/simulation/decoder_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/mint/simulation" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/mint/simulation" + "github.com/eligion/cosmos-sdk/x/mint/types" ) func TestDecodeStore(t *testing.T) { diff --git a/x/mint/simulation/genesis.go b/x/mint/simulation/genesis.go index 77d5064416e5..76b3b46df709 100644 --- a/x/mint/simulation/genesis.go +++ b/x/mint/simulation/genesis.go @@ -7,9 +7,9 @@ import ( "fmt" "math/rand" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/mint/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/mint/types" ) // Simulation parameter constants diff --git a/x/mint/simulation/genesis_test.go b/x/mint/simulation/genesis_test.go index ac57da7acc06..0bfebb6435d5 100644 --- a/x/mint/simulation/genesis_test.go +++ b/x/mint/simulation/genesis_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/mint/simulation" - "github.com/cosmos/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/mint/simulation" + "github.com/eligion/cosmos-sdk/x/mint/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/x/mint/simulation/params.go b/x/mint/simulation/params.go index b75b0fc7000c..bce65451ff2f 100644 --- a/x/mint/simulation/params.go +++ b/x/mint/simulation/params.go @@ -6,10 +6,10 @@ import ( "fmt" "math/rand" - "github.com/cosmos/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/x/simulation" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/mint/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/mint/types" ) const ( diff --git a/x/mint/simulation/params_test.go b/x/mint/simulation/params_test.go index 6bc0f624cf37..7635d77c6351 100644 --- a/x/mint/simulation/params_test.go +++ b/x/mint/simulation/params_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/mint/simulation" + "github.com/eligion/cosmos-sdk/x/mint/simulation" ) func TestParamChangest(t *testing.T) { diff --git a/x/mint/spec/02_state.md b/x/mint/spec/02_state.md index 9e25ac1b3488..44f19e61ede9 100644 --- a/x/mint/spec/02_state.md +++ b/x/mint/spec/02_state.md @@ -10,7 +10,7 @@ The minter is a space for holding current inflation information. - Minter: `0x00 -> ProtocolBuffer(minter)` -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc7/proto/cosmos/mint/v1beta1/mint.proto#L8-L19 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc7/proto/cosmos/mint/v1beta1/mint.proto#L8-L19 ## Params @@ -18,4 +18,4 @@ Minting params are held in the global params store. - Params: `mint/params -> legacy_amino(params)` -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0-rc7/proto/cosmos/mint/v1beta1/mint.proto#L21-L53 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0-rc7/proto/cosmos/mint/v1beta1/mint.proto#L21-L53 diff --git a/x/mint/types/codec.go b/x/mint/types/codec.go index b436c10298d5..4a596fff7003 100644 --- a/x/mint/types/codec.go +++ b/x/mint/types/codec.go @@ -1,8 +1,8 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/codec" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" ) var ( diff --git a/x/mint/types/expected_keepers.go b/x/mint/types/expected_keepers.go index 85b6d776c5c5..5896a2eafe8d 100644 --- a/x/mint/types/expected_keepers.go +++ b/x/mint/types/expected_keepers.go @@ -1,8 +1,8 @@ package types // noalias import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // StakingKeeper defines the expected staking keeper @@ -15,7 +15,7 @@ type StakingKeeper interface { type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress - // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 + // TODO remove with genesis 2-phases refactor https://github.com/eligion/cosmos-sdk/issues/2862 SetModuleAccount(sdk.Context, types.ModuleAccountI) GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI } diff --git a/x/mint/types/mint.pb.go b/x/mint/types/mint.pb.go index 4ed1cccd6978..937386483531 100644 --- a/x/mint/types/mint.pb.go +++ b/x/mint/types/mint.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" @@ -27,9 +27,9 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Minter represents the minting state. type Minter struct { // current annual inflation rate - Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` + Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"inflation"` // current annual expected provisions - AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions" yaml:"annual_provisions"` + AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"annual_provisions" yaml:"annual_provisions"` } func (m *Minter) Reset() { *m = Minter{} } @@ -70,13 +70,13 @@ type Params struct { // type of coin to mint MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` // maximum annual change in inflation rate - InflationRateChange github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=inflation_rate_change,json=inflationRateChange,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_rate_change" yaml:"inflation_rate_change"` + InflationRateChange github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=inflation_rate_change,json=inflationRateChange,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"inflation_rate_change" yaml:"inflation_rate_change"` // maximum inflation rate - InflationMax github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=inflation_max,json=inflationMax,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_max" yaml:"inflation_max"` + InflationMax github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=inflation_max,json=inflationMax,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"inflation_max" yaml:"inflation_max"` // minimum inflation rate - InflationMin github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=inflation_min,json=inflationMin,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation_min" yaml:"inflation_min"` + InflationMin github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=inflation_min,json=inflationMin,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"inflation_min" yaml:"inflation_min"` // goal of percent bonded atoms - GoalBonded github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=goal_bonded,json=goalBonded,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"goal_bonded" yaml:"goal_bonded"` + GoalBonded github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=goal_bonded,json=goalBonded,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"goal_bonded" yaml:"goal_bonded"` // expected blocks per year BlocksPerYear uint64 `protobuf:"varint,6,opt,name=blocks_per_year,json=blocksPerYear,proto3" json:"blocks_per_year,omitempty" yaml:"blocks_per_year"` } diff --git a/x/mint/types/minter.go b/x/mint/types/minter.go index 3285d6ddf0e8..e39f60e8e979 100644 --- a/x/mint/types/minter.go +++ b/x/mint/types/minter.go @@ -3,7 +3,7 @@ package types import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewMinter returns a new Minter object with the given inflation and annual diff --git a/x/mint/types/minter_test.go b/x/mint/types/minter_test.go index 4abedb51cd05..535fb82e3e37 100644 --- a/x/mint/types/minter_test.go +++ b/x/mint/types/minter_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestNextInflation(t *testing.T) { diff --git a/x/mint/types/params.go b/x/mint/types/params.go index f0f9ef494bb9..00fbdd3bed93 100644 --- a/x/mint/types/params.go +++ b/x/mint/types/params.go @@ -7,8 +7,8 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + sdk "github.com/eligion/cosmos-sdk/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // Parameter store keys diff --git a/x/mint/types/query.pb.go b/x/mint/types/query.pb.go index f707eb810d2d..c5da6afb414d 100644 --- a/x/mint/types/query.pb.go +++ b/x/mint/types/query.pb.go @@ -6,7 +6,7 @@ package types import ( context "context" fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -154,7 +154,7 @@ var xxx_messageInfo_QueryInflationRequest proto.InternalMessageInfo // method. type QueryInflationResponse struct { // inflation is the current minting inflation value. - Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"inflation"` + Inflation github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=inflation,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"inflation"` } func (m *QueryInflationResponse) Reset() { *m = QueryInflationResponse{} } @@ -232,7 +232,7 @@ var xxx_messageInfo_QueryAnnualProvisionsRequest proto.InternalMessageInfo // Query/AnnualProvisions RPC method. type QueryAnnualProvisionsResponse struct { // annual_provisions is the current minting annual provisions value. - AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"annual_provisions"` + AnnualProvisions github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=annual_provisions,json=annualProvisions,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"annual_provisions"` } func (m *QueryAnnualProvisionsResponse) Reset() { *m = QueryAnnualProvisionsResponse{} } diff --git a/x/params/client/cli/query.go b/x/params/client/cli/query.go index ce7b45d0602d..61fc96d56aad 100644 --- a/x/params/client/cli/query.go +++ b/x/params/client/cli/query.go @@ -3,10 +3,10 @@ package cli import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) // NewQueryCmd returns a root CLI command handler for all x/params query commands. diff --git a/x/params/client/cli/tx.go b/x/params/client/cli/tx.go index 9c263a2c2b27..76312d50872c 100644 --- a/x/params/client/cli/tx.go +++ b/x/params/client/cli/tx.go @@ -6,13 +6,13 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - paramscutils "github.com/cosmos/cosmos-sdk/x/params/client/utils" - paramproposal "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + paramscutils "github.com/eligion/cosmos-sdk/x/params/client/utils" + paramproposal "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) // NewSubmitParamChangeProposalTxCmd returns a CLI command handler for creating diff --git a/x/params/client/cli/tx_test.go b/x/params/client/cli/tx_test.go index 215fb41c8202..bb963d9332fb 100644 --- a/x/params/client/cli/tx_test.go +++ b/x/params/client/cli/tx_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/x/params/client/utils" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/x/params/client/utils" ) func TestParseProposal(t *testing.T) { diff --git a/x/params/client/proposal_handler.go b/x/params/client/proposal_handler.go index 77a672d89c4e..35a0e96e2c02 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/cosmos/cosmos-sdk/x/gov/client" - "github.com/cosmos/cosmos-sdk/x/params/client/cli" - "github.com/cosmos/cosmos-sdk/x/params/client/rest" + govclient "github.com/eligion/cosmos-sdk/x/gov/client" + "github.com/eligion/cosmos-sdk/x/params/client/cli" + "github.com/eligion/cosmos-sdk/x/params/client/rest" ) // ProposalHandler is the param change proposal handler. diff --git a/x/params/client/rest/grpc_query_test.go b/x/params/client/rest/grpc_query_test.go index f2c4440e29d5..c5993066a9e2 100644 --- a/x/params/client/rest/grpc_query_test.go +++ b/x/params/client/rest/grpc_query_test.go @@ -7,9 +7,9 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) type IntegrationTestSuite struct { diff --git a/x/params/client/rest/rest.go b/x/params/client/rest/rest.go index 70d90236e05f..637b31a5ec59 100644 --- a/x/params/client/rest/rest.go +++ b/x/params/client/rest/rest.go @@ -3,13 +3,13 @@ package rest import ( "net/http" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/cosmos/cosmos-sdk/types/rest" - govrest "github.com/cosmos/cosmos-sdk/x/gov/client/rest" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - paramscutils "github.com/cosmos/cosmos-sdk/x/params/client/utils" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/types/rest" + govrest "github.com/eligion/cosmos-sdk/x/gov/client/rest" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + paramscutils "github.com/eligion/cosmos-sdk/x/params/client/utils" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) // ProposalRESTHandler returns a ProposalRESTHandler that exposes the param diff --git a/x/params/client/testutil/cli_test.go b/x/params/client/testutil/cli_test.go index dd36a6af2d3e..e6b57e58c2c2 100644 --- a/x/params/client/testutil/cli_test.go +++ b/x/params/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/params/client/testutil/suite.go b/x/params/client/testutil/suite.go index e539b8791df6..5cfce4f8c9cc 100644 --- a/x/params/client/testutil/suite.go +++ b/x/params/client/testutil/suite.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - "github.com/cosmos/cosmos-sdk/x/params/client/cli" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/x/params/client/cli" ) type IntegrationTestSuite struct { diff --git a/x/params/client/utils/utils.go b/x/params/client/utils/utils.go index b4c680fdde24..b8fae001f8eb 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/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) type ( diff --git a/x/params/keeper/common_test.go b/x/params/keeper/common_test.go index 3ba444173588..58442b245d31 100644 --- a/x/params/keeper/common_test.go +++ b/x/params/keeper/common_test.go @@ -1,11 +1,11 @@ package keeper_test import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil" - sdk "github.com/cosmos/cosmos-sdk/types" - paramskeeper "github.com/cosmos/cosmos-sdk/x/params/keeper" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil" + sdk "github.com/eligion/cosmos-sdk/types" + paramskeeper "github.com/eligion/cosmos-sdk/x/params/keeper" ) func testComponents() (*codec.LegacyAmino, sdk.Context, sdk.StoreKey, sdk.StoreKey, paramskeeper.Keeper) { diff --git a/x/params/keeper/consensus_params.go b/x/params/keeper/consensus_params.go index 5ce8d340d0d9..628aa1500f44 100644 --- a/x/params/keeper/consensus_params.go +++ b/x/params/keeper/consensus_params.go @@ -4,8 +4,8 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/x/params/types" ) // ConsensusParamsKeyTable returns an x/params module keyTable to be used in diff --git a/x/params/keeper/grpc_query.go b/x/params/keeper/grpc_query.go index 2cfa1c8042d7..9a379cc48d35 100644 --- a/x/params/keeper/grpc_query.go +++ b/x/params/keeper/grpc_query.go @@ -6,9 +6,9 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) var _ proposal.QueryServer = Keeper{} diff --git a/x/params/keeper/grpc_query_test.go b/x/params/keeper/grpc_query_test.go index 19794beb0808..c5d937fb11b0 100644 --- a/x/params/keeper/grpc_query_test.go +++ b/x/params/keeper/grpc_query_test.go @@ -3,9 +3,9 @@ package keeper_test import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) func (suite *KeeperTestSuite) TestGRPCQueryParams() { diff --git a/x/params/keeper/keeper.go b/x/params/keeper/keeper.go index 388d99c51c99..e5b0851f2d9c 100644 --- a/x/params/keeper/keeper.go +++ b/x/params/keeper/keeper.go @@ -3,10 +3,10 @@ package keeper import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) // Keeper of the global paramstore diff --git a/x/params/keeper/keeper_test.go b/x/params/keeper/keeper_test.go index 44c8223f2c25..711f6e71e602 100644 --- a/x/params/keeper/keeper_test.go +++ b/x/params/keeper/keeper_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) type KeeperTestSuite struct { diff --git a/x/params/keeper/querier.go b/x/params/keeper/querier.go index 9d6f3c3da69f..55c396ad4e5b 100644 --- a/x/params/keeper/querier.go +++ b/x/params/keeper/querier.go @@ -3,11 +3,11 @@ package keeper import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) // NewQuerier returns a new querier handler for the x/params module. diff --git a/x/params/legacy/v036/types.go b/x/params/legacy/v036/types.go index b71f1ffab844..13f830a84ea1 100644 --- a/x/params/legacy/v036/types.go +++ b/x/params/legacy/v036/types.go @@ -7,8 +7,8 @@ import ( "fmt" "strings" - "github.com/cosmos/cosmos-sdk/codec" - v036gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v036" + "github.com/eligion/cosmos-sdk/codec" + v036gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v036" ) const ( diff --git a/x/params/module.go b/x/params/module.go index 616c7e28a1c6..08d2419b8c8d 100644 --- a/x/params/module.go +++ b/x/params/module.go @@ -11,17 +11,17 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/params/client/cli" - "github.com/cosmos/cosmos-sdk/x/params/keeper" - "github.com/cosmos/cosmos-sdk/x/params/simulation" - "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/params/client/cli" + "github.com/eligion/cosmos-sdk/x/params/keeper" + "github.com/eligion/cosmos-sdk/x/params/simulation" + "github.com/eligion/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) var ( diff --git a/x/params/proposal_handler.go b/x/params/proposal_handler.go index 173cc292df49..750f71c48bb0 100644 --- a/x/params/proposal_handler.go +++ b/x/params/proposal_handler.go @@ -3,11 +3,11 @@ package params import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/params/keeper" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/params/keeper" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) // NewParamChangeProposalHandler creates a new governance Handler for a ParamChangeProposal diff --git a/x/params/proposal_handler_test.go b/x/params/proposal_handler_test.go index b5c79669a66d..0f39ebe8cc8c 100644 --- a/x/params/proposal_handler_test.go +++ b/x/params/proposal_handler_test.go @@ -7,12 +7,12 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/params" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/params" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) type HandlerTestSuite struct { diff --git a/x/params/simulation/operations.go b/x/params/simulation/operations.go index 6e7619b7032b..199dfecddde7 100644 --- a/x/params/simulation/operations.go +++ b/x/params/simulation/operations.go @@ -4,9 +4,9 @@ import ( "fmt" "math/rand" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) func min(a int, b int) int { diff --git a/x/params/simulation/operations_test.go b/x/params/simulation/operations_test.go index 5ed1ba8a50fc..a08042755f8b 100644 --- a/x/params/simulation/operations_test.go +++ b/x/params/simulation/operations_test.go @@ -8,10 +8,10 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/params/simulation" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/params/simulation" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) type MockParamChange struct { diff --git a/x/params/simulation/proposals.go b/x/params/simulation/proposals.go index 165193735fbd..c6b6f64722a8 100644 --- a/x/params/simulation/proposals.go +++ b/x/params/simulation/proposals.go @@ -1,9 +1,9 @@ package simulation import ( - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/simulation" ) // OpWeightSubmitParamChangeProposal app params key for param change proposal diff --git a/x/params/simulation/proposals_test.go b/x/params/simulation/proposals_test.go index 2902cb08aa44..356d2d8fdecb 100644 --- a/x/params/simulation/proposals_test.go +++ b/x/params/simulation/proposals_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/params/simulation" - "github.com/cosmos/cosmos-sdk/x/params/types/proposal" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/params/simulation" + "github.com/eligion/cosmos-sdk/x/params/types/proposal" ) func TestProposalContents(t *testing.T) { diff --git a/x/params/types/common_test.go b/x/params/types/common_test.go index c7cb067c62c4..e5026a3aecb0 100644 --- a/x/params/types/common_test.go +++ b/x/params/types/common_test.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/params/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/params/types" ) var ( diff --git a/x/params/types/proposal/codec.go b/x/params/types/proposal/codec.go index d638caccaf65..bb2b302311c0 100644 --- a/x/params/types/proposal/codec.go +++ b/x/params/types/proposal/codec.go @@ -1,9 +1,9 @@ package proposal import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) // RegisterLegacyAminoCodec registers all necessary param module types with a given LegacyAmino codec. diff --git a/x/params/types/proposal/errors.go b/x/params/types/proposal/errors.go index a8c891af2ce3..f2d04cdd74c1 100644 --- a/x/params/types/proposal/errors.go +++ b/x/params/types/proposal/errors.go @@ -1,7 +1,7 @@ package proposal import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/params module sentinel errors diff --git a/x/params/types/proposal/proposal.go b/x/params/types/proposal/proposal.go index 3a2f97a77247..82370a34f892 100644 --- a/x/params/types/proposal/proposal.go +++ b/x/params/types/proposal/proposal.go @@ -6,7 +6,7 @@ import ( yaml "gopkg.in/yaml.v2" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) const ( diff --git a/x/params/types/subspace.go b/x/params/types/subspace.go index 42afe6cc9b21..0854d7e9d113 100644 --- a/x/params/types/subspace.go +++ b/x/params/types/subspace.go @@ -4,9 +4,9 @@ import ( "fmt" "reflect" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/x/params/types/subspace_test.go b/x/params/types/subspace_test.go index a347a5f5427e..c40c6d5d7ae8 100644 --- a/x/params/types/subspace_test.go +++ b/x/params/types/subspace_test.go @@ -10,11 +10,11 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/store" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/store" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/params/types" ) type SubspaceTestSuite struct { diff --git a/x/params/types/table.go b/x/params/types/table.go index ef09c39d886e..f177f0674550 100644 --- a/x/params/types/table.go +++ b/x/params/types/table.go @@ -3,7 +3,7 @@ package types import ( "reflect" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) type attribute struct { diff --git a/x/params/types/table_test.go b/x/params/types/table_test.go index 0baff40f8c6c..75968d271a6f 100644 --- a/x/params/types/table_test.go +++ b/x/params/types/table_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/x/params/types" ) func TestKeyTable(t *testing.T) { diff --git a/x/simulation/doc.go b/x/simulation/doc.go index 6543bc5c1532..00ba5a0f26e9 100644 --- a/x/simulation/doc.go +++ b/x/simulation/doc.go @@ -48,7 +48,7 @@ Usage To execute a completely pseudo-random simulation: - $ go test -mod=readonly github.com/cosmos/cosmos-sdk/simapp \ + $ go test -mod=readonly github.com/eligion/cosmos-sdk/simapp \ -run=TestFullAppSimulation \ -Enabled=true \ -NumBlocks=100 \ @@ -60,7 +60,7 @@ To execute a completely pseudo-random simulation: To execute simulation from a genesis file: - $ go test -mod=readonly github.com/cosmos/cosmos-sdk/simapp \ + $ go test -mod=readonly github.com/eligion/cosmos-sdk/simapp \ -run=TestFullAppSimulation \ -Enabled=true \ -NumBlocks=100 \ @@ -73,7 +73,7 @@ To execute simulation from a genesis file: To execute simulation from a simulation params file: - $ go test -mod=readonly github.com/cosmos/cosmos-sdk/simapp \ + $ go test -mod=readonly github.com/eligion/cosmos-sdk/simapp \ -run=TestFullAppSimulation \ -Enabled=true \ -NumBlocks=100 \ @@ -86,7 +86,7 @@ To execute simulation from a simulation params file: To export the simulation params to a file at a given block height: - $ go test -mod=readonly github.com/cosmos/cosmos-sdk/simapp \ + $ go test -mod=readonly github.com/eligion/cosmos-sdk/simapp \ -run=TestFullAppSimulation \ -Enabled=true \ -NumBlocks=100 \ @@ -101,7 +101,7 @@ To export the simulation params to a file at a given block height: To export the simulation app state (i.e genesis) to a file: - $ go test -mod=readonly github.com/cosmos/cosmos-sdk/simapp \ + $ go test -mod=readonly github.com/eligion/cosmos-sdk/simapp \ -run=TestFullAppSimulation \ -Enabled=true \ -NumBlocks=100 \ diff --git a/x/simulation/expected_keepers.go b/x/simulation/expected_keepers.go index c54831b8a401..e63b09569d0b 100644 --- a/x/simulation/expected_keepers.go +++ b/x/simulation/expected_keepers.go @@ -1,8 +1,8 @@ package simulation import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/auth/types" ) // AccountKeeper defines the expected account keeper used for simulations (noalias) diff --git a/x/simulation/operation.go b/x/simulation/operation.go index 7aab48e9fbec..43fc46476902 100644 --- a/x/simulation/operation.go +++ b/x/simulation/operation.go @@ -5,7 +5,7 @@ import ( "math/rand" "sort" - "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/types/simulation" ) // entry kinds for use within OperationEntry diff --git a/x/simulation/params.go b/x/simulation/params.go index 51dfb6439f10..cc4965961462 100644 --- a/x/simulation/params.go +++ b/x/simulation/params.go @@ -9,9 +9,9 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/types/simulation" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/types/simulation" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) const ( diff --git a/x/simulation/params_test.go b/x/simulation/params_test.go index d0b538c26e4d..9fc50b989a3d 100644 --- a/x/simulation/params_test.go +++ b/x/simulation/params_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" ) func TestParamChange(t *testing.T) { diff --git a/x/simulation/simulate.go b/x/simulation/simulate.go index e1ff8f1826b6..1fe15a5e0a2e 100644 --- a/x/simulation/simulate.go +++ b/x/simulation/simulate.go @@ -13,10 +13,10 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/simulation" ) const AverageBlockTime = 6 * time.Second diff --git a/x/simulation/transition_matrix.go b/x/simulation/transition_matrix.go index 9e2c69c06633..7df3c5525f5f 100644 --- a/x/simulation/transition_matrix.go +++ b/x/simulation/transition_matrix.go @@ -4,7 +4,7 @@ import ( "fmt" "math/rand" - "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/types/simulation" ) // TransitionMatrix is _almost_ a left stochastic matrix. It is technically diff --git a/x/simulation/util.go b/x/simulation/util.go index aa348bfd357f..b1b0215a0a8d 100644 --- a/x/simulation/util.go +++ b/x/simulation/util.go @@ -6,12 +6,12 @@ import ( "math/rand" "testing" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp/helpers" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" ) func getTestingMode(tb testing.TB) (testingMode bool, t *testing.T, b *testing.B) { diff --git a/x/slashing/abci.go b/x/slashing/abci.go index 26a3c687564d..03ccc558efb3 100644 --- a/x/slashing/abci.go +++ b/x/slashing/abci.go @@ -5,10 +5,10 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/keeper" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // BeginBlocker check for infraction evidence or downtime of validators diff --git a/x/slashing/abci_test.go b/x/slashing/abci_test.go index 6121e3572b88..defd72c7e466 100644 --- a/x/slashing/abci_test.go +++ b/x/slashing/abci_test.go @@ -8,12 +8,12 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestBeginBlocker(t *testing.T) { diff --git a/x/slashing/app_test.go b/x/slashing/app_test.go index 028d41755607..bf89bc27ac43 100644 --- a/x/slashing/app_test.go +++ b/x/slashing/app_test.go @@ -8,14 +8,14 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/slashing/client/cli/query.go b/x/slashing/client/cli/query.go index 08ae03301fbc..795ce52fca29 100644 --- a/x/slashing/client/cli/query.go +++ b/x/slashing/client/cli/query.go @@ -5,11 +5,11 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/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 6ef7f56c2925..b973048f135a 100644 --- a/x/slashing/client/cli/tx.go +++ b/x/slashing/client/cli/tx.go @@ -3,11 +3,11 @@ package cli import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // NewTxCmd returns a root CLI command handler for all x/slashing transaction commands. diff --git a/x/slashing/client/rest/grpc_query_test.go b/x/slashing/client/rest/grpc_query_test.go index 39daf06f69c5..5773048f2782 100644 --- a/x/slashing/client/rest/grpc_query_test.go +++ b/x/slashing/client/rest/grpc_query_test.go @@ -8,12 +8,12 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) type IntegrationTestSuite struct { diff --git a/x/slashing/client/rest/query.go b/x/slashing/client/rest/query.go index d5d4a3a187f1..be22e3e928b0 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/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32" //nolint:staticcheck - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/types/bech32/legacybech32" //nolint:staticcheck + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) func registerQueryRoutes(clientCtx client.Context, r *mux.Router) { diff --git a/x/slashing/client/rest/rest.go b/x/slashing/client/rest/rest.go index 059cb17c6bdc..81a4eda8396f 100644 --- a/x/slashing/client/rest/rest.go +++ b/x/slashing/client/rest/rest.go @@ -3,8 +3,8 @@ package rest import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/rest" ) func RegisterHandlers(clientCtx client.Context, rtr *mux.Router) { diff --git a/x/slashing/client/rest/tx.go b/x/slashing/client/rest/tx.go index eaac614fa1c4..09c29d7fc67e 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/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) func registerTxHandlers(clientCtx client.Context, r *mux.Router) { diff --git a/x/slashing/client/testutil/cli_test.go b/x/slashing/client/testutil/cli_test.go index dd36a6af2d3e..e6b57e58c2c2 100644 --- a/x/slashing/client/testutil/cli_test.go +++ b/x/slashing/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/slashing/client/testutil/suite.go b/x/slashing/client/testutil/suite.go index cf5cf997b6c3..85a980b1077a 100644 --- a/x/slashing/client/testutil/suite.go +++ b/x/slashing/client/testutil/suite.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/suite" tmcli "github.com/tendermint/tendermint/libs/cli" - "github.com/cosmos/cosmos-sdk/client/flags" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/client/cli" + "github.com/eligion/cosmos-sdk/client/flags" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/client/cli" ) type IntegrationTestSuite struct { diff --git a/x/slashing/genesis.go b/x/slashing/genesis.go index 2c8b6675762b..5577bf6bc637 100644 --- a/x/slashing/genesis.go +++ b/x/slashing/genesis.go @@ -1,10 +1,10 @@ package slashing import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - "github.com/cosmos/cosmos-sdk/x/slashing/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/keeper" + "github.com/eligion/cosmos-sdk/x/slashing/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // InitGenesis initialize default parameters diff --git a/x/slashing/genesis_test.go b/x/slashing/genesis_test.go index 1467fac6efd1..d7b611fb20b2 100644 --- a/x/slashing/genesis_test.go +++ b/x/slashing/genesis_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing" - "github.com/cosmos/cosmos-sdk/x/slashing/testslashing" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing" + "github.com/eligion/cosmos-sdk/x/slashing/testslashing" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) func TestExportAndInitGenesis(t *testing.T) { diff --git a/x/slashing/handler.go b/x/slashing/handler.go index eab71edb4188..1abbae16c4eb 100644 --- a/x/slashing/handler.go +++ b/x/slashing/handler.go @@ -1,10 +1,10 @@ package slashing import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/slashing/keeper" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // NewHandler creates an sdk.Handler for all the slashing type messages diff --git a/x/slashing/handler_test.go b/x/slashing/handler_test.go index e6b6af64b68d..40cfe9c1ef61 100644 --- a/x/slashing/handler_test.go +++ b/x/slashing/handler_test.go @@ -9,16 +9,16 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing" - "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - "github.com/cosmos/cosmos-sdk/x/slashing/testslashing" - "github.com/cosmos/cosmos-sdk/x/slashing/types" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing" + "github.com/eligion/cosmos-sdk/x/slashing/keeper" + "github.com/eligion/cosmos-sdk/x/slashing/testslashing" + "github.com/eligion/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestCannotUnjailUnlessJailed(t *testing.T) { diff --git a/x/slashing/init_test.go b/x/slashing/init_test.go index a2217cfda7b0..204ca7d41224 100644 --- a/x/slashing/init_test.go +++ b/x/slashing/init_test.go @@ -1,7 +1,7 @@ package slashing_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var ( diff --git a/x/slashing/keeper/common_test.go b/x/slashing/keeper/common_test.go index 91a972ed1110..74ff22bb7db0 100644 --- a/x/slashing/keeper/common_test.go +++ b/x/slashing/keeper/common_test.go @@ -1,6 +1,6 @@ package keeper_test -import sdk "github.com/cosmos/cosmos-sdk/types" +import sdk "github.com/eligion/cosmos-sdk/types" var ( // The default power validators are initialized to have within tests diff --git a/x/slashing/keeper/grpc_query.go b/x/slashing/keeper/grpc_query.go index 324fcd1cd12c..66f18ee04245 100644 --- a/x/slashing/keeper/grpc_query.go +++ b/x/slashing/keeper/grpc_query.go @@ -6,10 +6,10 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/slashing/keeper/grpc_query_test.go b/x/slashing/keeper/grpc_query_test.go index 6290b94e0004..cd7190471f0a 100644 --- a/x/slashing/keeper/grpc_query_test.go +++ b/x/slashing/keeper/grpc_query_test.go @@ -8,14 +8,14 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/slashing/testslashing" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/slashing/testslashing" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) type SlashingTestSuite struct { diff --git a/x/slashing/keeper/hooks.go b/x/slashing/keeper/hooks.go index e3a00e9f5556..5a60bae3c3f8 100644 --- a/x/slashing/keeper/hooks.go +++ b/x/slashing/keeper/hooks.go @@ -5,8 +5,8 @@ import ( "github.com/tendermint/tendermint/crypto" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) func (k Keeper) AfterValidatorBonded(ctx sdk.Context, address sdk.ConsAddress, _ sdk.ValAddress) { diff --git a/x/slashing/keeper/infractions.go b/x/slashing/keeper/infractions.go index 06baa48f82b4..7d975f88f847 100644 --- a/x/slashing/keeper/infractions.go +++ b/x/slashing/keeper/infractions.go @@ -3,9 +3,9 @@ package keeper import ( "fmt" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // HandleValidatorSignature handles a validator signature, must be called once per validator per block. diff --git a/x/slashing/keeper/keeper.go b/x/slashing/keeper/keeper.go index 12a943c84c69..01c3deaa1467 100644 --- a/x/slashing/keeper/keeper.go +++ b/x/slashing/keeper/keeper.go @@ -5,10 +5,10 @@ import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // Keeper of the slashing store diff --git a/x/slashing/keeper/keeper_test.go b/x/slashing/keeper/keeper_test.go index 7f3d42b0a7ed..bdbf6b0ee7c5 100644 --- a/x/slashing/keeper/keeper_test.go +++ b/x/slashing/keeper/keeper_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/testslashing" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/testslashing" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestUnJailNotBonded(t *testing.T) { diff --git a/x/slashing/keeper/migrations.go b/x/slashing/keeper/migrations.go index 84f19c01ab7c..317715731597 100644 --- a/x/slashing/keeper/migrations.go +++ b/x/slashing/keeper/migrations.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v043 "github.com/cosmos/cosmos-sdk/x/slashing/legacy/v043" + sdk "github.com/eligion/cosmos-sdk/types" + v043 "github.com/eligion/cosmos-sdk/x/slashing/legacy/v043" ) // Migrator is a struct for handling in-place store migrations. diff --git a/x/slashing/keeper/msg_server.go b/x/slashing/keeper/msg_server.go index 90a2558384a3..240b97f27ee7 100644 --- a/x/slashing/keeper/msg_server.go +++ b/x/slashing/keeper/msg_server.go @@ -3,8 +3,8 @@ package keeper import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) type msgServer struct { diff --git a/x/slashing/keeper/params.go b/x/slashing/keeper/params.go index 8ece97a687ad..399346dcc988 100644 --- a/x/slashing/keeper/params.go +++ b/x/slashing/keeper/params.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // SignedBlocksWindow - sliding window for downtime slashing diff --git a/x/slashing/keeper/querier.go b/x/slashing/keeper/querier.go index 036f3a16dde3..07afa889c2c9 100644 --- a/x/slashing/keeper/querier.go +++ b/x/slashing/keeper/querier.go @@ -3,11 +3,11 @@ package keeper import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // NewQuerier creates a new querier for slashing clients. diff --git a/x/slashing/keeper/querier_test.go b/x/slashing/keeper/querier_test.go index bda5fe4bc5f6..1f46d3d6ea7f 100644 --- a/x/slashing/keeper/querier_test.go +++ b/x/slashing/keeper/querier_test.go @@ -8,11 +8,11 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - "github.com/cosmos/cosmos-sdk/x/slashing/testslashing" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/x/slashing/keeper" + "github.com/eligion/cosmos-sdk/x/slashing/testslashing" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) func TestNewQuerier(t *testing.T) { diff --git a/x/slashing/keeper/signing_info.go b/x/slashing/keeper/signing_info.go index ed15ae3e4ff3..e8718c76c352 100644 --- a/x/slashing/keeper/signing_info.go +++ b/x/slashing/keeper/signing_info.go @@ -5,8 +5,8 @@ import ( gogotypes "github.com/gogo/protobuf/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // GetValidatorSigningInfo retruns the ValidatorSigningInfo for a specific validator diff --git a/x/slashing/keeper/signing_info_test.go b/x/slashing/keeper/signing_info_test.go index 2748042b3600..9ee920e1bed2 100644 --- a/x/slashing/keeper/signing_info_test.go +++ b/x/slashing/keeper/signing_info_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) func TestGetSetValidatorSigningInfo(t *testing.T) { diff --git a/x/slashing/keeper/unjail.go b/x/slashing/keeper/unjail.go index 23a9121e5472..c3c794aafbff 100644 --- a/x/slashing/keeper/unjail.go +++ b/x/slashing/keeper/unjail.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // Unjail calls the staking Unjail function to unjail a validator if the diff --git a/x/slashing/legacy/v039/types.go b/x/slashing/legacy/v039/types.go index 34eed337173b..4d545426e566 100644 --- a/x/slashing/legacy/v039/types.go +++ b/x/slashing/legacy/v039/types.go @@ -3,7 +3,7 @@ package v039 import ( "time" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) const ( diff --git a/x/slashing/legacy/v040/keys.go b/x/slashing/legacy/v040/keys.go index 02cefbc4525e..a85483eeac75 100644 --- a/x/slashing/legacy/v040/keys.go +++ b/x/slashing/legacy/v040/keys.go @@ -1,12 +1,12 @@ // Package v040 is copy-pasted from: -// https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/slashing/types/keys.go +// https://github.com/eligion/cosmos-sdk/blob/v0.41.0/x/slashing/types/keys.go package v040 import ( "encoding/binary" - sdk "github.com/cosmos/cosmos-sdk/types" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" + sdk "github.com/eligion/cosmos-sdk/types" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" ) const ( diff --git a/x/slashing/legacy/v040/migrate.go b/x/slashing/legacy/v040/migrate.go index ba494dcad14a..ca1bd5565bc8 100644 --- a/x/slashing/legacy/v040/migrate.go +++ b/x/slashing/legacy/v040/migrate.go @@ -3,8 +3,8 @@ package v040 import ( "sort" - v039slashing "github.com/cosmos/cosmos-sdk/x/slashing/legacy/v039" - v040slashing "github.com/cosmos/cosmos-sdk/x/slashing/types" + v039slashing "github.com/eligion/cosmos-sdk/x/slashing/legacy/v039" + v040slashing "github.com/eligion/cosmos-sdk/x/slashing/types" ) // Migrate accepts exported x/slashing genesis state from v0.39 and migrates it diff --git a/x/slashing/legacy/v040/migrate_test.go b/x/slashing/legacy/v040/migrate_test.go index f11d2e9d26ee..be3a459882bb 100644 --- a/x/slashing/legacy/v040/migrate_test.go +++ b/x/slashing/legacy/v040/migrate_test.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - v039slashing "github.com/cosmos/cosmos-sdk/x/slashing/legacy/v039" - v040slashing "github.com/cosmos/cosmos-sdk/x/slashing/legacy/v040" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + v039slashing "github.com/eligion/cosmos-sdk/x/slashing/legacy/v039" + v040slashing "github.com/eligion/cosmos-sdk/x/slashing/legacy/v040" ) func TestMigrate(t *testing.T) { diff --git a/x/slashing/legacy/v043/store.go b/x/slashing/legacy/v043/store.go index daee1d3fc157..dc2d4fb0f769 100644 --- a/x/slashing/legacy/v043/store.go +++ b/x/slashing/legacy/v043/store.go @@ -1,9 +1,9 @@ package v043 import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v043distribution "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v043" - v040slashing "github.com/cosmos/cosmos-sdk/x/slashing/legacy/v040" + sdk "github.com/eligion/cosmos-sdk/types" + v043distribution "github.com/eligion/cosmos-sdk/x/distribution/legacy/v043" + v040slashing "github.com/eligion/cosmos-sdk/x/slashing/legacy/v040" ) // MigrateStore performs in-place store migrations from v0.40 to v0.43. The diff --git a/x/slashing/legacy/v043/store_test.go b/x/slashing/legacy/v043/store_test.go index a31b1cd65b3e..1bd84620c2f7 100644 --- a/x/slashing/legacy/v043/store_test.go +++ b/x/slashing/legacy/v043/store_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - v040slashing "github.com/cosmos/cosmos-sdk/x/slashing/legacy/v040" - v043slashing "github.com/cosmos/cosmos-sdk/x/slashing/legacy/v043" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + v040slashing "github.com/eligion/cosmos-sdk/x/slashing/legacy/v040" + v043slashing "github.com/eligion/cosmos-sdk/x/slashing/legacy/v043" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) func TestStoreMigration(t *testing.T) { diff --git a/x/slashing/module.go b/x/slashing/module.go index d837a16e5c01..f0f4e2d59d6a 100644 --- a/x/slashing/module.go +++ b/x/slashing/module.go @@ -13,18 +13,18 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/slashing/client/cli" - "github.com/cosmos/cosmos-sdk/x/slashing/client/rest" - "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - "github.com/cosmos/cosmos-sdk/x/slashing/simulation" - "github.com/cosmos/cosmos-sdk/x/slashing/types" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/client/cli" + "github.com/eligion/cosmos-sdk/x/slashing/client/rest" + "github.com/eligion/cosmos-sdk/x/slashing/keeper" + "github.com/eligion/cosmos-sdk/x/slashing/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/types" + stakingkeeper "github.com/eligion/cosmos-sdk/x/staking/keeper" ) var ( diff --git a/x/slashing/simulation/decoder.go b/x/slashing/simulation/decoder.go index 6c845ace7174..6b64d4e1c54f 100644 --- a/x/slashing/simulation/decoder.go +++ b/x/slashing/simulation/decoder.go @@ -6,10 +6,10 @@ import ( gogotypes "github.com/gogo/protobuf/types" - "github.com/cosmos/cosmos-sdk/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/x/slashing/simulation/decoder_test.go b/x/slashing/simulation/decoder_test.go index 94b9f5a1c88c..a065f5c62310 100644 --- a/x/slashing/simulation/decoder_test.go +++ b/x/slashing/simulation/decoder_test.go @@ -8,12 +8,12 @@ import ( gogotypes "github.com/gogo/protobuf/types" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/slashing/simulation" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/slashing/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // nolint:deadcode,unused,varcheck diff --git a/x/slashing/simulation/genesis.go b/x/slashing/simulation/genesis.go index 2c1eba7db73a..cb3c8d0ef44a 100644 --- a/x/slashing/simulation/genesis.go +++ b/x/slashing/simulation/genesis.go @@ -8,10 +8,10 @@ import ( "math/rand" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // Simulation parameter constants diff --git a/x/slashing/simulation/genesis_test.go b/x/slashing/simulation/genesis_test.go index a386588d8369..35790ddd0da5 100644 --- a/x/slashing/simulation/genesis_test.go +++ b/x/slashing/simulation/genesis_test.go @@ -8,13 +8,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/slashing/simulation" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/x/slashing/simulation/operations.go b/x/slashing/simulation/operations.go index 3b98b2af05a4..056920c22230 100644 --- a/x/slashing/simulation/operations.go +++ b/x/slashing/simulation/operations.go @@ -4,16 +4,16 @@ import ( "errors" "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp/helpers" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/cosmos/cosmos-sdk/x/slashing/keeper" - "github.com/cosmos/cosmos-sdk/x/slashing/types" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp/helpers" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/keeper" + "github.com/eligion/cosmos-sdk/x/slashing/types" + stakingkeeper "github.com/eligion/cosmos-sdk/x/staking/keeper" ) // Simulation operation weights constants diff --git a/x/slashing/simulation/operations_test.go b/x/slashing/simulation/operations_test.go index ea58a6e67c86..38070455579f 100644 --- a/x/slashing/simulation/operations_test.go +++ b/x/slashing/simulation/operations_test.go @@ -9,15 +9,15 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" - "github.com/cosmos/cosmos-sdk/x/slashing/simulation" - "github.com/cosmos/cosmos-sdk/x/slashing/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + distrtypes "github.com/eligion/cosmos-sdk/x/distribution/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/x/slashing/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // TestWeightedOperations tests the weights of the operations. diff --git a/x/slashing/simulation/params.go b/x/slashing/simulation/params.go index e7c8fcf491b0..a32c591d1a11 100644 --- a/x/slashing/simulation/params.go +++ b/x/slashing/simulation/params.go @@ -6,9 +6,9 @@ import ( "fmt" "math/rand" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/cosmos/cosmos-sdk/x/slashing/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) const ( diff --git a/x/slashing/simulation/params_test.go b/x/slashing/simulation/params_test.go index 2f1933c60ad2..6c1b2d6dd3bc 100644 --- a/x/slashing/simulation/params_test.go +++ b/x/slashing/simulation/params_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/slashing/simulation" + "github.com/eligion/cosmos-sdk/x/slashing/simulation" ) func TestParamChanges(t *testing.T) { diff --git a/x/slashing/spec/02_state.md b/x/slashing/spec/02_state.md index b296105feccd..df3e229df3d1 100644 --- a/x/slashing/spec/02_state.md +++ b/x/slashing/spec/02_state.md @@ -48,4 +48,4 @@ bonded validator. The `SignedBlocksWindow` parameter defines the size The information stored for tracking validator liveness is as follows: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/slashing/v1beta1/slashing.proto#L11-L33 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/slashing/v1beta1/slashing.proto#L11-L33 diff --git a/x/slashing/spec/07_tombstone.md b/x/slashing/spec/07_tombstone.md index 216d1836f5a3..c30b9035e556 100644 --- a/x/slashing/spec/07_tombstone.md +++ b/x/slashing/spec/07_tombstone.md @@ -73,7 +73,7 @@ to keep track of the highest infraction amount for every single slashing period. > Note: Currently, according to the `slashing` module spec, a new slashing period > is created every time a validator is unbonded then rebonded. This should probably -> be changed to jailed/unjailed. See issue [#3205](https://github.com/cosmos/cosmos-sdk/issues/3205) +> be changed to jailed/unjailed. See issue [#3205](https://github.com/eligion/cosmos-sdk/issues/3205) > for further details. For the remainder of this, I will assume that we only start > a new slashing period when a validator gets unjailed. diff --git a/x/slashing/testslashing/params.go b/x/slashing/testslashing/params.go index dac3f23c5c5e..8b7df4c7c566 100644 --- a/x/slashing/testslashing/params.go +++ b/x/slashing/testslashing/params.go @@ -1,7 +1,7 @@ package testslashing import ( - "github.com/cosmos/cosmos-sdk/x/slashing/types" + "github.com/eligion/cosmos-sdk/x/slashing/types" ) // TestParams construct default slashing params for tests. diff --git a/x/slashing/types/codec.go b/x/slashing/types/codec.go index bc89862f1b46..1e6bda38d32e 100644 --- a/x/slashing/types/codec.go +++ b/x/slashing/types/codec.go @@ -1,11 +1,11 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" ) // RegisterLegacyAminoCodec registers concrete types on LegacyAmino codec diff --git a/x/slashing/types/errors.go b/x/slashing/types/errors.go index daff6ecc04af..eb54aa81d2c7 100644 --- a/x/slashing/types/errors.go +++ b/x/slashing/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/slashing module sentinel errors diff --git a/x/slashing/types/expected_keepers.go b/x/slashing/types/expected_keepers.go index 9710ad1786e7..24a87a4f7fb2 100644 --- a/x/slashing/types/expected_keepers.go +++ b/x/slashing/types/expected_keepers.go @@ -3,10 +3,10 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - auth "github.com/cosmos/cosmos-sdk/x/auth/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + auth "github.com/eligion/cosmos-sdk/x/auth/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // AccountKeeper expected account keeper diff --git a/x/slashing/types/genesis.go b/x/slashing/types/genesis.go index 9b427e725ac3..483545d88e18 100644 --- a/x/slashing/types/genesis.go +++ b/x/slashing/types/genesis.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewGenesisState creates a new GenesisState object diff --git a/x/slashing/types/keys.go b/x/slashing/types/keys.go index f0049760f0a0..1658e92ae106 100644 --- a/x/slashing/types/keys.go +++ b/x/slashing/types/keys.go @@ -3,8 +3,8 @@ package types import ( "encoding/binary" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" ) const ( diff --git a/x/slashing/types/msg.go b/x/slashing/types/msg.go index d86ff5eb7249..275523f90a29 100644 --- a/x/slashing/types/msg.go +++ b/x/slashing/types/msg.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // slashing message types diff --git a/x/slashing/types/msg_test.go b/x/slashing/types/msg_test.go index 31f7a70e75db..9d651758cb23 100644 --- a/x/slashing/types/msg_test.go +++ b/x/slashing/types/msg_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func TestMsgUnjailGetSignBytes(t *testing.T) { diff --git a/x/slashing/types/params.go b/x/slashing/types/params.go index aa9cd559e7db..88be542c6aa1 100644 --- a/x/slashing/types/params.go +++ b/x/slashing/types/params.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + sdk "github.com/eligion/cosmos-sdk/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // Default parameter namespace diff --git a/x/slashing/types/query.pb.go b/x/slashing/types/query.pb.go index 3a0c997a3056..199f06848c80 100644 --- a/x/slashing/types/query.pb.go +++ b/x/slashing/types/query.pb.go @@ -6,7 +6,7 @@ package types import ( context "context" fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" + query "github.com/eligion/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/x/slashing/types/signing_info.go b/x/slashing/types/signing_info.go index 43a052d22f7d..8be554991e52 100644 --- a/x/slashing/types/signing_info.go +++ b/x/slashing/types/signing_info.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewValidatorSigningInfo creates a new ValidatorSigningInfo instance diff --git a/x/slashing/types/slashing.pb.go b/x/slashing/types/slashing.pb.go index 633b4c5bb944..7cba1df7b900 100644 --- a/x/slashing/types/slashing.pb.go +++ b/x/slashing/types/slashing.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" @@ -126,10 +126,10 @@ func (m *ValidatorSigningInfo) GetMissedBlocksCounter() int64 { // Params represents the parameters used for by the slashing module. type Params struct { SignedBlocksWindow int64 `protobuf:"varint,1,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty" yaml:"signed_blocks_window"` - MinSignedPerWindow github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min_signed_per_window" yaml:"min_signed_per_window"` + MinSignedPerWindow github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"min_signed_per_window" yaml:"min_signed_per_window"` DowntimeJailDuration time.Duration `protobuf:"bytes,3,opt,name=downtime_jail_duration,json=downtimeJailDuration,proto3,stdduration" json:"downtime_jail_duration" yaml:"downtime_jail_duration"` - SlashFractionDoubleSign github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=slash_fraction_double_sign,json=slashFractionDoubleSign,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"slash_fraction_double_sign" yaml:"slash_fraction_double_sign"` - SlashFractionDowntime github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=slash_fraction_downtime,json=slashFractionDowntime,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"slash_fraction_downtime" yaml:"slash_fraction_downtime"` + SlashFractionDoubleSign github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=slash_fraction_double_sign,json=slashFractionDoubleSign,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"slash_fraction_double_sign" yaml:"slash_fraction_double_sign"` + SlashFractionDowntime github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=slash_fraction_downtime,json=slashFractionDowntime,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"slash_fraction_downtime" yaml:"slash_fraction_downtime"` } func (m *Params) Reset() { *m = Params{} } diff --git a/x/staking/abci.go b/x/staking/abci.go index 28253b5bd3fd..3e725ebb22e1 100644 --- a/x/staking/abci.go +++ b/x/staking/abci.go @@ -5,10 +5,10 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // BeginBlocker will persist the current header and validator set as a historical entry diff --git a/x/staking/app_test.go b/x/staking/app_test.go index 65a6e4524ebf..ce0215fa20b5 100644 --- a/x/staking/app_test.go +++ b/x/staking/app_test.go @@ -7,11 +7,11 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + banktypes "github.com/eligion/cosmos-sdk/x/bank/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func checkValidator(t *testing.T, app *simapp.SimApp, addr sdk.ValAddress, expFound bool) types.Validator { diff --git a/x/staking/bench_test.go b/x/staking/bench_test.go index 7705b6d3114f..8316c90a4142 100644 --- a/x/staking/bench_test.go +++ b/x/staking/bench_test.go @@ -3,11 +3,11 @@ package staking_test import ( "testing" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func BenchmarkValidateGenesis10Validators(b *testing.B) { diff --git a/x/staking/client/cli/flags.go b/x/staking/client/cli/flags.go index d6725e8c1da4..4fc0d66770c1 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/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) const ( diff --git a/x/staking/client/cli/query.go b/x/staking/client/cli/query.go index 0982296161e4..0bc50124626f 100644 --- a/x/staking/client/cli/query.go +++ b/x/staking/client/cli/query.go @@ -7,11 +7,11 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // GetQueryCmd returns the cli query commands for this module diff --git a/x/staking/client/cli/tx.go b/x/staking/client/cli/tx.go index cafee004c1b4..5029bf7d6974 100644 --- a/x/staking/client/cli/tx.go +++ b/x/staking/client/cli/tx.go @@ -8,14 +8,14 @@ import ( "github.com/spf13/cobra" flag "github.com/spf13/pflag" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/version" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/client/tx" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/version" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // default values diff --git a/x/staking/client/cli/tx_test.go b/x/staking/client/cli/tx_test.go index a7eb30fde3c2..9bd0a7b2634f 100644 --- a/x/staking/client/cli/tx_test.go +++ b/x/staking/client/cli/tx_test.go @@ -6,8 +6,8 @@ import ( "github.com/spf13/pflag" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" ) func TestPrepareConfigForTxCreateValidator(t *testing.T) { diff --git a/x/staking/client/cli/utils.go b/x/staking/client/cli/utils.go index 241ac314054f..34d814a9438e 100644 --- a/x/staking/client/cli/utils.go +++ b/x/staking/client/cli/utils.go @@ -3,8 +3,8 @@ package cli import ( "errors" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func buildCommissionRates(rateStr, maxRateStr, maxChangeRateStr string) (commission types.CommissionRates, err error) { diff --git a/x/staking/client/rest/grpc_query_test.go b/x/staking/client/rest/grpc_query_test.go index 55a10194f603..9d0ae9ad74b5 100644 --- a/x/staking/client/rest/grpc_query_test.go +++ b/x/staking/client/rest/grpc_query_test.go @@ -9,18 +9,18 @@ import ( "github.com/gogo/protobuf/proto" "github.com/stretchr/testify/suite" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - grpctypes "github.com/cosmos/cosmos-sdk/types/grpc" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/staking/client/cli" - stakingtestutil "github.com/cosmos/cosmos-sdk/x/staking/client/testutil" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + grpctypes "github.com/eligion/cosmos-sdk/types/grpc" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/staking/client/cli" + stakingtestutil "github.com/eligion/cosmos-sdk/x/staking/client/testutil" + "github.com/eligion/cosmos-sdk/x/staking/types" ) type IntegrationTestSuite struct { diff --git a/x/staking/client/rest/query.go b/x/staking/client/rest/query.go index b833766c2f91..eee7e51d613c 100644 --- a/x/staking/client/rest/query.go +++ b/x/staking/client/rest/query.go @@ -8,11 +8,11 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - clientrest "github.com/cosmos/cosmos-sdk/client/rest" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + clientrest "github.com/eligion/cosmos-sdk/client/rest" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func registerQueryRoutes(clientCtx client.Context, r *mux.Router) { diff --git a/x/staking/client/rest/rest.go b/x/staking/client/rest/rest.go index 6f9b7e1e2a60..01925a529cff 100644 --- a/x/staking/client/rest/rest.go +++ b/x/staking/client/rest/rest.go @@ -3,8 +3,8 @@ package rest import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/rest" ) func RegisterHandlers(clientCtx client.Context, rtr *mux.Router) { diff --git a/x/staking/client/rest/rest_test.go b/x/staking/client/rest/rest_test.go index 43b9afdb6ddf..fb7028458bc7 100644 --- a/x/staking/client/rest/rest_test.go +++ b/x/staking/client/rest/rest_test.go @@ -5,8 +5,8 @@ package rest_test import ( "fmt" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func (s *IntegrationTestSuite) TestLegacyGetValidators() { diff --git a/x/staking/client/rest/tx.go b/x/staking/client/rest/tx.go index 26e859c41a0d..56935e02c466 100644 --- a/x/staking/client/rest/tx.go +++ b/x/staking/client/rest/tx.go @@ -6,11 +6,11 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func registerTxHandlers(clientCtx client.Context, r *mux.Router) { diff --git a/x/staking/client/rest/utils.go b/x/staking/client/rest/utils.go index f8c6fe113255..28d183153155 100644 --- a/x/staking/client/rest/utils.go +++ b/x/staking/client/rest/utils.go @@ -6,11 +6,11 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - authtx "github.com/cosmos/cosmos-sdk/x/auth/tx" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + authtx "github.com/eligion/cosmos-sdk/x/auth/tx" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // contains checks if the a given query contains one of the tx types diff --git a/x/staking/client/testutil/cli_test.go b/x/staking/client/testutil/cli_test.go index 0a7a5cc25871..ecec5c4d700d 100644 --- a/x/staking/client/testutil/cli_test.go +++ b/x/staking/client/testutil/cli_test.go @@ -5,7 +5,7 @@ package testutil import ( "testing" - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" ) diff --git a/x/staking/client/testutil/suite.go b/x/staking/client/testutil/suite.go index 807e2b6e7667..326200f1f7dc 100644 --- a/x/staking/client/testutil/suite.go +++ b/x/staking/client/testutil/suite.go @@ -12,17 +12,17 @@ import ( "github.com/tendermint/tendermint/proto/tendermint/crypto" "github.com/tendermint/tendermint/rpc/client/http" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/crypto/hd" - "github.com/cosmos/cosmos-sdk/crypto/keyring" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - banktestutil "github.com/cosmos/cosmos-sdk/x/bank/client/testutil" - "github.com/cosmos/cosmos-sdk/x/staking/client/cli" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/crypto/hd" + "github.com/eligion/cosmos-sdk/crypto/keyring" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + banktestutil "github.com/eligion/cosmos-sdk/x/bank/client/testutil" + "github.com/eligion/cosmos-sdk/x/staking/client/cli" + "github.com/eligion/cosmos-sdk/x/staking/types" ) type IntegrationTestSuite struct { @@ -1286,7 +1286,7 @@ func (s *IntegrationTestSuite) TestNewUnbondCmd() { // TestBlockResults tests that the validator updates correctly show when // calling the /block_results RPC endpoint. -// ref: https://github.com/cosmos/cosmos-sdk/issues/7401. +// ref: https://github.com/eligion/cosmos-sdk/issues/7401. func (s *IntegrationTestSuite) TestBlockResults() { require := s.Require() val := s.network.Validators[0] diff --git a/x/staking/client/testutil/test_helpers.go b/x/staking/client/testutil/test_helpers.go index 3a31ea004f3d..0d7e27e08351 100644 --- a/x/staking/client/testutil/test_helpers.go +++ b/x/staking/client/testutil/test_helpers.go @@ -3,12 +3,12 @@ package testutil import ( "fmt" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/testutil" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - sdk "github.com/cosmos/cosmos-sdk/types" - stakingcli "github.com/cosmos/cosmos-sdk/x/staking/client/cli" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/testutil" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + sdk "github.com/eligion/cosmos-sdk/types" + stakingcli "github.com/eligion/cosmos-sdk/x/staking/client/cli" ) var commonArgs = []string{ diff --git a/x/staking/common_test.go b/x/staking/common_test.go index 5d8897b1c0a8..979620aa8320 100644 --- a/x/staking/common_test.go +++ b/x/staking/common_test.go @@ -5,13 +5,13 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func init() { diff --git a/x/staking/genesis.go b/x/staking/genesis.go index 34a5be852a02..9e2498d40abe 100644 --- a/x/staking/genesis.go +++ b/x/staking/genesis.go @@ -7,10 +7,10 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmtypes "github.com/tendermint/tendermint/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // InitGenesis sets the pool and parameters for the provided keeper. For each @@ -105,7 +105,7 @@ func InitGenesis( if bondedPool == nil { panic(fmt.Sprintf("%s module account has not been set", types.BondedPoolName)) } - // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 + // TODO remove with genesis 2-phases refactor https://github.com/eligion/cosmos-sdk/issues/2862 bondedBalance := bankKeeper.GetAllBalances(ctx, bondedPool.GetAddress()) if bondedBalance.IsZero() { accountKeeper.SetModuleAccount(ctx, bondedPool) diff --git a/x/staking/genesis_test.go b/x/staking/genesis_test.go index 0c686e2d998e..4004c51acd3c 100644 --- a/x/staking/genesis_test.go +++ b/x/staking/genesis_test.go @@ -10,13 +10,13 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func bootstrapGenesisTest(numAddrs int) (*simapp.SimApp, sdk.Context, []sdk.AccAddress) { diff --git a/x/staking/handler.go b/x/staking/handler.go index 6d89c7a29c53..87804f2b9b02 100644 --- a/x/staking/handler.go +++ b/x/staking/handler.go @@ -1,10 +1,10 @@ package staking import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func NewHandler(k keeper.Keeper) sdk.Handler { diff --git a/x/staking/handler_test.go b/x/staking/handler_test.go index 12dea7d7267a..c1e1fb040b3d 100644 --- a/x/staking/handler_test.go +++ b/x/staking/handler_test.go @@ -13,17 +13,17 @@ import ( "github.com/golang/protobuf/proto" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/crypto/keys/secp256k1" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func bootstrapHandlerGenesisTest(t *testing.T, power int64, numAddrs int, accAmount sdk.Int) (*simapp.SimApp, sdk.Context, []sdk.AccAddress, []sdk.ValAddress) { diff --git a/x/staking/keeper/alias_functions.go b/x/staking/keeper/alias_functions.go index 36c2d23661c6..6cf39c7bc0f7 100644 --- a/x/staking/keeper/alias_functions.go +++ b/x/staking/keeper/alias_functions.go @@ -3,8 +3,8 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // Validator Set diff --git a/x/staking/keeper/common_test.go b/x/staking/keeper/common_test.go index fb07d8694e8b..5c99ca2f8483 100644 --- a/x/staking/keeper/common_test.go +++ b/x/staking/keeper/common_test.go @@ -6,11 +6,11 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/staking/keeper/delegation.go b/x/staking/keeper/delegation.go index 6ed92e37aab9..663819175494 100644 --- a/x/staking/keeper/delegation.go +++ b/x/staking/keeper/delegation.go @@ -5,9 +5,9 @@ import ( "fmt" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // return a specific delegation diff --git a/x/staking/keeper/delegation_test.go b/x/staking/keeper/delegation_test.go index cac61af1fbe2..ec33e36d42ad 100644 --- a/x/staking/keeper/delegation_test.go +++ b/x/staking/keeper/delegation_test.go @@ -7,11 +7,11 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // tests GetDelegation, GetDelegatorDelegations, SetDelegation, RemoveDelegation, GetDelegatorDelegations diff --git a/x/staking/keeper/grpc_query.go b/x/staking/keeper/grpc_query.go index 8fa16354d48e..a9357a8f1880 100644 --- a/x/staking/keeper/grpc_query.go +++ b/x/staking/keeper/grpc_query.go @@ -7,10 +7,10 @@ import ( "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // 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/grpc_query_test.go b/x/staking/keeper/grpc_query_test.go index ba43269e2e32..66c9ecfd1c10 100644 --- a/x/staking/keeper/grpc_query_test.go +++ b/x/staking/keeper/grpc_query_test.go @@ -7,12 +7,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/query" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/query" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func (suite *KeeperTestSuite) TestGRPCQueryValidators() { diff --git a/x/staking/keeper/historical_info.go b/x/staking/keeper/historical_info.go index df13dff357f1..b417812dd33d 100644 --- a/x/staking/keeper/historical_info.go +++ b/x/staking/keeper/historical_info.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // GetHistoricalInfo gets the historical info at a given height diff --git a/x/staking/keeper/historical_info_test.go b/x/staking/keeper/historical_info_test.go index db6c6a6b47af..e87dce3f6dd7 100644 --- a/x/staking/keeper/historical_info_test.go +++ b/x/staking/keeper/historical_info_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // IsValSetSorted reports whether valset is sorted. diff --git a/x/staking/keeper/hooks.go b/x/staking/keeper/hooks.go index b8f25908babd..7b4db106c9f4 100644 --- a/x/staking/keeper/hooks.go +++ b/x/staking/keeper/hooks.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // Implements StakingHooks interface diff --git a/x/staking/keeper/invariants.go b/x/staking/keeper/invariants.go index 3516316f6c8b..2a689c11e94c 100644 --- a/x/staking/keeper/invariants.go +++ b/x/staking/keeper/invariants.go @@ -4,8 +4,8 @@ import ( "bytes" "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // RegisterInvariants registers all staking invariants diff --git a/x/staking/keeper/keeper.go b/x/staking/keeper/keeper.go index 6211dcf6ad94..83e0a3b7a10a 100644 --- a/x/staking/keeper/keeper.go +++ b/x/staking/keeper/keeper.go @@ -5,10 +5,10 @@ import ( "github.com/tendermint/tendermint/libs/log" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // Implements ValidatorSet interface diff --git a/x/staking/keeper/keeper_test.go b/x/staking/keeper/keeper_test.go index b0533c8ab02f..dc8a29d9f3b7 100644 --- a/x/staking/keeper/keeper_test.go +++ b/x/staking/keeper/keeper_test.go @@ -8,11 +8,11 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/types" ) type KeeperTestSuite struct { diff --git a/x/staking/keeper/migrations.go b/x/staking/keeper/migrations.go index 101ca195b390..12719e108ad5 100644 --- a/x/staking/keeper/migrations.go +++ b/x/staking/keeper/migrations.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - v043 "github.com/cosmos/cosmos-sdk/x/staking/legacy/v043" + sdk "github.com/eligion/cosmos-sdk/types" + v043 "github.com/eligion/cosmos-sdk/x/staking/legacy/v043" ) // Migrator is a struct for handling in-place store migrations. diff --git a/x/staking/keeper/msg_server.go b/x/staking/keeper/msg_server.go index 3642cef1e5a4..5964da1fd01d 100644 --- a/x/staking/keeper/msg_server.go +++ b/x/staking/keeper/msg_server.go @@ -7,11 +7,11 @@ import ( metrics "github.com/armon/go-metrics" tmstrings "github.com/tendermint/tendermint/libs/strings" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/staking/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/staking/types" ) type msgServer struct { diff --git a/x/staking/keeper/params.go b/x/staking/keeper/params.go index 10a8b7e8f03a..8ef63033b9f3 100644 --- a/x/staking/keeper/params.go +++ b/x/staking/keeper/params.go @@ -3,8 +3,8 @@ package keeper import ( "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // UnbondingTime @@ -42,7 +42,7 @@ func (k Keeper) BondDenom(ctx sdk.Context) (res string) { // PowerReduction - is the amount of staking tokens required for 1 unit of consensus-engine power. // Currently, this returns a global variable that the app developer can tweak. // TODO: we might turn this into an on-chain param: -// https://github.com/cosmos/cosmos-sdk/issues/8365 +// https://github.com/eligion/cosmos-sdk/issues/8365 func (k Keeper) PowerReduction(ctx sdk.Context) sdk.Int { return sdk.DefaultPowerReduction } diff --git a/x/staking/keeper/pool.go b/x/staking/keeper/pool.go index c24c87632358..6a53f0434a5d 100644 --- a/x/staking/keeper/pool.go +++ b/x/staking/keeper/pool.go @@ -1,9 +1,9 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // GetBondedPool returns the bonded tokens pool's module account diff --git a/x/staking/keeper/power_reduction.go b/x/staking/keeper/power_reduction.go index d979228b36fa..1100f72670cb 100644 --- a/x/staking/keeper/power_reduction.go +++ b/x/staking/keeper/power_reduction.go @@ -1,7 +1,7 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // TokensToConsensusPower - convert input tokens to potential consensus-engine power diff --git a/x/staking/keeper/power_reduction_test.go b/x/staking/keeper/power_reduction_test.go index e18230d854b2..a959800f6c1f 100644 --- a/x/staking/keeper/power_reduction_test.go +++ b/x/staking/keeper/power_reduction_test.go @@ -1,7 +1,7 @@ package keeper_test import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func (suite *KeeperTestSuite) TestTokensToConsensusPower() { diff --git a/x/staking/keeper/querier.go b/x/staking/keeper/querier.go index 06bab770467d..365515f32bfc 100644 --- a/x/staking/keeper/querier.go +++ b/x/staking/keeper/querier.go @@ -6,11 +6,11 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // creates a querier for staking REST endpoints diff --git a/x/staking/keeper/querier_test.go b/x/staking/keeper/querier_test.go index 6abe7d53cddd..de419f107536 100644 --- a/x/staking/keeper/querier_test.go +++ b/x/staking/keeper/querier_test.go @@ -8,12 +8,12 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestNewQuerier(t *testing.T) { diff --git a/x/staking/keeper/query_utils.go b/x/staking/keeper/query_utils.go index d757522f6dd7..89a8b2da11ce 100644 --- a/x/staking/keeper/query_utils.go +++ b/x/staking/keeper/query_utils.go @@ -1,8 +1,8 @@ package keeper import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/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/x/staking/keeper/slash.go b/x/staking/keeper/slash.go index 7b88fbfca17c..b2cc7ae7b3da 100644 --- a/x/staking/keeper/slash.go +++ b/x/staking/keeper/slash.go @@ -3,8 +3,8 @@ package keeper import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - types "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/x/staking/types" ) // Slash a validator for an infraction committed at a known height @@ -33,7 +33,7 @@ func (k Keeper) Slash(ctx sdk.Context, consAddr sdk.ConsAddress, infractionHeigh slashAmountDec := amount.ToDec().Mul(slashFactor) slashAmount := slashAmountDec.TruncateInt() - // ref https://github.com/cosmos/cosmos-sdk/issues/1348 + // ref https://github.com/eligion/cosmos-sdk/issues/1348 validator, found := k.GetValidatorByConsAddr(ctx, consAddr) if !found { diff --git a/x/staking/keeper/slash_test.go b/x/staking/keeper/slash_test.go index 64bdb0177d57..4f477042657e 100644 --- a/x/staking/keeper/slash_test.go +++ b/x/staking/keeper/slash_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // bootstrapSlashTest creates 3 validators and bootstrap the app. @@ -328,7 +328,7 @@ func TestSlashWithUnbondingDelegation(t *testing.T) { // slash validator again // all originally bonded stake has been slashed, so this will have no effect // on the unbonding delegation, but it will slash stake bonded since the infraction - // this may not be the desirable behaviour, ref https://github.com/cosmos/cosmos-sdk/issues/1440 + // this may not be the desirable behaviour, ref https://github.com/eligion/cosmos-sdk/issues/1440 ctx = ctx.WithBlockHeight(13) app.StakingKeeper.Slash(ctx, consAddr, 9, 10, fraction) @@ -354,7 +354,7 @@ func TestSlashWithUnbondingDelegation(t *testing.T) { // slash validator again // all originally bonded stake has been slashed, so this will have no effect // on the unbonding delegation, but it will slash stake bonded since the infraction - // this may not be the desirable behaviour, ref https://github.com/cosmos/cosmos-sdk/issues/1440 + // this may not be the desirable behaviour, ref https://github.com/eligion/cosmos-sdk/issues/1440 ctx = ctx.WithBlockHeight(13) app.StakingKeeper.Slash(ctx, consAddr, 9, 10, fraction) diff --git a/x/staking/keeper/test_common.go b/x/staking/keeper/test_common.go index 42e94740d3e6..54dade6cd4d5 100644 --- a/x/staking/keeper/test_common.go +++ b/x/staking/keeper/test_common.go @@ -4,8 +4,8 @@ import ( "bytes" "math/rand" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // does a certain by-power index record exist diff --git a/x/staking/keeper/val_state_change.go b/x/staking/keeper/val_state_change.go index 7392936f5421..38472c180d44 100644 --- a/x/staking/keeper/val_state_change.go +++ b/x/staking/keeper/val_state_change.go @@ -8,8 +8,8 @@ import ( gogotypes "github.com/gogo/protobuf/types" abci "github.com/tendermint/tendermint/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // BlockValidatorUpdates calculates the ValidatorUpdates for the current block diff --git a/x/staking/keeper/validator.go b/x/staking/keeper/validator.go index ca6830697438..ebe7dd467393 100644 --- a/x/staking/keeper/validator.go +++ b/x/staking/keeper/validator.go @@ -6,8 +6,8 @@ import ( gogotypes "github.com/gogo/protobuf/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // get a single validator diff --git a/x/staking/keeper/validator_test.go b/x/staking/keeper/validator_test.go index 31da70eab6a8..cefbcebe8c9e 100644 --- a/x/staking/keeper/validator_test.go +++ b/x/staking/keeper/validator_test.go @@ -10,12 +10,12 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func newMonikerValidator(t testing.TB, operator sdk.ValAddress, pubKey cryptotypes.PubKey, moniker string) types.Validator { diff --git a/x/staking/legacy/v034/types.go b/x/staking/legacy/v034/types.go index 868a6901f8a7..1cf865c7014b 100644 --- a/x/staking/legacy/v034/types.go +++ b/x/staking/legacy/v034/types.go @@ -7,10 +7,10 @@ package v034 import ( "time" - "github.com/cosmos/cosmos-sdk/codec/legacy" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32" + "github.com/eligion/cosmos-sdk/codec/legacy" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/bech32/legacybech32" ) const ( diff --git a/x/staking/legacy/v036/types.go b/x/staking/legacy/v036/types.go index 7cc08216682a..2657cbec0912 100644 --- a/x/staking/legacy/v036/types.go +++ b/x/staking/legacy/v036/types.go @@ -7,11 +7,11 @@ package v036 import ( "time" - "github.com/cosmos/cosmos-sdk/codec/legacy" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32" - v034staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v034" + "github.com/eligion/cosmos-sdk/codec/legacy" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/bech32/legacybech32" + v034staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v034" ) const ( diff --git a/x/staking/legacy/v038/types.go b/x/staking/legacy/v038/types.go index c0eb7946b115..2396a287d01d 100644 --- a/x/staking/legacy/v038/types.go +++ b/x/staking/legacy/v038/types.go @@ -7,12 +7,12 @@ package v038 import ( "time" - "github.com/cosmos/cosmos-sdk/codec/legacy" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/bech32/legacybech32" - v034staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v034" - v036staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v036" + "github.com/eligion/cosmos-sdk/codec/legacy" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/bech32/legacybech32" + v034staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v034" + v036staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v036" ) const ( diff --git a/x/staking/legacy/v040/genesis.pb.go b/x/staking/legacy/v040/genesis.pb.go index af9e607d28ac..afeaef92de60 100644 --- a/x/staking/legacy/v040/genesis.pb.go +++ b/x/staking/legacy/v040/genesis.pb.go @@ -1,5 +1,5 @@ // Package v040 is taken from: -// https://github.com/cosmos/cosmos-sdk/blob/v0.40.1/x/staking/types/genesis.pb.go +// https://github.com/eligion/cosmos-sdk/blob/v0.40.1/x/staking/types/genesis.pb.go // by copy-pasted only the relevants parts for Genesis. // nolint package v040 @@ -10,7 +10,7 @@ import ( math "math" math_bits "math/bits" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" ) @@ -32,7 +32,7 @@ type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // last_total_power tracks the total amounts of bonded tokens recorded during // the previous end block. - LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"last_total_power" yaml:"last_total_power"` + LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"last_total_power" yaml:"last_total_power"` // last_validator_powers is a special index that provides a historical list // of the last-block's bonded validators. LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers" yaml:"last_validator_powers"` diff --git a/x/staking/legacy/v040/keys.go b/x/staking/legacy/v040/keys.go index c01c41a417e3..40e71179a7bb 100644 --- a/x/staking/legacy/v040/keys.go +++ b/x/staking/legacy/v040/keys.go @@ -1,5 +1,5 @@ // Package v040 is copy-pasted from: -// https://github.com/cosmos/cosmos-sdk/blob/v0.41.0/x/staking/types/keys.go +// https://github.com/eligion/cosmos-sdk/blob/v0.41.0/x/staking/types/keys.go package v040 import ( @@ -9,9 +9,9 @@ import ( "strconv" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" + "github.com/eligion/cosmos-sdk/x/staking/types" ) const ( diff --git a/x/staking/legacy/v040/migrate.go b/x/staking/legacy/v040/migrate.go index a0d9b4c90378..d99f4068c9eb 100644 --- a/x/staking/legacy/v040/migrate.go +++ b/x/staking/legacy/v040/migrate.go @@ -3,9 +3,9 @@ package v040 import ( "fmt" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - v034staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v034" - v038staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v038" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + v034staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v034" + v038staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v038" ) func migrateBondStatus(oldStatus v034staking.BondStatus) BondStatus { diff --git a/x/staking/legacy/v040/migrate_test.go b/x/staking/legacy/v040/migrate_test.go index af409dde26b8..859f5079111b 100644 --- a/x/staking/legacy/v040/migrate_test.go +++ b/x/staking/legacy/v040/migrate_test.go @@ -6,12 +6,12 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - v034staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v034" - v038staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v038" - v040staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v040" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + v034staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v034" + v038staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v038" + v040staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v040" ) func TestMigrate(t *testing.T) { diff --git a/x/staking/legacy/v040/staking.pb.go b/x/staking/legacy/v040/staking.pb.go index 3200520a71a4..d3604298dd56 100644 --- a/x/staking/legacy/v040/staking.pb.go +++ b/x/staking/legacy/v040/staking.pb.go @@ -1,5 +1,5 @@ // Package v040 is taken from: -// https://github.com/cosmos/cosmos-sdk/blob/v0.40.1/x/staking/types/staking.pb.go +// https://github.com/eligion/cosmos-sdk/blob/v0.40.1/x/staking/types/staking.pb.go // nolint package v040 @@ -15,9 +15,9 @@ import ( strings "strings" time "time" - types1 "github.com/cosmos/cosmos-sdk/codec/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types2 "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/eligion/cosmos-sdk/codec/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types2 "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" proto "github.com/gogo/protobuf/proto" @@ -136,9 +136,9 @@ func (m *HistoricalInfo) GetValset() []Validator { // CommissionRates defines the initial commission rates to be used for creating // a validator. type CommissionRates struct { - Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"rate"` - MaxRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_rate" yaml:"max_rate"` - MaxChangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=max_change_rate,json=maxChangeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_change_rate" yaml:"max_change_rate"` + Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"rate"` + MaxRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"max_rate" yaml:"max_rate"` + MaxChangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=max_change_rate,json=maxChangeRate,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"max_change_rate" yaml:"max_change_rate"` } func (m *CommissionRates) Reset() { *m = CommissionRates{} } @@ -307,13 +307,13 @@ type Validator struct { ConsensusPubkey *types1.Any `protobuf:"bytes,2,opt,name=consensus_pubkey,json=consensusPubkey,proto3" json:"consensus_pubkey,omitempty" yaml:"consensus_pubkey"` Jailed bool `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed,omitempty"` Status BondStatus `protobuf:"varint,4,opt,name=status,proto3,enum=cosmos.staking.v1beta1.BondStatus" json:"status,omitempty"` - Tokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"tokens"` - DelegatorShares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=delegator_shares,json=delegatorShares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"delegator_shares" yaml:"delegator_shares"` + Tokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"tokens"` + DelegatorShares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=delegator_shares,json=delegatorShares,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"delegator_shares" yaml:"delegator_shares"` Description Description `protobuf:"bytes,7,opt,name=description,proto3" json:"description"` UnbondingHeight int64 `protobuf:"varint,8,opt,name=unbonding_height,json=unbondingHeight,proto3" json:"unbonding_height,omitempty" yaml:"unbonding_height"` UnbondingTime time.Time `protobuf:"bytes,9,opt,name=unbonding_time,json=unbondingTime,proto3,stdtime" json:"unbonding_time" yaml:"unbonding_time"` Commission Commission `protobuf:"bytes,10,opt,name=commission,proto3" json:"commission"` - MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation" yaml:"min_self_delegation"` + MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"min_self_delegation" yaml:"min_self_delegation"` } func (m *Validator) Reset() { *m = Validator{} } @@ -570,7 +570,7 @@ func (m *DVVTriplets) GetTriplets() []DVVTriplet { type Delegation struct { DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` - Shares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=shares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shares"` + Shares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=shares,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"shares"` } func (m *Delegation) Reset() { *m = Delegation{} } @@ -649,8 +649,8 @@ var xxx_messageInfo_UnbondingDelegation proto.InternalMessageInfo type UnbondingDelegationEntry struct { CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty" yaml:"creation_height"` CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"` - InitialBalance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"initial_balance" yaml:"initial_balance"` - Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"` + InitialBalance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"initial_balance" yaml:"initial_balance"` + Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"balance"` } func (m *UnbondingDelegationEntry) Reset() { *m = UnbondingDelegationEntry{} } @@ -703,8 +703,8 @@ func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time { type RedelegationEntry struct { CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty" yaml:"creation_height"` CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"` - InitialBalance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"initial_balance" yaml:"initial_balance"` - SharesDst github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=shares_dst,json=sharesDst,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shares_dst"` + InitialBalance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"initial_balance" yaml:"initial_balance"` + SharesDst github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=shares_dst,json=sharesDst,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"shares_dst"` } func (m *RedelegationEntry) Reset() { *m = RedelegationEntry{} } @@ -928,7 +928,7 @@ func (m *DelegationResponse) GetBalance() types2.Coin { // responses. type RedelegationEntryResponse struct { RedelegationEntry RedelegationEntry `protobuf:"bytes,1,opt,name=redelegation_entry,json=redelegationEntry,proto3" json:"redelegation_entry"` - Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"` + Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"balance"` } func (m *RedelegationEntryResponse) Reset() { *m = RedelegationEntryResponse{} } @@ -1029,8 +1029,8 @@ func (m *RedelegationResponse) GetEntries() []RedelegationEntryResponse { // Pool is used for tracking bonded and not-bonded token supply of the bond // denomination. type Pool struct { - NotBondedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=not_bonded_tokens,json=notBondedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"not_bonded_tokens"` - BondedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=bonded_tokens,json=bondedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bonded_tokens" yaml:"bonded_tokens"` + NotBondedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=not_bonded_tokens,json=notBondedTokens,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"not_bonded_tokens"` + BondedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=bonded_tokens,json=bondedTokens,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"bonded_tokens" yaml:"bonded_tokens"` } func (m *Pool) Reset() { *m = Pool{} } diff --git a/x/staking/legacy/v040/types.go b/x/staking/legacy/v040/types.go index 8964296fa97d..e45f87ff3103 100644 --- a/x/staking/legacy/v040/types.go +++ b/x/staking/legacy/v040/types.go @@ -7,7 +7,7 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // Staking params default values diff --git a/x/staking/legacy/v043/store.go b/x/staking/legacy/v043/store.go index 2e06d7d674ea..6b8bdca833ce 100644 --- a/x/staking/legacy/v043/store.go +++ b/x/staking/legacy/v043/store.go @@ -1,13 +1,13 @@ package v043 import ( - "github.com/cosmos/cosmos-sdk/store/prefix" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" - v040auth "github.com/cosmos/cosmos-sdk/x/auth/legacy/v040" - v043distribution "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v043" - v040staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v040" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/store/prefix" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" + v040auth "github.com/eligion/cosmos-sdk/x/auth/legacy/v040" + v043distribution "github.com/eligion/cosmos-sdk/x/distribution/legacy/v043" + v040staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v040" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // migratePrefixAddressAddressAddress is a helper function that migrates all keys of format: diff --git a/x/staking/legacy/v043/store_test.go b/x/staking/legacy/v043/store_test.go index 099691115489..389ef3c8914b 100644 --- a/x/staking/legacy/v043/store_test.go +++ b/x/staking/legacy/v043/store_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/testutil" - "github.com/cosmos/cosmos-sdk/testutil/testdata" - sdk "github.com/cosmos/cosmos-sdk/types" - v040staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v040" - v043staking "github.com/cosmos/cosmos-sdk/x/staking/legacy/v043" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/testutil" + "github.com/eligion/cosmos-sdk/testutil/testdata" + sdk "github.com/eligion/cosmos-sdk/types" + v040staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v040" + v043staking "github.com/eligion/cosmos-sdk/x/staking/legacy/v043" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestStoreMigration(t *testing.T) { diff --git a/x/staking/module.go b/x/staking/module.go index 3892a8aa93ac..921c4d706fd2 100644 --- a/x/staking/module.go +++ b/x/staking/module.go @@ -12,17 +12,17 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - cdctypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/staking/client/cli" - "github.com/cosmos/cosmos-sdk/x/staking/client/rest" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/simulation" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + cdctypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/staking/client/cli" + "github.com/eligion/cosmos-sdk/x/staking/client/rest" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/simulation" + "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/staking/module_test.go b/x/staking/module_test.go index b1d126d0c38a..72ce344e1eab 100644 --- a/x/staking/module_test.go +++ b/x/staking/module_test.go @@ -7,9 +7,9 @@ import ( abcitypes "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestItCreatesModuleAccountOnInitBlock(t *testing.T) { diff --git a/x/staking/simulation/common_test.go b/x/staking/simulation/common_test.go index e22ecd15aa2c..785076fa444e 100644 --- a/x/staking/simulation/common_test.go +++ b/x/staking/simulation/common_test.go @@ -3,7 +3,7 @@ package simulation_test import ( "math/big" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func init() { diff --git a/x/staking/simulation/decoder.go b/x/staking/simulation/decoder.go index eec0ce22a01a..24622c6373f6 100644 --- a/x/staking/simulation/decoder.go +++ b/x/staking/simulation/decoder.go @@ -4,10 +4,10 @@ import ( "bytes" "fmt" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // NewDecodeStore returns a decoder function closure that unmarshals the KVPair's diff --git a/x/staking/simulation/decoder_test.go b/x/staking/simulation/decoder_test.go index 6584df24f508..0bb86591e341 100644 --- a/x/staking/simulation/decoder_test.go +++ b/x/staking/simulation/decoder_test.go @@ -7,14 +7,14 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/kv" - "github.com/cosmos/cosmos-sdk/x/staking/simulation" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/kv" + "github.com/eligion/cosmos-sdk/x/staking/simulation" + "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/staking/simulation/genesis.go b/x/staking/simulation/genesis.go index cf4e8e50c44d..7ffb4e6aaabb 100644 --- a/x/staking/simulation/genesis.go +++ b/x/staking/simulation/genesis.go @@ -8,10 +8,10 @@ import ( "math/rand" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // Simulation parameter constants diff --git a/x/staking/simulation/genesis_test.go b/x/staking/simulation/genesis_test.go index b7dae7dfb97f..a96e45de45fe 100644 --- a/x/staking/simulation/genesis_test.go +++ b/x/staking/simulation/genesis_test.go @@ -7,13 +7,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/types/module" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/staking/simulation" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/types/module" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/staking/simulation" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // TestRandomizedGenState tests the normal scenario of applying RandomizedGenState. diff --git a/x/staking/simulation/operations.go b/x/staking/simulation/operations.go index ce5ef3dc38ac..f8052fc9d2e4 100644 --- a/x/staking/simulation/operations.go +++ b/x/staking/simulation/operations.go @@ -4,14 +4,14 @@ import ( "fmt" "math/rand" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/codec" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // Simulation operation weights constants diff --git a/x/staking/simulation/operations_test.go b/x/staking/simulation/operations_test.go index da15fdd5e489..53c2686161b2 100644 --- a/x/staking/simulation/operations_test.go +++ b/x/staking/simulation/operations_test.go @@ -9,15 +9,15 @@ import ( abci "github.com/tendermint/tendermint/abci/types" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - simappparams "github.com/cosmos/cosmos-sdk/simapp/params" - sdk "github.com/cosmos/cosmos-sdk/types" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" - minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" - "github.com/cosmos/cosmos-sdk/x/staking/simulation" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + simappparams "github.com/eligion/cosmos-sdk/simapp/params" + sdk "github.com/eligion/cosmos-sdk/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + distrtypes "github.com/eligion/cosmos-sdk/x/distribution/types" + minttypes "github.com/eligion/cosmos-sdk/x/mint/types" + "github.com/eligion/cosmos-sdk/x/staking/simulation" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // TestWeightedOperations tests the weights of the operations. diff --git a/x/staking/simulation/params.go b/x/staking/simulation/params.go index 30789d346770..5deab2af831b 100644 --- a/x/staking/simulation/params.go +++ b/x/staking/simulation/params.go @@ -6,9 +6,9 @@ import ( "fmt" "math/rand" - simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - "github.com/cosmos/cosmos-sdk/x/simulation" - "github.com/cosmos/cosmos-sdk/x/staking/types" + simtypes "github.com/eligion/cosmos-sdk/types/simulation" + "github.com/eligion/cosmos-sdk/x/simulation" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // ParamChanges defines the parameters that can be modified by param change proposals diff --git a/x/staking/simulation/params_test.go b/x/staking/simulation/params_test.go index 07da026645cf..34b06c3ca70d 100644 --- a/x/staking/simulation/params_test.go +++ b/x/staking/simulation/params_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/staking/simulation" + "github.com/eligion/cosmos-sdk/x/staking/simulation" ) func TestParamChanges(t *testing.T) { diff --git a/x/staking/spec/01_state.md b/x/staking/spec/01_state.md index 9dacbb22fdec..8cb084f9b7f0 100644 --- a/x/staking/spec/01_state.md +++ b/x/staking/spec/01_state.md @@ -22,7 +22,7 @@ and defines overall functioning of the staking module. - Params: `Paramsspace("staking") -> legacy_amino(params)` -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.1/proto/cosmos/staking/v1beta1/staking.proto#L230-L241 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.1/proto/cosmos/staking/v1beta1/staking.proto#L230-L241 ## Validator @@ -75,9 +75,9 @@ is updated during the validator set update process which takes place in [`EndBlo Each validator's state is stored in a `Validator` struct: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L65-L99 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L65-L99 -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L24-L63 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L24-L63 ## Delegation @@ -91,7 +91,7 @@ funds are held in a `Delegation` data structure. It is owned by one delegator, and is associated with the shares for one validator. The sender of the transaction is the owner of the bond. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L159-L170 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L159-L170 ### Delegator Shares @@ -130,7 +130,7 @@ slashed. A UnbondingDelegation object is created every time an unbonding is initiated. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L172-L198 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L172-L198 ## Redelegation @@ -158,7 +158,7 @@ A redelegation object is created every time a redelegation occurs. To prevent - and, the (re)delegator is attempting to create a _new_ redelegation where the source validator for this new redelegation is `Validator X`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L200-L228 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L200-L228 ## Queues @@ -180,7 +180,7 @@ delegations queue is kept. - UnbondingDelegation: `0x41 | format(time) -> []DVPair` -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L123-L133 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L123-L133 ### RedelegationQueue @@ -189,7 +189,7 @@ kept. - RedelegationQueue: `0x42 | format(time) -> []DVVTriplet` -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L140-L152 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L140-L152 ### ValidatorQueue @@ -208,7 +208,7 @@ that multiple validators exist in the queue at the same location. HistoricalInfo objects are stored and pruned at each block such that the staking keeper persists the `n` most recent historical info defined by staking module parameter: `HistoricalEntries`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L15-L22 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/staking.proto#L15-L22 At each BeginBlock, the staking keeper will persist the current Header and the Validators that committed the current block in a `HistoricalInfo` object. The Validators are sorted on their address to ensure that diff --git a/x/staking/spec/03_messages.md b/x/staking/spec/03_messages.md index 9dce41e9a430..7288eea55ed7 100644 --- a/x/staking/spec/03_messages.md +++ b/x/staking/spec/03_messages.md @@ -11,9 +11,9 @@ In this section we describe the processing of the staking messages and the corre A validator is created using the `MsgCreateValidator` message. The validator must be created with an initial delegation from the operator. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L16-L17 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L16-L17 -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L35-L51 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L35-L51 This message is expected to fail if: @@ -36,9 +36,9 @@ in the first end-block. The `Description`, `CommissionRate` of a validator can be updated using the `MsgEditValidator` message. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L19-L20 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L19-L20 -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L56-L76 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L56-L76 This message is expected to fail if: @@ -55,9 +55,9 @@ Within this message the delegator provides coins, and in return receives some amount of their validator's (newly created) delegator-shares that are assigned to `Delegation.Shares`. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L22-L24 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L22-L24 -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90 This message is expected to fail if: @@ -87,13 +87,13 @@ will not be added to the power index until it is unjailed. The `MsgUndelegate` message allows delegators to undelegate their tokens from validator. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L30-L32 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L30-L32 -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121 This message returns a response containing the completion time of the undelegation: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L123-L126 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L123-L126 This message is expected to fail if: @@ -122,13 +122,13 @@ The redelegation command allows delegators to instantly switch validators. Once the unbonding period has passed, the redelegation is automatically completed in the EndBlocker. -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L26-L28 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L26-L28 -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105 This message returns a response containing the completion time of the redelegation: -+++ https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L107-L110 ++++ https://github.com/eligion/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L107-L110 This message is expected to fail if: diff --git a/x/staking/teststaking/helper.go b/x/staking/teststaking/helper.go index 25b021df07a1..ea8553b2e40a 100644 --- a/x/staking/teststaking/helper.go +++ b/x/staking/teststaking/helper.go @@ -6,11 +6,11 @@ import ( "github.com/stretchr/testify/require" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking" - "github.com/cosmos/cosmos-sdk/x/staking/keeper" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking" + "github.com/eligion/cosmos-sdk/x/staking/keeper" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) // Helper is a structure which wraps the staking handler diff --git a/x/staking/teststaking/tm.go b/x/staking/teststaking/tm.go index e927c0e0387a..d0dda8b02f82 100644 --- a/x/staking/teststaking/tm.go +++ b/x/staking/teststaking/tm.go @@ -4,9 +4,9 @@ import ( tmcrypto "github.com/tendermint/tendermint/crypto" tmtypes "github.com/tendermint/tendermint/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // GetTmConsPubKey gets the validator's public key as a tmcrypto.PubKey. diff --git a/x/staking/teststaking/validator.go b/x/staking/teststaking/validator.go index 71459581f0e6..a9b72d748c75 100644 --- a/x/staking/teststaking/validator.go +++ b/x/staking/teststaking/validator.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) // NewValidator is a testing helper method to create validators in tests diff --git a/x/staking/types/authz.go b/x/staking/types/authz.go index f1c2a717069a..0d861b8e615f 100644 --- a/x/staking/types/authz.go +++ b/x/staking/types/authz.go @@ -1,13 +1,13 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/authz" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/authz" ) // TODO: Revisit this once we have propoer gas fee framework. -// Tracking issues https://github.com/cosmos/cosmos-sdk/issues/9054, https://github.com/cosmos/cosmos-sdk/discussions/9072 +// Tracking issues https://github.com/eligion/cosmos-sdk/issues/9054, https://github.com/eligion/cosmos-sdk/discussions/9072 const gasCostPerIteration = uint64(10) // Normalized Msg type URLs diff --git a/x/staking/types/authz.pb.go b/x/staking/types/authz.pb.go index d4e5c5c5bdd6..2e0575c0d3e8 100644 --- a/x/staking/types/authz.pb.go +++ b/x/staking/types/authz.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/regen-network/cosmos-proto" @@ -69,7 +69,7 @@ func (AuthorizationType) EnumDescriptor() ([]byte, []int) { type StakeAuthorization struct { // max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is // empty, there is no spend limit and any amount of coins can be delegated. - MaxTokens *types.Coin `protobuf:"bytes,1,opt,name=max_tokens,json=maxTokens,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"max_tokens,omitempty"` + MaxTokens *types.Coin `protobuf:"bytes,1,opt,name=max_tokens,json=maxTokens,proto3,castrepeated=github.com/eligion/cosmos-sdk/types.Coin" json:"max_tokens,omitempty"` // validators is the oneof that represents either allow_list or deny_list // // Types that are valid to be assigned to Validators: diff --git a/x/staking/types/authz_test.go b/x/staking/types/authz_test.go index 5a8828d1d95a..c7815d9ca31a 100644 --- a/x/staking/types/authz_test.go +++ b/x/staking/types/authz_test.go @@ -6,9 +6,9 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + stakingtypes "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/staking/types/codec.go b/x/staking/types/codec.go index 485549077bd0..57ff6690886d 100644 --- a/x/staking/types/codec.go +++ b/x/staking/types/codec.go @@ -1,12 +1,12 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/msgservice" - "github.com/cosmos/cosmos-sdk/x/authz" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/msgservice" + "github.com/eligion/cosmos-sdk/x/authz" ) // RegisterLegacyAminoCodec registers the necessary x/staking interfaces and concrete types diff --git a/x/staking/types/commission.go b/x/staking/types/commission.go index 54891b5dcac3..7e176f370498 100644 --- a/x/staking/types/commission.go +++ b/x/staking/types/commission.go @@ -5,7 +5,7 @@ import ( yaml "gopkg.in/yaml.v2" - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // NewCommissionRates returns an initialized validator commission rates. diff --git a/x/staking/types/commission_test.go b/x/staking/types/commission_test.go index 3ca95cf4b47f..6f57a8c1420b 100644 --- a/x/staking/types/commission_test.go +++ b/x/staking/types/commission_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestCommissionValidate(t *testing.T) { diff --git a/x/staking/types/data_test.go b/x/staking/types/data_test.go index ed9c64c57a2f..5c41e9603944 100644 --- a/x/staking/types/data_test.go +++ b/x/staking/types/data_test.go @@ -3,10 +3,10 @@ package types_test import ( "fmt" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) var ( diff --git a/x/staking/types/delegation.go b/x/staking/types/delegation.go index 84951e0a34c7..49379698c644 100644 --- a/x/staking/types/delegation.go +++ b/x/staking/types/delegation.go @@ -8,8 +8,8 @@ import ( yaml "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" ) // Implements Delegation interface diff --git a/x/staking/types/delegation_test.go b/x/staking/types/delegation_test.go index 7ca5e8132eb4..e40700231741 100644 --- a/x/staking/types/delegation_test.go +++ b/x/staking/types/delegation_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestDelegationEqual(t *testing.T) { diff --git a/x/staking/types/errors.go b/x/staking/types/errors.go index 777941e53cfe..b6727cd87264 100644 --- a/x/staking/types/errors.go +++ b/x/staking/types/errors.go @@ -1,7 +1,7 @@ package types import ( - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // x/staking module sentinel errors @@ -9,7 +9,7 @@ import ( // TODO: Many of these errors are redundant. They should be removed and replaced // by sdkerrors.ErrInvalidRequest. // -// REF: https://github.com/cosmos/cosmos-sdk/issues/5450 +// REF: https://github.com/eligion/cosmos-sdk/issues/5450 var ( ErrEmptyValidatorAddr = sdkerrors.Register(ModuleName, 2, "empty validator address") ErrNoValidatorFound = sdkerrors.Register(ModuleName, 3, "validator does not exist") diff --git a/x/staking/types/expected_keepers.go b/x/staking/types/expected_keepers.go index 313db78e7b1c..1db4d9f3d565 100644 --- a/x/staking/types/expected_keepers.go +++ b/x/staking/types/expected_keepers.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + sdk "github.com/eligion/cosmos-sdk/types" + authtypes "github.com/eligion/cosmos-sdk/x/auth/types" ) // DistributionKeeper expected distribution keeper (noalias) @@ -19,7 +19,7 @@ type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI - // TODO remove with genesis 2-phases refactor https://github.com/cosmos/cosmos-sdk/issues/2862 + // TODO remove with genesis 2-phases refactor https://github.com/eligion/cosmos-sdk/issues/2862 SetModuleAccount(sdk.Context, authtypes.ModuleAccountI) } diff --git a/x/staking/types/exported.go b/x/staking/types/exported.go index 9599da100d20..3f76d838ed4a 100644 --- a/x/staking/types/exported.go +++ b/x/staking/types/exported.go @@ -3,8 +3,8 @@ package types import ( tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // DelegationI delegation bond for a delegated proof of stake system diff --git a/x/staking/types/genesis.go b/x/staking/types/genesis.go index a3355a1d29c5..f4f08f07fa2c 100644 --- a/x/staking/types/genesis.go +++ b/x/staking/types/genesis.go @@ -3,8 +3,8 @@ package types import ( "encoding/json" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" ) // NewGenesisState creates a new GenesisState instanc e diff --git a/x/staking/types/genesis.pb.go b/x/staking/types/genesis.pb.go index 2ea6f8bf9964..78a12c3e664f 100644 --- a/x/staking/types/genesis.pb.go +++ b/x/staking/types/genesis.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" @@ -30,7 +30,7 @@ type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // last_total_power tracks the total amounts of bonded tokens recorded during // the previous end block. - LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"last_total_power" yaml:"last_total_power"` + LastTotalPower github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"last_total_power" yaml:"last_total_power"` // last_validator_powers is a special index that provides a historical list // of the last-block's bonded validators. LastValidatorPowers []LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers" yaml:"last_validator_powers"` diff --git a/x/staking/types/historical_info.go b/x/staking/types/historical_info.go index 447a559bda7b..11c28aa372f1 100644 --- a/x/staking/types/historical_info.go +++ b/x/staking/types/historical_info.go @@ -6,10 +6,10 @@ import ( "github.com/gogo/protobuf/proto" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // NewHistoricalInfo will create a historical information struct from header and valset diff --git a/x/staking/types/historical_info_test.go b/x/staking/types/historical_info_test.go index 45305de91c56..67ebd9c02d25 100644 --- a/x/staking/types/historical_info_test.go +++ b/x/staking/types/historical_info_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/require" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) var header = tmproto.Header{ diff --git a/x/staking/types/hooks.go b/x/staking/types/hooks.go index 694caca5405a..c9de344d1a91 100644 --- a/x/staking/types/hooks.go +++ b/x/staking/types/hooks.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // combine multiple staking hooks, all hook functions are run in array sequence diff --git a/x/staking/types/keys.go b/x/staking/types/keys.go index 584dba5684c3..a96cf99696d2 100644 --- a/x/staking/types/keys.go +++ b/x/staking/types/keys.go @@ -7,8 +7,8 @@ import ( "strconv" "time" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/address" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/address" ) const ( diff --git a/x/staking/types/keys_test.go b/x/staking/types/keys_test.go index 35667f949da5..178307021957 100644 --- a/x/staking/types/keys_test.go +++ b/x/staking/types/keys_test.go @@ -9,9 +9,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/staking/types/msg.go b/x/staking/types/msg.go index af60ac370d24..b703d996a104 100644 --- a/x/staking/types/msg.go +++ b/x/staking/types/msg.go @@ -3,10 +3,10 @@ package types import ( "bytes" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // staking message types diff --git a/x/staking/types/msg_test.go b/x/staking/types/msg_test.go index f1ba552d9115..777ffe8cc7a5 100644 --- a/x/staking/types/msg_test.go +++ b/x/staking/types/msg_test.go @@ -5,13 +5,13 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) var ( diff --git a/x/staking/types/params.go b/x/staking/types/params.go index 8ccae6b56500..d618b2210949 100644 --- a/x/staking/types/params.go +++ b/x/staking/types/params.go @@ -8,9 +8,9 @@ import ( yaml "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + paramtypes "github.com/eligion/cosmos-sdk/x/params/types" ) // Staking params default values diff --git a/x/staking/types/params_test.go b/x/staking/types/params_test.go index 6218091e0ff5..504beaf3743b 100644 --- a/x/staking/types/params_test.go +++ b/x/staking/types/params_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestParamsEqual(t *testing.T) { diff --git a/x/staking/types/pool.go b/x/staking/types/pool.go index c71d1684f9aa..169109220a41 100644 --- a/x/staking/types/pool.go +++ b/x/staking/types/pool.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // names used as root for pool module accounts: diff --git a/x/staking/types/querier.go b/x/staking/types/querier.go index 08fefae0736a..9ca9abc4c4bd 100644 --- a/x/staking/types/querier.go +++ b/x/staking/types/querier.go @@ -1,7 +1,7 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // query endpoints supported by the staking Querier diff --git a/x/staking/types/query.pb.go b/x/staking/types/query.pb.go index 29f84adc27ac..ec65014f928c 100644 --- a/x/staking/types/query.pb.go +++ b/x/staking/types/query.pb.go @@ -6,7 +6,7 @@ package types import ( context "context" fmt "fmt" - query "github.com/cosmos/cosmos-sdk/types/query" + query "github.com/eligion/cosmos-sdk/types/query" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" diff --git a/x/staking/types/staking.pb.go b/x/staking/types/staking.pb.go index 618599edba36..321c09cd9843 100644 --- a/x/staking/types/staking.pb.go +++ b/x/staking/types/staking.pb.go @@ -7,9 +7,9 @@ import ( bytes "bytes" compress_gzip "compress/gzip" fmt "fmt" - types1 "github.com/cosmos/cosmos-sdk/codec/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types2 "github.com/cosmos/cosmos-sdk/types" + types1 "github.com/eligion/cosmos-sdk/codec/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types2 "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" proto "github.com/gogo/protobuf/proto" @@ -136,11 +136,11 @@ func (m *HistoricalInfo) GetValset() []Validator { // a validator. type CommissionRates struct { // rate is the commission rate charged to delegators, as a fraction. - Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"rate"` + Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"rate"` // max_rate defines the maximum commission rate which validator can ever charge, as a fraction. - MaxRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_rate" yaml:"max_rate"` + MaxRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"max_rate" yaml:"max_rate"` // max_change_rate defines the maximum daily increase of the validator commission, as a fraction. - MaxChangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=max_change_rate,json=maxChangeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max_change_rate" yaml:"max_change_rate"` + MaxChangeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=max_change_rate,json=maxChangeRate,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"max_change_rate" yaml:"max_change_rate"` } func (m *CommissionRates) Reset() { *m = CommissionRates{} } @@ -321,9 +321,9 @@ type Validator struct { // status is the validator status (bonded/unbonding/unbonded). Status BondStatus `protobuf:"varint,4,opt,name=status,proto3,enum=cosmos.staking.v1beta1.BondStatus" json:"status,omitempty"` // tokens define the delegated tokens (incl. self-delegation). - Tokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"tokens"` + Tokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=tokens,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"tokens"` // delegator_shares defines total shares issued to a validator's delegators. - DelegatorShares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=delegator_shares,json=delegatorShares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"delegator_shares" yaml:"delegator_shares"` + DelegatorShares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,opt,name=delegator_shares,json=delegatorShares,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"delegator_shares" yaml:"delegator_shares"` // description defines the description terms for the validator. Description Description `protobuf:"bytes,7,opt,name=description,proto3" json:"description"` // unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. @@ -333,7 +333,7 @@ type Validator struct { // commission defines the commission parameters. Commission Commission `protobuf:"bytes,10,opt,name=commission,proto3" json:"commission"` // min_self_delegation is the validator's self declared minimum self delegation. - MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation" yaml:"min_self_delegation"` + MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,11,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"min_self_delegation" yaml:"min_self_delegation"` } func (m *Validator) Reset() { *m = Validator{} } @@ -593,7 +593,7 @@ type Delegation struct { // validator_address is the bech32-encoded address of the validator. ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` // shares define the delegation shares received. - Shares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=shares,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shares"` + Shares github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=shares,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"shares"` } func (m *Delegation) Reset() { *m = Delegation{} } @@ -678,9 +678,9 @@ type UnbondingDelegationEntry struct { // completion_time is the unix time for unbonding completion. CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"` // initial_balance defines the tokens initially scheduled to receive at completion. - InitialBalance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"initial_balance" yaml:"initial_balance"` + InitialBalance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"initial_balance" yaml:"initial_balance"` // balance defines the tokens to receive at completion. - Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"` + Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"balance"` } func (m *UnbondingDelegationEntry) Reset() { *m = UnbondingDelegationEntry{} } @@ -736,9 +736,9 @@ type RedelegationEntry struct { // completion_time defines the unix time for redelegation completion. CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time" yaml:"completion_time"` // initial_balance defines the initial balance when redelegation started. - InitialBalance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"initial_balance" yaml:"initial_balance"` + InitialBalance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"initial_balance" yaml:"initial_balance"` // shares_dst is the amount of destination-validator shares created by redelegation. - SharesDst github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=shares_dst,json=sharesDst,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"shares_dst"` + SharesDst github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=shares_dst,json=sharesDst,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"shares_dst"` } func (m *RedelegationEntry) Reset() { *m = RedelegationEntry{} } @@ -971,7 +971,7 @@ func (m *DelegationResponse) GetBalance() types2.Coin { // responses. type RedelegationEntryResponse struct { RedelegationEntry RedelegationEntry `protobuf:"bytes,1,opt,name=redelegation_entry,json=redelegationEntry,proto3" json:"redelegation_entry"` - Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"balance"` + Balance github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=balance,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"balance"` } func (m *RedelegationEntryResponse) Reset() { *m = RedelegationEntryResponse{} } @@ -1072,8 +1072,8 @@ func (m *RedelegationResponse) GetEntries() []RedelegationEntryResponse { // Pool is used for tracking bonded and not-bonded token supply of the bond // denomination. type Pool struct { - NotBondedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=not_bonded_tokens,json=notBondedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"not_bonded_tokens"` - BondedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=bonded_tokens,json=bondedTokens,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bonded_tokens" yaml:"bonded_tokens"` + NotBondedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=not_bonded_tokens,json=notBondedTokens,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"not_bonded_tokens"` + BondedTokens github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=bonded_tokens,json=bondedTokens,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"bonded_tokens" yaml:"bonded_tokens"` } func (m *Pool) Reset() { *m = Pool{} } diff --git a/x/staking/types/tx.pb.go b/x/staking/types/tx.pb.go index c3a1bf706599..a09b19743fb3 100644 --- a/x/staking/types/tx.pb.go +++ b/x/staking/types/tx.pb.go @@ -6,9 +6,9 @@ package types import ( context "context" fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" - github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" - types1 "github.com/cosmos/cosmos-sdk/types" + types "github.com/eligion/cosmos-sdk/codec/types" + github_com_cosmos_cosmos_sdk_types "github.com/eligion/cosmos-sdk/types" + types1 "github.com/eligion/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" @@ -40,7 +40,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MsgCreateValidator struct { Description Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"` Commission CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"` - MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation" yaml:"min_self_delegation"` + MinSelfDelegation github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"min_self_delegation" yaml:"min_self_delegation"` DelegatorAddress string `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty" yaml:"delegator_address"` ValidatorAddress string `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty" yaml:"validator_address"` Pubkey *types.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` @@ -125,8 +125,8 @@ type MsgEditValidator struct { // it's not mandatory to update. If not updated, the deserialized rate will be // zero with no way to distinguish if an update was intended. // REF: #2373 - CommissionRate *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=commission_rate,json=commissionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"commission_rate,omitempty" yaml:"commission_rate"` - MinSelfDelegation *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_self_delegation,omitempty" yaml:"min_self_delegation"` + CommissionRate *github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=commission_rate,json=commissionRate,proto3,customtype=github.com/eligion/cosmos-sdk/types.Dec" json:"commission_rate,omitempty" yaml:"commission_rate"` + MinSelfDelegation *github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=min_self_delegation,json=minSelfDelegation,proto3,customtype=github.com/eligion/cosmos-sdk/types.Int" json:"min_self_delegation,omitempty" yaml:"min_self_delegation"` } func (m *MsgEditValidator) Reset() { *m = MsgEditValidator{} } diff --git a/x/staking/types/validator.go b/x/staking/types/validator.go index ed394acf4969..dd1290d4b654 100644 --- a/x/staking/types/validator.go +++ b/x/staking/types/validator.go @@ -11,12 +11,12 @@ import ( tmprotocrypto "github.com/tendermint/tendermint/proto/tendermint/crypto" "gopkg.in/yaml.v2" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) const ( diff --git a/x/staking/types/validator_test.go b/x/staking/types/validator_test.go index 8601fbeec723..12f7b210ace4 100644 --- a/x/staking/types/validator_test.go +++ b/x/staking/types/validator_test.go @@ -9,13 +9,13 @@ import ( "github.com/stretchr/testify/require" tmtypes "github.com/tendermint/tendermint/types" - "github.com/cosmos/cosmos-sdk/codec/legacy" - cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" - "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" - cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/staking/teststaking" - "github.com/cosmos/cosmos-sdk/x/staking/types" + "github.com/eligion/cosmos-sdk/codec/legacy" + cryptocodec "github.com/eligion/cosmos-sdk/crypto/codec" + "github.com/eligion/cosmos-sdk/crypto/keys/ed25519" + cryptotypes "github.com/eligion/cosmos-sdk/crypto/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/staking/teststaking" + "github.com/eligion/cosmos-sdk/x/staking/types" ) func TestValidatorTestEquivalent(t *testing.T) { diff --git a/x/upgrade/abci.go b/x/upgrade/abci.go index a9f6c08262e8..cbe8b97d3bc1 100644 --- a/x/upgrade/abci.go +++ b/x/upgrade/abci.go @@ -6,10 +6,10 @@ import ( abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/telemetry" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/telemetry" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/upgrade/keeper" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) // BeginBlock will check if there is a scheduled plan and if it is ready to be executed. diff --git a/x/upgrade/abci_test.go b/x/upgrade/abci_test.go index 731de6af8a51..d5e8fefbaa56 100644 --- a/x/upgrade/abci_test.go +++ b/x/upgrade/abci_test.go @@ -15,15 +15,15 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/simapp" - storetypes "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/module" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/upgrade" - "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/simapp" + storetypes "github.com/eligion/cosmos-sdk/store/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/module" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/upgrade" + "github.com/eligion/cosmos-sdk/x/upgrade/keeper" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) type TestSuite struct { diff --git a/x/upgrade/client/cli/query.go b/x/upgrade/client/cli/query.go index 2460d29addd5..96579a0d9de6 100644 --- a/x/upgrade/client/cli/query.go +++ b/x/upgrade/client/cli/query.go @@ -5,10 +5,10 @@ import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/flags" + "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) // GetQueryCmd returns the parent command for all x/upgrade CLi query commands. diff --git a/x/upgrade/client/cli/tx.go b/x/upgrade/client/cli/tx.go index 3d793cbab693..c881c6d0e9ae 100644 --- a/x/upgrade/client/cli/tx.go +++ b/x/upgrade/client/cli/tx.go @@ -3,12 +3,12 @@ package cli import ( "github.com/spf13/cobra" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/tx" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/gov/client/cli" - gov "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/tx" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/gov/client/cli" + gov "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) const ( @@ -34,7 +34,7 @@ func NewCmdSubmitUpgradeProposal() *cobra.Command { Short: "Submit a software upgrade proposal", Long: "Submit a software upgrade along with an initial deposit.\n" + "Please specify a unique name and height for the upgrade to take effect.\n" + - "You may include info to reference a binary download link, in a format compatible with: https://github.com/cosmos/cosmos-sdk/tree/master/cosmovisor", + "You may include info to reference a binary download link, in a format compatible with: https://github.com/eligion/cosmos-sdk/tree/master/cosmovisor", RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientTxContext(cmd) if err != nil { diff --git a/x/upgrade/client/proposal_handler.go b/x/upgrade/client/proposal_handler.go index a4b64f7ac76a..16ab215b5834 100644 --- a/x/upgrade/client/proposal_handler.go +++ b/x/upgrade/client/proposal_handler.go @@ -1,9 +1,9 @@ package client import ( - govclient "github.com/cosmos/cosmos-sdk/x/gov/client" - "github.com/cosmos/cosmos-sdk/x/upgrade/client/cli" - "github.com/cosmos/cosmos-sdk/x/upgrade/client/rest" + govclient "github.com/eligion/cosmos-sdk/x/gov/client" + "github.com/eligion/cosmos-sdk/x/upgrade/client/cli" + "github.com/eligion/cosmos-sdk/x/upgrade/client/rest" ) var ProposalHandler = govclient.NewProposalHandler(cli.NewCmdSubmitUpgradeProposal, rest.ProposalRESTHandler) diff --git a/x/upgrade/client/rest/query.go b/x/upgrade/client/rest/query.go index 299f7f7d8f96..ab9921647880 100644 --- a/x/upgrade/client/rest/query.go +++ b/x/upgrade/client/rest/query.go @@ -7,9 +7,9 @@ import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/types/rest" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/types/rest" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) func registerQueryRoutes(clientCtx client.Context, r *mux.Router) { diff --git a/x/upgrade/client/rest/rest.go b/x/upgrade/client/rest/rest.go index 8f104852496c..27d2b2372b36 100644 --- a/x/upgrade/client/rest/rest.go +++ b/x/upgrade/client/rest/rest.go @@ -3,8 +3,8 @@ package rest import ( "github.com/gorilla/mux" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/rest" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/client/rest" ) // RegisterRoutes registers REST routes for the upgrade module under the path specified by routeName. diff --git a/x/upgrade/client/rest/tx.go b/x/upgrade/client/rest/tx.go index 131173fa2ac9..69b443e5691e 100644 --- a/x/upgrade/client/rest/tx.go +++ b/x/upgrade/client/rest/tx.go @@ -3,17 +3,17 @@ package rest import ( "net/http" - "github.com/cosmos/cosmos-sdk/client/tx" + "github.com/eligion/cosmos-sdk/client/tx" "github.com/gorilla/mux" - govrest "github.com/cosmos/cosmos-sdk/x/gov/client/rest" + govrest "github.com/eligion/cosmos-sdk/x/gov/client/rest" - "github.com/cosmos/cosmos-sdk/client" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/rest" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/client" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/rest" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) func registerTxHandlers( diff --git a/x/upgrade/client/testutil/cli_test.go b/x/upgrade/client/testutil/cli_test.go index d4ca64067739..0175e3812756 100644 --- a/x/upgrade/client/testutil/cli_test.go +++ b/x/upgrade/client/testutil/cli_test.go @@ -1,7 +1,7 @@ package testutil import ( - "github.com/cosmos/cosmos-sdk/testutil/network" + "github.com/eligion/cosmos-sdk/testutil/network" "github.com/stretchr/testify/suite" "testing" ) diff --git a/x/upgrade/client/testutil/suite.go b/x/upgrade/client/testutil/suite.go index 6b559e823c77..e1ea3d3b0e67 100644 --- a/x/upgrade/client/testutil/suite.go +++ b/x/upgrade/client/testutil/suite.go @@ -3,12 +3,12 @@ package testutil import ( "fmt" - "github.com/cosmos/cosmos-sdk/simapp" - clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli" - "github.com/cosmos/cosmos-sdk/testutil/network" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/upgrade/client/cli" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/simapp" + clitestutil "github.com/eligion/cosmos-sdk/testutil/cli" + "github.com/eligion/cosmos-sdk/testutil/network" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/upgrade/client/cli" + "github.com/eligion/cosmos-sdk/x/upgrade/types" "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" ) diff --git a/x/upgrade/doc.go b/x/upgrade/doc.go index b9d696914f94..d34658a0ff95 100644 --- a/x/upgrade/doc.go +++ b/x/upgrade/doc.go @@ -30,7 +30,7 @@ and gracefully exit. Generally the application binary will restart on exit, but then will execute this BeginBlocker again and exit, causing a restart loop. Either the operator can manually install the new software, or you can make use of an external watcher daemon to possibly download and then switch binaries, -also potentially doing a backup. An example of such a daemon is https://github.com/cosmos/cosmos-sdk/tree/v0.40.0-rc5/cosmovisor +also potentially doing a backup. An example of such a daemon is https://github.com/eligion/cosmos-sdk/tree/v0.40.0-rc5/cosmovisor described below under "Automation". When the binary restarts with the upgraded version (here v0.40.0), it will detect we have registered the @@ -106,10 +106,10 @@ to lose connectivity with the exiting nodes, thus this module prefers to just ha Automation and Plan.Info -We have deprecated calling out to scripts, instead with propose https://github.com/cosmos/cosmos-sdk/tree/v0.40.0-rc5/cosmovisor +We have deprecated calling out to scripts, instead with propose https://github.com/eligion/cosmos-sdk/tree/v0.40.0-rc5/cosmovisor as a model for a watcher daemon that can launch simd as a subprocess and then read the upgrade log message to swap binaries as needed. You can pass in information into Plan.Info according to the format -specified here https://github.com/cosmos/cosmos-sdk/tree/v0.40.0-rc5/cosmovisor/README.md#auto-download . +specified here https://github.com/eligion/cosmos-sdk/tree/v0.40.0-rc5/cosmovisor/README.md#auto-download . This will allow a properly configured cosmsod daemon to auto-download new binaries and auto-upgrade. As noted there, this is intended more for full nodes than validators. diff --git a/x/upgrade/handler.go b/x/upgrade/handler.go index 413217dc7206..a766b0864efa 100644 --- a/x/upgrade/handler.go +++ b/x/upgrade/handler.go @@ -1,11 +1,11 @@ package upgrade import ( - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/upgrade/keeper" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) // NewSoftwareUpgradeProposalHandler creates a governance handler to manage new proposal types. diff --git a/x/upgrade/keeper/grpc_query.go b/x/upgrade/keeper/grpc_query.go index fe6ec3b51275..9ee80ced2327 100644 --- a/x/upgrade/keeper/grpc_query.go +++ b/x/upgrade/keeper/grpc_query.go @@ -3,9 +3,9 @@ package keeper import ( "context" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) var _ types.QueryServer = Keeper{} diff --git a/x/upgrade/keeper/grpc_query_test.go b/x/upgrade/keeper/grpc_query_test.go index 2b65105e56d2..5baf7e6bee6d 100644 --- a/x/upgrade/keeper/grpc_query_test.go +++ b/x/upgrade/keeper/grpc_query_test.go @@ -8,11 +8,11 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/simapp" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/simapp" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) type UpgradeTestSuite struct { diff --git a/x/upgrade/keeper/keeper.go b/x/upgrade/keeper/keeper.go index 7dee3efd56c9..5af90edea96d 100644 --- a/x/upgrade/keeper/keeper.go +++ b/x/upgrade/keeper/keeper.go @@ -13,14 +13,14 @@ import ( "github.com/tendermint/tendermint/libs/log" tmos "github.com/tendermint/tendermint/libs/os" - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/store/prefix" - store "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - "github.com/cosmos/cosmos-sdk/types/module" - xp "github.com/cosmos/cosmos-sdk/x/upgrade/exported" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/store/prefix" + store "github.com/eligion/cosmos-sdk/store/types" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + "github.com/eligion/cosmos-sdk/types/module" + xp "github.com/eligion/cosmos-sdk/x/upgrade/exported" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) // UpgradeInfoFileName file to store upgrade information diff --git a/x/upgrade/keeper/keeper_test.go b/x/upgrade/keeper/keeper_test.go index 1cb2f072abb8..5ffd1a3e0f9d 100644 --- a/x/upgrade/keeper/keeper_test.go +++ b/x/upgrade/keeper/keeper_test.go @@ -8,12 +8,12 @@ import ( "github.com/stretchr/testify/suite" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - "github.com/cosmos/cosmos-sdk/simapp" - store "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/simapp" + store "github.com/eligion/cosmos-sdk/store/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/upgrade/keeper" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) type KeeperTestSuite struct { diff --git a/x/upgrade/keeper/querier.go b/x/upgrade/keeper/querier.go index 227d770f2068..63c73eb6b717 100644 --- a/x/upgrade/keeper/querier.go +++ b/x/upgrade/keeper/querier.go @@ -3,14 +3,14 @@ package keeper import ( "encoding/binary" - "github.com/cosmos/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/x/upgrade/types" abci "github.com/tendermint/tendermint/abci/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) // NewQuerier creates a querier for upgrade cli and REST endpoints diff --git a/x/upgrade/legacy/v038/types.go b/x/upgrade/legacy/v038/types.go index da7b3ae93d40..5025f6f7fd14 100644 --- a/x/upgrade/legacy/v038/types.go +++ b/x/upgrade/legacy/v038/types.go @@ -8,10 +8,10 @@ import ( "strings" "time" - "github.com/cosmos/cosmos-sdk/codec" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - v036gov "github.com/cosmos/cosmos-sdk/x/gov/legacy/v036" + "github.com/eligion/cosmos-sdk/codec" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" + v036gov "github.com/eligion/cosmos-sdk/x/gov/legacy/v036" ) const ( diff --git a/x/upgrade/module.go b/x/upgrade/module.go index b80b56f92a1f..ca22ab0d4dcc 100644 --- a/x/upgrade/module.go +++ b/x/upgrade/module.go @@ -9,15 +9,15 @@ import ( "github.com/spf13/cobra" abci "github.com/tendermint/tendermint/abci/types" - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" - "github.com/cosmos/cosmos-sdk/x/upgrade/client/cli" - "github.com/cosmos/cosmos-sdk/x/upgrade/client/rest" - "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/client" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" + "github.com/eligion/cosmos-sdk/x/upgrade/client/cli" + "github.com/eligion/cosmos-sdk/x/upgrade/client/rest" + "github.com/eligion/cosmos-sdk/x/upgrade/keeper" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) func init() { diff --git a/x/upgrade/types/codec.go b/x/upgrade/types/codec.go index 59703f57a8f9..cd66b4c42575 100644 --- a/x/upgrade/types/codec.go +++ b/x/upgrade/types/codec.go @@ -1,9 +1,9 @@ package types import ( - "github.com/cosmos/cosmos-sdk/codec" - "github.com/cosmos/cosmos-sdk/codec/types" - govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/codec" + "github.com/eligion/cosmos-sdk/codec/types" + govtypes "github.com/eligion/cosmos-sdk/x/gov/types" ) // RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec diff --git a/x/upgrade/types/handler.go b/x/upgrade/types/handler.go index 0543b6bbeb2d..7bd23c42e40e 100644 --- a/x/upgrade/types/handler.go +++ b/x/upgrade/types/handler.go @@ -1,8 +1,8 @@ package types import ( - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/types/module" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/types/module" ) // UpgradeHandler specifies the type of function that is called when an upgrade diff --git a/x/upgrade/types/plan.go b/x/upgrade/types/plan.go index 9e4bc85ab8fe..e81ab598c9e1 100644 --- a/x/upgrade/types/plan.go +++ b/x/upgrade/types/plan.go @@ -3,8 +3,8 @@ package types import ( "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + sdk "github.com/eligion/cosmos-sdk/types" + sdkerrors "github.com/eligion/cosmos-sdk/types/errors" ) func (p Plan) String() string { diff --git a/x/upgrade/types/plan_test.go b/x/upgrade/types/plan_test.go index bbd969eae0b3..3835620e6723 100644 --- a/x/upgrade/types/plan_test.go +++ b/x/upgrade/types/plan_test.go @@ -9,9 +9,9 @@ import ( "github.com/tendermint/tendermint/libs/log" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + sdk "github.com/eligion/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) func mustParseTime(s string) time.Time { diff --git a/x/upgrade/types/proposal.go b/x/upgrade/types/proposal.go index 38b2295556de..0cf3e1748d83 100644 --- a/x/upgrade/types/proposal.go +++ b/x/upgrade/types/proposal.go @@ -3,7 +3,7 @@ package types import ( "fmt" - gov "github.com/cosmos/cosmos-sdk/x/gov/types" + gov "github.com/eligion/cosmos-sdk/x/gov/types" ) const ( diff --git a/x/upgrade/types/proposal_test.go b/x/upgrade/types/proposal_test.go index 716e201091bd..de07736b59ed 100644 --- a/x/upgrade/types/proposal_test.go +++ b/x/upgrade/types/proposal_test.go @@ -6,10 +6,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/cosmos/cosmos-sdk/codec" - codectypes "github.com/cosmos/cosmos-sdk/codec/types" - gov "github.com/cosmos/cosmos-sdk/x/gov/types" - "github.com/cosmos/cosmos-sdk/x/upgrade/types" + "github.com/eligion/cosmos-sdk/codec" + codectypes "github.com/eligion/cosmos-sdk/codec/types" + gov "github.com/eligion/cosmos-sdk/x/gov/types" + "github.com/eligion/cosmos-sdk/x/upgrade/types" ) type ProposalWrapper struct { diff --git a/x/upgrade/types/query.pb.go b/x/upgrade/types/query.pb.go index 9b2daef286eb..fc1d939299db 100644 --- a/x/upgrade/types/query.pb.go +++ b/x/upgrade/types/query.pb.go @@ -6,7 +6,7 @@ package types import ( context "context" fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/codec/types" + _ "github.com/eligion/cosmos-sdk/codec/types" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" diff --git a/x/upgrade/types/storeloader.go b/x/upgrade/types/storeloader.go index 00538e07152a..d4ac6e4b36f0 100644 --- a/x/upgrade/types/storeloader.go +++ b/x/upgrade/types/storeloader.go @@ -1,9 +1,9 @@ package types import ( - "github.com/cosmos/cosmos-sdk/baseapp" - store "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/baseapp" + store "github.com/eligion/cosmos-sdk/store/types" + sdk "github.com/eligion/cosmos-sdk/types" ) // UpgradeStoreLoader is used to prepare baseapp with a fixed StoreLoader diff --git a/x/upgrade/types/storeloader_test.go b/x/upgrade/types/storeloader_test.go index ec2bfa824d07..660bb158c7e2 100644 --- a/x/upgrade/types/storeloader_test.go +++ b/x/upgrade/types/storeloader_test.go @@ -13,10 +13,10 @@ import ( tmproto "github.com/tendermint/tendermint/proto/tendermint/types" dbm "github.com/tendermint/tm-db" - "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/store/rootmulti" - store "github.com/cosmos/cosmos-sdk/store/types" - sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/eligion/cosmos-sdk/baseapp" + "github.com/eligion/cosmos-sdk/store/rootmulti" + store "github.com/eligion/cosmos-sdk/store/types" + sdk "github.com/eligion/cosmos-sdk/types" ) func useUpgradeLoader(height int64, upgrades *store.StoreUpgrades) func(*baseapp.BaseApp) { diff --git a/x/upgrade/types/upgrade.pb.go b/x/upgrade/types/upgrade.pb.go index 686389974b23..d2de62aa3021 100644 --- a/x/upgrade/types/upgrade.pb.go +++ b/x/upgrade/types/upgrade.pb.go @@ -5,7 +5,7 @@ package types import ( fmt "fmt" - types "github.com/cosmos/cosmos-sdk/codec/types" + types "github.com/eligion/cosmos-sdk/codec/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"