-
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: Stride <> Eclipse TIA and stTIA (#4749)
### Description <!-- What's included in this PR? --> ### Drive-by changes <!-- Are there any minor or drive-by changes also included? --> ### Related issues <!-- - Fixes #[issue number here] --> ### Backward compatibility <!-- Are these changes backward compatible? Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling? Yes/No --> ### Testing <!-- What kind of testing have these changes undergone? None/Manual/Unit Tests -->
- Loading branch information
1 parent
14e4719
commit 1bd8e3e
Showing
12 changed files
with
192 additions
and
18 deletions.
There are no files selected for viewing
43 changes: 26 additions & 17 deletions
43
rust/sealevel/environments/mainnet3/eclipsemainnet/gas-oracle-configs-eclipsemainnet.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 |
---|---|---|
@@ -1,20 +1,29 @@ | ||
[ | ||
{ | ||
"domain": 1, | ||
"gasOracle": { | ||
"type": "remoteGasData", | ||
"tokenExchangeRate": "15000000000000000000", | ||
"gasPrice": "10000000000", | ||
"tokenDecimals": 18 | ||
} | ||
}, | ||
{ | ||
"domain": 1399811149, | ||
"gasOracle": { | ||
"type": "remoteGasData", | ||
"tokenExchangeRate": "887000000000000000", | ||
"gasPrice": "15", | ||
"tokenDecimals": 9 | ||
} | ||
{ | ||
"domain": 1, | ||
"gasOracle": { | ||
"type": "remoteGasData", | ||
"tokenExchangeRate": "15000000000000000000", | ||
"gasPrice": "10000000000", | ||
"tokenDecimals": 18 | ||
} | ||
}, | ||
{ | ||
"domain": 1399811149, | ||
"gasOracle": { | ||
"type": "remoteGasData", | ||
"tokenExchangeRate": "887000000000000000", | ||
"gasPrice": "15", | ||
"tokenDecimals": 9 | ||
} | ||
}, | ||
{ | ||
"domain": 745, | ||
"gasOracle": { | ||
"type": "remoteGasData", | ||
"tokenExchangeRate": "435246388284187", | ||
"gasPrice": "7", | ||
"tokenDecimals": 6 | ||
} | ||
} | ||
] |
10 changes: 10 additions & 0 deletions
10
rust/sealevel/environments/mainnet3/warp-routes/TIA-stride-eclipse/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,10 @@ | ||
{ | ||
"stride": { | ||
"hex": "0x0b1798722ccf813f617ffa8d52d36302544807497434740d98e693e9abb245d1", | ||
"base58": "kJMTJuh4tzhzfTV261wh2cisqb7NNev6ZE6czwB3ss6" | ||
}, | ||
"eclipsemainnet": { | ||
"hex": "0xa0c167513f4d025217a48891973c3dbe41e10e76230033ef5d676299a18ca7f5", | ||
"base58": "BpXHAiktwjx7fN6M9ST9wr6qKAsH27wZFhdHEhReJsR6" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
rust/sealevel/environments/mainnet3/warp-routes/TIA-stride-eclipse/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,17 @@ | ||
{ | ||
"eclipsemainnet": { | ||
"type": "synthetic", | ||
"decimals": 6, | ||
"remoteDecimals": 6, | ||
"name": "Celestia", | ||
"symbol": "TIA", | ||
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/b21b78514a42e8c050b36472c8325fd4b5177366/deployments/warp_routes/TIA/metadata.json", | ||
"interchainGasPaymaster": "3Wp4qKkgf4tjXz1soGyTSndCgBPLZFSrZkiDZ8Qp9EEj" | ||
}, | ||
"stride": { | ||
"type": "collateral", | ||
"decimals": 6, | ||
"token": "ibc/BF3B4F53F3694B66E13C23107C84B6485BD2B96296BB7EC680EA77BBA75B4801", | ||
"foreignDeployment": "0x0b1798722ccf813f617ffa8d52d36302544807497434740d98e693e9abb245d1" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
rust/sealevel/environments/mainnet3/warp-routes/stTIA-stride-eclipse/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,10 @@ | ||
{ | ||
"stride": { | ||
"hex": "0x8d7a6737fdd9545dc77d1c5cc2d26cb1321f6c67f0facb030149da9cc58f0cbe", | ||
"base58": "AXGjtKVpzYdXYX155z6qYQC4Up7fi5LPKNXAK32gi3x9" | ||
}, | ||
"eclipsemainnet": { | ||
"hex": "0x0d258188d0761163da174da890d0c1becdee51a01dbc9e2a6bfcb342140eb509", | ||
"base58": "tKUHyJ5NxhnwU94JUmzh1ekukDcHHX8mZF6fqxbMwX6" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
rust/sealevel/environments/mainnet3/warp-routes/stTIA-stride-eclipse/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,17 @@ | ||
{ | ||
"eclipsemainnet": { | ||
"type": "synthetic", | ||
"decimals": 6, | ||
"remoteDecimals": 6, | ||
"name": "Stride Staked TIA", | ||
"symbol": "stTIA", | ||
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/dee58183e51f4eb43e84dbac0e595a4b389dbe80/deployments/warp_routes/stTIA/metadata.json", | ||
"interchainGasPaymaster": "3Wp4qKkgf4tjXz1soGyTSndCgBPLZFSrZkiDZ8Qp9EEj" | ||
}, | ||
"stride": { | ||
"type": "collateral", | ||
"decimals": 6, | ||
"token": "stutia", | ||
"foreignDeployment": "0x8d7a6737fdd9545dc77d1c5cc2d26cb1321f6c67f0facb030149da9cc58f0cbe" | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
typescript/infra/config/environments/mainnet3/warp/STTIA-eclipsestride-deployments.yaml
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,24 @@ | ||
# Configs and artifacts for the deployment of Hyperlane Warp Routes | ||
description: Hyperlane Warp Route artifacts | ||
timestamp: '2024-10-18T14:00:00.000Z' | ||
deployer: Abacus Works (Hyperlane) | ||
data: | ||
config: | ||
stride: | ||
protocolType: cosmos | ||
type: collateral | ||
hypAddress: stride134axwdlam929m3mar3wv95nvkyep7mr87ravkqcpf8dfe3v0pjlqwrw6ee | ||
# dummy tokenAddress since stTIA is native | ||
tokenAddress: 'stride134axwdlam929m3mar3wv95nvkyep7mr87ravkqcpf8dfe3v0pjlqwrw6ee' | ||
name: Stride Staked TIA | ||
symbol: stTIA | ||
decimals: 6 | ||
eclipsemainnet: | ||
protocolType: sealevel | ||
type: synthetic | ||
hypAddress: 'tKUHyJ5NxhnwU94JUmzh1ekukDcHHX8mZF6fqxbMwX6' | ||
tokenAddress: 'V5m1Cc9VK61mKL8xVYrjR7bjD2BC5VpADLa6ws3G8KM' | ||
isSpl2022: true | ||
name: Turbo Eth | ||
symbol: tETH | ||
decimals: 6 |
23 changes: 23 additions & 0 deletions
23
typescript/infra/config/environments/mainnet3/warp/TIA-eclipsestride-deployments.yaml
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,23 @@ | ||
# Configs and artifacts for the deployment of Hyperlane Warp Routes | ||
description: Hyperlane Warp Route artifacts | ||
timestamp: '2024-10-18T14:00:00.000Z' | ||
deployer: Abacus Works (Hyperlane) | ||
data: | ||
config: | ||
stride: | ||
protocolType: cosmos | ||
type: collateral | ||
hypAddress: stride1pvtesu3ve7qn7ctll2x495mrqf2ysp6fws68grvcu6f7n2ajghgsh2jdj6 | ||
tokenAddress: ibc/BF3B4F53F3694B66E13C23107C84B6485BD2B96296BB7EC680EA77BBA75B4801 | ||
name: Celestia | ||
symbol: TIA | ||
decimals: 6 | ||
eclipsemainnet: | ||
protocolType: sealevel | ||
type: synthetic | ||
hypAddress: 'BpXHAiktwjx7fN6M9ST9wr6qKAsH27wZFhdHEhReJsR6' | ||
tokenAddress: '9RryNMhAVJpAwAGjCAMKbbTFwgjapqPkzpGMfTQhEjf8' | ||
isSpl2022: true | ||
name: Turbo Eth | ||
symbol: tETH | ||
decimals: 6 |
29 changes: 29 additions & 0 deletions
29
.../infra/config/environments/mainnet3/warp/configGetters/getEclipseStrideSTTIAWarpConfig.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,29 @@ | ||
import { | ||
ChainMap, | ||
RouterConfig, | ||
TokenRouterConfig, | ||
TokenType, | ||
} from '@hyperlane-xyz/sdk'; | ||
|
||
export const getEclipseStrideTiaWarpConfig = async ( | ||
_routerConfig: ChainMap<RouterConfig>, | ||
): Promise<ChainMap<TokenRouterConfig>> => { | ||
// @ts-ignore - foreignDeployment configs don't conform to the TokenRouterConfig | ||
const eclipsemainnet: TokenRouterConfig = { | ||
type: TokenType.synthetic, | ||
foreignDeployment: 'BpXHAiktwjx7fN6M9ST9wr6qKAsH27wZFhdHEhReJsR6', | ||
gas: 300_000, | ||
}; | ||
|
||
// @ts-ignore - foreignDeployment configs don't conform to the TokenRouterConfig | ||
const stride: TokenRouterConfig = { | ||
type: TokenType.collateral, | ||
foreignDeployment: | ||
'stride1pvtesu3ve7qn7ctll2x495mrqf2ysp6fws68grvcu6f7n2ajghgsh2jdj6', | ||
}; | ||
|
||
return { | ||
eclipsemainnet, | ||
stride, | ||
}; | ||
}; |
29 changes: 29 additions & 0 deletions
29
...pt/infra/config/environments/mainnet3/warp/configGetters/getEclipseStrideTIAWarpConfig.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,29 @@ | ||
import { | ||
ChainMap, | ||
RouterConfig, | ||
TokenRouterConfig, | ||
TokenType, | ||
} from '@hyperlane-xyz/sdk'; | ||
|
||
export const getEclipseStrideStTiaWarpConfig = async ( | ||
_routerConfig: ChainMap<RouterConfig>, | ||
): Promise<ChainMap<TokenRouterConfig>> => { | ||
// @ts-ignore - foreignDeployment configs don't conform to the TokenRouterConfig | ||
const eclipsemainnet: TokenRouterConfig = { | ||
type: TokenType.synthetic, | ||
foreignDeployment: 'tKUHyJ5NxhnwU94JUmzh1ekukDcHHX8mZF6fqxbMwX6', | ||
gas: 300_000, | ||
}; | ||
|
||
// @ts-ignore - foreignDeployment configs don't conform to the TokenRouterConfig | ||
const stride: TokenRouterConfig = { | ||
type: TokenType.collateral, | ||
foreignDeployment: | ||
'stride134axwdlam929m3mar3wv95nvkyep7mr87ravkqcpf8dfe3v0pjlqwrw6ee', | ||
}; | ||
|
||
return { | ||
eclipsemainnet, | ||
stride, | ||
}; | ||
}; |
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