Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes required to run warp check/read/apply #5204

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update registry reference
nambrot committed Jan 19, 2025
commit 39f5a651e312b23cf70faea9d70114ffb1d91cd0
2 changes: 1 addition & 1 deletion .registryrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
89bbb568c97e3225c7dccbfa51cfd87863ddbe82
170e3c61ea1aee88505e67e63ac1c13df8aa1a8e
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import {
ChainMap,
HypTokenRouterConfig,
OwnableConfig,
TokenType,
} from '@hyperlane-xyz/sdk';

import { RouterConfigWithoutOwner } from '../../../../../src/config/warp.js';
import { SEALEVEL_WARP_ROUTE_HANDLER_GAS_AMOUNT } from '../consts.js';

export const getTRUMPWarpConfig = async (
routerConfig: ChainMap<RouterConfigWithoutOwner>,
abacusWorksEnvOwnerConfig: ChainMap<OwnableConfig>,
): Promise<ChainMap<HypTokenRouterConfig>> => {
const tokenConfig: ChainMap<HypTokenRouterConfig> = {
solanamainnet: {
...routerConfig.solanamainnet,
type: TokenType.collateral,
isNft: false,
name: 'OFFICIAL TRUMP',
symbol: 'TRUMP',
decimals: 6,
totalSupply: 0,
token: '6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
owner: '0xa7ECcdb9Be08178f896c26b7BbD8C3D4E844d9Ba',
gas: SEALEVEL_WARP_ROUTE_HANDLER_GAS_AMOUNT,
foreignDeployment: '21tAY4poz2VXvghqdSQpn9j7gYravQmGpuQi8pHPx9DS',
},
base: {
...routerConfig.base,
type: TokenType.synthetic,
isNft: false,
name: 'OFFICIAL TRUMP',
symbol: 'TRUMP',
decimals: 18,
totalSupply: 0,
owner: abacusWorksEnvOwnerConfig.base.owner,
proxyAdmin: {
owner: abacusWorksEnvOwnerConfig.base.owner,
address: '0xBaE44c2D667C73e2144d938d6cC87901A6fd1c00',
},
},
};

return tokenConfig;
};
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ export enum WarpRouteIds {
ArtelaBaseSolanaART = 'ART/artela-base-solanamainnet',
BscEthereumLumiaPrismPNDR = 'PNDR/bsc-ethereum-lumiaprism',
BaseSolanamainnetTONY = 'TONY/base-solanamainnet',
BaseSolanamainnetTRUMP = 'TRUMP/base-solanamainnet',
EclipseEthereumApxEth = 'APXETH/eclipsemainnet-ethereum',
EclipseEthereumSolanaUSDC = 'USDC/eclipsemainnet-ethereum-solanamainnet',
EclipseEthereumSolanaUSDT = 'USDT/eclipsemainnet-ethereum-solanamainnet',
2 changes: 2 additions & 0 deletions typescript/infra/config/warp.ts
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ import { getArtelaBaseUSDCWarpConfig } from './environments/mainnet3/warp/config
import { getArtelaBaseWETHWarpConfig } from './environments/mainnet3/warp/configGetters/getArtelaBaseWETHWarpConfig.js';
import { getBaseFormAIXBTWarpConfig } from './environments/mainnet3/warp/configGetters/getBaseFormAIXBTWarpConfig.js';
import { getBaseFormGAMEWarpConfig } from './environments/mainnet3/warp/configGetters/getBaseFormGAMEWarpConfig.js';
import { getTRUMPWarpConfig } from './environments/mainnet3/warp/configGetters/getBaseSolanaTRUMPWarpConfig.js';
import { getBaseSolanamainnetTONYWarpConfig } from './environments/mainnet3/warp/configGetters/getBaseSolanamainnetTONYWarpConfig.js';
import { getBaseZeroNetworkCBBTCWarpConfig } from './environments/mainnet3/warp/configGetters/getBaseZeroNetworkCBBTCWarpConfig.js';
import { getBobaBsquaredSwellUBTCWarpConfig } from './environments/mainnet3/warp/configGetters/getBobaBsquaredSwellUBTCWarpConfig.js';
@@ -78,6 +79,7 @@ export const warpConfigGetterMap: Record<string, WarpConfigGetter> = {
getRenzoEZETHWarpConfig,
[WarpRouteIds.InevmInjectiveINJ]: getInevmInjectiveINJWarpConfig,
[WarpRouteIds.BaseSolanamainnetTONY]: getBaseSolanamainnetTONYWarpConfig,
[WarpRouteIds.BaseSolanamainnetTRUMP]: getTRUMPWarpConfig,
[WarpRouteIds.BscEthereumLumiaPrismPNDR]:
getBscEthereumLumiaPrismPNDRWarpConfig,
[WarpRouteIds.EthereumFlowCbBTC]: getEthereumFlowCbBTCWarpConfig,