-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Manual deploy as of commit:39aeb3f2aa33d352b23ccf8066fb9ecf244a29bc * fix(locksmith): polyfill for Defender signer * fix(unlock-app): Render Markdown for event descriptions (#14773) * render markdown for event overview * render markdown for event detail drawer * render markdown for event collection detail view * fix(deps): update dependency @openzeppelin/defender-sdk to v1.14.4 (#14723) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * feature(unlock-app): Remove individual events in event detail view (#14780) * add remove action component * update event detail drawer * update event detail view * restrict action to managers alone * restrict action to managers alone * fix(unlock-app): Improve event addition via URL (#14774) * update useEvent hook to return 404 * improve add via url experience * use proper env * feature(unlock-app): 404 if queried event collection doesn't exist (#14785) throw 404 if collection not found * feature(unlock-app): Sort collection events into upcoming and past (#14784) * sort events into upcoming and past * fix typing --------- Co-authored-by: txbì <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information
1 parent
532f3c5
commit 6946c37
Showing
111 changed files
with
2,909 additions
and
4,553 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
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 |
---|---|---|
|
@@ -67,6 +67,7 @@ jobs: | |
uses: mshick/[email protected] | ||
with: | ||
message-path: results.txt | ||
message-id: networks-check | ||
refresh-message-position: true | ||
# We rely on a deployment of a proxy service to post comment from forked PRs | ||
# see https://github.com/mshick/add-pr-comment-proxy for more info | ||
|
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
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
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 |
---|---|---|
|
@@ -3,9 +3,6 @@ | |
tmp_site/ | ||
node_modules/ | ||
|
||
# ignore all contracts | ||
contracts | ||
|
||
# ZeppelinOS | ||
zos.dev-*.json | ||
.zos.session | ||
|
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,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn run lint-staged |
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 +1,4 @@ | ||
.env | ||
*.tmp | ||
cache | ||
contracts | ||
|
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,5 +1,4 @@ | ||
node_modules | ||
contracts/ERC20Patched.sol | ||
contracts/test-artifacts/** | ||
contracts/past-versions/** | ||
contracts/mocks/** |
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
120 changes: 120 additions & 0 deletions
120
governance/proposals/udt/017-cross-chain-base-config.js
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,120 @@ | ||
const { ethers } = require('hardhat') | ||
const { getNetwork } = require('@unlock-protocol/hardhat-helpers') | ||
const { targetChains, ConnextMod } = require('../../helpers/bridge') | ||
const { parseSafeMulticall } = require('../../helpers/multisig') | ||
const { parseBridgeCall } = require('../../helpers/crossChain') | ||
|
||
const BASE_TIMELOCK = '0xB34567C4cA697b39F72e1a8478f285329A98ed1b' | ||
|
||
const getProxyAdminAddress = async (providerURL, contractAddress) => { | ||
const provider = new ethers.JsonRpcProvider(providerURL) | ||
|
||
const hex = await provider.getStorage( | ||
contractAddress, | ||
'0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103' | ||
) | ||
|
||
const adminAddress = ethers.stripZerosLeft(hex) | ||
return adminAddress | ||
} | ||
|
||
module.exports = async () => { | ||
const mainnet = await getNetwork(1) | ||
const base = await getNetwork(8453) | ||
|
||
// mainnet owmership | ||
const ownable = new ethers.Interface([ | ||
`function transferOwnership(address newOwner)`, | ||
]) | ||
const mainnetCalls = [ | ||
// 1. transfer unlock mainnet to multisig | ||
{ | ||
contractAddress: mainnet.unlockAddress, | ||
calldata: ownable.encodeFunctionData('transferOwnership', [ | ||
mainnet.multisig, | ||
]), | ||
}, | ||
// 2. transfer unlock mainnet proxyAdmin to multisig | ||
{ | ||
contractAddress: await getProxyAdminAddress( | ||
mainnet.provider, | ||
mainnet.unlockAddress | ||
), | ||
calldata: ownable.encodeFunctionData('transferOwnership', [ | ||
mainnet.multisig, | ||
]), | ||
}, | ||
] | ||
|
||
// bridge calls to update safe/connext multisig plugins | ||
const bridgeCalls = await Promise.all( | ||
targetChains.map(async (network) => { | ||
const { | ||
governanceBridge: { | ||
modules: { connextMod }, | ||
}, | ||
id: destChainId, | ||
} = network | ||
|
||
const connextModInterface = new ethers.Interface(ConnextMod) | ||
|
||
// parse calls for bridge | ||
const destCalls = [ | ||
// set origin chain as base | ||
{ | ||
contractAddress: connextMod, | ||
calldata: connextModInterface.encodeFunctionData('setOrigin', [ | ||
base.governanceBridge.domainId, | ||
]), | ||
}, | ||
{ | ||
// set origin contract as base DAO timelock | ||
contractAddress: connextMod, | ||
calldata: connextModInterface.encodeFunctionData('setOriginSender', [ | ||
BASE_TIMELOCK, | ||
]), | ||
}, | ||
] | ||
const { to, value, data, operation } = await parseSafeMulticall({ | ||
chainId: destChainId, | ||
calls: destCalls, | ||
}) | ||
|
||
// encode multicall instructions to be executed by the SAFE | ||
const abiCoder = ethers.AbiCoder.defaultAbiCoder() | ||
const moduleData = abiCoder.encode( | ||
['address', 'uint256', 'bytes', 'bool'], | ||
[ | ||
to, // to | ||
value, // value | ||
data, // data | ||
operation, // operation: 0 for CALL, 1 for DELEGATECALL | ||
] | ||
) | ||
|
||
const bridgeCall = await parseBridgeCall({ | ||
destChainId, | ||
moduleData, | ||
}) | ||
return bridgeCall | ||
}) | ||
) | ||
|
||
const proposalName = `Transfer cross-chain governance to the Base DAO | ||
This proposal transfers the control of the cross-chain governance to the DAO on Base. | ||
It contains two main actions: | ||
1. transfer ownership of Unlock contract + proxy admin on mainnet to a relay multisig (that can recevie instructions from Base) | ||
2. set the “authority source” of all multisig on destination chains to the DAO timelock on Base | ||
After executing this proposal, the DAO on mainnet will have transferred control of the main Unlock contracts to the DAO on Base. Going forward, any cross-chain governance proposals will need to originate from the DAO on Base. | ||
` | ||
|
||
return { | ||
proposalName, | ||
calls: [...mainnetCalls, ...bridgeCalls], | ||
} | ||
} |
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
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
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,6 +1,7 @@ | ||
name = "graph-service" | ||
main = "src/index.ts" | ||
compatibility_date = "2024-07-29" | ||
tail_consumers = [{service = "graph-service-tail"}] | ||
|
||
[vars] | ||
SENTRY_DSN="https://[email protected]/4507855281979392" |
Oops, something went wrong.