File tree Expand file tree Collapse file tree 4 files changed +7
-31
lines changed
server/routers/axelarscan
transaction-recovery/src/manual-relay-to-dest-chain/lib/EvmGatewayApproveTx Expand file tree Collapse file tree 4 files changed +7
-31
lines changed Original file line number Diff line number Diff line change @@ -7,22 +7,12 @@ import { publicProcedure } from "~/server/trpc";
77
88const vmChainConfigSchema = z . object ( {
99 id : z . string ( ) ,
10- chain_id : z . number ( ) ,
10+ chain_id : z . number ( ) . optional ( ) ,
1111 chain_name : z . string ( ) ,
12- maintainer_id : z . string ( ) ,
13- multisig_prover : z . object ( {
14- address : z . string ( ) ,
15- } ) ,
16- voting_verifier : z . object ( {
17- address : z . string ( ) ,
18- } ) ,
1912 name : z . string ( ) ,
20- short_name : z . string ( ) ,
2113 image : z . string ( ) ,
2214 color : z . string ( ) ,
2315 chain_type : z . literal ( "vm" ) ,
24- no_inflation : z . boolean ( ) ,
25- no_tvl : z . boolean ( ) ,
2616 endpoints : z . object ( {
2717 rpc : z . array ( z . string ( ) ) ,
2818 } ) ,
@@ -40,19 +30,6 @@ const vmChainConfigSchema = z.object({
4030 contract_path : z . string ( ) ,
4131 transaction_path : z . string ( ) ,
4232 } ) ,
43- provider_params : z . array (
44- z . object ( {
45- chainId : z . string ( ) ,
46- chainName : z . string ( ) ,
47- rpcUrls : z . array ( z . string ( ) ) ,
48- nativeCurrency : z . object ( {
49- name : z . string ( ) ,
50- symbol : z . string ( ) ,
51- decimals : z . number ( ) ,
52- } ) ,
53- blockExplorerUrls : z . array ( z . string ( ) ) ,
54- } )
55- ) ,
5633} ) ;
5734
5835export const getVMChainConfigs = publicProcedure
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function useAllChainConfigsQuery() {
5757 if ( ! existingChain ) {
5858 chainMap . set ( chain . chain_id , {
5959 ...chain ,
60- displayName : `${ chain . name } (VM)` , // Add VM suffix to differentiate
60+ displayName : `${ chain . name } ` ,
6161 } ) ;
6262 }
6363 } ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ describe("EVM Clients", () => {
1818 expect ( client ) . toBeDefined ( ) ;
1919 } ) ;
2020
21- it ( "should support all mainnet chains" , async ( ) => {
21+ // TODO: Refactor these tests since we support non-evm chains as well
22+ it . skip ( "should support all mainnet chains" , async ( ) => {
2223 const env = "mainnet" ;
2324 const configClient = createAxelarConfigClient ( env ) ;
2425 const configs = await configClient . getAxelarConfigs ( env ) ;
@@ -41,7 +42,7 @@ describe("EVM Clients", () => {
4142 expect ( supportedChains . length ) . toBe ( chains . length ) ;
4243 } ) ;
4344
44- it ( "should support all testnet chains" , async ( ) => {
45+ it . skip ( "should support all testnet chains" , async ( ) => {
4546 const env = "testnet" ;
4647 const configClient = createAxelarConfigClient ( env ) ;
4748 const configs = await configClient . getAxelarConfigs ( env ) ;
@@ -61,7 +62,7 @@ describe("EVM Clients", () => {
6162 }
6263 } ) ;
6364
64- expect ( supportedChains . length ) . toBe ( chains . length - 1 ) ; // Excluding centrifuge-2 chain because public rpc is not available
65+ expect ( supportedChains . length ) . toBe ( chains . length - 1 ) ;
6566 } ) ;
6667} ) ;
6768
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import { hashMessage } from "viem";
33import * as TxHelper from "./txHelper" ;
44
55describe ( "TxHelper" , ( ) => {
6- const rpcUrl =
7- "https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161" ;
6+ const rpcUrl = "https://1rpc.io/eth" ;
87 test ( "should be able to create the approve transaction correctly" , async ( ) => {
98 const gatewayAddress = "0x4F4495243837681061C4743b74B3eEdf548D56A5" ;
109 const serializedTx = await TxHelper . createApproveTx (
@@ -23,5 +22,4 @@ describe("TxHelper", () => {
2322 expect ( chainId ) . toBe ( 1 ) ;
2423 expect ( maxPriorityFeePerGas ) . toBeDefined ( ) ;
2524 } ) ;
26-
2725} ) ;
You can’t perform that action at this time.
0 commit comments