Skip to content

Commit 73224b4

Browse files
committed
Revert "update alchemy even tho i didnt neet to and getKeys"
This reverts commit cd4b16c.
1 parent 48c1231 commit 73224b4

File tree

5 files changed

+22
-356
lines changed

5 files changed

+22
-356
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
},
5656
"homepage": "https://github.com/the-metagame/evm-translator#readme",
5757
"dependencies": {
58+
"@alch/alchemy-sdk": "^1.0.3",
5859
"@gnosis.pm/safe-ethers-lib": "^1.2.1",
5960
"@gnosis.pm/safe-service-client": "^1.2.0",
60-
"alchemy-sdk": "^2.2.1",
6161
"axios": "^0.27.2",
6262
"bottleneck": "^2.19.5",
6363
"collect.js": "^4.32.0",

src/Translator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { AlchemyConfig, initializeAlchemy } from '@alch/alchemy-sdk'
12
import { AlchemyProvider, StaticJsonRpcProvider } from '@ethersproject/providers'
2-
import { AlchemyConfig, initializeAlchemy } from 'alchemy-sdk'
33

44
import { ABI_Item, ABI_ItemUnfiltered } from 'interfaces/abi'
55
import { InterpreterMap } from 'interfaces/contractInterpreter'

src/interfaces/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Network } from 'alchemy-sdk'
1+
import { Network } from '@alch/alchemy-sdk'
22
import { BigNumber } from 'ethers'
33
import { z } from 'zod'
44

src/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ethAddress, proxyImplementationAddress } from './constants'
22
import { logWarning } from './logging'
3+
import { AlchemyProvider, Network } from '@alch/alchemy-sdk'
34
import { BaseProvider } from '@ethersproject/providers'
4-
import { AlchemyProvider, Network } from 'alchemy-sdk'
55
import Bottleneck from 'bottleneck'
66
import collect from 'collect.js'
77
import { BigNumber } from 'ethers'
@@ -315,7 +315,7 @@ export const getNativeTokenValueEvents = (interactions: Interaction[]): Interact
315315
return nativeTokenEvents
316316
}
317317

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

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

0 commit comments

Comments
 (0)