Skip to content
Merged
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
1 change: 1 addition & 0 deletions modules/bitgo/test/v2/unit/keychains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.JOVAYETH &&
n.asset !== UnderlyingAsset.OKB &&
n.asset !== UnderlyingAsset.MORPH &&
n.asset !== UnderlyingAsset.DOGEOS &&
coinFamilyValues.includes(n.name)
);

Expand Down
6 changes: 6 additions & 0 deletions modules/sdk-core/src/bitgo/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ const mainnetBase: EnvironmentTemplate = {
morph: {
baseUrl: 'https://explorer-api-hoodi.morphl2.io', // TODO: WIN-8134 add mainnet url when available
},
dogeos: {
baseUrl: 'https://blockscout.testnet.dogeos.com', //TODO: WIN-8082 => add mainnet url when available
},
},
icpNodeUrl: 'https://ic0.app',
worldExplorerBaseUrl: 'https://worldscan.org/',
Expand Down Expand Up @@ -445,6 +448,9 @@ const testnetBase: EnvironmentTemplate = {
morph: {
baseUrl: 'https://explorer-api-hoodi.morphl2.io',
},
dogeos: {
baseUrl: 'https://blockscout.testnet.dogeos.com',
},
},
stxNodeUrl: 'https://api.testnet.hiro.so',
vetNodeUrl: 'https://sync-testnet.vechain.org',
Expand Down
43 changes: 43 additions & 0 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2356,6 +2356,49 @@ export const allCoinsAndTokens = [
CoinFeature.EVM_COMPATIBLE_WP,
]
),
account(
'887eebff-5d50-47f7-aea5-905e25c2e846',
'tdogeos',
'DogeOS Testnet',
Networks.test.dogeos,
18,
UnderlyingAsset.DOGEOS,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_NON_BITGO_RECOVERY,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
],
KeyCurve.Secp256k1,
'',
'TDogeOS'
),
account(
'7d69a368-ea4b-422d-bb21-38812fb5a418',
'dogeos',
'DogeOS',
Networks.main.dogeos,
18,
UnderlyingAsset.DOGEOS,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
CoinFeature.EVM_NON_BITGO_RECOVERY,
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
CoinFeature.SUPPORTS_ERC20,
],
KeyCurve.Secp256k1,
'',
'DogeOS'
),
canton(
'07385320-5a4f-48e9-97a5-86d4be9f24b0',
'canton',
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export enum CoinFamily {
CSPR = 'cspr',
DASH = 'dash',
DOGE = 'doge',
DOGEOS = 'dogeos',
DOT = 'dot',
ETH = 'eth',
ETH2 = 'eth2',
Expand Down Expand Up @@ -951,6 +952,7 @@ export enum UnderlyingAsset {
DODO = 'dodo',
DOG = 'dog',
DOGE = 'doge',
DOGEOS = 'dogeos',
DOGEBEAR = 'dogebear',
DOGEBEAR2021 = 'dogebear2021',
DOGEBULL = 'dogebull',
Expand Down
20 changes: 20 additions & 0 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2162,6 +2162,24 @@ class CantonTestnet extends Testnet implements BaseNetwork {
explorerUrl = 'https://devnet.ccview.io/updates/';
}

class Dogeos extends Mainnet implements EthereumNetwork {
name = 'Doge OS';
family = CoinFamily.DOGEOS;
explorerUrl = 'https://blockscout.testnet.dogeos.com/tx/'; //TODO: WIN-8082 => add mainnet url when available
accountExplorerUrl = "'https://blockscout.testnet.dogeos.com/address/"; //TODO: WIN-8082 => add mainnet url when available
chainId = 1234567; ////TODO: WIN-8082 => add mainnet chainId when available
nativeCoinOperationHashPrefix = '1234567'; //TODO: WIN-8082 => add when mainnet details available
}

class DogeosTestnet extends Testnet implements EthereumNetwork {
name = 'Doge OS Testnet';
family = CoinFamily.DOGEOS;
explorerUrl = 'https://blockscout.testnet.dogeos.com/tx/';
accountExplorerUrl = 'https://blockscout.testnet.dogeos.com/address/';
chainId = 6281971;
nativeCoinOperationHashPrefix = '6281971';
}

export const Networks = {
main: {
ada: Object.freeze(new Ada()),
Expand Down Expand Up @@ -2190,6 +2208,7 @@ export const Networks = {
cronos: Object.freeze(new Cronos()),
dash: Object.freeze(new Dash()),
dogecoin: Object.freeze(new Dogecoin()),
dogeos: Object.freeze(new Dogeos()),
dot: Object.freeze(new PolkadotAssetHub()),
eCash: Object.freeze(new ECash()),
eos: Object.freeze(new Eos()),
Expand Down Expand Up @@ -2295,6 +2314,7 @@ export const Networks = {
cronos: Object.freeze(new CronosTestnet()),
dash: Object.freeze(new DashTestnet()),
dogecoin: Object.freeze(new DogecoinTestnet()),
dogeos: Object.freeze(new DogeosTestnet()),
dot: Object.freeze(new WestendAssetHub()),
eCash: Object.freeze(new ECashTestnet()),
eos: Object.freeze(new EosTestnet()),
Expand Down
2 changes: 2 additions & 0 deletions modules/statics/test/unit/fixtures/expectedColdFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const expectedColdFeatures = {
'coredao',
'coreum',
'cronos',
'dogeos',
'dot',
'fetchai',
'flow',
Expand Down Expand Up @@ -144,6 +145,7 @@ export const expectedColdFeatures = {
'tcoredao',
'tcoreum',
'tcronos',
'tdogeos',
'tdot',
'tfetchai',
'tflow',
Expand Down