Skip to content

Commit

Permalink
remove junks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnetwork committed Dec 4, 2024
1 parent ec1d4cc commit 5a866c1
Show file tree
Hide file tree
Showing 32 changed files with 31 additions and 36 deletions.
2 changes: 1 addition & 1 deletion lib/bip/address/ada/ada_shelley_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:blockchain_utils/bip/address/addr_key_validator.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/address/exception/exception.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';
import 'ada_addres_type.dart';
import 'network.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/aptos_addr.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';
import 'package:blockchain_utils/utils/utils.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/avax_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';

import 'addr_dec_utils.dart';
import 'atom_addr.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/egld_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:blockchain_utils/bech32/bech32_base.dart';
import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/addr_key_validator.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/keys/ed25519_keys.dart';
import 'encoder.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/eos_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/addr_key_validator.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/keys/ecdsa_keys.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/eth_addr.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/keys/i_keys.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';
import 'package:blockchain_utils/utils/utils.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/fil_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/addr_key_validator.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';
import 'exception/exception.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/icx_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/addr_key_validator.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/keys/i_keys.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';
import 'package:blockchain_utils/utils/utils.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/inj_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/eth_addr.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/utils/utils.dart';

/// Implementation of the [BlockchainAddressDecoder] for INJ (Injective Protocol) addresses.
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/nano_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:blockchain_utils/base32/base32.dart';
import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/addr_key_validator.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/keys/ed25519_keys.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/okex_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:blockchain_utils/bech32/bech32_ex.dart';
import 'package:blockchain_utils/bip/address/eth_addr.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/utils/utils.dart';
import 'exception/exception.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/one_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:blockchain_utils/bech32/bech32_base.dart';
import 'package:blockchain_utils/bip/address/eth_addr.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/utils/utils.dart';

/// Implementation of the [BlockchainAddressDecoder] for Harmony (ONE) addresses.
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/trx_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/eth_addr.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/utils/utils.dart';

