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
4 changes: 2 additions & 2 deletions modules/sdk-core/src/bitgo/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const mainnetBase: EnvironmentTemplate = {
chiliz: {
baseUrl: 'https://api.chiliscan.com',
},
codex: {
codexeth: {
baseUrl: 'https://explorer.codex.xyz/api',
},
phrs: {
Expand Down Expand Up @@ -415,7 +415,7 @@ const testnetBase: EnvironmentTemplate = {
chiliz: {
baseUrl: 'https://api.testnet.chiliscan.com',
},
codex: {
codexeth: {
baseUrl: 'https://explorer.codex-stg.xyz/api',
},
phrs: {
Expand Down
16 changes: 8 additions & 8 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2969,11 +2969,11 @@ export const allCoinsAndTokens = [
),
account(
'e10b89f6-3d14-4d85-a05a-da53d6e60489',
'codex',
'Codex',
Networks.main.codex,
'codexeth',
'Codex Ethereum',
Networks.main.codexeth,
18,
UnderlyingAsset.CODEX,
UnderlyingAsset.CODEXETH,
BaseUnit.ETH,
[
...EVM_FEATURES,
Expand All @@ -2987,11 +2987,11 @@ export const allCoinsAndTokens = [
),
account(
'3fe052be-5dc0-42b1-a5a8-63406296d06f',
'tcodex',
'Testnet Codex',
Networks.test.codex,
'tcodexeth',
'Testnet Codex Ethereum',
Networks.test.codexeth,
18,
UnderlyingAsset.CODEX,
UnderlyingAsset.CODEXETH,
BaseUnit.ETH,
[
...EVM_FEATURES,
Expand Down
4 changes: 2 additions & 2 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export enum CoinFamily {
CANTON = 'canton',
CELO = 'celo',
CHILIZ = 'chiliz', // Chiliz Chain
CODEX = 'codex',
CODEXETH = 'codexeth', // Codex Ethereum L2
COREDAO = 'coredao',
COREUM = 'coreum',
CRONOS = 'cronos',
Expand Down Expand Up @@ -572,7 +572,7 @@ export enum UnderlyingAsset {
DOT = 'dot',
CELO = 'celo', // Celo main coin
CHILIZ = 'chiliz', // Chiliz Chain native coin
CODEX = 'codex',
CODEXETH = 'codexeth', // Codex Ethereum L2
COREDAO = 'coredao',
COREUM = 'coreum',
CRONOS = 'cronos',
Expand Down
15 changes: 11 additions & 4 deletions modules/statics/src/coins/ofcCoins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,20 @@ export const ofcCoins = [
UnderlyingAsset.CHILIZ,
CoinKind.CRYPTO
),
ofc('de86d783-852b-4d92-b991-20e7f028cc54', 'ofccodex', 'Codex', 18, UnderlyingAsset.CODEX, CoinKind.CRYPTO),
ofc(
'de86d783-852b-4d92-b991-20e7f028cc54',
'ofccodexeth',
'Codex Ethereum',
18,
UnderlyingAsset.CODEXETH,
CoinKind.CRYPTO
),
tofc(
'dd58bac9-b4be-48cd-9113-55ab924d0c7c',
'ofctcodex',
'Codex Testnet',
'ofctcodexeth',
'Codex Ethereum Testnet',
18,
UnderlyingAsset.CODEX,
UnderlyingAsset.CODEXETH,
CoinKind.CRYPTO
),
ofc('9e2da785-8349-4153-8276-941319575833', 'ofcxtz', 'Tezos', 6, UnderlyingAsset.XTZ, CoinKind.CRYPTO),
Expand Down
16 changes: 8 additions & 8 deletions modules/statics/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,18 +635,18 @@ class ChilizTestnet extends Testnet implements EthereumNetwork {
tokenOperationHashPrefix = '88882-ERC20';
}

class Codex extends Mainnet implements EthereumNetwork {
name = 'Codex';
family = CoinFamily.CODEX;
class CodexEth extends Mainnet implements EthereumNetwork {
name = 'Codex Ethereum';
family = CoinFamily.CODEXETH;
explorerUrl = 'https://explorer.codex.xyz/tx/';
accountExplorerUrl = 'https://explorer.codex.xyz/address/';
chainId = 81224;
nativeCoinOperationHashPrefix = '81224';
}

class CodexTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet Codex';
family = CoinFamily.CODEX;
class CodexEthTestnet extends Testnet implements EthereumNetwork {
name = 'Testnet Codex Ethereum';
family = CoinFamily.CODEXETH;
explorerUrl = 'https://explorer.codex-stg.xyz/tx/';
accountExplorerUrl = 'https://explorer.codex-stg.xyz/address/';
chainId = 812242;
Expand Down Expand Up @@ -2454,7 +2454,7 @@ export const Networks = {
casper: Object.freeze(new Casper()),
celo: Object.freeze(new Celo()),
chiliz: Object.freeze(new Chiliz()),
codex: Object.freeze(new Codex()),
codexeth: Object.freeze(new CodexEth()),
coredao: Object.freeze(new Coredao()),
coreum: Object.freeze(new Coreum()),
cronos: Object.freeze(new Cronos()),
Expand Down Expand Up @@ -2571,7 +2571,7 @@ export const Networks = {
casper: Object.freeze(new CasperTestnet()),
celo: Object.freeze(new CeloTestnet()),
chiliz: Object.freeze(new ChilizTestnet()),
codex: Object.freeze(new CodexTestnet()),
codexeth: Object.freeze(new CodexEthTestnet()),
coredao: Object.freeze(new CoredaoTestnet()),
cronos: Object.freeze(new CronosTestnet()),
dash: Object.freeze(new DashTestnet()),
Expand Down
4 changes: 2 additions & 2 deletions modules/statics/test/unit/fixtures/expectedColdFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const expectedColdFeatures = {
'bsc',
'canton',
'chiliz',
'codex',
'codexeth',
'coredao',
'coreum',
'cronos',
Expand Down Expand Up @@ -153,7 +153,7 @@ export const expectedColdFeatures = {
'tbsc',
'tcanton',
'tchiliz',
'tcodex',
'tcodexeth',
'tcoredao',
'tcoreum',
'tcronos',
Expand Down