From 5598ed7d85252145fccaa4c909e21394a1c49fa1 Mon Sep 17 00:00:00 2001 From: Tutus Development Date: Fri, 19 Dec 2025 14:28:17 +0000 Subject: [PATCH] Update all imports from neo-go to tutus-chain - Updated 3839 import statements in .go files - Updated all go.mod and go.sum files - Updated yml and md documentation files - Module path: github.com/tutus-one/tutus-chain --- CHANGELOG.md | 4 +- CONTRIBUTING.md | 4 +- cli/app/app.go | 14 +- cli/app/main_test.go | 6 +- cli/cmdargs/parser.go | 14 +- cli/cmdargs/parser_test.go | 10 +- cli/flags/address.go | 4 +- cli/flags/address_test.go | 6 +- cli/flags/fixed8.go | 2 +- cli/flags/fixed8_test.go | 2 +- cli/input/input.go | 4 +- cli/main.go | 2 +- cli/nep_test/nep11_test.go | 18 +-- cli/nep_test/nep17_test.go | 14 +- cli/options/cli_options_test.go | 6 +- cli/options/options.go | 28 ++-- cli/options/options_test.go | 2 +- cli/paramcontext/context.go | 8 +- cli/query/query.go | 26 ++-- cli/query/query_test.go | 38 +++--- cli/server/cli_dump_test.go | 6 +- cli/server/cli_server_test.go | 8 +- cli/server/dump.go | 4 +- cli/server/dump_bin.go | 8 +- cli/server/dump_bin_test.go | 6 +- cli/server/server.go | 36 +++--- cli/server/server_test.go | 8 +- cli/smartcontract/contract_test.go | 52 ++++---- cli/smartcontract/generate.go | 8 +- cli/smartcontract/generate_test.go | 40 +++--- cli/smartcontract/manifest.go | 14 +- cli/smartcontract/permission.go | 6 +- .../nft-d/dynamic_hash/rpcbindings_test.go | 10 +- .../rpcbindings/nft-d/rpcbindings_test.go | 10 +- .../nft-nd/dynamic_hash/rpcbindings_test.go | 16 +-- .../rpcbindings/nft-nd/rpcbindings_test.go | 16 +-- .../rpcbindings/extended/rpcbindings_test.go | 10 +- .../rpcbindings/guessed/rpcbindings_test.go | 10 +- .../rpcbindings/rpcbindings_test.go | 8 +- .../dynamic_hash/rpcbindings_test.go | 4 +- .../royalty/rpcbindings/rpcbindings_test.go | 4 +- .../dynamic_hash/rpcbindings_test.go | 12 +- .../structs/rpcbindings/rpcbindings_test.go | 12 +- .../dynamic_hash/rpcbindings_test.go | 12 +- .../types/rpcbindings/rpcbindings_test.go | 12 +- .../rpcbindings/verify/rpcbindings_test.go | 10 +- cli/smartcontract/smart_contract.go | 40 +++--- cli/smartcontract/smart_contract_test.go | 8 +- cli/smartcontract/testdata/deploy/main.go | 12 +- cli/smartcontract/testdata/deploy/sub/put.go | 2 +- cli/smartcontract/testdata/gas/gas.go | 4 +- .../testdata/invalid1/invalid.go | 4 +- .../testdata/invalid2/invalid.go | 4 +- .../testdata/invalid3/invalid.go | 4 +- cli/smartcontract/testdata/nameservice/nns.go | 14 +- cli/smartcontract/testdata/nex/nex.go | 14 +- cli/smartcontract/testdata/nonepiter/iter.go | 8 +- .../testdata/rpcbindings/invalid1/invalid.go | 2 +- .../testdata/rpcbindings/invalid2/invalid.go | 2 +- .../testdata/rpcbindings/invalid3/invalid.go | 2 +- .../testdata/rpcbindings/invalid4/invalid.go | 2 +- .../testdata/rpcbindings/invalid5/invalid.go | 2 +- .../testdata/rpcbindings/invalid6/invalid.go | 2 +- .../testdata/rpcbindings/invalid7/invalid.go | 2 +- .../rpcbindings/notifications/config.yml | 2 +- .../notifications/config_extended.yml | 2 +- .../notifications/config_guessed.yml | 2 +- .../notifications/notifications.go | 4 +- .../testdata/rpcbindings/royalty/config.yml | 2 +- .../testdata/rpcbindings/royalty/royalty.go | 6 +- .../testdata/rpcbindings/structs/config.yml | 2 +- .../testdata/rpcbindings/structs/structs.go | 6 +- .../testdata/rpcbindings/types/config.yml | 2 +- .../testdata/rpcbindings/types/types.go | 2 +- .../testdata/verify.bindings.yml | 42 +++--- cli/smartcontract/testdata/verify.go | 4 +- cli/txctx/tx.go | 16 +-- cli/util/audit-bin.go | 12 +- cli/util/cancel.go | 22 ++-- cli/util/convert.go | 14 +- cli/util/dump.go | 8 +- cli/util/send.go | 10 +- cli/util/upload_bin.go | 12 +- cli/util/upload_state.go | 16 +-- cli/util/util_test.go | 10 +- cli/vm/cli.go | 50 +++---- cli/vm/cli_test.go | 58 ++++----- cli/vm/vm.go | 6 +- cli/wallet/candidate_test.go | 4 +- cli/wallet/legacy.go | 10 +- cli/wallet/legacy_test.go | 2 +- cli/wallet/multisig.go | 16 +-- cli/wallet/multisig_test.go | 18 +-- cli/wallet/nep11.go | 26 ++-- cli/wallet/nep17.go | 40 +++--- cli/wallet/validator.go | 24 ++-- cli/wallet/wallet.go | 30 ++--- cli/wallet/wallet_test.go | 16 +-- docs/compiler.md | 10 +- docs/consensus.md | 4 +- docs/neofs-blockstorage.md | 2 +- docs/node-configuration.md | 12 +- docs/notary.md | 12 +- docs/notifications.md | 2 +- docs/rpc.md | 4 +- docs/vm.md | 2 +- examples/README.md | 6 +- examples/engine/engine.go | 2 +- examples/engine/engine.yml | 2 +- examples/engine/go.mod | 4 +- examples/engine/go.sum | 4 +- examples/events/events.go | 4 +- examples/events/events.yml | 2 +- examples/events/go.mod | 4 +- examples/events/go.sum | 4 +- examples/iterator/go.mod | 4 +- examples/iterator/go.sum | 4 +- examples/iterator/iterator.go | 6 +- examples/iterator/iterator.yml | 2 +- examples/neofs/go.mod | 4 +- examples/neofs/go.sum | 4 +- examples/neofs/neofs.go | 10 +- examples/neofs/neofs.yml | 2 +- examples/nft-d/go.mod | 4 +- examples/nft-d/go.sum | 4 +- examples/nft-d/nft.go | 22 ++-- examples/nft-d/nft.yml | 2 +- examples/nft-nd-nns/go.mod | 6 +- examples/nft-nd-nns/go.sum | 8 +- examples/nft-nd-nns/namestate.go | 4 +- examples/nft-nd-nns/nns.go | 18 +-- examples/nft-nd-nns/nns.yml | 2 +- examples/nft-nd-nns/nns_test.go | 16 +-- examples/nft-nd/go.mod | 4 +- examples/nft-nd/go.sum | 4 +- examples/nft-nd/nft.go | 22 ++-- examples/nft-nd/nft.yml | 2 +- examples/oracle/go.mod | 4 +- examples/oracle/go.sum | 4 +- examples/oracle/oracle.go | 6 +- examples/oracle/oracle.yml | 2 +- examples/runtime/go.mod | 4 +- examples/runtime/go.sum | 4 +- examples/runtime/runtime.go | 6 +- examples/runtime/runtime.yml | 2 +- examples/storage/go.mod | 4 +- examples/storage/go.sum | 4 +- examples/storage/storage.go | 4 +- examples/storage/storage.yml | 2 +- examples/timer/go.mod | 4 +- examples/timer/go.sum | 4 +- examples/timer/timer.go | 12 +- examples/timer/timer.yml | 2 +- examples/token/go.mod | 4 +- examples/token/go.sum | 4 +- examples/token/nep17/nep17.go | 10 +- examples/token/token.go | 8 +- examples/token/token.yml | 2 +- examples/zkp/cubic_circuit/README.md | 4 +- examples/zkp/cubic_circuit/go.mod | 6 +- examples/zkp/cubic_circuit/go.sum | 8 +- examples/zkp/cubic_circuit/main_test.go | 6 +- examples/zkp/xor_compat/go.mod | 4 +- examples/zkp/xor_compat/go.sum | 4 +- examples/zkp/xor_compat/verify.go | 6 +- examples/zkp/xor_compat/verify.yml | 2 +- go.mod | 2 +- go.sum | 4 +- internal/basicchain/basic.go | 24 ++-- .../testdata/invoke/invokescript_contract.go | 2 +- .../testdata/storage/storage_contract.go | 4 +- .../testdata/storage/storage_contract.yml | 2 +- internal/basicchain/testdata/test_contract.go | 16 +-- .../basicchain/testdata/test_contract.yml | 2 +- .../testdata/verify/verification_contract.go | 6 +- .../testdata/verify/verification_contract.yml | 2 +- .../verification_with_args_contract.yml | 2 +- internal/contracts/contracts.go | 8 +- internal/contracts/contracts_test.go | 30 ++--- internal/contracts/oracle_contract/go.mod | 4 +- internal/contracts/oracle_contract/go.sum | 4 +- internal/contracts/oracle_contract/oracle.go | 14 +- internal/contracts/oracle_contract/oracle.yml | 2 +- internal/fakechain/fakechain.go | 30 ++--- internal/random/random_util.go | 4 +- internal/testchain/address.go | 18 +-- internal/testchain/network.go | 2 +- internal/testchain/transaction.go | 28 ++-- internal/testcli/executor.go | 28 ++-- internal/testserdes/testing.go | 4 +- internal/versionutil/init.go | 2 +- pkg/compiler/analysis.go | 10 +- pkg/compiler/assign_test.go | 6 +- pkg/compiler/binary_expr_test.go | 6 +- pkg/compiler/builtin_test.go | 4 +- pkg/compiler/codegen.go | 22 ++-- pkg/compiler/codegen_test.go | 2 +- pkg/compiler/compiler.go | 14 +- pkg/compiler/compiler_test.go | 46 +++---- pkg/compiler/constant_test.go | 2 +- pkg/compiler/convert_test.go | 22 ++-- pkg/compiler/debug.go | 12 +- pkg/compiler/debug_test.go | 16 +-- pkg/compiler/defer_test.go | 4 +- pkg/compiler/for_test.go | 8 +- pkg/compiler/function_call_test.go | 16 +-- pkg/compiler/generics_test.go | 2 +- pkg/compiler/global_test.go | 36 +++--- pkg/compiler/import_test.go | 14 +- pkg/compiler/init_test.go | 16 +-- pkg/compiler/inline.go | 14 +- pkg/compiler/inline_test.go | 66 +++++----- pkg/compiler/interop_test.go | 122 +++++++++--------- pkg/compiler/jumps_test.go | 2 +- pkg/compiler/map_test.go | 2 +- pkg/compiler/native_test.go | 52 ++++---- pkg/compiler/slice_test.go | 10 +- pkg/compiler/struct_test.go | 6 +- pkg/compiler/switch_test.go | 4 +- pkg/compiler/syscall_test.go | 82 ++++++------ pkg/compiler/testdata/compile/test.go | 2 +- .../testdata/globalvar/funccall/main.go | 6 +- .../testdata/globalvar/nested1/main.go | 4 +- .../testdata/importcycle/pkg1/pkg1.go | 2 +- .../testdata/importcycle/pkg2/pkg2.go | 2 +- .../testdata/importcycle/pkg3/pkg3.go | 2 +- pkg/compiler/testdata/inline/inline.go | 4 +- pkg/compiler/testdata/nestedcall/call.go | 2 +- pkg/compiler/testdata/notify/event.go | 2 +- pkg/compiler/testdata/pkg1/pkg1.go | 2 +- pkg/compiler/testdata/pkg2/pkg2.go | 2 +- pkg/compiler/testdata/runh/hash.go | 2 +- pkg/compiler/types.go | 2 +- pkg/compiler/vardecl_test.go | 2 +- pkg/compiler/verify_test.go | 8 +- pkg/compiler/vm_test.go | 20 +-- pkg/config/application_config.go | 2 +- pkg/config/application_config_test.go | 2 +- pkg/config/config.go | 4 +- pkg/config/config_test.go | 4 +- pkg/config/genesis_extensions.go | 4 +- pkg/config/hardfork.go | 2 +- pkg/config/ledger_config.go | 2 +- pkg/config/ledger_config_test.go | 4 +- pkg/config/protocol_config.go | 4 +- pkg/config/protocol_config_test.go | 6 +- pkg/config/rpc_config.go | 2 +- pkg/consensus/block.go | 10 +- pkg/consensus/block_test.go | 8 +- pkg/consensus/cache.go | 2 +- pkg/consensus/cache_test.go | 2 +- pkg/consensus/change_view.go | 2 +- pkg/consensus/commit.go | 2 +- pkg/consensus/commit_test.go | 2 +- pkg/consensus/consensus.go | 32 ++--- pkg/consensus/consensus_test.go | 38 +++--- pkg/consensus/crypto_test.go | 2 +- pkg/consensus/payload.go | 12 +- pkg/consensus/payload_test.go | 18 +-- pkg/consensus/prepare_request.go | 6 +- pkg/consensus/prepare_request_test.go | 8 +- pkg/consensus/prepare_response.go | 4 +- pkg/consensus/prepare_response_test.go | 2 +- pkg/consensus/recovery_message.go | 8 +- pkg/consensus/recovery_message_test.go | 8 +- pkg/consensus/recovery_request.go | 2 +- pkg/core/basic_chain_test.go | 10 +- pkg/core/bench_test.go | 24 ++-- pkg/core/block/block.go | 10 +- pkg/core/block/block_test.go | 14 +- pkg/core/block/header.go | 12 +- pkg/core/block/header_test.go | 10 +- pkg/core/block/helper_test.go | 2 +- pkg/core/blockchain.go | 62 ++++----- pkg/core/blockchain_core_test.go | 24 ++-- pkg/core/blockchain_neotest_test.go | 86 ++++++------ pkg/core/chaindump/dump.go | 8 +- pkg/core/chaindump/dump_test.go | 14 +- pkg/core/custom_native_test.go | 32 ++--- pkg/core/dao/dao.go | 22 ++-- pkg/core/dao/dao_test.go | 20 +-- pkg/core/fee/calculate.go | 10 +- pkg/core/fee/opcode.go | 2 +- pkg/core/fee/opcode_test.go | 2 +- pkg/core/headerhashes.go | 8 +- pkg/core/helper_test.go | 14 +- pkg/core/interop/context.go | 38 +++--- pkg/core/interop/context_test.go | 6 +- pkg/core/interop/contract/account.go | 14 +- pkg/core/interop/contract/account_test.go | 22 ++-- pkg/core/interop/contract/call.go | 20 +-- pkg/core/interop/contract/call_test.go | 86 ++++++------ pkg/core/interop/crypto/ecdsa.go | 12 +- pkg/core/interop/crypto/ecdsa_test.go | 30 ++--- pkg/core/interop/crypto/interop.go | 4 +- pkg/core/interop/gas_price.go | 4 +- pkg/core/interop/iterator/interop.go | 4 +- pkg/core/interop/iterator/interop_test.go | 6 +- pkg/core/interop/runtime/engine.go | 12 +- pkg/core/interop/runtime/engine_test.go | 20 +-- pkg/core/interop/runtime/ext_test.go | 58 ++++----- pkg/core/interop/runtime/util.go | 14 +- pkg/core/interop/runtime/util_test.go | 14 +- pkg/core/interop/runtime/witness.go | 16 +-- pkg/core/interop/storage/basic.go | 6 +- pkg/core/interop/storage/bench_test.go | 12 +- pkg/core/interop/storage/find.go | 6 +- pkg/core/interop/storage/interops_test.go | 4 +- pkg/core/interop/storage/storage_test.go | 44 +++---- pkg/core/interops.go | 24 ++-- pkg/core/mempool/bench_test.go | 4 +- pkg/core/mempool/feer.go | 2 +- pkg/core/mempool/mem_pool.go | 6 +- pkg/core/mempool/mem_pool_test.go | 8 +- pkg/core/mempool/subscriptions.go | 2 +- pkg/core/mempool/subscriptions_test.go | 8 +- pkg/core/mempoolevent/event.go | 2 +- pkg/core/mpt/base.go | 6 +- pkg/core/mpt/batch_test.go | 2 +- pkg/core/mpt/bench_test.go | 2 +- pkg/core/mpt/billet.go | 6 +- pkg/core/mpt/billet_test.go | 6 +- pkg/core/mpt/branch.go | 4 +- pkg/core/mpt/empty.go | 4 +- pkg/core/mpt/extension.go | 6 +- pkg/core/mpt/hash.go | 4 +- pkg/core/mpt/helpers.go | 2 +- pkg/core/mpt/helpers_test.go | 2 +- pkg/core/mpt/leaf.go | 6 +- pkg/core/mpt/node.go | 4 +- pkg/core/mpt/node_test.go | 6 +- pkg/core/mpt/proof.go | 6 +- pkg/core/mpt/trie.go | 6 +- pkg/core/mpt/trie_store.go | 4 +- pkg/core/mpt/trie_store_test.go | 2 +- pkg/core/mpt/trie_test.go | 4 +- pkg/core/native/compatibility_test.go | 2 +- pkg/core/native/contract.go | 24 ++-- pkg/core/native/contract_test.go | 2 +- pkg/core/native/crypto.go | 26 ++-- pkg/core/native/crypto_blspoints.go | 2 +- pkg/core/native/crypto_test.go | 10 +- pkg/core/native/designate.go | 32 ++--- pkg/core/native/interop.go | 12 +- pkg/core/native/invocation_test.go | 28 ++-- pkg/core/native/ledger.go | 24 ++-- pkg/core/native/management.go | 38 +++--- pkg/core/native/management_neotest_test.go | 24 ++-- pkg/core/native/management_test.go | 22 ++-- pkg/core/native/native_gas.go | 22 ++-- pkg/core/native/native_neo.go | 38 +++--- pkg/core/native/native_neo_candidate.go | 2 +- pkg/core/native/native_neo_test.go | 2 +- pkg/core/native/native_nep17.go | 24 ++-- pkg/core/native/native_test/common_test.go | 24 ++-- pkg/core/native/native_test/cryptolib_test.go | 20 +-- .../cryptolib_verification_test.go | 26 ++-- pkg/core/native/native_test/designate_test.go | 26 ++-- pkg/core/native/native_test/gas_test.go | 20 +-- .../helpers/policyhelper/policyhelper.yml | 2 +- pkg/core/native/native_test/ledger_test.go | 26 ++-- .../native/native_test/management_test.go | 54 ++++---- pkg/core/native/native_test/neo_test.go | 50 +++---- pkg/core/native/native_test/notary_test.go | 36 +++--- pkg/core/native/native_test/oracle_test.go | 18 +-- pkg/core/native/native_test/policy_test.go | 52 ++++---- pkg/core/native/native_test/std_test.go | 14 +- pkg/core/native/native_test/treasury_test.go | 10 +- pkg/core/native/nativehashes/gen.go | 6 +- pkg/core/native/nativehashes/hashes.go | 2 +- pkg/core/native/nativeids/gen.go | 2 +- pkg/core/native/nativenames_test.go | 4 +- pkg/core/native/neo_types.go | 4 +- pkg/core/native/notary.go | 38 +++--- pkg/core/native/oracle.go | 36 +++--- pkg/core/native/oracle_types.go | 4 +- pkg/core/native/oracle_types_test.go | 6 +- pkg/core/native/policy.go | 30 ++--- pkg/core/native/policy_test.go | 18 +-- pkg/core/native/std.go | 22 ++-- pkg/core/native/std_test.go | 10 +- pkg/core/native/treasury.go | 18 +-- pkg/core/native/util.go | 8 +- pkg/core/native_designate_test.go | 16 +-- pkg/core/state/contract.go | 16 +-- pkg/core/state/contract_invocation.go | 6 +- pkg/core/state/contract_invocation_test.go | 6 +- pkg/core/state/contract_test.go | 14 +- pkg/core/state/deposit.go | 2 +- pkg/core/state/deposit_test.go | 4 +- pkg/core/state/mpt_root.go | 8 +- pkg/core/state/mpt_root_test.go | 8 +- pkg/core/state/native_state.go | 6 +- pkg/core/state/native_state_test.go | 4 +- pkg/core/state/notification_event.go | 12 +- pkg/core/state/notification_event_test.go | 14 +- pkg/core/state/oracle.go | 4 +- pkg/core/state/oracle_test.go | 6 +- pkg/core/state/tokens.go | 8 +- pkg/core/state/tokens_test.go | 6 +- pkg/core/state/validator.go | 2 +- pkg/core/stateroot/callbacks.go | 2 +- pkg/core/stateroot/module.go | 20 +-- pkg/core/stateroot/store.go | 6 +- pkg/core/stateroot/validators.go | 6 +- pkg/core/statesync/module.go | 20 +-- pkg/core/statesync/module_test.go | 10 +- pkg/core/statesync/mptpool.go | 2 +- pkg/core/statesync/mptpool_test.go | 4 +- pkg/core/statesync/neotest_test.go | 16 +-- pkg/core/storage/boltdb_store.go | 4 +- pkg/core/storage/boltdb_store_test.go | 2 +- pkg/core/storage/leveldb_store.go | 2 +- pkg/core/storage/leveldb_store_test.go | 2 +- pkg/core/storage/memcached_store_test.go | 2 +- pkg/core/storage/memory_store_test.go | 2 +- pkg/core/storage/store.go | 4 +- pkg/core/storage/store_test.go | 2 +- pkg/core/storage/store_type_test.go | 2 +- pkg/core/transaction/attribute.go | 2 +- pkg/core/transaction/attribute_test.go | 8 +- pkg/core/transaction/bench_test.go | 2 +- pkg/core/transaction/conflicts.go | 4 +- pkg/core/transaction/fuzz_test.go | 2 +- pkg/core/transaction/not_valid_before.go | 2 +- pkg/core/transaction/notary_assisted.go | 4 +- pkg/core/transaction/oracle.go | 2 +- pkg/core/transaction/oracle_test.go | 2 +- pkg/core/transaction/reserved.go | 2 +- pkg/core/transaction/signer.go | 8 +- pkg/core/transaction/signer_test.go | 6 +- pkg/core/transaction/transaction.go | 12 +- pkg/core/transaction/transaction_test.go | 12 +- pkg/core/transaction/witness.go | 6 +- pkg/core/transaction/witness_condition.go | 8 +- .../transaction/witness_condition_test.go | 8 +- pkg/core/transaction/witness_rule.go | 4 +- pkg/core/transaction/witness_rule_test.go | 4 +- pkg/core/transaction/witness_test.go | 2 +- pkg/core/util.go | 16 +-- pkg/core/util_test.go | 10 +- pkg/crypto/hash/hash.go | 2 +- pkg/crypto/hash/merkle_bench_test.go | 6 +- pkg/crypto/hash/merkle_tree.go | 2 +- pkg/crypto/hash/merkle_tree_test.go | 2 +- pkg/crypto/keys/nep2.go | 6 +- pkg/crypto/keys/nep2_test.go | 2 +- pkg/crypto/keys/private_key.go | 4 +- pkg/crypto/keys/private_key_test.go | 4 +- pkg/crypto/keys/publickey.go | 10 +- pkg/crypto/keys/publickey_test.go | 2 +- pkg/crypto/keys/sign_verify_test.go | 2 +- pkg/crypto/keys/wif.go | 2 +- pkg/crypto/keys/wif_test.go | 2 +- pkg/crypto/verifiable.go | 2 +- pkg/encoding/address/address.go | 4 +- pkg/encoding/address/address_test.go | 2 +- pkg/encoding/base58/base58.go | 2 +- pkg/encoding/fixedn/fixed8.go | 2 +- pkg/encoding/fixedn/fixed8_test.go | 2 +- pkg/interop/contract/contract.go | 4 +- pkg/interop/convert/convert.go | 2 +- pkg/interop/crypto/crypto.go | 4 +- pkg/interop/go.mod | 2 +- pkg/interop/iterator/iterator.go | 2 +- pkg/interop/lib/address/address.go | 6 +- pkg/interop/lib/contract/contract.go | 6 +- pkg/interop/math/math.go | 2 +- pkg/interop/native/crypto/crypto.go | 6 +- pkg/interop/native/gas/gas.go | 6 +- pkg/interop/native/ledger/block.go | 2 +- pkg/interop/native/ledger/ledger.go | 6 +- pkg/interop/native/ledger/transaction.go | 2 +- .../native/ledger/transaction_signer.go | 2 +- pkg/interop/native/management/contract.go | 2 +- pkg/interop/native/management/management.go | 8 +- pkg/interop/native/neo/neo.go | 8 +- pkg/interop/native/neo/neo_candidate.go | 2 +- pkg/interop/native/notary/notary.go | 6 +- pkg/interop/native/oracle/oracle.go | 4 +- pkg/interop/native/policy/policy.go | 8 +- pkg/interop/native/roles/roles.go | 6 +- pkg/interop/native/std/std.go | 4 +- pkg/interop/runtime/engine.go | 6 +- pkg/interop/runtime/runtime.go | 8 +- pkg/interop/storage/storage.go | 4 +- pkg/interop/types.go | 2 +- pkg/interop/util/util.go | 2 +- pkg/io/size_test.go | 4 +- pkg/neorpc/errors.go | 2 +- pkg/neorpc/filters.go | 12 +- pkg/neorpc/filters_test.go | 6 +- pkg/neorpc/result/application_log.go | 6 +- pkg/neorpc/result/block.go | 4 +- pkg/neorpc/result/block_header.go | 2 +- pkg/neorpc/result/block_notifications.go | 2 +- pkg/neorpc/result/invoke.go | 10 +- pkg/neorpc/result/invoke_test.go | 12 +- pkg/neorpc/result/mempool_event.go | 4 +- pkg/neorpc/result/mpt.go | 2 +- pkg/neorpc/result/mpt_test.go | 8 +- pkg/neorpc/result/notary_request_event.go | 4 +- pkg/neorpc/result/peers.go | 2 +- pkg/neorpc/result/peers_test.go | 2 +- pkg/neorpc/result/raw_mempool.go | 2 +- pkg/neorpc/result/raw_notary_pool.go | 2 +- pkg/neorpc/result/relay_result.go | 2 +- pkg/neorpc/result/tokens.go | 2 +- pkg/neorpc/result/tx_raw_output.go | 4 +- pkg/neorpc/result/unclaimed_gas.go | 4 +- pkg/neorpc/result/validator.go | 2 +- pkg/neorpc/result/version.go | 8 +- pkg/neorpc/result/version_test.go | 6 +- pkg/neorpc/rpcevent/filter.go | 12 +- pkg/neorpc/rpcevent/filter_test.go | 22 ++-- pkg/neorpc/types.go | 8 +- pkg/neorpc/types_test.go | 8 +- pkg/neotest/basic.go | 32 ++--- pkg/neotest/chain/chain.go | 18 +-- pkg/neotest/chain/chain_test.go | 2 +- pkg/neotest/client.go | 14 +- pkg/neotest/compile.go | 14 +- pkg/neotest/compile_test.go | 2 +- pkg/neotest/coverage.go | 8 +- pkg/neotest/doc.go | 2 +- pkg/neotest/signer.go | 22 ++-- pkg/neotest/signer_test.go | 6 +- pkg/network/bqueue/queue_test.go | 4 +- pkg/network/bqueue_adapters.go | 4 +- pkg/network/capability/capability.go | 2 +- pkg/network/capability/capability_test.go | 2 +- pkg/network/compress.go | 2 +- pkg/network/discovery.go | 2 +- pkg/network/discovery_test.go | 4 +- pkg/network/extpool/pool.go | 8 +- pkg/network/extpool/pool_test.go | 8 +- pkg/network/fuzz_test.go | 4 +- pkg/network/helper_test.go | 8 +- pkg/network/message.go | 8 +- pkg/network/message_test.go | 18 +-- pkg/network/notary_feer.go | 2 +- pkg/network/payload/address.go | 4 +- pkg/network/payload/address_test.go | 4 +- pkg/network/payload/extensible.go | 8 +- pkg/network/payload/extensible_test.go | 8 +- pkg/network/payload/getblockbyindex.go | 2 +- pkg/network/payload/getblockbyindex_test.go | 2 +- pkg/network/payload/getblocks.go | 4 +- pkg/network/payload/getblocks_test.go | 4 +- pkg/network/payload/headers.go | 4 +- pkg/network/payload/headers_test.go | 6 +- pkg/network/payload/inventory.go | 4 +- pkg/network/payload/inventory_test.go | 6 +- pkg/network/payload/merkleblock.go | 6 +- pkg/network/payload/merkleblock_test.go | 10 +- pkg/network/payload/mptdata.go | 2 +- pkg/network/payload/mptdata_test.go | 2 +- pkg/network/payload/mptinventory.go | 4 +- pkg/network/payload/mptinventory_test.go | 4 +- pkg/network/payload/notary_request.go | 12 +- pkg/network/payload/notary_request_test.go | 10 +- pkg/network/payload/payload.go | 2 +- pkg/network/payload/ping.go | 2 +- pkg/network/payload/ping_test.go | 2 +- pkg/network/payload/version.go | 6 +- pkg/network/payload/version_test.go | 6 +- pkg/network/peer.go | 2 +- pkg/network/server.go | 32 ++--- pkg/network/server_config.go | 4 +- pkg/network/server_test.go | 30 ++--- pkg/network/state_sync.go | 8 +- pkg/network/tcp_peer.go | 6 +- pkg/network/tcp_peer_test.go | 2 +- pkg/rpcclient/actor/actor.go | 18 +-- pkg/rpcclient/actor/actor_test.go | 20 +-- pkg/rpcclient/actor/compat_test.go | 4 +- pkg/rpcclient/actor/doc_test.go | 20 +-- pkg/rpcclient/actor/maker.go | 8 +- pkg/rpcclient/actor/maker_test.go | 6 +- pkg/rpcclient/client.go | 8 +- pkg/rpcclient/doc_test.go | 4 +- pkg/rpcclient/gas/gas.go | 4 +- pkg/rpcclient/gas/gas_test.go | 6 +- pkg/rpcclient/invoker/compat_test.go | 4 +- pkg/rpcclient/invoker/doc_test.go | 16 +-- pkg/rpcclient/invoker/invoker.go | 10 +- pkg/rpcclient/invoker/invoker_test.go | 10 +- pkg/rpcclient/local.go | 2 +- pkg/rpcclient/local_test.go | 8 +- pkg/rpcclient/management/management.go | 20 +-- pkg/rpcclient/management/management_test.go | 12 +- pkg/rpcclient/neo/doc_test.go | 14 +- pkg/rpcclient/neo/neo.go | 20 +-- pkg/rpcclient/neo/neo_test.go | 12 +- pkg/rpcclient/nep11/base.go | 14 +- pkg/rpcclient/nep11/base_test.go | 8 +- pkg/rpcclient/nep11/divisible.go | 8 +- pkg/rpcclient/nep11/divisible_test.go | 8 +- pkg/rpcclient/nep11/doc_test.go | 14 +- pkg/rpcclient/nep11/nondivisible.go | 4 +- pkg/rpcclient/nep11/nondivisible_test.go | 6 +- pkg/rpcclient/nep17/doc_test.go | 14 +- pkg/rpcclient/nep17/nep17.go | 12 +- pkg/rpcclient/nep17/nep17_test.go | 8 +- pkg/rpcclient/nep22/nep22.go | 6 +- pkg/rpcclient/nep22/nep22_test.go | 6 +- pkg/rpcclient/nep24/doc_test.go | 8 +- pkg/rpcclient/nep24/royalty.go | 8 +- pkg/rpcclient/nep24/royalty_test.go | 8 +- pkg/rpcclient/nep31/nep31.go | 6 +- pkg/rpcclient/nep31/nep31_test.go | 4 +- pkg/rpcclient/neptoken/base.go | 6 +- pkg/rpcclient/neptoken/base_test.go | 6 +- pkg/rpcclient/neptoken/info.go | 10 +- pkg/rpcclient/neptoken/info_test.go | 20 +-- pkg/rpcclient/nns/contract.go | 14 +- pkg/rpcclient/nns/contract_test.go | 10 +- pkg/rpcclient/nns/iterators.go | 4 +- pkg/rpcclient/nns/record.go | 4 +- pkg/rpcclient/nns/record_test.go | 2 +- pkg/rpcclient/notary/accounts.go | 12 +- pkg/rpcclient/notary/accounts_test.go | 6 +- pkg/rpcclient/notary/actor.go | 26 ++-- pkg/rpcclient/notary/actor_test.go | 34 ++--- pkg/rpcclient/notary/contract.go | 14 +- pkg/rpcclient/notary/contract_test.go | 10 +- pkg/rpcclient/notary/doc_test.go | 16 +-- pkg/rpcclient/oracle/oracle.go | 10 +- pkg/rpcclient/oracle/oracle_test.go | 8 +- pkg/rpcclient/policy/policy.go | 14 +- pkg/rpcclient/policy/policy_test.go | 8 +- pkg/rpcclient/rolemgmt/roles.go | 16 +-- pkg/rpcclient/rolemgmt/roles_test.go | 12 +- pkg/rpcclient/rpc.go | 28 ++-- pkg/rpcclient/rpc_test.go | 44 +++---- pkg/rpcclient/unwrap/unwrap.go | 10 +- pkg/rpcclient/unwrap/unwrap_test.go | 10 +- pkg/rpcclient/waiter/waiter.go | 12 +- pkg/rpcclient/waiter/waiter_test.go | 24 ++-- pkg/rpcclient/wsclient.go | 14 +- pkg/rpcclient/wsclient_test.go | 24 ++-- pkg/services/blockfetcher/blockfetcher.go | 10 +- .../blockfetcher/blockfetcher_test.go | 6 +- pkg/services/helpers/neofs/blockstorage.go | 4 +- pkg/services/helpers/neofs/neofs.go | 4 +- pkg/services/helpers/rpcbroadcaster/client.go | 2 +- pkg/services/metrics/metrics.go | 2 +- pkg/services/metrics/pprof.go | 2 +- pkg/services/metrics/prometheus.go | 2 +- pkg/services/notary/core_test.go | 44 +++---- pkg/services/notary/node.go | 8 +- pkg/services/notary/node_test.go | 12 +- pkg/services/notary/notary.go | 32 ++--- pkg/services/notary/notary_test.go | 20 +-- pkg/services/oracle/broadcaster/oracle.go | 10 +- pkg/services/oracle/filter.go | 4 +- pkg/services/oracle/network.go | 2 +- pkg/services/oracle/network_test.go | 2 +- pkg/services/oracle/nodes.go | 8 +- pkg/services/oracle/oracle.go | 22 ++-- pkg/services/oracle/oracle_test.go | 38 +++--- pkg/services/oracle/request.go | 10 +- pkg/services/oracle/response.go | 18 +-- pkg/services/oracle/transaction.go | 16 +-- pkg/services/rpcsrv/client_test.go | 96 +++++++------- pkg/services/rpcsrv/error.go | 2 +- pkg/services/rpcsrv/local_test.go | 16 +-- .../rpcsrv/notification_comparator.go | 10 +- pkg/services/rpcsrv/params/param.go | 12 +- pkg/services/rpcsrv/params/param_test.go | 10 +- pkg/services/rpcsrv/params/params_test.go | 2 +- pkg/services/rpcsrv/params/txBuilder.go | 14 +- pkg/services/rpcsrv/params/tx_builder_test.go | 6 +- pkg/services/rpcsrv/params/types.go | 2 +- pkg/services/rpcsrv/server.go | 70 +++++----- pkg/services/rpcsrv/server_helper_test.go | 22 ++-- pkg/services/rpcsrv/server_test.go | 64 ++++----- pkg/services/rpcsrv/subscription.go | 2 +- pkg/services/rpcsrv/subscription_test.go | 16 +-- pkg/services/rpcsrv/tokens.go | 2 +- pkg/services/statefetcher/statefetcher.go | 10 +- .../statefetcher/statefetcher_test.go | 6 +- pkg/services/stateroot/message.go | 4 +- pkg/services/stateroot/network.go | 14 +- pkg/services/stateroot/service.go | 20 +-- pkg/services/stateroot/service_test.go | 48 +++---- pkg/services/stateroot/signature.go | 16 +-- pkg/services/stateroot/validators.go | 12 +- pkg/services/stateroot/vote.go | 4 +- pkg/smartcontract/binding/generate.go | 20 +-- pkg/smartcontract/binding/generate_test.go | 2 +- pkg/smartcontract/binding/override.go | 4 +- pkg/smartcontract/builder.go | 10 +- pkg/smartcontract/builder_test.go | 2 +- pkg/smartcontract/callflag/call_flags_test.go | 2 +- pkg/smartcontract/context/context.go | 20 +-- pkg/smartcontract/context/context_test.go | 22 ++-- pkg/smartcontract/context/item.go | 4 +- pkg/smartcontract/context/item_test.go | 8 +- pkg/smartcontract/contract.go | 8 +- pkg/smartcontract/contract_test.go | 8 +- pkg/smartcontract/doc_test.go | 14 +- pkg/smartcontract/entry.go | 12 +- pkg/smartcontract/manifest/abi.go | 2 +- pkg/smartcontract/manifest/abi_test.go | 2 +- pkg/smartcontract/manifest/container_test.go | 6 +- pkg/smartcontract/manifest/event.go | 2 +- pkg/smartcontract/manifest/event_test.go | 4 +- pkg/smartcontract/manifest/group.go | 8 +- pkg/smartcontract/manifest/group_test.go | 6 +- pkg/smartcontract/manifest/manifest.go | 4 +- pkg/smartcontract/manifest/manifest_test.go | 10 +- pkg/smartcontract/manifest/method.go | 4 +- pkg/smartcontract/manifest/method_test.go | 6 +- pkg/smartcontract/manifest/parameter.go | 4 +- pkg/smartcontract/manifest/parameter_test.go | 4 +- pkg/smartcontract/manifest/permission.go | 6 +- pkg/smartcontract/manifest/permission_test.go | 8 +- pkg/smartcontract/manifest/standard/check.go | 2 +- pkg/smartcontract/manifest/standard/comply.go | 2 +- .../manifest/standard/comply_test.go | 4 +- pkg/smartcontract/manifest/standard/nep11.go | 4 +- pkg/smartcontract/manifest/standard/nep17.go | 4 +- pkg/smartcontract/manifest/standard/nep22.go | 4 +- pkg/smartcontract/manifest/standard/nep24.go | 4 +- pkg/smartcontract/manifest/standard/nep26.go | 4 +- pkg/smartcontract/manifest/standard/nep27.go | 4 +- pkg/smartcontract/manifest/standard/nep29.go | 4 +- pkg/smartcontract/manifest/standard/nep30.go | 4 +- pkg/smartcontract/manifest/standard/nep31.go | 4 +- pkg/smartcontract/manifest/standard/token.go | 4 +- pkg/smartcontract/nef/method_token.go | 6 +- pkg/smartcontract/nef/method_token_test.go | 6 +- pkg/smartcontract/nef/nef.go | 8 +- pkg/smartcontract/nef/nef_test.go | 12 +- pkg/smartcontract/param_type.go | 14 +- pkg/smartcontract/param_type_test.go | 6 +- pkg/smartcontract/parameter.go | 6 +- pkg/smartcontract/parameter_test.go | 10 +- pkg/smartcontract/rpcbinding/binding.go | 56 ++++---- pkg/smartcontract/scparser/context.go | 4 +- pkg/smartcontract/scparser/contract_checks.go | 10 +- .../scparser/contract_checks_test.go | 14 +- pkg/smartcontract/scparser/fuzz_test.go | 6 +- pkg/smartcontract/zkpbinding/binding.go | 20 +-- pkg/util/uint160.go | 2 +- pkg/util/uint160_test.go | 4 +- pkg/util/uint256.go | 2 +- pkg/util/uint256_test.go | 4 +- pkg/vm/bench_test.go | 2 +- pkg/vm/context.go | 16 +-- pkg/vm/debug_test.go | 6 +- pkg/vm/emit/emit.go | 14 +- pkg/vm/emit/emit_test.go | 12 +- pkg/vm/exception.go | 2 +- pkg/vm/fuzz_test.go | 4 +- pkg/vm/invocation_tree_test.go | 6 +- pkg/vm/invocations/invocation_tree.go | 2 +- pkg/vm/iterator_test.go | 10 +- pkg/vm/json_test.go | 10 +- pkg/vm/opcodebench_test.go | 4 +- pkg/vm/ref_counter.go | 2 +- pkg/vm/ref_counter_test.go | 4 +- pkg/vm/slot.go | 2 +- pkg/vm/slot_test.go | 2 +- pkg/vm/stack.go | 2 +- pkg/vm/stack_test.go | 2 +- pkg/vm/stackitem/item.go | 6 +- pkg/vm/stackitem/item_test.go | 4 +- pkg/vm/stackitem/serialization.go | 6 +- pkg/vm/stackitem/serialization_test.go | 2 +- pkg/vm/vm.go | 30 ++--- pkg/vm/vm_test.go | 22 ++-- pkg/wallet/account.go | 20 +-- pkg/wallet/account_test.go | 12 +- pkg/wallet/regenerate_test.go | 10 +- pkg/wallet/token.go | 4 +- pkg/wallet/token_test.go | 4 +- pkg/wallet/wallet.go | 8 +- pkg/wallet/wallet_test.go | 6 +- scripts/compare-dumps/compare-dumps_test.go | 6 +- scripts/compare-states/compare-states.go | 4 +- scripts/gendump/main.go | 26 ++-- scripts/go.mod | 6 +- scripts/go.sum | 4 +- 785 files changed, 3993 insertions(+), 3993 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f997d1e..c7b2afd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3352,7 +3352,7 @@ Changes specific to neo-go: * we no longer provide bootstrapping 6k block dump for private networks, you have 30000000 GAS right in the genesis block and it's not hard to make use of it (see - [neo-go-sc-wrkshp](https://github.com/nspcc-dev/neo-go-sc-wrkshp) for an + [neo-go-sc-wrkshp](https://github.com/tutus-one/tutus-chain-sc-wrkshp) for an example of how to use it) * we have a conversion tool for your old Neo 2 wallets (`wallet convert` command), so you can reuse keys on Neo 3 networks @@ -3363,6 +3363,6 @@ Changes specific to neo-go: ## Older versions Please refer to the [master-2.x branch -CHANGELOG](https://github.com/nspcc-dev/neo-go/tree/master-2.x/CHANGELOG.md) +CHANGELOG](https://github.com/tutus-one/tutus-chain/tree/master-2.x/CHANGELOG.md) for versions prior to 0.90.0 (that are Neo 2 compatible, unlike 0.90.0+ that are Neo 3 compatible). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ec598ba..bac0e76 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,8 +3,8 @@ First, thank you for contributing! We love and encourage pull requests from everyone. Please follow the guidelines: -1. Check open [issues](https://github.com/nspcc-dev/neo-go/issues) and -[pull requests](https://github.com/nspcc-dev/neo-go/pulls) for existing discussions. +1. Check open [issues](https://github.com/tutus-one/tutus-chain/issues) and +[pull requests](https://github.com/tutus-one/tutus-chain/pulls) for existing discussions. 1. Open an issue first to discuss a new feature or enhancement. 1. Write tests and make sure the test suite passes locally and on CI. 1. When optimizing something, write benchmarks and attach the results: diff --git a/cli/app/app.go b/cli/app/app.go index aaee0d0..07dcd60 100644 --- a/cli/app/app.go +++ b/cli/app/app.go @@ -5,13 +5,13 @@ import ( "os" "runtime" - "github.com/nspcc-dev/neo-go/cli/query" - "github.com/nspcc-dev/neo-go/cli/server" - "github.com/nspcc-dev/neo-go/cli/smartcontract" - "github.com/nspcc-dev/neo-go/cli/util" - "github.com/nspcc-dev/neo-go/cli/vm" - "github.com/nspcc-dev/neo-go/cli/wallet" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/cli/query" + "github.com/tutus-one/tutus-chain/cli/server" + "github.com/tutus-one/tutus-chain/cli/smartcontract" + "github.com/tutus-one/tutus-chain/cli/util" + "github.com/tutus-one/tutus-chain/cli/vm" + "github.com/tutus-one/tutus-chain/cli/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" "github.com/urfave/cli/v2" ) diff --git a/cli/app/main_test.go b/cli/app/main_test.go index a8521f3..19c0051 100644 --- a/cli/app/main_test.go +++ b/cli/app/main_test.go @@ -3,9 +3,9 @@ package app_test import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/internal/versionutil" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/internal/versionutil" + "github.com/tutus-one/tutus-chain/pkg/config" ) func TestCLIVersion(t *testing.T) { diff --git a/cli/cmdargs/parser.go b/cli/cmdargs/parser.go index 713cc5d..c1fbd59 100644 --- a/cli/cmdargs/parser.go +++ b/cli/cmdargs/parser.go @@ -5,13 +5,13 @@ import ( "fmt" "strings" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/urfave/cli/v2" ) diff --git a/cli/cmdargs/parser_test.go b/cli/cmdargs/parser_test.go index f3d8521..c2a676c 100644 --- a/cli/cmdargs/parser_test.go +++ b/cli/cmdargs/parser_test.go @@ -4,11 +4,11 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/cli/flags/address.go b/cli/flags/address.go index dc62cf0..03f24bf 100644 --- a/cli/flags/address.go +++ b/cli/flags/address.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/urfave/cli/v2" ) diff --git a/cli/flags/address_test.go b/cli/flags/address_test.go index 349c74d..361737a 100644 --- a/cli/flags/address_test.go +++ b/cli/flags/address_test.go @@ -5,9 +5,9 @@ import ( "io" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" "github.com/urfave/cli/v2" ) diff --git a/cli/flags/fixed8.go b/cli/flags/fixed8.go index 7b7fd38..c2da7c2 100644 --- a/cli/flags/fixed8.go +++ b/cli/flags/fixed8.go @@ -4,7 +4,7 @@ import ( "flag" "strings" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" "github.com/urfave/cli/v2" ) diff --git a/cli/flags/fixed8_test.go b/cli/flags/fixed8_test.go index d42a82b..5b08cdd 100644 --- a/cli/flags/fixed8_test.go +++ b/cli/flags/fixed8_test.go @@ -5,7 +5,7 @@ import ( "io" "testing" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" "github.com/stretchr/testify/require" "github.com/urfave/cli/v2" ) diff --git a/cli/input/input.go b/cli/input/input.go index 43c6364..31708d3 100644 --- a/cli/input/input.go +++ b/cli/input/input.go @@ -7,8 +7,8 @@ import ( "os" "syscall" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" "golang.org/x/term" ) diff --git a/cli/main.go b/cli/main.go index bc07e14..4b63f69 100644 --- a/cli/main.go +++ b/cli/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/nspcc-dev/neo-go/cli/app" + "github.com/tutus-one/tutus-chain/cli/app" ) func main() { diff --git a/cli/nep_test/nep11_test.go b/cli/nep_test/nep11_test.go index 8f65583..6b0ed57 100644 --- a/cli/nep_test/nep11_test.go +++ b/cli/nep_test/nep11_test.go @@ -14,15 +14,15 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/internal/versionutil" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/internal/versionutil" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/cli/nep_test/nep17_test.go b/cli/nep_test/nep17_test.go index a9340b3..92d8a78 100644 --- a/cli/nep_test/nep17_test.go +++ b/cli/nep_test/nep17_test.go @@ -10,13 +10,13 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/cli/options/cli_options_test.go b/cli/options/cli_options_test.go index 4cf9977..66988fe 100644 --- a/cli/options/cli_options_test.go +++ b/cli/options/cli_options_test.go @@ -4,9 +4,9 @@ import ( "flag" "testing" - "github.com/nspcc-dev/neo-go/cli/app" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/internal/testcli" + "github.com/tutus-one/tutus-chain/cli/app" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/internal/testcli" "github.com/stretchr/testify/require" "github.com/urfave/cli/v2" ) diff --git a/cli/options/options.go b/cli/options/options.go index 7a084a5..da425d0 100644 --- a/cli/options/options.go +++ b/cli/options/options.go @@ -15,20 +15,20 @@ import ( "strings" "time" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/input" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/services/helpers/neofs" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/input" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/services/helpers/neofs" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/nspcc-dev/neofs-sdk-go/pool" "github.com/nspcc-dev/neofs-sdk-go/user" "github.com/urfave/cli/v2" diff --git a/cli/options/options_test.go b/cli/options/options_test.go index 649d9b2..c036c2e 100644 --- a/cli/options/options_test.go +++ b/cli/options/options_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" "github.com/stretchr/testify/require" "github.com/urfave/cli/v2" diff --git a/cli/paramcontext/context.go b/cli/paramcontext/context.go index 3d6429c..a95a81e 100644 --- a/cli/paramcontext/context.go +++ b/cli/paramcontext/context.go @@ -5,10 +5,10 @@ import ( "fmt" "os" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/context" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/context" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) // InitAndSave creates an incompletely signed transaction which can be used diff --git a/cli/query/query.go b/cli/query/query.go index 5150bf3..e7c4461 100644 --- a/cli/query/query.go +++ b/cli/query/query.go @@ -10,19 +10,19 @@ import ( "strings" "text/tabwriter" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neo" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neo" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/urfave/cli/v2" ) diff --git a/cli/query/query_test.go b/cli/query/query_test.go index e508412..9d58bff 100644 --- a/cli/query/query_test.go +++ b/cli/query/query_test.go @@ -11,25 +11,25 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/gas" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/notary" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/gas" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/notary" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/cli/server/cli_dump_test.go b/cli/server/cli_dump_test.go index acc5eb5..c2e1dde 100644 --- a/cli/server/cli_dump_test.go +++ b/cli/server/cli_dump_test.go @@ -6,9 +6,9 @@ import ( "strconv" "testing" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/cli/server/cli_server_test.go b/cli/server/cli_server_test.go index 5e76d45..b825ec4 100644 --- a/cli/server/cli_server_test.go +++ b/cli/server/cli_server_test.go @@ -10,10 +10,10 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/cli/server" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/cli/server" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/cli/server/dump.go b/cli/server/dump.go index d7b6a18..f54c2aa 100644 --- a/cli/server/dump.go +++ b/cli/server/dump.go @@ -6,8 +6,8 @@ import ( "os" "path/filepath" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dboper" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dboper" ) type dump []blockDump diff --git a/cli/server/dump_bin.go b/cli/server/dump_bin.go index 66a5d3e..1495d97 100644 --- a/cli/server/dump_bin.go +++ b/cli/server/dump_bin.go @@ -5,10 +5,10 @@ import ( "os" "path/filepath" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/io" "github.com/urfave/cli/v2" ) diff --git a/cli/server/dump_bin_test.go b/cli/server/dump_bin_test.go index 0524f2c..d6603db 100644 --- a/cli/server/dump_bin_test.go +++ b/cli/server/dump_bin_test.go @@ -6,9 +6,9 @@ import ( "strconv" "testing" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/cli/server/server.go b/cli/server/server.go index 69423c5..2824f4a 100644 --- a/cli/server/server.go +++ b/cli/server/server.go @@ -12,24 +12,24 @@ import ( "slices" "syscall" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/consensus" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/chaindump" - corestate "github.com/nspcc-dev/neo-go/pkg/core/stateroot" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network" - "github.com/nspcc-dev/neo-go/pkg/services/metrics" - "github.com/nspcc-dev/neo-go/pkg/services/notary" - "github.com/nspcc-dev/neo-go/pkg/services/oracle" - "github.com/nspcc-dev/neo-go/pkg/services/rpcsrv" - "github.com/nspcc-dev/neo-go/pkg/services/stateroot" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/consensus" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/chaindump" + corestate "github.com/tutus-one/tutus-chain/pkg/core/stateroot" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network" + "github.com/tutus-one/tutus-chain/pkg/services/metrics" + "github.com/tutus-one/tutus-chain/pkg/services/notary" + "github.com/tutus-one/tutus-chain/pkg/services/oracle" + "github.com/tutus-one/tutus-chain/pkg/services/rpcsrv" + "github.com/tutus-one/tutus-chain/pkg/services/stateroot" "github.com/urfave/cli/v2" "go.uber.org/zap" "go.uber.org/zap/zapcore" diff --git a/cli/server/server_test.go b/cli/server/server_test.go index 6c44784..08dedb3 100644 --- a/cli/server/server_test.go +++ b/cli/server/server_test.go @@ -10,10 +10,10 @@ import ( "go.uber.org/zap/zapcore" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" "github.com/stretchr/testify/require" "github.com/urfave/cli/v2" "gopkg.in/yaml.v3" diff --git a/cli/smartcontract/contract_test.go b/cli/smartcontract/contract_test.go index 725fe39..0deff1e 100644 --- a/cli/smartcontract/contract_test.go +++ b/cli/smartcontract/contract_test.go @@ -12,26 +12,26 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/cli/smartcontract" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/internal/versionutil" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/smartcontract" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/internal/versionutil" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) @@ -117,7 +117,7 @@ func TestContractBindings(t *testing.T) { srcPath := filepath.Join(ctrPath, "main.go") require.NoError(t, os.WriteFile(srcPath, []byte(`package testcontract import( - alias "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" + alias "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" ) type MyPair struct { Key int @@ -174,9 +174,9 @@ func Blocks() []*alias.Block { package testcontract import ( - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" "myimport.com/testcontract" ) @@ -227,7 +227,7 @@ func updateGoMod(dir, moduleName, neoGoPath string) error { } replacementPath := filepath.Join(wd, neoGoPath) - updatedData = append(updatedData, "\nreplace github.com/nspcc-dev/neo-go/pkg/interop => "+replacementPath+" \n"...) + updatedData = append(updatedData, "\nreplace github.com/tutus-one/tutus-chain/pkg/interop => "+replacementPath+" \n"...) if err := os.WriteFile(goModPath, updatedData, os.ModePerm); err != nil { return fmt.Errorf("failed to write updated go.mod: %w", err) @@ -250,7 +250,7 @@ func TestDynamicWrapper(t *testing.T) { helperContract := `package testcontract import ( - "github.com/nspcc-dev/neo-go/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop" verify "myimport.com/testcontract/bindings" ) diff --git a/cli/smartcontract/generate.go b/cli/smartcontract/generate.go index be79a08..ee26ead 100644 --- a/cli/smartcontract/generate.go +++ b/cli/smartcontract/generate.go @@ -6,10 +6,10 @@ import ( "os" "strings" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/rpcbinding" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/binding" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/rpcbinding" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/urfave/cli/v2" "gopkg.in/yaml.v3" ) diff --git a/cli/smartcontract/generate_test.go b/cli/smartcontract/generate_test.go index 3824f75..050055b 100644 --- a/cli/smartcontract/generate_test.go +++ b/cli/smartcontract/generate_test.go @@ -9,10 +9,10 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) @@ -157,12 +157,12 @@ package wrapper import ( "github.com/heyitsme/mycontract" - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) // Hash contains contract hash in big-endian form. @@ -245,11 +245,11 @@ package wrapper import ( "github.com/heyitsme/mycontract" - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) // Contract represents the MyContract smart contract. @@ -364,8 +364,8 @@ func TestGenerateValidPackageName(t *testing.T) { package myspacecontract import ( - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Hash contains contract hash in big-endian form. @@ -390,9 +390,9 @@ func Get() int { package myspacecontract import ( - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/util" "math/big" ) diff --git a/cli/smartcontract/manifest.go b/cli/smartcontract/manifest.go index 8d65fcc..ab67fa0 100644 --- a/cli/smartcontract/manifest.go +++ b/cli/smartcontract/manifest.go @@ -5,13 +5,13 @@ import ( "fmt" "os" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/urfave/cli/v2" ) diff --git a/cli/smartcontract/permission.go b/cli/smartcontract/permission.go index 9f10edf..61c033e 100644 --- a/cli/smartcontract/permission.go +++ b/cli/smartcontract/permission.go @@ -4,9 +4,9 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" "gopkg.in/yaml.v3" ) diff --git a/cli/smartcontract/rpcbindings/nft-d/dynamic_hash/rpcbindings_test.go b/cli/smartcontract/rpcbindings/nft-d/dynamic_hash/rpcbindings_test.go index 01b8de7..5f6f44a 100644 --- a/cli/smartcontract/rpcbindings/nft-d/dynamic_hash/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/nft-d/dynamic_hash/rpcbindings_test.go @@ -4,11 +4,11 @@ package nft import ( - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep22" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep24" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep31" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep22" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep24" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep31" + "github.com/tutus-one/tutus-chain/pkg/util" ) // NEP22Contract is an alias for nep22.Contract. diff --git a/cli/smartcontract/rpcbindings/nft-d/rpcbindings_test.go b/cli/smartcontract/rpcbindings/nft-d/rpcbindings_test.go index d6bac79..13ed5c5 100644 --- a/cli/smartcontract/rpcbindings/nft-d/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/nft-d/rpcbindings_test.go @@ -4,11 +4,11 @@ package nft import ( - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep22" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep24" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep31" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep22" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep24" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep31" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Hash contains contract hash. diff --git a/cli/smartcontract/rpcbindings/nft-nd/dynamic_hash/rpcbindings_test.go b/cli/smartcontract/rpcbindings/nft-nd/dynamic_hash/rpcbindings_test.go index d5bebf5..2b7d15e 100644 --- a/cli/smartcontract/rpcbindings/nft-nd/dynamic_hash/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/nft-nd/dynamic_hash/rpcbindings_test.go @@ -6,14 +6,14 @@ package nft import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep22" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep24" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep31" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep22" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep24" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep31" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" ) diff --git a/cli/smartcontract/rpcbindings/nft-nd/rpcbindings_test.go b/cli/smartcontract/rpcbindings/nft-nd/rpcbindings_test.go index a22211c..380ad99 100644 --- a/cli/smartcontract/rpcbindings/nft-nd/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/nft-nd/rpcbindings_test.go @@ -6,14 +6,14 @@ package nft import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep22" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep24" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep31" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep22" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep24" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep31" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" ) diff --git a/cli/smartcontract/rpcbindings/notifications/rpcbindings/extended/rpcbindings_test.go b/cli/smartcontract/rpcbindings/notifications/rpcbindings/extended/rpcbindings_test.go index c0b255a..8c473c9 100755 --- a/cli/smartcontract/rpcbindings/notifications/rpcbindings/extended/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/notifications/rpcbindings/extended/rpcbindings_test.go @@ -6,11 +6,11 @@ package structs import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" "unicode/utf8" ) diff --git a/cli/smartcontract/rpcbindings/notifications/rpcbindings/guessed/rpcbindings_test.go b/cli/smartcontract/rpcbindings/notifications/rpcbindings/guessed/rpcbindings_test.go index 4b01120..ad87c14 100755 --- a/cli/smartcontract/rpcbindings/notifications/rpcbindings/guessed/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/notifications/rpcbindings/guessed/rpcbindings_test.go @@ -6,11 +6,11 @@ package structs import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" "unicode/utf8" ) diff --git a/cli/smartcontract/rpcbindings/notifications/rpcbindings/rpcbindings_test.go b/cli/smartcontract/rpcbindings/notifications/rpcbindings/rpcbindings_test.go index 5b72cbd..d838fc3 100644 --- a/cli/smartcontract/rpcbindings/notifications/rpcbindings/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/notifications/rpcbindings/rpcbindings_test.go @@ -6,10 +6,10 @@ package structs import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "unicode/utf8" ) diff --git a/cli/smartcontract/rpcbindings/royalty/rpcbindings/dynamic_hash/rpcbindings_test.go b/cli/smartcontract/rpcbindings/royalty/rpcbindings/dynamic_hash/rpcbindings_test.go index 9ead45f..0c24cbe 100644 --- a/cli/smartcontract/rpcbindings/royalty/rpcbindings/dynamic_hash/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/royalty/rpcbindings/dynamic_hash/rpcbindings_test.go @@ -4,8 +4,8 @@ package royalty import ( - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/util" "math/big" ) diff --git a/cli/smartcontract/rpcbindings/royalty/rpcbindings/rpcbindings_test.go b/cli/smartcontract/rpcbindings/royalty/rpcbindings/rpcbindings_test.go index ad3fe68..fe92ed6 100644 --- a/cli/smartcontract/rpcbindings/royalty/rpcbindings/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/royalty/rpcbindings/rpcbindings_test.go @@ -4,8 +4,8 @@ package royalty import ( - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/util" "math/big" ) diff --git a/cli/smartcontract/rpcbindings/structs/rpcbindings/dynamic_hash/rpcbindings_test.go b/cli/smartcontract/rpcbindings/structs/rpcbindings/dynamic_hash/rpcbindings_test.go index d98de5d..6838c08 100755 --- a/cli/smartcontract/rpcbindings/structs/rpcbindings/dynamic_hash/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/structs/rpcbindings/dynamic_hash/rpcbindings_test.go @@ -7,12 +7,12 @@ import ( "crypto/elliptic" "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" "unicode/utf8" ) diff --git a/cli/smartcontract/rpcbindings/structs/rpcbindings/rpcbindings_test.go b/cli/smartcontract/rpcbindings/structs/rpcbindings/rpcbindings_test.go index 9dcb21c..0f8c02f 100644 --- a/cli/smartcontract/rpcbindings/structs/rpcbindings/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/structs/rpcbindings/rpcbindings_test.go @@ -7,12 +7,12 @@ import ( "crypto/elliptic" "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" "unicode/utf8" ) diff --git a/cli/smartcontract/rpcbindings/types/rpcbindings/dynamic_hash/rpcbindings_test.go b/cli/smartcontract/rpcbindings/types/rpcbindings/dynamic_hash/rpcbindings_test.go index cab0cb5..233a773 100755 --- a/cli/smartcontract/rpcbindings/types/rpcbindings/dynamic_hash/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/types/rpcbindings/dynamic_hash/rpcbindings_test.go @@ -6,12 +6,12 @@ package types import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" "unicode/utf8" ) diff --git a/cli/smartcontract/rpcbindings/types/rpcbindings/rpcbindings_test.go b/cli/smartcontract/rpcbindings/types/rpcbindings/rpcbindings_test.go index 8db5528..5e6261e 100644 --- a/cli/smartcontract/rpcbindings/types/rpcbindings/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/types/rpcbindings/rpcbindings_test.go @@ -6,12 +6,12 @@ package types import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" "unicode/utf8" ) diff --git a/cli/smartcontract/rpcbindings/verify/rpcbindings_test.go b/cli/smartcontract/rpcbindings/verify/rpcbindings_test.go index 59e82a5..56fcd65 100644 --- a/cli/smartcontract/rpcbindings/verify/rpcbindings_test.go +++ b/cli/smartcontract/rpcbindings/verify/rpcbindings_test.go @@ -6,11 +6,11 @@ package verify import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Hash contains contract hash. diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index 605b37a..650120e 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -9,24 +9,24 @@ import ( "path/filepath" "strings" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/txctx" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/management" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/txctx" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/management" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/binding" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/urfave/cli/v2" "gopkg.in/yaml.v3" ) @@ -72,7 +72,7 @@ const ( // %s is parsed to be the smartContractName. smartContractTmpl = `package %s -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" var notificationName string @@ -452,7 +452,7 @@ func initSmartContract(ctx *cli.Context) error { go 1.24 require ( - github.com/nspcc-dev/neo-go/pkg/interop ` + ver + ` + github.com/tutus-one/tutus-chain/pkg/interop ` + ver + ` )`) if err := os.WriteFile(filepath.Join(basePath, "go.mod"), gm, 0644); err != nil { return cli.Exit(err, 1) diff --git a/cli/smartcontract/smart_contract_test.go b/cli/smartcontract/smart_contract_test.go index 7bab336..1512987 100644 --- a/cli/smartcontract/smart_contract_test.go +++ b/cli/smartcontract/smart_contract_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" "github.com/stretchr/testify/require" "github.com/urfave/cli/v2" "gopkg.in/yaml.v3" @@ -40,7 +40,7 @@ func TestInitSmartContract(t *testing.T) { require.Equal(t, `package `+contractName+` -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" var notificationName string diff --git a/cli/smartcontract/testdata/deploy/main.go b/cli/smartcontract/testdata/deploy/main.go index 0017e0b..ab9316a 100644 --- a/cli/smartcontract/testdata/deploy/main.go +++ b/cli/smartcontract/testdata/deploy/main.go @@ -1,12 +1,12 @@ package deploy import ( - "github.com/nspcc-dev/neo-go/cli/smartcontract/testdata/deploy/sub" - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/cli/smartcontract/testdata/deploy/sub" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) var key = "key" diff --git a/cli/smartcontract/testdata/deploy/sub/put.go b/cli/smartcontract/testdata/deploy/sub/put.go index 08f6347..2359d01 100644 --- a/cli/smartcontract/testdata/deploy/sub/put.go +++ b/cli/smartcontract/testdata/deploy/sub/put.go @@ -1,6 +1,6 @@ package sub -import "github.com/nspcc-dev/neo-go/pkg/interop/storage" +import "github.com/tutus-one/tutus-chain/pkg/interop/storage" var Key = "sub" diff --git a/cli/smartcontract/testdata/gas/gas.go b/cli/smartcontract/testdata/gas/gas.go index b5fb268..a7dda45 100644 --- a/cli/smartcontract/testdata/gas/gas.go +++ b/cli/smartcontract/testdata/gas/gas.go @@ -4,8 +4,8 @@ package gastoken import ( - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep17" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep17" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Hash contains contract hash. diff --git a/cli/smartcontract/testdata/invalid1/invalid.go b/cli/smartcontract/testdata/invalid1/invalid.go index 3bdf220..d09a535 100644 --- a/cli/smartcontract/testdata/invalid1/invalid.go +++ b/cli/smartcontract/testdata/invalid1/invalid.go @@ -2,8 +2,8 @@ package invalid1 import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // Notify1 emits a correctly typed event. diff --git a/cli/smartcontract/testdata/invalid2/invalid.go b/cli/smartcontract/testdata/invalid2/invalid.go index 07f1002..31d5f17 100644 --- a/cli/smartcontract/testdata/invalid2/invalid.go +++ b/cli/smartcontract/testdata/invalid2/invalid.go @@ -2,8 +2,8 @@ package invalid2 import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // Notify1 emits a correctly typed event. diff --git a/cli/smartcontract/testdata/invalid3/invalid.go b/cli/smartcontract/testdata/invalid3/invalid.go index 2dc7c96..21b2e5b 100644 --- a/cli/smartcontract/testdata/invalid3/invalid.go +++ b/cli/smartcontract/testdata/invalid3/invalid.go @@ -2,8 +2,8 @@ package invalid3 import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // Notify1 emits a correctly typed event. diff --git a/cli/smartcontract/testdata/nameservice/nns.go b/cli/smartcontract/testdata/nameservice/nns.go index 5205e4d..47ff3eb 100644 --- a/cli/smartcontract/testdata/nameservice/nns.go +++ b/cli/smartcontract/testdata/nameservice/nns.go @@ -7,13 +7,13 @@ import ( "errors" "fmt" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" "unicode/utf8" ) diff --git a/cli/smartcontract/testdata/nex/nex.go b/cli/smartcontract/testdata/nex/nex.go index 078c794..28f2bce 100644 --- a/cli/smartcontract/testdata/nex/nex.go +++ b/cli/smartcontract/testdata/nex/nex.go @@ -6,13 +6,13 @@ package nextoken import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep17" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep17" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "math/big" ) diff --git a/cli/smartcontract/testdata/nonepiter/iter.go b/cli/smartcontract/testdata/nonepiter/iter.go index bf8e7c2..b0aaadb 100644 --- a/cli/smartcontract/testdata/nonepiter/iter.go +++ b/cli/smartcontract/testdata/nonepiter/iter.go @@ -5,10 +5,10 @@ package nonnepxxcontractwithiterators import ( "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Hash contains contract hash. diff --git a/cli/smartcontract/testdata/rpcbindings/invalid1/invalid.go b/cli/smartcontract/testdata/rpcbindings/invalid1/invalid.go index 821a7d8..d5b24f0 100644 --- a/cli/smartcontract/testdata/rpcbindings/invalid1/invalid.go +++ b/cli/smartcontract/testdata/rpcbindings/invalid1/invalid.go @@ -1,6 +1,6 @@ package invalid1 -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main() { runtime.Notify("Non declared event") diff --git a/cli/smartcontract/testdata/rpcbindings/invalid2/invalid.go b/cli/smartcontract/testdata/rpcbindings/invalid2/invalid.go index 6aa771c..483203b 100644 --- a/cli/smartcontract/testdata/rpcbindings/invalid2/invalid.go +++ b/cli/smartcontract/testdata/rpcbindings/invalid2/invalid.go @@ -1,6 +1,6 @@ package invalid2 -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main() { runtime.Notify("SomeEvent", "p1", "p2") diff --git a/cli/smartcontract/testdata/rpcbindings/invalid3/invalid.go b/cli/smartcontract/testdata/rpcbindings/invalid3/invalid.go index 7f9298f..24e5c1a 100644 --- a/cli/smartcontract/testdata/rpcbindings/invalid3/invalid.go +++ b/cli/smartcontract/testdata/rpcbindings/invalid3/invalid.go @@ -1,6 +1,6 @@ package invalid3 -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main() { runtime.Notify("SomeEvent", "p1", 5) diff --git a/cli/smartcontract/testdata/rpcbindings/invalid4/invalid.go b/cli/smartcontract/testdata/rpcbindings/invalid4/invalid.go index 70f887b..aa8cb1a 100644 --- a/cli/smartcontract/testdata/rpcbindings/invalid4/invalid.go +++ b/cli/smartcontract/testdata/rpcbindings/invalid4/invalid.go @@ -1,6 +1,6 @@ package invalid4 -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" type SomeStruct1 struct { Field1 int diff --git a/cli/smartcontract/testdata/rpcbindings/invalid5/invalid.go b/cli/smartcontract/testdata/rpcbindings/invalid5/invalid.go index 3d31565..e15fe58 100644 --- a/cli/smartcontract/testdata/rpcbindings/invalid5/invalid.go +++ b/cli/smartcontract/testdata/rpcbindings/invalid5/invalid.go @@ -1,6 +1,6 @@ package invalid5 -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" type NamedStruct struct { SomeInt int diff --git a/cli/smartcontract/testdata/rpcbindings/invalid6/invalid.go b/cli/smartcontract/testdata/rpcbindings/invalid6/invalid.go index 2b210e7..4a8c541 100644 --- a/cli/smartcontract/testdata/rpcbindings/invalid6/invalid.go +++ b/cli/smartcontract/testdata/rpcbindings/invalid6/invalid.go @@ -1,6 +1,6 @@ package invalid6 -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" type SomeStruct struct { Field int diff --git a/cli/smartcontract/testdata/rpcbindings/invalid7/invalid.go b/cli/smartcontract/testdata/rpcbindings/invalid7/invalid.go index 6cb9e6a..7d19838 100644 --- a/cli/smartcontract/testdata/rpcbindings/invalid7/invalid.go +++ b/cli/smartcontract/testdata/rpcbindings/invalid7/invalid.go @@ -1,6 +1,6 @@ package invalid7 -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" type SomeStruct struct { Field int diff --git a/cli/smartcontract/testdata/rpcbindings/notifications/config.yml b/cli/smartcontract/testdata/rpcbindings/notifications/config.yml index 40b13bf..c919cb1 100644 --- a/cli/smartcontract/testdata/rpcbindings/notifications/config.yml +++ b/cli/smartcontract/testdata/rpcbindings/notifications/config.yml @@ -1,5 +1,5 @@ name: "Notifications" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ events: - name: "! complicated name %$#" parameters: diff --git a/cli/smartcontract/testdata/rpcbindings/notifications/config_extended.yml b/cli/smartcontract/testdata/rpcbindings/notifications/config_extended.yml index 6c6e418..2b9a048 100644 --- a/cli/smartcontract/testdata/rpcbindings/notifications/config_extended.yml +++ b/cli/smartcontract/testdata/rpcbindings/notifications/config_extended.yml @@ -1,5 +1,5 @@ name: "Notifications" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ events: - name: "! complicated name %$#" parameters: diff --git a/cli/smartcontract/testdata/rpcbindings/notifications/config_guessed.yml b/cli/smartcontract/testdata/rpcbindings/notifications/config_guessed.yml index 40b13bf..c919cb1 100644 --- a/cli/smartcontract/testdata/rpcbindings/notifications/config_guessed.yml +++ b/cli/smartcontract/testdata/rpcbindings/notifications/config_guessed.yml @@ -1,5 +1,5 @@ name: "Notifications" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ events: - name: "! complicated name %$#" parameters: diff --git a/cli/smartcontract/testdata/rpcbindings/notifications/notifications.go b/cli/smartcontract/testdata/rpcbindings/notifications/notifications.go index e88a413..54cb215 100644 --- a/cli/smartcontract/testdata/rpcbindings/notifications/notifications.go +++ b/cli/smartcontract/testdata/rpcbindings/notifications/notifications.go @@ -1,8 +1,8 @@ package structs import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) func Main() { diff --git a/cli/smartcontract/testdata/rpcbindings/royalty/config.yml b/cli/smartcontract/testdata/rpcbindings/royalty/config.yml index a121845..635c724 100644 --- a/cli/smartcontract/testdata/rpcbindings/royalty/config.yml +++ b/cli/smartcontract/testdata/rpcbindings/royalty/config.yml @@ -1,5 +1,5 @@ name: Test royalty -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: ["NEP-24-Payable"] events: - name: RoyaltiesTransferred diff --git a/cli/smartcontract/testdata/rpcbindings/royalty/royalty.go b/cli/smartcontract/testdata/rpcbindings/royalty/royalty.go index 835a527..2e8c88c 100644 --- a/cli/smartcontract/testdata/rpcbindings/royalty/royalty.go +++ b/cli/smartcontract/testdata/rpcbindings/royalty/royalty.go @@ -1,9 +1,9 @@ package royalty import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // RoyaltiesTransferred notifies about royalty payment. This method is called by marketplace diff --git a/cli/smartcontract/testdata/rpcbindings/structs/config.yml b/cli/smartcontract/testdata/rpcbindings/structs/config.yml index 04192ba..23fe176 100644 --- a/cli/smartcontract/testdata/rpcbindings/structs/config.yml +++ b/cli/smartcontract/testdata/rpcbindings/structs/config.yml @@ -1,3 +1,3 @@ name: "Types" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ safemethods: ["contract", "block", "transaction", "struct"] diff --git a/cli/smartcontract/testdata/rpcbindings/structs/structs.go b/cli/smartcontract/testdata/rpcbindings/structs/structs.go index cf3fa28..abbc226 100644 --- a/cli/smartcontract/testdata/rpcbindings/structs/structs.go +++ b/cli/smartcontract/testdata/rpcbindings/structs/structs.go @@ -1,9 +1,9 @@ package structs import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" ) type Internal struct { diff --git a/cli/smartcontract/testdata/rpcbindings/types/config.yml b/cli/smartcontract/testdata/rpcbindings/types/config.yml index 863043b..25caead 100644 --- a/cli/smartcontract/testdata/rpcbindings/types/config.yml +++ b/cli/smartcontract/testdata/rpcbindings/types/config.yml @@ -1,3 +1,3 @@ name: "Types" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ safemethods: ["bool", "int", "bytes", "string", "any", "hash160", "hash256", "publicKey", "signature", "bools", "ints", "bytess", "strings", "hash160s", "hash256s", "publicKeys", "signatures", "aAAStrings", "maps", "crazyMaps", "anyMaps", "unnamedStructs", "unnamedStructsX"] diff --git a/cli/smartcontract/testdata/rpcbindings/types/types.go b/cli/smartcontract/testdata/rpcbindings/types/types.go index fdba199..9122467 100644 --- a/cli/smartcontract/testdata/rpcbindings/types/types.go +++ b/cli/smartcontract/testdata/rpcbindings/types/types.go @@ -1,7 +1,7 @@ package types import ( - "github.com/nspcc-dev/neo-go/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop" ) func Bool(b bool) bool { diff --git a/cli/smartcontract/testdata/verify.bindings.yml b/cli/smartcontract/testdata/verify.bindings.yml index 927064b..b63bacb 100755 --- a/cli/smartcontract/testdata/verify.bindings.yml +++ b/cli/smartcontract/testdata/verify.bindings.yml @@ -6,7 +6,7 @@ overrides: call.args: '[]any' call.f: any call.method: string - call.scriptHash: github.com/nspcc-dev/neo-go/pkg/interop.Hash160 + call.scriptHash: github.com/tutus-one/tutus-chain/pkg/interop.Hash160 callWithToken: any callWithToken.args: '[]any' callWithToken.flags: int @@ -20,40 +20,40 @@ overrides: checkWitness.hashOrKey: '[]byte' createMultisigAccount: '[]byte' createMultisigAccount.m: int - createMultisigAccount.pubs: '[]github.com/nspcc-dev/neo-go/pkg/interop.PublicKey' + createMultisigAccount.pubs: '[]github.com/tutus-one/tutus-chain/pkg/interop.PublicKey' createStandardAccount: '[]byte' - createStandardAccount.pub: github.com/nspcc-dev/neo-go/pkg/interop.PublicKey - currentHash: github.com/nspcc-dev/neo-go/pkg/interop.Hash256 + createStandardAccount.pub: github.com/tutus-one/tutus-chain/pkg/interop.PublicKey + currentHash: github.com/tutus-one/tutus-chain/pkg/interop.Hash256 currentIndex: int - currentSigners: '[]github.com/nspcc-dev/neo-go/pkg/interop/native/ledger.TransactionSigner' + currentSigners: '[]github.com/tutus-one/tutus-chain/pkg/interop/native/ledger.TransactionSigner' equals: bool equals.b: any gasLeft: int getAddressVersion: int - getBlock: '*github.com/nspcc-dev/neo-go/pkg/interop/native/ledger.Block' + getBlock: '*github.com/tutus-one/tutus-chain/pkg/interop/native/ledger.Block' getBlock.indexOrHash: any getCallFlags: any - getCallingScriptHash: github.com/nspcc-dev/neo-go/pkg/interop.Hash160 - getEntryScriptHash: github.com/nspcc-dev/neo-go/pkg/interop.Hash160 - getExecutingScriptHash: github.com/nspcc-dev/neo-go/pkg/interop.Hash160 + getCallingScriptHash: github.com/tutus-one/tutus-chain/pkg/interop.Hash160 + getEntryScriptHash: github.com/tutus-one/tutus-chain/pkg/interop.Hash160 + getExecutingScriptHash: github.com/tutus-one/tutus-chain/pkg/interop.Hash160 getInvocationCounter: int getNetwork: int getNotifications: '[][]any' - getNotifications.h: github.com/nspcc-dev/neo-go/pkg/interop.Hash160 + getNotifications.h: github.com/tutus-one/tutus-chain/pkg/interop.Hash160 getRandom: int - getScriptContainer: '*github.com/nspcc-dev/neo-go/pkg/interop/native/ledger.Transaction' + getScriptContainer: '*github.com/tutus-one/tutus-chain/pkg/interop/native/ledger.Transaction' getTime: int - getTransaction: '*github.com/nspcc-dev/neo-go/pkg/interop/native/ledger.Transaction' - getTransaction.hash: github.com/nspcc-dev/neo-go/pkg/interop.Hash256 - getTransactionFromBlock: '*github.com/nspcc-dev/neo-go/pkg/interop/native/ledger.Transaction' + getTransaction: '*github.com/tutus-one/tutus-chain/pkg/interop/native/ledger.Transaction' + getTransaction.hash: github.com/tutus-one/tutus-chain/pkg/interop.Hash256 + getTransactionFromBlock: '*github.com/tutus-one/tutus-chain/pkg/interop/native/ledger.Transaction' getTransactionFromBlock.indexOrHash: any getTransactionFromBlock.txIndex: int getTransactionHeight: int - getTransactionHeight.hash: github.com/nspcc-dev/neo-go/pkg/interop.Hash256 - getTransactionSigners: '[]github.com/nspcc-dev/neo-go/pkg/interop/native/ledger.TransactionSigner' - getTransactionSigners.hash: github.com/nspcc-dev/neo-go/pkg/interop.Hash256 + getTransactionHeight.hash: github.com/tutus-one/tutus-chain/pkg/interop.Hash256 + getTransactionSigners: '[]github.com/tutus-one/tutus-chain/pkg/interop/native/ledger.TransactionSigner' + getTransactionSigners.hash: github.com/tutus-one/tutus-chain/pkg/interop.Hash256 getTransactionVMState: int - getTransactionVMState.hash: github.com/nspcc-dev/neo-go/pkg/interop.Hash256 + getTransactionVMState.hash: github.com/tutus-one/tutus-chain/pkg/interop.Hash256 getTrigger: int loadScript: any loadScript.args: '[]any' @@ -64,11 +64,11 @@ overrides: notify.name: string onNEP11Payment.amount: int onNEP11Payment.data: any - onNEP11Payment.from: github.com/nspcc-dev/neo-go/pkg/interop.Hash160 + onNEP11Payment.from: github.com/tutus-one/tutus-chain/pkg/interop.Hash160 onNEP11Payment.token: '[]byte' onNEP17Payment.amount: int onNEP17Payment.data: any - onNEP17Payment.from: github.com/nspcc-dev/neo-go/pkg/interop.Hash160 + onNEP17Payment.from: github.com/tutus-one/tutus-chain/pkg/interop.Hash160 opcode0NoReturn.op: string opcode1: any opcode1NoReturn.arg: any @@ -123,7 +123,7 @@ overrides: syscall4.arg3: any syscall4.arg4: any syscall4.name: string - toBlockSR: '*github.com/nspcc-dev/neo-go/pkg/interop/native/ledger.BlockSR' + toBlockSR: '*github.com/tutus-one/tutus-chain/pkg/interop/native/ledger.BlockSR' verify: bool namedtypes: ledger.Block: diff --git a/cli/smartcontract/testdata/verify.go b/cli/smartcontract/testdata/verify.go index 65cd0d5..e332d9e 100644 --- a/cli/smartcontract/testdata/verify.go +++ b/cli/smartcontract/testdata/verify.go @@ -1,8 +1,8 @@ package testdata import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) func Verify() bool { diff --git a/cli/txctx/tx.go b/cli/txctx/tx.go index dcac2f6..e93c055 100644 --- a/cli/txctx/tx.go +++ b/cli/txctx/tx.go @@ -8,14 +8,14 @@ import ( "io" "time" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/input" - "github.com/nspcc-dev/neo-go/cli/paramcontext" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/input" + "github.com/tutus-one/tutus-chain/cli/paramcontext" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/urfave/cli/v2" ) diff --git a/cli/util/audit-bin.go b/cli/util/audit-bin.go index 87ccc90..224a794 100644 --- a/cli/util/audit-bin.go +++ b/cli/util/audit-bin.go @@ -7,12 +7,12 @@ import ( "sync" "time" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/nspcc-dev/neofs-sdk-go/client" cid "github.com/nspcc-dev/neofs-sdk-go/container/id" "github.com/nspcc-dev/neofs-sdk-go/object" diff --git a/cli/util/cancel.go b/cli/util/cancel.go index eca0f5d..a3c6e6d 100644 --- a/cli/util/cancel.go +++ b/cli/util/cancel.go @@ -5,17 +5,17 @@ import ( "fmt" "strings" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/txctx" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/waiter" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/txctx" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/waiter" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/urfave/cli/v2" ) diff --git a/cli/util/convert.go b/cli/util/convert.go index 01475b6..748d226 100644 --- a/cli/util/convert.go +++ b/cli/util/convert.go @@ -6,13 +6,13 @@ import ( "fmt" "os" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/txctx" - vmcli "github.com/nspcc-dev/neo-go/cli/vm" - "github.com/nspcc-dev/neo-go/pkg/services/helpers/neofs" - "github.com/nspcc-dev/neo-go/pkg/vm" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/txctx" + vmcli "github.com/tutus-one/tutus-chain/cli/vm" + "github.com/tutus-one/tutus-chain/pkg/services/helpers/neofs" + "github.com/tutus-one/tutus-chain/pkg/vm" "github.com/urfave/cli/v2" ) diff --git a/cli/util/dump.go b/cli/util/dump.go index 6d4e8d3..2567b84 100644 --- a/cli/util/dump.go +++ b/cli/util/dump.go @@ -4,10 +4,10 @@ import ( "encoding/json" "fmt" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/paramcontext" - "github.com/nspcc-dev/neo-go/cli/query" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/paramcontext" + "github.com/tutus-one/tutus-chain/cli/query" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" "github.com/urfave/cli/v2" ) diff --git a/cli/util/send.go b/cli/util/send.go index ab240fd..1b765e6 100644 --- a/cli/util/send.go +++ b/cli/util/send.go @@ -3,11 +3,11 @@ package util import ( "fmt" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/paramcontext" - "github.com/nspcc-dev/neo-go/cli/txctx" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/waiter" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/paramcontext" + "github.com/tutus-one/tutus-chain/cli/txctx" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/waiter" "github.com/urfave/cli/v2" ) diff --git a/cli/util/upload_bin.go b/cli/util/upload_bin.go index b3a95c3..71e3337 100644 --- a/cli/util/upload_bin.go +++ b/cli/util/upload_bin.go @@ -7,12 +7,12 @@ import ( "sync" "time" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/services/helpers/neofs" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/services/helpers/neofs" "github.com/nspcc-dev/neofs-sdk-go/client" "github.com/nspcc-dev/neofs-sdk-go/container" cid "github.com/nspcc-dev/neofs-sdk-go/container/id" diff --git a/cli/util/upload_state.go b/cli/util/upload_state.go index 852b5bc..8ca529a 100644 --- a/cli/util/upload_state.go +++ b/cli/util/upload_state.go @@ -5,14 +5,14 @@ import ( "strconv" "time" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/server" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core" - gio "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/services/helpers/neofs" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/server" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core" + gio "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/services/helpers/neofs" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/nspcc-dev/neofs-sdk-go/client" "github.com/nspcc-dev/neofs-sdk-go/object" "github.com/urfave/cli/v2" diff --git a/cli/util/util_test.go b/cli/util/util_test.go index 6027a54..53c1aa0 100644 --- a/cli/util/util_test.go +++ b/cli/util/util_test.go @@ -8,11 +8,11 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/cli/vm/cli.go b/cli/vm/cli.go index 2b46d21..a35d3ec 100644 --- a/cli/vm/cli.go +++ b/cli/vm/cli.go @@ -19,31 +19,31 @@ import ( "github.com/chzyer/readline" "github.com/kballard/go-shellquote" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/paramcontext" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/paramcontext" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/urfave/cli/v2" "go.uber.org/zap" "go.uber.org/zap/zapcore" diff --git a/cli/vm/cli_test.go b/cli/vm/cli_test.go index a754d9f..2bd8069 100644 --- a/cli/vm/cli_test.go +++ b/cli/vm/cli_test.go @@ -19,29 +19,29 @@ import ( "time" "github.com/chzyer/readline" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/paramcontext" - "github.com/nspcc-dev/neo-go/internal/basicchain" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/versionutil" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dboper" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/paramcontext" + "github.com/tutus-one/tutus-chain/internal/basicchain" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/versionutil" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dboper" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -374,9 +374,9 @@ func prepareLoadgoSrc(t *testing.T, tmpDir, src string) string { require.NoError(t, err) goMod := []byte(`module test.example/kek require ( - github.com/nspcc-dev/neo-go/pkg/interop v0.0.0 + github.com/tutus-one/tutus-chain/pkg/interop v0.0.0 ) -replace github.com/nspcc-dev/neo-go/pkg/interop => ` + filepath.Join(wd, "../../pkg/interop") + ` +replace github.com/tutus-one/tutus-chain/pkg/interop => ` + filepath.Join(wd, "../../pkg/interop") + ` go 1.24`) require.NoError(t, os.WriteFile(filepath.Join(tmpDir, "go.mod"), goMod, os.ModePerm)) return filename @@ -532,7 +532,7 @@ func TestLoad(t *testing.T) { t.Run("check calling flags", func(t *testing.T) { srcAllowNotify := `package kek - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main() int { runtime.Log("Hello, world!") return 1 @@ -550,8 +550,8 @@ func TestLoad(t *testing.T) { t.Run("check signers", func(t *testing.T) { srcCheckWitness := `package kek import ( - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" ) func Main() bool { var owner = address.ToHash160("` + ownerAddress + `") @@ -654,7 +654,7 @@ func TestLoad(t *testing.T) { func TestLoad_RunWithCALLT(t *testing.T) { // Our smart compiler will generate CALLT instruction for the following StdLib call: src := `package kek - import "github.com/nspcc-dev/neo-go/pkg/interop/native/std" + import "github.com/tutus-one/tutus-chain/pkg/interop/native/std" func Main() int { return std.Atoi("123", 10) }` diff --git a/cli/vm/vm.go b/cli/vm/vm.go index 49eb932..f1bf7fd 100644 --- a/cli/vm/vm.go +++ b/cli/vm/vm.go @@ -5,9 +5,9 @@ import ( "os" "github.com/chzyer/readline" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" "github.com/urfave/cli/v2" ) diff --git a/cli/wallet/candidate_test.go b/cli/wallet/candidate_test.go index 74c0e23..681318b 100644 --- a/cli/wallet/candidate_test.go +++ b/cli/wallet/candidate_test.go @@ -5,8 +5,8 @@ import ( "strconv" "testing" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/config" "github.com/stretchr/testify/require" ) diff --git a/cli/wallet/legacy.go b/cli/wallet/legacy.go index ec7dc4e..697f33a 100644 --- a/cli/wallet/legacy.go +++ b/cli/wallet/legacy.go @@ -8,11 +8,11 @@ import ( "errors" "os" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) type ( diff --git a/cli/wallet/legacy_test.go b/cli/wallet/legacy_test.go index 388d048..f5a3e73 100644 --- a/cli/wallet/legacy_test.go +++ b/cli/wallet/legacy_test.go @@ -6,7 +6,7 @@ import ( "encoding/hex" "testing" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" "github.com/stretchr/testify/require" ) diff --git a/cli/wallet/multisig.go b/cli/wallet/multisig.go index 484fbec..3aae900 100644 --- a/cli/wallet/multisig.go +++ b/cli/wallet/multisig.go @@ -4,14 +4,14 @@ import ( "encoding/json" "fmt" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/paramcontext" - "github.com/nspcc-dev/neo-go/cli/txctx" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/waiter" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/paramcontext" + "github.com/tutus-one/tutus-chain/cli/txctx" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/waiter" "github.com/urfave/cli/v2" ) diff --git a/cli/wallet/multisig_test.go b/cli/wallet/multisig_test.go index 10e5b67..5fc418b 100644 --- a/cli/wallet/multisig_test.go +++ b/cli/wallet/multisig_test.go @@ -8,15 +8,15 @@ import ( "path/filepath" "testing" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/context" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/context" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" ) diff --git a/cli/wallet/nep11.go b/cli/wallet/nep11.go index 3009e77..72e2032 100644 --- a/cli/wallet/nep11.go +++ b/cli/wallet/nep11.go @@ -7,19 +7,19 @@ import ( "slices" "strconv" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/txctx" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/txctx" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/urfave/cli/v2" ) diff --git a/cli/wallet/nep17.go b/cli/wallet/nep17.go index 4555855..60e1ee9 100644 --- a/cli/wallet/nep17.go +++ b/cli/wallet/nep17.go @@ -8,26 +8,26 @@ import ( "slices" "strings" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/txctx" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/gas" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neo" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep17" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neptoken" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/txctx" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/gas" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neo" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep17" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neptoken" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/urfave/cli/v2" ) diff --git a/cli/wallet/validator.go b/cli/wallet/validator.go index 17ca167..b6b1204 100644 --- a/cli/wallet/validator.go +++ b/cli/wallet/validator.go @@ -4,18 +4,18 @@ import ( "fmt" "math/big" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/txctx" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/gas" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neo" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep17" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/txctx" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/gas" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neo" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep17" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/urfave/cli/v2" ) diff --git a/cli/wallet/wallet.go b/cli/wallet/wallet.go index 4ca6289..818259e 100644 --- a/cli/wallet/wallet.go +++ b/cli/wallet/wallet.go @@ -11,20 +11,20 @@ import ( "slices" "strings" - "github.com/nspcc-dev/neo-go/cli/cmdargs" - "github.com/nspcc-dev/neo-go/cli/flags" - "github.com/nspcc-dev/neo-go/cli/input" - "github.com/nspcc-dev/neo-go/cli/options" - "github.com/nspcc-dev/neo-go/cli/txctx" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neo" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/cli/cmdargs" + "github.com/tutus-one/tutus-chain/cli/flags" + "github.com/tutus-one/tutus-chain/cli/input" + "github.com/tutus-one/tutus-chain/cli/options" + "github.com/tutus-one/tutus-chain/cli/txctx" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neo" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/urfave/cli/v2" ) @@ -1050,7 +1050,7 @@ func newAccountFromWIF(w io.Writer, wif string, scrypt keys.ScryptParams, label acc, err := wallet.NewAccountFromEncryptedWIF(wif, phrase, scrypt) if err != nil { // If password from wallet config wasn't OK then retry with the user input, - // see the https://github.com/nspcc-dev/neo-go/issues/2883#issuecomment-1399923088. + // see the https://github.com/tutus-one/tutus-chain/issues/2883#issuecomment-1399923088. if pass == nil { return nil, err } diff --git a/cli/wallet/wallet_test.go b/cli/wallet/wallet_test.go index 10b80c3..d7ae424 100644 --- a/cli/wallet/wallet_test.go +++ b/cli/wallet/wallet_test.go @@ -9,14 +9,14 @@ import ( "testing" "github.com/chzyer/readline" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/docs/compiler.md b/docs/compiler.md index 5a71616..286d90b 100644 --- a/docs/compiler.md +++ b/docs/compiler.md @@ -32,17 +32,17 @@ a dialect of Go rather than a complete port of the language: is supported; type assertion panics if value can't be asserted to the desired type, therefore it's up to the programmer whether assert can be performed successfully. * type aliases including the built-in `any` alias are supported. - * generics are not supported, but eventually will be (at least, partially), ref. https://github.com/nspcc-dev/neo-go/issues/2376. + * generics are not supported, but eventually will be (at least, partially), ref. https://github.com/tutus-one/tutus-chain/issues/2376. * `~` token is not supported * `comparable` is not supported - * arrays (`[4]byte`) are not supported (https://github.com/nspcc-dev/neo-go/issues/3524) + * arrays (`[4]byte`) are not supported (https://github.com/tutus-one/tutus-chain/issues/3524) * `min()` and `max()` are supported for integer types only. * `for` loop variables are treated in pre-Go 1.22 way: a single instance is created for the whole loop ## VM API (interop layer) Compiler translates interop function calls into Neo VM syscalls or (for custom functions) into Neo VM instructions. [Refer to -pkg.go.dev](https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/interop) +pkg.go.dev](https://pkg.go.dev/github.com/tutus-one/tutus-chain/pkg/interop) for full API documentation. In general it provides the same level of functionality as Neo .net Framework library. @@ -67,7 +67,7 @@ export GOROOT=/usr/lib64/go/1.15 ``` The best way to create a new contract is to use `contract init` command. This will -create an example source file, a config file and `go.mod` with `github.com/nspcc-dev/neo-go/pkg/interop` dependency. +create an example source file, a config file and `go.mod` with `github.com/tutus-one/tutus-chain/pkg/interop` dependency. ``` $ ./bin/neo-go contract init --name MyAwesomeContract $ cd MyAwesomeContract @@ -315,7 +315,7 @@ Any non-byte slice `[]T`| `Array` `interop.Signature` | `Signature` anything else | `Any` -`interop.*` types are defined as aliases in `github.com/nspcc-dev/neo-go/pkg/interop` module +`interop.*` types are defined as aliases in `github.com/tutus-one/tutus-chain/pkg/interop` module with the sole purpose of correct manifest generation. As an example, consider `Transfer` event from `NEP-17` standard: diff --git a/docs/consensus.md b/docs/consensus.md index abbe1f7..603222b 100644 --- a/docs/consensus.md +++ b/docs/consensus.md @@ -34,12 +34,12 @@ No additional packages are needed for NeoGo CN. ### Installation Download NeoGo binary [from -Github](https://github.com/nspcc-dev/neo-go/releases) or use [Docker +Github](https://github.com/tutus-one/tutus-chain/releases) or use [Docker image](https://hub.docker.com/r/nspccdev/neo-go). It has everything included, no additional plugins needed. Take an appropriate (mainnet/testnet) configuration [from the -repository](https://github.com/nspcc-dev/neo-go/tree/master/config) and save +repository](https://github.com/tutus-one/tutus-chain/tree/master/config) and save it in some directory (we'll assume that it's available in the same directory as neo-go binary). diff --git a/docs/neofs-blockstorage.md b/docs/neofs-blockstorage.md index 3b17d12..76bfcd7 100644 --- a/docs/neofs-blockstorage.md +++ b/docs/neofs-blockstorage.md @@ -117,7 +117,7 @@ the current chain block height, otherwise it can lead to gaps in the sequence. NeoFS StateFetcher service enables contract state synchronization for non-archival nodes by fetching contract storage key-value pairs from a trusted NeoFS container. -It serves as an alternative to P2P-based MPT state synchronization ([P2PStateExchngeExtensions](https://github.com/nspcc-dev/neo-go/blob/f7080f28d7088517de1d624dfdaf247f914486d2/docs/node-configuration.md?plain=1#L421)). +It serves as an alternative to P2P-based MPT state synchronization ([P2PStateExchngeExtensions](https://github.com/tutus-one/tutus-chain/blob/f7080f28d7088517de1d624dfdaf247f914486d2/docs/node-configuration.md?plain=1#L421)). It allows to download contract state objects from a trusted container in the NeoFS network and persist them to database. NeoFS StateFetcher service primarily used during the node's bootstrap, providing a diff --git a/docs/node-configuration.md b/docs/node-configuration.md index 07a0385..7c4644f 100644 --- a/docs/node-configuration.md +++ b/docs/node-configuration.md @@ -578,12 +578,12 @@ in development and can change in an incompatible way. | Name | Changes | References | | --- | --- | --- | -| `Aspidochelone` | Adjusts the price of `System.Contract.CreateStandardAccount` and `System.Contract.CreateMultisigAccount` interops so that the resulting prices are in accordance with `sha256` method of native `CryptoLib` contract. Also adjusts the price of `System.Runtime.GetRandom` interop and fixes its vulnerability. A special NeoGo-specific change is included as well for ContractManagement's update/deploy call flags behaviour to be compatible with pre-0.99.0 behaviour that was changed because of the 3.2.0 protocol change | https://github.com/nspcc-dev/neo-go/pull/2469
https://github.com/neo-project/neo/pull/2712
https://github.com/nspcc-dev/neo-go/pull/2519
https://github.com/neo-project/neo/pull/2749
https://github.com/neo-project/neo/pull/2653 | -| `Basilisk` | Enables strict smart contract script check against a set of JMP instructions and against method boundaries enabled on contract deploy or update. Increases `stackitem.Integer` JSON parsing precision up to the maximum value supported by the NeoVM. Enables strict check for notifications emitted by a contract to precisely match the events specified in the contract manifest. | https://github.com/nspcc-dev/neo-go/pull/3056
https://github.com/neo-project/neo/pull/2881
https://github.com/nspcc-dev/neo-go/pull/3080
https://github.com/neo-project/neo/pull/2883
https://github.com/nspcc-dev/neo-go/pull/3085
https://github.com/neo-project/neo/pull/2810 | -| `Cockatrice` | Introduces the ability to update native contracts. Includes a couple of new native smart contract APIs: `keccak256` of native CryptoLib contract and `getCommitteeAddress` of native NeoToken contract. | https://github.com/nspcc-dev/neo-go/pull/3402
https://github.com/neo-project/neo/pull/2942
https://github.com/nspcc-dev/neo-go/pull/3301
https://github.com/neo-project/neo/pull/2925
https://github.com/nspcc-dev/neo-go/pull/3362
https://github.com/neo-project/neo/pull/3154 | -| `Domovoi` | Makes node use executing contract state for the contract call permissions check instead of the state stored in the native Management contract. In C# also makes System.Runtime.GetNotifications interop properly count stack references of notification parameters which prevents users from creating objects that exceed MaxStackSize constraint, but NeoGo has never had this bug, thus proper behaviour is preserved even before HFDomovoi. It results in the fact that some T5 testnet transactions have different ApplicationLogs compared to the C# node, but the node states match. | https://github.com/nspcc-dev/neo-go/pull/3476
https://github.com/neo-project/neo/pull/3290
https://github.com/nspcc-dev/neo-go/pull/3473
https://github.com/neo-project/neo/pull/3290
https://github.com/neo-project/neo/pull/3301
https://github.com/nspcc-dev/neo-go/pull/3485 | -| `Echidna` | Introduces `Designation` event extension with `Old` and `New` roles data to native RoleManagement contract. Adds support for `base64UrlEncode` and `base64UrlDecode` methods to native StdLib contract. Extends the list of required call flags for `registerCandidate`, `unregisterCandidate`and `vote` methods of native NeoToken contract with AllowNotify flag. Enables `onNEP17Payment` method of NEO contract for candidate registration. Introduces constraint for maximum number of execution notifications. Adds support for `recoverSecp256K1` method of native CryptoLib contract. Introduces `setMillisecondsPerBlock` and `getMillisecondsPerBlock` methods of native Policy contract. Introduces support for NotaryAssisted transaction attribute and native Notary contract. | https://github.com/nspcc-dev/neo-go/pull/3554
https://github.com/nspcc-dev/neo-go/pull/3761
https://github.com/nspcc-dev/neo-go/pull/3554
https://github.com/neo-project/neo/pull/3597
https://github.com/nspcc-dev/neo-go/pull/3700
https://github.com/nspcc-dev/neo-go/pull/3640
https://github.com/neo-project/neo/pull/3548
https://github.com/nspcc-dev/neo-go/pull/3863
https://github.com/neo-project/neo/pull/3696
https://github.com/neo-project/neo/pull/3895
https://github.com/nspcc-dev/neo-go/pull/3835
https://github.com/nspcc-dev/neo-go/pull/3854
https://github.com/neo-project/neo/pull/3175
https://github.com/nspcc-dev/neo-go/pull/3478
https://github.com/neo-project/neo/pull/3178 | -| `Faun` | Adds `getBlockedAccounts` method to native Policy contract. Adds `hexEncode` and `hexDecode` methods to native StdLib contract. Adds `getExecPicoFeeFactor` method to native Policy contract and enables 4 decimals for execution fee factor. Adds whitelist fee contract management to native Policy contract: `setWhitelistFeeContract`, `removeWhitelistFeeContract`, `getWhitelistFeeContracts` methods and `WhitelistFeeChanged` event. | https://github.com/nspcc-dev/neo-go/pull/3932
https://github.com/nspcc-dev/neo-go/pull/4004
https://github.com/neo-project/neo/pull/4147
https://github.com/neo-project/neo/pull/4150
https://github.com/nspcc-dev/neo-go/pull/4057
https://github.com/neo-project/neo/pull/4278
https://github.com/nspcc-dev/neo-go/pull/4052
https://github.com/neo-project/neo/pull/4201 | +| `Aspidochelone` | Adjusts the price of `System.Contract.CreateStandardAccount` and `System.Contract.CreateMultisigAccount` interops so that the resulting prices are in accordance with `sha256` method of native `CryptoLib` contract. Also adjusts the price of `System.Runtime.GetRandom` interop and fixes its vulnerability. A special NeoGo-specific change is included as well for ContractManagement's update/deploy call flags behaviour to be compatible with pre-0.99.0 behaviour that was changed because of the 3.2.0 protocol change | https://github.com/tutus-one/tutus-chain/pull/2469
https://github.com/neo-project/neo/pull/2712
https://github.com/tutus-one/tutus-chain/pull/2519
https://github.com/neo-project/neo/pull/2749
https://github.com/neo-project/neo/pull/2653 | +| `Basilisk` | Enables strict smart contract script check against a set of JMP instructions and against method boundaries enabled on contract deploy or update. Increases `stackitem.Integer` JSON parsing precision up to the maximum value supported by the NeoVM. Enables strict check for notifications emitted by a contract to precisely match the events specified in the contract manifest. | https://github.com/tutus-one/tutus-chain/pull/3056
https://github.com/neo-project/neo/pull/2881
https://github.com/tutus-one/tutus-chain/pull/3080
https://github.com/neo-project/neo/pull/2883
https://github.com/tutus-one/tutus-chain/pull/3085
https://github.com/neo-project/neo/pull/2810 | +| `Cockatrice` | Introduces the ability to update native contracts. Includes a couple of new native smart contract APIs: `keccak256` of native CryptoLib contract and `getCommitteeAddress` of native NeoToken contract. | https://github.com/tutus-one/tutus-chain/pull/3402
https://github.com/neo-project/neo/pull/2942
https://github.com/tutus-one/tutus-chain/pull/3301
https://github.com/neo-project/neo/pull/2925
https://github.com/tutus-one/tutus-chain/pull/3362
https://github.com/neo-project/neo/pull/3154 | +| `Domovoi` | Makes node use executing contract state for the contract call permissions check instead of the state stored in the native Management contract. In C# also makes System.Runtime.GetNotifications interop properly count stack references of notification parameters which prevents users from creating objects that exceed MaxStackSize constraint, but NeoGo has never had this bug, thus proper behaviour is preserved even before HFDomovoi. It results in the fact that some T5 testnet transactions have different ApplicationLogs compared to the C# node, but the node states match. | https://github.com/tutus-one/tutus-chain/pull/3476
https://github.com/neo-project/neo/pull/3290
https://github.com/tutus-one/tutus-chain/pull/3473
https://github.com/neo-project/neo/pull/3290
https://github.com/neo-project/neo/pull/3301
https://github.com/tutus-one/tutus-chain/pull/3485 | +| `Echidna` | Introduces `Designation` event extension with `Old` and `New` roles data to native RoleManagement contract. Adds support for `base64UrlEncode` and `base64UrlDecode` methods to native StdLib contract. Extends the list of required call flags for `registerCandidate`, `unregisterCandidate`and `vote` methods of native NeoToken contract with AllowNotify flag. Enables `onNEP17Payment` method of NEO contract for candidate registration. Introduces constraint for maximum number of execution notifications. Adds support for `recoverSecp256K1` method of native CryptoLib contract. Introduces `setMillisecondsPerBlock` and `getMillisecondsPerBlock` methods of native Policy contract. Introduces support for NotaryAssisted transaction attribute and native Notary contract. | https://github.com/tutus-one/tutus-chain/pull/3554
https://github.com/tutus-one/tutus-chain/pull/3761
https://github.com/tutus-one/tutus-chain/pull/3554
https://github.com/neo-project/neo/pull/3597
https://github.com/tutus-one/tutus-chain/pull/3700
https://github.com/tutus-one/tutus-chain/pull/3640
https://github.com/neo-project/neo/pull/3548
https://github.com/tutus-one/tutus-chain/pull/3863
https://github.com/neo-project/neo/pull/3696
https://github.com/neo-project/neo/pull/3895
https://github.com/tutus-one/tutus-chain/pull/3835
https://github.com/tutus-one/tutus-chain/pull/3854
https://github.com/neo-project/neo/pull/3175
https://github.com/tutus-one/tutus-chain/pull/3478
https://github.com/neo-project/neo/pull/3178 | +| `Faun` | Adds `getBlockedAccounts` method to native Policy contract. Adds `hexEncode` and `hexDecode` methods to native StdLib contract. Adds `getExecPicoFeeFactor` method to native Policy contract and enables 4 decimals for execution fee factor. Adds whitelist fee contract management to native Policy contract: `setWhitelistFeeContract`, `removeWhitelistFeeContract`, `getWhitelistFeeContracts` methods and `WhitelistFeeChanged` event. | https://github.com/tutus-one/tutus-chain/pull/3932
https://github.com/tutus-one/tutus-chain/pull/4004
https://github.com/neo-project/neo/pull/4147
https://github.com/neo-project/neo/pull/4150
https://github.com/tutus-one/tutus-chain/pull/4057
https://github.com/neo-project/neo/pull/4278
https://github.com/tutus-one/tutus-chain/pull/4052
https://github.com/neo-project/neo/pull/4201 | ## DB compatibility diff --git a/docs/notary.md b/docs/notary.md index b75b294..4f11ee8 100644 --- a/docs/notary.md +++ b/docs/notary.md @@ -243,7 +243,7 @@ won't pass verification. Notary native contract supports `onNEP17Payment` method. Thus, to deposit funds to the Notary native contract, transfer the desired amount of GAS to the contract address. Use -[func (*Client) TransferNEP17](https://pkg.go.dev/github.com/nspcc-dev/neo-go@v0.97.2/pkg/rpcclient#Client.TransferNEP17) +[func (*Client) TransferNEP17](https://pkg.go.dev/github.com/tutus-one/tutus-chain@v0.97.2/pkg/rpcclient#Client.TransferNEP17) with the `data` parameter matching the following requirements: - `data` should be an array of two elements: `to` and `till`. - `to` denotes the receiver of the deposit. It can be nil in case `to` equals @@ -310,11 +310,11 @@ subpackage with an example written in Go doc. field) and calculate system fee using regular rules (that will be `SystemFee` transaction field). Probably, you'll perform one of these actions: 1. If the script is a contract method call, use `invokefunction` RPC API - [func (*Client) InvokeFunction](https://pkg.go.dev/github.com/nspcc-dev/neo-go@v0.97.2/pkg/rpcclient#Client.InvokeFunction) + [func (*Client) InvokeFunction](https://pkg.go.dev/github.com/tutus-one/tutus-chain@v0.97.2/pkg/rpcclient#Client.InvokeFunction) and fetch the script and the gas consumed from the result. 2. If the script is more complicated than just a contract method call, construct the script manually and use `invokescript` RPC API - [func (*Client) InvokeScript](https://pkg.go.dev/github.com/nspcc-dev/neo-go@v0.97.2/pkg/rpcclient#Client.InvokeScript) + [func (*Client) InvokeScript](https://pkg.go.dev/github.com/tutus-one/tutus-chain@v0.97.2/pkg/rpcclient#Client.InvokeScript) to fetch the gas consumed from the result. 3. Or just construct the script and set system fee manually. 3. Calculate the height main transaction is valid until (that will be @@ -374,14 +374,14 @@ subpackage with an example written in Go doc. if `Invocation` script is to be collected from other notary requests. `Invocation` script **should be empty**. 8. Calculate network fee for the transaction (that will be `NetworkFee` - transaction field). Use [func (*Client) CalculateNetworkFee](https://pkg.go.dev/github.com/nspcc-dev/neo-go@v0.99.2/pkg/rpcclient#Client.CalculateNetworkFee) + transaction field). Use [func (*Client) CalculateNetworkFee](https://pkg.go.dev/github.com/tutus-one/tutus-chain@v0.99.2/pkg/rpcclient#Client.CalculateNetworkFee) method with the main transaction given to it. 9. Fill in all signatures that can be provded by the client creating request, that includes simple-signature accounts and multisignature accounts where the client has one of the keys (in which case an invocation script is created that pushes just one signature onto the stack). 10. Sign and submit P2P notary request. Use - [func (*Actor) Notarize](https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/rpcclient/notary#Actor.Notarize) for it. + [func (*Actor) Notarize](https://pkg.go.dev/github.com/tutus-one/tutus-chain/pkg/rpcclient/notary#Actor.Notarize) for it. - Use the signed main transaction from step 9 as `mainTx` argument. `Notarize` will construct and sign a fallback transaction using `Actor` @@ -389,7 +389,7 @@ subpackage with an example written in Go doc. into a P2PNotaryRequest and submit it to the RPC node. It returns hashes of the main and fallback transactions as well as their `ValidUntilBlock` value. If you need more control over fallback transaction use `Actor` options or - [func (*Actor) SendRequest](https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/rpcclient/notary#Actor.SendRequest) + [func (*Actor) SendRequest](https://pkg.go.dev/github.com/tutus-one/tutus-chain/pkg/rpcclient/notary#Actor.SendRequest) API. After P2PNotaryRequests are sent, participants should wait for one of their diff --git a/docs/notifications.md b/docs/notifications.md index a9adf8b..a257d4e 100644 --- a/docs/notifications.md +++ b/docs/notifications.md @@ -1,7 +1,7 @@ # Notification subsystem Original motivation, requirements and general solution strategy are described -in the [issue #895](https://github.com/nspcc-dev/neo-go/issues/895). +in the [issue #895](https://github.com/tutus-one/tutus-chain/issues/895). This extension allows a websocket client to subscribe to various events and receive them as JSON-RPC notifications from the server. diff --git a/docs/rpc.md b/docs/rpc.md index cfc86d6..848a054 100644 --- a/docs/rpc.md +++ b/docs/rpc.md @@ -3,7 +3,7 @@ ## Client Client is provided as a Go package, so please refer to the -[relevant godocs page](https://godoc.org/github.com/nspcc-dev/neo-go/pkg/rpcclient). +[relevant godocs page](https://godoc.org/github.com/tutus-one/tutus-chain/pkg/rpcclient). ## Server @@ -275,7 +275,7 @@ handler) with a block which is next to the block with the specified height. Any historical RPC call needs the historical chain state to be presented in the node storage, thus if the node keeps only latest MPT state the historical call can not be handled properly and -[neorpc.ErrUnsupportedState](https://github.com/nspcc-dev/neo-go/blob/87e4b6beaafa3c180184cbbe88ba143378c5024c/pkg/neorpc/errors.go#L134) +[neorpc.ErrUnsupportedState](https://github.com/tutus-one/tutus-chain/blob/87e4b6beaafa3c180184cbbe88ba143378c5024c/pkg/neorpc/errors.go#L134) is returned in this case. The historical calls only guaranteed to correctly work on archival node that stores all MPT data. If a node keeps the number of latest states and has the GC on (this setting corresponds to the diff --git a/docs/vm.md b/docs/vm.md index cf362b4..e4bf951 100644 --- a/docs/vm.md +++ b/docs/vm.md @@ -123,7 +123,7 @@ You can invoke smart contracts with arguments. Take the following ***roll the di ``` package rollthedice -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func RollDice(number int) { if number == 0 { diff --git a/examples/README.md b/examples/README.md index 6dd9ede..f0608bd 100644 --- a/examples/README.md +++ b/examples/README.md @@ -28,13 +28,13 @@ See the table below for the detailed examples description. | [neofs](neofs) | NeoFS integration contract that demonstrates how to use the Oracle service to retrieve and store NeoFS objects. See the `oracle` [interop package documentation](../pkg/interop/native/oracle/oracle.go) for details. | | [nft-d](nft-d) | NEP-11 divisible NFT. This contract implements the NEP-11 and the NEP-24 token standards. See NEP-11 token standard [specification](https://github.com/neo-project/proposals/blob/master/nep-11.mediawiki) and NEP-24 [specification](https://github.com/neo-project/proposals/blob/master/nep-24.mediawiki) for details. | | [nft-nd](nft-nd) | NEP-11 non-divisible NFT. This contract implements the NEP-11 and the NEP-24 token standards. See NEP-11 token standard [specification](https://github.com/neo-project/proposals/blob/master/nep-11.mediawiki) and NEP-24 [specification](https://github.com/neo-project/proposals/blob/master/nep-24.mediawiki) for details. | -| [nft-nd-nns](nft-nd-nns) | Neo Name Service contract which is NEP-11 non-divisible NFT. The contract implements methods for Neo domain name system managing such as domains registration/transferring, records addition and names resolving. The package also contains tests implemented with [neotest](https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/neotest). | +| [nft-nd-nns](nft-nd-nns) | Neo Name Service contract which is NEP-11 non-divisible NFT. The contract implements methods for Neo domain name system managing such as domains registration/transferring, records addition and names resolving. The package also contains tests implemented with [neotest](https://pkg.go.dev/github.com/tutus-one/tutus-chain/pkg/neotest). | | [oracle](oracle) | Oracle demo contract exposing two methods that you can use to process URLs. It uses oracle native contract, see [interop package documentation](../pkg/interop/native/oracle/oracle.go) also. | | [runtime](runtime) | This contract demonstrates how to use special `_initialize` and `_deploy` methods. See the [compiler documentation](../docs/compiler.md#vm-api-interop-layer ) for methods details. It also shows the pattern for checking owner witness inside the contract with the help of `runtime.CheckWitness` interop [function](../pkg/interop/runtime/runtime.go). | | [storage](storage) | The contract implements API for basic operations with a contract storage. It shows how to use `storage` interop package. See the `storage` [package documentation](../pkg/interop/storage/storage.go). | | [timer](timer) | The idea of the contract is to count `tick` method invocations and destroy itself after the third invocation. It shows how to use `contract.Call` interop function to call, update (migrate) and destroy the contract. Please, refer to the `contract.Call` [function documentation](../pkg/interop/contract/contract.go) | | [token](token) | This contract implements NEP-17 token standard (like NEO and GAS tokens) with all required methods and operations. See the NEP-17 token standard [specification](https://github.com/neo-project/proposals/pull/126) for details. | -| [zkp/cubic_circuit](zkp/cubic_circuit) | This example demonstrates how to create your own circuit and generate Groth-16 proof based on BLS12-381 elliptic curve points with the help of [consensys/gnark](https://pkg.go.dev/github.com/consensys/gnark). It also shows how to generate, deploy and invoke Verifier smart contract to verify proofs for the given circuit on the Neo chain with the help of [zkpbindings](https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/smartcontract/zkpbinding) NeoGo package. The package also contains circuit tests implemented with [gnark/test](https://pkg.go.dev/github.com/consensys/gnark/test) to check the circuit validity and end-to-end proof generation/verification test implemented with [neotest](https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/neotest) to demonstrate how to build, deploy and verify proofs via Verifier smart contract for the given circuit. | +| [zkp/cubic_circuit](zkp/cubic_circuit) | This example demonstrates how to create your own circuit and generate Groth-16 proof based on BLS12-381 elliptic curve points with the help of [consensys/gnark](https://pkg.go.dev/github.com/consensys/gnark). It also shows how to generate, deploy and invoke Verifier smart contract to verify proofs for the given circuit on the Neo chain with the help of [zkpbindings](https://pkg.go.dev/github.com/tutus-one/tutus-chain/pkg/smartcontract/zkpbinding) NeoGo package. The package also contains circuit tests implemented with [gnark/test](https://pkg.go.dev/github.com/consensys/gnark/test) to check the circuit validity and end-to-end proof generation/verification test implemented with [neotest](https://pkg.go.dev/github.com/tutus-one/tutus-chain/pkg/neotest) to demonstrate how to build, deploy and verify proofs via Verifier smart contract for the given circuit. | ## Compile @@ -54,6 +54,6 @@ To deploy smart contracts, refer to the ## Where to start Feel free to explore neo-go smart contract development -[workshop](https://github.com/nspcc-dev/neo-go-sc-wrkshp) to get the basic +[workshop](https://github.com/tutus-one/tutus-chain-sc-wrkshp) to get the basic concepts of how to develop, compile, debug and deploy Neo smart contracts written in go. diff --git a/examples/engine/engine.go b/examples/engine/engine.go index f7178e9..b33d072 100644 --- a/examples/engine/engine.go +++ b/examples/engine/engine.go @@ -1,7 +1,7 @@ package enginecontract import ( - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // NotifyScriptContainer sends runtime notification with script container hash. diff --git a/examples/engine/engine.yml b/examples/engine/engine.yml index baef3bc..d3860da 100644 --- a/examples/engine/engine.yml +++ b/examples/engine/engine.yml @@ -1,5 +1,5 @@ name: "Engine example" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: [] events: - name: Tx diff --git a/examples/engine/go.mod b/examples/engine/go.mod index 938e5f6..716d2ae 100644 --- a/examples/engine/go.mod +++ b/examples/engine/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/engine +module github.com/tutus-one/tutus-chain/examples/engine go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/engine/go.sum b/examples/engine/go.sum index 93972be..a6aeabe 100644 --- a/examples/engine/go.sum +++ b/examples/engine/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/events/events.go b/examples/events/events.go index cd45ff1..f6d3bf3 100644 --- a/examples/events/events.go +++ b/examples/events/events.go @@ -1,8 +1,8 @@ package events import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // NotifySomeBytes emits notification with ByteArray. diff --git a/examples/events/events.yml b/examples/events/events.yml index 7b3c05a..831dace 100644 --- a/examples/events/events.yml +++ b/examples/events/events.yml @@ -1,5 +1,5 @@ name: "Event types example" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: [] events: - name: SomeBytes diff --git a/examples/events/go.mod b/examples/events/go.mod index d6d09ce..db7c057 100644 --- a/examples/events/go.mod +++ b/examples/events/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/events +module github.com/tutus-one/tutus-chain/examples/events go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/events/go.sum b/examples/events/go.sum index 93972be..a6aeabe 100644 --- a/examples/events/go.sum +++ b/examples/events/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/iterator/go.mod b/examples/iterator/go.mod index 35fc59e..6859b41 100644 --- a/examples/iterator/go.mod +++ b/examples/iterator/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/iterator +module github.com/tutus-one/tutus-chain/examples/iterator go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/iterator/go.sum b/examples/iterator/go.sum index 93972be..a6aeabe 100644 --- a/examples/iterator/go.sum +++ b/examples/iterator/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/iterator/iterator.go b/examples/iterator/iterator.go index f18d3ec..9767c77 100644 --- a/examples/iterator/iterator.go +++ b/examples/iterator/iterator.go @@ -1,9 +1,9 @@ package iteratorcontract import ( - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) // _deploy primes contract's storage with some data to be used later. diff --git a/examples/iterator/iterator.yml b/examples/iterator/iterator.yml index 7676571..3c3d497 100644 --- a/examples/iterator/iterator.yml +++ b/examples/iterator/iterator.yml @@ -1,5 +1,5 @@ name: "Iterator example" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: ["NEP-29"] events: - name: Key-Value diff --git a/examples/neofs/go.mod b/examples/neofs/go.mod index 214cc56..1d62c31 100644 --- a/examples/neofs/go.mod +++ b/examples/neofs/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/neofs +module github.com/tutus-one/tutus-chain/examples/neofs go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/neofs/go.sum b/examples/neofs/go.sum index 93972be..a6aeabe 100644 --- a/examples/neofs/go.sum +++ b/examples/neofs/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/neofs/neofs.go b/examples/neofs/neofs.go index 9d9b248..5cef498 100644 --- a/examples/neofs/neofs.go +++ b/examples/neofs/neofs.go @@ -1,11 +1,11 @@ package neofs import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/native/oracle" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/native/oracle" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) const ( diff --git a/examples/neofs/neofs.yml b/examples/neofs/neofs.yml index 9d6caef..3af431a 100644 --- a/examples/neofs/neofs.yml +++ b/examples/neofs/neofs.yml @@ -1,5 +1,5 @@ name: "NeoFS integration example" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: [] events: [] permissions: diff --git a/examples/nft-d/go.mod b/examples/nft-d/go.mod index b3807ef..a937194 100644 --- a/examples/nft-d/go.mod +++ b/examples/nft-d/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/nft +module github.com/tutus-one/tutus-chain/examples/nft go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/nft-d/go.sum b/examples/nft-d/go.sum index 93972be..a6aeabe 100644 --- a/examples/nft-d/go.sum +++ b/examples/nft-d/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/nft-d/nft.go b/examples/nft-d/nft.go index a23f94e..1bc03fe 100644 --- a/examples/nft-d/nft.go +++ b/examples/nft-d/nft.go @@ -7,17 +7,17 @@ produce NFT which represents NeoFS object. package nft import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" - "github.com/nspcc-dev/neo-go/pkg/interop/native/crypto" - "github.com/nspcc-dev/neo-go/pkg/interop/native/gas" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop/native/crypto" + "github.com/tutus-one/tutus-chain/pkg/interop/native/gas" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/util" ) const ( diff --git a/examples/nft-d/nft.yml b/examples/nft-d/nft.yml index 324d6fc..080703e 100644 --- a/examples/nft-d/nft.yml +++ b/examples/nft-d/nft.yml @@ -1,5 +1,5 @@ name: "NeoFS Object NFT" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: ["NEP-11", "NEP-22", "NEP-24", "NEP-27", "NEP-30", "NEP-31"] safemethods: ["balanceOf", "decimals", "symbol", "totalSupply", "tokensOf", "ownerOf", "properties", "tokens", "royaltyInfo", "verify"] events: diff --git a/examples/nft-nd-nns/go.mod b/examples/nft-nd-nns/go.mod index 40f6a70..264d75c 100644 --- a/examples/nft-nd-nns/go.mod +++ b/examples/nft-nd-nns/go.mod @@ -1,10 +1,10 @@ -module github.com/nspcc-dev/neo-go/examples/nft-nd-nns +module github.com/tutus-one/tutus-chain/examples/nft-nd-nns go 1.24.0 require ( - github.com/nspcc-dev/neo-go v0.113.1-0.20251010141927-ac58bbb39350 - github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 + github.com/tutus-one/tutus-chain v0.113.1-0.20251010141927-ac58bbb39350 + github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 github.com/stretchr/testify v1.11.1 ) diff --git a/examples/nft-nd-nns/go.sum b/examples/nft-nd-nns/go.sum index 554f933..34a210b 100644 --- a/examples/nft-nd-nns/go.sum +++ b/examples/nft-nd-nns/go.sum @@ -128,10 +128,10 @@ github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1 h1:U3wvY github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1/go.mod h1:CHwf1nwquA6ecSfxmNF0YuemOPHAnRGoLuZUv/WPjeY= github.com/nspcc-dev/hrw/v2 v2.0.4 h1:o3Zh/2aF+IgGpvt414f46Ya20WG9u9vWxVd16ErFI8w= github.com/nspcc-dev/hrw/v2 v2.0.4/go.mod h1:dUjOx27zTTvoPmT5EG25vSSWL2tKS7ndAa2TPTiZwFo= -github.com/nspcc-dev/neo-go v0.113.1-0.20251010141927-ac58bbb39350 h1:v3kn1A+IzUd+tSPutByivpVRP/R+vz4pYH9Se72pHMc= -github.com/nspcc-dev/neo-go v0.113.1-0.20251010141927-ac58bbb39350/go.mod h1:h63dEk1KmppwxXGi453woIhpvPf0lBmqLfWzd5TEUrs= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain v0.113.1-0.20251010141927-ac58bbb39350 h1:v3kn1A+IzUd+tSPutByivpVRP/R+vz4pYH9Se72pHMc= +github.com/tutus-one/tutus-chain v0.113.1-0.20251010141927-ac58bbb39350/go.mod h1:h63dEk1KmppwxXGi453woIhpvPf0lBmqLfWzd5TEUrs= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.15 h1:KM1uenYD6BES9pW69ZNglCKTLu5WzQCziaD361YfuW4= github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.15/go.mod h1:Vukuf6qDOQESOWAx5yOjYtVC5wdsQp3hiZrxbJIa2fs= github.com/nspcc-dev/rfc6979 v0.2.4 h1:NBgsdCjhLpEPJZqmC9rciMZDcSY297po2smeaRjw57k= diff --git a/examples/nft-nd-nns/namestate.go b/examples/nft-nd-nns/namestate.go index fb50f1d..e8fde0c 100644 --- a/examples/nft-nd-nns/namestate.go +++ b/examples/nft-nd-nns/namestate.go @@ -1,8 +1,8 @@ package nns import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // NameState represents domain name state. diff --git a/examples/nft-nd-nns/nns.go b/examples/nft-nd-nns/nns.go index fffdf25..09ce03a 100644 --- a/examples/nft-nd-nns/nns.go +++ b/examples/nft-nd-nns/nns.go @@ -9,15 +9,15 @@ must be added by the committee before new domain name can be registered. package nns import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/native/crypto" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" - "github.com/nspcc-dev/neo-go/pkg/interop/native/neo" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/native/crypto" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop/native/neo" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) // Prefixes used for contract data storage. diff --git a/examples/nft-nd-nns/nns.yml b/examples/nft-nd-nns/nns.yml index ce7b6f9..4c93567 100644 --- a/examples/nft-nd-nns/nns.yml +++ b/examples/nft-nd-nns/nns.yml @@ -1,5 +1,5 @@ name: "NameService" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: ["NEP-11", "NEP-22", "NEP-29"] safemethods: ["balanceOf", "decimals", "symbol", "totalSupply", "tokensOf", "ownerOf", "tokens", "properties", "roots", "getPrice", "isAvailable", "getRecord", diff --git a/examples/nft-nd-nns/nns_test.go b/examples/nft-nd-nns/nns_test.go index 607bc44..4592bf4 100644 --- a/examples/nft-nd-nns/nns_test.go +++ b/examples/nft-nd-nns/nns_test.go @@ -4,13 +4,13 @@ import ( "strings" "testing" - nns "github.com/nspcc-dev/neo-go/examples/nft-nd-nns" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + nns "github.com/tutus-one/tutus-chain/examples/nft-nd-nns" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -377,7 +377,7 @@ func TestTransfer(t *testing.T) { // with onNEP11Transfer ctr = neotest.CompileSource(t, e.CommitteeHash, strings.NewReader(`package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func OnNEP11Payment(from interop.Hash160, amount int, token []byte, data any) {}`), &compiler.Options{Name: "foo"}) e.DeployContract(t, ctr, nil) diff --git a/examples/nft-nd/go.mod b/examples/nft-nd/go.mod index 0ca9184..54f379a 100644 --- a/examples/nft-nd/go.mod +++ b/examples/nft-nd/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/nft-nd +module github.com/tutus-one/tutus-chain/examples/nft-nd go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/nft-nd/go.sum b/examples/nft-nd/go.sum index 93972be..a6aeabe 100644 --- a/examples/nft-nd/go.sum +++ b/examples/nft-nd/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/nft-nd/nft.go b/examples/nft-nd/nft.go index abe8486..4b8b8b1 100644 --- a/examples/nft-nd/nft.go +++ b/examples/nft-nd/nft.go @@ -8,17 +8,17 @@ you own a hash it's HASHY. package nft import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" - "github.com/nspcc-dev/neo-go/pkg/interop/native/crypto" - "github.com/nspcc-dev/neo-go/pkg/interop/native/gas" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop/native/crypto" + "github.com/tutus-one/tutus-chain/pkg/interop/native/gas" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/util" ) // Prefixes used for contract data storage. diff --git a/examples/nft-nd/nft.yml b/examples/nft-nd/nft.yml index ad3545f..7b3af58 100644 --- a/examples/nft-nd/nft.yml +++ b/examples/nft-nd/nft.yml @@ -1,5 +1,5 @@ name: "HASHY NFT" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: ["NEP-11", "NEP-22", "NEP-24", "NEP-27", "NEP-30", "NEP-31"] safemethods: ["balanceOf", "decimals", "symbol", "totalSupply", "tokensOf", "ownerOf", "tokens", "properties", "royaltyInfo", "verify"] events: diff --git a/examples/oracle/go.mod b/examples/oracle/go.mod index 2719e6d..55b3ac7 100644 --- a/examples/oracle/go.mod +++ b/examples/oracle/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/oracle +module github.com/tutus-one/tutus-chain/examples/oracle go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/oracle/go.sum b/examples/oracle/go.sum index 93972be..a6aeabe 100644 --- a/examples/oracle/go.sum +++ b/examples/oracle/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/oracle/oracle.go b/examples/oracle/oracle.go index 5c58073..88abb7e 100644 --- a/examples/oracle/oracle.go +++ b/examples/oracle/oracle.go @@ -1,9 +1,9 @@ package oraclecontract import ( - "github.com/nspcc-dev/neo-go/pkg/interop/native/oracle" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/native/oracle" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // Request does an oracle request for the URL specified. It adds minimum diff --git a/examples/oracle/oracle.yml b/examples/oracle/oracle.yml index 053348d..60e83ab 100644 --- a/examples/oracle/oracle.yml +++ b/examples/oracle/oracle.yml @@ -1,5 +1,5 @@ name: "Oracle example" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: [] events: permissions: diff --git a/examples/runtime/go.mod b/examples/runtime/go.mod index 99764bf..d19b945 100644 --- a/examples/runtime/go.mod +++ b/examples/runtime/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/runtime +module github.com/tutus-one/tutus-chain/examples/runtime go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/runtime/go.sum b/examples/runtime/go.sum index 93972be..a6aeabe 100644 --- a/examples/runtime/go.sum +++ b/examples/runtime/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/runtime/runtime.go b/examples/runtime/runtime.go index a76066b..4193aab 100644 --- a/examples/runtime/runtime.go +++ b/examples/runtime/runtime.go @@ -1,9 +1,9 @@ package runtimecontract import ( - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) var ( diff --git a/examples/runtime/runtime.yml b/examples/runtime/runtime.yml index d2c713f..a6693ff 100644 --- a/examples/runtime/runtime.yml +++ b/examples/runtime/runtime.yml @@ -1,5 +1,5 @@ name: "Runtime example" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: ["NEP-22", "NEP-29", "NEP-30", "NEP-31"] safemethods: ["verify"] events: diff --git a/examples/storage/go.mod b/examples/storage/go.mod index 128ffb5..941a37d 100644 --- a/examples/storage/go.mod +++ b/examples/storage/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/storage +module github.com/tutus-one/tutus-chain/examples/storage go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/storage/go.sum b/examples/storage/go.sum index 93972be..a6aeabe 100644 --- a/examples/storage/go.sum +++ b/examples/storage/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/storage/storage.go b/examples/storage/storage.go index 4f6af2a..7cbed61 100644 --- a/examples/storage/storage.go +++ b/examples/storage/storage.go @@ -1,8 +1,8 @@ package storagecontract import ( - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) // ctx holds storage context for contract methods. diff --git a/examples/storage/storage.yml b/examples/storage/storage.yml index c5db1ef..8c2d998 100644 --- a/examples/storage/storage.yml +++ b/examples/storage/storage.yml @@ -1,5 +1,5 @@ name: "Storage example" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: [] events: [] overloads: diff --git a/examples/timer/go.mod b/examples/timer/go.mod index 9053e3a..eeea338 100644 --- a/examples/timer/go.mod +++ b/examples/timer/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/timer +module github.com/tutus-one/tutus-chain/examples/timer go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/timer/go.sum b/examples/timer/go.sum index 93972be..a6aeabe 100644 --- a/examples/timer/go.sum +++ b/examples/timer/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/timer/timer.go b/examples/timer/timer.go index 4f9d039..028762c 100644 --- a/examples/timer/timer.go +++ b/examples/timer/timer.go @@ -1,12 +1,12 @@ package timer import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) const defaultTicks = 3 // nolint: unused diff --git a/examples/timer/timer.yml b/examples/timer/timer.yml index 078bdc8..9d49335 100644 --- a/examples/timer/timer.yml +++ b/examples/timer/timer.yml @@ -1,5 +1,5 @@ name: "Timer example" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: ["NEP-29"] events: [] permissions: diff --git a/examples/token/go.mod b/examples/token/go.mod index 5f5958f..aeee192 100644 --- a/examples/token/go.mod +++ b/examples/token/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/token +module github.com/tutus-one/tutus-chain/examples/token go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/token/go.sum b/examples/token/go.sum index 93972be..a6aeabe 100644 --- a/examples/token/go.sum +++ b/examples/token/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/token/nep17/nep17.go b/examples/token/nep17/nep17.go index 8b6a824..1c3c933 100644 --- a/examples/token/nep17/nep17.go +++ b/examples/token/nep17/nep17.go @@ -1,11 +1,11 @@ package nep17 import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) // Token holds all token info. diff --git a/examples/token/token.go b/examples/token/token.go index 4a6d8da..54f2bd4 100644 --- a/examples/token/token.go +++ b/examples/token/token.go @@ -1,10 +1,10 @@ package tokencontract import ( - "github.com/nspcc-dev/neo-go/examples/token/nep17" - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/examples/token/nep17" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) const ( diff --git a/examples/token/token.yml b/examples/token/token.yml index a84342a..0b3e241 100644 --- a/examples/token/token.yml +++ b/examples/token/token.yml @@ -1,5 +1,5 @@ name: "Awesome NEO Token" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: ["NEP-17"] safemethods: ["balanceOf", "decimals", "symbol", "totalSupply"] events: diff --git a/examples/zkp/cubic_circuit/README.md b/examples/zkp/cubic_circuit/README.md index 0c8d654..7241bda 100644 --- a/examples/zkp/cubic_circuit/README.md +++ b/examples/zkp/cubic_circuit/README.md @@ -4,9 +4,9 @@ proof based on BLS12-381 elliptic curve points with the help of [consensys/gnark](https://pkg.go.dev/github.com/consensys/gnark). It also shows how to generate, deploy and invoke Verifier smart contract to verify proofs for the given circuit on the Neo chain with the - help of [zkpbindings](https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/smartcontract/zkpbinding) NeoGo package. The package also contains circuit + help of [zkpbindings](https://pkg.go.dev/github.com/tutus-one/tutus-chain/pkg/smartcontract/zkpbinding) NeoGo package. The package also contains circuit tests implemented with [gnark/test](https://pkg.go.dev/github.com/consensys/gnark/test) to check the circuit validity and - end-to-end proof generation/verification test implemented with [neotest](https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/neotest) + end-to-end proof generation/verification test implemented with [neotest](https://pkg.go.dev/github.com/tutus-one/tutus-chain/pkg/neotest) to demonstrate how to build, deploy and verify proofs via Verifier smart contract for the given circuit. diff --git a/examples/zkp/cubic_circuit/go.mod b/examples/zkp/cubic_circuit/go.mod index af5c2f3..46ddf14 100644 --- a/examples/zkp/cubic_circuit/go.mod +++ b/examples/zkp/cubic_circuit/go.mod @@ -1,11 +1,11 @@ -module github.com/nspcc-dev/neo-go/examples/zkp/cubic +module github.com/tutus-one/tutus-chain/examples/zkp/cubic go 1.24.0 require ( github.com/consensys/gnark v0.14.0 github.com/consensys/gnark-crypto v0.19.1 - github.com/nspcc-dev/neo-go v0.106.3 + github.com/tutus-one/tutus-chain v0.106.3 github.com/stretchr/testify v1.10.0 ) @@ -29,7 +29,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/mr-tron/base58 v1.2.0 // indirect github.com/nspcc-dev/go-ordered-json v0.0.0-20240301084351-0246b013f8b2 // indirect - github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 // indirect + github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 // indirect github.com/nspcc-dev/rfc6979 v0.2.1 // indirect github.com/pierrec/lz4 v2.6.1+incompatible // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/examples/zkp/cubic_circuit/go.sum b/examples/zkp/cubic_circuit/go.sum index 8954aa6..cddc80b 100644 --- a/examples/zkp/cubic_circuit/go.sum +++ b/examples/zkp/cubic_circuit/go.sum @@ -81,10 +81,10 @@ github.com/nspcc-dev/go-ordered-json v0.0.0-20240301084351-0246b013f8b2 h1:mD9hU github.com/nspcc-dev/go-ordered-json v0.0.0-20240301084351-0246b013f8b2/go.mod h1:U5VfmPNM88P4RORFb6KSUVBdJBDhlqggJZYGXGPxOcc= github.com/nspcc-dev/hrw/v2 v2.0.1 h1:CxYUkBeJvNfMEn2lHhrV6FjY8pZPceSxXUtMVq0BUOU= github.com/nspcc-dev/hrw/v2 v2.0.1/go.mod h1:iZAs5hT2q47EGq6AZ0FjaUI6ggntOi7vrY4utfzk5VA= -github.com/nspcc-dev/neo-go v0.106.3 h1:HEyhgkjQY+HfBzotMJ12xx2VuOUphkngZ4kEkjvXDtE= -github.com/nspcc-dev/neo-go v0.106.3/go.mod h1:3vEwJ2ld12N7HRGCaH/l/7EwopplC/+8XdIdPDNmD/M= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain v0.106.3 h1:HEyhgkjQY+HfBzotMJ12xx2VuOUphkngZ4kEkjvXDtE= +github.com/tutus-one/tutus-chain v0.106.3/go.mod h1:3vEwJ2ld12N7HRGCaH/l/7EwopplC/+8XdIdPDNmD/M= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= github.com/nspcc-dev/neofs-api-go/v2 v2.14.1-0.20240305074711-35bc78d84dc4 h1:arN0Ypn+jawZpu1BND7TGRn44InAVIqKygndsx0y2no= github.com/nspcc-dev/neofs-api-go/v2 v2.14.1-0.20240305074711-35bc78d84dc4/go.mod h1:7Tm1NKEoUVVIUlkVwFrPh7GG5+Lmta2m7EGr4oVpBd8= github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.12 h1:mdxtlSU2I4oVZ/7AXTLKyz8uUPbDWikZw4DM8gvrddA= diff --git a/examples/zkp/cubic_circuit/main_test.go b/examples/zkp/cubic_circuit/main_test.go index 0ea7532..737afda 100644 --- a/examples/zkp/cubic_circuit/main_test.go +++ b/examples/zkp/cubic_circuit/main_test.go @@ -16,9 +16,9 @@ import ( "github.com/consensys/gnark/frontend" "github.com/consensys/gnark/frontend/cs/r1cs" "github.com/consensys/gnark/test" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/zkpbinding" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/zkpbinding" "github.com/stretchr/testify/require" ) diff --git a/examples/zkp/xor_compat/go.mod b/examples/zkp/xor_compat/go.mod index e374152..1034bee 100644 --- a/examples/zkp/xor_compat/go.mod +++ b/examples/zkp/xor_compat/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/examples/zkp/xor +module github.com/tutus-one/tutus-chain/examples/zkp/xor go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/examples/zkp/xor_compat/go.sum b/examples/zkp/xor_compat/go.sum index 93972be..a6aeabe 100644 --- a/examples/zkp/xor_compat/go.sum +++ b/examples/zkp/xor_compat/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/examples/zkp/xor_compat/verify.go b/examples/zkp/xor_compat/verify.go index 8955cea..358d2d9 100644 --- a/examples/zkp/xor_compat/verify.go +++ b/examples/zkp/xor_compat/verify.go @@ -11,13 +11,13 @@ // Please, do not use this example to create, proof and verify your own circuits. // Refer to examples/cubic_circuit package to get an example of a custom circuit // creation in Go and check out the -// [zkpbinding](https://pkg.go.dev/github.com/nspcc-dev/neo-go/pkg/smartcontract/zkpbinding) +// [zkpbinding](https://pkg.go.dev/github.com/tutus-one/tutus-chain/pkg/smartcontract/zkpbinding) // package to create your own verification contract for the circuit. package xor import ( - "github.com/nspcc-dev/neo-go/pkg/interop/native/crypto" - "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/tutus-one/tutus-chain/pkg/interop/native/crypto" + "github.com/tutus-one/tutus-chain/pkg/interop/util" ) // Constants needed for verification should be obtained via MPC process. diff --git a/examples/zkp/xor_compat/verify.yml b/examples/zkp/xor_compat/verify.yml index bf222f7..d43091e 100644 --- a/examples/zkp/xor_compat/verify.yml +++ b/examples/zkp/xor_compat/verify.yml @@ -1,3 +1,3 @@ name: "Groth16 proof compatibility example" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: [] diff --git a/go.mod b/go.mod index dda9772..8fdd7f4 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/nspcc-dev/bbolt v0.0.0-20250911202005-807225ebb0c8 github.com/nspcc-dev/dbft v0.4.0 github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1 - github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 + github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.16 github.com/nspcc-dev/rfc6979 v0.2.4 github.com/pierrec/lz4 v2.6.1+incompatible diff --git a/go.sum b/go.sum index e4be2f5..71e1f17 100644 --- a/go.sum +++ b/go.sum @@ -155,8 +155,8 @@ github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1 h1:U3wvY github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1/go.mod h1:CHwf1nwquA6ecSfxmNF0YuemOPHAnRGoLuZUv/WPjeY= github.com/nspcc-dev/hrw/v2 v2.0.4 h1:o3Zh/2aF+IgGpvt414f46Ya20WG9u9vWxVd16ErFI8w= github.com/nspcc-dev/hrw/v2 v2.0.4/go.mod h1:dUjOx27zTTvoPmT5EG25vSSWL2tKS7ndAa2TPTiZwFo= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.16 h1:0zOMTcstqKn/j/frqOHign9rtaoIPdxhJF069LRlCJM= github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.16/go.mod h1:u3XqGGbGQiPBAonFBJ6Dm9KbbDTvcGjEiRhndppzgHw= github.com/nspcc-dev/rfc6979 v0.2.4 h1:NBgsdCjhLpEPJZqmC9rciMZDcSY297po2smeaRjw57k= diff --git a/internal/basicchain/basic.go b/internal/basicchain/basic.go index af4eb1f..3ff333a 100644 --- a/internal/basicchain/basic.go +++ b/internal/basicchain/basic.go @@ -8,18 +8,18 @@ import ( "path/filepath" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nns" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nns" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/internal/basicchain/testdata/invoke/invokescript_contract.go b/internal/basicchain/testdata/invoke/invokescript_contract.go index a7b42a9..71ec6e3 100644 --- a/internal/basicchain/testdata/invoke/invokescript_contract.go +++ b/internal/basicchain/testdata/invoke/invokescript_contract.go @@ -1,6 +1,6 @@ package invoke -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" // This contract is used to test `invokescript` and `invokefunction` RPC-calls func Main() int { diff --git a/internal/basicchain/testdata/storage/storage_contract.go b/internal/basicchain/testdata/storage/storage_contract.go index f98772b..6139f32 100644 --- a/internal/basicchain/testdata/storage/storage_contract.go +++ b/internal/basicchain/testdata/storage/storage_contract.go @@ -6,8 +6,8 @@ The contract is aimed to test iterator sessions RPC API. package storage import ( - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) // valuesCount is the amount of stored values. diff --git a/internal/basicchain/testdata/storage/storage_contract.yml b/internal/basicchain/testdata/storage/storage_contract.yml index 5808eb6..0d32802 100644 --- a/internal/basicchain/testdata/storage/storage_contract.yml +++ b/internal/basicchain/testdata/storage/storage_contract.yml @@ -1,2 +1,2 @@ name: "Storage" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ diff --git a/internal/basicchain/testdata/test_contract.go b/internal/basicchain/testdata/test_contract.go index 765ac07..ecb0e1a 100644 --- a/internal/basicchain/testdata/test_contract.go +++ b/internal/basicchain/testdata/test_contract.go @@ -1,14 +1,14 @@ package testdata import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" - "github.com/nspcc-dev/neo-go/pkg/interop/native/neo" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop/native/neo" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) const ( diff --git a/internal/basicchain/testdata/test_contract.yml b/internal/basicchain/testdata/test_contract.yml index 5e9b44d..fb3e116 100644 --- a/internal/basicchain/testdata/test_contract.yml +++ b/internal/basicchain/testdata/test_contract.yml @@ -1,5 +1,5 @@ name: "Rubl" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: ["NEP-17"] safemethods: ["balanceOf", "decimals", "symbol", "totalSupply"] events: diff --git a/internal/basicchain/testdata/verify/verification_contract.go b/internal/basicchain/testdata/verify/verification_contract.go index d03b156..9d0c1a2 100644 --- a/internal/basicchain/testdata/verify/verification_contract.go +++ b/internal/basicchain/testdata/verify/verification_contract.go @@ -1,9 +1,9 @@ package verify import ( - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/util" ) // Verify is a verification contract method. diff --git a/internal/basicchain/testdata/verify/verification_contract.yml b/internal/basicchain/testdata/verify/verification_contract.yml index 5d18c74..d145d29 100644 --- a/internal/basicchain/testdata/verify/verification_contract.yml +++ b/internal/basicchain/testdata/verify/verification_contract.yml @@ -1,2 +1,2 @@ name: "Verify" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ diff --git a/internal/basicchain/testdata/verify_args/verification_with_args_contract.yml b/internal/basicchain/testdata/verify_args/verification_with_args_contract.yml index 2c70e5a..292406d 100644 --- a/internal/basicchain/testdata/verify_args/verification_with_args_contract.yml +++ b/internal/basicchain/testdata/verify_args/verification_with_args_contract.yml @@ -1,2 +1,2 @@ name: "Verify with args" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ diff --git a/internal/contracts/contracts.go b/internal/contracts/contracts.go index 210edd0..72c3b41 100644 --- a/internal/contracts/contracts.go +++ b/internal/contracts/contracts.go @@ -8,10 +8,10 @@ import ( "path/filepath" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/internal/contracts/contracts_test.go b/internal/contracts/contracts_test.go index 94ce878..f1a19f5 100644 --- a/internal/contracts/contracts_test.go +++ b/internal/contracts/contracts_test.go @@ -5,21 +5,21 @@ import ( "os" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/internal/contracts/oracle_contract/go.mod b/internal/contracts/oracle_contract/go.mod index 27a0d36..9a81a7e 100644 --- a/internal/contracts/oracle_contract/go.mod +++ b/internal/contracts/oracle_contract/go.mod @@ -1,5 +1,5 @@ -module github.com/nspcc-dev/neo-go/internal/examples/oracle +module github.com/tutus-one/tutus-chain/internal/examples/oracle go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 diff --git a/internal/contracts/oracle_contract/go.sum b/internal/contracts/oracle_contract/go.sum index 93972be..a6aeabe 100644 --- a/internal/contracts/oracle_contract/go.sum +++ b/internal/contracts/oracle_contract/go.sum @@ -1,2 +1,2 @@ -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9 h1:5+Ue5+i72uJVfHoq1+6mc6KlpriaqQaO96LtaDEsTfg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251217090505-857f951d81a9/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= diff --git a/internal/contracts/oracle_contract/oracle.go b/internal/contracts/oracle_contract/oracle.go index 94e2b22..576b3c0 100644 --- a/internal/contracts/oracle_contract/oracle.go +++ b/internal/contracts/oracle_contract/oracle.go @@ -1,13 +1,13 @@ package oraclecontract import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/native/oracle" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/native/oracle" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/util" ) // RequestURL accepts a complete set of parameters to make an oracle request and diff --git a/internal/contracts/oracle_contract/oracle.yml b/internal/contracts/oracle_contract/oracle.yml index e2d8408..8bd0afb 100644 --- a/internal/contracts/oracle_contract/oracle.yml +++ b/internal/contracts/oracle_contract/oracle.yml @@ -1,5 +1,5 @@ name: "Oracle test" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: [] events: - name: Invocation diff --git a/internal/fakechain/fakechain.go b/internal/fakechain/fakechain.go index 6b06646..907bbe3 100644 --- a/internal/fakechain/fakechain.go +++ b/internal/fakechain/fakechain.go @@ -6,21 +6,21 @@ import ( "sync/atomic" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" ) // FakeChain implements the Blockchainer interface, but does not provide real functionality. diff --git a/internal/random/random_util.go b/internal/random/random_util.go index 0b7981a..7e7e3da 100644 --- a/internal/random/random_util.go +++ b/internal/random/random_util.go @@ -3,8 +3,8 @@ package random import ( "math/rand/v2" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/util" ) // String returns a random string with the n as its length. diff --git a/internal/testchain/address.go b/internal/testchain/address.go index 2de4ea8..9f5cf36 100644 --- a/internal/testchain/address.go +++ b/internal/testchain/address.go @@ -4,15 +4,15 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" "github.com/stretchr/testify/require" ) diff --git a/internal/testchain/network.go b/internal/testchain/network.go index d570282..b832458 100644 --- a/internal/testchain/network.go +++ b/internal/testchain/network.go @@ -1,6 +1,6 @@ package testchain -import "github.com/nspcc-dev/neo-go/pkg/config/netmode" +import "github.com/tutus-one/tutus-chain/pkg/config/netmode" // Network returns testchain network's magic number. func Network() netmode.Magic { diff --git a/internal/testchain/transaction.go b/internal/testchain/transaction.go index 1b33db5..7aba06d 100644 --- a/internal/testchain/transaction.go +++ b/internal/testchain/transaction.go @@ -6,20 +6,20 @@ import ( gio "io" "strings" - clisc "github.com/nspcc-dev/neo-go/cli/smartcontract" - "github.com/nspcc-dev/neo-go/internal/versionutil" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" + clisc "github.com/tutus-one/tutus-chain/cli/smartcontract" + "github.com/tutus-one/tutus-chain/internal/versionutil" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Ledger is an interface that abstracts the implementation of the blockchain. diff --git a/internal/testcli/executor.go b/internal/testcli/executor.go index 44c1dc1..bbf40d3 100644 --- a/internal/testcli/executor.go +++ b/internal/testcli/executor.go @@ -19,20 +19,20 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/cli/app" - "github.com/nspcc-dev/neo-go/cli/input" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/consensus" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/network" - "github.com/nspcc-dev/neo-go/pkg/services/rpcsrv" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/cli/app" + "github.com/tutus-one/tutus-chain/cli/input" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/consensus" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/network" + "github.com/tutus-one/tutus-chain/pkg/services/rpcsrv" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" "github.com/urfave/cli/v2" "go.uber.org/zap" diff --git a/internal/testserdes/testing.go b/internal/testserdes/testing.go index 87645c1..d2e8e37 100644 --- a/internal/testserdes/testing.go +++ b/internal/testserdes/testing.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/internal/versionutil/init.go b/internal/versionutil/init.go index 9de3f52..9453566 100644 --- a/internal/versionutil/init.go +++ b/internal/versionutil/init.go @@ -1,6 +1,6 @@ package versionutil -import "github.com/nspcc-dev/neo-go/pkg/config" +import "github.com/tutus-one/tutus-chain/pkg/config" // TestVersion is a NeoGo version that should be used to keep all // compiled NEFs the same from run to run for tests. diff --git a/pkg/compiler/analysis.go b/pkg/compiler/analysis.go index 1afe1c8..def1777 100644 --- a/pkg/compiler/analysis.go +++ b/pkg/compiler/analysis.go @@ -9,8 +9,8 @@ import ( "slices" "strings" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "golang.org/x/tools/go/packages" ) @@ -21,7 +21,7 @@ var ( // ErrInvalidExportedRetCount is returned when exported contract method has invalid return values count. ErrInvalidExportedRetCount = errors.New("exported method is not allowed to have more than one return value") // ErrGenericsUnsupported is returned when generics-related tokens are encountered. - ErrGenericsUnsupported = errors.New("generics are currently unsupported, please, see the https://github.com/nspcc-dev/neo-go/issues/2376") + ErrGenericsUnsupported = errors.New("generics are currently unsupported, please, see the https://github.com/tutus-one/tutus-chain/issues/2376") ) var ( @@ -721,7 +721,7 @@ func isSyscall(fun *funcScope) bool { strings.HasPrefix(fun.name, "Opcode") || strings.HasPrefix(fun.name, "CallWithToken")) } -const interopPrefix = "github.com/nspcc-dev/neo-go/pkg/interop" +const interopPrefix = "github.com/tutus-one/tutus-chain/pkg/interop" func isInteropPath(s string) bool { return strings.HasPrefix(s, interopPrefix) @@ -748,7 +748,7 @@ func canConvert(s string) bool { // manually. // nolint:staticcheck // could apply De Morgan's law, but it's less readable. func canInline(s string, name string, isBuiltin bool) bool { - if strings.HasPrefix(s, "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline") { + if strings.HasPrefix(s, "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline") { return true } if !isInteropPath(s) { diff --git a/pkg/compiler/assign_test.go b/pkg/compiler/assign_test.go index cf333a0..2deb16f 100644 --- a/pkg/compiler/assign_test.go +++ b/pkg/compiler/assign_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/vm" "github.com/stretchr/testify/require" ) diff --git a/pkg/compiler/binary_expr_test.go b/pkg/compiler/binary_expr_test.go index e702746..d6611f4 100644 --- a/pkg/compiler/binary_expr_test.go +++ b/pkg/compiler/binary_expr_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/vm" "github.com/stretchr/testify/require" ) diff --git a/pkg/compiler/builtin_test.go b/pkg/compiler/builtin_test.go index 740df05..d753728 100644 --- a/pkg/compiler/builtin_test.go +++ b/pkg/compiler/builtin_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/compiler/codegen.go b/pkg/compiler/codegen.go index 4b1e4c6..f4a16ad 100644 --- a/pkg/compiler/codegen.go +++ b/pkg/compiler/codegen.go @@ -14,17 +14,17 @@ import ( "slices" "strings" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/util/bitfield" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util/bitfield" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "golang.org/x/tools/go/packages" ) diff --git a/pkg/compiler/codegen_test.go b/pkg/compiler/codegen_test.go index 3de3dea..12ab145 100644 --- a/pkg/compiler/codegen_test.go +++ b/pkg/compiler/codegen_test.go @@ -5,7 +5,7 @@ import ( "go/types" "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" ) diff --git a/pkg/compiler/compiler.go b/pkg/compiler/compiler.go index f04099b..c6f7c7e 100644 --- a/pkg/compiler/compiler.go +++ b/pkg/compiler/compiler.go @@ -13,13 +13,13 @@ import ( "slices" "strings" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest/standard" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/rpcbinding" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/binding" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest/standard" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/rpcbinding" + "github.com/tutus-one/tutus-chain/pkg/util" "golang.org/x/tools/go/packages" "gopkg.in/yaml.v3" ) diff --git a/pkg/compiler/compiler_test.go b/pkg/compiler/compiler_test.go index c70ac64..4744d17 100644 --- a/pkg/compiler/compiler_test.go +++ b/pkg/compiler/compiler_test.go @@ -8,15 +8,15 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/versionutil" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/interop/native/neo" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/versionutil" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/interop/native/neo" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -130,25 +130,25 @@ func TestOnPayableChecks(t *testing.T) { t.Run("NEP-11, good", func(t *testing.T) { src := `package payable - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func OnNEP11Payment(from interop.Hash160, amount int, tokenID []byte, data any) {}` require.NoError(t, compileAndCheck(t, src)) }) t.Run("NEP-11, bad", func(t *testing.T) { src := `package payable - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func OnNEP11Payment(from interop.Hash160, amount int, oldParam string, tokenID []byte, data any) {}` require.Error(t, compileAndCheck(t, src)) }) t.Run("NEP-17, good", func(t *testing.T) { src := `package payable - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func OnNEP17Payment(from interop.Hash160, amount int, data any) {}` require.NoError(t, compileAndCheck(t, src)) }) t.Run("NEP-17, bad", func(t *testing.T) { src := `package payable - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func OnNEP17Payment(from interop.Hash160, amount int, data any, extra int) {}` require.Error(t, compileAndCheck(t, src)) }) @@ -171,7 +171,7 @@ func TestSafeMethodWarnings(t *testing.T) { func TestEventWarnings(t *testing.T) { src := `package payable - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main() { runtime.Notify("Event", 1) }` _, di, err := compiler.CompileWithOptions("eventTest.go", strings.NewReader(src), nil) @@ -226,7 +226,7 @@ func TestEventWarnings(t *testing.T) { t.Run("event in imported package", func(t *testing.T) { t.Run("unused", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/notify" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/notify" func Main() int { return notify.Value }` @@ -239,7 +239,7 @@ func TestEventWarnings(t *testing.T) { }) t.Run("used", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/notify" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/notify" func Main() int { notify.EmitEvent() return 42 @@ -261,7 +261,7 @@ func TestEventWarnings(t *testing.T) { }) t.Run("variadic event args via ellipsis", func(t *testing.T) { src := `package payable - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main() { runtime.Notify("Event", []any{1}...) }` @@ -282,7 +282,7 @@ func TestEventWarnings(t *testing.T) { func TestNotifyInVerify(t *testing.T) { srcTmpl := `package payable - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Verify() bool { runtime.%s("Event"); return true }` for _, name := range []string{"Notify", "Log"} { @@ -315,8 +315,8 @@ func TestInvokedContractsPermissons(t *testing.T) { t.Run("native", func(t *testing.T) { src := `package test - import "github.com/nspcc-dev/neo-go/pkg/interop/native/neo" - import "github.com/nspcc-dev/neo-go/pkg/interop/native/management" + import "github.com/tutus-one/tutus-chain/pkg/interop/native/neo" + import "github.com/tutus-one/tutus-chain/pkg/interop/native/management" func Main() int { neo.Transfer(nil, nil, 10, nil) management.GetContract(nil) // skip read-only @@ -344,9 +344,9 @@ func TestInvokedContractsPermissons(t *testing.T) { t.Run("custom", func(t *testing.T) { hashStr := "aaaaaaaaaaaaaaaaaaaa" src := fmt.Sprintf(`package test - import "github.com/nspcc-dev/neo-go/pkg/interop/contract" - import "github.com/nspcc-dev/neo-go/pkg/interop" - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/runh" + import "github.com/tutus-one/tutus-chain/pkg/interop/contract" + import "github.com/tutus-one/tutus-chain/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/runh" const hash = "%s" var runtimeHash interop.Hash160 diff --git a/pkg/compiler/constant_test.go b/pkg/compiler/constant_test.go index 9b5c797..2d717a3 100644 --- a/pkg/compiler/constant_test.go +++ b/pkg/compiler/constant_test.go @@ -38,7 +38,7 @@ func TestShortHandMultiConst(t *testing.T) { func TestByteConstant(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/convert" + import "github.com/tutus-one/tutus-chain/pkg/interop/convert" const a byte = 0xFF func Main() int { x := convert.ToInteger(a) diff --git a/pkg/compiler/convert_test.go b/pkg/compiler/convert_test.go index 8f7a49f..1d9334e 100644 --- a/pkg/compiler/convert_test.go +++ b/pkg/compiler/convert_test.go @@ -8,10 +8,10 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -62,7 +62,7 @@ func TestConvert(t *testing.T) { } srcBuilder := bytes.NewBuffer([]byte(`package testcase - import "github.com/nspcc-dev/neo-go/pkg/interop/convert" + import "github.com/tutus-one/tutus-chain/pkg/interop/convert" `)) for i, tc := range convertTestCases { name := getFunctionName(tc.returnType) @@ -189,9 +189,9 @@ func TestTypeConversion(t *testing.T) { func TestSelectorTypeConversion(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/types" - import "github.com/nspcc-dev/neo-go/pkg/interop/util" - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/types" + import "github.com/tutus-one/tutus-chain/pkg/interop/util" + import "github.com/tutus-one/tutus-chain/pkg/interop" func Main() int { var a int if util.Equals(types.Buffer(nil), nil) { @@ -311,7 +311,7 @@ func TestConvert_Uint(t *testing.T) { } srcToBytesTmpl := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/convert" + import "github.com/tutus-one/tutus-chain/pkg/interop/convert" func Main(args []any) []byte { return convert.%sToBytes%s(args[0].(%s)) @@ -319,7 +319,7 @@ func TestConvert_Uint(t *testing.T) { ` srcFromBytesTmpl := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/convert" + import "github.com/tutus-one/tutus-chain/pkg/interop/convert" func Main(args []any) %s { return convert.Bytes%sTo%s(args[0].([]byte)) @@ -327,7 +327,7 @@ func TestConvert_Uint(t *testing.T) { ` srcCompatibilityCheckTmpl := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/convert" + import "github.com/tutus-one/tutus-chain/pkg/interop/convert" func Main(args []any) %s { data := convert.%sToBytes%s(args[0].(%s)) return convert.Bytes%sTo%s(data) diff --git a/pkg/compiler/debug.go b/pkg/compiler/debug.go index e91231e..23bcb61 100644 --- a/pkg/compiler/debug.go +++ b/pkg/compiler/debug.go @@ -12,12 +12,12 @@ import ( "unicode" "unicode/utf8" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/binding" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // DebugInfo represents smart-contract debug information. diff --git a/pkg/compiler/debug_test.go b/pkg/compiler/debug_test.go index 4861e29..8f99f41 100644 --- a/pkg/compiler/debug_test.go +++ b/pkg/compiler/debug_test.go @@ -5,20 +5,20 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/binding" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestCodeGen_DebugInfo(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" - import "github.com/nspcc-dev/neo-go/pkg/interop/storage" - import "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" + import "github.com/tutus-one/tutus-chain/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop/storage" + import "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" var staticVar int func init() { a := 1 diff --git a/pkg/compiler/defer_test.go b/pkg/compiler/defer_test.go index 734a8c1..6b24591 100644 --- a/pkg/compiler/defer_test.go +++ b/pkg/compiler/defer_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -56,7 +56,7 @@ func TestDefer(t *testing.T) { src := `package main import ( - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) func Main() { diff --git a/pkg/compiler/for_test.go b/pkg/compiler/for_test.go index 7c8ae73..993831a 100644 --- a/pkg/compiler/for_test.go +++ b/pkg/compiler/for_test.go @@ -7,10 +7,10 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/compiler/function_call_test.go b/pkg/compiler/function_call_test.go index c6197ab..6653f54 100644 --- a/pkg/compiler/function_call_test.go +++ b/pkg/compiler/function_call_test.go @@ -6,15 +6,15 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) func TestReturnValueReceiver(t *testing.T) { t.Run("regular", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/method" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/method" func Main() int { return method.NewX().GetA() @@ -23,7 +23,7 @@ func TestReturnValueReceiver(t *testing.T) { }) t.Run("inline", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() int { return inline.NewT().GetN() @@ -89,7 +89,7 @@ func TestNotAssignedFunctionCall(t *testing.T) { }) t.Run("Builtin", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" + import "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" func Main() int { address.ToHash160("NPAsqZkx9WhNd4P72uhZxBhLinSuNkxfB8") address.ToHash160("NPAsqZkx9WhNd4P72uhZxBhLinSuNkxfB8") @@ -364,7 +364,7 @@ func TestFunctionUnusedParameters(t *testing.T) { func TestUnusedFunctions(t *testing.T) { t.Run("only variable", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/nestedcall" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/nestedcall" func Main() int { return nestedcall.X }` @@ -377,7 +377,7 @@ func TestUnusedFunctions(t *testing.T) { t.Run("imported function", func(t *testing.T) { // Check that import map is set correctly during package traversal. src := `package foo - import inner "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/nestedcall" + import inner "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/nestedcall" func Main() int { return inner.N() }` @@ -389,7 +389,7 @@ func TestUnusedFunctions(t *testing.T) { t.Run("method inside of an imported package", func(t *testing.T) { // Check that import map is set correctly during package traversal. src := `package foo - import inner "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/nestedcall" + import inner "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/nestedcall" func Main() int { var t inner.Token return t.Method() diff --git a/pkg/compiler/generics_test.go b/pkg/compiler/generics_test.go index fbb585d..739aebc 100644 --- a/pkg/compiler/generics_test.go +++ b/pkg/compiler/generics_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/compiler" "github.com/stretchr/testify/require" ) diff --git a/pkg/compiler/global_test.go b/pkg/compiler/global_test.go index 8c7fb97..4ec8ff7 100644 --- a/pkg/compiler/global_test.go +++ b/pkg/compiler/global_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) @@ -588,7 +588,7 @@ func TestUnusedOptimizedGlobalVar(t *testing.T) { t.Run("imported", func(t *testing.T) { t.Run("init by func call", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/globalvar" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar" func Main() int { return globalvar.Default }` @@ -597,7 +597,7 @@ func TestUnusedOptimizedGlobalVar(t *testing.T) { }) t.Run("nested var call", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/globalvar/nested1" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/nested1" func Main() int { return nested1.C }` @@ -606,7 +606,7 @@ func TestUnusedOptimizedGlobalVar(t *testing.T) { }) t.Run("nested func call", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/globalvar/funccall" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/funccall" func Main() int { return funccall.F() }` @@ -615,7 +615,7 @@ func TestUnusedOptimizedGlobalVar(t *testing.T) { }) t.Run("nested method call", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/globalvar/funccall" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/funccall" func Main() int { return funccall.GetAge() }` @@ -642,7 +642,7 @@ func TestChangeGlobal(t *testing.T) { eval(t, src, big.NewInt(42)) }) t.Run("from other global", func(t *testing.T) { - t.Skip("see https://github.com/nspcc-dev/neo-go/issues/2661") + t.Skip("see https://github.com/tutus-one/tutus-chain/issues/2661") src := `package foo var A = f() var B int @@ -773,7 +773,7 @@ func TestContractWithNoMain(t *testing.T) { func TestMultipleFiles(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/multi" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/multi" func Main() int { return multi.Sum() }` @@ -783,7 +783,7 @@ func TestMultipleFiles(t *testing.T) { func TestExportedVariable(t *testing.T) { t.Run("Use", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/multi" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/multi" func Main() int { return multi.SomeVar12 }` @@ -791,7 +791,7 @@ func TestExportedVariable(t *testing.T) { }) t.Run("ChangeAndUse", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/multi" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/multi" func Main() int { multi.SomeVar12 = 10 return multi.Sum() @@ -800,7 +800,7 @@ func TestExportedVariable(t *testing.T) { }) t.Run("PackageAlias", func(t *testing.T) { src := `package foo - import kek "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/multi" + import kek "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/multi" func Main() int { kek.SomeVar12 = 10 return kek.Sum() @@ -809,7 +809,7 @@ func TestExportedVariable(t *testing.T) { }) t.Run("DifferentName", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/strange" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/strange" func Main() int { normal.NormalVar = 42 return normal.NormalVar @@ -818,7 +818,7 @@ func TestExportedVariable(t *testing.T) { }) t.Run("MultipleEqualNames", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/multi" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/multi" var SomeVar12 = 1 func Main() int { SomeVar30 := 3 @@ -834,7 +834,7 @@ func TestExportedVariable(t *testing.T) { func TestExportedConst(t *testing.T) { t.Run("with vars", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/multi" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/multi" func Main() int { return multi.SomeConst }` @@ -842,7 +842,7 @@ func TestExportedConst(t *testing.T) { }) t.Run("const only", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/constonly" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/constonly" func Main() int { return constonly.Answer }` @@ -853,7 +853,7 @@ func TestExportedConst(t *testing.T) { func TestMultipleFuncSameName(t *testing.T) { t.Run("Simple", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/multi" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/multi" func Main() int { return multi.Sum() + Sum() } @@ -864,7 +864,7 @@ func TestMultipleFuncSameName(t *testing.T) { }) t.Run("WithMethod", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/foo" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/foo" type Foo struct{} func (f Foo) Bar() int { return 11 } func Bar() int { return 22 } diff --git a/pkg/compiler/import_test.go b/pkg/compiler/import_test.go index 967d387..63add37 100644 --- a/pkg/compiler/import_test.go +++ b/pkg/compiler/import_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/compiler" "github.com/stretchr/testify/require" ) @@ -13,7 +13,7 @@ func TestImportFunction(t *testing.T) { src := ` package somethingelse - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/foo" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/foo" func Main() int { i := foo.NewBar() @@ -27,7 +27,7 @@ func TestImportStruct(t *testing.T) { src := ` package somethingwedontcareabout - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/bar" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/bar" func Main() int { b := bar.Bar{ @@ -43,7 +43,7 @@ func TestMultipleDirFileImport(t *testing.T) { src := ` package hello - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/foobar" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/foobar" func Main() bool { ok := foobar.OtherBool() @@ -55,7 +55,7 @@ func TestMultipleDirFileImport(t *testing.T) { func TestImportNameSameAsOwn(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/foo" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/foo" func get3() int { return 3 } func Main() int { return get3() @@ -69,7 +69,7 @@ func TestImportNameSameAsOwn(t *testing.T) { func TestImportCycleDirect(t *testing.T) { src := ` package some - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/importcycle/pkg2" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/importcycle/pkg2" func Main() int { return pkg2.A } @@ -81,7 +81,7 @@ func TestImportCycleDirect(t *testing.T) { func TestImportCycleIndirect(t *testing.T) { src := ` package some - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/importcycle/pkg1" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/importcycle/pkg1" func Main() int { return pkg1.A } diff --git a/pkg/compiler/init_test.go b/pkg/compiler/init_test.go index b2d5d7a..8ec6c4e 100644 --- a/pkg/compiler/init_test.go +++ b/pkg/compiler/init_test.go @@ -68,23 +68,23 @@ func TestInit(t *testing.T) { func TestImportOrder(t *testing.T) { t.Run("1,2", func(t *testing.T) { src := `package foo - import _ "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/pkg1" - import _ "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/pkg2" - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/pkg3" + import _ "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/pkg1" + import _ "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/pkg2" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/pkg3" func Main() int { return pkg3.A }` eval(t, src, big.NewInt(2)) }) t.Run("2,1", func(t *testing.T) { src := `package foo - import _ "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/pkg2" - import _ "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/pkg1" - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/pkg3" + import _ "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/pkg2" + import _ "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/pkg1" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/pkg3" func Main() int { return pkg3.A }` eval(t, src, big.NewInt(1)) }) t.Run("InitializeOnce", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/pkg3" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/pkg3" var A = pkg3.A func Main() int { return A }` eval(t, src, big.NewInt(3)) @@ -93,7 +93,7 @@ func TestImportOrder(t *testing.T) { func TestInitWithNoGlobals(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func init() { runtime.Notify("called in '_initialize'") } diff --git a/pkg/compiler/inline.go b/pkg/compiler/inline.go index cc5e922..9b4881c 100644 --- a/pkg/compiler/inline.go +++ b/pkg/compiler/inline.go @@ -7,13 +7,13 @@ import ( "go/types" "slices" - "github.com/nspcc-dev/neo-go/pkg/core/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/binding" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // inlineCall inlines call of n for function represented by f. diff --git a/pkg/compiler/inline_test.go b/pkg/compiler/inline_test.go index 2f9a295..c7278bb 100644 --- a/pkg/compiler/inline_test.go +++ b/pkg/compiler/inline_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) @@ -63,8 +63,8 @@ func checkInstrCount(t *testing.T, src string, expectedSSlotCount, expectedCall, func TestInline(t *testing.T) { srcTmpl := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/foo" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/foo" var _ = foo.Dummy type pair struct { a, b int } type triple struct { @@ -184,7 +184,7 @@ func TestInline(t *testing.T) { func TestIssue1879(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main() int { data := "main is called" runtime.Log("log " + string(data)) @@ -196,8 +196,8 @@ func TestIssue1879(t *testing.T) { func TestInlineInLoop(t *testing.T) { t.Run("simple", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/storage" - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/interop/storage" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() int { sum := 0 values := []int{10, 11} @@ -212,9 +212,9 @@ func TestInlineInLoop(t *testing.T) { }) t.Run("inlined argument", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - import "github.com/nspcc-dev/neo-go/pkg/interop/storage" - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/storage" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() int { sum := 0 values := []int{10, 11} @@ -229,8 +229,8 @@ func TestInlineInLoop(t *testing.T) { }) t.Run("check clean stack on return", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/storage" - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/interop/storage" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() int { values := []int{10, 11, 12} for _, v := range values { @@ -247,7 +247,7 @@ func TestInlineInLoop(t *testing.T) { func TestInlineInSwitch(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() int { switch inline.VarSum(1, 2) { case inline.VarSum(3, 1): @@ -264,7 +264,7 @@ func TestInlineInSwitch(t *testing.T) { func TestInlineGlobalVariable(t *testing.T) { t.Run("simple", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" var a = inline.Sum(1, 2) func Main() int { return a @@ -273,7 +273,7 @@ func TestInlineGlobalVariable(t *testing.T) { }) t.Run("complex", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" var a = inline.Sum(3, 4) var b = inline.SumSquared(1, 2) var c = a + b @@ -289,7 +289,7 @@ func TestInlineGlobalVariable(t *testing.T) { func TestInlineVariadicInInlinedCall(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() int { return inline.SumSquared(inline.SumVar(3, 4) - 2, 3) }` @@ -298,7 +298,7 @@ func TestInlineVariadicInInlinedCall(t *testing.T) { func TestInlineConversion(t *testing.T) { src1 := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" var _ = inline.A func Main() int { a := 2 @@ -308,7 +308,7 @@ func TestInlineConversion(t *testing.T) { require.NoError(t, err) src2 := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" var _ = inline.A func Main() int { a := 2 @@ -323,7 +323,7 @@ func TestInlineConversion(t *testing.T) { func TestInlineConversionQualified(t *testing.T) { src1 := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" var A = 1 func Main() int { return inline.Concat(A) @@ -332,8 +332,8 @@ func TestInlineConversionQualified(t *testing.T) { require.NoError(t, err) src2 := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/b" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/b" var A = 1 func Main() int { return A * 100 + b.A * 10 + inline.A @@ -345,8 +345,8 @@ func TestInlineConversionQualified(t *testing.T) { func TestPackageVarsInInlinedCalls(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/b" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/b" func Main() int { return inline.Sum(inline.A, b.A) }` @@ -355,7 +355,7 @@ func TestPackageVarsInInlinedCalls(t *testing.T) { func TestInlinedMethod(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() int { // It's important for this variable to not be named 't'. var z inline.T @@ -374,7 +374,7 @@ func TestInlinedMethod(t *testing.T) { func TestInlinedMethodWithPointer(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() int { // It's important for this variable to not be named 't'. var z = &inline.T{} @@ -393,7 +393,7 @@ func TestInlinedMethodWithPointer(t *testing.T) { func TestInlineConditionalReturn(t *testing.T) { srcTmpl := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/c" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/c" func Main() int { x := %d if c.Is42(x) { @@ -411,7 +411,7 @@ func TestInlineConditionalReturn(t *testing.T) { func TestInlineDoubleConditionalReturn(t *testing.T) { srcTmpl := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/c" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/c" func Main() int { return c.Transform(%d, %d) }` @@ -436,7 +436,7 @@ func TestInlineDoubleConditionalReturn(t *testing.T) { func TestInlineAppendStatement(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() []byte { val := []byte{4, 5, 6} @@ -447,7 +447,7 @@ func TestInlineAppendStatement(t *testing.T) { func TestInlineForeignType(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline" func Main() int { return inline.ForeignTypeInsideInline() @@ -457,7 +457,7 @@ func TestInlineForeignType(t *testing.T) { func TestInlineModifyArg(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/d" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/d" func Main() int { return d.Negate(-42) @@ -467,7 +467,7 @@ func TestInlineModifyArg(t *testing.T) { func TestInlineMixedArgs(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/d" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/d" func someCall() int { return -7 } @@ -479,7 +479,7 @@ func TestInlineMixedArgs(t *testing.T) { func TestInlineChain(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/d" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/d" func Main() int { return d.Wrap2(-42) @@ -489,7 +489,7 @@ func TestInlineChain(t *testing.T) { func TestInlineSlice(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/d" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/d" func Main() int { s := make([]int, 1) diff --git a/pkg/compiler/interop_test.go b/pkg/compiler/interop_test.go index 5f89816..0448c7a 100644 --- a/pkg/compiler/interop_test.go +++ b/pkg/compiler/interop_test.go @@ -8,38 +8,38 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/fakechain" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/base58" - cinterop "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/fakechain" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/base58" + cinterop "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" ) func TestTypeConstantSize(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" var a %T // type declaration is always ok func Main() any { return %#v @@ -83,8 +83,8 @@ func TestAddressToHash160BuiltinConversion(t *testing.T) { t.Run("builtin conversion", func(t *testing.T) { src := `package foo import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" ) var addr = address.ToHash160("` + a + `") func Main() interop.Hash160 { @@ -100,8 +100,8 @@ func TestAddressToHash160BuiltinConversion(t *testing.T) { t.Run("generate code", func(t *testing.T) { src := `package foo import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" ) var addr = "` + a + `" func Main() interop.Hash160 { @@ -119,7 +119,7 @@ func TestAddressToHash160BuiltinConversion(t *testing.T) { t.Run("AliasPackage", func(t *testing.T) { src := ` package foo - import ad "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" + import ad "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" func Main() []byte { addr1 := ad.ToHash160("` + a + `") addr2 := ad.ToHash160("` + a2 + `") @@ -139,8 +139,8 @@ func TestInvokeAddressToFromHash160(t *testing.T) { e := neotest.NewExecutor(t, bc, acc, acc) src := `package foo import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" ) const addr = "` + a + `" func ToHash160(a string) interop.Hash160 { @@ -184,7 +184,7 @@ func TestInvokeAddressToFromHash160(t *testing.T) { func TestAbort(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/util" + import "github.com/tutus-one/tutus-chain/pkg/interop/util" func Main() int { util.Abort() return 1 @@ -196,7 +196,7 @@ func TestAbort(t *testing.T) { func TestAbortMsg(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/util" + import "github.com/tutus-one/tutus-chain/pkg/interop/util" func Main() int { util.AbortMsg("some message") return 1 @@ -210,7 +210,7 @@ func TestAbortMsg(t *testing.T) { func TestAssert(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/util" + import "github.com/tutus-one/tutus-chain/pkg/interop/util" func Main(ok bool) int { util.Assert(ok) return 1 @@ -230,7 +230,7 @@ func TestAssert(t *testing.T) { func TestAssertMsg(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/util" + import "github.com/tutus-one/tutus-chain/pkg/interop/util" func Main(ok bool) int { util.AssertMsg(ok, "some message") return 1 @@ -253,8 +253,8 @@ func TestCurrentSigners(t *testing.T) { e := neotest.NewExecutor(t, bc, acc, acc) src := `package foo import ( - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) func Main() []ledger.TransactionSigner { return runtime.CurrentSigners() @@ -282,7 +282,7 @@ func TestStdLib_StrLen(t *testing.T) { e := neotest.NewExecutor(t, bc, acc, acc) src := `package foo import ( - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" ) func Main(s string) int { return std.StrLen(s) @@ -322,8 +322,8 @@ func TestAppCall(t *testing.T) { barH := hash.Hash160(barCtr.Script) srcInner := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/contract" - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop/contract" + import "github.com/tutus-one/tutus-chain/pkg/interop" var a int = 3 func Main(a []byte, b []byte) []byte { panic("Main was called") @@ -409,7 +409,7 @@ func TestAppCall(t *testing.T) { t.Run("convert from string constant", func(t *testing.T) { src := ` package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/contract" + import "github.com/tutus-one/tutus-chain/pkg/interop/contract" const scriptHash = ` + fmt.Sprintf("%#v", string(ih.BytesBE())) + ` func Main() []byte { x := []byte{1, 2} @@ -428,7 +428,7 @@ func TestAppCall(t *testing.T) { t.Run("convert from var", func(t *testing.T) { src := ` package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/contract" + import "github.com/tutus-one/tutus-chain/pkg/interop/contract" func Main() []byte { x := []byte{1, 2} y := []byte{3, 4} @@ -446,7 +446,7 @@ func TestAppCall(t *testing.T) { t.Run("InitializedGlobals", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/contract" + import "github.com/tutus-one/tutus-chain/pkg/interop/contract" func Main() int { var addr = []byte(` + fmt.Sprintf("%#v", string(ih.BytesBE())) + `) result := contract.Call(addr, "add3", contract.All, 39) @@ -461,7 +461,7 @@ func TestAppCall(t *testing.T) { t.Run("AliasPackage", func(t *testing.T) { src := `package foo - import ee "github.com/nspcc-dev/neo-go/pkg/interop/contract" + import ee "github.com/tutus-one/tutus-chain/pkg/interop/contract" func Main() int { var addr = []byte(` + fmt.Sprintf("%#v", string(ih.BytesBE())) + `) result := ee.Call(addr, "add3", ee.All, 39) @@ -476,7 +476,7 @@ func TestAppCall(t *testing.T) { func getAppCallScript(h string) string { return ` package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/contract" + import "github.com/tutus-one/tutus-chain/pkg/interop/contract" func Main() []byte { x := []byte{1, 2} y := []byte{3, 4} @@ -488,7 +488,7 @@ func getAppCallScript(h string) string { func getCallExScript(h string, flags string) string { return `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/contract" + import "github.com/tutus-one/tutus-chain/pkg/interop/contract" func Main() int { result := contract.Call(` + h + `, "callInner", ` + flags + `) return result.(int) @@ -497,7 +497,7 @@ func getCallExScript(h string, flags string) string { func TestBuiltinDoesNotCompile(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/util" + import "github.com/tutus-one/tutus-chain/pkg/interop/util" func Main() bool { a := 1 b := 2 @@ -520,7 +520,7 @@ func TestBuiltinDoesNotCompile(t *testing.T) { func TestInteropPackage(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/block" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/block" func Main() int { b := block.Block{} a := block.GetTransactionCount(b) @@ -531,7 +531,7 @@ func TestInteropPackage(t *testing.T) { func TestBuiltinPackage(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/util" + import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/util" func Main() int { if util.Equals(1, 2) { // always returns true return 1 @@ -555,7 +555,7 @@ func TestLenForNil(t *testing.T) { func TestCallTConversionErrors(t *testing.T) { t.Run("variable hash", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" func Main() int { var hash string return neogointernal.CallWithToken(hash, "method", 0).(int) @@ -565,7 +565,7 @@ func TestCallTConversionErrors(t *testing.T) { }) t.Run("bad hash", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" func Main() int { return neogointernal.CallWithToken("badstring", "method", 0).(int) }` @@ -574,7 +574,7 @@ func TestCallTConversionErrors(t *testing.T) { }) t.Run("variable method", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" func Main() int { var method string return neogointernal.CallWithToken("\xf5\x63\xea\x40\xbc\x28\x3d\x4d\x0e\x05\xc4\x8e\xa3\x05\xb3\xf2\xa0\x73\x40\xef", method, 0).(int) @@ -584,7 +584,7 @@ func TestCallTConversionErrors(t *testing.T) { }) t.Run("variable flags", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" func Main() { var flags int neogointernal.CallWithTokenNoRet("\xf5\x63\xea\x40\xbc\x28\x3d\x4d\x0e\x05\xc4\x8e\xa3\x05\xb3\xf2\xa0\x73\x40\xef", "method", flags) @@ -599,9 +599,9 @@ func TestCallWithVersion(t *testing.T) { e := neotest.NewExecutor(t, bc, acc, acc) src := `package foo import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - util "github.com/nspcc-dev/neo-go/pkg/interop/lib/contract" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + util "github.com/tutus-one/tutus-chain/pkg/interop/lib/contract" ) func CallWithVersion(hash interop.Hash160, version int, method string) any { return util.CallWithVersion(hash, version, method, contract.All) @@ -631,7 +631,7 @@ func TestForcedNotifyArgumentsConversion(t *testing.T) { }) e := neotest.NewExecutor(t, bc, acc, acc) src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" const arg4 = 4 // Const value. func WithoutEllipsis() { var arg0 int // Default value. @@ -775,8 +775,8 @@ func TestStorageIterator_Value(t *testing.T) { src := `package foo import ( - "github.com/nspcc-dev/neo-go/pkg/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" ) func Main() int { diff --git a/pkg/compiler/jumps_test.go b/pkg/compiler/jumps_test.go index 9b924ad..970804c 100644 --- a/pkg/compiler/jumps_test.go +++ b/pkg/compiler/jumps_test.go @@ -3,7 +3,7 @@ package compiler import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/compiler/map_test.go b/pkg/compiler/map_test.go index 9178f08..0bc0e2d 100644 --- a/pkg/compiler/map_test.go +++ b/pkg/compiler/map_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) var mapTestCases = []testCase{ diff --git a/pkg/compiler/native_test.go b/pkg/compiler/native_test.go index a07faad..392ff49 100644 --- a/pkg/compiler/native_test.go +++ b/pkg/compiler/native_test.go @@ -9,30 +9,30 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/limits" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/interop/native/crypto" - "github.com/nspcc-dev/neo-go/pkg/interop/native/gas" - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" - "github.com/nspcc-dev/neo-go/pkg/interop/native/neo" - "github.com/nspcc-dev/neo-go/pkg/interop/native/notary" - "github.com/nspcc-dev/neo-go/pkg/interop/native/oracle" - "github.com/nspcc-dev/neo-go/pkg/interop/native/policy" - "github.com/nspcc-dev/neo-go/pkg/interop/native/roles" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/limits" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/interop/native/crypto" + "github.com/tutus-one/tutus-chain/pkg/interop/native/gas" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop/native/neo" + "github.com/tutus-one/tutus-chain/pkg/interop/native/notary" + "github.com/tutus-one/tutus-chain/pkg/interop/native/oracle" + "github.com/tutus-one/tutus-chain/pkg/interop/native/policy" + "github.com/tutus-one/tutus-chain/pkg/interop/native/roles" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" ) @@ -283,8 +283,8 @@ func TestNativeHelpersCompile(t *testing.T) { func runNativeTestCases(t *testing.T, ctr interop.ContractMD, name string, nativeTestCases []nativeTestCase) { srcBuilder := bytes.NewBuffer([]byte(`package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/native/` + name + `" - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop/native/` + name + `" + import "github.com/tutus-one/tutus-chain/pkg/interop" var _ interop.Hash160 `)) for i, tc := range nativeTestCases { diff --git a/pkg/compiler/slice_test.go b/pkg/compiler/slice_test.go index be690d0..1e23b0d 100644 --- a/pkg/compiler/slice_test.go +++ b/pkg/compiler/slice_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -564,7 +564,7 @@ func TestSubsliceFromStructField(t *testing.T) { func TestRemove(t *testing.T) { t.Run("Valid", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/util" + import "github.com/tutus-one/tutus-chain/pkg/interop/util" func Main() int { a := []int{11, 22, 33} util.Remove(a, 1) @@ -578,7 +578,7 @@ func TestRemove(t *testing.T) { // Skip the test for now. t.Skip() src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/util" + import "github.com/tutus-one/tutus-chain/pkg/interop/util" func Main() int { a := []byte{11, 22, 33} util.Remove(a, 1) diff --git a/pkg/compiler/struct_test.go b/pkg/compiler/struct_test.go index 0b58c1b..2bfb4ab 100644 --- a/pkg/compiler/struct_test.go +++ b/pkg/compiler/struct_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/compiler/switch_test.go b/pkg/compiler/switch_test.go index 21b6278..dc359d2 100644 --- a/pkg/compiler/switch_test.go +++ b/pkg/compiler/switch_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/vm" "github.com/stretchr/testify/require" ) diff --git a/pkg/compiler/syscall_test.go b/pkg/compiler/syscall_test.go index 2d155ce..0d27c17 100644 --- a/pkg/compiler/syscall_test.go +++ b/pkg/compiler/syscall_test.go @@ -8,20 +8,20 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - istorage "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + istorage "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -120,12 +120,12 @@ func TestSyscallExecution(t *testing.T) { srcBuilder := bytes.NewBuffer(nil) srcBuilder.WriteString(`package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/contract" - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - import "github.com/nspcc-dev/neo-go/pkg/interop/storage" - import "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - import "github.com/nspcc-dev/neo-go/pkg/interop/crypto" - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop/contract" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/storage" + import "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + import "github.com/tutus-one/tutus-chain/pkg/interop/crypto" + import "github.com/tutus-one/tutus-chain/pkg/interop" func unused() { var _ interop.Hash160 } `) for goName, tc := range interops { @@ -187,7 +187,7 @@ func TestStoragePutGet(t *testing.T) { src := ` package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/storage" + import "github.com/tutus-one/tutus-chain/pkg/interop/storage" func Main() string { ctx := storage.GetContext() @@ -202,7 +202,7 @@ func TestStoragePutGet(t *testing.T) { func TestNotify(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main(arg int) { runtime.Notify("Event1", arg, "sum", arg+1) runtime.Notify("single") @@ -222,7 +222,7 @@ func TestNotify(t *testing.T) { t.Run("long event name", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main(arg int) { runtime.Notify("long event12345678901234567890123") }` @@ -234,7 +234,7 @@ func TestNotify(t *testing.T) { func TestSyscallInGlobalInit(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" var a = runtime.CheckWitness([]byte("5T")) func Main() bool { return a @@ -253,7 +253,7 @@ func TestSyscallInGlobalInit(t *testing.T) { func TestOpcode(t *testing.T) { t.Run("1 argument", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" func abs(a int) int { return neogointernal.Opcode1("ABS", a).(int) } @@ -264,7 +264,7 @@ func TestOpcode(t *testing.T) { }) t.Run("2 arguments", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" func add3(a, b, c int) int { return neogointernal.Opcode2("SUB", a, neogointernal.Opcode2("SUB", b, c).(int)).(int) @@ -276,7 +276,7 @@ func TestOpcode(t *testing.T) { }) t.Run("POW", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/math" + import "github.com/tutus-one/tutus-chain/pkg/interop/math" func Main() int { return math.Pow(2, math.Pow(3, 2)) }` @@ -284,7 +284,7 @@ func TestOpcode(t *testing.T) { }) t.Run("SRQT", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/math" + import "github.com/tutus-one/tutus-chain/pkg/interop/math" func Main() int { return math.Sqrt(math.Sqrt(101)) // == sqrt(10) == 3 }` @@ -292,7 +292,7 @@ func TestOpcode(t *testing.T) { }) t.Run("SIGN", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/math" + import "github.com/tutus-one/tutus-chain/pkg/interop/math" func Main() []int { signs := make([]int, 3) signs[0] = math.Sign(-123) @@ -308,7 +308,7 @@ func TestOpcode(t *testing.T) { }) t.Run("ABS", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/math" + import "github.com/tutus-one/tutus-chain/pkg/interop/math" func Main() int { return math.Abs(-3) }` @@ -316,7 +316,7 @@ func TestOpcode(t *testing.T) { }) t.Run("WITHIN", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/math" + import "github.com/tutus-one/tutus-chain/pkg/interop/math" func Main() []bool { r := make([]bool, 5) r[0] = math.Within(2, 3, 5) @@ -336,7 +336,7 @@ func TestOpcode(t *testing.T) { }) t.Run("MODMUL", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/math" + import "github.com/tutus-one/tutus-chain/pkg/interop/math" func Main() []int { r := make([]int, 6) r[0] = math.ModMul(3, 4, 5) @@ -358,7 +358,7 @@ func TestOpcode(t *testing.T) { }) t.Run("MODPOW", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop/math" + import "github.com/tutus-one/tutus-chain/pkg/interop/math" func Main() []int { r := make([]int, 5) r[0] = math.ModPow(3, 4, 5) @@ -393,7 +393,7 @@ func TestInteropTypesComparison(t *testing.T) { } check := func(t *testing.T, a, b string, expected bool) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func Main() bool { a := interop.` + typeName + `{` + a + `} b := interop.` + typeName + `{` + b + `} @@ -407,7 +407,7 @@ func TestInteropTypesComparison(t *testing.T) { }) t.Run("a is nil", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func Main() bool { var a interop.` + typeName + ` @@ -418,7 +418,7 @@ func TestInteropTypesComparison(t *testing.T) { }) t.Run("b is nil", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func Main() bool { a := interop.` + typeName + `{` + ha + `} @@ -429,7 +429,7 @@ func TestInteropTypesComparison(t *testing.T) { }) t.Run("both nil", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func Main() bool { var a interop.` + typeName + ` @@ -440,7 +440,7 @@ func TestInteropTypesComparison(t *testing.T) { }) t.Run("different types", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func Main() bool { a := interop.` + typeName + `{` + ha + `} @@ -451,7 +451,7 @@ func TestInteropTypesComparison(t *testing.T) { }) t.Run("b is Buffer", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func Main() bool { a := interop.` + typeName + `{` + ha + `} @@ -462,7 +462,7 @@ func TestInteropTypesComparison(t *testing.T) { }) t.Run("b is ByteString", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func Main() bool { a := interop.` + typeName + `{` + ha + `} @@ -473,7 +473,7 @@ func TestInteropTypesComparison(t *testing.T) { }) t.Run("b is compound type", func(t *testing.T) { src := `package foo - import "github.com/nspcc-dev/neo-go/pkg/interop" + import "github.com/tutus-one/tutus-chain/pkg/interop" func Main() bool { a := interop.` + typeName + `{` + ha + `} diff --git a/pkg/compiler/testdata/compile/test.go b/pkg/compiler/testdata/compile/test.go index 5bc47d0..11924db 100644 --- a/pkg/compiler/testdata/compile/test.go +++ b/pkg/compiler/testdata/compile/test.go @@ -1,6 +1,6 @@ package compile -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func Main() { runtime.Notify("Hello world!") diff --git a/pkg/compiler/testdata/globalvar/funccall/main.go b/pkg/compiler/testdata/globalvar/funccall/main.go index 9bd194c..55b0a3b 100644 --- a/pkg/compiler/testdata/globalvar/funccall/main.go +++ b/pkg/compiler/testdata/globalvar/funccall/main.go @@ -1,9 +1,9 @@ package funccall import ( - "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/globalvar/nested1" - "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/globalvar/nested2" - alias "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/globalvar/nested3" + "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/nested1" + "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/nested2" + alias "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/nested3" ) // F should be called from the main package to check usage analyzer against diff --git a/pkg/compiler/testdata/globalvar/nested1/main.go b/pkg/compiler/testdata/globalvar/nested1/main.go index 64378bf..812866e 100644 --- a/pkg/compiler/testdata/globalvar/nested1/main.go +++ b/pkg/compiler/testdata/globalvar/nested1/main.go @@ -1,8 +1,8 @@ package nested1 import ( - "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/globalvar/nested2" - alias "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/globalvar/nested3" + "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/nested2" + alias "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/globalvar/nested3" ) // Unused shouldn't produce any code if unused. diff --git a/pkg/compiler/testdata/importcycle/pkg1/pkg1.go b/pkg/compiler/testdata/importcycle/pkg1/pkg1.go index 63bdc4f..34ffa71 100644 --- a/pkg/compiler/testdata/importcycle/pkg1/pkg1.go +++ b/pkg/compiler/testdata/importcycle/pkg1/pkg1.go @@ -1,6 +1,6 @@ package pkg1 -import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/importcycle/pkg2" +import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/importcycle/pkg2" var A int diff --git a/pkg/compiler/testdata/importcycle/pkg2/pkg2.go b/pkg/compiler/testdata/importcycle/pkg2/pkg2.go index f80a896..f6115b2 100644 --- a/pkg/compiler/testdata/importcycle/pkg2/pkg2.go +++ b/pkg/compiler/testdata/importcycle/pkg2/pkg2.go @@ -1,7 +1,7 @@ package pkg2 import ( - "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/importcycle/pkg3" + "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/importcycle/pkg3" ) var A int diff --git a/pkg/compiler/testdata/importcycle/pkg3/pkg3.go b/pkg/compiler/testdata/importcycle/pkg3/pkg3.go index 35abab4..c98501d 100644 --- a/pkg/compiler/testdata/importcycle/pkg3/pkg3.go +++ b/pkg/compiler/testdata/importcycle/pkg3/pkg3.go @@ -1,7 +1,7 @@ package pkg3 import ( - "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/importcycle/pkg2" + "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/importcycle/pkg2" ) var A int diff --git a/pkg/compiler/testdata/inline/inline.go b/pkg/compiler/testdata/inline/inline.go index ba9cd2a..b020fd3 100644 --- a/pkg/compiler/testdata/inline/inline.go +++ b/pkg/compiler/testdata/inline/inline.go @@ -1,8 +1,8 @@ package inline import ( - "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/a" - "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/inline/b" + "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/a" + "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/inline/b" ) func NoArgsNoReturn() {} diff --git a/pkg/compiler/testdata/nestedcall/call.go b/pkg/compiler/testdata/nestedcall/call.go index 4d306bc..e4d6186 100644 --- a/pkg/compiler/testdata/nestedcall/call.go +++ b/pkg/compiler/testdata/nestedcall/call.go @@ -1,6 +1,6 @@ package nestedcall -import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/nestedcall/inner" +import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/nestedcall/inner" // X is what we use. const X = 42 diff --git a/pkg/compiler/testdata/notify/event.go b/pkg/compiler/testdata/notify/event.go index ec1c1b9..a1f8205 100644 --- a/pkg/compiler/testdata/notify/event.go +++ b/pkg/compiler/testdata/notify/event.go @@ -1,6 +1,6 @@ package notify -import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" +import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" // Value is the constant we use. const Value = 42 diff --git a/pkg/compiler/testdata/pkg1/pkg1.go b/pkg/compiler/testdata/pkg1/pkg1.go index 910eb0e..333257c 100644 --- a/pkg/compiler/testdata/pkg1/pkg1.go +++ b/pkg/compiler/testdata/pkg1/pkg1.go @@ -1,6 +1,6 @@ package pkg1 -import "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/pkg3" +import "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/pkg3" func init() { pkg3.A = 1 diff --git a/pkg/compiler/testdata/pkg2/pkg2.go b/pkg/compiler/testdata/pkg2/pkg2.go index e95cda0..75aaadc 100644 --- a/pkg/compiler/testdata/pkg2/pkg2.go +++ b/pkg/compiler/testdata/pkg2/pkg2.go @@ -1,7 +1,7 @@ package pkg2 import ( - "github.com/nspcc-dev/neo-go/pkg/compiler/testdata/pkg3" + "github.com/tutus-one/tutus-chain/pkg/compiler/testdata/pkg3" ) func init() { diff --git a/pkg/compiler/testdata/runh/hash.go b/pkg/compiler/testdata/runh/hash.go index b6b5d92..11e9c18 100644 --- a/pkg/compiler/testdata/runh/hash.go +++ b/pkg/compiler/testdata/runh/hash.go @@ -1,6 +1,6 @@ package runh -import "github.com/nspcc-dev/neo-go/pkg/interop" +import "github.com/tutus-one/tutus-chain/pkg/interop" // RuntimeHash possibly returns some hash at runtime. func RuntimeHash() interop.Hash160 { diff --git a/pkg/compiler/types.go b/pkg/compiler/types.go index dfac38b..e088c02 100644 --- a/pkg/compiler/types.go +++ b/pkg/compiler/types.go @@ -5,7 +5,7 @@ import ( "go/types" "slices" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) func (c *codegen) typeAndValueOf(e ast.Expr) types.TypeAndValue { diff --git a/pkg/compiler/vardecl_test.go b/pkg/compiler/vardecl_test.go index 954b7a5..65a0a08 100644 --- a/pkg/compiler/vardecl_test.go +++ b/pkg/compiler/vardecl_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) func TestGenDeclWithMultiRet(t *testing.T) { diff --git a/pkg/compiler/verify_test.go b/pkg/compiler/verify_test.go index b2dd783..3da4368 100644 --- a/pkg/compiler/verify_test.go +++ b/pkg/compiler/verify_test.go @@ -4,9 +4,9 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/vm" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -46,7 +46,7 @@ func getVerifyProg(pub, sig []byte) string { return ` package hello - import "github.com/nspcc-dev/neo-go/pkg/interop/crypto" + import "github.com/tutus-one/tutus-chain/pkg/interop/crypto" func Main() bool { pub := ` + pubS + ` diff --git a/pkg/compiler/vm_test.go b/pkg/compiler/vm_test.go index 6bff970..dd47c41 100644 --- a/pkg/compiler/vm_test.go +++ b/pkg/compiler/vm_test.go @@ -6,16 +6,16 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/config/application_config.go b/pkg/config/application_config.go index d7ea935..45a6a10 100644 --- a/pkg/config/application_config.go +++ b/pkg/config/application_config.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" ) // ApplicationConfiguration config specific to the node. diff --git a/pkg/config/application_config_test.go b/pkg/config/application_config_test.go index 3169235..3b27d8d 100644 --- a/pkg/config/application_config_test.go +++ b/pkg/config/application_config_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/config/config.go b/pkg/config/config.go index 80f3070..09a5aa6 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -8,8 +8,8 @@ import ( "path/filepath" "time" - "github.com/nspcc-dev/neo-go/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" "gopkg.in/yaml.v3" ) diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index da24789..55a44d7 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -7,8 +7,8 @@ import ( "path/filepath" "testing" - "github.com/nspcc-dev/neo-go/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/pkg/config/genesis_extensions.go b/pkg/config/genesis_extensions.go index 236e339..ac08b8d 100644 --- a/pkg/config/genesis_extensions.go +++ b/pkg/config/genesis_extensions.go @@ -5,8 +5,8 @@ import ( "fmt" "time" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" "gopkg.in/yaml.v3" ) diff --git a/pkg/config/hardfork.go b/pkg/config/hardfork.go index 3b1fc98..9ce66ce 100644 --- a/pkg/config/hardfork.go +++ b/pkg/config/hardfork.go @@ -31,7 +31,7 @@ const ( // https://github.com/neo-project/neo/pull/3290). It makes the`node use // executing contract state for the contract call permissions check instead // of the state stored in the native Management. This change was introduced - // in [#3473](https://github.com/nspcc-dev/neo-go/pull/3473) and ported to + // in [#3473](https://github.com/tutus-one/tutus-chain/pull/3473) and ported to // the [reference](https://github.com/neo-project/neo/pull/3290). Also, this // hard-fork makes the System.Runtime.GetNotifications interop properly // count stack references of notification parameters which prevents users diff --git a/pkg/config/ledger_config.go b/pkg/config/ledger_config.go index c2ff1fb..585d61f 100644 --- a/pkg/config/ledger_config.go +++ b/pkg/config/ledger_config.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" "gopkg.in/yaml.v3" ) diff --git a/pkg/config/ledger_config_test.go b/pkg/config/ledger_config_test.go index 626ab05..0280819 100644 --- a/pkg/config/ledger_config_test.go +++ b/pkg/config/ledger_config_test.go @@ -3,8 +3,8 @@ package config import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/pkg/config/protocol_config.go b/pkg/config/protocol_config.go index d530237..ad3fae7 100644 --- a/pkg/config/protocol_config.go +++ b/pkg/config/protocol_config.go @@ -8,8 +8,8 @@ import ( "slices" "time" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" ) // ProtocolConfiguration represents the protocol config. diff --git a/pkg/config/protocol_config_test.go b/pkg/config/protocol_config_test.go index f46e5da..03a2c5d 100644 --- a/pkg/config/protocol_config_test.go +++ b/pkg/config/protocol_config_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/pkg/config/rpc_config.go b/pkg/config/rpc_config.go index 01d0ee3..d22e2a6 100644 --- a/pkg/config/rpc_config.go +++ b/pkg/config/rpc_config.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" ) type ( diff --git a/pkg/consensus/block.go b/pkg/consensus/block.go index 87a4fae..048eb20 100644 --- a/pkg/consensus/block.go +++ b/pkg/consensus/block.go @@ -4,11 +4,11 @@ import ( "errors" "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - coreb "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + coreb "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" ) // neoBlock is a wrapper of a core.Block which implements diff --git a/pkg/consensus/block_test.go b/pkg/consensus/block_test.go index 1bfeb6c..765c596 100644 --- a/pkg/consensus/block_test.go +++ b/pkg/consensus/block_test.go @@ -4,10 +4,10 @@ import ( "testing" "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/consensus/cache.go b/pkg/consensus/cache.go index 73a879f..39148e7 100644 --- a/pkg/consensus/cache.go +++ b/pkg/consensus/cache.go @@ -4,7 +4,7 @@ import ( "container/list" "sync" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // relayCache is payload cache which is used to store diff --git a/pkg/consensus/cache_test.go b/pkg/consensus/cache_test.go index c7796fe..71154a3 100644 --- a/pkg/consensus/cache_test.go +++ b/pkg/consensus/cache_test.go @@ -3,7 +3,7 @@ package consensus import ( "testing" - "github.com/nspcc-dev/neo-go/internal/random" + "github.com/tutus-one/tutus-chain/internal/random" "github.com/stretchr/testify/require" ) diff --git a/pkg/consensus/change_view.go b/pkg/consensus/change_view.go index d406d8c..59b59c0 100644 --- a/pkg/consensus/change_view.go +++ b/pkg/consensus/change_view.go @@ -2,7 +2,7 @@ package consensus import ( "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // changeView represents dBFT ChangeView message. diff --git a/pkg/consensus/commit.go b/pkg/consensus/commit.go index c21aa37..271988e 100644 --- a/pkg/consensus/commit.go +++ b/pkg/consensus/commit.go @@ -2,7 +2,7 @@ package consensus import ( "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // commit represents dBFT Commit message. diff --git a/pkg/consensus/commit_test.go b/pkg/consensus/commit_test.go index 21b21cb..66aff1b 100644 --- a/pkg/consensus/commit_test.go +++ b/pkg/consensus/commit_test.go @@ -3,7 +3,7 @@ package consensus import ( "testing" - "github.com/nspcc-dev/neo-go/internal/random" + "github.com/tutus-one/tutus-chain/internal/random" "github.com/stretchr/testify/require" ) diff --git a/pkg/consensus/consensus.go b/pkg/consensus/consensus.go index 53f5bd0..c482583 100644 --- a/pkg/consensus/consensus.go +++ b/pkg/consensus/consensus.go @@ -9,22 +9,22 @@ import ( "github.com/nspcc-dev/dbft" "github.com/nspcc-dev/dbft/timer" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - coreb "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - npayload "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + coreb "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + npayload "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/wallet" "go.uber.org/zap" ) diff --git a/pkg/consensus/consensus_test.go b/pkg/consensus/consensus_test.go index a104071..d9e05f0 100644 --- a/pkg/consensus/consensus_test.go +++ b/pkg/consensus/consensus_test.go @@ -5,25 +5,25 @@ import ( "time" "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - coreb "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - npayload "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + coreb "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + npayload "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" ) diff --git a/pkg/consensus/crypto_test.go b/pkg/consensus/crypto_test.go index bbcb6b7..997a2fb 100644 --- a/pkg/consensus/crypto_test.go +++ b/pkg/consensus/crypto_test.go @@ -4,7 +4,7 @@ import ( "crypto/sha256" "testing" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" "github.com/stretchr/testify/require" ) diff --git a/pkg/consensus/payload.go b/pkg/consensus/payload.go index e0aca15..22d9577 100644 --- a/pkg/consensus/payload.go +++ b/pkg/consensus/payload.go @@ -4,12 +4,12 @@ import ( "fmt" "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - npayload "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + npayload "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" ) type ( diff --git a/pkg/consensus/payload_test.go b/pkg/consensus/payload_test.go index 85e6345..ab6e85a 100644 --- a/pkg/consensus/payload_test.go +++ b/pkg/consensus/payload_test.go @@ -7,15 +7,15 @@ import ( "testing" "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - npayload "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + npayload "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/consensus/prepare_request.go b/pkg/consensus/prepare_request.go index 0d5eceb..3cfe492 100644 --- a/pkg/consensus/prepare_request.go +++ b/pkg/consensus/prepare_request.go @@ -2,9 +2,9 @@ package consensus import ( "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // prepareRequest represents dBFT prepareRequest message. diff --git a/pkg/consensus/prepare_request_test.go b/pkg/consensus/prepare_request_test.go index bd1fb0e..e6c1df3 100644 --- a/pkg/consensus/prepare_request_test.go +++ b/pkg/consensus/prepare_request_test.go @@ -3,10 +3,10 @@ package consensus import ( "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/consensus/prepare_response.go b/pkg/consensus/prepare_response.go index 1b2f064..1ac4fcb 100644 --- a/pkg/consensus/prepare_response.go +++ b/pkg/consensus/prepare_response.go @@ -2,8 +2,8 @@ package consensus import ( "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // prepareResponse represents dBFT PrepareResponse message. diff --git a/pkg/consensus/prepare_response_test.go b/pkg/consensus/prepare_response_test.go index 67fa7ee..024ac3f 100644 --- a/pkg/consensus/prepare_response_test.go +++ b/pkg/consensus/prepare_response_test.go @@ -3,7 +3,7 @@ package consensus import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/consensus/recovery_message.go b/pkg/consensus/recovery_message.go index 040add2..03a0cda 100644 --- a/pkg/consensus/recovery_message.go +++ b/pkg/consensus/recovery_message.go @@ -4,10 +4,10 @@ import ( "errors" "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - npayload "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + npayload "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/util" ) type ( diff --git a/pkg/consensus/recovery_message_test.go b/pkg/consensus/recovery_message_test.go index 2c7737c..2d76edd 100644 --- a/pkg/consensus/recovery_message_test.go +++ b/pkg/consensus/recovery_message_test.go @@ -4,10 +4,10 @@ import ( "testing" "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/consensus/recovery_request.go b/pkg/consensus/recovery_request.go index 897f0b7..dbc9372 100644 --- a/pkg/consensus/recovery_request.go +++ b/pkg/consensus/recovery_request.go @@ -2,7 +2,7 @@ package consensus import ( "github.com/nspcc-dev/dbft" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // recoveryRequest represents dBFT RecoveryRequest message. diff --git a/pkg/core/basic_chain_test.go b/pkg/core/basic_chain_test.go index 14e4ae6..7ba2da4 100644 --- a/pkg/core/basic_chain_test.go +++ b/pkg/core/basic_chain_test.go @@ -6,11 +6,11 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/basicchain" - "github.com/nspcc-dev/neo-go/pkg/core/chaindump" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/internal/basicchain" + "github.com/tutus-one/tutus-chain/pkg/core/chaindump" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/bench_test.go b/pkg/core/bench_test.go index 97c0191..fb6b0d9 100644 --- a/pkg/core/bench_test.go +++ b/pkg/core/bench_test.go @@ -6,18 +6,18 @@ import ( "path/filepath" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/block/block.go b/pkg/core/block/block.go index d0dbfee..a4a6781 100644 --- a/pkg/core/block/block.go +++ b/pkg/core/block/block.go @@ -6,11 +6,11 @@ import ( "math" "math/big" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) const ( diff --git a/pkg/core/block/block_test.go b/pkg/core/block/block_test.go index e816f81..2179868 100644 --- a/pkg/core/block/block_test.go +++ b/pkg/core/block/block_test.go @@ -7,13 +7,13 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/block/header.go b/pkg/core/block/header.go index a5aee72..1f31eb2 100644 --- a/pkg/core/block/header.go +++ b/pkg/core/block/header.go @@ -6,12 +6,12 @@ import ( "fmt" "strconv" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" ) // VersionInitial is the default Neo block version. diff --git a/pkg/core/block/header_test.go b/pkg/core/block/header_test.go index 8a1d508..68827de 100644 --- a/pkg/core/block/header_test.go +++ b/pkg/core/block/header_test.go @@ -4,11 +4,11 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" ) diff --git a/pkg/core/block/helper_test.go b/pkg/core/block/helper_test.go index db61d29..363cb20 100644 --- a/pkg/core/block/helper_test.go +++ b/pkg/core/block/helper_test.go @@ -7,7 +7,7 @@ import ( "os" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 9b7315b..415b925 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -14,37 +14,37 @@ import ( lru "github.com/hashicorp/golang-lru/v2" json "github.com/nspcc-dev/go-ordered-json" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/limits" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/stateroot" - "github.com/nspcc-dev/neo-go/pkg/core/statesync" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/limits" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/stateroot" + "github.com/tutus-one/tutus-chain/pkg/core/statesync" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "go.uber.org/zap" ) diff --git a/pkg/core/blockchain_core_test.go b/pkg/core/blockchain_core_test.go index 0743f29..036e193 100644 --- a/pkg/core/blockchain_core_test.go +++ b/pkg/core/blockchain_core_test.go @@ -9,18 +9,18 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/chaindump" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/chaindump" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" diff --git a/pkg/core/blockchain_neotest_test.go b/pkg/core/blockchain_neotest_test.go index 3c49c1e..cc0189f 100644 --- a/pkg/core/blockchain_neotest_test.go +++ b/pkg/core/blockchain_neotest_test.go @@ -11,44 +11,44 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/basicchain" - "github.com/nspcc-dev/neo-go/internal/contracts" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeprices" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/basicchain" + "github.com/tutus-one/tutus-chain/internal/contracts" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeprices" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -1007,8 +1007,8 @@ func TestBlockchain_IsTxStillRelevant(t *testing.T) { t.Run("contract witness check fails", func(t *testing.T) { src := fmt.Sprintf(`package verify import ( - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/lib/address" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/lib/address" ) func Verify() bool { addr := address.ToHash160("`+address.Uint160ToString(e.NativeHash(t, nativenames.Ledger))+`") @@ -2563,7 +2563,7 @@ func TestBlockchain_Bug1728(t *testing.T) { managementInvoker := e.ValidatorInvoker(e.NativeHash(t, nativenames.Management)) src := `package example - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func init() { if true { } else { } } func _deploy(_ any, isUpdate bool) { runtime.Log("Deploy") @@ -2890,7 +2890,7 @@ func TestEngineLimits(t *testing.T) { args, _ := strings.CutSuffix(strings.Repeat(`"", `, eArgsCount), `, `) src := fmt.Sprintf(`package test import ( - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // args is an array of LargeEvent parameters containing 500 empty strings. var args = []any{%s}; @@ -2971,7 +2971,7 @@ func TestRuntimeNotifyRefcounting(t *testing.T) { args, _ := strings.CutSuffix(strings.Repeat(`"", `, eArgsCount), `, `) src := fmt.Sprintf(`package test import ( - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // args is an array of LargeEvent parameters containing 500 empty strings. var args = []any{%s}; diff --git a/pkg/core/chaindump/dump.go b/pkg/core/chaindump/dump.go index ee28448..a208228 100644 --- a/pkg/core/chaindump/dump.go +++ b/pkg/core/chaindump/dump.go @@ -3,10 +3,10 @@ package chaindump import ( "fmt" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // DumperRestorer is an interface to get/add blocks from/to. diff --git a/pkg/core/chaindump/dump_test.go b/pkg/core/chaindump/dump_test.go index 56c5b2f..ad38ead 100644 --- a/pkg/core/chaindump/dump_test.go +++ b/pkg/core/chaindump/dump_test.go @@ -4,13 +4,13 @@ import ( "errors" "testing" - "github.com/nspcc-dev/neo-go/internal/basicchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/chaindump" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/internal/basicchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/chaindump" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/custom_native_test.go b/pkg/core/custom_native_test.go index 4a03aac..c1f772a 100644 --- a/pkg/core/custom_native_test.go +++ b/pkg/core/custom_native_test.go @@ -4,22 +4,22 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) var ( diff --git a/pkg/core/dao/dao.go b/pkg/core/dao/dao.go index ec90dc4..1c472db 100644 --- a/pkg/core/dao/dao.go +++ b/pkg/core/dao/dao.go @@ -12,17 +12,17 @@ import ( "math/big" "sync" - "github.com/nspcc-dev/neo-go/pkg/config/limits" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config/limits" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // HasTransaction errors. diff --git a/pkg/core/dao/dao_test.go b/pkg/core/dao/dao_test.go index 2d1232f..f0c076b 100644 --- a/pkg/core/dao/dao_test.go +++ b/pkg/core/dao/dao_test.go @@ -4,16 +4,16 @@ import ( "encoding/binary" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/fee/calculate.go b/pkg/core/fee/calculate.go index fd807be..597a67c 100644 --- a/pkg/core/fee/calculate.go +++ b/pkg/core/fee/calculate.go @@ -1,11 +1,11 @@ package fee import ( - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) // ECDSAVerifyPrice is a gas price of a single verification. diff --git a/pkg/core/fee/opcode.go b/pkg/core/fee/opcode.go index 5424999..2e74b9d 100644 --- a/pkg/core/fee/opcode.go +++ b/pkg/core/fee/opcode.go @@ -1,7 +1,7 @@ package fee import ( - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) // Opcode returns the deployment coefficients of the specified opcodes. diff --git a/pkg/core/fee/opcode_test.go b/pkg/core/fee/opcode_test.go index b4adf7c..fdffd57 100644 --- a/pkg/core/fee/opcode_test.go +++ b/pkg/core/fee/opcode_test.go @@ -3,7 +3,7 @@ package fee import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) const feeFactor = 30 diff --git a/pkg/core/headerhashes.go b/pkg/core/headerhashes.go index 7d16ea5..d5fe648 100644 --- a/pkg/core/headerhashes.go +++ b/pkg/core/headerhashes.go @@ -6,10 +6,10 @@ import ( "sync" lru "github.com/hashicorp/golang-lru/v2" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/core/helper_test.go b/pkg/core/helper_test.go index 6d541d0..a1689d0 100644 --- a/pkg/core/helper_test.go +++ b/pkg/core/helper_test.go @@ -4,13 +4,13 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" "go.uber.org/zap" "go.uber.org/zap/zaptest" diff --git a/pkg/core/interop/context.go b/pkg/core/interop/context.go index c11239a..6854ece 100644 --- a/pkg/core/interop/context.go +++ b/pkg/core/interop/context.go @@ -8,25 +8,25 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "go.uber.org/zap" ) diff --git a/pkg/core/interop/context_test.go b/pkg/core/interop/context_test.go index 0652b8b..9f5c967 100644 --- a/pkg/core/interop/context_test.go +++ b/pkg/core/interop/context_test.go @@ -3,9 +3,9 @@ package interop import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/interop/contract/account.go b/pkg/core/interop/contract/account.go index 2a74702..48f6d89 100644 --- a/pkg/core/interop/contract/account.go +++ b/pkg/core/interop/contract/account.go @@ -5,13 +5,13 @@ import ( "errors" "math" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // CreateMultisigAccount calculates multisig contract scripthash for a diff --git a/pkg/core/interop/contract/account_test.go b/pkg/core/interop/contract/account_test.go index 2817ae2..c4d6426 100644 --- a/pkg/core/interop/contract/account_test.go +++ b/pkg/core/interop/contract/account_test.go @@ -6,17 +6,17 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/interop/contract/call.go b/pkg/core/interop/contract/call.go index 8932a6e..b6467d9 100644 --- a/pkg/core/interop/contract/call.go +++ b/pkg/core/interop/contract/call.go @@ -7,16 +7,16 @@ import ( "math/big" "strings" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // LoadToken calls method specified by the token id. diff --git a/pkg/core/interop/contract/call_test.go b/pkg/core/interop/contract/call_test.go index 3a157fd..1c21fea 100644 --- a/pkg/core/interop/contract/call_test.go +++ b/pkg/core/interop/contract/call_test.go @@ -8,25 +8,25 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/contracts" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/contracts" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -203,9 +203,9 @@ func TestSystemContractCall_Permissions(t *testing.T) { // calls contract's A after B's update. srcB := `package contractB import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" ) func CallRetOne() int { res := contract.Call(interop.Hash160{` + hashAStr + `}, "retOne", contract.All).(int) @@ -319,11 +319,11 @@ func TestSnapshotIsolation_Exceptions(t *testing.T) { // Contract A puts value in the storage, emits notifications and panics. srcA := `package contractA import ( - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) - func DoAndPanic(key, value []byte, nNtf int) int { // avoid https://github.com/nspcc-dev/neo-go/issues/2509 + func DoAndPanic(key, value []byte, nNtf int) int { // avoid https://github.com/tutus-one/tutus-chain/issues/2509 c := storage.GetContext() storage.Put(c, key, value) for i := 0; i < nNtf; i++ { @@ -378,11 +378,11 @@ func TestSnapshotIsolation_Exceptions(t *testing.T) { // and storage changes are available from different contexts. srcB := `package contractB import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/util" ) var caughtKey = []byte("caught") func DoAndCatch(shouldRecover bool, keyA, valueA, keyB, valueB []byte, nNtfA, nNtfB1, nNtfB2 int) { @@ -469,8 +469,8 @@ func TestSnapshotIsolation_NestedContextException(t *testing.T) { srcA := `package contractA import ( - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) func CallA() { runtime.Notify("Calling A") @@ -533,9 +533,9 @@ func TestSnapshotIsolation_CallToItself(t *testing.T) { // Contract A calls method of self and throws if storage changes made by Do are unavailable after call to it. srcA := `package contractA import ( - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) var key = []byte("key") func Test() { @@ -577,7 +577,7 @@ func TestSnapshotIsolation_CallToItself(t *testing.T) { ctrInvoker.Invoke(t, stackitem.Null{}, "check") } -// This test is written to check https://github.com/nspcc-dev/neo-go/issues/2509 +// This test is written to check https://github.com/tutus-one/tutus-chain/issues/2509 // and https://github.com/neo-project/neo/pull/2745#discussion_r879167180. func TestRET_after_FINALLY_PanicInsideVoidMethod(t *testing.T) { bc, acc := chain.NewSingle(t) @@ -608,8 +608,8 @@ func TestRET_after_FINALLY_PanicInsideVoidMethod(t *testing.T) { // Contract B calls A and catches the exception thrown by A. srcB := `package contractB import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" ) func Catch() { defer func() { @@ -643,7 +643,7 @@ func TestRET_after_FINALLY_CallNonVoidAfterVoidMethod(t *testing.T) { // Contract A has two methods. One of them has no return value, and the other has it. srcA := `package contractA - import "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + import "github.com/tutus-one/tutus-chain/pkg/interop/runtime" func NoRet() { runtime.Log("no ret") } @@ -668,9 +668,9 @@ func TestRET_after_FINALLY_CallNonVoidAfterVoidMethod(t *testing.T) { // Contract B calls A in try-catch block. srcB := `package contractB import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/util" ) func CallAInTryCatch() { defer func() { diff --git a/pkg/core/interop/crypto/ecdsa.go b/pkg/core/interop/crypto/ecdsa.go index edd53f4..05db841 100644 --- a/pkg/core/interop/crypto/ecdsa.go +++ b/pkg/core/interop/crypto/ecdsa.go @@ -5,12 +5,12 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // ECDSASecp256r1CheckMultisig checks multiple ECDSA signatures at once using diff --git a/pkg/core/interop/crypto/ecdsa_test.go b/pkg/core/interop/crypto/ecdsa_test.go index 18e2ca0..ab4df19 100644 --- a/pkg/core/interop/crypto/ecdsa_test.go +++ b/pkg/core/interop/crypto/ecdsa_test.go @@ -5,21 +5,21 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/internal/fakechain" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/fakechain" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/interop/crypto/interop.go b/pkg/core/interop/crypto/interop.go index 93ee72e..c2a00e0 100644 --- a/pkg/core/interop/crypto/interop.go +++ b/pkg/core/interop/crypto/interop.go @@ -1,8 +1,8 @@ package crypto import ( - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" ) var ( diff --git a/pkg/core/interop/gas_price.go b/pkg/core/interop/gas_price.go index 0a4bf92..924c18e 100644 --- a/pkg/core/interop/gas_price.go +++ b/pkg/core/interop/gas_price.go @@ -1,8 +1,8 @@ package interop import ( - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) // GetPrice returns a price for executing op with the provided parameter in diff --git a/pkg/core/interop/iterator/interop.go b/pkg/core/interop/iterator/interop.go index 44d770e..a0da0ce 100644 --- a/pkg/core/interop/iterator/interop.go +++ b/pkg/core/interop/iterator/interop.go @@ -1,8 +1,8 @@ package iterator import ( - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) type iterator interface { diff --git a/pkg/core/interop/iterator/interop_test.go b/pkg/core/interop/iterator/interop_test.go index f8d025b..941c620 100644 --- a/pkg/core/interop/iterator/interop_test.go +++ b/pkg/core/interop/iterator/interop_test.go @@ -4,9 +4,9 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/interop/runtime/engine.go b/pkg/core/interop/runtime/engine.go index dd4e75a..88b4ade 100644 --- a/pkg/core/interop/runtime/engine.go +++ b/pkg/core/interop/runtime/engine.go @@ -5,12 +5,12 @@ import ( "fmt" "math/big" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "go.uber.org/zap" ) diff --git a/pkg/core/interop/runtime/engine_test.go b/pkg/core/interop/runtime/engine_test.go index e1fb12a..076ec96 100644 --- a/pkg/core/interop/runtime/engine_test.go +++ b/pkg/core/interop/runtime/engine_test.go @@ -5,16 +5,16 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" "go.uber.org/zap" "go.uber.org/zap/zapcore" diff --git a/pkg/core/interop/runtime/ext_test.go b/pkg/core/interop/runtime/ext_test.go index e6bc150..47fa20a 100644 --- a/pkg/core/interop/runtime/ext_test.go +++ b/pkg/core/interop/runtime/ext_test.go @@ -8,35 +8,35 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/contracts" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/contracts" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/interop/runtime/util.go b/pkg/core/interop/runtime/util.go index 0273c25..abd755a 100644 --- a/pkg/core/interop/runtime/util.go +++ b/pkg/core/interop/runtime/util.go @@ -6,13 +6,13 @@ import ( "math/big" "slices" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/twmb/murmur3" ) diff --git a/pkg/core/interop/runtime/util_test.go b/pkg/core/interop/runtime/util_test.go index f5bcac6..3d13749 100644 --- a/pkg/core/interop/runtime/util_test.go +++ b/pkg/core/interop/runtime/util_test.go @@ -4,13 +4,13 @@ import ( "encoding/hex" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/interop/runtime/witness.go b/pkg/core/interop/runtime/witness.go index 783e12a..6c5df93 100644 --- a/pkg/core/interop/runtime/witness.go +++ b/pkg/core/interop/runtime/witness.go @@ -6,14 +6,14 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // CheckHashedWitness checks the given hash against the current list of script hashes diff --git a/pkg/core/interop/storage/basic.go b/pkg/core/interop/storage/basic.go index 1c3b313..90c6791 100644 --- a/pkg/core/interop/storage/basic.go +++ b/pkg/core/interop/storage/basic.go @@ -4,9 +4,9 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/config/limits" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config/limits" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) var ( diff --git a/pkg/core/interop/storage/bench_test.go b/pkg/core/interop/storage/bench_test.go index b9de94a..3ea4b2c 100644 --- a/pkg/core/interop/storage/bench_test.go +++ b/pkg/core/interop/storage/bench_test.go @@ -4,12 +4,12 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/core/interop/iterator" - istorage "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/core/interop/iterator" + istorage "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/interop/storage/find.go b/pkg/core/interop/storage/find.go index 0109a02..87908f9 100644 --- a/pkg/core/interop/storage/find.go +++ b/pkg/core/interop/storage/find.go @@ -6,9 +6,9 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Storage iterator options. diff --git a/pkg/core/interop/storage/interops_test.go b/pkg/core/interop/storage/interops_test.go index 0ae492c..8cc6e44 100644 --- a/pkg/core/interop/storage/interops_test.go +++ b/pkg/core/interop/storage/interops_test.go @@ -5,8 +5,8 @@ import ( "runtime" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/interop/storage/storage_test.go b/pkg/core/interop/storage/storage_test.go index 4688cbb..ba6eb7d 100644 --- a/pkg/core/interop/storage/storage_test.go +++ b/pkg/core/interop/storage/storage_test.go @@ -5,26 +5,26 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/limits" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/iterator" - istorage "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/limits" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/iterator" + istorage "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -348,8 +348,8 @@ func TestStorage_LocalInteropAPI(t *testing.T) { src := `package foo import ( - "github.com/nspcc-dev/neo-go/pkg/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" ) func LocalPut() { diff --git a/pkg/core/interops.go b/pkg/core/interops.go index f5d589b..21b780a 100644 --- a/pkg/core/interops.go +++ b/pkg/core/interops.go @@ -8,18 +8,18 @@ package core */ import ( - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/core/interop/crypto" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/core/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/core/interop/crypto" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/core/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/vm" ) // SpawnVM returns a VM with script getter and interop functions set diff --git a/pkg/core/mempool/bench_test.go b/pkg/core/mempool/bench_test.go index f6332cb..61f4c69 100644 --- a/pkg/core/mempool/bench_test.go +++ b/pkg/core/mempool/bench_test.go @@ -3,8 +3,8 @@ package mempool import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/core/mempool/feer.go b/pkg/core/mempool/feer.go index 67ddfb8..900f3cc 100644 --- a/pkg/core/mempool/feer.go +++ b/pkg/core/mempool/feer.go @@ -3,7 +3,7 @@ package mempool import ( "math/big" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Feer is an interface that abstracts the implementation of the fee calculation. diff --git a/pkg/core/mempool/mem_pool.go b/pkg/core/mempool/mem_pool.go index ccf93eb..37a84d9 100644 --- a/pkg/core/mempool/mem_pool.go +++ b/pkg/core/mempool/mem_pool.go @@ -9,9 +9,9 @@ import ( "sync/atomic" "github.com/holiman/uint256" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/util" ) var ( diff --git a/pkg/core/mempool/mem_pool_test.go b/pkg/core/mempool/mem_pool_test.go index 77296be..909391c 100644 --- a/pkg/core/mempool/mem_pool_test.go +++ b/pkg/core/mempool/mem_pool_test.go @@ -9,10 +9,10 @@ import ( "time" "github.com/holiman/uint256" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/mempool/subscriptions.go b/pkg/core/mempool/subscriptions.go index 0188c19..1b88a58 100644 --- a/pkg/core/mempool/subscriptions.go +++ b/pkg/core/mempool/subscriptions.go @@ -1,6 +1,6 @@ package mempool -import "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" +import "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" // RunSubscriptions runs subscriptions goroutine if mempool subscriptions are enabled. // You should manually free the resources by calling StopSubscriptions on mempool shutdown. diff --git a/pkg/core/mempool/subscriptions_test.go b/pkg/core/mempool/subscriptions_test.go index a935cfe..c0fc40c 100644 --- a/pkg/core/mempool/subscriptions_test.go +++ b/pkg/core/mempool/subscriptions_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/mempoolevent/event.go b/pkg/core/mempoolevent/event.go index 85fc843..c389221 100644 --- a/pkg/core/mempoolevent/event.go +++ b/pkg/core/mempoolevent/event.go @@ -4,7 +4,7 @@ import ( "encoding/json" "errors" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" ) // Type represents mempool event type. diff --git a/pkg/core/mpt/base.go b/pkg/core/mpt/base.go index 5a8ab05..994fb90 100644 --- a/pkg/core/mpt/base.go +++ b/pkg/core/mpt/base.go @@ -3,9 +3,9 @@ package mpt import ( "fmt" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // BaseNode implements basic things every node needs like caching hash and diff --git a/pkg/core/mpt/batch_test.go b/pkg/core/mpt/batch_test.go index bb71919..6ea7e62 100644 --- a/pkg/core/mpt/batch_test.go +++ b/pkg/core/mpt/batch_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/storage" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/mpt/bench_test.go b/pkg/core/mpt/bench_test.go index 2a95d36..ad8dd60 100644 --- a/pkg/core/mpt/bench_test.go +++ b/pkg/core/mpt/bench_test.go @@ -3,7 +3,7 @@ package mpt import ( "testing" - "github.com/nspcc-dev/neo-go/internal/random" + "github.com/tutus-one/tutus-chain/internal/random" ) func benchmarkBytes(b *testing.B, n Node) { diff --git a/pkg/core/mpt/billet.go b/pkg/core/mpt/billet.go index d0bc65f..ea73420 100644 --- a/pkg/core/mpt/billet.go +++ b/pkg/core/mpt/billet.go @@ -6,9 +6,9 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // DummySTTempStoragePrefix is a dummy contract storage item prefix that may be diff --git a/pkg/core/mpt/billet_test.go b/pkg/core/mpt/billet_test.go index 4946926..b4bf93f 100644 --- a/pkg/core/mpt/billet_test.go +++ b/pkg/core/mpt/billet_test.go @@ -4,9 +4,9 @@ import ( "encoding/binary" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/mpt/branch.go b/pkg/core/mpt/branch.go index 17be68e..744630e 100644 --- a/pkg/core/mpt/branch.go +++ b/pkg/core/mpt/branch.go @@ -4,8 +4,8 @@ import ( "encoding/json" "errors" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/core/mpt/empty.go b/pkg/core/mpt/empty.go index 7a25b0f..2030605 100644 --- a/pkg/core/mpt/empty.go +++ b/pkg/core/mpt/empty.go @@ -4,8 +4,8 @@ import ( "encoding/json" "errors" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // EmptyNode represents an empty node. diff --git a/pkg/core/mpt/extension.go b/pkg/core/mpt/extension.go index c752e8a..24d3da5 100644 --- a/pkg/core/mpt/extension.go +++ b/pkg/core/mpt/extension.go @@ -6,9 +6,9 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/config/limits" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config/limits" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/core/mpt/hash.go b/pkg/core/mpt/hash.go index 3bc6648..5f6872a 100644 --- a/pkg/core/mpt/hash.go +++ b/pkg/core/mpt/hash.go @@ -3,8 +3,8 @@ package mpt import ( "errors" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // HashNode represents an MPT's hash node. diff --git a/pkg/core/mpt/helpers.go b/pkg/core/mpt/helpers.go index 340bfa4..fa68d4b 100644 --- a/pkg/core/mpt/helpers.go +++ b/pkg/core/mpt/helpers.go @@ -3,7 +3,7 @@ package mpt import ( "slices" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // lcp returns the longest common prefix of a and b. diff --git a/pkg/core/mpt/helpers_test.go b/pkg/core/mpt/helpers_test.go index 28181dc..3e59cbd 100644 --- a/pkg/core/mpt/helpers_test.go +++ b/pkg/core/mpt/helpers_test.go @@ -3,7 +3,7 @@ package mpt import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/mpt/leaf.go b/pkg/core/mpt/leaf.go index 0da66f2..7522132 100644 --- a/pkg/core/mpt/leaf.go +++ b/pkg/core/mpt/leaf.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/config/limits" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config/limits" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // MaxValueLength is the max length of a leaf node value. diff --git a/pkg/core/mpt/node.go b/pkg/core/mpt/node.go index a925b3d..defab46 100644 --- a/pkg/core/mpt/node.go +++ b/pkg/core/mpt/node.go @@ -5,8 +5,8 @@ import ( "encoding/json" "errors" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // NodeType represents a node type.. diff --git a/pkg/core/mpt/node_test.go b/pkg/core/mpt/node_test.go index 60977a4..4f24775 100644 --- a/pkg/core/mpt/node_test.go +++ b/pkg/core/mpt/node_test.go @@ -4,9 +4,9 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/io" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/mpt/proof.go b/pkg/core/mpt/proof.go index 76b4901..1654f79 100644 --- a/pkg/core/mpt/proof.go +++ b/pkg/core/mpt/proof.go @@ -4,9 +4,9 @@ import ( "bytes" "errors" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/util" ) // GetProof returns a proof that the key belongs to t. diff --git a/pkg/core/mpt/trie.go b/pkg/core/mpt/trie.go index d8b9a3a..0f6e47c 100644 --- a/pkg/core/mpt/trie.go +++ b/pkg/core/mpt/trie.go @@ -7,9 +7,9 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // TrieMode is the storage mode of a trie, it affects the DB scheme. diff --git a/pkg/core/mpt/trie_store.go b/pkg/core/mpt/trie_store.go index fd8c07d..50ae55a 100644 --- a/pkg/core/mpt/trie_store.go +++ b/pkg/core/mpt/trie_store.go @@ -6,8 +6,8 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/util" ) // TrieStore is an MPT-based storage implementation for storing and retrieving diff --git a/pkg/core/mpt/trie_store_test.go b/pkg/core/mpt/trie_store_test.go index ed43a61..11e8aef 100644 --- a/pkg/core/mpt/trie_store_test.go +++ b/pkg/core/mpt/trie_store_test.go @@ -5,7 +5,7 @@ import ( "errors" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/storage" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/mpt/trie_test.go b/pkg/core/mpt/trie_test.go index 3753f38..c6bd67b 100644 --- a/pkg/core/mpt/trie_test.go +++ b/pkg/core/mpt/trie_test.go @@ -3,8 +3,8 @@ package mpt import ( "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/core/storage" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/core/storage" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/compatibility_test.go b/pkg/core/native/compatibility_test.go index 5bf2b87..91ccfc2 100644 --- a/pkg/core/native/compatibility_test.go +++ b/pkg/core/native/compatibility_test.go @@ -4,7 +4,7 @@ import ( "testing" "unicode" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/contract.go b/pkg/core/native/contract.go index 5e2dfb4..fb9fc44 100644 --- a/pkg/core/native/contract.go +++ b/pkg/core/native/contract.go @@ -4,18 +4,18 @@ import ( "math/big" "strings" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" ) // Native contract interfaces sufficient for Blockchain functioning and diff --git a/pkg/core/native/contract_test.go b/pkg/core/native/contract_test.go index 515574b..f5e5604 100644 --- a/pkg/core/native/contract_test.go +++ b/pkg/core/native/contract_test.go @@ -3,7 +3,7 @@ package native import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/crypto.go b/pkg/core/native/crypto.go index b2659ef..015cf08 100644 --- a/pkg/core/native/crypto.go +++ b/pkg/core/native/crypto.go @@ -11,18 +11,18 @@ import ( "github.com/consensys/gnark-crypto/ecc/bls12-381/fr" "github.com/decred/dcrd/dcrec/secp256k1/v4" "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/twmb/murmur3" "golang.org/x/crypto/sha3" ) @@ -369,7 +369,7 @@ func scalarFromBytes(bytes []byte, neg bool) (*fr.Element, error) { } // The input bytes are in the LE form, so we can't use fr.Element.SetBytesCanonical as far // as it accepts BE. Confirmed by https://github.com/neo-project/neo/issues/2647#issuecomment-1129849870 - // and by https://github.com/nspcc-dev/neo-go/pull/3043#issuecomment-1733424840. + // and by https://github.com/tutus-one/tutus-chain/pull/3043#issuecomment-1733424840. v, err := fr.LittleEndian.Element((*[fr.Bytes]byte)(bytes)) if err != nil { return nil, fmt.Errorf("invalid multiplier: failed to decode scalar: %w", err) diff --git a/pkg/core/native/crypto_blspoints.go b/pkg/core/native/crypto_blspoints.go index b744962..e3f52ff 100644 --- a/pkg/core/native/crypto_blspoints.go +++ b/pkg/core/native/crypto_blspoints.go @@ -6,7 +6,7 @@ import ( "math/big" bls12381 "github.com/consensys/gnark-crypto/ecc/bls12-381" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // blsPoint is a wrapper around bls12381 point types that must be used as diff --git a/pkg/core/native/crypto_test.go b/pkg/core/native/crypto_test.go index 9c4ff3a..348119b 100644 --- a/pkg/core/native/crypto_test.go +++ b/pkg/core/native/crypto_test.go @@ -10,11 +10,11 @@ import ( "testing" "github.com/consensys/gnark-crypto/ecc/bls12-381/fr" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/designate.go b/pkg/core/native/designate.go index 2c374d9..86bc491 100644 --- a/pkg/core/native/designate.go +++ b/pkg/core/native/designate.go @@ -9,22 +9,22 @@ import ( "slices" "sync/atomic" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Designate represents a designation contract. diff --git a/pkg/core/native/interop.go b/pkg/core/native/interop.go index a749312..56dfb0b 100644 --- a/pkg/core/native/interop.go +++ b/pkg/core/native/interop.go @@ -4,12 +4,12 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Call calls the specified native contract method. diff --git a/pkg/core/native/invocation_test.go b/pkg/core/native/invocation_test.go index ae3ef02..e9b3448 100644 --- a/pkg/core/native/invocation_test.go +++ b/pkg/core/native/invocation_test.go @@ -7,20 +7,20 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/contracts" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/contracts" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/ledger.go b/pkg/core/native/ledger.go index 95a1cad..cf612f8 100644 --- a/pkg/core/native/ledger.go +++ b/pkg/core/native/ledger.go @@ -4,18 +4,18 @@ import ( "fmt" "math" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" ) // Ledger provides an interface to blocks/transactions storage for smart diff --git a/pkg/core/native/management.go b/pkg/core/native/management.go index da8b92b..0032be7 100644 --- a/pkg/core/native/management.go +++ b/pkg/core/native/management.go @@ -11,25 +11,25 @@ import ( "math/big" "unicode/utf8" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/contract" - istorage "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/util/bitfield" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/contract" + istorage "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util/bitfield" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Management is a contract-managing native contract. diff --git a/pkg/core/native/management_neotest_test.go b/pkg/core/native/management_neotest_test.go index c29e19e..c743366 100644 --- a/pkg/core/native/management_neotest_test.go +++ b/pkg/core/native/management_neotest_test.go @@ -4,18 +4,18 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/internal/basicchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/basicchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/management_test.go b/pkg/core/native/management_test.go index 0bd8f54..93c26fb 100644 --- a/pkg/core/native/management_test.go +++ b/pkg/core/native/management_test.go @@ -4,17 +4,17 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/native_gas.go b/pkg/core/native/native_gas.go index a885065..666b4db 100644 --- a/pkg/core/native/native_gas.go +++ b/pkg/core/native/native_gas.go @@ -4,17 +4,17 @@ import ( "errors" "math/big" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" ) // GAS represents GAS native contract. diff --git a/pkg/core/native/native_neo.go b/pkg/core/native/native_neo.go index 8ab53f3..2df47e2 100644 --- a/pkg/core/native/native_neo.go +++ b/pkg/core/native/native_neo.go @@ -11,25 +11,25 @@ import ( "math/big" "slices" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/runtime" - istorage "github.com/nspcc-dev/neo-go/pkg/core/interop/storage" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/runtime" + istorage "github.com/tutus-one/tutus-chain/pkg/core/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // NEO represents NEO native contract. diff --git a/pkg/core/native/native_neo_candidate.go b/pkg/core/native/native_neo_candidate.go index 068d6dd..75f571c 100644 --- a/pkg/core/native/native_neo_candidate.go +++ b/pkg/core/native/native_neo_candidate.go @@ -3,7 +3,7 @@ package native import ( "math/big" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) type candidate struct { diff --git a/pkg/core/native/native_neo_test.go b/pkg/core/native/native_neo_test.go index ebeb307..13d55ef 100644 --- a/pkg/core/native/native_neo_test.go +++ b/pkg/core/native/native_neo_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" ) func TestCandidate_Bytes(t *testing.T) { diff --git a/pkg/core/native/native_nep17.go b/pkg/core/native/native_nep17.go index dd0c9ef..ae556a3 100644 --- a/pkg/core/native/native_nep17.go +++ b/pkg/core/native/native_nep17.go @@ -6,18 +6,18 @@ import ( "math" "math/big" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/core/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/core/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // prefixAccount is the standard prefix used to store account data. diff --git a/pkg/core/native/native_test/common_test.go b/pkg/core/native/native_test/common_test.go index 7a80255..647bcfe 100644 --- a/pkg/core/native/native_test/common_test.go +++ b/pkg/core/native/native_test/common_test.go @@ -4,18 +4,18 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/native_test/cryptolib_test.go b/pkg/core/native/native_test/cryptolib_test.go index 327dc2b..2398a37 100644 --- a/pkg/core/native/native_test/cryptolib_test.go +++ b/pkg/core/native/native_test/cryptolib_test.go @@ -10,16 +10,16 @@ import ( bls12381 "github.com/consensys/gnark-crypto/ecc/bls12-381" "github.com/consensys/gnark-crypto/ecc/bls12-381/fr" "github.com/decred/dcrd/dcrec/secp256k1/v4" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/native_test/cryptolib_verification_test.go b/pkg/core/native/native_test/cryptolib_verification_test.go index 8d25b9b..20c30be 100644 --- a/pkg/core/native/native_test/cryptolib_verification_test.go +++ b/pkg/core/native/native_test/cryptolib_verification_test.go @@ -5,19 +5,19 @@ import ( "slices" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/native_test/designate_test.go b/pkg/core/native/native_test/designate_test.go index a6d13ff..4ea8e91 100644 --- a/pkg/core/native/native_test/designate_test.go +++ b/pkg/core/native/native_test/designate_test.go @@ -4,19 +4,19 @@ import ( "slices" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/native_test/gas_test.go b/pkg/core/native/native_test/gas_test.go index 1889a50..43ebfda 100644 --- a/pkg/core/native/native_test/gas_test.go +++ b/pkg/core/native/native_test/gas_test.go @@ -4,16 +4,16 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/native_test/helpers/policyhelper/policyhelper.yml b/pkg/core/native/native_test/helpers/policyhelper/policyhelper.yml index a7882e0..d6ffb53 100644 --- a/pkg/core/native/native_test/helpers/policyhelper/policyhelper.yml +++ b/pkg/core/native/native_test/helpers/policyhelper/policyhelper.yml @@ -1,4 +1,4 @@ name: "Policy helper contract" -sourceurl: https://github.com/nspcc-dev/neo-go +sourceurl: https://github.com/tutus-one/tutus-chain supportedstandards: [] safemethods: ["do"] diff --git a/pkg/core/native/native_test/ledger_test.go b/pkg/core/native/native_test/ledger_test.go index 5207b98..610feef 100644 --- a/pkg/core/native/native_test/ledger_test.go +++ b/pkg/core/native/native_test/ledger_test.go @@ -6,16 +6,16 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" ) @@ -254,9 +254,9 @@ func TestLedger_GetTransactionSignersInteropAPI(t *testing.T) { // After that ensure interop API allows to retrieve signer with CalledByEntry rule-based scope. src := `package callledger import ( - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/util" ) func CallLedger(accessValue bool) int { signers := ledger.GetTransactionSigners(interop.Hash256{` + hashStr.String() + `}) diff --git a/pkg/core/native/native_test/management_test.go b/pkg/core/native/native_test/management_test.go index e138364..41feac5 100644 --- a/pkg/core/native/native_test/management_test.go +++ b/pkg/core/native/native_test/management_test.go @@ -9,32 +9,32 @@ import ( "testing" ojson "github.com/nspcc-dev/go-ordered-json" - "github.com/nspcc-dev/neo-go/internal/contracts" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/chaindump" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/internal/contracts" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/chaindump" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" ) @@ -1188,7 +1188,7 @@ func TestManagement_WhitelistedUpdate(t *testing.T) { m := e.CommitteeInvoker(nativehashes.ContractManagement) p := e.CommitteeInvoker(nativehashes.PolicyContract) src := `package free - import "github.com/nspcc-dev/neo-go/pkg/interop/native/management" + import "github.com/tutus-one/tutus-chain/pkg/interop/native/management" func FreeInc(i int) int { i++ return i diff --git a/pkg/core/native/native_test/neo_test.go b/pkg/core/native/native_test/neo_test.go index d3e4eda..b29b9b5 100644 --- a/pkg/core/native/native_test/neo_test.go +++ b/pkg/core/native/native_test/neo_test.go @@ -10,27 +10,27 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/contracts" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/contracts" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -378,7 +378,7 @@ func TestNEO_Vote(t *testing.T) { require.Equal(t, uint64(0), stateAfterUnvote.LastGasPerVote.Uint64()) } -// TestNEO_RecursiveGASMint is a test for https://github.com/nspcc-dev/neo-go/pull/2181. +// TestNEO_RecursiveGASMint is a test for https://github.com/tutus-one/tutus-chain/pull/2181. func TestNEO_RecursiveGASMint(t *testing.T) { neoCommitteeInvoker := newNeoCommitteeClient(t, 100_0000_0000) neoValidatorInvoker := neoCommitteeInvoker.WithSigners(neoCommitteeInvoker.Validator) @@ -528,8 +528,8 @@ func TestNEO_GetAccountStateInteropAPI(t *testing.T) { } src := `package testaccountstate import ( - "github.com/nspcc-dev/neo-go/pkg/interop/native/neo" - "github.com/nspcc-dev/neo-go/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/native/neo" + "github.com/tutus-one/tutus-chain/pkg/interop" ) func GetLastGasPerVote() int { accState := neo.GetAccountState(interop.Hash160{` + hashAStr.String() + `}) @@ -724,7 +724,7 @@ func TestNEO_TransferZeroWithNonZeroBalance(t *testing.T) { }) } -// https://github.com/nspcc-dev/neo-go/issues/3190 +// https://github.com/tutus-one/tutus-chain/issues/3190 func TestNEO_TransferNonZeroWithZeroBalance(t *testing.T) { neoValidatorsInvoker := newNeoValidatorsClient(t) e := neoValidatorsInvoker.Executor diff --git a/pkg/core/native/native_test/notary_test.go b/pkg/core/native/native_test/notary_test.go index b5f45cd..0b9f623 100644 --- a/pkg/core/native/native_test/notary_test.go +++ b/pkg/core/native/native_test/notary_test.go @@ -6,20 +6,20 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/notary" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/notary" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -198,10 +198,10 @@ func TestNotary_MaliciousWithdrawal(t *testing.T) { // Deploy malicious contract and make Notary deposit for it. src := `package foo import ( - "github.com/nspcc-dev/neo-go/pkg/interop/native/notary" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/storage" + "github.com/tutus-one/tutus-chain/pkg/interop/native/notary" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/storage" ) const ( prefixMaxCallDepth = 0x01 diff --git a/pkg/core/native/native_test/oracle_test.go b/pkg/core/native/native_test/oracle_test.go index 2acbb77..7e3fe28 100644 --- a/pkg/core/native/native_test/oracle_test.go +++ b/pkg/core/native/native_test/oracle_test.go @@ -8,15 +8,15 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/contracts" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/contracts" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/native_test/policy_test.go b/pkg/core/native/native_test/policy_test.go index 8947e1a..580d763 100644 --- a/pkg/core/native/native_test/policy_test.go +++ b/pkg/core/native/native_test/policy_test.go @@ -8,25 +8,25 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) @@ -473,9 +473,9 @@ func TestPolicy_GetBlockedAccountsInteropAPI(t *testing.T) { src := `package testpolicy import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/native/policy" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/native/policy" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" ) func GetBlockedAccounts() []interop.Hash160 { i := policy.GetBlockedAccounts() @@ -532,7 +532,7 @@ func TestPolicy_ExecPicoFeeFactor_InteropAPI(t *testing.T) { p.Invoke(t, stackitem.Null{}, "setExecFeeFactor", 5) src := `package execfeefactor - import "github.com/nspcc-dev/neo-go/pkg/interop/native/policy" + import "github.com/tutus-one/tutus-chain/pkg/interop/native/policy" func GetFactor() int { return policy.GetExecFeeFactor() } @@ -654,9 +654,9 @@ func TestPolicy_WhitelistContractsInteropAPI(t *testing.T) { src := `package policywrapper import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/native/policy" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/native/policy" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" ) func SetWhitelistFeeContract(contract interop.Hash160, method string, argCnt int, fee int) { policy.SetWhitelistFeeContract(contract, method, argCnt, fee) diff --git a/pkg/core/native/native_test/std_test.go b/pkg/core/native/native_test/std_test.go index f824e52..fc0fdcd 100644 --- a/pkg/core/native/native_test/std_test.go +++ b/pkg/core/native/native_test/std_test.go @@ -4,12 +4,12 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) func TestStd_HexEncodeDecodeCompat(t *testing.T) { @@ -42,7 +42,7 @@ func TestStd_HexEncodeDecodeInteropAPI(t *testing.T) { src := `package teststd import ( - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" ) func Encode(args []any) string { return std.HexEncode(args[0].([]byte)) diff --git a/pkg/core/native/native_test/treasury_test.go b/pkg/core/native/native_test/treasury_test.go index fb86821..f73f2f9 100644 --- a/pkg/core/native/native_test/treasury_test.go +++ b/pkg/core/native/native_test/treasury_test.go @@ -4,11 +4,11 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" ) func newTreasuryClient(t *testing.T) *neotest.ContractInvoker { diff --git a/pkg/core/native/nativehashes/gen.go b/pkg/core/native/nativehashes/gen.go index 3609385..77334aa 100644 --- a/pkg/core/native/nativehashes/gen.go +++ b/pkg/core/native/nativehashes/gen.go @@ -10,8 +10,8 @@ import ( "os" "text/template" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" ) // srcTmpl is a nativehashes package template. @@ -22,7 +22,7 @@ const srcTmpl = `// Code generated by "go generate go run gen.go"; DO NOT EDIT. // package nativehashes contains hashes of all native contracts in their LE and Uint160 representation. package nativehashes -import "github.com/nspcc-dev/neo-go/pkg/util" +import "github.com/tutus-one/tutus-chain/pkg/util" // Hashes of all native contracts. var ( diff --git a/pkg/core/native/nativehashes/hashes.go b/pkg/core/native/nativehashes/hashes.go index 8df62cf..321c171 100644 --- a/pkg/core/native/nativehashes/hashes.go +++ b/pkg/core/native/nativehashes/hashes.go @@ -5,7 +5,7 @@ // package nativehashes contains hashes of all native contracts in their LE and Uint160 representation. package nativehashes -import "github.com/nspcc-dev/neo-go/pkg/util" +import "github.com/tutus-one/tutus-chain/pkg/util" // Hashes of all native contracts. var ( diff --git a/pkg/core/native/nativeids/gen.go b/pkg/core/native/nativeids/gen.go index 2604be1..d9fe0ad 100644 --- a/pkg/core/native/nativeids/gen.go +++ b/pkg/core/native/nativeids/gen.go @@ -10,7 +10,7 @@ import ( "strconv" "text/template" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" ) // srcTmpl is a nativeids package template. diff --git a/pkg/core/native/nativenames_test.go b/pkg/core/native/nativenames_test.go index 5d9e5f6..f92f22f 100644 --- a/pkg/core/native/nativenames_test.go +++ b/pkg/core/native/nativenames_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/neo_types.go b/pkg/core/native/neo_types.go index 66469f2..3a31bef 100644 --- a/pkg/core/native/neo_types.go +++ b/pkg/core/native/neo_types.go @@ -5,8 +5,8 @@ import ( "errors" "math/big" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // gasIndexPair contains the block index together with the generated gas per block. diff --git a/pkg/core/native/notary.go b/pkg/core/native/notary.go index f5f3581..bd8ab29 100644 --- a/pkg/core/native/notary.go +++ b/pkg/core/native/notary.go @@ -6,25 +6,25 @@ import ( "math" "math/big" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/core/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeprices" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/core/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeprices" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Notary represents Notary native contract. diff --git a/pkg/core/native/oracle.go b/pkg/core/native/oracle.go index 2820e76..b13e79d 100644 --- a/pkg/core/native/oracle.go +++ b/pkg/core/native/oracle.go @@ -10,24 +10,24 @@ import ( "strings" "sync/atomic" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Oracle represents Oracle native contract. diff --git a/pkg/core/native/oracle_types.go b/pkg/core/native/oracle_types.go index ae5c8c6..a6419a7 100644 --- a/pkg/core/native/oracle_types.go +++ b/pkg/core/native/oracle_types.go @@ -5,8 +5,8 @@ import ( "errors" "math/big" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // IDList is a list of oracle request IDs. diff --git a/pkg/core/native/oracle_types_test.go b/pkg/core/native/oracle_types_test.go index ac64015..ceaa130 100644 --- a/pkg/core/native/oracle_types_test.go +++ b/pkg/core/native/oracle_types_test.go @@ -3,9 +3,9 @@ package native import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/policy.go b/pkg/core/native/policy.go index 7cf4348..66b1bce 100644 --- a/pkg/core/native/policy.go +++ b/pkg/core/native/policy.go @@ -9,21 +9,21 @@ import ( "math/big" "slices" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) const ( diff --git a/pkg/core/native/policy_test.go b/pkg/core/native/policy_test.go index 3c07f82..f944174 100644 --- a/pkg/core/native/policy_test.go +++ b/pkg/core/native/policy_test.go @@ -4,15 +4,15 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/vm" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/std.go b/pkg/core/native/std.go index 5152270..cd8164b 100644 --- a/pkg/core/native/std.go +++ b/pkg/core/native/std.go @@ -12,17 +12,17 @@ import ( "unicode/utf8" "github.com/mr-tron/base58" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - base58neogo "github.com/nspcc-dev/neo-go/pkg/encoding/base58" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + base58neogo "github.com/tutus-one/tutus-chain/pkg/encoding/base58" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Std represents an StdLib contract. diff --git a/pkg/core/native/std_test.go b/pkg/core/native/std_test.go index bc3daeb..d069127 100644 --- a/pkg/core/native/std_test.go +++ b/pkg/core/native/std_test.go @@ -9,11 +9,11 @@ import ( "testing" "github.com/mr-tron/base58" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - base58neogo "github.com/nspcc-dev/neo-go/pkg/encoding/base58" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + base58neogo "github.com/tutus-one/tutus-chain/pkg/encoding/base58" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/native/treasury.go b/pkg/core/native/treasury.go index 0a1263e..f2e30ba 100644 --- a/pkg/core/native/treasury.go +++ b/pkg/core/native/treasury.go @@ -1,15 +1,15 @@ package native import ( - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativeids" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativeids" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Treasury represents Treasury native contract. diff --git a/pkg/core/native/util.go b/pkg/core/native/util.go index d151a13..08e5686 100644 --- a/pkg/core/native/util.go +++ b/pkg/core/native/util.go @@ -3,10 +3,10 @@ package native import ( "math/big" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) var intOne = big.NewInt(1) diff --git a/pkg/core/native_designate_test.go b/pkg/core/native_designate_test.go index f71b247..2abad74 100644 --- a/pkg/core/native_designate_test.go +++ b/pkg/core/native_designate_test.go @@ -3,14 +3,14 @@ package core import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/state/contract.go b/pkg/core/state/contract.go index c522ed3..8ecb3f3 100644 --- a/pkg/core/state/contract.go +++ b/pkg/core/state/contract.go @@ -5,14 +5,14 @@ import ( "math" "math/big" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Contract holds information about a smart contract in the Neo blockchain. diff --git a/pkg/core/state/contract_invocation.go b/pkg/core/state/contract_invocation.go index c6497e7..8b37eab 100644 --- a/pkg/core/state/contract_invocation.go +++ b/pkg/core/state/contract_invocation.go @@ -4,9 +4,9 @@ import ( "encoding/json" "fmt" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // ContractInvocation contains method call information. diff --git a/pkg/core/state/contract_invocation_test.go b/pkg/core/state/contract_invocation_test.go index eed8da3..8ae0c2b 100644 --- a/pkg/core/state/contract_invocation_test.go +++ b/pkg/core/state/contract_invocation_test.go @@ -4,9 +4,9 @@ import ( "testing" json "github.com/nspcc-dev/go-ordered-json" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/state/contract_test.go b/pkg/core/state/contract_test.go index 9e5b257..ad289cc 100644 --- a/pkg/core/state/contract_test.go +++ b/pkg/core/state/contract_test.go @@ -4,13 +4,13 @@ import ( "math" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/state/deposit.go b/pkg/core/state/deposit.go index 3330031..81b591b 100644 --- a/pkg/core/state/deposit.go +++ b/pkg/core/state/deposit.go @@ -6,7 +6,7 @@ import ( "math" "math/big" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Deposit represents GAS deposit from a Notary contract. diff --git a/pkg/core/state/deposit_test.go b/pkg/core/state/deposit_test.go index 0b19052..18c2114 100644 --- a/pkg/core/state/deposit_test.go +++ b/pkg/core/state/deposit_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/state/mpt_root.go b/pkg/core/state/mpt_root.go index 201cd1a..aa06f70 100644 --- a/pkg/core/state/mpt_root.go +++ b/pkg/core/state/mpt_root.go @@ -1,10 +1,10 @@ package state import ( - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // MPTRoot represents the storage state root together with sign info. diff --git a/pkg/core/state/mpt_root_test.go b/pkg/core/state/mpt_root_test.go index d7bb94b..7c8d64e 100644 --- a/pkg/core/state/mpt_root_test.go +++ b/pkg/core/state/mpt_root_test.go @@ -5,10 +5,10 @@ import ( "math/rand/v2" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/state/native_state.go b/pkg/core/state/native_state.go index 0822750..e09045e 100644 --- a/pkg/core/state/native_state.go +++ b/pkg/core/state/native_state.go @@ -6,9 +6,9 @@ import ( "fmt" "math/big" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // NEP17Balance represents the balance state of a NEP-17-token. diff --git a/pkg/core/state/native_state_test.go b/pkg/core/state/native_state_test.go index 3012dd5..d5cf2d2 100644 --- a/pkg/core/state/native_state_test.go +++ b/pkg/core/state/native_state_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/state/notification_event.go b/pkg/core/state/notification_event.go index 819ed38..9c7acd1 100644 --- a/pkg/core/state/notification_event.go +++ b/pkg/core/state/notification_event.go @@ -5,11 +5,11 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" ) const ( @@ -17,7 +17,7 @@ const ( // invocations (tracked by the VM) have been stored into the DB and thus whether they // should be deserialized upon retrieval. This approach saves 1 byte for all // applicationlogs over using WriteVarBytes. The original discussion can be found here - // https://github.com/nspcc-dev/neo-go/pull/3569#discussion_r1909357541 + // https://github.com/tutus-one/tutus-chain/pull/3569#discussion_r1909357541 saveInvocationsBit = 0x80 // cleanSaveInvocationsBitMask is used to remove the save invocations marker bit from // the VMState. diff --git a/pkg/core/state/notification_event_test.go b/pkg/core/state/notification_event_test.go index c401c33..41d362d 100644 --- a/pkg/core/state/notification_event_test.go +++ b/pkg/core/state/notification_event_test.go @@ -4,13 +4,13 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/state/oracle.go b/pkg/core/state/oracle.go index 6a3c29d..f961733 100644 --- a/pkg/core/state/oracle.go +++ b/pkg/core/state/oracle.go @@ -5,8 +5,8 @@ import ( "math/big" "unicode/utf8" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // OracleRequest represents an oracle request. diff --git a/pkg/core/state/oracle_test.go b/pkg/core/state/oracle_test.go index 07e2ce1..396dccf 100644 --- a/pkg/core/state/oracle_test.go +++ b/pkg/core/state/oracle_test.go @@ -4,9 +4,9 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/state/tokens.go b/pkg/core/state/tokens.go index 0e22f36..0114290 100644 --- a/pkg/core/state/tokens.go +++ b/pkg/core/state/tokens.go @@ -4,10 +4,10 @@ import ( "bytes" "math/big" - "github.com/nspcc-dev/neo-go/pkg/config/limits" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config/limits" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // TokenTransferBatchSize is the maximum number of entries for TokenTransferLog. diff --git a/pkg/core/state/tokens_test.go b/pkg/core/state/tokens_test.go index 2905e4f..5fe2fdd 100644 --- a/pkg/core/state/tokens_test.go +++ b/pkg/core/state/tokens_test.go @@ -5,9 +5,9 @@ import ( "math/rand/v2" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/state/validator.go b/pkg/core/state/validator.go index bdfba6e..414e5ee 100644 --- a/pkg/core/state/validator.go +++ b/pkg/core/state/validator.go @@ -3,7 +3,7 @@ package state import ( "math/big" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" ) // Validator holds the state of a validator (its key and votes balance). diff --git a/pkg/core/stateroot/callbacks.go b/pkg/core/stateroot/callbacks.go index 95fce21..fb5bca3 100644 --- a/pkg/core/stateroot/callbacks.go +++ b/pkg/core/stateroot/callbacks.go @@ -1,7 +1,7 @@ package stateroot import ( - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" ) // SetUpdateValidatorsCallback sets callback for sending signed root. diff --git a/pkg/core/stateroot/module.go b/pkg/core/stateroot/module.go index a63073d..43b16d0 100644 --- a/pkg/core/stateroot/module.go +++ b/pkg/core/stateroot/module.go @@ -9,16 +9,16 @@ import ( "sync/atomic" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" "go.uber.org/zap" ) diff --git a/pkg/core/stateroot/store.go b/pkg/core/stateroot/store.go index c334115..7b8d758 100644 --- a/pkg/core/stateroot/store.go +++ b/pkg/core/stateroot/store.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/io" ) var ( diff --git a/pkg/core/stateroot/validators.go b/pkg/core/stateroot/validators.go index 545c52d..948456a 100644 --- a/pkg/core/stateroot/validators.go +++ b/pkg/core/stateroot/validators.go @@ -1,9 +1,9 @@ package stateroot import ( - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" ) // UpdateStateValidators updates list of state validator keys. diff --git a/pkg/core/statesync/module.go b/pkg/core/statesync/module.go index 8d068aa..5330907 100644 --- a/pkg/core/statesync/module.go +++ b/pkg/core/statesync/module.go @@ -27,16 +27,16 @@ import ( "fmt" "sync" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/stateroot" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/stateroot" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" "go.uber.org/zap" ) diff --git a/pkg/core/statesync/module_test.go b/pkg/core/statesync/module_test.go index 3ef363f..72b3ecd 100644 --- a/pkg/core/statesync/module_test.go +++ b/pkg/core/statesync/module_test.go @@ -5,11 +5,11 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/internal/fakechain" - "github.com/nspcc-dev/neo-go/pkg/core/dao" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/fakechain" + "github.com/tutus-one/tutus-chain/pkg/core/dao" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" ) diff --git a/pkg/core/statesync/mptpool.go b/pkg/core/statesync/mptpool.go index 0ea22a6..b953aec 100644 --- a/pkg/core/statesync/mptpool.go +++ b/pkg/core/statesync/mptpool.go @@ -5,7 +5,7 @@ import ( "slices" "sync" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Pool stores unknown MPT nodes along with the corresponding paths (single node is diff --git a/pkg/core/statesync/mptpool_test.go b/pkg/core/statesync/mptpool_test.go index 711fb5c..0427048 100644 --- a/pkg/core/statesync/mptpool_test.go +++ b/pkg/core/statesync/mptpool_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/statesync/neotest_test.go b/pkg/core/statesync/neotest_test.go index 5d14c4e..a00648a 100644 --- a/pkg/core/statesync/neotest_test.go +++ b/pkg/core/statesync/neotest_test.go @@ -4,14 +4,14 @@ import ( "bytes" "testing" - "github.com/nspcc-dev/neo-go/internal/basicchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/basicchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/storage/boltdb_store.go b/pkg/core/storage/boltdb_store.go index 8e4b840..20a85ba 100644 --- a/pkg/core/storage/boltdb_store.go +++ b/pkg/core/storage/boltdb_store.go @@ -8,8 +8,8 @@ import ( "time" "github.com/nspcc-dev/bbolt" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/io" ) // Bucket represents bucket used in boltdb to store all the data. diff --git a/pkg/core/storage/boltdb_store_test.go b/pkg/core/storage/boltdb_store_test.go index c24c6e2..39608c9 100644 --- a/pkg/core/storage/boltdb_store_test.go +++ b/pkg/core/storage/boltdb_store_test.go @@ -8,7 +8,7 @@ import ( "github.com/nspcc-dev/bbolt" "github.com/nspcc-dev/bbolt/errors" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/storage/leveldb_store.go b/pkg/core/storage/leveldb_store.go index 4e1c03a..2ce0b49 100644 --- a/pkg/core/storage/leveldb_store.go +++ b/pkg/core/storage/leveldb_store.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/filter" "github.com/syndtr/goleveldb/leveldb/iterator" diff --git a/pkg/core/storage/leveldb_store_test.go b/pkg/core/storage/leveldb_store_test.go index 6e9b105..41a6b6f 100644 --- a/pkg/core/storage/leveldb_store_test.go +++ b/pkg/core/storage/leveldb_store_test.go @@ -3,7 +3,7 @@ package storage import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" "github.com/stretchr/testify/require" "github.com/syndtr/goleveldb/leveldb" ) diff --git a/pkg/core/storage/memcached_store_test.go b/pkg/core/storage/memcached_store_test.go index 35efc60..4e0f5b0 100644 --- a/pkg/core/storage/memcached_store_test.go +++ b/pkg/core/storage/memcached_store_test.go @@ -6,7 +6,7 @@ import ( "slices" "testing" - "github.com/nspcc-dev/neo-go/internal/random" + "github.com/tutus-one/tutus-chain/internal/random" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/storage/memory_store_test.go b/pkg/core/storage/memory_store_test.go index 8591047..7581367 100644 --- a/pkg/core/storage/memory_store_test.go +++ b/pkg/core/storage/memory_store_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/internal/random" + "github.com/tutus-one/tutus-chain/internal/random" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/storage/store.go b/pkg/core/storage/store.go index 68c253f..323aeb7 100644 --- a/pkg/core/storage/store.go +++ b/pkg/core/storage/store.go @@ -5,8 +5,8 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dboper" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dboper" "github.com/syndtr/goleveldb/leveldb/util" ) diff --git a/pkg/core/storage/store_test.go b/pkg/core/storage/store_test.go index 125ebb1..6350e64 100644 --- a/pkg/core/storage/store_test.go +++ b/pkg/core/storage/store_test.go @@ -3,7 +3,7 @@ package storage import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dboper" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dboper" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/storage/store_type_test.go b/pkg/core/storage/store_type_test.go index bb5bd89..7050ff5 100644 --- a/pkg/core/storage/store_type_test.go +++ b/pkg/core/storage/store_type_test.go @@ -4,7 +4,7 @@ import ( "path/filepath" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dbconfig" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dbconfig" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/transaction/attribute.go b/pkg/core/transaction/attribute.go index 68f0657..1ea158e 100644 --- a/pkg/core/transaction/attribute.go +++ b/pkg/core/transaction/attribute.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // AttrValue represents a Transaction Attribute value. diff --git a/pkg/core/transaction/attribute_test.go b/pkg/core/transaction/attribute_test.go index 28ad13c..441ffac 100644 --- a/pkg/core/transaction/attribute_test.go +++ b/pkg/core/transaction/attribute_test.go @@ -5,10 +5,10 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/transaction/bench_test.go b/pkg/core/transaction/bench_test.go index 2ac2176..62fca0f 100644 --- a/pkg/core/transaction/bench_test.go +++ b/pkg/core/transaction/bench_test.go @@ -4,7 +4,7 @@ import ( "encoding/base64" "testing" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/transaction/conflicts.go b/pkg/core/transaction/conflicts.go index a085c4a..0e5fac1 100644 --- a/pkg/core/transaction/conflicts.go +++ b/pkg/core/transaction/conflicts.go @@ -1,8 +1,8 @@ package transaction import ( - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Conflicts represents attribute for conflicting transactions. diff --git a/pkg/core/transaction/fuzz_test.go b/pkg/core/transaction/fuzz_test.go index 5892df5..3ff522a 100644 --- a/pkg/core/transaction/fuzz_test.go +++ b/pkg/core/transaction/fuzz_test.go @@ -4,7 +4,7 @@ import ( "encoding/base64" "testing" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/transaction/not_valid_before.go b/pkg/core/transaction/not_valid_before.go index 9d902ae..f7bf36e 100644 --- a/pkg/core/transaction/not_valid_before.go +++ b/pkg/core/transaction/not_valid_before.go @@ -1,7 +1,7 @@ package transaction import ( - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // NotValidBefore represents attribute with the height transaction is not valid before. diff --git a/pkg/core/transaction/notary_assisted.go b/pkg/core/transaction/notary_assisted.go index 8f857bf..745dccc 100644 --- a/pkg/core/transaction/notary_assisted.go +++ b/pkg/core/transaction/notary_assisted.go @@ -1,8 +1,8 @@ package transaction import ( - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/io" ) // NotaryAssistedActivation stores the hardfork of NotaryAssisted transaction attribute diff --git a/pkg/core/transaction/oracle.go b/pkg/core/transaction/oracle.go index 6c51c7e..df0d277 100644 --- a/pkg/core/transaction/oracle.go +++ b/pkg/core/transaction/oracle.go @@ -7,7 +7,7 @@ import ( "math" "strings" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) //go:generate stringer -type=OracleResponseCode diff --git a/pkg/core/transaction/oracle_test.go b/pkg/core/transaction/oracle_test.go index bfb4127..2c65331 100644 --- a/pkg/core/transaction/oracle_test.go +++ b/pkg/core/transaction/oracle_test.go @@ -5,7 +5,7 @@ import ( "math/rand/v2" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/transaction/reserved.go b/pkg/core/transaction/reserved.go index 61ae311..1e785a7 100644 --- a/pkg/core/transaction/reserved.go +++ b/pkg/core/transaction/reserved.go @@ -1,7 +1,7 @@ package transaction import ( - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // Reserved represents an attribute for experimental or private usage. diff --git a/pkg/core/transaction/signer.go b/pkg/core/transaction/signer.go index f298e88..d66472d 100644 --- a/pkg/core/transaction/signer.go +++ b/pkg/core/transaction/signer.go @@ -5,10 +5,10 @@ import ( "math/big" "slices" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // The maximum number of AllowedContracts or AllowedGroups. diff --git a/pkg/core/transaction/signer_test.go b/pkg/core/transaction/signer_test.go index db7d76d..653e2f9 100644 --- a/pkg/core/transaction/signer_test.go +++ b/pkg/core/transaction/signer_test.go @@ -3,9 +3,9 @@ package transaction import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/transaction/transaction.go b/pkg/core/transaction/transaction.go index 7c982d0..c09959b 100644 --- a/pkg/core/transaction/transaction.go +++ b/pkg/core/transaction/transaction.go @@ -10,12 +10,12 @@ import ( "math/big" "math/rand/v2" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/util/bitfield" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util/bitfield" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) const ( diff --git a/pkg/core/transaction/transaction_test.go b/pkg/core/transaction/transaction_test.go index a3f08af..ed4c65a 100644 --- a/pkg/core/transaction/transaction_test.go +++ b/pkg/core/transaction/transaction_test.go @@ -7,12 +7,12 @@ import ( "math" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/transaction/witness.go b/pkg/core/transaction/witness.go index ae4f244..0e436b7 100644 --- a/pkg/core/transaction/witness.go +++ b/pkg/core/transaction/witness.go @@ -3,9 +3,9 @@ package transaction import ( "bytes" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/core/transaction/witness_condition.go b/pkg/core/transaction/witness_condition.go index 2976694..4f14314 100644 --- a/pkg/core/transaction/witness_condition.go +++ b/pkg/core/transaction/witness_condition.go @@ -5,10 +5,10 @@ import ( "errors" "math/big" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) //go:generate stringer -type=WitnessConditionType -linecomment diff --git a/pkg/core/transaction/witness_condition_test.go b/pkg/core/transaction/witness_condition_test.go index 52d01e1..5f3143d 100644 --- a/pkg/core/transaction/witness_condition_test.go +++ b/pkg/core/transaction/witness_condition_test.go @@ -5,10 +5,10 @@ import ( "errors" "testing" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/transaction/witness_rule.go b/pkg/core/transaction/witness_rule.go index df1b74d..207a5d2 100644 --- a/pkg/core/transaction/witness_rule.go +++ b/pkg/core/transaction/witness_rule.go @@ -5,8 +5,8 @@ import ( "errors" "math/big" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) //go:generate stringer -type=WitnessAction -linecomment diff --git a/pkg/core/transaction/witness_rule_test.go b/pkg/core/transaction/witness_rule_test.go index f2102fa..c06d51f 100644 --- a/pkg/core/transaction/witness_rule_test.go +++ b/pkg/core/transaction/witness_rule_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/transaction/witness_test.go b/pkg/core/transaction/witness_test.go index 1c05bea..4c9792c 100644 --- a/pkg/core/transaction/witness_test.go +++ b/pkg/core/transaction/witness_test.go @@ -3,7 +3,7 @@ package transaction import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/require" ) diff --git a/pkg/core/util.go b/pkg/core/util.go index 7d2a07f..4f4b776 100644 --- a/pkg/core/util.go +++ b/pkg/core/util.go @@ -4,14 +4,14 @@ import ( "fmt" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) // CreateGenesisBlock creates a genesis block based on the given configuration. diff --git a/pkg/core/util_test.go b/pkg/core/util_test.go index 052e023..87c1c04 100644 --- a/pkg/core/util_test.go +++ b/pkg/core/util_test.go @@ -3,11 +3,11 @@ package core import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/crypto/hash/hash.go b/pkg/crypto/hash/hash.go index bc78d94..adb7eb3 100644 --- a/pkg/crypto/hash/hash.go +++ b/pkg/crypto/hash/hash.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "github.com/decred/dcrd/crypto/ripemd160" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Hashable represents an object which can be hashed. Usually, these objects diff --git a/pkg/crypto/hash/merkle_bench_test.go b/pkg/crypto/hash/merkle_bench_test.go index 0239bff..95d2635 100644 --- a/pkg/crypto/hash/merkle_bench_test.go +++ b/pkg/crypto/hash/merkle_bench_test.go @@ -3,9 +3,9 @@ package hash_test import ( "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/crypto/hash/merkle_tree.go b/pkg/crypto/hash/merkle_tree.go index 30c6050..5867c48 100644 --- a/pkg/crypto/hash/merkle_tree.go +++ b/pkg/crypto/hash/merkle_tree.go @@ -3,7 +3,7 @@ package hash import ( "errors" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // MerkleTree implementation. diff --git a/pkg/crypto/hash/merkle_tree_test.go b/pkg/crypto/hash/merkle_tree_test.go index 6a29a5d..8c4d1cd 100644 --- a/pkg/crypto/hash/merkle_tree_test.go +++ b/pkg/crypto/hash/merkle_tree_test.go @@ -3,7 +3,7 @@ package hash import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/crypto/keys/nep2.go b/pkg/crypto/keys/nep2.go index a4f0930..90c8106 100644 --- a/pkg/crypto/keys/nep2.go +++ b/pkg/crypto/keys/nep2.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys/internal/scrypt" - "github.com/nspcc-dev/neo-go/pkg/encoding/base58" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys/internal/scrypt" + "github.com/tutus-one/tutus-chain/pkg/encoding/base58" "golang.org/x/text/unicode/norm" ) diff --git a/pkg/crypto/keys/nep2_test.go b/pkg/crypto/keys/nep2_test.go index 4475528..4bd7e4d 100644 --- a/pkg/crypto/keys/nep2_test.go +++ b/pkg/crypto/keys/nep2_test.go @@ -3,7 +3,7 @@ package keys import ( "testing" - "github.com/nspcc-dev/neo-go/internal/keytestcases" + "github.com/tutus-one/tutus-chain/internal/keytestcases" "github.com/stretchr/testify/assert" ) diff --git a/pkg/crypto/keys/private_key.go b/pkg/crypto/keys/private_key.go index 9ea678e..c710b7c 100644 --- a/pkg/crypto/keys/private_key.go +++ b/pkg/crypto/keys/private_key.go @@ -11,8 +11,8 @@ import ( "math/big" "github.com/decred/dcrd/dcrec/secp256k1/v4" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/nspcc-dev/rfc6979" ) diff --git a/pkg/crypto/keys/private_key_test.go b/pkg/crypto/keys/private_key_test.go index 16dc84c..17c354f 100644 --- a/pkg/crypto/keys/private_key_test.go +++ b/pkg/crypto/keys/private_key_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/keytestcases" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/internal/keytestcases" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/crypto/keys/publickey.go b/pkg/crypto/keys/publickey.go index b6b4c02..2fa6e73 100644 --- a/pkg/crypto/keys/publickey.go +++ b/pkg/crypto/keys/publickey.go @@ -13,11 +13,11 @@ import ( "github.com/decred/dcrd/dcrec/secp256k1/v4" lru "github.com/hashicorp/golang-lru/v2" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" "gopkg.in/yaml.v3" ) diff --git a/pkg/crypto/keys/publickey_test.go b/pkg/crypto/keys/publickey_test.go index 9ebb65c..0f226c0 100644 --- a/pkg/crypto/keys/publickey_test.go +++ b/pkg/crypto/keys/publickey_test.go @@ -9,7 +9,7 @@ import ( "sort" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/pkg/crypto/keys/sign_verify_test.go b/pkg/crypto/keys/sign_verify_test.go index 20677e4..b20c957 100644 --- a/pkg/crypto/keys/sign_verify_test.go +++ b/pkg/crypto/keys/sign_verify_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/decred/dcrd/dcrec/secp256k1/v4" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/crypto/keys/wif.go b/pkg/crypto/keys/wif.go index 67689cc..2b90c4e 100644 --- a/pkg/crypto/keys/wif.go +++ b/pkg/crypto/keys/wif.go @@ -3,7 +3,7 @@ package keys import ( "fmt" - "github.com/nspcc-dev/neo-go/pkg/encoding/base58" + "github.com/tutus-one/tutus-chain/pkg/encoding/base58" ) const ( diff --git a/pkg/crypto/keys/wif_test.go b/pkg/crypto/keys/wif_test.go index f29269e..69f94bb 100644 --- a/pkg/crypto/keys/wif_test.go +++ b/pkg/crypto/keys/wif_test.go @@ -4,7 +4,7 @@ import ( "encoding/hex" "testing" - "github.com/nspcc-dev/neo-go/pkg/encoding/base58" + "github.com/tutus-one/tutus-chain/pkg/encoding/base58" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/crypto/verifiable.go b/pkg/crypto/verifiable.go index 5e99298..ef95860 100644 --- a/pkg/crypto/verifiable.go +++ b/pkg/crypto/verifiable.go @@ -1,6 +1,6 @@ package crypto -import "github.com/nspcc-dev/neo-go/pkg/crypto/hash" +import "github.com/tutus-one/tutus-chain/pkg/crypto/hash" // VerifiableDecodable represents an object which can be verified and // those hashable part of which can be encoded/decoded. diff --git a/pkg/encoding/address/address.go b/pkg/encoding/address/address.go index f048d0f..7e3725b 100644 --- a/pkg/encoding/address/address.go +++ b/pkg/encoding/address/address.go @@ -3,8 +3,8 @@ package address import ( "errors" - "github.com/nspcc-dev/neo-go/pkg/encoding/base58" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/encoding/base58" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/encoding/address/address_test.go b/pkg/encoding/address/address_test.go index 309703f..596e959 100644 --- a/pkg/encoding/address/address_test.go +++ b/pkg/encoding/address/address_test.go @@ -3,7 +3,7 @@ package address import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/encoding/base58/base58.go b/pkg/encoding/base58/base58.go index 4abec46..ee1a07e 100644 --- a/pkg/encoding/base58/base58.go +++ b/pkg/encoding/base58/base58.go @@ -5,7 +5,7 @@ import ( "errors" "github.com/mr-tron/base58" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" ) // CheckDecode implements base58-encoded string decoding with a hash-based diff --git a/pkg/encoding/fixedn/fixed8.go b/pkg/encoding/fixedn/fixed8.go index d8bbb70..f7239a8 100644 --- a/pkg/encoding/fixedn/fixed8.go +++ b/pkg/encoding/fixedn/fixed8.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" "gopkg.in/yaml.v3" ) diff --git a/pkg/encoding/fixedn/fixed8_test.go b/pkg/encoding/fixedn/fixed8_test.go index 2833741..f9670b1 100644 --- a/pkg/encoding/fixedn/fixed8_test.go +++ b/pkg/encoding/fixedn/fixed8_test.go @@ -6,7 +6,7 @@ import ( "strconv" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/assert" "gopkg.in/yaml.v3" ) diff --git a/pkg/interop/contract/contract.go b/pkg/interop/contract/contract.go index 0b4ad6b..e56edf7 100644 --- a/pkg/interop/contract/contract.go +++ b/pkg/interop/contract/contract.go @@ -4,8 +4,8 @@ Package contract provides functions to work with contracts. package contract import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // CallFlag specifies valid call flags. diff --git a/pkg/interop/convert/convert.go b/pkg/interop/convert/convert.go index 373edf0..9ce6f88 100644 --- a/pkg/interop/convert/convert.go +++ b/pkg/interop/convert/convert.go @@ -1,7 +1,7 @@ // Package convert provides functions for type conversion. package convert -import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" +import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" // ToInteger converts it's argument to an Integer. func ToInteger(v any) int { diff --git a/pkg/interop/crypto/crypto.go b/pkg/interop/crypto/crypto.go index 2d7e709..a70b281 100644 --- a/pkg/interop/crypto/crypto.go +++ b/pkg/interop/crypto/crypto.go @@ -4,8 +4,8 @@ Package crypto provides an interface to cryptographic syscalls. package crypto import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // CheckMultisig checks that the script container (transaction) is signed by multiple diff --git a/pkg/interop/go.mod b/pkg/interop/go.mod index c0ad7a8..9471ccf 100644 --- a/pkg/interop/go.mod +++ b/pkg/interop/go.mod @@ -1,3 +1,3 @@ -module github.com/nspcc-dev/neo-go/pkg/interop +module github.com/tutus-one/tutus-chain/pkg/interop go 1.24 diff --git a/pkg/interop/iterator/iterator.go b/pkg/interop/iterator/iterator.go index 7f72426..3ebd919 100644 --- a/pkg/interop/iterator/iterator.go +++ b/pkg/interop/iterator/iterator.go @@ -3,7 +3,7 @@ Package iterator provides functions to work with Neo iterators. */ package iterator -import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" +import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" // Iterator represents a Neo iterator, it's an opaque data structure that can // be properly created by storage.Find. Iterators range over key-value pairs, diff --git a/pkg/interop/lib/address/address.go b/pkg/interop/lib/address/address.go index 1f44354..14e9a98 100644 --- a/pkg/interop/lib/address/address.go +++ b/pkg/interop/lib/address/address.go @@ -1,9 +1,9 @@ package address import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/native/std" - "github.com/nspcc-dev/neo-go/pkg/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/native/std" + "github.com/tutus-one/tutus-chain/pkg/interop/runtime" ) // ToHash160 is a utility function that converts a Neo address to its hash diff --git a/pkg/interop/lib/contract/contract.go b/pkg/interop/lib/contract/contract.go index 8011ae6..63bde6d 100644 --- a/pkg/interop/lib/contract/contract.go +++ b/pkg/interop/lib/contract/contract.go @@ -1,9 +1,9 @@ package contract import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/native/management" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/native/management" ) // CallWithVersion is a utility function that executes the previously deployed diff --git a/pkg/interop/math/math.go b/pkg/interop/math/math.go index b774b06..685cde5 100644 --- a/pkg/interop/math/math.go +++ b/pkg/interop/math/math.go @@ -3,7 +3,7 @@ Package math provides access to useful numeric functions available in Neo VM. */ package math -import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" +import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" // Pow returns a^b using POW VM opcode. // b must be >= 0 and <= 2^31-1. diff --git a/pkg/interop/native/crypto/crypto.go b/pkg/interop/native/crypto/crypto.go index 45f0cef..2f5c8ec 100644 --- a/pkg/interop/native/crypto/crypto.go +++ b/pkg/interop/native/crypto/crypto.go @@ -5,9 +5,9 @@ It implements some cryptographic functions. package crypto import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Hash represents CryptoLib contract hash. diff --git a/pkg/interop/native/gas/gas.go b/pkg/interop/native/gas/gas.go index 338a6f9..862f4e4 100644 --- a/pkg/interop/native/gas/gas.go +++ b/pkg/interop/native/gas/gas.go @@ -5,9 +5,9 @@ It implements regular NEP-17 functions for GAS token. package gas import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Hash represents GAS contract hash. diff --git a/pkg/interop/native/ledger/block.go b/pkg/interop/native/ledger/block.go index 58c8852..3a59d00 100644 --- a/pkg/interop/native/ledger/block.go +++ b/pkg/interop/native/ledger/block.go @@ -1,6 +1,6 @@ package ledger -import "github.com/nspcc-dev/neo-go/pkg/interop" +import "github.com/tutus-one/tutus-chain/pkg/interop" // Block represents a NEO block, it's a data structure where you can get // block-related data from. It's similar to the Block class in the Neo .net diff --git a/pkg/interop/native/ledger/ledger.go b/pkg/interop/native/ledger/ledger.go index 591dcca..5f5f0c7 100644 --- a/pkg/interop/native/ledger/ledger.go +++ b/pkg/interop/native/ledger/ledger.go @@ -5,9 +5,9 @@ It allows to access ledger contents like transactions and blocks. package ledger import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Hash represents Ledger contract hash. diff --git a/pkg/interop/native/ledger/transaction.go b/pkg/interop/native/ledger/transaction.go index 9b162ad..991db7f 100644 --- a/pkg/interop/native/ledger/transaction.go +++ b/pkg/interop/native/ledger/transaction.go @@ -1,6 +1,6 @@ package ledger -import "github.com/nspcc-dev/neo-go/pkg/interop" +import "github.com/tutus-one/tutus-chain/pkg/interop" // Transaction represents a NEO transaction. It's similar to Transaction class // in Neo .net framework. diff --git a/pkg/interop/native/ledger/transaction_signer.go b/pkg/interop/native/ledger/transaction_signer.go index 70f01e1..b1b2412 100644 --- a/pkg/interop/native/ledger/transaction_signer.go +++ b/pkg/interop/native/ledger/transaction_signer.go @@ -1,6 +1,6 @@ package ledger -import "github.com/nspcc-dev/neo-go/pkg/interop" +import "github.com/tutus-one/tutus-chain/pkg/interop" // TransactionSigner represent the signer of a NEO transaction. It's similar to // Signer class in Neo .net framework. diff --git a/pkg/interop/native/management/contract.go b/pkg/interop/native/management/contract.go index b05fc66..a81265b 100644 --- a/pkg/interop/native/management/contract.go +++ b/pkg/interop/native/management/contract.go @@ -1,6 +1,6 @@ package management -import "github.com/nspcc-dev/neo-go/pkg/interop" +import "github.com/tutus-one/tutus-chain/pkg/interop" // Contract represents a deployed contract. type Contract struct { diff --git a/pkg/interop/native/management/management.go b/pkg/interop/native/management/management.go index 10a1157..41aef68 100644 --- a/pkg/interop/native/management/management.go +++ b/pkg/interop/native/management/management.go @@ -5,10 +5,10 @@ It allows to get/deploy/update contracts as well as get/set deployment fee. package management import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Hash represents Management contract hash. diff --git a/pkg/interop/native/neo/neo.go b/pkg/interop/native/neo/neo.go index 239ad26..fe87aa7 100644 --- a/pkg/interop/native/neo/neo.go +++ b/pkg/interop/native/neo/neo.go @@ -7,10 +7,10 @@ voting system. package neo import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // AccountState contains info about a NEO holder. diff --git a/pkg/interop/native/neo/neo_candidate.go b/pkg/interop/native/neo/neo_candidate.go index 7d9dc03..0f9ca40 100644 --- a/pkg/interop/native/neo/neo_candidate.go +++ b/pkg/interop/native/neo/neo_candidate.go @@ -1,6 +1,6 @@ package neo -import "github.com/nspcc-dev/neo-go/pkg/interop" +import "github.com/tutus-one/tutus-chain/pkg/interop" // Candidate represents a single native Neo candidate. type Candidate struct { diff --git a/pkg/interop/native/notary/notary.go b/pkg/interop/native/notary/notary.go index 9246a1c..5ac88d4 100644 --- a/pkg/interop/native/notary/notary.go +++ b/pkg/interop/native/notary/notary.go @@ -6,9 +6,9 @@ networks. To use it, you need to have this extension enabled on the network. package notary import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Hash represents Notary contract hash. diff --git a/pkg/interop/native/oracle/oracle.go b/pkg/interop/native/oracle/oracle.go index 14155b5..7003767 100644 --- a/pkg/interop/native/oracle/oracle.go +++ b/pkg/interop/native/oracle/oracle.go @@ -6,8 +6,8 @@ protocols. package oracle import ( - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // These are potential response codes you get in your callback completing diff --git a/pkg/interop/native/policy/policy.go b/pkg/interop/native/policy/policy.go index 730f916..ce43d44 100644 --- a/pkg/interop/native/policy/policy.go +++ b/pkg/interop/native/policy/policy.go @@ -5,10 +5,10 @@ This contract holds various network-wide settings. package policy import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Hash represents Policy contract hash. diff --git a/pkg/interop/native/roles/roles.go b/pkg/interop/native/roles/roles.go index 0ccffaf..b214e9a 100644 --- a/pkg/interop/native/roles/roles.go +++ b/pkg/interop/native/roles/roles.go @@ -6,9 +6,9 @@ providing some service on the network. package roles import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Hash represents RoleManagement contract hash. diff --git a/pkg/interop/native/std/std.go b/pkg/interop/native/std/std.go index 17d38d7..47d583b 100644 --- a/pkg/interop/native/std/std.go +++ b/pkg/interop/native/std/std.go @@ -5,8 +5,8 @@ It implements various useful conversion functions. package std import ( - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Hash represents StdLib contract hash. diff --git a/pkg/interop/runtime/engine.go b/pkg/interop/runtime/engine.go index d99418e..306a200 100644 --- a/pkg/interop/runtime/engine.go +++ b/pkg/interop/runtime/engine.go @@ -1,9 +1,9 @@ package runtime import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // GetScriptContainer returns the transaction that initially triggered current diff --git a/pkg/interop/runtime/runtime.go b/pkg/interop/runtime/runtime.go index 37379cf..6afd457 100644 --- a/pkg/interop/runtime/runtime.go +++ b/pkg/interop/runtime/runtime.go @@ -5,10 +5,10 @@ It has similar function to Runtime class in .net framework for Neo. package runtime import ( - "github.com/nspcc-dev/neo-go/pkg/interop" - "github.com/nspcc-dev/neo-go/pkg/interop/contract" - "github.com/nspcc-dev/neo-go/pkg/interop/native/ledger" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop" + "github.com/tutus-one/tutus-chain/pkg/interop/contract" + "github.com/tutus-one/tutus-chain/pkg/interop/native/ledger" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Trigger values to compare with GetTrigger result. diff --git a/pkg/interop/storage/storage.go b/pkg/interop/storage/storage.go index 0f3ad7d..27c01b1 100644 --- a/pkg/interop/storage/storage.go +++ b/pkg/interop/storage/storage.go @@ -7,8 +7,8 @@ contract. package storage import ( - "github.com/nspcc-dev/neo-go/pkg/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Context represents storage context that is mandatory for Put/Get/Delete diff --git a/pkg/interop/types.go b/pkg/interop/types.go index a99dcd4..9cf3834 100644 --- a/pkg/interop/types.go +++ b/pkg/interop/types.go @@ -1,6 +1,6 @@ package interop -import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" +import "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" const ( // Hash160Len is the length of proper Hash160 in bytes, use it to diff --git a/pkg/interop/util/util.go b/pkg/interop/util/util.go index b17eb01..288292d 100644 --- a/pkg/interop/util/util.go +++ b/pkg/interop/util/util.go @@ -4,7 +4,7 @@ Package util contains some special useful functions that are provided by compile package util import ( - "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" + "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal" ) // Abort terminates current execution, unlike exception throwing with panic() it diff --git a/pkg/io/size_test.go b/pkg/io/size_test.go index 6622383..aa26bf0 100644 --- a/pkg/io/size_test.go +++ b/pkg/io/size_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" ) diff --git a/pkg/neorpc/errors.go b/pkg/neorpc/errors.go index 9c656c9..512865b 100644 --- a/pkg/neorpc/errors.go +++ b/pkg/neorpc/errors.go @@ -60,7 +60,7 @@ const ( ) // Codes for calls that use a wallet (-300...-304) can be returned by the C# RPC server only, -// see the https://github.com/nspcc-dev/neo-go/blob/master/docs/rpc.md#unsupported-methods. +// see the https://github.com/tutus-one/tutus-chain/blob/master/docs/rpc.md#unsupported-methods. const ( // ErrInsufficientFundsWalletCode is returned if transaction that sends some assets can't be created // because it fails. Can be returned only by the C# RPC server. diff --git a/pkg/neorpc/filters.go b/pkg/neorpc/filters.go index f1bc484..5708bd1 100644 --- a/pkg/neorpc/filters.go +++ b/pkg/neorpc/filters.go @@ -5,12 +5,12 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/core/interop/runtime" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/core/interop/runtime" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" ) // MaxNotificationFilterParametersCount is a reasonable filter's parameter limit diff --git a/pkg/neorpc/filters_test.go b/pkg/neorpc/filters_test.go index 49cf126..ca1874f 100644 --- a/pkg/neorpc/filters_test.go +++ b/pkg/neorpc/filters_test.go @@ -3,9 +3,9 @@ package neorpc import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/neorpc/result/application_log.go b/pkg/neorpc/result/application_log.go index 255db15..d01f676 100644 --- a/pkg/neorpc/result/application_log.go +++ b/pkg/neorpc/result/application_log.go @@ -5,9 +5,9 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" ) // ApplicationLog represent the results of the script executions for a block or a transaction. diff --git a/pkg/neorpc/result/block.go b/pkg/neorpc/result/block.go index 64ddeb5..1ad18fe 100644 --- a/pkg/neorpc/result/block.go +++ b/pkg/neorpc/result/block.go @@ -4,8 +4,8 @@ import ( "encoding/json" "errors" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/util" ) type ( diff --git a/pkg/neorpc/result/block_header.go b/pkg/neorpc/result/block_header.go index 5cccdf1..98a4cda 100644 --- a/pkg/neorpc/result/block_header.go +++ b/pkg/neorpc/result/block_header.go @@ -4,7 +4,7 @@ import ( "encoding/json" "errors" - "github.com/nspcc-dev/neo-go/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/block" ) type ( diff --git a/pkg/neorpc/result/block_notifications.go b/pkg/neorpc/result/block_notifications.go index db20590..d7441bc 100644 --- a/pkg/neorpc/result/block_notifications.go +++ b/pkg/neorpc/result/block_notifications.go @@ -1,7 +1,7 @@ package result import ( - "github.com/nspcc-dev/neo-go/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/state" ) // BlockNotifications represents notifications from a block organized by diff --git a/pkg/neorpc/result/invoke.go b/pkg/neorpc/result/invoke.go index 3fc039b..3b5d8d7 100644 --- a/pkg/neorpc/result/invoke.go +++ b/pkg/neorpc/result/invoke.go @@ -5,11 +5,11 @@ import ( "fmt" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dboper" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/vm/invocations" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dboper" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/vm/invocations" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Invoke represents a code invocation result and is used by several RPC calls diff --git a/pkg/neorpc/result/invoke_test.go b/pkg/neorpc/result/invoke_test.go index 64a1457..c4765ae 100644 --- a/pkg/neorpc/result/invoke_test.go +++ b/pkg/neorpc/result/invoke_test.go @@ -8,12 +8,12 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" ) diff --git a/pkg/neorpc/result/mempool_event.go b/pkg/neorpc/result/mempool_event.go index 2f23d55..7e6f866 100644 --- a/pkg/neorpc/result/mempool_event.go +++ b/pkg/neorpc/result/mempool_event.go @@ -1,8 +1,8 @@ package result import ( - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" ) // MempoolEvent represents a transaction event either added to diff --git a/pkg/neorpc/result/mpt.go b/pkg/neorpc/result/mpt.go index 14b24c2..b172a82 100644 --- a/pkg/neorpc/result/mpt.go +++ b/pkg/neorpc/result/mpt.go @@ -5,7 +5,7 @@ import ( "encoding/base64" "encoding/json" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // StateHeight is a result of getstateheight RPC. diff --git a/pkg/neorpc/result/mpt_test.go b/pkg/neorpc/result/mpt_test.go index e328288..338c86f 100644 --- a/pkg/neorpc/result/mpt_test.go +++ b/pkg/neorpc/result/mpt_test.go @@ -4,10 +4,10 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/io" "github.com/stretchr/testify/require" ) diff --git a/pkg/neorpc/result/notary_request_event.go b/pkg/neorpc/result/notary_request_event.go index 030968a..f95c4ef 100644 --- a/pkg/neorpc/result/notary_request_event.go +++ b/pkg/neorpc/result/notary_request_event.go @@ -1,8 +1,8 @@ package result import ( - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/network/payload" ) // NotaryRequestEvent represents a P2PNotaryRequest event either added or removed diff --git a/pkg/neorpc/result/peers.go b/pkg/neorpc/result/peers.go index 3fb47c7..77b014d 100644 --- a/pkg/neorpc/result/peers.go +++ b/pkg/neorpc/result/peers.go @@ -4,7 +4,7 @@ import ( "net" "strconv" - "github.com/nspcc-dev/neo-go/pkg/network" + "github.com/tutus-one/tutus-chain/pkg/network" ) type ( diff --git a/pkg/neorpc/result/peers_test.go b/pkg/neorpc/result/peers_test.go index 6317c9a..1f02dd7 100644 --- a/pkg/neorpc/result/peers_test.go +++ b/pkg/neorpc/result/peers_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/pkg/network" + "github.com/tutus-one/tutus-chain/pkg/network" "github.com/stretchr/testify/require" ) diff --git a/pkg/neorpc/result/raw_mempool.go b/pkg/neorpc/result/raw_mempool.go index d0a3ed5..890f0d8 100644 --- a/pkg/neorpc/result/raw_mempool.go +++ b/pkg/neorpc/result/raw_mempool.go @@ -1,6 +1,6 @@ package result -import "github.com/nspcc-dev/neo-go/pkg/util" +import "github.com/tutus-one/tutus-chain/pkg/util" // RawMempool represents a result of getrawmempool RPC call. type RawMempool struct { diff --git a/pkg/neorpc/result/raw_notary_pool.go b/pkg/neorpc/result/raw_notary_pool.go index e9b62e6..3a86d3b 100644 --- a/pkg/neorpc/result/raw_notary_pool.go +++ b/pkg/neorpc/result/raw_notary_pool.go @@ -4,7 +4,7 @@ import ( "encoding/json" "strings" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // RawNotaryPool represents a result of `getrawnotarypool` RPC call. diff --git a/pkg/neorpc/result/relay_result.go b/pkg/neorpc/result/relay_result.go index 492d163..b9d25d4 100644 --- a/pkg/neorpc/result/relay_result.go +++ b/pkg/neorpc/result/relay_result.go @@ -1,6 +1,6 @@ package result -import "github.com/nspcc-dev/neo-go/pkg/util" +import "github.com/tutus-one/tutus-chain/pkg/util" // RelayResult ia a result of `sendrawtransaction` or `submitblock` RPC calls. type RelayResult struct { diff --git a/pkg/neorpc/result/tokens.go b/pkg/neorpc/result/tokens.go index 38e53f5..b920f72 100644 --- a/pkg/neorpc/result/tokens.go +++ b/pkg/neorpc/result/tokens.go @@ -1,7 +1,7 @@ package result import ( - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // NEP11Balances is a result for the getnep11balances RPC call. diff --git a/pkg/neorpc/result/tx_raw_output.go b/pkg/neorpc/result/tx_raw_output.go index 96cd793..5586e29 100644 --- a/pkg/neorpc/result/tx_raw_output.go +++ b/pkg/neorpc/result/tx_raw_output.go @@ -4,8 +4,8 @@ import ( "encoding/json" "errors" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/util" ) // TransactionOutputRaw is used as a wrapper to represents diff --git a/pkg/neorpc/result/unclaimed_gas.go b/pkg/neorpc/result/unclaimed_gas.go index fc1bdf5..9e8bce7 100644 --- a/pkg/neorpc/result/unclaimed_gas.go +++ b/pkg/neorpc/result/unclaimed_gas.go @@ -5,8 +5,8 @@ import ( "errors" "math/big" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/util" ) // UnclaimedGas response wrapper. diff --git a/pkg/neorpc/result/validator.go b/pkg/neorpc/result/validator.go index f5aafd5..bb87f95 100644 --- a/pkg/neorpc/result/validator.go +++ b/pkg/neorpc/result/validator.go @@ -3,7 +3,7 @@ package result import ( "encoding/json" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" ) // Validator is used for the representation of consensus node data in the JSON-RPC diff --git a/pkg/neorpc/result/version.go b/pkg/neorpc/result/version.go index 407f6ae..8c18b14 100644 --- a/pkg/neorpc/result/version.go +++ b/pkg/neorpc/result/version.go @@ -5,10 +5,10 @@ import ( "fmt" "strings" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" ) type ( diff --git a/pkg/neorpc/result/version_test.go b/pkg/neorpc/result/version_test.go index fc818ed..9a3bc72 100644 --- a/pkg/neorpc/result/version_test.go +++ b/pkg/neorpc/result/version_test.go @@ -4,9 +4,9 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" "github.com/stretchr/testify/require" ) diff --git a/pkg/neorpc/rpcevent/filter.go b/pkg/neorpc/rpcevent/filter.go index 483c904..3e18f11 100644 --- a/pkg/neorpc/rpcevent/filter.go +++ b/pkg/neorpc/rpcevent/filter.go @@ -1,12 +1,12 @@ package rpcevent import ( - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) type ( diff --git a/pkg/neorpc/rpcevent/filter_test.go b/pkg/neorpc/rpcevent/filter_test.go index 04eaa4a..b15ceb9 100644 --- a/pkg/neorpc/rpcevent/filter_test.go +++ b/pkg/neorpc/rpcevent/filter_test.go @@ -3,17 +3,17 @@ package rpcevent import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" ) diff --git a/pkg/neorpc/types.go b/pkg/neorpc/types.go index d2d6607..0c66868 100644 --- a/pkg/neorpc/types.go +++ b/pkg/neorpc/types.go @@ -10,10 +10,10 @@ import ( "fmt" "strings" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/neorpc/types_test.go b/pkg/neorpc/types_test.go index c817bc1..c15b278 100644 --- a/pkg/neorpc/types_test.go +++ b/pkg/neorpc/types_test.go @@ -5,10 +5,10 @@ import ( "fmt" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/neotest/basic.go b/pkg/neotest/basic.go index 35beb42..aec24d3 100644 --- a/pkg/neotest/basic.go +++ b/pkg/neotest/basic.go @@ -7,22 +7,22 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/pkg/neotest/chain/chain.go b/pkg/neotest/chain/chain.go index 8d6edbc..08947c1 100644 --- a/pkg/neotest/chain/chain.go +++ b/pkg/neotest/chain/chain.go @@ -6,15 +6,15 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" "go.uber.org/zap" "go.uber.org/zap/zaptest" diff --git a/pkg/neotest/chain/chain_test.go b/pkg/neotest/chain/chain_test.go index d69ceb5..190ca73 100644 --- a/pkg/neotest/chain/chain_test.go +++ b/pkg/neotest/chain/chain_test.go @@ -3,7 +3,7 @@ package chain import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest" "github.com/stretchr/testify/require" ) diff --git a/pkg/neotest/client.go b/pkg/neotest/client.go index fe5a313..ce05c36 100644 --- a/pkg/neotest/client.go +++ b/pkg/neotest/client.go @@ -3,13 +3,13 @@ package neotest import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" ) diff --git a/pkg/neotest/compile.go b/pkg/neotest/compile.go index c890ec0..9779a72 100644 --- a/pkg/neotest/compile.go +++ b/pkg/neotest/compile.go @@ -6,13 +6,13 @@ import ( "os" "testing" - "github.com/nspcc-dev/neo-go/cli/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/cli/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/neotest/compile_test.go b/pkg/neotest/compile_test.go index f24a85b..02e47df 100644 --- a/pkg/neotest/compile_test.go +++ b/pkg/neotest/compile_test.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/neotest/coverage.go b/pkg/neotest/coverage.go index f22580a..b9453c7 100644 --- a/pkg/neotest/coverage.go +++ b/pkg/neotest/coverage.go @@ -11,10 +11,10 @@ import ( "sync" "testing" - "github.com/nspcc-dev/neo-go/pkg/compiler" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/compiler" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) const ( diff --git a/pkg/neotest/doc.go b/pkg/neotest/doc.go index a7803ae..b4bf55b 100644 --- a/pkg/neotest/doc.go +++ b/pkg/neotest/doc.go @@ -20,7 +20,7 @@ It's recommended to have a separate folder/package for tests, because having them in the same package with the smart contract itself can lead to unexpected results if smart contract has any init() functions. If that's the case they will be compiled into the testing binary even when using package_test and their -execution can affect tests. See https://github.com/nspcc-dev/neo-go/issues/3120 for details. +execution can affect tests. See https://github.com/tutus-one/tutus-chain/issues/3120 for details. Test coverage for contracts is automatically enabled when `go test` is running with coverage enabled. When not desired, it can be disabled for any Executor by using diff --git a/pkg/neotest/signer.go b/pkg/neotest/signer.go index d2f08cd..6b6644e 100644 --- a/pkg/neotest/signer.go +++ b/pkg/neotest/signer.go @@ -6,17 +6,17 @@ import ( "slices" "testing" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/pkg/neotest/signer_test.go b/pkg/neotest/signer_test.go index a40e6a7..9735638 100644 --- a/pkg/neotest/signer_test.go +++ b/pkg/neotest/signer_test.go @@ -4,9 +4,9 @@ import ( "slices" "testing" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/bqueue/queue_test.go b/pkg/network/bqueue/queue_test.go index c368b80..8182e22 100644 --- a/pkg/network/bqueue/queue_test.go +++ b/pkg/network/bqueue/queue_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/fakechain" - "github.com/nspcc-dev/neo-go/pkg/core/block" + "github.com/tutus-one/tutus-chain/internal/fakechain" + "github.com/tutus-one/tutus-chain/pkg/core/block" "github.com/stretchr/testify/assert" "go.uber.org/zap/zaptest" ) diff --git a/pkg/network/bqueue_adapters.go b/pkg/network/bqueue_adapters.go index 6afdf54..ed21cdc 100644 --- a/pkg/network/bqueue_adapters.go +++ b/pkg/network/bqueue_adapters.go @@ -1,8 +1,8 @@ package network import ( - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/network/bqueue" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/network/bqueue" ) var ( diff --git a/pkg/network/capability/capability.go b/pkg/network/capability/capability.go index 14d829f..d3318a2 100644 --- a/pkg/network/capability/capability.go +++ b/pkg/network/capability/capability.go @@ -3,7 +3,7 @@ package capability import ( "errors" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) const ( diff --git a/pkg/network/capability/capability_test.go b/pkg/network/capability/capability_test.go index 696a4fe..40850c3 100644 --- a/pkg/network/capability/capability_test.go +++ b/pkg/network/capability/capability_test.go @@ -3,7 +3,7 @@ package capability import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/compress.go b/pkg/network/compress.go index 644cad1..718dba3 100644 --- a/pkg/network/compress.go +++ b/pkg/network/compress.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "errors" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/network/payload" "github.com/pierrec/lz4" ) diff --git a/pkg/network/discovery.go b/pkg/network/discovery.go index 1c172f1..19193f9 100644 --- a/pkg/network/discovery.go +++ b/pkg/network/discovery.go @@ -7,7 +7,7 @@ import ( "sync/atomic" "time" - "github.com/nspcc-dev/neo-go/pkg/network/capability" + "github.com/tutus-one/tutus-chain/pkg/network/capability" ) const ( diff --git a/pkg/network/discovery_test.go b/pkg/network/discovery_test.go index 3d0f78b..c7f2559 100644 --- a/pkg/network/discovery_test.go +++ b/pkg/network/discovery_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/pkg/network/capability" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/network/capability" + "github.com/tutus-one/tutus-chain/pkg/network/payload" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/extpool/pool.go b/pkg/network/extpool/pool.go index 5d172f6..109aeee 100644 --- a/pkg/network/extpool/pool.go +++ b/pkg/network/extpool/pool.go @@ -5,10 +5,10 @@ import ( "errors" "sync" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Ledger is enough of Blockchain to satisfy Pool. diff --git a/pkg/network/extpool/pool_test.go b/pkg/network/extpool/pool_test.go index 89802a2..a576d76 100644 --- a/pkg/network/extpool/pool_test.go +++ b/pkg/network/extpool/pool_test.go @@ -4,10 +4,10 @@ import ( "errors" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/fuzz_test.go b/pkg/network/fuzz_test.go index b606521..e579506 100644 --- a/pkg/network/fuzz_test.go +++ b/pkg/network/fuzz_test.go @@ -4,8 +4,8 @@ import ( "math/rand/v2" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/io" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/helper_test.go b/pkg/network/helper_test.go index 46fcf23..744503b 100644 --- a/pkg/network/helper_test.go +++ b/pkg/network/helper_test.go @@ -10,10 +10,10 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/fakechain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/tutus-one/tutus-chain/internal/fakechain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/payload" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" ) diff --git a/pkg/network/message.go b/pkg/network/message.go index ef92bf0..40e692e 100644 --- a/pkg/network/message.go +++ b/pkg/network/message.go @@ -4,10 +4,10 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/payload" ) //go:generate stringer -type=CommandType -output=message_string.go diff --git a/pkg/network/message_test.go b/pkg/network/message_test.go index 33cd41a..e24c303 100644 --- a/pkg/network/message_test.go +++ b/pkg/network/message_test.go @@ -7,15 +7,15 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/capability" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/capability" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/notary_feer.go b/pkg/network/notary_feer.go index 2f47000..5a006d3 100644 --- a/pkg/network/notary_feer.go +++ b/pkg/network/notary_feer.go @@ -3,7 +3,7 @@ package network import ( "math/big" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // NotaryFeer implements mempool.Feer interface for Notary balance handling. diff --git a/pkg/network/payload/address.go b/pkg/network/payload/address.go index 05e45c5..6c93172 100644 --- a/pkg/network/payload/address.go +++ b/pkg/network/payload/address.go @@ -6,8 +6,8 @@ import ( "strconv" "time" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/capability" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/capability" ) // MaxAddrsCount is the maximum number of addresses that could be packed into diff --git a/pkg/network/payload/address_test.go b/pkg/network/payload/address_test.go index e836511..0900ad7 100644 --- a/pkg/network/payload/address_test.go +++ b/pkg/network/payload/address_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/network/capability" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/network/capability" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/payload/extensible.go b/pkg/network/payload/extensible.go index 31a909e..e7b4801 100644 --- a/pkg/network/payload/extensible.go +++ b/pkg/network/payload/extensible.go @@ -3,10 +3,10 @@ package payload import ( "errors" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) const maxExtensibleCategorySize = 32 diff --git a/pkg/network/payload/extensible_test.go b/pkg/network/payload/extensible_test.go index a849d8f..bd0972f 100644 --- a/pkg/network/payload/extensible_test.go +++ b/pkg/network/payload/extensible_test.go @@ -4,10 +4,10 @@ import ( gio "io" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/payload/getblockbyindex.go b/pkg/network/payload/getblockbyindex.go index e25f62e..31b716b 100644 --- a/pkg/network/payload/getblockbyindex.go +++ b/pkg/network/payload/getblockbyindex.go @@ -3,7 +3,7 @@ package payload import ( "fmt" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // GetBlockByIndex payload. diff --git a/pkg/network/payload/getblockbyindex_test.go b/pkg/network/payload/getblockbyindex_test.go index 962087b..d86ce8d 100644 --- a/pkg/network/payload/getblockbyindex_test.go +++ b/pkg/network/payload/getblockbyindex_test.go @@ -3,7 +3,7 @@ package payload import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/payload/getblocks.go b/pkg/network/payload/getblocks.go index 682fc03..6a4c55d 100644 --- a/pkg/network/payload/getblocks.go +++ b/pkg/network/payload/getblocks.go @@ -3,8 +3,8 @@ package payload import ( "errors" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Maximum inventory hashes number is limited to 500. diff --git a/pkg/network/payload/getblocks_test.go b/pkg/network/payload/getblocks_test.go index 52c41e4..d9dc0f6 100644 --- a/pkg/network/payload/getblocks_test.go +++ b/pkg/network/payload/getblocks_test.go @@ -3,8 +3,8 @@ package payload import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/payload/headers.go b/pkg/network/payload/headers.go index 11add0d..07ad95b 100644 --- a/pkg/network/payload/headers.go +++ b/pkg/network/payload/headers.go @@ -4,8 +4,8 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/io" ) // Headers payload. diff --git a/pkg/network/payload/headers_test.go b/pkg/network/payload/headers_test.go index 6480508..69ad81f 100644 --- a/pkg/network/payload/headers_test.go +++ b/pkg/network/payload/headers_test.go @@ -3,9 +3,9 @@ package payload import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" "github.com/stretchr/testify/assert" ) diff --git a/pkg/network/payload/inventory.go b/pkg/network/payload/inventory.go index 04041e7..16951fe 100644 --- a/pkg/network/payload/inventory.go +++ b/pkg/network/payload/inventory.go @@ -1,8 +1,8 @@ package payload import ( - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // A node can broadcast the object information it owns by this message. diff --git a/pkg/network/payload/inventory_test.go b/pkg/network/payload/inventory_test.go index d4c5c49..b421eda 100644 --- a/pkg/network/payload/inventory_test.go +++ b/pkg/network/payload/inventory_test.go @@ -4,9 +4,9 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/payload/merkleblock.go b/pkg/network/payload/merkleblock.go index 027e37a..57278f9 100644 --- a/pkg/network/payload/merkleblock.go +++ b/pkg/network/payload/merkleblock.go @@ -3,9 +3,9 @@ package payload import ( "errors" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // MerkleBlock represents a merkle block packet payload. diff --git a/pkg/network/payload/merkleblock_test.go b/pkg/network/payload/merkleblock_test.go index 8115747..e020e66 100644 --- a/pkg/network/payload/merkleblock_test.go +++ b/pkg/network/payload/merkleblock_test.go @@ -5,11 +5,11 @@ import ( "github.com/stretchr/testify/require" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/util" ) func newDumbBlock() *block.Header { diff --git a/pkg/network/payload/mptdata.go b/pkg/network/payload/mptdata.go index 8a5e9c2..38d81f4 100644 --- a/pkg/network/payload/mptdata.go +++ b/pkg/network/payload/mptdata.go @@ -3,7 +3,7 @@ package payload import ( "errors" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // MPTData represents a set of serialized MPT nodes. diff --git a/pkg/network/payload/mptdata_test.go b/pkg/network/payload/mptdata_test.go index 4c02cce..5db5db3 100644 --- a/pkg/network/payload/mptdata_test.go +++ b/pkg/network/payload/mptdata_test.go @@ -3,7 +3,7 @@ package payload import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/payload/mptinventory.go b/pkg/network/payload/mptinventory.go index 320e6fe..0bdf56b 100644 --- a/pkg/network/payload/mptinventory.go +++ b/pkg/network/payload/mptinventory.go @@ -1,8 +1,8 @@ package payload import ( - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // MaxMPTHashesCount is the maximum number of the requested MPT nodes hashes. diff --git a/pkg/network/payload/mptinventory_test.go b/pkg/network/payload/mptinventory_test.go index a0c052a..8a2fe31 100644 --- a/pkg/network/payload/mptinventory_test.go +++ b/pkg/network/payload/mptinventory_test.go @@ -3,8 +3,8 @@ package payload import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/payload/notary_request.go b/pkg/network/payload/notary_request.go index eadd6db..7e3677f 100644 --- a/pkg/network/payload/notary_request.go +++ b/pkg/network/payload/notary_request.go @@ -4,12 +4,12 @@ import ( "bytes" "errors" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) // P2PNotaryRequest contains main and fallback transactions for the Notary service. diff --git a/pkg/network/payload/notary_request_test.go b/pkg/network/payload/notary_request_test.go index c002c91..e53882e 100644 --- a/pkg/network/payload/notary_request_test.go +++ b/pkg/network/payload/notary_request_test.go @@ -3,11 +3,11 @@ package payload import ( "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/network/payload/payload.go b/pkg/network/payload/payload.go index a47c146..ec5d85f 100644 --- a/pkg/network/payload/payload.go +++ b/pkg/network/payload/payload.go @@ -1,6 +1,6 @@ package payload -import "github.com/nspcc-dev/neo-go/pkg/io" +import "github.com/tutus-one/tutus-chain/pkg/io" // MaxSize is the maximum payload size in decompressed form. const MaxSize = 0x02000000 diff --git a/pkg/network/payload/ping.go b/pkg/network/payload/ping.go index 656a58a..e79e8b2 100644 --- a/pkg/network/payload/ping.go +++ b/pkg/network/payload/ping.go @@ -3,7 +3,7 @@ package payload import ( "time" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" ) // Ping payload for ping/pong payloads. diff --git a/pkg/network/payload/ping_test.go b/pkg/network/payload/ping_test.go index 84a0b21..6558ae8 100644 --- a/pkg/network/payload/ping_test.go +++ b/pkg/network/payload/ping_test.go @@ -3,7 +3,7 @@ package payload import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/assert" ) diff --git a/pkg/network/payload/version.go b/pkg/network/payload/version.go index 3b33373..4c44eaf 100644 --- a/pkg/network/payload/version.go +++ b/pkg/network/payload/version.go @@ -3,9 +3,9 @@ package payload import ( "time" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/capability" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/capability" ) // MaxUserAgentLength is the limit for the user agent field. diff --git a/pkg/network/payload/version_test.go b/pkg/network/payload/version_test.go index 1c83848..ccacced 100644 --- a/pkg/network/payload/version_test.go +++ b/pkg/network/payload/version_test.go @@ -3,9 +3,9 @@ package payload import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/network/capability" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/network/capability" "github.com/stretchr/testify/assert" ) diff --git a/pkg/network/peer.go b/pkg/network/peer.go index cfece3f..364ba67 100644 --- a/pkg/network/peer.go +++ b/pkg/network/peer.go @@ -4,7 +4,7 @@ import ( "context" "net" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/network/payload" ) // PeerInfo represents the info for a connected peer. diff --git a/pkg/network/server.go b/pkg/network/server.go index 968f9f1..1a2a011 100644 --- a/pkg/network/server.go +++ b/pkg/network/server.go @@ -16,22 +16,22 @@ import ( "sync/atomic" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/bqueue" - "github.com/nspcc-dev/neo-go/pkg/network/capability" - "github.com/nspcc-dev/neo-go/pkg/network/extpool" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/services/blockfetcher" - "github.com/nspcc-dev/neo-go/pkg/services/statefetcher" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/bqueue" + "github.com/tutus-one/tutus-chain/pkg/network/capability" + "github.com/tutus-one/tutus-chain/pkg/network/extpool" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/services/blockfetcher" + "github.com/tutus-one/tutus-chain/pkg/services/statefetcher" + "github.com/tutus-one/tutus-chain/pkg/util" "go.uber.org/zap" ) diff --git a/pkg/network/server_config.go b/pkg/network/server_config.go index c0e3934..2c303fe 100644 --- a/pkg/network/server_config.go +++ b/pkg/network/server_config.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" "go.uber.org/zap/zapcore" ) diff --git a/pkg/network/server_test.go b/pkg/network/server_test.go index 2bfc5fd..a2e64f8 100644 --- a/pkg/network/server_test.go +++ b/pkg/network/server_test.go @@ -12,21 +12,21 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/fakechain" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/consensus" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/network/capability" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/internal/fakechain" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/consensus" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/network/capability" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" diff --git a/pkg/network/state_sync.go b/pkg/network/state_sync.go index ad17b96..a1ec57e 100644 --- a/pkg/network/state_sync.go +++ b/pkg/network/state_sync.go @@ -1,10 +1,10 @@ package network import ( - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/util" ) // StateSync represents state sync module. diff --git a/pkg/network/tcp_peer.go b/pkg/network/tcp_peer.go index 20b627c..ccfe6b7 100644 --- a/pkg/network/tcp_peer.go +++ b/pkg/network/tcp_peer.go @@ -10,9 +10,9 @@ import ( "sync/atomic" "time" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/capability" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/capability" + "github.com/tutus-one/tutus-chain/pkg/network/payload" ) type handShakeStage uint8 diff --git a/pkg/network/tcp_peer_test.go b/pkg/network/tcp_peer_test.go index 9934591..5b45b57 100644 --- a/pkg/network/tcp_peer_test.go +++ b/pkg/network/tcp_peer_test.go @@ -4,7 +4,7 @@ import ( "net" "testing" - "github.com/nspcc-dev/neo-go/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/network/payload" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/actor/actor.go b/pkg/rpcclient/actor/actor.go index 8035dae..ad59df4 100644 --- a/pkg/rpcclient/actor/actor.go +++ b/pkg/rpcclient/actor/actor.go @@ -14,15 +14,15 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/waiter" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/waiter" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) var ( diff --git a/pkg/rpcclient/actor/actor_test.go b/pkg/rpcclient/actor/actor_test.go index 3ba718c..887171d 100644 --- a/pkg/rpcclient/actor/actor_test.go +++ b/pkg/rpcclient/actor/actor_test.go @@ -7,16 +7,16 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/actor/compat_test.go b/pkg/rpcclient/actor/compat_test.go index 874025d..94d3029 100644 --- a/pkg/rpcclient/actor/compat_test.go +++ b/pkg/rpcclient/actor/compat_test.go @@ -3,8 +3,8 @@ package actor_test import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" ) func TestRPCActorRPCClientCompat(t *testing.T) { diff --git a/pkg/rpcclient/actor/doc_test.go b/pkg/rpcclient/actor/doc_test.go index 7103560..28a8e56 100644 --- a/pkg/rpcclient/actor/doc_test.go +++ b/pkg/rpcclient/actor/doc_test.go @@ -5,16 +5,16 @@ import ( "encoding/json" "os" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neo" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/policy" - sccontext "github.com/nspcc-dev/neo-go/pkg/smartcontract/context" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neo" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/policy" + sccontext "github.com/tutus-one/tutus-chain/pkg/smartcontract/context" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) func ExampleActor() { diff --git a/pkg/rpcclient/actor/maker.go b/pkg/rpcclient/actor/maker.go index 8c6c1c7..20ed899 100644 --- a/pkg/rpcclient/actor/maker.go +++ b/pkg/rpcclient/actor/maker.go @@ -4,10 +4,10 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" ) // TransactionCheckerModifier is a callback that receives the result of diff --git a/pkg/rpcclient/actor/maker_test.go b/pkg/rpcclient/actor/maker_test.go index 83fa42a..104527d 100644 --- a/pkg/rpcclient/actor/maker_test.go +++ b/pkg/rpcclient/actor/maker_test.go @@ -4,9 +4,9 @@ import ( "errors" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/client.go b/pkg/rpcclient/client.go index 12af5f0..92d0124 100644 --- a/pkg/rpcclient/client.go +++ b/pkg/rpcclient/client.go @@ -13,10 +13,10 @@ import ( "sync/atomic" "time" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/rpcclient/doc_test.go b/pkg/rpcclient/doc_test.go index 9e05a61..622cf0f 100644 --- a/pkg/rpcclient/doc_test.go +++ b/pkg/rpcclient/doc_test.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" ) func Example() { diff --git a/pkg/rpcclient/gas/gas.go b/pkg/rpcclient/gas/gas.go index c5dda22..07049dc 100644 --- a/pkg/rpcclient/gas/gas.go +++ b/pkg/rpcclient/gas/gas.go @@ -8,8 +8,8 @@ package for more details on NEP-17 interface. package gas import ( - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep17" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep17" ) // Hash stores the hash of the native GAS contract. diff --git a/pkg/rpcclient/gas/gas_test.go b/pkg/rpcclient/gas/gas_test.go index 3ca49e5..bec297c 100644 --- a/pkg/rpcclient/gas/gas_test.go +++ b/pkg/rpcclient/gas/gas_test.go @@ -3,9 +3,9 @@ package gas import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/invoker/compat_test.go b/pkg/rpcclient/invoker/compat_test.go index 1c875da..9ed155e 100644 --- a/pkg/rpcclient/invoker/compat_test.go +++ b/pkg/rpcclient/invoker/compat_test.go @@ -3,8 +3,8 @@ package invoker_test import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" ) func TestRPCInvokerRPCClientCompat(t *testing.T) { diff --git a/pkg/rpcclient/invoker/doc_test.go b/pkg/rpcclient/invoker/doc_test.go index 28476b8..118be6c 100644 --- a/pkg/rpcclient/invoker/doc_test.go +++ b/pkg/rpcclient/invoker/doc_test.go @@ -4,14 +4,14 @@ import ( "context" "errors" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neo" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neo" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" ) func ExampleInvoker() { diff --git a/pkg/rpcclient/invoker/invoker.go b/pkg/rpcclient/invoker/invoker.go index 9accb62..d575ac2 100644 --- a/pkg/rpcclient/invoker/invoker.go +++ b/pkg/rpcclient/invoker/invoker.go @@ -14,11 +14,11 @@ import ( "fmt" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // DefaultIteratorResultItems is the default number of results to diff --git a/pkg/rpcclient/invoker/invoker_test.go b/pkg/rpcclient/invoker/invoker_test.go index 4cc2656..92cf176 100644 --- a/pkg/rpcclient/invoker/invoker_test.go +++ b/pkg/rpcclient/invoker/invoker_test.go @@ -5,11 +5,11 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/local.go b/pkg/rpcclient/local.go index 128f52f..0f6e47b 100644 --- a/pkg/rpcclient/local.go +++ b/pkg/rpcclient/local.go @@ -3,7 +3,7 @@ package rpcclient import ( "context" - "github.com/nspcc-dev/neo-go/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc" ) // InternalHook is a function signature that is required to create a local client diff --git a/pkg/rpcclient/local_test.go b/pkg/rpcclient/local_test.go index b7347e8..6667873 100644 --- a/pkg/rpcclient/local_test.go +++ b/pkg/rpcclient/local_test.go @@ -4,10 +4,10 @@ import ( "context" "testing" - "github.com/nspcc-dev/neo-go/internal/testcli" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/internal/testcli" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/management/management.go b/pkg/rpcclient/management/management.go index d5391ce..1f8937c 100644 --- a/pkg/rpcclient/management/management.go +++ b/pkg/rpcclient/management/management.go @@ -14,16 +14,16 @@ import ( "math/big" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Invoker is used by ContractReader to call various methods. diff --git a/pkg/rpcclient/management/management_test.go b/pkg/rpcclient/management/management_test.go index e036be5..dc30e6a 100644 --- a/pkg/rpcclient/management/management_test.go +++ b/pkg/rpcclient/management/management_test.go @@ -7,12 +7,12 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/neo/doc_test.go b/pkg/rpcclient/neo/doc_test.go index 111309f..a94369c 100644 --- a/pkg/rpcclient/neo/doc_test.go +++ b/pkg/rpcclient/neo/doc_test.go @@ -6,13 +6,13 @@ import ( "math/big" "slices" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neo" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neo" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) func ExampleContractReader() { diff --git a/pkg/rpcclient/neo/neo.go b/pkg/rpcclient/neo/neo.go index 872cf67..5eef081 100644 --- a/pkg/rpcclient/neo/neo.go +++ b/pkg/rpcclient/neo/neo.go @@ -12,16 +12,16 @@ import ( "math/big" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep17" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep17" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) const ( diff --git a/pkg/rpcclient/neo/neo_test.go b/pkg/rpcclient/neo/neo_test.go index fb6252a..0e1534f 100644 --- a/pkg/rpcclient/neo/neo_test.go +++ b/pkg/rpcclient/neo/neo_test.go @@ -6,12 +6,12 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/nep11/base.go b/pkg/rpcclient/nep11/base.go index db906cb..7add829 100644 --- a/pkg/rpcclient/nep11/base.go +++ b/pkg/rpcclient/nep11/base.go @@ -16,13 +16,13 @@ import ( "unicode/utf8" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neptoken" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neptoken" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Invoker is used by reader types to call various methods. diff --git a/pkg/rpcclient/nep11/base_test.go b/pkg/rpcclient/nep11/base_test.go index 0aacd9f..8944740 100644 --- a/pkg/rpcclient/nep11/base_test.go +++ b/pkg/rpcclient/nep11/base_test.go @@ -6,10 +6,10 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/nep11/divisible.go b/pkg/rpcclient/nep11/divisible.go index ea16a05..f0a00a0 100644 --- a/pkg/rpcclient/nep11/divisible.go +++ b/pkg/rpcclient/nep11/divisible.go @@ -5,10 +5,10 @@ import ( "math/big" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/util" ) // DivisibleReader is a reader interface for divisible NEP-11 contract. diff --git a/pkg/rpcclient/nep11/divisible_test.go b/pkg/rpcclient/nep11/divisible_test.go index 84be946..06399aa 100644 --- a/pkg/rpcclient/nep11/divisible_test.go +++ b/pkg/rpcclient/nep11/divisible_test.go @@ -6,10 +6,10 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/nep11/doc_test.go b/pkg/rpcclient/nep11/doc_test.go index fc0768d..a71028d 100644 --- a/pkg/rpcclient/nep11/doc_test.go +++ b/pkg/rpcclient/nep11/doc_test.go @@ -4,13 +4,13 @@ import ( "context" "math/big" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) func ExampleNonDivisibleReader() { diff --git a/pkg/rpcclient/nep11/nondivisible.go b/pkg/rpcclient/nep11/nondivisible.go index 1ca2845..d717fa9 100644 --- a/pkg/rpcclient/nep11/nondivisible.go +++ b/pkg/rpcclient/nep11/nondivisible.go @@ -1,8 +1,8 @@ package nep11 import ( - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/util" ) // NonDivisibleReader is a reader interface for non-divisble NEP-11 contract. diff --git a/pkg/rpcclient/nep11/nondivisible_test.go b/pkg/rpcclient/nep11/nondivisible_test.go index dc2737a..d2ef189 100644 --- a/pkg/rpcclient/nep11/nondivisible_test.go +++ b/pkg/rpcclient/nep11/nondivisible_test.go @@ -4,9 +4,9 @@ import ( "errors" "testing" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/nep17/doc_test.go b/pkg/rpcclient/nep17/doc_test.go index 4bbb2e8..08ac2ec 100644 --- a/pkg/rpcclient/nep17/doc_test.go +++ b/pkg/rpcclient/nep17/doc_test.go @@ -4,13 +4,13 @@ import ( "context" "math/big" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep17" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep17" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) func ExampleTokenReader() { diff --git a/pkg/rpcclient/nep17/nep17.go b/pkg/rpcclient/nep17/nep17.go index dec570a..946a3ec 100644 --- a/pkg/rpcclient/nep17/nep17.go +++ b/pkg/rpcclient/nep17/nep17.go @@ -11,12 +11,12 @@ import ( "fmt" "math/big" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neptoken" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neptoken" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Invoker is used by TokenReader to call various safe methods. diff --git a/pkg/rpcclient/nep17/nep17_test.go b/pkg/rpcclient/nep17/nep17_test.go index ca99086..734a742 100644 --- a/pkg/rpcclient/nep17/nep17_test.go +++ b/pkg/rpcclient/nep17/nep17_test.go @@ -5,10 +5,10 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/nep22/nep22.go b/pkg/rpcclient/nep22/nep22.go index 8a4c9c7..29b6b81 100644 --- a/pkg/rpcclient/nep22/nep22.go +++ b/pkg/rpcclient/nep22/nep22.go @@ -6,9 +6,9 @@ Contract provides state-changing method of upgradeable contracts. package nep22 import ( - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Actor is used by Contract wrapper to create and send transactions. diff --git a/pkg/rpcclient/nep22/nep22_test.go b/pkg/rpcclient/nep22/nep22_test.go index 40fb564..2b062b4 100644 --- a/pkg/rpcclient/nep22/nep22_test.go +++ b/pkg/rpcclient/nep22/nep22_test.go @@ -4,9 +4,9 @@ import ( "errors" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/nep24/doc_test.go b/pkg/rpcclient/nep24/doc_test.go index 4dfb0e2..6586eb1 100644 --- a/pkg/rpcclient/nep24/doc_test.go +++ b/pkg/rpcclient/nep24/doc_test.go @@ -4,10 +4,10 @@ import ( "context" "math/big" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep24" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep24" + "github.com/tutus-one/tutus-chain/pkg/util" ) func ExampleRoyaltyReader() { diff --git a/pkg/rpcclient/nep24/royalty.go b/pkg/rpcclient/nep24/royalty.go index 4bcc729..ea05087 100644 --- a/pkg/rpcclient/nep24/royalty.go +++ b/pkg/rpcclient/nep24/royalty.go @@ -13,10 +13,10 @@ import ( "fmt" "math/big" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neptoken" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neptoken" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // RoyaltyRecipient contains information about the recipient and the royalty amount. diff --git a/pkg/rpcclient/nep24/royalty_test.go b/pkg/rpcclient/nep24/royalty_test.go index b39564d..44c8701 100644 --- a/pkg/rpcclient/nep24/royalty_test.go +++ b/pkg/rpcclient/nep24/royalty_test.go @@ -6,10 +6,10 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/nep31/nep31.go b/pkg/rpcclient/nep31/nep31.go index 520f41c..9aab5ce 100644 --- a/pkg/rpcclient/nep31/nep31.go +++ b/pkg/rpcclient/nep31/nep31.go @@ -6,9 +6,9 @@ Contract provides state-changing method of destroyable contracts. package nep31 import ( - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Actor is used by Contract wrapper to create and send transactions. diff --git a/pkg/rpcclient/nep31/nep31_test.go b/pkg/rpcclient/nep31/nep31_test.go index e9c810b..4bdf3f4 100644 --- a/pkg/rpcclient/nep31/nep31_test.go +++ b/pkg/rpcclient/nep31/nep31_test.go @@ -4,8 +4,8 @@ import ( "errors" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/neptoken/base.go b/pkg/rpcclient/neptoken/base.go index 57b504f..6bda4e8 100644 --- a/pkg/rpcclient/neptoken/base.go +++ b/pkg/rpcclient/neptoken/base.go @@ -8,9 +8,9 @@ package neptoken import ( "math/big" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/rpcclient/neptoken/base_test.go b/pkg/rpcclient/neptoken/base_test.go index f1c8533..7bd4786 100644 --- a/pkg/rpcclient/neptoken/base_test.go +++ b/pkg/rpcclient/neptoken/base_test.go @@ -5,9 +5,9 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/neptoken/info.go b/pkg/rpcclient/neptoken/info.go index d6dfed2..f8d3f1c 100644 --- a/pkg/rpcclient/neptoken/info.go +++ b/pkg/rpcclient/neptoken/info.go @@ -3,11 +3,11 @@ package neptoken import ( "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) // InfoClient is a set of RPC methods required to get all of the NEP-11/NEP-17 diff --git a/pkg/rpcclient/neptoken/info_test.go b/pkg/rpcclient/neptoken/info_test.go index 5fc5507..be32404 100644 --- a/pkg/rpcclient/neptoken/info_test.go +++ b/pkg/rpcclient/neptoken/info_test.go @@ -5,16 +5,16 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/nns/contract.go b/pkg/rpcclient/nns/contract.go index f73d5b0..3489cb2 100644 --- a/pkg/rpcclient/nns/contract.go +++ b/pkg/rpcclient/nns/contract.go @@ -9,13 +9,13 @@ import ( "math/big" "unicode/utf8" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // MaxNameLength is the max length of domain name. diff --git a/pkg/rpcclient/nns/contract_test.go b/pkg/rpcclient/nns/contract_test.go index 5a1efe5..d3211aa 100644 --- a/pkg/rpcclient/nns/contract_test.go +++ b/pkg/rpcclient/nns/contract_test.go @@ -6,11 +6,11 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/nns/iterators.go b/pkg/rpcclient/nns/iterators.go index 95b1abc..d5f05c9 100644 --- a/pkg/rpcclient/nns/iterators.go +++ b/pkg/rpcclient/nns/iterators.go @@ -5,8 +5,8 @@ import ( "fmt" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // RecordIterator is used for iterating over GetAllRecords results. diff --git a/pkg/rpcclient/nns/record.go b/pkg/rpcclient/nns/record.go index 17ad4b4..c6175e7 100644 --- a/pkg/rpcclient/nns/record.go +++ b/pkg/rpcclient/nns/record.go @@ -5,8 +5,8 @@ import ( "fmt" "math/big" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // RecordState is a type that registered entities are saved as. diff --git a/pkg/rpcclient/nns/record_test.go b/pkg/rpcclient/nns/record_test.go index 865454f..a4fc4d6 100644 --- a/pkg/rpcclient/nns/record_test.go +++ b/pkg/rpcclient/nns/record_test.go @@ -3,7 +3,7 @@ package nns import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/notary/accounts.go b/pkg/rpcclient/notary/accounts.go index e2b6c69..794bed3 100644 --- a/pkg/rpcclient/notary/accounts.go +++ b/pkg/rpcclient/notary/accounts.go @@ -1,12 +1,12 @@ package notary import ( - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) // FakeSimpleAccount creates a fake account belonging to the given public key. diff --git a/pkg/rpcclient/notary/accounts_test.go b/pkg/rpcclient/notary/accounts_test.go index a87f3ca..077c6b2 100644 --- a/pkg/rpcclient/notary/accounts_test.go +++ b/pkg/rpcclient/notary/accounts_test.go @@ -3,9 +3,9 @@ package notary import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/notary/actor.go b/pkg/rpcclient/notary/actor.go index a1d9b35..a743ad0 100644 --- a/pkg/rpcclient/notary/actor.go +++ b/pkg/rpcclient/notary/actor.go @@ -5,19 +5,19 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) var ( diff --git a/pkg/rpcclient/notary/actor_test.go b/pkg/rpcclient/notary/actor_test.go index 994590b..faa87fd 100644 --- a/pkg/rpcclient/notary/actor_test.go +++ b/pkg/rpcclient/notary/actor_test.go @@ -6,23 +6,23 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/waiter" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/waiter" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/notary/contract.go b/pkg/rpcclient/notary/contract.go index aa58d30..6d4ce1b 100644 --- a/pkg/rpcclient/notary/contract.go +++ b/pkg/rpcclient/notary/contract.go @@ -13,13 +13,13 @@ import ( "math" "math/big" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) const ( diff --git a/pkg/rpcclient/notary/contract_test.go b/pkg/rpcclient/notary/contract_test.go index 170d247..19015a4 100644 --- a/pkg/rpcclient/notary/contract_test.go +++ b/pkg/rpcclient/notary/contract_test.go @@ -7,11 +7,11 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/notary/doc_test.go b/pkg/rpcclient/notary/doc_test.go index 7cdb98d..c585a23 100644 --- a/pkg/rpcclient/notary/doc_test.go +++ b/pkg/rpcclient/notary/doc_test.go @@ -5,14 +5,14 @@ import ( "math/big" "time" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/gas" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/notary" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/policy" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/gas" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/notary" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/policy" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) func ExampleActor() { diff --git a/pkg/rpcclient/oracle/oracle.go b/pkg/rpcclient/oracle/oracle.go index d658fda..07b1063 100644 --- a/pkg/rpcclient/oracle/oracle.go +++ b/pkg/rpcclient/oracle/oracle.go @@ -9,11 +9,11 @@ package oracle import ( "math/big" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Invoker is used by ContractReader to call various methods. diff --git a/pkg/rpcclient/oracle/oracle_test.go b/pkg/rpcclient/oracle/oracle_test.go index aad3386..ed8444a 100644 --- a/pkg/rpcclient/oracle/oracle_test.go +++ b/pkg/rpcclient/oracle/oracle_test.go @@ -5,10 +5,10 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/policy/policy.go b/pkg/rpcclient/policy/policy.go index ff87c7e..b07479d 100644 --- a/pkg/rpcclient/policy/policy.go +++ b/pkg/rpcclient/policy/policy.go @@ -12,13 +12,13 @@ import ( "fmt" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Invoker is used by ContractReader to call various methods. diff --git a/pkg/rpcclient/policy/policy_test.go b/pkg/rpcclient/policy/policy_test.go index fba2db8..cf264a1 100644 --- a/pkg/rpcclient/policy/policy_test.go +++ b/pkg/rpcclient/policy/policy_test.go @@ -5,10 +5,10 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/rolemgmt/roles.go b/pkg/rpcclient/rolemgmt/roles.go index 1b2c320..8221ce0 100644 --- a/pkg/rpcclient/rolemgmt/roles.go +++ b/pkg/rpcclient/rolemgmt/roles.go @@ -11,14 +11,14 @@ import ( "fmt" "math" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Invoker is used by ContractReader to call various methods. diff --git a/pkg/rpcclient/rolemgmt/roles_test.go b/pkg/rpcclient/rolemgmt/roles_test.go index 34ee9ea..24ad58e 100644 --- a/pkg/rpcclient/rolemgmt/roles_test.go +++ b/pkg/rpcclient/rolemgmt/roles_test.go @@ -6,12 +6,12 @@ import ( "math" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/rpc.go b/pkg/rpcclient/rpc.go index 904a954..fd65f9a 100644 --- a/pkg/rpcclient/rpc.go +++ b/pkg/rpcclient/rpc.go @@ -8,20 +8,20 @@ import ( "fmt" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) var errNetworkNotInitialized = errors.New("RPC client network is not initialized") diff --git a/pkg/rpcclient/rpc_test.go b/pkg/rpcclient/rpc_test.go index cd1467d..33f9bd4 100644 --- a/pkg/rpcclient/rpc_test.go +++ b/pkg/rpcclient/rpc_test.go @@ -14,28 +14,28 @@ import ( "time" "github.com/gorilla/websocket" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/encoding/fixedn" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/services/rpcsrv/params" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/encoding/fixedn" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/services/rpcsrv/params" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/unwrap/unwrap.go b/pkg/rpcclient/unwrap/unwrap.go index c6596f0..fb1df49 100644 --- a/pkg/rpcclient/unwrap/unwrap.go +++ b/pkg/rpcclient/unwrap/unwrap.go @@ -18,11 +18,11 @@ import ( "unicode/utf8" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" ) // Exception is a type used for VM fault messages (aka exceptions). If any of diff --git a/pkg/rpcclient/unwrap/unwrap_test.go b/pkg/rpcclient/unwrap/unwrap_test.go index 03553e3..dacd556 100644 --- a/pkg/rpcclient/unwrap/unwrap_test.go +++ b/pkg/rpcclient/unwrap/unwrap_test.go @@ -8,11 +8,11 @@ import ( "testing" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/waiter/waiter.go b/pkg/rpcclient/waiter/waiter.go index 748625a..5b5045f 100644 --- a/pkg/rpcclient/waiter/waiter.go +++ b/pkg/rpcclient/waiter/waiter.go @@ -6,12 +6,12 @@ import ( "fmt" "time" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" ) // DefaultPollRetryCount is a threshold for a number of subsequent failed diff --git a/pkg/rpcclient/waiter/waiter_test.go b/pkg/rpcclient/waiter/waiter_test.go index 395bfe5..b259e5b 100644 --- a/pkg/rpcclient/waiter/waiter_test.go +++ b/pkg/rpcclient/waiter/waiter_test.go @@ -9,18 +9,18 @@ import ( "time" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/waiter" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/waiter" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/rpcclient/wsclient.go b/pkg/rpcclient/wsclient.go index 8146887..c955883 100644 --- a/pkg/rpcclient/wsclient.go +++ b/pkg/rpcclient/wsclient.go @@ -11,12 +11,12 @@ import ( "time" "github.com/gorilla/websocket" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/neorpc/rpcevent" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/neorpc/rpcevent" ) // WSClient is a websocket-enabled RPC client that can be used with appropriate @@ -44,7 +44,7 @@ import ( // still the user responsibility to unsubscribe. // // All Receive* methods provide notifications ordering and persistence guarantees. -// See https://github.com/nspcc-dev/neo-go/blob/master/docs/notifications.md#ordering-and-persistence-guarantees +// See https://github.com/tutus-one/tutus-chain/blob/master/docs/notifications.md#ordering-and-persistence-guarantees // for more details on this topic. // // Any received subscription items (blocks/transactions/notifications) are passed diff --git a/pkg/rpcclient/wsclient_test.go b/pkg/rpcclient/wsclient_test.go index 0dbad72..f8b1b0b 100644 --- a/pkg/rpcclient/wsclient_test.go +++ b/pkg/rpcclient/wsclient_test.go @@ -15,18 +15,18 @@ import ( "time" "github.com/gorilla/websocket" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/services/rpcsrv/params" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/services/rpcsrv/params" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/services/blockfetcher/blockfetcher.go b/pkg/services/blockfetcher/blockfetcher.go index c2d70cc..6f0056b 100644 --- a/pkg/services/blockfetcher/blockfetcher.go +++ b/pkg/services/blockfetcher/blockfetcher.go @@ -12,11 +12,11 @@ import ( "sync" "sync/atomic" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/block" - gio "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/bqueue" - "github.com/nspcc-dev/neo-go/pkg/services/helpers/neofs" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/block" + gio "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/bqueue" + "github.com/tutus-one/tutus-chain/pkg/services/helpers/neofs" "github.com/nspcc-dev/neofs-sdk-go/client" "github.com/nspcc-dev/neofs-sdk-go/container" "github.com/nspcc-dev/neofs-sdk-go/object" diff --git a/pkg/services/blockfetcher/blockfetcher_test.go b/pkg/services/blockfetcher/blockfetcher_test.go index 8f1ba7c..d37a8af 100644 --- a/pkg/services/blockfetcher/blockfetcher_test.go +++ b/pkg/services/blockfetcher/blockfetcher_test.go @@ -3,9 +3,9 @@ package blockfetcher import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/network/bqueue" - "github.com/nspcc-dev/neo-go/pkg/services/helpers/neofs" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/network/bqueue" + "github.com/tutus-one/tutus-chain/pkg/services/helpers/neofs" "github.com/stretchr/testify/require" "go.uber.org/zap" ) diff --git a/pkg/services/helpers/neofs/blockstorage.go b/pkg/services/helpers/neofs/blockstorage.go index 3460d7d..ff91c8e 100644 --- a/pkg/services/helpers/neofs/blockstorage.go +++ b/pkg/services/helpers/neofs/blockstorage.go @@ -6,8 +6,8 @@ import ( "strings" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/wallet" cid "github.com/nspcc-dev/neofs-sdk-go/container/id" "github.com/nspcc-dev/neofs-sdk-go/pool" "github.com/nspcc-dev/neofs-sdk-go/user" diff --git a/pkg/services/helpers/neofs/neofs.go b/pkg/services/helpers/neofs/neofs.go index 1098353..4c2c702 100644 --- a/pkg/services/helpers/neofs/neofs.go +++ b/pkg/services/helpers/neofs/neofs.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/nspcc-dev/neofs-sdk-go/client" cid "github.com/nspcc-dev/neofs-sdk-go/container/id" neofscrypto "github.com/nspcc-dev/neofs-sdk-go/crypto" diff --git a/pkg/services/helpers/rpcbroadcaster/client.go b/pkg/services/helpers/rpcbroadcaster/client.go index 5790002..2ab8d77 100644 --- a/pkg/services/helpers/rpcbroadcaster/client.go +++ b/pkg/services/helpers/rpcbroadcaster/client.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" "go.uber.org/zap" ) diff --git a/pkg/services/metrics/metrics.go b/pkg/services/metrics/metrics.go index 039182b..5918974 100644 --- a/pkg/services/metrics/metrics.go +++ b/pkg/services/metrics/metrics.go @@ -8,7 +8,7 @@ import ( "net/http" "sync/atomic" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config" "go.uber.org/zap" ) diff --git a/pkg/services/metrics/pprof.go b/pkg/services/metrics/pprof.go index 07dd78d..114f3c3 100644 --- a/pkg/services/metrics/pprof.go +++ b/pkg/services/metrics/pprof.go @@ -4,7 +4,7 @@ import ( "net/http" "net/http/pprof" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config" "go.uber.org/zap" ) diff --git a/pkg/services/metrics/prometheus.go b/pkg/services/metrics/prometheus.go index 2932e17..1fc49b1 100644 --- a/pkg/services/metrics/prometheus.go +++ b/pkg/services/metrics/prometheus.go @@ -3,7 +3,7 @@ package metrics import ( "net/http" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config" "github.com/prometheus/client_golang/prometheus/promhttp" "go.uber.org/zap" ) diff --git a/pkg/services/notary/core_test.go b/pkg/services/notary/core_test.go index f35a6f6..15caa01 100644 --- a/pkg/services/notary/core_test.go +++ b/pkg/services/notary/core_test.go @@ -9,28 +9,28 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/network" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/services/notary" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/network" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/services/notary" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" ) diff --git a/pkg/services/notary/node.go b/pkg/services/notary/node.go index cc20347..0816cdb 100644 --- a/pkg/services/notary/node.go +++ b/pkg/services/notary/node.go @@ -3,10 +3,10 @@ package notary import ( "slices" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" "go.uber.org/zap" ) diff --git a/pkg/services/notary/node_test.go b/pkg/services/notary/node_test.go index 93c666d..f2d53e2 100644 --- a/pkg/services/notary/node_test.go +++ b/pkg/services/notary/node_test.go @@ -3,12 +3,12 @@ package notary import ( "testing" - "github.com/nspcc-dev/neo-go/internal/fakechain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/fakechain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" ) diff --git a/pkg/services/notary/notary.go b/pkg/services/notary/notary.go index f246574..df0bae8 100644 --- a/pkg/services/notary/notary.go +++ b/pkg/services/notary/notary.go @@ -10,21 +10,21 @@ import ( "sync" "sync/atomic" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/wallet" "go.uber.org/zap" ) @@ -527,7 +527,7 @@ func (n *Notary) verifyIncompleteWitnesses(tx *transaction.Transaction, nKeysExp } continue } - if !tx.Signers[i].Account.Equals(hash.Hash160(w.VerificationScript)) { // https://github.com/nspcc-dev/neo-go/pull/1658#discussion_r564265987 + if !tx.Signers[i].Account.Equals(hash.Hash160(w.VerificationScript)) { // https://github.com/tutus-one/tutus-chain/pull/1658#discussion_r564265987 return nil, fmt.Errorf("transaction should have valid verification script for signer #%d", i) } // Each verification script is allowed to have either one signature or zero signatures. If signature is provided, then need to verify it. diff --git a/pkg/services/notary/notary_test.go b/pkg/services/notary/notary_test.go index afc630f..17bb9b9 100644 --- a/pkg/services/notary/notary_test.go +++ b/pkg/services/notary/notary_test.go @@ -3,16 +3,16 @@ package notary import ( "testing" - "github.com/nspcc-dev/neo-go/internal/fakechain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/internal/fakechain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" ) diff --git a/pkg/services/oracle/broadcaster/oracle.go b/pkg/services/oracle/broadcaster/oracle.go index b5e5cd2..e60726b 100644 --- a/pkg/services/oracle/broadcaster/oracle.go +++ b/pkg/services/oracle/broadcaster/oracle.go @@ -5,11 +5,11 @@ import ( "encoding/binary" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/services/helpers/rpcbroadcaster" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/services/helpers/rpcbroadcaster" "go.uber.org/zap" ) diff --git a/pkg/services/oracle/filter.go b/pkg/services/oracle/filter.go index 2c92f3d..bcf4ced 100644 --- a/pkg/services/oracle/filter.go +++ b/pkg/services/oracle/filter.go @@ -6,8 +6,8 @@ import ( "unicode/utf8" json "github.com/nspcc-dev/go-ordered-json" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/services/oracle/jsonpath" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/services/oracle/jsonpath" ) func filter(value []byte, path string) ([]byte, error) { diff --git a/pkg/services/oracle/network.go b/pkg/services/oracle/network.go index cafdbe4..ec9a79c 100644 --- a/pkg/services/oracle/network.go +++ b/pkg/services/oracle/network.go @@ -7,7 +7,7 @@ import ( "slices" "syscall" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config" ) // reservedCIDRs is a list of ip addresses for private networks. diff --git a/pkg/services/oracle/network_test.go b/pkg/services/oracle/network_test.go index b3ba2a9..656b990 100644 --- a/pkg/services/oracle/network_test.go +++ b/pkg/services/oracle/network_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config" "github.com/stretchr/testify/require" ) diff --git a/pkg/services/oracle/nodes.go b/pkg/services/oracle/nodes.go index e720bd8..f1e4d8a 100644 --- a/pkg/services/oracle/nodes.go +++ b/pkg/services/oracle/nodes.go @@ -3,10 +3,10 @@ package oracle import ( "slices" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/wallet" "go.uber.org/zap" ) diff --git a/pkg/services/oracle/oracle.go b/pkg/services/oracle/oracle.go index 19911ee..c6d8c4b 100644 --- a/pkg/services/oracle/oracle.go +++ b/pkg/services/oracle/oracle.go @@ -8,17 +8,17 @@ import ( "sync" "time" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/services/oracle/broadcaster" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/services/oracle/broadcaster" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" "go.uber.org/zap" ) diff --git a/pkg/services/oracle/oracle_test.go b/pkg/services/oracle/oracle_test.go index 2397283..0b81d35 100644 --- a/pkg/services/oracle/oracle_test.go +++ b/pkg/services/oracle/oracle_test.go @@ -14,25 +14,25 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/contracts" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/interop/native/roles" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/services/oracle" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/contracts" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/interop/native/roles" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/services/oracle" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" diff --git a/pkg/services/oracle/request.go b/pkg/services/oracle/request.go index 2cb402c..597d155 100644 --- a/pkg/services/oracle/request.go +++ b/pkg/services/oracle/request.go @@ -10,11 +10,11 @@ import ( "slices" "time" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/services/helpers/neofs" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/services/helpers/neofs" "go.uber.org/zap" ) diff --git a/pkg/services/oracle/response.go b/pkg/services/oracle/response.go index 5232866..5a25ba8 100644 --- a/pkg/services/oracle/response.go +++ b/pkg/services/oracle/response.go @@ -6,15 +6,15 @@ import ( gio "io" "unicode/utf8" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" "go.uber.org/zap" ) diff --git a/pkg/services/oracle/transaction.go b/pkg/services/oracle/transaction.go index 7f1ccc5..2bf56b9 100644 --- a/pkg/services/oracle/transaction.go +++ b/pkg/services/oracle/transaction.go @@ -4,14 +4,14 @@ import ( "sync" "time" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" ) type ( diff --git a/pkg/services/rpcsrv/client_test.go b/pkg/services/rpcsrv/client_test.go index eb99362..ab3608a 100644 --- a/pkg/services/rpcsrv/client_test.go +++ b/pkg/services/rpcsrv/client_test.go @@ -18,54 +18,54 @@ import ( "github.com/google/uuid" "github.com/gorilla/websocket" - "github.com/nspcc-dev/neo-go/internal/basicchain" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/network" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/gas" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/management" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neo" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep17" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nep24" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neptoken" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/nns" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/notary" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/oracle" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/policy" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/rolemgmt" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/waiter" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/basicchain" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/network" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/gas" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/management" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neo" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep17" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nep24" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neptoken" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/nns" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/notary" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/oracle" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/policy" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/rolemgmt" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/waiter" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/services/rpcsrv/error.go b/pkg/services/rpcsrv/error.go index 19d52be..a4ab7d5 100644 --- a/pkg/services/rpcsrv/error.go +++ b/pkg/services/rpcsrv/error.go @@ -1,7 +1,7 @@ package rpcsrv import ( - "github.com/nspcc-dev/neo-go/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc" ) // abstractResult is an interface which represents either single JSON-RPC 2.0 response diff --git a/pkg/services/rpcsrv/local_test.go b/pkg/services/rpcsrv/local_test.go index 66c8c51..45e14d7 100644 --- a/pkg/services/rpcsrv/local_test.go +++ b/pkg/services/rpcsrv/local_test.go @@ -5,14 +5,14 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/gas" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/invoker" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/gas" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/invoker" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/pkg/services/rpcsrv/notification_comparator.go b/pkg/services/rpcsrv/notification_comparator.go index 0660388..44097ca 100644 --- a/pkg/services/rpcsrv/notification_comparator.go +++ b/pkg/services/rpcsrv/notification_comparator.go @@ -1,11 +1,11 @@ package rpcsrv import ( - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/rpcevent" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/rpcevent" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" ) // notificationEventComparator is a comparator for notification events. diff --git a/pkg/services/rpcsrv/params/param.go b/pkg/services/rpcsrv/params/param.go index 513a1dd..8363441 100644 --- a/pkg/services/rpcsrv/params/param.go +++ b/pkg/services/rpcsrv/params/param.go @@ -12,12 +12,12 @@ import ( "strings" "github.com/google/uuid" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" ) type ( diff --git a/pkg/services/rpcsrv/params/param_test.go b/pkg/services/rpcsrv/params/param_test.go index ff1a701..a444451 100644 --- a/pkg/services/rpcsrv/params/param_test.go +++ b/pkg/services/rpcsrv/params/param_test.go @@ -10,11 +10,11 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/services/rpcsrv/params/params_test.go b/pkg/services/rpcsrv/params/params_test.go index 4152031..791cd8f 100644 --- a/pkg/services/rpcsrv/params/params_test.go +++ b/pkg/services/rpcsrv/params/params_test.go @@ -3,7 +3,7 @@ package params import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" "github.com/stretchr/testify/require" ) diff --git a/pkg/services/rpcsrv/params/txBuilder.go b/pkg/services/rpcsrv/params/txBuilder.go index fc1091a..ba3fdda 100644 --- a/pkg/services/rpcsrv/params/txBuilder.go +++ b/pkg/services/rpcsrv/params/txBuilder.go @@ -4,13 +4,13 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) // ExpandFuncParameterIntoScript pushes provided FuncParam parameter diff --git a/pkg/services/rpcsrv/params/tx_builder_test.go b/pkg/services/rpcsrv/params/tx_builder_test.go index 8df5598..b6a972e 100644 --- a/pkg/services/rpcsrv/params/tx_builder_test.go +++ b/pkg/services/rpcsrv/params/tx_builder_test.go @@ -6,9 +6,9 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/services/rpcsrv/params/types.go b/pkg/services/rpcsrv/params/types.go index 394cc42..d250b4f 100644 --- a/pkg/services/rpcsrv/params/types.go +++ b/pkg/services/rpcsrv/params/types.go @@ -7,7 +7,7 @@ import ( "fmt" "io" - "github.com/nspcc-dev/neo-go/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc" ) const ( diff --git a/pkg/services/rpcsrv/server.go b/pkg/services/rpcsrv/server.go index 63b1725..98a00f9 100644 --- a/pkg/services/rpcsrv/server.go +++ b/pkg/services/rpcsrv/server.go @@ -21,41 +21,41 @@ import ( "github.com/google/uuid" "github.com/gorilla/websocket" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/limits" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/iterator" - "github.com/nspcc-dev/neo-go/pkg/core/mempool" - "github.com/nspcc-dev/neo-go/pkg/core/mempoolevent" - "github.com/nspcc-dev/neo-go/pkg/core/mpt" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/neorpc/rpcevent" - "github.com/nspcc-dev/neo-go/pkg/network" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/services/oracle/broadcaster" - "github.com/nspcc-dev/neo-go/pkg/services/rpcsrv/params" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest/standard" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/limits" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/iterator" + "github.com/tutus-one/tutus-chain/pkg/core/mempool" + "github.com/tutus-one/tutus-chain/pkg/core/mempoolevent" + "github.com/tutus-one/tutus-chain/pkg/core/mpt" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/neorpc/rpcevent" + "github.com/tutus-one/tutus-chain/pkg/network" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/services/oracle/broadcaster" + "github.com/tutus-one/tutus-chain/pkg/services/rpcsrv/params" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest/standard" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "go.uber.org/zap" ) diff --git a/pkg/services/rpcsrv/server_helper_test.go b/pkg/services/rpcsrv/server_helper_test.go index 5600783..2e5711d 100644 --- a/pkg/services/rpcsrv/server_helper_test.go +++ b/pkg/services/rpcsrv/server_helper_test.go @@ -8,17 +8,17 @@ import ( "os" "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network" - "github.com/nspcc-dev/neo-go/pkg/services/oracle" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network" + "github.com/tutus-one/tutus-chain/pkg/services/oracle" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" "go.uber.org/zap" "go.uber.org/zap/zaptest" diff --git a/pkg/services/rpcsrv/server_test.go b/pkg/services/rpcsrv/server_test.go index 3fdd3f8..d49d405 100644 --- a/pkg/services/rpcsrv/server_test.go +++ b/pkg/services/rpcsrv/server_test.go @@ -23,38 +23,38 @@ import ( "github.com/google/uuid" "github.com/gorilla/websocket" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/fee" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativehashes" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/storage/dboper" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" - "github.com/nspcc-dev/neo-go/pkg/network" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - rpc2 "github.com/nspcc-dev/neo-go/pkg/services/oracle/broadcaster" - "github.com/nspcc-dev/neo-go/pkg/services/rpcsrv/params" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/invocations" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/fee" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativehashes" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/storage/dboper" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/network" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + rpc2 "github.com/tutus-one/tutus-chain/pkg/services/oracle/broadcaster" + "github.com/tutus-one/tutus-chain/pkg/services/rpcsrv/params" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/invocations" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/zap/zapcore" diff --git a/pkg/services/rpcsrv/subscription.go b/pkg/services/rpcsrv/subscription.go index 96d4969..5c80f20 100644 --- a/pkg/services/rpcsrv/subscription.go +++ b/pkg/services/rpcsrv/subscription.go @@ -4,7 +4,7 @@ import ( "sync/atomic" "github.com/gorilla/websocket" - "github.com/nspcc-dev/neo-go/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/neorpc" ) type ( diff --git a/pkg/services/rpcsrv/subscription_test.go b/pkg/services/rpcsrv/subscription_test.go index ecafa2b..8068a52 100644 --- a/pkg/services/rpcsrv/subscription_test.go +++ b/pkg/services/rpcsrv/subscription_test.go @@ -11,14 +11,14 @@ import ( "time" "github.com/gorilla/websocket" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/neorpc" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/neorpc" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/services/rpcsrv/tokens.go b/pkg/services/rpcsrv/tokens.go index 38530fa..91086e9 100644 --- a/pkg/services/rpcsrv/tokens.go +++ b/pkg/services/rpcsrv/tokens.go @@ -1,7 +1,7 @@ package rpcsrv import ( - "github.com/nspcc-dev/neo-go/pkg/neorpc/result" + "github.com/tutus-one/tutus-chain/pkg/neorpc/result" ) // tokenTransfers is a generic type used to represent NEP-11 and NEP-17 transfers. diff --git a/pkg/services/statefetcher/statefetcher.go b/pkg/services/statefetcher/statefetcher.go index b2676a4..5632fa9 100644 --- a/pkg/services/statefetcher/statefetcher.go +++ b/pkg/services/statefetcher/statefetcher.go @@ -11,11 +11,11 @@ import ( "sync" "sync/atomic" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - gio "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/services/helpers/neofs" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + gio "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/services/helpers/neofs" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/nspcc-dev/neofs-sdk-go/client" "github.com/nspcc-dev/neofs-sdk-go/container" "github.com/nspcc-dev/neofs-sdk-go/object" diff --git a/pkg/services/statefetcher/statefetcher_test.go b/pkg/services/statefetcher/statefetcher_test.go index 51e3ee0..4d70312 100644 --- a/pkg/services/statefetcher/statefetcher_test.go +++ b/pkg/services/statefetcher/statefetcher_test.go @@ -3,9 +3,9 @@ package statefetcher import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" "go.uber.org/zap" ) diff --git a/pkg/services/stateroot/message.go b/pkg/services/stateroot/message.go index d96b6e2..1106a82 100644 --- a/pkg/services/stateroot/message.go +++ b/pkg/services/stateroot/message.go @@ -3,8 +3,8 @@ package stateroot import ( "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/io" ) type ( diff --git a/pkg/services/stateroot/network.go b/pkg/services/stateroot/network.go index cb586e2..2a00ae0 100644 --- a/pkg/services/stateroot/network.go +++ b/pkg/services/stateroot/network.go @@ -4,13 +4,13 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/wallet" "go.uber.org/zap" ) diff --git a/pkg/services/stateroot/service.go b/pkg/services/stateroot/service.go index 519233d..93e2d98 100644 --- a/pkg/services/stateroot/service.go +++ b/pkg/services/stateroot/service.go @@ -7,16 +7,16 @@ import ( "sync" "sync/atomic" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/stateroot" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/stateroot" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/wallet" "go.uber.org/zap" ) diff --git a/pkg/services/stateroot/service_test.go b/pkg/services/stateroot/service_test.go index 56f6c95..cbacbb3 100644 --- a/pkg/services/stateroot/service_test.go +++ b/pkg/services/stateroot/service_test.go @@ -8,30 +8,30 @@ import ( "testing" "time" - "github.com/nspcc-dev/neo-go/internal/basicchain" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" - "github.com/nspcc-dev/neo-go/pkg/core/native/noderoles" - "github.com/nspcc-dev/neo-go/pkg/core/state" - corestate "github.com/nspcc-dev/neo-go/pkg/core/stateroot" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/interop/native/roles" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/neotest" - "github.com/nspcc-dev/neo-go/pkg/neotest/chain" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/services/stateroot" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/basicchain" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/core/native/noderoles" + "github.com/tutus-one/tutus-chain/pkg/core/state" + corestate "github.com/tutus-one/tutus-chain/pkg/core/stateroot" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/interop/native/roles" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/neotest" + "github.com/tutus-one/tutus-chain/pkg/neotest/chain" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/services/stateroot" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" "go.uber.org/zap/zaptest" ) diff --git a/pkg/services/stateroot/signature.go b/pkg/services/stateroot/signature.go index cc1cf07..cad8099 100644 --- a/pkg/services/stateroot/signature.go +++ b/pkg/services/stateroot/signature.go @@ -3,14 +3,14 @@ package stateroot import ( "sync" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" ) type ( diff --git a/pkg/services/stateroot/validators.go b/pkg/services/stateroot/validators.go index aca3d67..ba8d394 100644 --- a/pkg/services/stateroot/validators.go +++ b/pkg/services/stateroot/validators.go @@ -3,12 +3,12 @@ package stateroot import ( "time" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/network/payload" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/network/payload" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/wallet" "go.uber.org/zap" ) diff --git a/pkg/services/stateroot/vote.go b/pkg/services/stateroot/vote.go index 73b1aed..2029e57 100644 --- a/pkg/services/stateroot/vote.go +++ b/pkg/services/stateroot/vote.go @@ -1,8 +1,8 @@ package stateroot import ( - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" ) // Vote represents a vote message. diff --git a/pkg/smartcontract/binding/generate.go b/pkg/smartcontract/binding/generate.go index 3ae15e7..fd4bbe0 100644 --- a/pkg/smartcontract/binding/generate.go +++ b/pkg/smartcontract/binding/generate.go @@ -12,10 +12,10 @@ import ( "text/template" "unicode" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" ) const srcTmpl = ` @@ -155,9 +155,9 @@ func NewConfig() Config { // lead to unexpected results. func Generate(cfg Config) error { ctr := TemplateFromManifest(cfg, scTypeToGo) - ctr.Imports = append(ctr.Imports, "github.com/nspcc-dev/neo-go/pkg/interop/contract") + ctr.Imports = append(ctr.Imports, "github.com/tutus-one/tutus-chain/pkg/interop/contract") if ctr.Hash != "" { - ctr.Imports = append(ctr.Imports, "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal") + ctr.Imports = append(ctr.Imports, "github.com/tutus-one/tutus-chain/pkg/interop/neogointernal") } slices.Sort(ctr.Imports) @@ -206,13 +206,13 @@ func scTypeToGo(name string, typ smartcontract.ParamType, cfg *Config) (string, case smartcontract.StringType: return "string", "" case smartcontract.Hash160Type: - return "interop.Hash160", "github.com/nspcc-dev/neo-go/pkg/interop" + return "interop.Hash160", "github.com/tutus-one/tutus-chain/pkg/interop" case smartcontract.Hash256Type: - return "interop.Hash256", "github.com/nspcc-dev/neo-go/pkg/interop" + return "interop.Hash256", "github.com/tutus-one/tutus-chain/pkg/interop" case smartcontract.PublicKeyType: - return "interop.PublicKey", "github.com/nspcc-dev/neo-go/pkg/interop" + return "interop.PublicKey", "github.com/tutus-one/tutus-chain/pkg/interop" case smartcontract.SignatureType: - return "interop.Signature", "github.com/nspcc-dev/neo-go/pkg/interop" + return "interop.Signature", "github.com/tutus-one/tutus-chain/pkg/interop" case smartcontract.ArrayType: return "[]any", "" case smartcontract.MapType: diff --git a/pkg/smartcontract/binding/generate_test.go b/pkg/smartcontract/binding/generate_test.go index 64522d2..62ecac3 100644 --- a/pkg/smartcontract/binding/generate_test.go +++ b/pkg/smartcontract/binding/generate_test.go @@ -3,7 +3,7 @@ package binding import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" "github.com/stretchr/testify/assert" ) diff --git a/pkg/smartcontract/binding/override.go b/pkg/smartcontract/binding/override.go index 52f95bc..8892153 100644 --- a/pkg/smartcontract/binding/override.go +++ b/pkg/smartcontract/binding/override.go @@ -35,9 +35,9 @@ func NewOverrideFromString(s string) Override { switch over.Package { case "iterator", "storage": - over.Package = "github.com/nspcc-dev/neo-go/pkg/interop/" + over.Package + over.Package = "github.com/tutus-one/tutus-chain/pkg/interop/" + over.Package case "ledger", "management": - over.Package = "github.com/nspcc-dev/neo-go/pkg/interop/native/" + over.Package + over.Package = "github.com/tutus-one/tutus-chain/pkg/interop/native/" + over.Package } slashIndex := strings.LastIndexByte(s, '/') diff --git a/pkg/smartcontract/builder.go b/pkg/smartcontract/builder.go index 016dd5d..63a63f3 100644 --- a/pkg/smartcontract/builder.go +++ b/pkg/smartcontract/builder.go @@ -1,11 +1,11 @@ package smartcontract import ( - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) // Builder is used to create arbitrary scripts from the set of methods it provides. diff --git a/pkg/smartcontract/builder_test.go b/pkg/smartcontract/builder_test.go index d16f7b6..e73a083 100644 --- a/pkg/smartcontract/builder_test.go +++ b/pkg/smartcontract/builder_test.go @@ -3,7 +3,7 @@ package smartcontract import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/callflag/call_flags_test.go b/pkg/smartcontract/callflag/call_flags_test.go index 6757afd..39d512e 100644 --- a/pkg/smartcontract/callflag/call_flags_test.go +++ b/pkg/smartcontract/callflag/call_flags_test.go @@ -3,7 +3,7 @@ package callflag import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" + "github.com/tutus-one/tutus-chain/internal/testserdes" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" ) diff --git a/pkg/smartcontract/context/context.go b/pkg/smartcontract/context/context.go index 51bd059..dd7d41f 100644 --- a/pkg/smartcontract/context/context.go +++ b/pkg/smartcontract/context/context.go @@ -9,16 +9,16 @@ import ( "slices" "strings" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) // TransactionType is the ParameterContext Type used for transactions. diff --git a/pkg/smartcontract/context/context_test.go b/pkg/smartcontract/context/context_test.go index a0aa35a..884764c 100644 --- a/pkg/smartcontract/context/context_test.go +++ b/pkg/smartcontract/context/context_test.go @@ -4,17 +4,17 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/interop" - "github.com/nspcc-dev/neo-go/pkg/core/interop/crypto" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/interop" + "github.com/tutus-one/tutus-chain/pkg/core/interop/crypto" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/wallet" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/context/item.go b/pkg/smartcontract/context/item.go index 4364176..9e9ebf8 100644 --- a/pkg/smartcontract/context/item.go +++ b/pkg/smartcontract/context/item.go @@ -1,8 +1,8 @@ package context import ( - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" ) // Item represents a transaction context item. diff --git a/pkg/smartcontract/context/item_test.go b/pkg/smartcontract/context/item_test.go index 38ee430..5b8e125 100644 --- a/pkg/smartcontract/context/item_test.go +++ b/pkg/smartcontract/context/item_test.go @@ -3,10 +3,10 @@ package context import ( "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/contract.go b/pkg/smartcontract/contract.go index a3397b2..0000876 100644 --- a/pkg/smartcontract/contract.go +++ b/pkg/smartcontract/contract.go @@ -4,10 +4,10 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" ) // CreateMultiSigRedeemScript creates an "m out of n" type verification script diff --git a/pkg/smartcontract/contract_test.go b/pkg/smartcontract/contract_test.go index 6d02d55..4708478 100644 --- a/pkg/smartcontract/contract_test.go +++ b/pkg/smartcontract/contract_test.go @@ -3,10 +3,10 @@ package smartcontract import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/doc_test.go b/pkg/smartcontract/doc_test.go index fe54126..8b45a7e 100644 --- a/pkg/smartcontract/doc_test.go +++ b/pkg/smartcontract/doc_test.go @@ -4,13 +4,13 @@ import ( "context" "encoding/hex" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/actor" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/gas" - "github.com/nspcc-dev/neo-go/pkg/rpcclient/neo" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/actor" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/gas" + "github.com/tutus-one/tutus-chain/pkg/rpcclient/neo" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/wallet" ) func ExampleBuilder() { diff --git a/pkg/smartcontract/entry.go b/pkg/smartcontract/entry.go index 3b6ee76..fc06df1 100644 --- a/pkg/smartcontract/entry.go +++ b/pkg/smartcontract/entry.go @@ -3,12 +3,12 @@ package smartcontract import ( "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) // CreateCallAndUnwrapIteratorScript creates a script that calls 'operation' method diff --git a/pkg/smartcontract/manifest/abi.go b/pkg/smartcontract/manifest/abi.go index 918bdbc..08cee65 100644 --- a/pkg/smartcontract/manifest/abi.go +++ b/pkg/smartcontract/manifest/abi.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) const ( diff --git a/pkg/smartcontract/manifest/abi_test.go b/pkg/smartcontract/manifest/abi_test.go index 2b9a54f..2c69f91 100644 --- a/pkg/smartcontract/manifest/abi_test.go +++ b/pkg/smartcontract/manifest/abi_test.go @@ -3,7 +3,7 @@ package manifest import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/manifest/container_test.go b/pkg/smartcontract/manifest/container_test.go index 2a98a9e..33cd551 100644 --- a/pkg/smartcontract/manifest/container_test.go +++ b/pkg/smartcontract/manifest/container_test.go @@ -4,9 +4,9 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/manifest/event.go b/pkg/smartcontract/manifest/event.go index 4c8e8e2..0d2626d 100644 --- a/pkg/smartcontract/manifest/event.go +++ b/pkg/smartcontract/manifest/event.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Event is a description of a single event. diff --git a/pkg/smartcontract/manifest/event_test.go b/pkg/smartcontract/manifest/event_test.go index 65b3218..351fe93 100644 --- a/pkg/smartcontract/manifest/event_test.go +++ b/pkg/smartcontract/manifest/event_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/manifest/group.go b/pkg/smartcontract/manifest/group.go index 9c7b7bd..46dc0fb 100644 --- a/pkg/smartcontract/manifest/group.go +++ b/pkg/smartcontract/manifest/group.go @@ -7,10 +7,10 @@ import ( "errors" "slices" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Group represents a group of smartcontracts identified by a public key. diff --git a/pkg/smartcontract/manifest/group_test.go b/pkg/smartcontract/manifest/group_test.go index d38d8ee..94f8f11 100644 --- a/pkg/smartcontract/manifest/group_test.go +++ b/pkg/smartcontract/manifest/group_test.go @@ -3,9 +3,9 @@ package manifest import ( "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/manifest/manifest.go b/pkg/smartcontract/manifest/manifest.go index d3266c7..aad954c 100644 --- a/pkg/smartcontract/manifest/manifest.go +++ b/pkg/smartcontract/manifest/manifest.go @@ -11,8 +11,8 @@ import ( "strings" ojson "github.com/nspcc-dev/go-ordered-json" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) const ( diff --git a/pkg/smartcontract/manifest/manifest_test.go b/pkg/smartcontract/manifest/manifest_test.go index e3f795a..1132e35 100644 --- a/pkg/smartcontract/manifest/manifest_test.go +++ b/pkg/smartcontract/manifest/manifest_test.go @@ -7,11 +7,11 @@ import ( "slices" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/manifest/method.go b/pkg/smartcontract/manifest/method.go index 85f512f..d1ca7f2 100644 --- a/pkg/smartcontract/manifest/method.go +++ b/pkg/smartcontract/manifest/method.go @@ -3,8 +3,8 @@ package manifest import ( "errors" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Method represents method's metadata. diff --git a/pkg/smartcontract/manifest/method_test.go b/pkg/smartcontract/manifest/method_test.go index 2f48eb7..0c6b92b 100644 --- a/pkg/smartcontract/manifest/method_test.go +++ b/pkg/smartcontract/manifest/method_test.go @@ -4,9 +4,9 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/manifest/parameter.go b/pkg/smartcontract/manifest/parameter.go index 7cccb2b..b9f5485 100644 --- a/pkg/smartcontract/manifest/parameter.go +++ b/pkg/smartcontract/manifest/parameter.go @@ -6,8 +6,8 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Parameter represents smartcontract's parameter's definition. diff --git a/pkg/smartcontract/manifest/parameter_test.go b/pkg/smartcontract/manifest/parameter_test.go index 9826e5f..51570a2 100644 --- a/pkg/smartcontract/manifest/parameter_test.go +++ b/pkg/smartcontract/manifest/parameter_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/manifest/permission.go b/pkg/smartcontract/manifest/permission.go index c8ac08d..aedce72 100644 --- a/pkg/smartcontract/manifest/permission.go +++ b/pkg/smartcontract/manifest/permission.go @@ -8,9 +8,9 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // PermissionType represents permission type. diff --git a/pkg/smartcontract/manifest/permission_test.go b/pkg/smartcontract/manifest/permission_test.go index 16fa923..0f41e74 100644 --- a/pkg/smartcontract/manifest/permission_test.go +++ b/pkg/smartcontract/manifest/permission_test.go @@ -6,10 +6,10 @@ import ( "reflect" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/manifest/standard/check.go b/pkg/smartcontract/manifest/standard/check.go index 9fb9a14..9c110b8 100644 --- a/pkg/smartcontract/manifest/standard/check.go +++ b/pkg/smartcontract/manifest/standard/check.go @@ -1,6 +1,6 @@ package standard -import "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" +import "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" // Standard represents smart-contract standard. type Standard struct { diff --git a/pkg/smartcontract/manifest/standard/comply.go b/pkg/smartcontract/manifest/standard/comply.go index c069a9a..b99a550 100644 --- a/pkg/smartcontract/manifest/standard/comply.go +++ b/pkg/smartcontract/manifest/standard/comply.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // Various validation errors. diff --git a/pkg/smartcontract/manifest/standard/comply_test.go b/pkg/smartcontract/manifest/standard/comply_test.go index 2f5a3dc..33f4d48 100644 --- a/pkg/smartcontract/manifest/standard/comply_test.go +++ b/pkg/smartcontract/manifest/standard/comply_test.go @@ -3,8 +3,8 @@ package standard import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/manifest/standard/nep11.go b/pkg/smartcontract/manifest/standard/nep11.go index 8bcb30b..b71f2b8 100644 --- a/pkg/smartcontract/manifest/standard/nep11.go +++ b/pkg/smartcontract/manifest/standard/nep11.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // Nep11Base is a Standard containing common NEP-11 methods. diff --git a/pkg/smartcontract/manifest/standard/nep17.go b/pkg/smartcontract/manifest/standard/nep17.go index 4d4422a..a02f357 100644 --- a/pkg/smartcontract/manifest/standard/nep17.go +++ b/pkg/smartcontract/manifest/standard/nep17.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // Nep17 is a NEP-17 Standard. diff --git a/pkg/smartcontract/manifest/standard/nep22.go b/pkg/smartcontract/manifest/standard/nep22.go index cd6426a..9ae569a 100644 --- a/pkg/smartcontract/manifest/standard/nep22.go +++ b/pkg/smartcontract/manifest/standard/nep22.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // Nep22 is a NEP-22 Standard describing smart contract update functionality. diff --git a/pkg/smartcontract/manifest/standard/nep24.go b/pkg/smartcontract/manifest/standard/nep24.go index 3dd076b..2e407a7 100644 --- a/pkg/smartcontract/manifest/standard/nep24.go +++ b/pkg/smartcontract/manifest/standard/nep24.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // MethodRoyaltyInfo is the name of the method that returns royalty information. diff --git a/pkg/smartcontract/manifest/standard/nep26.go b/pkg/smartcontract/manifest/standard/nep26.go index ee70efe..d4442f3 100644 --- a/pkg/smartcontract/manifest/standard/nep26.go +++ b/pkg/smartcontract/manifest/standard/nep26.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // Nep26 is a NEP-26 Standard. diff --git a/pkg/smartcontract/manifest/standard/nep27.go b/pkg/smartcontract/manifest/standard/nep27.go index edaa46c..748916c 100644 --- a/pkg/smartcontract/manifest/standard/nep27.go +++ b/pkg/smartcontract/manifest/standard/nep27.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // Nep27 is a NEP-27 Standard. diff --git a/pkg/smartcontract/manifest/standard/nep29.go b/pkg/smartcontract/manifest/standard/nep29.go index 806a7be..12500fa 100644 --- a/pkg/smartcontract/manifest/standard/nep29.go +++ b/pkg/smartcontract/manifest/standard/nep29.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // Nep29 is a NEP-29 Standard describing smart contract _deploy method functionality. diff --git a/pkg/smartcontract/manifest/standard/nep30.go b/pkg/smartcontract/manifest/standard/nep30.go index 2c914f9..be8a1fd 100644 --- a/pkg/smartcontract/manifest/standard/nep30.go +++ b/pkg/smartcontract/manifest/standard/nep30.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // Nep30 is a NEP-30 Standard describing smart contract verify method functionality. diff --git a/pkg/smartcontract/manifest/standard/nep31.go b/pkg/smartcontract/manifest/standard/nep31.go index f45b579..bb67c20 100644 --- a/pkg/smartcontract/manifest/standard/nep31.go +++ b/pkg/smartcontract/manifest/standard/nep31.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // Nep31 is a NEP-31 Standard describing smart contract destroy functionality. diff --git a/pkg/smartcontract/manifest/standard/token.go b/pkg/smartcontract/manifest/standard/token.go index 0e3a92c..ba2d7b6 100644 --- a/pkg/smartcontract/manifest/standard/token.go +++ b/pkg/smartcontract/manifest/standard/token.go @@ -1,8 +1,8 @@ package standard import ( - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" ) // DecimalTokenBase contains methods common to NEP-11 and NEP-17 token standards. diff --git a/pkg/smartcontract/nef/method_token.go b/pkg/smartcontract/nef/method_token.go index 48aeacd..4e8d901 100644 --- a/pkg/smartcontract/nef/method_token.go +++ b/pkg/smartcontract/nef/method_token.go @@ -4,9 +4,9 @@ import ( "errors" "strings" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" ) // maxMethodLength is the maximum length of method. diff --git a/pkg/smartcontract/nef/method_token_test.go b/pkg/smartcontract/nef/method_token_test.go index b293ff3..6662cb1 100644 --- a/pkg/smartcontract/nef/method_token_test.go +++ b/pkg/smartcontract/nef/method_token_test.go @@ -4,9 +4,9 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/nef/nef.go b/pkg/smartcontract/nef/nef.go index 9d80912..c863dc4 100644 --- a/pkg/smartcontract/nef/nef.go +++ b/pkg/smartcontract/nef/nef.go @@ -6,10 +6,10 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // NEO Executable Format 3 (NEF3) diff --git a/pkg/smartcontract/nef/nef_test.go b/pkg/smartcontract/nef/nef_test.go index 75a4fc9..6482213 100644 --- a/pkg/smartcontract/nef/nef_test.go +++ b/pkg/smartcontract/nef/nef_test.go @@ -6,12 +6,12 @@ import ( "strconv" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/param_type.go b/pkg/smartcontract/param_type.go index 23bf373..afb4721 100644 --- a/pkg/smartcontract/param_type.go +++ b/pkg/smartcontract/param_type.go @@ -9,13 +9,13 @@ import ( "strings" "unicode/utf8" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "gopkg.in/yaml.v3" ) diff --git a/pkg/smartcontract/param_type_test.go b/pkg/smartcontract/param_type_test.go index 4f754d5..b74495f 100644 --- a/pkg/smartcontract/param_type_test.go +++ b/pkg/smartcontract/param_type_test.go @@ -5,9 +5,9 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/parameter.go b/pkg/smartcontract/parameter.go index 8601191..dc8aa8d 100644 --- a/pkg/smartcontract/parameter.go +++ b/pkg/smartcontract/parameter.go @@ -14,9 +14,9 @@ import ( "strings" "unicode/utf8" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Parameter represents a smart contract parameter. diff --git a/pkg/smartcontract/parameter_test.go b/pkg/smartcontract/parameter_test.go index 7afb7b3..eb9bca0 100644 --- a/pkg/smartcontract/parameter_test.go +++ b/pkg/smartcontract/parameter_test.go @@ -10,12 +10,12 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/rpcbinding/binding.go b/pkg/smartcontract/rpcbinding/binding.go index c6b731b..6a04657 100644 --- a/pkg/smartcontract/rpcbinding/binding.go +++ b/pkg/smartcontract/rpcbinding/binding.go @@ -8,11 +8,11 @@ import ( "text/template" "unicode" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest/standard" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/binding" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest/standard" + "github.com/tutus-one/tutus-chain/pkg/util" ) // The set of constants containing parts of RPC binding template. Each block of code @@ -486,7 +486,7 @@ func Generate(cfg binding.Config) error { for _, std := range cfg.Manifest.SupportedStandards { switch std { case manifest.NEP11StandardName: - imports["github.com/nspcc-dev/neo-go/pkg/rpcclient/nep11"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/rpcclient/nep11"] = struct{}{} if standard.ComplyABI(cfg.Manifest, standard.Nep11Divisible) == nil { ctr.IsNep11D = true } else if standard.ComplyABI(cfg.Manifest, standard.Nep11NonDivisible) == nil { @@ -494,18 +494,18 @@ func Generate(cfg binding.Config) error { } case manifest.NEP17StandardName: if standard.ComplyABI(cfg.Manifest, standard.Nep17) == nil { - imports["github.com/nspcc-dev/neo-go/pkg/rpcclient/nep17"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/rpcclient/nep17"] = struct{}{} ctr.IsNep17 = true } case manifest.NEP22StandardName: if standard.ComplyABI(cfg.Manifest, standard.Nep22) == nil { - imports["github.com/nspcc-dev/neo-go/pkg/rpcclient/nep22"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/rpcclient/nep22"] = struct{}{} ctr.ContractWriterStandards = append(ctr.ContractWriterStandards, std) isNep22 = true } case manifest.NEP24StandardName: if standard.ComplyABI(cfg.Manifest, standard.Nep24) == nil { - imports["github.com/nspcc-dev/neo-go/pkg/rpcclient/nep24"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/rpcclient/nep24"] = struct{}{} ctr.IsNep24 = true } case manifest.NEP24Payable: @@ -518,7 +518,7 @@ func Generate(cfg binding.Config) error { } case manifest.NEP31StandardName: if standard.ComplyABI(cfg.Manifest, standard.Nep31) == nil { - imports["github.com/nspcc-dev/neo-go/pkg/rpcclient/nep31"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/rpcclient/nep31"] = struct{}{} ctr.ContractWriterStandards = append(ctr.ContractWriterStandards, std) isNep31 = true } @@ -703,19 +703,19 @@ func extendedTypeToGo(et binding.ExtendedType, named map[string]binding.Extended case smartcontract.StringType: return "string", "" case smartcontract.Hash160Type: - return "util.Uint160", "github.com/nspcc-dev/neo-go/pkg/util" + return "util.Uint160", "github.com/tutus-one/tutus-chain/pkg/util" case smartcontract.Hash256Type: - return "util.Uint256", "github.com/nspcc-dev/neo-go/pkg/util" + return "util.Uint256", "github.com/tutus-one/tutus-chain/pkg/util" case smartcontract.PublicKeyType: - return "*keys.PublicKey", "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + return "*keys.PublicKey", "github.com/tutus-one/tutus-chain/pkg/crypto/keys" case smartcontract.SignatureType: return "[]byte", "" case smartcontract.ArrayType: if len(et.Name) > 0 { - return "*" + toTypeName(et.Name), "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + return "*" + toTypeName(et.Name), "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" } else if et.Value != nil { if et.Value.Base == smartcontract.PublicKeyType { // Special array wrapper. - return "keys.PublicKeys", "github.com/nspcc-dev/neo-go/pkg/crypto/keys" + return "keys.PublicKeys", "github.com/tutus-one/tutus-chain/pkg/crypto/keys" } sub, pkg := extendedTypeToGo(*et.Value, named) return "[]" + sub, pkg @@ -730,7 +730,7 @@ func extendedTypeToGo(et binding.ExtendedType, named map[string]binding.Extended } else { vt = "any" } - return "map[" + kt + "]" + vt, "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + return "map[" + kt + "]" + vt, "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" case smartcontract.InteropInterfaceType: return "any", "" case smartcontract.VoidType: @@ -1051,7 +1051,7 @@ func scTemplateToRPC(cfg binding.Config, ctr ContractTmpl, imports map[string]st } else { ctr.Methods[i].Comment = fmt.Sprintf("creates a transaction invoking `%s` method of the contract.", ctr.Methods[i].NameABI) if ctr.Methods[i].ReturnType == "bool" { - imports["github.com/nspcc-dev/neo-go/pkg/smartcontract"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/smartcontract"] = struct{}{} } } } @@ -1060,7 +1060,7 @@ func scTemplateToRPC(cfg binding.Config, ctr ContractTmpl, imports map[string]st } if len(cfg.NamedTypes) > 0 { imports["errors"] = struct{}{} - imports["github.com/nspcc-dev/neo-go/pkg/smartcontract"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/smartcontract"] = struct{}{} } for _, abiEvent := range cfg.Manifest.ABI.Events { eBindingName := ToEventBindingName(abiEvent.Name) @@ -1098,8 +1098,8 @@ func scTemplateToRPC(cfg binding.Config, ctr ContractTmpl, imports map[string]st } if len(ctr.CustomEvents) > 0 { - imports["github.com/nspcc-dev/neo-go/pkg/neorpc/result"] = struct{}{} - imports["github.com/nspcc-dev/neo-go/pkg/vm/stackitem"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/neorpc/result"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/vm/stackitem"] = struct{}{} imports["fmt"] = struct{}{} imports["errors"] = struct{}{} } @@ -1110,13 +1110,13 @@ func scTemplateToRPC(cfg binding.Config, ctr ContractTmpl, imports map[string]st abim := cfg.Manifest.ABI.GetMethod(ctr.SafeMethods[i].NameABI, len(ctr.SafeMethods[i].Arguments)) if abim.ReturnType == smartcontract.InteropInterfaceType { imports["github.com/google/uuid"] = struct{}{} - imports["github.com/nspcc-dev/neo-go/pkg/vm/stackitem"] = struct{}{} - imports["github.com/nspcc-dev/neo-go/pkg/neorpc/result"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/vm/stackitem"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/neorpc/result"] = struct{}{} ctr.SafeMethods[i].ReturnType = "uuid.UUID, result.Iterator" ctr.SafeMethods[i].Unwrapper = "SessionIterator" ctr.HasIterator = true } else { - imports["github.com/nspcc-dev/neo-go/pkg/vm/stackitem"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/vm/stackitem"] = struct{}{} ctr.SafeMethods[i].ReturnType = "any" ctr.SafeMethods[i].Unwrapper = "Item" } @@ -1135,7 +1135,7 @@ func scTemplateToRPC(cfg binding.Config, ctr ContractTmpl, imports map[string]st case "[]byte": ctr.SafeMethods[i].Unwrapper = "Bytes" case "[]any": - imports["github.com/nspcc-dev/neo-go/pkg/vm/stackitem"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/vm/stackitem"] = struct{}{} ctr.SafeMethods[i].ReturnType = "[]stackitem.Item" ctr.SafeMethods[i].Unwrapper = "Array" case "*stackitem.Map": @@ -1160,15 +1160,15 @@ func scTemplateToRPC(cfg binding.Config, ctr ContractTmpl, imports map[string]st } } - imports["github.com/nspcc-dev/neo-go/pkg/util"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/util"] = struct{}{} if len(ctr.SafeMethods) > 0 { - imports["github.com/nspcc-dev/neo-go/pkg/rpcclient/unwrap"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/rpcclient/unwrap"] = struct{}{} if !ctr.IsNep17 && !ctr.IsNep11D && !ctr.IsNep11ND && !ctr.IsNep24 { - imports["github.com/nspcc-dev/neo-go/pkg/neorpc/result"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/neorpc/result"] = struct{}{} } } if len(ctr.Methods) > 0 { - imports["github.com/nspcc-dev/neo-go/pkg/core/transaction"] = struct{}{} + imports["github.com/tutus-one/tutus-chain/pkg/core/transaction"] = struct{}{} } if len(ctr.Methods) > 0 || ctr.IsNep17 || ctr.IsNep11D || ctr.IsNep11ND || len(ctr.ContractWriterStandards) > 0 { ctr.HasWriter = true diff --git a/pkg/smartcontract/scparser/context.go b/pkg/smartcontract/scparser/context.go index a34cfbc..ae0b59a 100644 --- a/pkg/smartcontract/scparser/context.go +++ b/pkg/smartcontract/scparser/context.go @@ -5,8 +5,8 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) var errNoInstParam = errors.New("failed to read instruction parameter") diff --git a/pkg/smartcontract/scparser/contract_checks.go b/pkg/smartcontract/scparser/contract_checks.go index afb5d22..494986a 100644 --- a/pkg/smartcontract/scparser/contract_checks.go +++ b/pkg/smartcontract/scparser/contract_checks.go @@ -5,11 +5,11 @@ import ( "errors" "fmt" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/util/bitfield" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/util/bitfield" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // MaxMultisigKeys is the maximum number of keys allowed for correct multisig contract. diff --git a/pkg/smartcontract/scparser/contract_checks_test.go b/pkg/smartcontract/scparser/contract_checks_test.go index e4981b6..de14e31 100644 --- a/pkg/smartcontract/scparser/contract_checks_test.go +++ b/pkg/smartcontract/scparser/contract_checks_test.go @@ -6,13 +6,13 @@ import ( "slices" "testing" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util/bitfield" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util/bitfield" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/scparser/fuzz_test.go b/pkg/smartcontract/scparser/fuzz_test.go index 6712cad..9e49e35 100644 --- a/pkg/smartcontract/scparser/fuzz_test.go +++ b/pkg/smartcontract/scparser/fuzz_test.go @@ -4,9 +4,9 @@ import ( "crypto/rand" "testing" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/smartcontract/zkpbinding/binding.go b/pkg/smartcontract/zkpbinding/binding.go index 4f4cd28..621204a 100644 --- a/pkg/smartcontract/zkpbinding/binding.go +++ b/pkg/smartcontract/zkpbinding/binding.go @@ -6,7 +6,7 @@ // // Please, check out the example of zkpbinding package usage to generate and // verify proofs on the Neo chain: -// https://github.com/nspcc-dev/neo-go/blob/91c928e8d35164055e5b2e8efbc898440cc2b486/examples/zkp/cubic_circuit/README.md +// https://github.com/tutus-one/tutus-chain/blob/91c928e8d35164055e5b2e8efbc898440cc2b486/examples/zkp/cubic_circuit/README.md package zkpbinding import ( @@ -22,7 +22,7 @@ import ( "github.com/consensys/gnark/backend/groth16" curve "github.com/consensys/gnark/backend/groth16/bls12-381" "github.com/consensys/gnark/backend/witness" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/binding" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/binding" ) // Config represents a configuration for Verifier Go smart contract generator. @@ -71,16 +71,16 @@ const ( // to verify other circuits. // // Use NeoGo smart contract compiler to compile this contract: -// https://github.com/nspcc-dev/neo-go/blob/master/docs/compiler.md#compiling. +// https://github.com/tutus-one/tutus-chain/blob/master/docs/compiler.md#compiling. // You will need to create contract YAML configuration file and proper go.mod and // go.sum files required for compilation. Please, refer to the NeoGo ZKP example // to see how to verify proofs via the Verifier contract: -// https://github.com/nspcc-dev/neo-go/tree/master/examples/zkp/cubic_circuit. +// https://github.com/tutus-one/tutus-chain/tree/master/examples/zkp/cubic_circuit. package main import ( - "github.com/nspcc-dev/neo-go/pkg/interop/native/crypto" - "github.com/nspcc-dev/neo-go/pkg/interop/util" + "github.com/tutus-one/tutus-chain/pkg/interop/native/crypto" + "github.com/tutus-one/tutus-chain/pkg/interop/util" ) // A set of circuit-specific variables required for verification. Should be generated @@ -158,7 +158,7 @@ func VerifyProof(a []byte, b []byte, c []byte, publicInput [][]byte) bool { // verifyCfg is a contract configuration file required to compile smart // contract. verifyCfg = `name: "Groth-16 Verifier contract" -sourceurl: https://github.com/nspcc-dev/neo-go/ +sourceurl: https://github.com/tutus-one/tutus-chain/ supportedstandards: []` // verifyGomod is a standard go.mod file containing module name, go version @@ -167,12 +167,12 @@ supportedstandards: []` go 1.24 -require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20241223145456-80e18222bca2 +require github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20241223145456-80e18222bca2 ` // verifyGosum is a standard go.sum file needed for contract compilation. - verifyGosum = `github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20241223145456-80e18222bca2 h1:4Bfi6A1kPpaTDuwbDVc6x+R4WXgoNN9wIq6XobDlXHs= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20241223145456-80e18222bca2/go.mod h1:kVLzmbeJJdbIPF2bUYhD8YppIiLXnRQj5yqNZvzbOL0= + verifyGosum = `github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20241223145456-80e18222bca2 h1:4Bfi6A1kPpaTDuwbDVc6x+R4WXgoNN9wIq6XobDlXHs= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20241223145456-80e18222bca2/go.mod h1:kVLzmbeJJdbIPF2bUYhD8YppIiLXnRQj5yqNZvzbOL0= ` ) diff --git a/pkg/util/uint160.go b/pkg/util/uint160.go index 49ae0a7..23f1849 100644 --- a/pkg/util/uint160.go +++ b/pkg/util/uint160.go @@ -8,7 +8,7 @@ import ( "slices" "strings" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" "gopkg.in/yaml.v3" ) diff --git a/pkg/util/uint160_test.go b/pkg/util/uint160_test.go index 4d67010..c4d9fb5 100644 --- a/pkg/util/uint160_test.go +++ b/pkg/util/uint160_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" diff --git a/pkg/util/uint256.go b/pkg/util/uint256.go index 3b391be..6c0d850 100644 --- a/pkg/util/uint256.go +++ b/pkg/util/uint256.go @@ -8,7 +8,7 @@ import ( "slices" "strings" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" "gopkg.in/yaml.v3" ) diff --git a/pkg/util/uint256_test.go b/pkg/util/uint256_test.go index ac1bb63..d6583e2 100644 --- a/pkg/util/uint256_test.go +++ b/pkg/util/uint256_test.go @@ -4,8 +4,8 @@ import ( "encoding/hex" "testing" - "github.com/nspcc-dev/neo-go/internal/testserdes" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/internal/testserdes" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" diff --git a/pkg/vm/bench_test.go b/pkg/vm/bench_test.go index 1a9fbc3..fed2b63 100644 --- a/pkg/vm/bench_test.go +++ b/pkg/vm/bench_test.go @@ -5,7 +5,7 @@ import ( "strconv" "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/context.go b/pkg/vm/context.go index 1da7671..c5955be 100644 --- a/pkg/vm/context.go +++ b/pkg/vm/context.go @@ -5,14 +5,14 @@ import ( "errors" "slices" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/invocations" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/invocations" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // scriptContext is a part of the Context that is shared between multiple Contexts, diff --git a/pkg/vm/debug_test.go b/pkg/vm/debug_test.go index b3f8086..52c6b7a 100644 --- a/pkg/vm/debug_test.go +++ b/pkg/vm/debug_test.go @@ -4,9 +4,9 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/emit/emit.go b/pkg/vm/emit/emit.go index bca4e41..e827452 100644 --- a/pkg/vm/emit/emit.go +++ b/pkg/vm/emit/emit.go @@ -15,13 +15,13 @@ import ( "math/big" "math/bits" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Instruction emits a VM Instruction with data to the given buffer. diff --git a/pkg/vm/emit/emit_test.go b/pkg/vm/emit/emit_test.go index 962676a..1c87868 100644 --- a/pkg/vm/emit/emit_test.go +++ b/pkg/vm/emit/emit_test.go @@ -8,12 +8,12 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/exception.go b/pkg/vm/exception.go index 5498e9b..c6684c7 100644 --- a/pkg/vm/exception.go +++ b/pkg/vm/exception.go @@ -4,7 +4,7 @@ import ( "errors" "math/big" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // exceptionHandlingState represents state of the exception handling process. diff --git a/pkg/vm/fuzz_test.go b/pkg/vm/fuzz_test.go index 7e022c2..f6a2ba0 100644 --- a/pkg/vm/fuzz_test.go +++ b/pkg/vm/fuzz_test.go @@ -3,8 +3,8 @@ package vm import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/invocation_tree_test.go b/pkg/vm/invocation_tree_test.go index b4eef15..a39a831 100644 --- a/pkg/vm/invocation_tree_test.go +++ b/pkg/vm/invocation_tree_test.go @@ -3,9 +3,9 @@ package vm import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/invocations" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/invocations" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/invocations/invocation_tree.go b/pkg/vm/invocations/invocation_tree.go index 8dba823..096f249 100644 --- a/pkg/vm/invocations/invocation_tree.go +++ b/pkg/vm/invocations/invocation_tree.go @@ -1,7 +1,7 @@ package invocations import ( - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Tree represents a tree with script hashes; when traversing it, diff --git a/pkg/vm/iterator_test.go b/pkg/vm/iterator_test.go index 0908bee..3371b18 100644 --- a/pkg/vm/iterator_test.go +++ b/pkg/vm/iterator_test.go @@ -5,11 +5,11 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/json_test.go b/pkg/vm/json_test.go index 2d8b6df..5379a6e 100644 --- a/pkg/vm/json_test.go +++ b/pkg/vm/json_test.go @@ -14,11 +14,11 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/opcodebench_test.go b/pkg/vm/opcodebench_test.go index 17b6523..ee61e86 100644 --- a/pkg/vm/opcodebench_test.go +++ b/pkg/vm/opcodebench_test.go @@ -5,8 +5,8 @@ import ( "strconv" "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/ref_counter.go b/pkg/vm/ref_counter.go index f3e1ab4..b13985e 100644 --- a/pkg/vm/ref_counter.go +++ b/pkg/vm/ref_counter.go @@ -1,7 +1,7 @@ package vm import ( - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // refCounter represents a reference counter for the VM. diff --git a/pkg/vm/ref_counter_test.go b/pkg/vm/ref_counter_test.go index 82d8399..62556df 100644 --- a/pkg/vm/ref_counter_test.go +++ b/pkg/vm/ref_counter_test.go @@ -3,8 +3,8 @@ package vm import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/slot.go b/pkg/vm/slot.go index 3860321..7f8cbb6 100644 --- a/pkg/vm/slot.go +++ b/pkg/vm/slot.go @@ -3,7 +3,7 @@ package vm import ( "encoding/json" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Slot is a fixed-size slice of stack items. diff --git a/pkg/vm/slot_test.go b/pkg/vm/slot_test.go index 44582c1..000ac8d 100644 --- a/pkg/vm/slot_test.go +++ b/pkg/vm/slot_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/stack.go b/pkg/vm/stack.go index b3b088d..e9ba874 100644 --- a/pkg/vm/stack.go +++ b/pkg/vm/stack.go @@ -7,7 +7,7 @@ import ( "math/big" "slices" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" ) // Stack implementation for the neo-go virtual machine. The stack with its LIFO diff --git a/pkg/vm/stack_test.go b/pkg/vm/stack_test.go index 8a18cf5..e0cb77a 100644 --- a/pkg/vm/stack_test.go +++ b/pkg/vm/stack_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/stackitem/item.go b/pkg/vm/stackitem/item.go index faa7cc0..c341af4 100644 --- a/pkg/vm/stackitem/item.go +++ b/pkg/vm/stackitem/item.go @@ -12,9 +12,9 @@ import ( "slices" "unicode/utf8" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/vm/stackitem/item_test.go b/pkg/vm/stackitem/item_test.go index 66a0afe..2495bc6 100644 --- a/pkg/vm/stackitem/item_test.go +++ b/pkg/vm/stackitem/item_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/stackitem/serialization.go b/pkg/vm/stackitem/serialization.go index fe702f9..42e035c 100644 --- a/pkg/vm/stackitem/serialization.go +++ b/pkg/vm/stackitem/serialization.go @@ -5,9 +5,9 @@ import ( "fmt" "math/big" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/util" ) // MaxDeserialized is the maximum number one deserialized item can contain diff --git a/pkg/vm/stackitem/serialization_test.go b/pkg/vm/stackitem/serialization_test.go index 1198651..ceb1d2a 100644 --- a/pkg/vm/stackitem/serialization_test.go +++ b/pkg/vm/stackitem/serialization_test.go @@ -4,7 +4,7 @@ import ( "strconv" "testing" - "github.com/nspcc-dev/neo-go/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/io" "github.com/stretchr/testify/require" ) diff --git a/pkg/vm/vm.go b/pkg/vm/vm.go index 92bd818..0ec853a 100644 --- a/pkg/vm/vm.go +++ b/pkg/vm/vm.go @@ -14,20 +14,20 @@ import ( "text/tabwriter" "unicode/utf8" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/invocations" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" - "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/invocations" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/pkg/vm/vmstate" ) type errorAtInstruct struct { @@ -1119,7 +1119,7 @@ func (v *VM) execute(ctx *Context, op opcode.Opcode, parameter []byte) (err erro } res.Exp(base, exponent, modulus) - // https://github.com/nspcc-dev/neo-go/issues/3612 + // https://github.com/tutus-one/tutus-chain/issues/3612 if base.Sign() < 0 && exponent.Bit(0) == 1 && res.Sign() != 0 { absModulus := new(big.Int).Abs(modulus) res.Sub(res, absModulus) diff --git a/pkg/vm/vm_test.go b/pkg/vm/vm_test.go index f01e180..e0cf3c7 100644 --- a/pkg/vm/vm_test.go +++ b/pkg/vm/vm_test.go @@ -13,17 +13,17 @@ import ( "strings" "testing" - "github.com/nspcc-dev/neo-go/internal/random" - "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" - "github.com/nspcc-dev/neo-go/pkg/encoding/bigint" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/callflag" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" - "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/tutus-one/tutus-chain/internal/random" + "github.com/tutus-one/tutus-chain/pkg/core/interop/interopnames" + "github.com/tutus-one/tutus-chain/pkg/encoding/bigint" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/callflag" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/trigger" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/vm/stackitem" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/wallet/account.go b/pkg/wallet/account.go index 0702dc6..cb11892 100644 --- a/pkg/wallet/account.go +++ b/pkg/wallet/account.go @@ -5,16 +5,16 @@ import ( "fmt" "slices" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm/emit" - "github.com/nspcc-dev/neo-go/pkg/vm/opcode" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/vm/emit" + "github.com/tutus-one/tutus-chain/pkg/vm/opcode" ) // Account represents a NEO account. It holds the private and the public key diff --git a/pkg/wallet/account_test.go b/pkg/wallet/account_test.go index 765ebb7..7e34c8e 100644 --- a/pkg/wallet/account_test.go +++ b/pkg/wallet/account_test.go @@ -4,12 +4,12 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/internal/keytestcases" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/crypto/hash" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/internal/keytestcases" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/crypto/hash" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/wallet/regenerate_test.go b/pkg/wallet/regenerate_test.go index 02f07cc..9575aa2 100644 --- a/pkg/wallet/regenerate_test.go +++ b/pkg/wallet/regenerate_test.go @@ -7,11 +7,11 @@ import ( "path/filepath" "testing" - "github.com/nspcc-dev/neo-go/pkg/core/state" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/nef" + "github.com/tutus-one/tutus-chain/pkg/core/state" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/nef" "github.com/stretchr/testify/require" ) diff --git a/pkg/wallet/token.go b/pkg/wallet/token.go index 8fc87ea..201a7aa 100644 --- a/pkg/wallet/token.go +++ b/pkg/wallet/token.go @@ -1,8 +1,8 @@ package wallet import ( - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/util" ) // Token represents an imported token contract. diff --git a/pkg/wallet/token_test.go b/pkg/wallet/token_test.go index cf6275e..0e98258 100644 --- a/pkg/wallet/token_test.go +++ b/pkg/wallet/token_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/require" ) diff --git a/pkg/wallet/wallet.go b/pkg/wallet/wallet.go index d21d015..211ffed 100644 --- a/pkg/wallet/wallet.go +++ b/pkg/wallet/wallet.go @@ -8,10 +8,10 @@ import ( "io" "os" - "github.com/nspcc-dev/neo-go/pkg/crypto/keys" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/scparser" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/crypto/keys" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/scparser" + "github.com/tutus-one/tutus-chain/pkg/util" ) const ( diff --git a/pkg/wallet/wallet_test.go b/pkg/wallet/wallet_test.go index 816269d..f5631ad 100644 --- a/pkg/wallet/wallet_test.go +++ b/pkg/wallet/wallet_test.go @@ -6,9 +6,9 @@ import ( "path/filepath" "testing" - "github.com/nspcc-dev/neo-go/pkg/encoding/address" - "github.com/nspcc-dev/neo-go/pkg/smartcontract/manifest" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/encoding/address" + "github.com/tutus-one/tutus-chain/pkg/smartcontract/manifest" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/scripts/compare-dumps/compare-dumps_test.go b/scripts/compare-dumps/compare-dumps_test.go index e86283f..2070771 100644 --- a/scripts/compare-dumps/compare-dumps_test.go +++ b/scripts/compare-dumps/compare-dumps_test.go @@ -3,9 +3,9 @@ package main import ( "testing" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/native/nativenames" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/native/nativenames" "github.com/stretchr/testify/require" ) diff --git a/scripts/compare-states/compare-states.go b/scripts/compare-states/compare-states.go index 96ffb82..10a7932 100644 --- a/scripts/compare-states/compare-states.go +++ b/scripts/compare-states/compare-states.go @@ -7,8 +7,8 @@ import ( "os" "github.com/davecgh/go-spew/spew" - "github.com/nspcc-dev/neo-go/pkg/rpcclient" - "github.com/nspcc-dev/neo-go/pkg/util" + "github.com/tutus-one/tutus-chain/pkg/rpcclient" + "github.com/tutus-one/tutus-chain/pkg/util" "github.com/pmezard/go-difflib/difflib" "github.com/urfave/cli/v2" ) diff --git a/scripts/gendump/main.go b/scripts/gendump/main.go index 3c88e31..9d32f78 100644 --- a/scripts/gendump/main.go +++ b/scripts/gendump/main.go @@ -9,18 +9,18 @@ import ( "strings" "time" - "github.com/nspcc-dev/neo-go/internal/testchain" - "github.com/nspcc-dev/neo-go/pkg/config" - "github.com/nspcc-dev/neo-go/pkg/config/netmode" - "github.com/nspcc-dev/neo-go/pkg/core" - "github.com/nspcc-dev/neo-go/pkg/core/block" - "github.com/nspcc-dev/neo-go/pkg/core/chaindump" - "github.com/nspcc-dev/neo-go/pkg/core/native" - "github.com/nspcc-dev/neo-go/pkg/core/storage" - "github.com/nspcc-dev/neo-go/pkg/core/transaction" - "github.com/nspcc-dev/neo-go/pkg/io" - "github.com/nspcc-dev/neo-go/pkg/smartcontract" - "github.com/nspcc-dev/neo-go/pkg/wallet" + "github.com/tutus-one/tutus-chain/internal/testchain" + "github.com/tutus-one/tutus-chain/pkg/config" + "github.com/tutus-one/tutus-chain/pkg/config/netmode" + "github.com/tutus-one/tutus-chain/pkg/core" + "github.com/tutus-one/tutus-chain/pkg/core/block" + "github.com/tutus-one/tutus-chain/pkg/core/chaindump" + "github.com/tutus-one/tutus-chain/pkg/core/native" + "github.com/tutus-one/tutus-chain/pkg/core/storage" + "github.com/tutus-one/tutus-chain/pkg/core/transaction" + "github.com/tutus-one/tutus-chain/pkg/io" + "github.com/tutus-one/tutus-chain/pkg/smartcontract" + "github.com/tutus-one/tutus-chain/pkg/wallet" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) @@ -49,7 +49,7 @@ func main() { const contract = ` package contract - import "github.com/nspcc-dev/neo-go/pkg/interop/storage" + import "github.com/tutus-one/tutus-chain/pkg/interop/storage" var ctx = storage.GetContext() func Put(key, value []byte) { storage.Put(ctx, key, value) diff --git a/scripts/go.mod b/scripts/go.mod index 4713c1d..bcc8911 100644 --- a/scripts/go.mod +++ b/scripts/go.mod @@ -1,12 +1,12 @@ -module github.com/nspcc-dev/neo-go/scripts +module github.com/tutus-one/tutus-chain/scripts go 1.24.0 -replace github.com/nspcc-dev/neo-go => ../ +replace github.com/tutus-one/tutus-chain => ../ require ( github.com/davecgh/go-spew v1.1.1 - github.com/nspcc-dev/neo-go v0.113.0 + github.com/tutus-one/tutus-chain v0.113.0 github.com/pmezard/go-difflib v1.0.0 github.com/stretchr/testify v1.11.1 github.com/urfave/cli/v2 v2.27.7 diff --git a/scripts/go.sum b/scripts/go.sum index aac3f83..eeab1a4 100644 --- a/scripts/go.sum +++ b/scripts/go.sum @@ -128,8 +128,8 @@ github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1 h1:U3wvY github.com/nspcc-dev/go-ordered-json v0.0.0-20250911084817-6fb4472993d1/go.mod h1:CHwf1nwquA6ecSfxmNF0YuemOPHAnRGoLuZUv/WPjeY= github.com/nspcc-dev/hrw/v2 v2.0.4 h1:o3Zh/2aF+IgGpvt414f46Ya20WG9u9vWxVd16ErFI8w= github.com/nspcc-dev/hrw/v2 v2.0.4/go.mod h1:dUjOx27zTTvoPmT5EG25vSSWL2tKS7ndAa2TPTiZwFo= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251112080609-3c8e29c66609 h1:9jH0IXFw8rjBgBVWSJbWeEHf7XDjANBnmEas49rdAH8= -github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20251112080609-3c8e29c66609/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251112080609-3c8e29c66609 h1:9jH0IXFw8rjBgBVWSJbWeEHf7XDjANBnmEas49rdAH8= +github.com/tutus-one/tutus-chain/pkg/interop v0.0.0-20251112080609-3c8e29c66609/go.mod h1:X2spkE8hK/l08CYulOF19fpK5n3p2xO0L1GnJFIywQg= github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.16 h1:0zOMTcstqKn/j/frqOHign9rtaoIPdxhJF069LRlCJM= github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.16/go.mod h1:u3XqGGbGQiPBAonFBJ6Dm9KbbDTvcGjEiRhndppzgHw= github.com/nspcc-dev/rfc6979 v0.2.4 h1:NBgsdCjhLpEPJZqmC9rciMZDcSY297po2smeaRjw57k=