-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: TRUMP/base-solanamainnet (#5203)
### Description Adds TRUMP/base-solanamainnet route
- Loading branch information
Showing
7 changed files
with
188 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1 @@ | ||
2691132ec47ecc12b6777b5090e323228185d7c7 | ||
9e900994370ccc702b84c332eb4a0479bfeabe07 |
30 changes: 30 additions & 0 deletions
30
rust/sealevel/environments/mainnet3/warp-routes/TRUMP-base-solanamainnet/program-ids.json
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,30 @@ | ||
{ | ||
"form": { | ||
"hex": "0x0000000000000000000000008528baa7d1d386e7967603e480fa2b558a23644c", | ||
"base58": "1111111111112rbf8mSSJDBCxvjCyPAButjBen7u" | ||
}, | ||
"worldchain": { | ||
"hex": "0x0000000000000000000000000fc7b3518c03bfa5e01995285b1ef3c4b55c8922", | ||
"base58": "111111111111DkZ1qm7hv57Sa8ZhNG9yo9cp2qP" | ||
}, | ||
"avalanche": { | ||
"hex": "0x0000000000000000000000000e2a546a53678ee8f8605748193a8c114fa0317f", | ||
"base58": "111111111111CSso9WXV132yty66gXycfU4mjWN" | ||
}, | ||
"flowmainnet": { | ||
"hex": "0x000000000000000000000000d3378b419feae4e3a4bb4f3349dba43a1b511760", | ||
"base58": "1111111111113wfw1fbmfxSpYvFU6NfBtUNJ5q7u" | ||
}, | ||
"base": { | ||
"hex": "0x00000000000000000000000053c0499e7e4abd3e7994ca161523fd50a12bb8c8", | ||
"base58": "1111111111112Ag6Vg3QoPPGirwYeTWBQWR9VmcB" | ||
}, | ||
"arbitrum": { | ||
"hex": "0x0000000000000000000000005155eb1bcd30189915cf84717550acfa537068bf", | ||
"base58": "11111111111128itaWLcGgPMeaS1ccv916mk2HT4" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0x0f1589e8a3b501fb3eedfddd2eed7a262ef34b2292ae9bb86ab08f372c752a29", | ||
"base58": "21tAY4poz2VXvghqdSQpn9j7gYravQmGpuQi8pHPx9DS" | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
rust/sealevel/environments/mainnet3/warp-routes/TRUMP-base-solanamainnet/token-config.json
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,52 @@ | ||
{ | ||
"solanamainnet": { | ||
"type": "collateral", | ||
"decimals": 6, | ||
"remoteDecimals": 18, | ||
"token": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN", | ||
"interchainGasPaymaster": "AkeHBbE5JkwVppujCQQ6WuxsVsJtruBAjUo6fDCFp6fF", | ||
"splTokenProgram": "token" | ||
}, | ||
"base": { | ||
"type": "synthetic", | ||
"decimals": 18, | ||
"foreignDeployment": "0x53c0499e7E4aBD3e7994ca161523FD50A12Bb8C8", | ||
"name": "OFFICIAL TRUMP", | ||
"symbol": "TRUMP" | ||
}, | ||
"arbitrum": { | ||
"type": "synthetic", | ||
"decimals": 18, | ||
"foreignDeployment": "0x5155EB1bcD30189915cF84717550Acfa537068bF", | ||
"name": "OFFICIAL TRUMP", | ||
"symbol": "TRUMP" | ||
}, | ||
"flowmainnet": { | ||
"type": "synthetic", | ||
"decimals": 18, | ||
"foreignDeployment": "0xD3378b419feae4e3A4Bb4f3349DBa43a1B511760", | ||
"name": "OFFICIAL TRUMP", | ||
"symbol": "TRUMP" | ||
}, | ||
"form": { | ||
"type": "synthetic", | ||
"decimals": 18, | ||
"foreignDeployment": "0x8528bAa7d1d386E7967603e480fa2B558a23644c", | ||
"name": "OFFICIAL TRUMP", | ||
"symbol": "TRUMP" | ||
}, | ||
"avalanche": { | ||
"type": "synthetic", | ||
"decimals": 18, | ||
"foreignDeployment": "0x0e2A546a53678ee8F8605748193a8c114fA0317F", | ||
"name": "OFFICIAL TRUMP", | ||
"symbol": "TRUMP" | ||
}, | ||
"worldchain": { | ||
"type": "synthetic", | ||
"decimals": 18, | ||
"foreignDeployment": "0x0fC7b3518C03BfA5e01995285b1eF3c4B55c8922", | ||
"name": "OFFICIAL TRUMP", | ||
"symbol": "TRUMP" | ||
} | ||
} |
100 changes: 100 additions & 0 deletions
100
...ipt/infra/config/environments/mainnet3/warp/configGetters/getBaseSolanaTRUMPWarpConfig.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,100 @@ | ||
import { | ||
ChainMap, | ||
HypTokenRouterConfig, | ||
OwnableConfig, | ||
TokenType, | ||
} from '@hyperlane-xyz/sdk'; | ||
|
||
import { RouterConfigWithoutOwner } from '../../../../../src/config/warp.js'; | ||
import { DEPLOYER } from '../../owners.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 name = 'OFFICIAL TRUMP'; | ||
const symbol = 'TRUMP'; | ||
const totalSupply = 0; | ||
const syntheticToken = { | ||
name, | ||
symbol, | ||
totalSupply, | ||
decimals: 18, | ||
}; | ||
const tokenConfig: ChainMap<HypTokenRouterConfig> = { | ||
solanamainnet: { | ||
...routerConfig.solanamainnet, | ||
type: TokenType.collateral, | ||
name, | ||
symbol, | ||
decimals: 6, | ||
totalSupply, | ||
token: '6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN', | ||
owner: DEPLOYER, | ||
gas: SEALEVEL_WARP_ROUTE_HANDLER_GAS_AMOUNT, | ||
foreignDeployment: '21tAY4poz2VXvghqdSQpn9j7gYravQmGpuQi8pHPx9DS', | ||
}, | ||
base: { | ||
...routerConfig.base, | ||
...syntheticToken, | ||
type: TokenType.synthetic, | ||
owner: abacusWorksEnvOwnerConfig.base.owner, | ||
proxyAdmin: { | ||
owner: abacusWorksEnvOwnerConfig.base.owner, | ||
address: '0xBaE44c2D667C73e2144d938d6cC87901A6fd1c00', | ||
}, | ||
}, | ||
arbitrum: { | ||
...routerConfig.arbitrum, | ||
...syntheticToken, | ||
type: TokenType.synthetic, | ||
owner: DEPLOYER, | ||
proxyAdmin: { | ||
owner: DEPLOYER, | ||
address: '0x2350389Ea8649Da5dD4Fdd09c414dD8463C2695c', | ||
}, | ||
}, | ||
avalanche: { | ||
...routerConfig.avalanche, | ||
...syntheticToken, | ||
type: TokenType.synthetic, | ||
owner: DEPLOYER, | ||
proxyAdmin: { | ||
owner: DEPLOYER, | ||
address: '0x86a2E32BB42584127a24079a4f9113EeFE80db90', | ||
}, | ||
}, | ||
flowmainnet: { | ||
...routerConfig.flowmainnet, | ||
...syntheticToken, | ||
type: TokenType.synthetic, | ||
owner: DEPLOYER, | ||
proxyAdmin: { | ||
owner: DEPLOYER, | ||
address: '0xB504EA900302C7Faf24Cc4F155006d6c0357Dc35', | ||
}, | ||
}, | ||
form: { | ||
...routerConfig.form, | ||
...syntheticToken, | ||
type: TokenType.synthetic, | ||
owner: DEPLOYER, | ||
proxyAdmin: { | ||
owner: DEPLOYER, | ||
address: '0x5b3EeADcc0E2d4284eA6816e2E503c24d30a9E54', | ||
}, | ||
}, | ||
worldchain: { | ||
...routerConfig.worldchain, | ||
...syntheticToken, | ||
type: TokenType.synthetic, | ||
owner: DEPLOYER, | ||
proxyAdmin: { | ||
owner: DEPLOYER, | ||
address: '0x97e4682dBC4Bfd432F1563a7fa9aC218Bc48c861', | ||
}, | ||
}, | ||
}; | ||
return tokenConfig; | ||
}; |
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
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