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 @@ -75,6 +75,7 @@ describe('V2 Keychains', function () {
n.asset !== UnderlyingAsset.ARBETH && // TODO(WIN-692): remove this once coin-specific module for arbeth is added
n.asset !== UnderlyingAsset.OPETH && // TODO(WIN-692): remove this once coin-specific module for opeth is added
n.asset !== UnderlyingAsset.ZKETH && // TODO(WIN-1427): remove this once coin-specific module for zketh is added
n.asset !== UnderlyingAsset.OAS && // TODO(WIN-3696): remove this once coin-specific module for oas is added
n.asset !== UnderlyingAsset.RUNE &&
coinFamilyValues.includes(n.name)
);
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 @@ -56,6 +56,7 @@ export enum CoinFamily {
LTC = 'ltc',
POLYGON = 'polygon',
NEAR = 'near',
OAS = 'oas',
OFC = 'ofc',
OPETH = 'opeth',
OSMO = 'osmo',
Expand Down Expand Up @@ -352,6 +353,7 @@ export enum UnderlyingAsset {
LNBTC = 'lnbtc',
LTC = 'ltc',
NEAR = 'near',
OAS = 'oas',
OPETH = 'opeth',
OSMO = 'osmo',
POLYGON = 'polygon',
Expand Down
27 changes: 27 additions & 0 deletions modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,13 @@ const BERA_FEATURES = [
CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA,
CoinFeature.BULK_TRANSACTION,
];
const OAS_FEATURES = [
...ETH_FEATURES,
CoinFeature.MULTISIG_COLD,
CoinFeature.EVM_WALLET,
CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA,
CoinFeature.BULK_TRANSACTION,
];
const ETH_FEATURES_WITH_FRANKFURT = [...ETH_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
const ZETA_FEATURES = [...COSMOS_SIDECHAIN_FEATURES, CoinFeature.CUSTODY_BITGO_SINGAPORE];
const ZETA_EVM_FEATURES = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_SINGAPORE];
Expand Down Expand Up @@ -1226,6 +1233,26 @@ export const coins = CoinMap.fromCoins([
BaseUnit.ETH,
BERA_FEATURES
),
account(
'7482e3f1-5bf8-45a6-9d98-69e0506602d2',
'oas',
'oaschain',
Networks.main.oas,
18,
UnderlyingAsset.OAS,
BaseUnit.ETH,
OAS_FEATURES
),
account(
'b5316b57-8aa3-4f0b-9736-96b7838dbde8',
'toas',
'Testnet oaschain',
Networks.test.oas,
18,
UnderlyingAsset.OAS,
BaseUnit.ETH,
OAS_FEATURES
),
erc20CompatibleAccountCoin(
'bfae821b-cf3a-4190-b1a8-a54af51d730e',
'celo',
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 @@ -1056,6 +1056,24 @@ class BerachainTestnet extends Testnet implements EthereumNetwork {
batcherContractAddress = '0xf499549720116c3dEA867D4fC279C43aCA172712';
}

class Oas extends Mainnet implements EthereumNetwork {
name = 'Oaschain';
family = CoinFamily.OAS;
explorerUrl = 'https://explorer.oasys.games/tx/';
accountExplorerUrl = 'https://explorer.oasys.games/address/';
chainId = 248;
nativeCoinOperationHashPrefix = '248';
}

class OasTestnet extends Testnet implements EthereumNetwork {
name = 'OaschainTestnet';
family = CoinFamily.OAS;
explorerUrl = 'https://scan.sandverse.oasys.games/tx/';
accountExplorerUrl = 'https://scan.sandverse.oasys.games/address/';
chainId = 20197;
nativeCoinOperationHashPrefix = '20197';
}

class BaseChainTestnet extends Testnet implements EthereumNetwork {
name = 'BaseChainTestnet';
family = CoinFamily.BASEETH;
Expand Down Expand Up @@ -1121,6 +1139,7 @@ export const Networks = {
lnbtc: Object.freeze(new LightningBitcoin()),
litecoin: Object.freeze(new Litecoin()),
polygon: Object.freeze(new Polygon()),
oas: Object.freeze(new Oas()),
ofc: Object.freeze(new Ofc()),
optimism: Object.freeze(new Optimism()),
osmo: Object.freeze(new Osmo()),
Expand Down Expand Up @@ -1181,6 +1200,7 @@ export const Networks = {
lnbtc: Object.freeze(new LightningBitcoinTestnet()),
litecoin: Object.freeze(new LitecoinTestnet()),
polygon: Object.freeze(new PolygonTestnet()),
oas: Object.freeze(new OasTestnet()),
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 @@ -19,6 +19,7 @@ export const expectedColdFeatures = {
'etc',
'hbar',
'ltc',
'oas',
'opeth',
'rbtc',
'stx',
Expand All @@ -42,6 +43,7 @@ export const expectedColdFeatures = {
'tetc',
'thbar',
'tltc',
'toas',
'topeth',
'trbtc',
'trx',
Expand Down
Loading