-
Notifications
You must be signed in to change notification settings - Fork 172
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
Showing
17 changed files
with
169 additions
and
76 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
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
48 changes: 48 additions & 0 deletions
48
packages/extension/src/providers/bitcoin/networks/dogecoin.ts
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,48 @@ | ||
import { NetworkNames } from "@enkryptcom/types"; | ||
import { | ||
BitcoinNetwork, | ||
BitcoinNetworkOptions, | ||
PaymentType, | ||
} from "../types/bitcoin-network"; | ||
import { ssHandler } from "../libs/activity-handlers"; | ||
import wrapActivityHandler from "@/libs/activity-state/wrap-activity-handler"; | ||
import SSFeeHandler from "../libs/ss-fee-handler"; | ||
import SSApi from "../libs/api-ss"; | ||
|
||
const dogeOptions: BitcoinNetworkOptions = { | ||
name: NetworkNames.Dogecoin, | ||
name_long: "Dogecoin", | ||
homePage: "https://dogecoin.com/", | ||
blockExplorerTX: "https://dogechain.info/tx/[[txHash]]", | ||
blockExplorerAddr: "https://dogechain.info/address/[[address]]", | ||
isTestNetwork: false, | ||
currencyName: "Doge", | ||
currencyNameLong: "Dogecoin", | ||
icon: require("./icons/doge.svg"), | ||
decimals: 8, | ||
node: "https://partners.mewapi.io/nodes/ss/doge", | ||
coingeckoID: "dogecoin", | ||
apiType: SSApi, | ||
activityHandler: wrapActivityHandler(ssHandler), | ||
basePath: "m/44'/3'/0'/0", | ||
feeHandler: () => { | ||
return SSFeeHandler("https://partners.mewapi.io/nodes/ss/doge/api/v1/fees"); | ||
}, | ||
networkInfo: { | ||
messagePrefix: "\x19Dogecoin Signed Message:\n", | ||
bech32: "dc", | ||
bip32: { | ||
public: 0x02facafd, | ||
private: 0x02fac398, | ||
}, | ||
pubKeyHash: 0x1e, | ||
scriptHash: 0x16, | ||
wif: 0x9e, | ||
dustThreshold: null, | ||
paymentType: PaymentType.P2PKH, | ||
}, | ||
}; | ||
|
||
const dogecoin = new BitcoinNetwork(dogeOptions); | ||
|
||
export default dogecoin; |
1 change: 1 addition & 0 deletions
1
packages/extension/src/providers/bitcoin/networks/icons/doge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import btcNode from "./bitcoin"; | ||
import btcTestNode from "./bitcoin-testnet"; | ||
import ltcNode from "./litecoin"; | ||
import dogeNode from "./dogecoin"; | ||
|
||
export default { | ||
bitcoin: btcNode, | ||
bitcoinTest: btcTestNode, | ||
litecoin: ltcNode, | ||
dogecoin: dogeNode, | ||
}; |
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
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.
c94fcf8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Virus total analysis
chrome:
https://www.virustotal.com/gui/file/9d85079335efe17d92984704966766ece6a05d88747b88c7ec70d484a6703312
firefox:
https://www.virustotal.com/gui/file/1e1fb21bc96bf4d1a5d8befd6f31c49c2dffa696c7dd5683f4cdeb28e21cce3b