-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pxrl/gasLimitWrong
- Loading branch information
Showing
14 changed files
with
205 additions
and
162 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { DEFAULT_GAS_MULTIPLIER } from "../../common"; | ||
import { CHAIN_IDs, winston } from "../../utils"; | ||
import { SpokePoolClient } from "../SpokePoolClient"; | ||
import { BaseChainAdapter } from "../../adapter/BaseChainAdapter"; | ||
|
||
// This adapter is only used by the AdapterManager to wrap ETH on Mainnet, so we don't pass in any supported | ||
// tokens or bridges. | ||
export class EthereumAdapter extends BaseChainAdapter { | ||
constructor(logger: winston.Logger, readonly spokePoolClients: { [chainId: number]: SpokePoolClient }) { | ||
const { MAINNET } = CHAIN_IDs; | ||
const bridges = {}; | ||
const supportedTokens = []; | ||
const monitoredAddresses = []; | ||
super( | ||
spokePoolClients, | ||
MAINNET, | ||
MAINNET, | ||
monitoredAddresses, | ||
logger, | ||
supportedTokens, | ||
bridges, | ||
DEFAULT_GAS_MULTIPLIER[MAINNET] ?? 1 | ||
); | ||
} | ||
} |
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
Oops, something went wrong.