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";
7
7
8
8
const vmChainConfigSchema = z . object ( {
9
9
id : z . string ( ) ,
10
- chain_id : z . number ( ) ,
10
+ chain_id : z . number ( ) . optional ( ) ,
11
11
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
- } ) ,
19
12
name : z . string ( ) ,
20
- short_name : z . string ( ) ,
21
13
image : z . string ( ) ,
22
14
color : z . string ( ) ,
23
15
chain_type : z . literal ( "vm" ) ,
24
- no_inflation : z . boolean ( ) ,
25
- no_tvl : z . boolean ( ) ,
26
16
endpoints : z . object ( {
27
17
rpc : z . array ( z . string ( ) ) ,
28
18
} ) ,
@@ -40,19 +30,6 @@ const vmChainConfigSchema = z.object({
40
30
contract_path : z . string ( ) ,
41
31
transaction_path : z . string ( ) ,
42
32
} ) ,
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
- ) ,
56
33
} ) ;
57
34
58
35
export const getVMChainConfigs = publicProcedure
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function useAllChainConfigsQuery() {
57
57
if ( ! existingChain ) {
58
58
chainMap . set ( chain . chain_id , {
59
59
...chain ,
60
- displayName : `${ chain . name } (VM)` , // Add VM suffix to differentiate
60
+ displayName : `${ chain . name } ` ,
61
61
} ) ;
62
62
}
63
63
} ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ describe("EVM Clients", () => {
18
18
expect ( client ) . toBeDefined ( ) ;
19
19
} ) ;
20
20
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 ( ) => {
22
23
const env = "mainnet" ;
23
24
const configClient = createAxelarConfigClient ( env ) ;
24
25
const configs = await configClient . getAxelarConfigs ( env ) ;
@@ -41,7 +42,7 @@ describe("EVM Clients", () => {
41
42
expect ( supportedChains . length ) . toBe ( chains . length ) ;
42
43
} ) ;
43
44
44
- it ( "should support all testnet chains" , async ( ) => {
45
+ it . skip ( "should support all testnet chains" , async ( ) => {
45
46
const env = "testnet" ;
46
47
const configClient = createAxelarConfigClient ( env ) ;
47
48
const configs = await configClient . getAxelarConfigs ( env ) ;
@@ -61,7 +62,7 @@ describe("EVM Clients", () => {
61
62
}
62
63
} ) ;
63
64
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 ) ;
65
66
} ) ;
66
67
} ) ;
67
68
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import { hashMessage } from "viem";
3
3
import * as TxHelper from "./txHelper" ;
4
4
5
5
describe ( "TxHelper" , ( ) => {
6
- const rpcUrl =
7
- "https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161" ;
6
+ const rpcUrl = "https://1rpc.io/eth" ;
8
7
test ( "should be able to create the approve transaction correctly" , async ( ) => {
9
8
const gatewayAddress = "0x4F4495243837681061C4743b74B3eEdf548D56A5" ;
10
9
const serializedTx = await TxHelper . createApproveTx (
@@ -23,5 +22,4 @@ describe("TxHelper", () => {
23
22
expect ( chainId ) . toBe ( 1 ) ;
24
23
expect ( maxPriorityFeePerGas ) . toBeDefined ( ) ;
25
24
} ) ;
26
-
27
25
} ) ;
You can’t perform that action at this time.
0 commit comments