Skip to content

Commit

Permalink
Define DepositState file with default export
Browse files Browse the repository at this point in the history
We want to avoid ignoring the prefer-dfefault-export rule, so we define
a dedicated file to DepositState.
  • Loading branch information
nkuba committed Apr 12, 2024
1 parent b6487f1 commit 9998db0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion solidity/test/BitcoinDepositor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { expect } from "chai"
import { HardhatEthersSigner } from "@nomicfoundation/hardhat-ethers/signers"
import { ContractTransactionResponse, MaxUint256, ZeroAddress } from "ethers"

import { DepositState } from "../types"
import DepositState from "../types/depositState"

import type {
StBTC,
Expand Down
10 changes: 10 additions & 0 deletions solidity/types/depositState.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Represents the state of a deposit in the BitcoinDepositor contract.
*/
enum DepositState {
Unknown,
Initialized,
Finalized,
}

export default DepositState
6 changes: 0 additions & 6 deletions solidity/types/index.ts

This file was deleted.

0 comments on commit 9998db0

Please sign in to comment.