Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Do not merge] dApp-friendly contract deployment #403

Draft
wants to merge 41 commits into
base: main
Choose a base branch
from

Commits on Aug 10, 2022

  1. Add a mock fn that register the ECDSA wallet

    To create a deposit or request redemption the ECDSA wallet is required.
    To not involve the off-chain clients here we add a mock function that
    registers the fake ECDSA wallet in the `Bridge` contract. Anyone can
    execute this function. In this mocked function we also pass the main
    utxo params because it is required for redemption flow.
    r-czajkowski committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    7cea4cf View commit details
    Browse the repository at this point in the history
  2. Add hardhat task to create the mocked ECDSA wallet

    This task is responsible for registering the ECDSA wallet with mocked
    data. We need to trigger this task manually to mock the off-chain
    clients work. This allows us to reveal deposit and request redemption.
    r-czajkowski committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    729627b View commit details
    Browse the repository at this point in the history
  3. Add a mock function that sweeps a deposit

    The off-chain clients are responsible for sweeping deposit. We need to
    create mocked version of this function and we will trigger it manually-
    we will mock the client work. To simplify the deposit sweep flow this
    mocked function will take only one deposit. In taht fact we can mock the
    off-chain clients work and sweep a deposit.
    r-czajkowski committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    ce6f476 View commit details
    Browse the repository at this point in the history
  4. Add hardhat task to sweep a deposit

    Running this task we can sweep a deposit- in this way we mock the
    off-chain clients work.
    r-czajkowski committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    6cab577 View commit details
    Browse the repository at this point in the history
  5. Add a mock function to submit the redemption proof

    The off-chain clients are responsible for this part. We need to mock
    `submitRedemptionProof` function and we will trigger it manually to mock
    the off-chain clients work. This function removes the redemption from
    the `pendingRedemptions` map.
    r-czajkowski committed Aug 10, 2022
    Configuration menu
    Copy the full SHA
    4e1a1ee View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2022

  1. Fix a submitRedemptionProof task

    The name of the task should be unique.
    r-czajkowski committed Aug 15, 2022
    Configuration menu
    Copy the full SHA
    6b1e78e View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

  1. Update the mocked deposit tx fee

    The previous amount was too high and EVM was throwing an error because
    the deposited amount was `<0`.
    r-czajkowski committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    36e5846 View commit details
    Browse the repository at this point in the history
  2. Update a hardhat task that creates a mocked wallet

    We need to register the wallet in the `WalletRegistry` contract because
    the tbtc-v2.ts lib calls this contract to get the wallet public key.
    Please see: https://github.com/keep-network/tbtc-v2/blob/main/typescript/src/ethereum.ts#L392-L395
    r-czajkowski committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    cc22813 View commit details
    Browse the repository at this point in the history
  3. Update hardhat task

    Updates the hardhat task that submits the deposit sweep proof- get the
    depoist by key for the contract and log the `sweptAt` param.
    r-czajkowski committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    3af9b83 View commit details
    Browse the repository at this point in the history
  4. Add hardhat task

    Add task that returns the revealed deposits/redemption request events by
    the `depositor/redeemer` address. This task logs unnecessary parameters
    to run the task that submits the deposit sweep/redemption proof.
    r-czajkowski committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    ad1511c View commit details
    Browse the repository at this point in the history
  5. Fix linting error

    r-czajkowski committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    2f3e61b View commit details
    Browse the repository at this point in the history
  6. Use kebab case for the name of the hardhat task

    To be consistent with the name of parameters auto-generated by hardhat.
    r-czajkowski committed Aug 16, 2022
    Configuration menu
    Copy the full SHA
    e3c17cc View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. Configuration menu
    Copy the full SHA
    8cf4cdc View commit details
    Browse the repository at this point in the history
  2. Update contract dependencies

    Set `dapp-development-goerli` tag for `@keep-network/random-beacon` and
    `@keep-network/ecdsa`. We need dapp-friendly contracts here.
    michalinacienciala committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    18ce7cb View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. Change version's suffix to -dapp-dev-goerli

    We are publishing packages with code from `dapp-development` branch under
    versions that use `-dapp-dev-goerli.X` suffix. Our `package.json` on this branch
    should reflect that. If we do not set it up, the CI job used to pubblish the
    package will not be able to correctly bump up the version of the package.
    michalinacienciala committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    7b5e7b6 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2022

  1. Configuration menu
    Copy the full SHA
    2560afc View commit details
    Browse the repository at this point in the history
  2. Update solidity config for ecdsa

    Update number of optimizer runs to reduce the size of the
    `WalletRegistry` contract. Lower values of runs will optimize more for
    initial deployment cost(contract size) but the execution costs will be
    higher. We don't have to worry about the execution cost of
    `WalletRegistry` contract because changes from `dapp-development` branch
    are only for testnet networks.
    r-czajkowski committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    144e7ce View commit details
    Browse the repository at this point in the history
  3. Update deploy bridge script

    Commented out these lines because wanted to test local deployment with
    the dapp-frielndy `Bridge` contract. Should't have pushed these changes
    to the remote branch.
    r-czajkowski committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    93de579 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. Configuration menu
    Copy the full SHA
    8d043fe View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2022

  1. Fix dapp hardhat tasks

    r-czajkowski committed Dec 20, 2022
    Configuration menu
    Copy the full SHA
    607d806 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. Configuration menu
    Copy the full SHA
    37494a7 View commit details
    Browse the repository at this point in the history
  2. Update yarn.lock file

    r-czajkowski committed Jan 4, 2023
    Configuration menu
    Copy the full SHA
    9a34b17 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

  1. Update yarn.lock file

    r-czajkowski committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    a2c3074 View commit details
    Browse the repository at this point in the history
  2. Remove tenderly tag for goerli network

    We changed the version range for `@tenderly/hardhat-tenderly` in #440
    and CI build fails on tenderly verification.  Since this is a
    `dapp-development` branch, we do not actually need the tenderly
    verification at least for now so here we remove the `tenderly` tag for
    `goerli` network to skip the tenderly veirification.
    r-czajkowski committed Jan 5, 2023
    Configuration menu
    Copy the full SHA
    4450c03 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ef7beb7 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2023

  1. Add optimistic minting tasks

    Add tasks with which you will be able to do an optimistic minting.
    michalsmiarowski committed Jan 12, 2023
    Configuration menu
    Copy the full SHA
    93773eb View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2023

  1. Configuration menu
    Copy the full SHA
    4d3a05d View commit details
    Browse the repository at this point in the history
  2. Update optimisticMintingDelay

    Set to `120 s` -> `2min` to speed up the optimistic minting QA in T
    dapp.
    r-czajkowski committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    82a079a View commit details
    Browse the repository at this point in the history
  3. Remove tenderly tag for goerli network

    We changed the version range for `@tenderly/hardhat-tenderly` in #440
    and CI build fails on tenderly verification.  Since this is a
    `dapp-development` branch, we do not actually need the tenderly
    verification at least for now so here we remove the `tenderly` tag for
    `goerli` network to skip the tenderly veirification.
    r-czajkowski committed Jan 19, 2023
    Configuration menu
    Copy the full SHA
    91833bb View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2023

  1. Set GOVERNANCE_DELAY in VendingMachine to 0

    To QA the optimistic minting in T dapp we need to transfer the ownership
    of the `TBTC` token contract. The `TBTCVault` should be an owner of the
    `TBTC` token contract. The only way to do this is via `VendingMachine`
    contract because is currently set as an owner of `TBTC` token contract
    in deployment scripts.
    r-czajkowski committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    d0e2c3b View commit details
    Browse the repository at this point in the history
  2. Add new deployment script

    Transfer the ownership of the TBTC token contract via `VendingMachine`
    contract. In omptimistic minting, the `TBTCVault` contract should be the
    owner of the `TBTC` token contract.
    r-czajkowski committed Jan 20, 2023
    Configuration menu
    Copy the full SHA
    51ede5a View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2023

  1. Configuration menu
    Copy the full SHA
    a78a073 View commit details
    Browse the repository at this point in the history
  2. Update yarn.lock file

    Update `ecdsa` and `random-beacon` package version.
    r-czajkowski committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    fe01903 View commit details
    Browse the repository at this point in the history
  3. Remove unnecessary deployment script

    We want the TBTCVault to be the owner of the TBTC token and we do it in
    earlier deployment step. The script `94_*` was a workaround and now it's
    unnecessary. See #488.
    r-czajkowski committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    65a2cfa View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. Configuration menu
    Copy the full SHA
    a12ca03 View commit details
    Browse the repository at this point in the history
  2. Update mocked submitRedemptionProof fn\

    Add `redemptionTxHash` param it should be a Bitcoin testnet transaction
    hash(byte order corresponds to the Bitcoin internal byte order) that was
    made from a given wallet to a given redeemer output script. Thanks to
    that we can find the tx on the Bitcoin chain and display data in the
    dapp.
    r-czajkowski committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    bb6f174 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    54be0a5 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. Configuration menu
    Copy the full SHA
    39472bf View commit details
    Browse the repository at this point in the history
  2. Switch to dapp-dev-sepolia

    We're switching deployment to the Sepolia testnet due to planned deprecation of
    the Goerli testnet. In a previous commit we've updated the `dapp-development`
    branch with the recent changes from `main` (among them were the changes adding
    Sepolia to the list of supported networks). Now we're updating the
    `dapp-development` branch to create `dapp-dev-sepolia` packages.
    michalinacienciala committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    7d910df View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2024

  1. Configuration menu
    Copy the full SHA
    5b29ae0 View commit details
    Browse the repository at this point in the history
  2. Move documentation to separate file

    Move documentation from Pull Request description to a separate .adoc file. This
    way we can keep track of changed.
    michalsmiarowski committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    9220c50 View commit details
    Browse the repository at this point in the history