Skip to content

Commit 17884ca

Browse files
Merge pull request #7661 from BitGo/WIN-8082
feat: add DogeOS support WIN-8082
2 parents 86df81e + c760ffc commit 17884ca

File tree

6 files changed

+74
-0
lines changed

6 files changed

+74
-0
lines changed

modules/bitgo/test/v2/unit/keychains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ describe('V2 Keychains', function () {
105105
n.asset !== UnderlyingAsset.JOVAYETH &&
106106
n.asset !== UnderlyingAsset.OKB &&
107107
n.asset !== UnderlyingAsset.MORPH &&
108+
n.asset !== UnderlyingAsset.DOGEOS &&
108109
coinFamilyValues.includes(n.name)
109110
);
110111

modules/sdk-core/src/bitgo/environments.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ const mainnetBase: EnvironmentTemplate = {
289289
morph: {
290290
baseUrl: 'https://explorer-api-hoodi.morphl2.io', // TODO: WIN-8134 add mainnet url when available
291291
},
292+
dogeos: {
293+
baseUrl: 'https://blockscout.testnet.dogeos.com', //TODO: WIN-8082 => add mainnet url when available
294+
},
292295
},
293296
icpNodeUrl: 'https://ic0.app',
294297
worldExplorerBaseUrl: 'https://worldscan.org/',
@@ -445,6 +448,9 @@ const testnetBase: EnvironmentTemplate = {
445448
morph: {
446449
baseUrl: 'https://explorer-api-hoodi.morphl2.io',
447450
},
451+
dogeos: {
452+
baseUrl: 'https://blockscout.testnet.dogeos.com',
453+
},
448454
},
449455
stxNodeUrl: 'https://api.testnet.hiro.so',
450456
vetNodeUrl: 'https://sync-testnet.vechain.org',

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,49 @@ export const allCoinsAndTokens = [
23562356
CoinFeature.EVM_COMPATIBLE_WP,
23572357
]
23582358
),
2359+
account(
2360+
'887eebff-5d50-47f7-aea5-905e25c2e846',
2361+
'tdogeos',
2362+
'DogeOS Testnet',
2363+
Networks.test.dogeos,
2364+
18,
2365+
UnderlyingAsset.DOGEOS,
2366+
BaseUnit.ETH,
2367+
[
2368+
...EVM_FEATURES,
2369+
CoinFeature.SHARED_EVM_SIGNING,
2370+
CoinFeature.SHARED_EVM_SDK,
2371+
CoinFeature.EVM_COMPATIBLE_IMS,
2372+
CoinFeature.EVM_COMPATIBLE_UI,
2373+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2374+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2375+
],
2376+
KeyCurve.Secp256k1,
2377+
'',
2378+
'TDogeOS'
2379+
),
2380+
account(
2381+
'7d69a368-ea4b-422d-bb21-38812fb5a418',
2382+
'dogeos',
2383+
'DogeOS',
2384+
Networks.main.dogeos,
2385+
18,
2386+
UnderlyingAsset.DOGEOS,
2387+
BaseUnit.ETH,
2388+
[
2389+
...EVM_FEATURES,
2390+
CoinFeature.SHARED_EVM_SIGNING,
2391+
CoinFeature.SHARED_EVM_SDK,
2392+
CoinFeature.EVM_COMPATIBLE_IMS,
2393+
CoinFeature.EVM_COMPATIBLE_UI,
2394+
CoinFeature.EVM_NON_BITGO_RECOVERY,
2395+
CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY,
2396+
CoinFeature.SUPPORTS_ERC20,
2397+
],
2398+
KeyCurve.Secp256k1,
2399+
'',
2400+
'DogeOS'
2401+
),
23592402
canton(
23602403
'07385320-5a4f-48e9-97a5-86d4be9f24b0',
23612404
'canton',

modules/statics/src/base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export enum CoinFamily {
4747
CSPR = 'cspr',
4848
DASH = 'dash',
4949
DOGE = 'doge',
50+
DOGEOS = 'dogeos',
5051
DOT = 'dot',
5152
ETH = 'eth',
5253
ETH2 = 'eth2',
@@ -951,6 +952,7 @@ export enum UnderlyingAsset {
951952
DODO = 'dodo',
952953
DOG = 'dog',
953954
DOGE = 'doge',
955+
DOGEOS = 'dogeos',
954956
DOGEBEAR = 'dogebear',
955957
DOGEBEAR2021 = 'dogebear2021',
956958
DOGEBULL = 'dogebull',

modules/statics/src/networks.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,24 @@ class CantonTestnet extends Testnet implements BaseNetwork {
21622162
explorerUrl = 'https://devnet.ccview.io/updates/';
21632163
}
21642164

2165+
class Dogeos extends Mainnet implements EthereumNetwork {
2166+
name = 'Doge OS';
2167+
family = CoinFamily.DOGEOS;
2168+
explorerUrl = 'https://blockscout.testnet.dogeos.com/tx/'; //TODO: WIN-8082 => add mainnet url when available
2169+
accountExplorerUrl = "'https://blockscout.testnet.dogeos.com/address/"; //TODO: WIN-8082 => add mainnet url when available
2170+
chainId = 1234567; ////TODO: WIN-8082 => add mainnet chainId when available
2171+
nativeCoinOperationHashPrefix = '1234567'; //TODO: WIN-8082 => add when mainnet details available
2172+
}
2173+
2174+
class DogeosTestnet extends Testnet implements EthereumNetwork {
2175+
name = 'Doge OS Testnet';
2176+
family = CoinFamily.DOGEOS;
2177+
explorerUrl = 'https://blockscout.testnet.dogeos.com/tx/';
2178+
accountExplorerUrl = 'https://blockscout.testnet.dogeos.com/address/';
2179+
chainId = 6281971;
2180+
nativeCoinOperationHashPrefix = '6281971';
2181+
}
2182+
21652183
export const Networks = {
21662184
main: {
21672185
ada: Object.freeze(new Ada()),
@@ -2190,6 +2208,7 @@ export const Networks = {
21902208
cronos: Object.freeze(new Cronos()),
21912209
dash: Object.freeze(new Dash()),
21922210
dogecoin: Object.freeze(new Dogecoin()),
2211+
dogeos: Object.freeze(new Dogeos()),
21932212
dot: Object.freeze(new PolkadotAssetHub()),
21942213
eCash: Object.freeze(new ECash()),
21952214
eos: Object.freeze(new Eos()),
@@ -2295,6 +2314,7 @@ export const Networks = {
22952314
cronos: Object.freeze(new CronosTestnet()),
22962315
dash: Object.freeze(new DashTestnet()),
22972316
dogecoin: Object.freeze(new DogecoinTestnet()),
2317+
dogeos: Object.freeze(new DogeosTestnet()),
22982318
dot: Object.freeze(new WestendAssetHub()),
22992319
eCash: Object.freeze(new ECashTestnet()),
23002320
eos: Object.freeze(new EosTestnet()),

modules/statics/test/unit/fixtures/expectedColdFeatures.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export const expectedColdFeatures = {
8383
'coredao',
8484
'coreum',
8585
'cronos',
86+
'dogeos',
8687
'dot',
8788
'fetchai',
8889
'flow',
@@ -144,6 +145,7 @@ export const expectedColdFeatures = {
144145
'tcoredao',
145146
'tcoreum',
146147
'tcronos',
148+
'tdogeos',
147149
'tdot',
148150
'tfetchai',
149151
'tflow',

0 commit comments

Comments
 (0)