Skip to content

Commit 61b25b3

Browse files
Merge pull request #8153 from BitGo/fix/codex-rename-to-codexeth
fix(statics): rename codex to codexeth following BitGo naming convention
2 parents 2af0792 + 0d80ff9 commit 61b25b3

6 files changed

Lines changed: 33 additions & 26 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const mainnetBase: EnvironmentTemplate = {
221221
chiliz: {
222222
baseUrl: 'https://api.chiliscan.com',
223223
},
224-
codex: {
224+
codexeth: {
225225
baseUrl: 'https://explorer.codex.xyz/api',
226226
},
227227
phrs: {
@@ -418,7 +418,7 @@ const testnetBase: EnvironmentTemplate = {
418418
chiliz: {
419419
baseUrl: 'https://api.testnet.chiliscan.com',
420420
},
421-
codex: {
421+
codexeth: {
422422
baseUrl: 'https://explorer.codex-stg.xyz/api',
423423
},
424424
phrs: {

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3005,11 +3005,11 @@ export const allCoinsAndTokens = [
30053005
),
30063006
account(
30073007
'e10b89f6-3d14-4d85-a05a-da53d6e60489',
3008-
'codex',
3009-
'Codex',
3010-
Networks.main.codex,
3008+
'codexeth',
3009+
'Codex Ethereum',
3010+
Networks.main.codexeth,
30113011
18,
3012-
UnderlyingAsset.CODEX,
3012+
UnderlyingAsset.CODEXETH,
30133013
BaseUnit.ETH,
30143014
[
30153015
...EVM_FEATURES,
@@ -3023,11 +3023,11 @@ export const allCoinsAndTokens = [
30233023
),
30243024
account(
30253025
'3fe052be-5dc0-42b1-a5a8-63406296d06f',
3026-
'tcodex',
3027-
'Testnet Codex',
3028-
Networks.test.codex,
3026+
'tcodexeth',
3027+
'Testnet Codex Ethereum',
3028+
Networks.test.codexeth,
30293029
18,
3030-
UnderlyingAsset.CODEX,
3030+
UnderlyingAsset.CODEXETH,
30313031
BaseUnit.ETH,
30323032
[
30333033
...EVM_FEATURES,

modules/statics/src/base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export enum CoinFamily {
4242
CANTON = 'canton',
4343
CELO = 'celo',
4444
CHILIZ = 'chiliz', // Chiliz Chain
45-
CODEX = 'codex',
45+
CODEXETH = 'codexeth', // Codex Ethereum L2
4646
COREDAO = 'coredao',
4747
COREUM = 'coreum',
4848
CRONOS = 'cronos',
@@ -573,7 +573,7 @@ export enum UnderlyingAsset {
573573
DOT = 'dot',
574574
CELO = 'celo', // Celo main coin
575575
CHILIZ = 'chiliz', // Chiliz Chain native coin
576-
CODEX = 'codex',
576+
CODEXETH = 'codexeth', // Codex Ethereum L2
577577
COREDAO = 'coredao',
578578
COREUM = 'coreum',
579579
CRONOS = 'cronos',

modules/statics/src/coins/ofcCoins.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,20 @@ export const ofcCoins = [
145145
UnderlyingAsset.CHILIZ,
146146
CoinKind.CRYPTO
147147
),
148-
ofc('de86d783-852b-4d92-b991-20e7f028cc54', 'ofccodex', 'Codex', 18, UnderlyingAsset.CODEX, CoinKind.CRYPTO),
148+
ofc(
149+
'de86d783-852b-4d92-b991-20e7f028cc54',
150+
'ofccodexeth',
151+
'Codex Ethereum',
152+
18,
153+
UnderlyingAsset.CODEXETH,
154+
CoinKind.CRYPTO
155+
),
149156
tofc(
150157
'dd58bac9-b4be-48cd-9113-55ab924d0c7c',
151-
'ofctcodex',
152-
'Codex Testnet',
158+
'ofctcodexeth',
159+
'Codex Ethereum Testnet',
153160
18,
154-
UnderlyingAsset.CODEX,
161+
UnderlyingAsset.CODEXETH,
155162
CoinKind.CRYPTO
156163
),
157164
ofc('9e2da785-8349-4153-8276-941319575833', 'ofcxtz', 'Tezos', 6, UnderlyingAsset.XTZ, CoinKind.CRYPTO),

modules/statics/src/networks.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -635,18 +635,18 @@ class ChilizTestnet extends Testnet implements EthereumNetwork {
635635
tokenOperationHashPrefix = '88882-ERC20';
636636
}
637637

638-
class Codex extends Mainnet implements EthereumNetwork {
639-
name = 'Codex';
640-
family = CoinFamily.CODEX;
638+
class CodexEth extends Mainnet implements EthereumNetwork {
639+
name = 'Codex Ethereum';
640+
family = CoinFamily.CODEXETH;
641641
explorerUrl = 'https://explorer.codex.xyz/tx/';
642642
accountExplorerUrl = 'https://explorer.codex.xyz/address/';
643643
chainId = 81224;
644644
nativeCoinOperationHashPrefix = '81224';
645645
}
646646

647-
class CodexTestnet extends Testnet implements EthereumNetwork {
648-
name = 'Testnet Codex';
649-
family = CoinFamily.CODEX;
647+
class CodexEthTestnet extends Testnet implements EthereumNetwork {
648+
name = 'Testnet Codex Ethereum';
649+
family = CoinFamily.CODEXETH;
650650
explorerUrl = 'https://explorer.codex-stg.xyz/tx/';
651651
accountExplorerUrl = 'https://explorer.codex-stg.xyz/address/';
652652
chainId = 812242;
@@ -2472,7 +2472,7 @@ export const Networks = {
24722472
casper: Object.freeze(new Casper()),
24732473
celo: Object.freeze(new Celo()),
24742474
chiliz: Object.freeze(new Chiliz()),
2475-
codex: Object.freeze(new Codex()),
2475+
codexeth: Object.freeze(new CodexEth()),
24762476
coredao: Object.freeze(new Coredao()),
24772477
coreum: Object.freeze(new Coreum()),
24782478
cronos: Object.freeze(new Cronos()),
@@ -2590,7 +2590,7 @@ export const Networks = {
25902590
casper: Object.freeze(new CasperTestnet()),
25912591
celo: Object.freeze(new CeloTestnet()),
25922592
chiliz: Object.freeze(new ChilizTestnet()),
2593-
codex: Object.freeze(new CodexTestnet()),
2593+
codexeth: Object.freeze(new CodexEthTestnet()),
25942594
coredao: Object.freeze(new CoredaoTestnet()),
25952595
cronos: Object.freeze(new CronosTestnet()),
25962596
dash: Object.freeze(new DashTestnet()),

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const expectedColdFeatures = {
8484
'bsc',
8585
'canton',
8686
'chiliz',
87-
'codex',
87+
'codexeth',
8888
'coredao',
8989
'coreum',
9090
'cronos',
@@ -154,7 +154,7 @@ export const expectedColdFeatures = {
154154
'tbsc',
155155
'tcanton',
156156
'tchiliz',
157-
'tcodex',
157+
'tcodexeth',
158158
'tcoredao',
159159
'tcoreum',
160160
'tcronos',

0 commit comments

Comments
 (0)