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

[VEN-2207]: XVS bridge opBNB Testnet deployments #6

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
257 changes: 257 additions & 0 deletions deployments/opbnbtestnet/DefaultProxyAdmin.json

Large diffs are not rendered by default.

584 changes: 584 additions & 0 deletions deployments/opbnbtestnet/XVSBridgeAdmin.json

Large diffs are not rendered by default.

618 changes: 618 additions & 0 deletions deployments/opbnbtestnet/XVSBridgeAdmin_Implementation.json

Large diffs are not rendered by default.

267 changes: 267 additions & 0 deletions deployments/opbnbtestnet/XVSBridgeAdmin_Proxy.json

Large diffs are not rendered by default.

2,267 changes: 2,267 additions & 0 deletions deployments/opbnbtestnet/XVSProxyOFTDest.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const config: HardhatUserConfig = {
network: "opbnbmainnet",
chainId: 204,
urls: {
apiURL: `https://open-platform.nodereal.io/${process.env.ETHERSCAN_API_KEY}/op-bnb-testnet/contract/`,
apiURL: `https://open-platform.nodereal.io/${process.env.ETHERSCAN_API_KEY}/op-bnb-mainnet/contract/`,
browserURL: "https://opbnbscan.com/",
},
},
Expand Down
17 changes: 14 additions & 3 deletions helpers/deploymentConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const preconfiguredAddresses = {
},
opbnbtestnet: {
NormalTimelock: OPBNB_TESTNET_MULTISIG,
LzEndpoint: "0x83c73Da98cf733B03315aFa8758834b36a195b87",
LzVirtualChainId: "10202",
},
};

Expand Down Expand Up @@ -61,7 +63,7 @@ export const xvsTokenPermissions = ["mint(address,uint256)", "burn(address,uint2
export const bridgeConfig: BridgeConfig = {
bsctestnet: {
methods: [
{ method: "setMinDstGas(uint16,uint16,uint256)", args: [10161, 0, "200000"] },
{ method: "setMinDstGas(uint16,uint16,uint256)", args: [10161, 0, "300000"] },
{ method: "setMaxDailyLimit(uint16,uint256)", args: [10161, "500000000000000000000"] },
{ method: "setMaxSingleTransactionLimit(uint16,uint256)", args: [10161, "10000000000000000000"] },
{ method: "setMaxDailyReceiveLimit(uint16,uint256)", args: [10161, "500000000000000000000"] },
Expand All @@ -70,7 +72,7 @@ export const bridgeConfig: BridgeConfig = {
},
bscmainnet: {
methods: [
{ method: "setMinDstGas(uint16,uint16,uint256)", args: [101, 0, "200000"] },
{ method: "setMinDstGas(uint16,uint16,uint256)", args: [101, 0, "300000"] },
{ method: "setMaxDailyLimit(uint16,uint256)", args: [101, "500000000000000000000"] },
{ method: "setMaxSingleTransactionLimit(uint16,uint256)", args: [101, "10000000000000000000"] },
{ method: "setMaxDailyReceiveLimit(uint16,uint256)", args: [101, "500000000000000000000"] },
Expand All @@ -79,7 +81,16 @@ export const bridgeConfig: BridgeConfig = {
},
sepolia: {
methods: [
{ method: "setMinDstGas(uint16,uint16,uint256)", args: [10102, 0, "200000"] },
{ method: "setMinDstGas(uint16,uint16,uint256)", args: [10102, 0, "300000"] },
{ method: "setMaxDailyLimit(uint16,uint256)", args: [10102, "500000000000000000000"] },
{ method: "setMaxSingleTransactionLimit(uint16,uint256)", args: [10102, "10000000000000000000"] },
{ method: "setMaxDailyReceiveLimit(uint16,uint256)", args: [10102, "500000000000000000000"] },
{ method: "setMaxSingleReceiveTransactionLimit(uint16,uint256)", args: [10102, "10000000000000000000"] },
],
},
opbnbtestnet: {
methods: [
{ method: "setMinDstGas(uint16,uint16,uint256)", args: [10102, 0, "300000"] },
{ method: "setMaxDailyLimit(uint16,uint256)", args: [10102, "500000000000000000000"] },
{ method: "setMaxSingleTransactionLimit(uint16,uint256)", args: [10102, "10000000000000000000"] },
{ method: "setMaxDailyReceiveLimit(uint16,uint256)", args: [10102, "500000000000000000000"] },
Expand Down