forked from horizontalsystems/LitecoinKit.Swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3070be4
commit 2a91a64
Showing
13 changed files
with
104 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import BitcoinCore | ||
|
||
public class MainNet: INetwork { | ||
|
||
public let bundleName = "Dogecoin" | ||
|
||
public let pubKeyHash: UInt8 = 0x1e | ||
public let privateKey: UInt8 = 0xb0 | ||
public let scriptHash: UInt8 = 0x16 | ||
public let bech32PrefixPattern: String = "doge" | ||
public let xPubKey: UInt32 = 0xfdcafa02// 0x02facafd | ||
public let xPrivKey: UInt32 = 0x98c3fa02// 0x02fac398 | ||
public let magic: UInt32 = 0xc0c0c0c0 | ||
public let port = 22556 | ||
public let coinType: UInt32 = 3 | ||
public let sigHash: SigHashType = .bitcoinAll | ||
public var syncableFromApi: Bool = false | ||
public var blockchairChainId: String = "dogecoin" | ||
|
||
public let dnsSeeds = [ | ||
"seed.multidoge.org", | ||
"seed2.multidoge.org", | ||
"seed.doger.dogecoin.com" | ||
] | ||
|
||
public let dustRelayTxFee = 3000 | ||
|
||
public init() {} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import BitcoinCore | ||
|
||
class TestNet: INetwork { | ||
let bundleName = "Dogecoin" | ||
|
||
let pubKeyHash: UInt8 = 0x6f | ||
let privateKey: UInt8 = 0xef | ||
let scriptHash: UInt8 = 0x3a | ||
let bech32PrefixPattern: String = "tdge" | ||
let xPubKey: UInt32 = 0xcf873504 | ||
let xPrivKey: UInt32 = 0x94833504 | ||
let magic: UInt32 = 0xdcb7c1fc | ||
let port = 44556 | ||
let coinType: UInt32 = 1 | ||
let sigHash: SigHashType = .bitcoinAll | ||
var syncableFromApi: Bool = false | ||
public var blockchairChainId: String = "" | ||
|
||
let dnsSeeds = [ | ||
"testseed.jrn.me.uk", | ||
] | ||
|
||
let dustRelayTxFee = 3000 // https://github.com/bitcoin/bitcoin/blob/c536dfbcb00fb15963bf5d507b7017c241718bf6/src/policy/policy.h#L50 | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
14 changes: 7 additions & 7 deletions
14
...le/Sources/Adapters/LitecoinAdapter.swift → ...le/Sources/Adapters/DogecoinAdapter.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.