Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Quazia authored and github-actions[bot] committed Aug 25, 2023
1 parent d9ecfe0 commit 356cd01
Show file tree
Hide file tree
Showing 3 changed files with 1,879 additions and 1,743 deletions.
11 changes: 2 additions & 9 deletions packages/optimism/src/Optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ import { ETH_TOKEN_ADDRESS } from './token-addresses.js'
// If you're implementing swap or mint, simply duplicate this function and change the name
export const bridge = async (bridge: BridgeActionParams) => {
// This is the information we'll use to compose the Transaction object
const {
sourceChainId,
contractAddress,
tokenAddress,
amount,
} = bridge
const { sourceChainId, contractAddress, tokenAddress, amount } = bridge
const isL1 = sourceChainId === ETH_CHAIN_ID
if (isL1) {
// If we're on the L1 and the token is ETH, we need to use a different input
Expand Down Expand Up @@ -50,9 +45,7 @@ export const bridge = async (bridge: BridgeActionParams) => {
})
}

export const getSupportedTokenAddresses = async (
_chainId: number,
) => {
export const getSupportedTokenAddresses = async (_chainId: number) => {
// Given a specific chain we would expect this function to return a list of supported token addresses
return []
}
Expand Down
2 changes: 1 addition & 1 deletion packages/optimism/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
getSupportedTokenAddresses,
} from './Optimism.js'

export const Optimism: IActionPlugin = {
export const Optimism: IActionPlugin = {
pluginId: 'optimism',
getSupportedTokenAddresses,
getSupportedChainIds,
Expand Down
Loading

0 comments on commit 356cd01

Please sign in to comment.