Skip to content

Commit 75bdf60

Browse files
authored
feat: add Tempo Mainnet and Tempo Moderato Testnet (#177)
1 parent eea5adc commit 75bdf60

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

packages/delegation-deployments/script/validate-contract-deployments.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,49 @@ const monadMainnetChain: Chain = {
121121
},
122122
};
123123

124+
const tempoModeratoTestnetChain: Chain = {
125+
id: 42431,
126+
name: 'Tempo Testnet Moderato',
127+
rpcUrls: {
128+
default: {
129+
http: ['https://rpc.moderato.tempo.xyz'],
130+
},
131+
},
132+
// There is no concept of native currency on Tempo,
133+
// which is one of the challenges of this implementation.
134+
// Gas can be paid using pathUSD (TIP20/ERC20)
135+
// from Tempo's faucet: https://docs.tempo.xyz/quickstart/faucet
136+
// pathUSD gets selected automatically when it is in the account.
137+
// Information as dispensed by chainlist:
138+
nativeCurrency: {
139+
name: 'USD',
140+
symbol: 'USD',
141+
decimals: 18,
142+
},
143+
};
144+
145+
const tempoMainnetChain: Chain = {
146+
id: 4217,
147+
name: 'Tempo Mainnet',
148+
rpcUrls: {
149+
default: {
150+
// Currently behind authwall (contract deployment tested with QuickNode endpoint)
151+
http: ['https://rpc.tempo.xyz'],
152+
},
153+
},
154+
// There is no concept of native currency on Tempo,
155+
// which is one of the challenges of this implementation.
156+
// Gas can be paid using pathUSD (TIP20/ERC20)
157+
// from Tempo's faucet: https://docs.tempo.xyz/quickstart/faucet
158+
// pathUSD gets selected automatically when it is in the account.
159+
// Information as dispensed by chainlist:
160+
nativeCurrency: {
161+
name: 'USD',
162+
symbol: 'USD',
163+
decimals: 18,
164+
},
165+
};
166+
124167
const citreaTestnetChain: Chain = {
125168
id: 5115,
126169
name: 'Citrea Testnet',
@@ -210,6 +253,8 @@ export const chains = {
210253
monad: monadMainnetChain,
211254
megaEthMainnet: megaEthMainnetChain,
212255
roninSaigon: roninSaigonChain,
256+
tempoModeratoTestnet: tempoModeratoTestnetChain,
257+
tempoMainnet: tempoMainnetChain,
213258
} as any as { [key: string]: Chain };
214259

215260
// The default rpc urls for these chains are not reliable, so we override them

packages/delegation-deployments/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export const CHAIN_ID = {
2626
megaEthMainnet: 0x10e6,
2727
celo: 0xa4ec,
2828
ronin: 0x7e4,
29+
tempoMainnet: 0x1079,
2930
// Testnets
3031
bscTestnet: 0x61,
3132
arbitrumSepolia: 0x66eee,
@@ -46,6 +47,7 @@ export const CHAIN_ID = {
4647
unichainSepolia: 0x515,
4748
celoSepolia: 0xaa044c,
4849
roninSaigon: 0x31769,
50+
tempoModeratoTestnet: 0xa5bf,
4951
// decommissioned
5052
lineaGoerli: 0xe704,
5153
};
@@ -108,6 +110,7 @@ export const DELEGATOR_CONTRACTS: DeployedContracts = {
108110
[CHAIN_ID.megaEthMainnet]: DEPLOYMENTS_1_3_0,
109111
[CHAIN_ID.celo]: DEPLOYMENTS_1_3_0,
110112
[CHAIN_ID.ronin]: DEPLOYMENTS_1_3_0,
113+
[CHAIN_ID.tempoMainnet]: DEPLOYMENTS_1_3_0,
111114
// Testnets
112115
[CHAIN_ID.bscTestnet]: DEPLOYMENTS_1_3_0,
113116
[CHAIN_ID.citreaTestnet]: DEPLOYMENTS_1_3_0,
@@ -128,5 +131,6 @@ export const DELEGATOR_CONTRACTS: DeployedContracts = {
128131
[CHAIN_ID.hoodiTestnet]: DEPLOYMENTS_1_3_0,
129132
[CHAIN_ID.celoSepolia]: DEPLOYMENTS_1_3_0,
130133
[CHAIN_ID.roninSaigon]: DEPLOYMENTS_1_3_0,
134+
[CHAIN_ID.tempoModeratoTestnet]: DEPLOYMENTS_1_3_0,
131135
},
132136
};

0 commit comments

Comments
 (0)