Skip to content

Commit

Permalink
Add getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ltyu committed Dec 16, 2024
1 parent 98ee79c commit 0c27456
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import { ethers } from 'ethers';

import {
ChainMap,
HypTokenRouterConfig,
OwnableConfig,
TokenType,
} from '@hyperlane-xyz/sdk';

import {
RouterConfigWithoutOwner,
tokens,
} from '../../../../../src/config/warp.js';

const ISM_CONFIG = ethers.constants.AddressZero; // Default ISM

export const getBasezeronetworkRe7LRTWarpConfig = async (
routerConfig: ChainMap<RouterConfigWithoutOwner>,
abacusWorksEnvOwnerConfig: ChainMap<OwnableConfig>,
): Promise<ChainMap<HypTokenRouterConfig>> => {
const base: HypTokenRouterConfig = {
...routerConfig.base,
...abacusWorksEnvOwnerConfig.base,
type: TokenType.collateral,
token: tokens.base.jackieChain,
interchainSecurityModule: ISM_CONFIG,
};

const zeronetwork: HypTokenRouterConfig = {
...routerConfig.zeronetwork,
...abacusWorksEnvOwnerConfig.zeronetwork,
type: TokenType.synthetic,
interchainSecurityModule: ISM_CONFIG,
};

return {
base,
zeronetwork,
};
};

0 comments on commit 0c27456

Please sign in to comment.