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 @@ -78,6 +78,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.ICP &&
n.asset !== UnderlyingAsset.MANTRA &&
n.asset !== UnderlyingAsset.MON &&
n.asset !== UnderlyingAsset.OG &&
n.asset !== UnderlyingAsset.WORLD &&
n.asset !== UnderlyingAsset.PHRS &&
n.asset !== UnderlyingAsset.CTC &&
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 @@ -217,6 +217,9 @@ const mainnetBase: EnvironmentTemplate = {
hypeevm: {
baseUrl: 'https://rpc.hyperliquid.xyz/evm',
},
og: {
baseUrl: '', //TODO- WIN-6519 when mainnet details available
},
sonic: {
baseUrl: 'https://rpc.soniclabs.com',
},
Expand Down Expand Up @@ -321,6 +324,9 @@ const testnetBase: EnvironmentTemplate = {
hypeevm: {
baseUrl: 'https://rpc.hyperliquid-testnet.xyz/evm',
},
og: {
baseUrl: 'https://chainscan-test.0g.ai/open/api',
},
sonic: {
baseUrl: 'https://rpc.blaze.soniclabs.com',
},
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 @@ -76,6 +76,7 @@ export enum CoinFamily {
NEAR = 'near',
OAS = 'oas',
OFC = 'ofc',
OG = 'og',
OPETH = 'opeth',
OSMO = 'osmo',
RBTC = 'rbtc',
Expand Down Expand Up @@ -499,6 +500,7 @@ export enum UnderlyingAsset {
MON = 'mon',
NEAR = 'near',
OAS = 'oas',
OG = 'og',
OPETH = 'opeth',
OSMO = 'osmo',
POLYGON = 'polygon',
Expand Down
38 changes: 38 additions & 0 deletions modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,44 @@ export const coins = CoinMap.fromCoins([
BaseUnit.BLD,
COSMOS_SIDECHAIN_FEATURES_WITH_STAKING
),
account(
'0d2d6a7f-70a9-4475-afca-2af5cfaddff6',
'tog',
'Zero Gravity Testnet',
Networks.test.og,
18,
UnderlyingAsset.OG,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
],
KeyCurve.Secp256k1,
'',
't0G'
),
account(
'f180825c-a79c-4e4d-8c91-ebeffbd19819',
'og',
'Zero Gravity',
Networks.main.og,
18,
UnderlyingAsset.OG,
BaseUnit.ETH,
[
...EVM_FEATURES,
CoinFeature.SHARED_EVM_SIGNING,
CoinFeature.SHARED_EVM_SDK,
CoinFeature.EVM_COMPATIBLE_IMS,
CoinFeature.EVM_COMPATIBLE_UI,
],
KeyCurve.Secp256k1,
'',
'0G'
),
account(
'4777265e-37f4-44d8-bccd-13e56189fcae',
'sei',
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 @@ -1406,6 +1406,24 @@ class IrysTestnet extends Testnet implements EthereumNetwork {
nativeCoinOperationHashPrefix = '1270';
}

class Og extends Mainnet implements EthereumNetwork {
name = 'Zero Gravity';
family = CoinFamily.OG;
explorerUrl = ''; //TODO- WIN-6519 when mainnet details available
accountExplorerUrl = ''; //TODO- WIN-6519 when mainnet details available
chainId = 9999999999999; //TODO- WIN-6519 when mainnet details available ,this is a dummy value
nativeCoinOperationHashPrefix = ''; //TODO- WIN-6519 when mainnet details available
}

class OgTestnet extends Testnet implements EthereumNetwork {
name = 'Zero Gravity Testnet';
family = CoinFamily.OG;
explorerUrl = 'https://chainscan-galileo.0g.ai/tx/';
accountExplorerUrl = 'https://chainscan-galileo.0g.ai/address/';
chainId = 16601;
nativeCoinOperationHashPrefix = '16601';
}

class Xdc extends Mainnet implements EthereumNetwork {
name = 'XdcChain';
family = CoinFamily.XDC;
Expand Down Expand Up @@ -1739,6 +1757,7 @@ export const Networks = {
ctc: Object.freeze(new Creditcoin()),
hypeevm: Object.freeze(new HypeEVM()),
oas: Object.freeze(new Oas()),
og: Object.freeze(new Og()),
ofc: Object.freeze(new Ofc()),
optimism: Object.freeze(new Optimism()),
osmo: Object.freeze(new Osmo()),
Expand Down Expand Up @@ -1828,6 +1847,7 @@ export const Networks = {
ctc: Object.freeze(new CreditcoinTestnet()),
hypeevm: Object.freeze(new HypeEVMTestnet()),
oas: Object.freeze(new OasTestnet()),
og: Object.freeze(new OgTestnet()),
ofc: Object.freeze(new OfcTestnet()),
optimism: Object.freeze(new OptimismTestnet()),
osmo: Object.freeze(new OsmoTestnet()),
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 @@ -80,6 +80,7 @@ export const expectedColdFeatures = {
'mon',
'near',
'oas',
'og',
'osmo',
'polyx',
'sgb',
Expand Down Expand Up @@ -113,6 +114,7 @@ export const expectedColdFeatures = {
'tdot',
'tfetchai',
'tflr',
'tog',
'tmon',
'tworld',
'tphrs',
Expand Down