Skip to content

Commit

Permalink
Redeploy to staging and update demo script
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Aug 29, 2024
1 parent 3d39c31 commit af38e51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions deployments/_deployments_log_file.json
Original file line number Diff line number Diff line change
Expand Up @@ -22459,15 +22459,15 @@
"staging": {
"1.0.0": [
{
"ADDRESS": "0x442BBFD6a4641B2b710DFfa4754081eC7502a3F7",
"ADDRESS": "0x30252Fd1C12d240F7d63F24e54390F796F2EAF37",
"OPTIMIZER_RUNS": "1000000",
"TIMESTAMP": "2024-08-26 18:34:52",
"CONSTRUCTOR_ARGS": "0x00000000000000000000000011f1022ca6adef6400e5677528a80d49a069c00c000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3",
"TIMESTAMP": "2024-08-29 17:03:09",
"CONSTRUCTOR_ARGS": "0x000000000000000000000000d3b2b0ac0afdd0d166a495f5e9fca4ecc715a782000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3",
"SALT": "09072024",
"VERIFIED": "true"
"VERIFIED": "false"
}
]
}
}
}
}
}
2 changes: 1 addition & 1 deletion deployments/arbitrum.staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@
"HopFacetOptimized": "0xf82135385765f1324257ffF74489F16382EBBb8A",
"LiFuelFeeCollector": "0x94EA56D8049e93E0308B9c7d1418Baf6A7C68280",
"TokenWrapper": "0xF63b27AE2Dc887b88f82E2Cc597d07fBB2E78E70",
"Permit2Proxy": "0x442BBFD6a4641B2b710DFfa4754081eC7502a3F7"
"Permit2Proxy": "0x30252Fd1C12d240F7d63F24e54390F796F2EAF37"
}
11 changes: 5 additions & 6 deletions script/demoScripts/demoPermit2Proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { defineCommand, runMain } from 'citty'

const DIAMOND_ADDRESS = '0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE'
const USDT_ADDRESS = '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9'
const PERMIT2_PROXY_ADDRESS = '0x442BBFD6a4641B2b710DFfa4754081eC7502a3F7'
const PERMIT2_PROXY_ADDRESS = '0x30252Fd1C12d240F7d63F24e54390F796F2EAF37'
const PERMIT2_ADDRESS = '0x000000000022D473030F116dDEE9F6B43aC78BA3'
const PRIVATE_KEY = `0x${process.env.PRIVATE_KEY}`

Expand Down Expand Up @@ -43,8 +43,8 @@ const main = defineCommand({
'function nonceBitmap(address owner, uint256 index) external view returns (uint256 nonce)',
])
const permit2ProxyAbi = parseAbi([
'function getPermit2MsgHash(address,bytes,address,uint256,uint256,uint256) external view returns (bytes32)',
'function callDiamondWithPermit2SignatureSingle(address,bytes,address,((address,uint256),uint256,uint256),bytes) external',
'function getPermit2MsgHash(bytes,address,uint256,uint256,uint256) external view returns (bytes32)',
'function callDiamondWithPermit2Witness(bytes,address,((address,uint256),uint256,uint256),bytes) external',
])

// Setup a READ-ONLY client
Expand Down Expand Up @@ -80,7 +80,6 @@ const main = defineCommand({
abi: permit2ProxyAbi,
functionName: 'getPermit2MsgHash',
args: [
DIAMOND_ADDRESS,
calldata,
USDT_ADDRESS,
parseUnits('5', 6),
Expand Down Expand Up @@ -111,8 +110,8 @@ const main = defineCommand({
const tx = await walletClient.writeContract({
address: PERMIT2_PROXY_ADDRESS,
abi: permit2ProxyAbi,
functionName: 'callDiamondWithPermit2SignatureSingle',
args: [DIAMOND_ADDRESS, calldata, account.address, permit, signature],
functionName: 'callDiamondWithPermit2Witness',
args: [calldata, account.address, permit, signature],
})
},
})
Expand Down

0 comments on commit af38e51

Please sign in to comment.