Skip to content

Commit

Permalink
Revert "update alchemy even tho i didnt neet to and getKeys"
Browse files Browse the repository at this point in the history
This reverts commit cd4b16c.
  • Loading branch information
BrennerSpear committed Nov 17, 2022
1 parent 48c1231 commit 73224b4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 356 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
},
"homepage": "https://github.com/the-metagame/evm-translator#readme",
"dependencies": {
"@alch/alchemy-sdk": "^1.0.3",
"@gnosis.pm/safe-ethers-lib": "^1.2.1",
"@gnosis.pm/safe-service-client": "^1.2.0",
"alchemy-sdk": "^2.2.1",
"axios": "^0.27.2",
"bottleneck": "^2.19.5",
"collect.js": "^4.32.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Translator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AlchemyConfig, initializeAlchemy } from '@alch/alchemy-sdk'
import { AlchemyProvider, StaticJsonRpcProvider } from '@ethersproject/providers'
import { AlchemyConfig, initializeAlchemy } from 'alchemy-sdk'

import { ABI_Item, ABI_ItemUnfiltered } from 'interfaces/abi'
import { InterpreterMap } from 'interfaces/contractInterpreter'
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Network } from 'alchemy-sdk'
import { Network } from '@alch/alchemy-sdk'
import { BigNumber } from 'ethers'
import { z } from 'zod'

Expand Down
4 changes: 2 additions & 2 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ethAddress, proxyImplementationAddress } from './constants'
import { logWarning } from './logging'
import { AlchemyProvider, Network } from '@alch/alchemy-sdk'
import { BaseProvider } from '@ethersproject/providers'
import { AlchemyProvider, Network } from 'alchemy-sdk'
import Bottleneck from 'bottleneck'
import collect from 'collect.js'
import { BigNumber } from 'ethers'
Expand Down Expand Up @@ -315,7 +315,7 @@ export const getNativeTokenValueEvents = (interactions: Interaction[]): Interact
return nativeTokenEvents
}

export const getKeys = (obj: Record<string, any>) => Object.keys(obj) as Array<string>
export const getKeys = <T>(obj: T) => Object.keys(obj) as Array<keyof T>

export const getEntries = <T>(obj: Record<string, T>) => Object.entries(obj) as Array<[string, T]>

Expand Down
Loading

0 comments on commit 73224b4

Please sign in to comment.