Skip to content

Commit

Permalink
rename stargate config to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDEnYO committed Feb 26, 2025
1 parent f86fc01 commit ccb6eca
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 112 deletions.
72 changes: 1 addition & 71 deletions config/stargate.json → config/stargateV2.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,75 +76,5 @@
"soneium": "0xAF54BE5B6eEc24d6BFACf1cce4eaF680A8239398",
"taiko": "0x45d417612e177672958dC0537C45a8f8d754Ac2E",
"zksync": "---comingSoon---"
},
"endpointIds": [
{
"chainId": 1,
"endpointId": 30101
},
{
"chainId": 137,
"endpointId": 30109
},
{
"chainId": 56,
"endpointId": 30102
},
{
"chainId": 43114,
"endpointId": 30106
},
{
"chainId": 42161,
"endpointId": 30110
},
{
"chainId": 250,
"endpointId": 30112
},
{
"chainId": 10,
"endpointId": 30111
},
{
"chainId": 1088,
"endpointId": 30151
},
{
"chainId": 8453,
"endpointId": 30184
},
{
"chainId": 59144,
"endpointId": 30183
},
{
"chainId": 324,
"endpointId": 30165
},
{
"chainId": 1101,
"endpointId": 30158
},
{
"chainId": 534352,
"endpointId": 30214
},
{
"chainId": 1329,
"endpointId": 30280
},
{
"chainId": 167000,
"endpointId": 30290
},
{
"chainId": 30,
"endpointId": 30333
},
{
"chainId": 122,
"endpointId": 30138
}
]
}
}
2 changes: 1 addition & 1 deletion script/demoScripts/demoStargateV2Tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { node_url } from '../../utils/network'
import deploymentsPOL from '../../deployments/polygon.staging.json'
import deploymentsOPT from '../../deployments/optimism.staging.json'
import stargateConfig from '../../config/stargate.json'
import stargateConfig from '../../config/stargateV2.json'
import { addressToBytes32, Options } from '@layerzerolabs/lz-v2-utilities'

type FeeParams = {
Expand Down
2 changes: 1 addition & 1 deletion script/deploy/facets/DeployReceiverStargateV2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ contract DeployScript is DeployScriptBase {
);

// obtain address of LayerZero's EndPointV2 contract in current network from config file
string memory path = string.concat(root, "/config/stargate.json");
string memory path = string.concat(root, "/config/stargateV2.json");

address endpointV2 = _getConfigContractAddress(
path,
Expand Down
2 changes: 1 addition & 1 deletion script/deploy/facets/DeployStargateFacetV2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contract DeployScript is DeployScriptBase {
}

function getConstructorArgs() internal override returns (bytes memory) {
string memory path = string.concat(root, "/config/stargate.json");
string memory path = string.concat(root, "/config/stargateV2.json");

address tokenMessaging = _getConfigContractAddress(
path,
Expand Down
39 changes: 3 additions & 36 deletions script/deploy/resources/deployRequirements.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,19 +350,10 @@
}
}
},
"StargateFacet": {
"configData": {
"_composer": {
"configFileName": "stargate.json",
"keyInConfigFile": ".composers.<NETWORK>",
"allowToDeployWithZeroAddress": "false"
}
}
},
"StargateFacetV2": {
"configData": {
"_tokenMessaging": {
"configFileName": "stargate.json",
"configFileName": "stargateV2.json",
"keyInConfigFile": ".tokenMessaging.<NETWORK>",
"allowToDeployWithZeroAddress": "false"
}
Expand Down Expand Up @@ -424,12 +415,12 @@
"allowToDeployWithZeroAddress": "false"
},
"_endpointV2": {
"configFileName": "stargate.json",
"configFileName": "stargateV2.json",
"keyInConfigFile": ".endpointV2.<NETWORK>",
"allowToDeployWithZeroAddress": "false"
},
"_tokenMessaging": {
"configFileName": "stargate.json",
"configFileName": "stargateV2.json",
"keyInConfigFile": ".tokenMessaging.<NETWORK>",
"allowToDeployWithZeroAddress": "false"
}
Expand All @@ -440,30 +431,6 @@
}
}
},
"Receiver": {
"configData": {
"_sgRouter": {
"configFileName": "stargate.json",
"keyInConfigFile": ".composers.<NETWORK>",
"allowToDeployWithZeroAddress": "true"
},
"_amarokRouter": {
"configFileName": "amarok.json",
"keyInConfigFile": ".<NETWORK>.connextHandler",
"allowToDeployWithZeroAddress": "true"
},
"_owner": {
"configFileName": "global.json",
"keyInConfigFile": ".refundWallet",
"allowToDeployWithZeroAddress": "false"
}
},
"contractAddresses": {
"Executor": {
"allowToDeployWithZeroAddress": "false"
}
}
},
"ReceiverAcrossV3": {
"configData": {
"_owner": {
Expand Down
2 changes: 1 addition & 1 deletion script/deploy/zksync/DeployReceiverStargateV2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ contract DeployScript is DeployScriptBase {
);

// obtain address of LayerZero's EndPointV2 contract in current network from config file
string memory path = string.concat(root, "/config/stargate.json");
string memory path = string.concat(root, "/config/stargateV2.json");

address endpointV2 = _getConfigContractAddress(
path,
Expand Down
2 changes: 1 addition & 1 deletion script/deploy/zksync/DeployStargateFacetV2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contract DeployScript is DeployScriptBase {
}

function getConstructorArgs() internal override returns (bytes memory) {
string memory path = string.concat(root, "/config/stargate.json");
string memory path = string.concat(root, "/config/stargateV2.json");

address tokenMessaging = _getConfigContractAddress(
path,
Expand Down

0 comments on commit ccb6eca

Please sign in to comment.