Skip to content

Commit

Permalink
TECH-699 OKX X Layer deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelleher committed Sep 12, 2024
1 parent a2e96b5 commit e603601
Show file tree
Hide file tree
Showing 24 changed files with 13,319 additions and 1 deletion.
1,016 changes: 1,016 additions & 0 deletions ethereum/smart-contract/.openzeppelin/unknown-195.json

Large diffs are not rendered by default.

1,016 changes: 1,016 additions & 0 deletions ethereum/smart-contract/.openzeppelin/unknown-196.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions ethereum/smart-contract/config/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,14 @@ export const networks = {
accounts: liveAccounts,
chainId: 324,
},
xlayerMainnet: {
url: process.env.XLAYER_RPC ?? 'https://xlayerrpc.okx.com',
accounts: liveAccounts,
chainId: 196,
},
xlayerTestnet: {
url: process.env.XLAYERTESTNET_RPC ?? 'https://xlayertestrpc.okx.com',
accounts: liveAccounts,
chainId: 195,
},
};
2 changes: 1 addition & 1 deletion ethereum/smart-contract/deploy/gateway-token-v0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {

const args = ['Gateway Protocol', 'PASS', deployer, flagsStorage.address, []];
// use the old proxy contract to retain the correct Create2 Address
const gatewayTokenContract = await deployProxyCreate2(hre, 'GatewayToken', args, GatewayToken__factory.connect);
const gatewayTokenContract = await deployProxyCreate2(hre, 'GatewayToken', args, GatewayToken__factory.connect, false);

const gatewayTokenAddress = await gatewayTokenContract.getAddress();
console.log('deployed GatewayToken at ' + gatewayTokenAddress);
Expand Down
1 change: 1 addition & 0 deletions ethereum/smart-contract/deployments/xlayerMainnet/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
196
Loading

0 comments on commit e603601

Please sign in to comment.