Skip to content

Commit

Permalink
Deploy new USDC token on AMB; Prepare to deploy new SAMB2 token on ET…
Browse files Browse the repository at this point in the history
…H; Set new owner addresses
  • Loading branch information
SvineruS committed Apr 15, 2024
1 parent 456a344 commit a179997
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 42 deletions.
6 changes: 3 additions & 3 deletions contracts/configs/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"isPrimary": false
},
"eth": {
"address": "0x586EE5Df24c5a426e42eD7Ea6e3EB0f00a4a2256",
"address": "DEPLOY",
"denomination": 18,
"isPrimary": false
}
Expand Down Expand Up @@ -103,7 +103,7 @@
"logo": "https://etherscan.io/token/images/centre-usdc_28.png",
"networks": {
"amb": {
"address": "0xd8dd0273D31c1cd9Dba104DaCA7C1dfEE4f7b805",
"address": "0x7A70536307a0411d2Df2FE832CFa16231089dD6F",
"denomination": 18,
"isPrimary": false
},
Expand Down Expand Up @@ -162,4 +162,4 @@
}
},
"ambFaucetAddress": "0x5B72903b7D2711134DD2120Bc3CA61DB6f10cB92"
}
}
6 changes: 3 additions & 3 deletions contracts/configs/prod_addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const Master_BSC_Bsc = "0x64C17b651d0c7d2dF92A7f6E7707C27C6e0535D8";
const Master_ETH_Amb = "0x0f071e1785e3E115360E04c9C8D53e958E6f85FE";
const Master_ETH_Eth = "0xFAE075e12116FBfE65c58e1Ef0E6CA959cA37ded";

const AdminAmb = "0x203F8dCBce61d9BFa48A95F588152Da073d9c693";
const AdminBsc = "0x3602541a2015A7867532EEF7e3A4eB2ED436a715";
const AdminEth = "0xb6db3c082d25C0dC26602334B5F3D270091DC422";
const AdminAmb = "0x375148D19a56e32A4D3D3d605Dc835b87f21114f";
const AdminBsc = "0x375148D19a56e32A4D3D3d605Dc835b87f21114f";
const AdminEth = "0x375148D19a56e32A4D3D3d605Dc835b87f21114f";


const multisig = {
Expand Down
1 change: 1 addition & 0 deletions contracts/deploy/02_SyntheticTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const deployInNonAmbNetwork = async (token: Token) => {
const bridgeAddress = configFile.bridges[netName]?.side || ethers.constants.AddressZero

console.log(`TEMPORARILY USING ${owner} AS bridgeAddress instead of ${bridgeAddress}.`)
const {address} = await hre.deployments.deploy(token.symbol, {
contract: "BridgeERC20",
args: [token.name, token.symbol, token.networks[netName].denomination, bridgeAddress],
Expand Down
58 changes: 29 additions & 29 deletions contracts/deployments/main/amb/USDC.json

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ const config: HardhatUserConfig = {

networks: {
hardhat: {
blockGasLimit: 40000000, // amb value
hardfork: "byzantium",
// blockGasLimit: 40000000, // amb value
// hardfork: "byzantium",
companionNetworks: {amb: 'hardhat'},
initialDate: "13 May 2022 18:10:36 GMT",
// initialDate: "13 May 2022 18:10:36 GMT",

// for debugging: run local node with state from some network
forking: {
enabled: false,
url: "https://network.ambrosus-dev.io",
enabled: true,
url: "https://mainnet.infura.io/v3/" + process.env.INFURA_KEY,
// url: "https://network.ambrosus-dev.io",
// url: "https://eth-rinkeby.alchemyapi.io/v2/e1F5R9XuWDU2-zCtzaMDg4Ybb5SuoEDA"
blockNumber: 0xb00ba,
blockNumber: 19218848,
}
},

Expand Down Expand Up @@ -152,7 +153,7 @@ const config: HardhatUserConfig = {
settings: {
optimizer: {
enabled: true,
runs: 200,
runs: 500,
},
// Note: for amb deploy
evmVersion: "byzantium"
Expand Down

0 comments on commit a179997

Please sign in to comment.