Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export enum CoinFamily {
CELO = 'celo',
CSPR = 'cspr',
DASH = 'dash',
DOGE = 'doge',
DOT = 'dot',
ETH = 'eth',
ETH2 = 'eth2',
Expand Down Expand Up @@ -256,7 +257,6 @@ export enum UnderlyingAsset {
CDT = 'cdt',
CEL = 'cel',
CELR = 'celr',
CFX = 'cfx',
CETH = 'ceth',
CHFX = 'chfx',
CHSB = 'chsb',
Expand Down Expand Up @@ -309,6 +309,7 @@ export enum UnderlyingAsset {
DIGG = 'digg',
DMT = 'dmt',
DODO = 'dodo',
DOGE = 'doge',
DPI = 'dpi',
DRPU = 'drpu',
DRV = 'drv',
Expand Down
3 changes: 2 additions & 1 deletion modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export const coins = CoinMap.fromCoins([
utxo('tdash', 'Testnet Dash', Networks.test.dash, UnderlyingAsset.DASH),
utxo('zec', 'ZCash', Networks.main.zCash, UnderlyingAsset.ZEC),
utxo('tzec', 'Testnet ZCash', Networks.test.zCash, UnderlyingAsset.ZEC),
utxo('doge', 'Dogecoin', Networks.main.dogecoin, UnderlyingAsset.DOGE),
utxo('tdoge', 'Testnet Dogecoin', Networks.test.dogecoin, UnderlyingAsset.DOGE),
avaxp('avaxp', 'Avalanche P-Chain', Networks.main.avalancheP, UnderlyingAsset.AVAXP),
avaxp('tavaxp', 'Testnet Avalanche P-Chain', Networks.test.avalancheP, UnderlyingAsset.AVAXP),
account('algo', 'Algorand', Networks.main.algorand, 6, UnderlyingAsset.ALGO, ALGO_FEATURES, KeyCurve.Ed25519),
Expand Down Expand Up @@ -290,7 +292,6 @@ export const coins = CoinMap.fromCoins([
erc20('cdt', 'Blox', 18, '0x177d39ac676ed1c67a2b268ad7f1e58826e5b0af', UnderlyingAsset.CDT),
erc20('cel', 'Celsius', 4, '0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d', UnderlyingAsset.CEL),
erc20('celr', 'Celer Network', 18, '0x4f9254c83eb525f9fcf346490bbb3ed28a81c667', UnderlyingAsset.CELR),
erc20('cfx', 'Changer Token', 18, '0x969faf8ca66b0d53a5196b5d3a0952cd3a88e074', UnderlyingAsset.CFX),
erc20('ceth', 'Compound Ether', 8, '0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5', UnderlyingAsset.CETH),
erc20('chfx', 'eToro Swiss Frank', 18, '0xe435502c85a4e7e79cfab4167af566c27a7a0784', UnderlyingAsset.CHFX),
erc20('chsb', 'SwissBorg', 8, '0xba9d4199fab4f26efe3551d490e3821486f135ba', UnderlyingAsset.CHSB),
Expand Down
16 changes: 16 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,20 @@ class DashTestnet extends Testnet implements UtxoNetwork {
explorerUrl = 'https://testnet-insight.dashevo.org/insight/tx/';
}

class Dogecoin extends Mainnet implements UtxoNetwork {
name = 'Dogecoin';
family = CoinFamily.DOGE;
utxolibName = 'dogecoin';
explorerUrl = 'https://blockchair.com/dogecoin/transaction/';
}

class DogecoinTestnet extends Testnet implements UtxoNetwork {
name = 'DogecoinTestnet';
family = CoinFamily.DOGE;
utxolibName = 'dogecoinTest';
explorerUrl = 'https://blockexplorer.one/dogecoin/testnet/tx/';
}

class Polkadot extends Mainnet implements DotNetwork {
name = 'Polkadot';
family = CoinFamily.DOT;
Expand Down Expand Up @@ -605,6 +619,7 @@ export const Networks = {
casper: Object.freeze(new Casper()),
celo: Object.freeze(new Celo()),
dash: Object.freeze(new Dash()),
dogecoin: Object.freeze(new Dogecoin()),
dot: Object.freeze(new Polkadot()),
eos: Object.freeze(new Eos()),
ethereum: Object.freeze(new Ethereum()),
Expand Down Expand Up @@ -638,6 +653,7 @@ export const Networks = {
casper: Object.freeze(new CasperTestnet()),
celo: Object.freeze(new CeloTestnet()),
dash: Object.freeze(new DashTestnet()),
dogecoin: Object.freeze(new DogecoinTestnet()),
dot: Object.freeze(new PolkadotTestnet()),
eos: Object.freeze(new EosTestnet()),
fiat: Object.freeze(new FiatTestnet()),
Expand Down
2 changes: 1 addition & 1 deletion modules/utxo-lib/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Many examples for Bitcoin, Bitcoin Cash, Bitcoin Gold, Bitcoin SV, and Litecoin

## Bitcoin Gold

* [Create Address](./examples/utxo/create-address-gold.ts)
* [Create Address](./examples/utxo/create-address-btg.ts)