Skip to content

Commit e22d07d

Browse files
committed
lint and test modification
1 parent 1eeb17f commit e22d07d

File tree

6 files changed

+26
-14
lines changed

6 files changed

+26
-14
lines changed

src/cjs/networks.cjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
'use strict';
2-
// https://en.bitcoin.it/wiki/List_of_address_prefixes
3-
// Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
42
Object.defineProperty(exports, '__esModule', { value: true });
53
exports.testnet = exports.regtest = exports.bitcoin = void 0;
64
/**

src/cjs/networks.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
/**
2-
* Represents a Bitcoin network configuration,including messagePrefix, bech32, bip32, pubKeyHash, scriptHash, wif.
3-
* Support bitcoin、bitcoin testnet and bitcoin regtest.
2+
* This module defines the network configurations for Bitcoin and its variants, including message prefixes,
3+
* Bech32 address format, BIP32 key derivation prefixes, and other address-related configurations.
4+
* It supports Bitcoin, Bitcoin testnet, and Bitcoin regtest networks.
5+
*
6+
* Additional information on address prefixes can be found here:
7+
* - https://en.bitcoin.it/wiki/List_of_address_prefixes
8+
*
9+
* Note: Dogecoin BIP32 is a proposed standard, more info can be found here:
10+
* - https://bitcointalk.org/index.php?topic=409731
11+
*
412
* @packageDocumentation
513
*/
614
export interface Network {

src/cjs/payments/index.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
/**
2-
* Represents a payment object, which is used to create a payment.
2+
* Provides functionality for creating and managing Bitcoin payment objects.
33
*
4-
* Supports P2PKH、P2SH、P2WPKH、P2WSH、P2TR and so on
4+
* This module supports multiple Bitcoin address types for payments, including:
5+
* - P2PKH (Pay-to-PubKey-Hash)
6+
* - P2SH (Pay-to-Script-Hash)
7+
* - P2WPKH (Pay-to-Witness-PubKey-Hash)
8+
* - P2WSH (Pay-to-Witness-Script-Hash)
9+
* - P2TR (Taproot)
10+
*
11+
* The `Payment` interface defines the structure of a payment object used for constructing various
12+
* payment types, with fields for signatures, public keys, redeem scripts, and more.
513
*
614
* @packageDocumentation
715
*/

src/esm/networks.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// https://en.bitcoin.it/wiki/List_of_address_prefixes
2-
// Dogecoin BIP32 is a proposed standard: https://bitcointalk.org/index.php?topic=409731
31
/**
42
* Represents the Bitcoin network configuration.
53
*/

ts_src/networks.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/**
2-
* This module defines the network configurations for Bitcoin and its variants, including message prefixes,
2+
* This module defines the network configurations for Bitcoin and its variants, including message prefixes,
33
* Bech32 address format, BIP32 key derivation prefixes, and other address-related configurations.
44
* It supports Bitcoin, Bitcoin testnet, and Bitcoin regtest networks.
5-
*
5+
*
66
* Additional information on address prefixes can be found here:
77
* - https://en.bitcoin.it/wiki/List_of_address_prefixes
8-
*
8+
*
99
* Note: Dogecoin BIP32 is a proposed standard, more info can be found here:
1010
* - https://bitcointalk.org/index.php?topic=409731
11-
*
11+
*
1212
* @packageDocumentation
1313
*/
1414
export interface Network {

ts_src/payments/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
22
* Provides functionality for creating and managing Bitcoin payment objects.
3-
*
3+
*
44
* This module supports multiple Bitcoin address types for payments, including:
55
* - P2PKH (Pay-to-PubKey-Hash)
66
* - P2SH (Pay-to-Script-Hash)
77
* - P2WPKH (Pay-to-Witness-PubKey-Hash)
88
* - P2WSH (Pay-to-Witness-Script-Hash)
99
* - P2TR (Taproot)
10-
*
10+
*
1111
* The `Payment` interface defines the structure of a payment object used for constructing various
1212
* payment types, with fields for signatures, public keys, redeem scripts, and more.
1313
*

0 commit comments

Comments
 (0)