Skip to content

Commit 87bfa0a

Browse files
authored
Merge pull request #7825 from BitGo/WIN-8210
chore(statics): add statics for tempo chain
2 parents 03fe08d + 8b6d303 commit 87bfa0a

File tree

6 files changed

+50
-0
lines changed

6 files changed

+50
-0
lines changed

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ import {
117117
SUI_TOKEN_FEATURES_STAKING,
118118
TAO_FEATURES,
119119
TAO_TOKEN_FEATURES,
120+
TEMPO_FEATURES,
120121
TIA_FEATURES,
121122
TOKEN_FEATURES_WITH_FRANKFURT,
122123
TON_FEATURES,
@@ -2488,6 +2489,26 @@ export const allCoinsAndTokens = [
24882489
'',
24892490
'TARC'
24902491
),
2492+
account(
2493+
'92c6b706-87bc-4a4e-8dd4-2a2c83b724e4',
2494+
'tempo',
2495+
'Tempo',
2496+
Networks.main.tempo,
2497+
18,
2498+
UnderlyingAsset.TEMPO,
2499+
BaseUnit.ETH,
2500+
TEMPO_FEATURES
2501+
),
2502+
account(
2503+
'dfa99966-438d-43e3-8bf1-a6979fee6822',
2504+
'ttempo',
2505+
'Tempo Testnet',
2506+
Networks.test.tempo,
2507+
18,
2508+
UnderlyingAsset.TEMPO,
2509+
BaseUnit.ETH,
2510+
TEMPO_FEATURES
2511+
),
24912512
canton(
24922513
'07385320-5a4f-48e9-97a5-86d4be9f24b0',
24932514
'canton',

modules/statics/src/base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export enum CoinFamily {
126126
FLUENTETH = 'fluenteth',
127127
MORPH = 'morph',
128128
ARC = 'arc', // ARC network
129+
TEMPO = 'tempo', // Tempo Network
129130
}
130131

131132
/**
@@ -1774,6 +1775,7 @@ export enum UnderlyingAsset {
17741775
TEINU = 'teinu',
17751776
TEL = 'tel',
17761777
TELEGRAMDAO = 'telegramdao',
1778+
TEMPO = 'tempo',
17771779
TEN = 'ten',
17781780
TENX = 'tenx',
17791781
TERC = 'terc',

modules/statics/src/coinFeatures.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ export const COREDAO_FEATURES = [
572572
CoinFeature.EIP1559,
573573
CoinFeature.ERC20_BULK_TRANSACTION,
574574
];
575+
export const TEMPO_FEATURES = [...EVM_FEATURES];
575576
export const APECHAIN_FEATURES = [
576577
...ETH_FEATURES,
577578
CoinFeature.TSS,

modules/statics/src/map.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ export class CoinMap {
162162
5734951: 'jovayeth',
163163
2019775: 'tjovayeth',
164164
5042002: 'tarc',
165+
42428: 'tempo',
166+
42429: 'ttempo',
165167
};
166168

167169
private buildChainIdMap(): Map<number, string> {

modules/statics/src/networks.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,6 +2229,26 @@ class ArcTestnet extends Testnet implements EthereumNetwork {
22292229
nativeCoinOperationHashPrefix = '5042002';
22302230
}
22312231

2232+
class Tempo extends Mainnet implements EthereumNetwork {
2233+
name = 'Tempo';
2234+
family = CoinFamily.TEMPO;
2235+
explorerUrl = 'https://scout.tempo.xyz/tx/'; // TODO: Update with actual mainnet explorer when available
2236+
accountExplorerUrl = 'https://scout.tempo.xyz/address/'; // TODO: Update with actual mainnet explorer when available
2237+
chainId = 42428; // TODO: Update with actual mainnet chain ID when available
2238+
nativeCoinOperationHashPrefix = 'TEMPO';
2239+
tokenOperationHashPrefix = 'TEMPO-TIP20';
2240+
}
2241+
2242+
class TempoTestnet extends Testnet implements EthereumNetwork {
2243+
name = 'Tempo Testnet';
2244+
family = CoinFamily.TEMPO;
2245+
explorerUrl = 'https://scout.tempo.xyz/tx/';
2246+
accountExplorerUrl = 'https://scout.tempo.xyz/address/';
2247+
chainId = 42429;
2248+
nativeCoinOperationHashPrefix = '42429';
2249+
tokenOperationHashPrefix = '42429';
2250+
}
2251+
22322252
export const Networks = {
22332253
main: {
22342254
ada: Object.freeze(new Ada()),
@@ -2322,6 +2342,7 @@ export const Networks = {
23222342
soneium: Object.freeze(new Soneium()),
23232343
susd: Object.freeze(new SUSD()),
23242344
tao: Object.freeze(new Bittensor()),
2345+
tempo: Object.freeze(new Tempo()),
23252346
tia: Object.freeze(new Tia()),
23262347
ton: Object.freeze(new Ton()),
23272348
trx: Object.freeze(new Trx()),
@@ -2433,6 +2454,7 @@ export const Networks = {
24332454
susd: Object.freeze(new SUSDTestnet()),
24342455
coreum: Object.freeze(new CoreumTestnet()),
24352456
tao: Object.freeze(new BittensorTestnet()),
2457+
tempo: Object.freeze(new TempoTestnet()),
24362458
tia: Object.freeze(new TiaTestnet()),
24372459
ton: Object.freeze(new TonTestnet()),
24382460
trx: Object.freeze(new TrxTestnet()),

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export const expectedColdFeatures = {
120120
'somi',
121121
'sui',
122122
'tao',
123+
'tempo',
123124
'vet',
124125
'wemix',
125126
'world',
@@ -187,6 +188,7 @@ export const expectedColdFeatures = {
187188
'tstt',
188189
'tsui',
189190
'ttao',
191+
'ttempo',
190192
'tthorchain:rune',
191193
'ttia',
192194
'tvet',

0 commit comments

Comments
 (0)