Skip to content

Commit

Permalink
Contract Unification (#74)
Browse files Browse the repository at this point in the history
* feat: scripts changed away from TokenManager
* feat: migration script
* Feat/unified withdraw and deposit (#75)
* 3.1.2
* more migration, some refactor
* 3.1.3
* 3.1.4
---------

Co-authored-by: Jesse Eisenberg <sosaucily@gmail.com>
  • Loading branch information
scolear and sosaucily authored Jul 1, 2024
1 parent 2d7ac3d commit d81667b
Show file tree
Hide file tree
Showing 38 changed files with 1,283 additions and 2,356 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/docker-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ jobs:
REGISTRY_ALIAS: dlc-link
ECR_REPOSITORY: dlc-solidity
IMAGE_TAG: ${{ github.ref_name }}
HEAD_SHA: ${{ steps.vars.outputs.sha_short }}
run: |
docker build -t $ECR_PUBLIC_REGISTRY/$REGISTRY_ALIAS/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker build \
-t $ECR_PUBLIC_REGISTRY/$REGISTRY_ALIAS/$ECR_REPOSITORY:$IMAGE_TAG \
-t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
-t $ECR_PUBLIC_REGISTRY/$REGISTRY_ALIAS/$ECR_REPOSITORY:$HEAD_SHA \
-t $ECR_REGISTRY/$ECR_REPOSITORY:$HEAD_SHA .
docker push $ECR_PUBLIC_REGISTRY/$REGISTRY_ALIAS/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_PUBLIC_REGISTRY/$REGISTRY_ALIAS/$ECR_REPOSITORY:$HEAD_SHA
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$HEAD_SHA
1 change: 1 addition & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module.exports = {
skipFiles: ['examples', 'mocks'],
configureYulOptimizer: true,
};
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY ./docker/hardhat.config.docker.js /app/dlc-solidity/hardhat.config.js

WORKDIR /app/dlc-solidity

RUN npm ci
RUN npm i

RUN npx hardhat compile

Expand Down
17 changes: 0 additions & 17 deletions contracts/DLCLinkCompatible.sol

This file was deleted.

4 changes: 3 additions & 1 deletion contracts/DLCLinkLibrary.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ library DLCLink {
FUNDED,
CLOSING,
CLOSED,
AUX_STATE_1,
AUX_STATE_1, // PENDING
AUX_STATE_2,
AUX_STATE_3,
AUX_STATE_4,
Expand All @@ -33,5 +33,7 @@ library DLCLink {
uint256 btcMintFeeBasisPoints;
uint256 btcRedeemFeeBasisPoints;
string taprootPubKey;
uint256 valueMinted;
string wdTxId;
}
}
Loading

0 comments on commit d81667b

Please sign in to comment.