Skip to content

Commit

Permalink
Timelocked contract upgrades (#120)
Browse files Browse the repository at this point in the history
* feat: working timelock scripts
* chore: TimelockController deployment
* feat: save proposed depInfo
  • Loading branch information
scolear authored Oct 29, 2024
1 parent 4beb642 commit b0c0d98
Show file tree
Hide file tree
Showing 19 changed files with 1,666 additions and 74 deletions.
476 changes: 476 additions & 0 deletions .openzeppelin/base-sepolia.json

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This repo contains the solidity smart contracts for the DLC.Link infrastructure

Learn more about [DLCs](https://github.com/DLC-link/dlc-solidity#What-Are-DLCs) and [dlcBTC](https://dlcbtc.com).

## Overview
# Overview

A DLC is a contract on Bitcoin that enables users to move/lock Bitcoin conditionally. The possible outcomes of a DLC are predefined and stored by the DLC.Link Attestor Layer. Bitcoin locked in such a way can be represented then on any EVM chain using these smart contracts. The outcome - that is, the value that will be 'attested' to - is supplied by smart contracts too.

Expand All @@ -26,6 +26,12 @@ _dlcBTC_ is a token that represents Bitcoin locked in DLCs. It is minted when Bi
Learn more about the whole architecture on the documentation site here:
https://docs.dlc.link/architecture/tech-stack

## Timelocked Upgrades

Some of the contracts in this repository are upgradeable. They can be changed by a multisig of dlcBTC team and external members. The upgrade process is timelocked, meaning that the upgrade will only happen after a certain time has passed (minimum 7 days). This is to ensure that the community has time to review the changes and react if necessary.

<img src="./assets/timelockArchitecture.svg" alt="architecture" width="100%" />

# Dev notes

## Testing
Expand Down
29 changes: 29 additions & 0 deletions assets/timelockArchitecture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b0c0d98

Please sign in to comment.