Skip to content

Commit

Permalink
chore: deploy new token bridge for devnet (#233)
Browse files Browse the repository at this point in the history
Closes #232
  • Loading branch information
DefiCake authored Aug 16, 2024
1 parent c1ba7a9 commit c50d3ad
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/gentle-clocks-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@fuel-bridge/solidity-contracts': patch
---

Deploy new token bridge to devnet
5 changes: 5 additions & 0 deletions packages/solidity-contracts/.openzeppelin/sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@
"address": "0xa97200022c7aDb1b15f0f61f374E3A0c90e2Efa0",
"txHash": "0x78839dcc8bd48354a7f678f95ed1b4dc07439c2fa64f5e7dde48f80e5676c6ce",
"kind": "uups"
},
{
"address": "0x84C9ef458e85bA74F4DBF3a0B14075bE5341747B",
"txHash": "0xa27b677f1028c5a3f9ea3614de771e9265e13e0bf31e072c62f9bb8c6f3b64de",
"kind": "uups"
}
],
"impls": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import type { HardhatRuntimeEnvironment } from 'hardhat/types';
import type { DeployFunction } from 'hardhat-deploy/dist/types';

const ASSET_ISSUER_PROXY_ID =
'0xa10f53918370e471393e4936940eddb05fb189ed62ad662cc4025e2bf638da86';

const ASSET_ISSUER_IMPL_ID =
'0x28511a19b9f7b4e2e54ed70233fdeae603770618196c8e84f37b4f7d377af9f4';

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { ethers, deployments } = hre;
const [deployer] = await ethers.getSigners();

await deployments.execute(
'FuelERC20GatewayV4',
{ log: true, from: deployer.address },
'setAssetIssuerId',
ASSET_ISSUER_PROXY_ID
);

await deployments.save('FuelL2BridgeId', {
address: ASSET_ISSUER_PROXY_ID,
abi: [],
implementation: ASSET_ISSUER_IMPL_ID,
});

return true;
};

func.tags = ['set_asset_issuer'];
func.id = 'set_asset_issuer';
export default func;
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"chain_state": 1714255660,
"fuel_message_portal": 1714255695,
"fuel_erc20_gateway_v4": 1714255717,
"token": 1714255743,
"register_committer": 1714731217,
"fuel_message_portal_redeploy": 1715106411,
"portal_unpause": 1715106411,
"state_redeploy": 1715107035,
"state_unpause": 1715107035,
"portal_upgrade": 1716102431,
"state_upgrade": 1716102805
}
"state_upgrade": 1716102805,
"fuel_erc20_gateway_v4": 1723539697,
"set_asset_issuer": 1723539711
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0xbdf7256C718FCede6f0af19e86D4aBDdc4DC2Ff2",
"address": "0x84C9ef458e85bA74F4DBF3a0B14075bE5341747B",
"abi": [
{
"inputs": [],
Expand Down Expand Up @@ -711,5 +711,5 @@
}
],
"numDeployments": 1,
"implementation": "0xdF018d3163FA9FC70FD6eD79D3E0E3770A034756"
}
"implementation": "0xf6024CcbfbB2201C3d43C0C2bBD162d65D4a07c4"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"address": "0xa10f53918370e471393e4936940eddb05fb189ed62ad662cc4025e2bf638da86",
"abi": [],
"numDeployments": 1,
"implementation": "0x28511a19b9f7b4e2e54ed70233fdeae603770618196c8e84f37b4f7d377af9f4"
}

0 comments on commit c50d3ad

Please sign in to comment.