-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add lumia warp route to infra (#4705)
### Description - Add lumia warp route to infra config
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...fra/config/environments/mainnet3/warp/configGetters/getEthereumBscLumiaLUMIAWarpConfig.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { | ||
ChainMap, | ||
RouterConfig, | ||
TokenRouterConfig, | ||
TokenType, | ||
} from '@hyperlane-xyz/sdk'; | ||
import { objMap } from '@hyperlane-xyz/utils'; | ||
|
||
// Lumia Team | ||
const owner = '0x8bBA07Ddc72455b55530C17e6f6223EF6E156863'; | ||
|
||
export const getEthereumBscLUMIAWarpConfig = async ( | ||
routerConfig: ChainMap<RouterConfig>, | ||
): Promise<ChainMap<TokenRouterConfig>> => { | ||
const ethereum = { | ||
type: TokenType.collateral, | ||
token: '0xD9343a049D5DBd89CD19DC6BcA8c48fB3a0a42a7', | ||
}; | ||
|
||
const bsc = { | ||
type: TokenType.synthetic, | ||
}; | ||
|
||
const lumia = { | ||
type: TokenType.native, | ||
}; | ||
|
||
const configMap = { | ||
ethereum, | ||
bsc, | ||
lumia, | ||
}; | ||
|
||
const merged = objMap(configMap, (chain, config) => ({ | ||
...routerConfig[chain], | ||
...config, | ||
owner, | ||
})); | ||
|
||
return merged as ChainMap<TokenRouterConfig>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f9919c4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A real feat, finally!