Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCalibur committed Jan 15, 2025
1 parent 1a5043a commit b3a0018
Show file tree
Hide file tree
Showing 7 changed files with 525 additions and 4 deletions.
3 changes: 2 additions & 1 deletion deploy/BoundSpellOFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ const deploy: DeployFunction = async (hre) => {
skipIfAlreadyDeployed: false,
proxy: {
proxyContract: 'OpenZeppelinTransparentProxy',
viaAdminContract: `${config.contractName}_ProxyAdmin`,
owner: signer.address,
execute: {
init: {
methodName: 'initialize',
args: config.initializeArgs(signer.address),
},
},
}
},
contract: config.contractName
})
Expand Down
7 changes: 4 additions & 3 deletions deploy/MIMOFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const configurations = {
contractName: 'AbraOFTAdapterUpgradeable',
args: (endpointAddress: string) => ['0x99D8a9C45b2ecA8864373A26D1459e3Dff1e17F3', endpointAddress], // MIM address
initializeArgs: (signer: string) => [signer],
//feeHandler: '0xE66BE95FE4E3889a66925d996AF3E4dC173754a2'
feeHandler: '0xE66BE95FE4E3889a66925d996AF3E4dC173754a2'
},
//'berachain': {
// contractName: 'AbraOFTUpgradeable',
Expand Down Expand Up @@ -39,6 +39,7 @@ const deploy: DeployFunction = async (hre) => {
skipIfAlreadyDeployed: false,
proxy: {
proxyContract: 'OpenZeppelinTransparentProxy',
viaAdminContract: `${config.contractName}_ProxyAdmin`,
owner: signer.address,
execute: {
init: {
Expand All @@ -50,8 +51,8 @@ const deploy: DeployFunction = async (hre) => {
contract: config.contractName
})

//const oft = await hre.ethers.getContractAt('SenderWithFees', deployment.address)
//await (await oft.setFeeHandler(config.feeHandler)).wait()
const oft = await hre.ethers.getContractAt('SenderWithFees', deployment.address)
await (await oft.setFeeHandler(config.feeHandler)).wait()
}

deploy.tags = [deploymentName]
Expand Down
1 change: 1 addition & 0 deletions deploy/SpellOFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const deploy: DeployFunction = async (hre) => {
skipIfAlreadyDeployed: false,
proxy: {
proxyContract: 'OpenZeppelinTransparentProxy',
viaAdminContract: `${config.contractName}_ProxyAdmin`,
owner: signer.address,
execute: {
init: {
Expand Down
259 changes: 259 additions & 0 deletions deployments/arbitrum-mainnet/SpellOFT_ProxyAdmin.json

Large diffs are not rendered by default.

259 changes: 259 additions & 0 deletions deployments/ethereum-mainnet/SpellOFT_ProxyAdmin.json

Large diffs are not rendered by default.

0 comments on commit b3a0018

Please sign in to comment.