-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: deploy new token bridge for devnet (#233)
Closes #232
- Loading branch information
Showing
6 changed files
with
55 additions
and
6 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
'@fuel-bridge/solidity-contracts': patch | ||
--- | ||
|
||
Deploy new token bridge to devnet |
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
32 changes: 32 additions & 0 deletions
32
packages/solidity-contracts/deploy/devnet/012.configure_l2_issuer.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,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; |
7 changes: 4 additions & 3 deletions
7
packages/solidity-contracts/deployments/devnet/.migrations.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,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 | ||
} |
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
6 changes: 6 additions & 0 deletions
6
packages/solidity-contracts/deployments/devnet/FuelL2BridgeId.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,6 @@ | ||
{ | ||
"address": "0xa10f53918370e471393e4936940eddb05fb189ed62ad662cc4025e2bf638da86", | ||
"abi": [], | ||
"numDeployments": 1, | ||
"implementation": "0x28511a19b9f7b4e2e54ed70233fdeae603770618196c8e84f37b4f7d377af9f4" | ||
} |