class TrxAddressUtils {
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/xrp_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:blockchain_utils/bip/address/addr_dec_utils.dart';
import 'package:blockchain_utils/bip/address/addr_key_validator.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/bip_ecc.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';
import 'exception/exception.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/address/zil_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:blockchain_utils/bech32/bech32_base.dart';
import 'package:blockchain_utils/bip/address/addr_key_validator.dart';
import 'package:blockchain_utils/bip/address/decoder.dart';
import 'package:blockchain_utils/bip/address/encoder.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';

/// Constants related to Zilliqa (ZIL) blockchain addresses.
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/bip/bip38/bip38_addr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
*/

import 'package:blockchain_utils/bip/address/p2pkh_addr.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/crypto/quick_crypto.dart';
import 'package:blockchain_utils/utils/utils.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/bip/conf/bip44/bip44_conf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:blockchain_utils/bip/bip/conf/config/bip_bitcoin_cash_conf.dart'
import 'package:blockchain_utils/bip/bip/conf/config/bip_coin_conf.dart';
import 'package:blockchain_utils/bip/bip/conf/config/bip_litecoin_conf.dart';
import 'package:blockchain_utils/bip/bip/conf/const/bip_conf_const.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/curve/elliptic_curve_types.dart';
import 'package:blockchain_utils/bip/slip/slip44/slip44.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/bip/conf/bip49/bip49_conf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:blockchain_utils/bip/bip/conf/config/bip_bitcoin_cash_conf.dart'
import 'package:blockchain_utils/bip/bip/conf/config/bip_coin_conf.dart';
import 'package:blockchain_utils/bip/bip/conf/config/bip_litecoin_conf.dart';
import 'package:blockchain_utils/bip/bip/conf/const/bip_conf_const.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/curve/elliptic_curve_types.dart';
import 'package:blockchain_utils/bip/slip/slip44/slip44.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/bip/conf/bip84/bip84_conf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:blockchain_utils/bip/address/encoders.dart';
import 'package:blockchain_utils/bip/bip/bip32/bip32_key_net_ver.dart';
import 'package:blockchain_utils/bip/bip/conf/config/bip_coin_conf.dart';
import 'package:blockchain_utils/bip/bip/conf/const/bip_conf_const.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/curve/elliptic_curve_types.dart';
import 'package:blockchain_utils/bip/slip/slip44/slip44.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/bip/conf/bip86/bip86_conf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import 'package:blockchain_utils/bip/address/p2tr_addr.dart';
import 'package:blockchain_utils/bip/bip/bip32/bip32_const.dart';
import 'package:blockchain_utils/bip/bip/conf/config/bip_coin_conf.dart';
import 'package:blockchain_utils/bip/bip/conf/const/bip_conf_const.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/curve/elliptic_curve_types.dart';
import 'package:blockchain_utils/bip/slip/slip44/slip44.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/cardano/cip1852/conf/cip1852_conf.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:blockchain_utils/bip/address/ada/network.dart';
import 'package:blockchain_utils/bip/bip/bip32/bip32_const.dart';
import 'package:blockchain_utils/bip/bip/conf/config/bip_coin_conf.dart';
import 'package:blockchain_utils/bip/bip/conf/const/bip_conf_const.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/curve/elliptic_curve_types.dart';
import 'package:blockchain_utils/bip/slip/slip44/slip44.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/bip/coin_conf/conf.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export 'constants/coins_conf.dart';
export 'constant/coins_conf.dart';
export 'model/coin_conf.dart';
export 'model/coins_name.dart';
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/bip/electrum/electrum_v1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:blockchain_utils/exception/exception.dart';
import 'package:blockchain_utils/utils/utils.dart';
import 'package:blockchain_utils/bip/address/p2pkh_addr.dart';
import 'package:blockchain_utils/bip/bip/bip32/bip32_key_data.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/keys/i_keys.dart';
import 'package:blockchain_utils/bip/ecc/keys/ecdsa_keys.dart';
import 'package:blockchain_utils/bip/ecc/keys/secp256k1_keys_ecdsa.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/electrum/electrum_v2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import 'package:blockchain_utils/bip/address/p2wpkh_addr.dart';
import 'package:blockchain_utils/bip/bip/bip32/base/bip32_base.dart';
import 'package:blockchain_utils/bip/bip/bip32/bip32_keys.dart';
import 'package:blockchain_utils/bip/bip/bip32/slip10/bip32_slip10_secp256k1.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';

/// An abstract base class for Electrum V2 implementations
abstract class ElectrumV2Base {
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/monero/conf/monero_conf.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/monero/conf/monero_coin_conf.dart';

/// A configuration class for Monero that defines the key network versions and
Expand Down
2 changes: 1 addition & 1 deletion lib/bip/substrate/conf/substrate_conf.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:blockchain_utils/bip/address/substrate_addr.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/ecc/curve/elliptic_curve_types.dart';
import 'substrate_coin_conf.dart';

Expand Down
2 changes: 2 additions & 0 deletions lib/blockchain_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export 'bip/ecc/bip_ecc.dart';
/// Exports utility functions related to TON mnemonic.
export 'bip/ton/ton.dart';

export 'bip/coin_conf/conf.dart';

/// Exports utility functions related to mnemonic.
export 'bip/mnemonic/mnemonic.dart';

Expand Down
1 change: 0 additions & 1 deletion test/bech32/bch_bech32_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/blockchain_utils.dart';
import 'package:test/test.dart';

Expand Down
2 changes: 1 addition & 1 deletion test/elctrum/v1/v1_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:blockchain_utils/bip/address/p2pkh_addr.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/coin_conf/constant/coins_conf.dart';
import 'package:blockchain_utils/bip/electrum/electrum_v1.dart';
import 'package:blockchain_utils/bip/wif/wif.dart';
import 'package:blockchain_utils/utils/utils.dart';
Expand Down
5 changes: 1 addition & 4 deletions test/elctrum/v2/v2_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/electrum/electrum_v2.dart';
import 'package:blockchain_utils/bip/wif/wif.dart';
import 'package:blockchain_utils/utils/utils.dart';
import 'package:blockchain_utils/blockchain_utils.dart';
import 'package:test/test.dart';

import '../../quick_hex.dart';
Expand Down
5 changes: 1 addition & 4 deletions test/wif/wif_test.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// ignore_for_file: depend_on_referenced_packages

import 'package:blockchain_utils/bip/address/p2pkh_addr.dart';
import 'package:blockchain_utils/bip/coin_conf/constants/coins_conf.dart';
import 'package:blockchain_utils/bip/wif/wif.dart';
import 'package:blockchain_utils/utils/utils.dart';
import 'package:blockchain_utils/exception/exception.dart';
import 'package:blockchain_utils/blockchain_utils.dart';
import 'package:test/test.dart';

final List<Map<String, dynamic>> _testVector = [
Expand Down

0 comments on commit 5a866c1

Please sign in to comment.