Skip to content

Commit e7990d0

Browse files
committed
Revert "use ethers narive typing instead of @ethersproject/abstract-provider"
This reverts commit 92eb604.
1 parent d8c673b commit e7990d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+67
-65
lines changed

lib/agent/common/approveIfNeeded.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/* eslint-disable functional/functional-parameters */
22
import { UndefinedOr, whenDefined, whenDefinedAll } from '@devprotocol/util-ts'
3-
import type { TransactionResponse, TransactionReceipt } from 'ethers'
3+
import {
4+
TransactionResponse,
5+
TransactionReceipt,
6+
} from '@ethersproject/abstract-provider'
47
import { createErc20Contract } from '../../common/erc20'
58
import { FallbackableOverrides } from '../../common/utils/execute'
69
import { clientsDev } from './clients/clientsDev'

lib/agent/fixtures/swap-arbitrary-tokens/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ContractRunner, ethers } from 'ethers'
22
import { swapArbitraryTokensAbi } from './abi'
33
import { FallbackableOverrides } from '../../../common/utils/execute'
4-
import type { TransactionResponse } from 'ethers'
4+
import { TransactionResponse } from '@ethersproject/abstract-provider'
55
import { createGetEstimatedDevForTokensCaller } from './getEstimatedDevForTokens'
66
import { createGetEstimatedTokensForDevCaller } from './getEstimatedTokensForDev'
77
import { createSwapTokensAndStakeDevCaller } from './swapTokensAndStakeDev'

lib/agent/fixtures/swap-arbitrary-tokens/swapTokensAndStakeDev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
FallbackableOverrides,
66
MutationOption,
77
} from '../../../common/utils/execute'
8-
import type { TransactionResponse } from 'ethers'
8+
import { TransactionResponse } from '@ethersproject/abstract-provider'
99
import { pathOf } from './path-of'
1010

1111
export type CreateSwapTokensAndStakeDevCaller = (

lib/agent/fixtures/swap/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createGetEstimatedDevForEthCaller } from './getEstimatedDevForEth'
55
import { createGetEstimatedEthForDevCaller } from './getEstimatedEthForDev'
66
import { createSwapEthAndStakeDevCaller } from './swapEthAndStakeDev'
77
import { FallbackableOverrides } from '../../../common/utils/execute'
8-
import type { TransactionResponse } from 'ethers'
8+
import { TransactionResponse } from '@ethersproject/abstract-provider'
99
import { always } from 'ramda'
1010
import { createSwapEthAndStakeDevPolygonCaller } from './swapEthAndStakeDevPolygon'
1111
import { swapAbiV3Polygon } from './abi-v3-polygon'

lib/agent/fixtures/swap/swapEthAndStakeDev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
FallbackableOverrides,
66
MutationOption,
77
} from '../../../common/utils/execute'
8-
import type { TransactionResponse } from 'ethers'
8+
import { TransactionResponse } from '@ethersproject/abstract-provider'
99

1010
export type CreateSwapEthAndStakeDevCaller = (
1111
contract: ethers.Contract,

lib/agent/fixtures/swap/swapEthAndStakeDevPolygon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
FallbackableOverrides,
66
MutationOption,
77
} from '../../../common/utils/execute'
8-
import type { TransactionResponse } from 'ethers'
8+
import { TransactionResponse } from '@ethersproject/abstract-provider'
99

1010
export type CreateSwapEthAndStakeDevPolygonCaller = (
1111
contract: ethers.Contract,

lib/agent/positionsClaim.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TransactionResponse } from 'ethers'
1+
import { TransactionResponse } from '@ethersproject/abstract-provider'
22
import { FallbackableOverrides } from '../common/utils/execute'
33
import type { BaseProvider } from '@ethersproject/providers'
44
import { UndefinedOr } from '@devprotocol/util-ts'

lib/agent/positionsCreateWithEth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable functional/functional-parameters */
22
import { FallbackableOverrides } from '../common/utils/execute'
33
import { clientsUtilsSwapForStake } from './common/clients/clientsUtilsSwapForStake'
4-
import type { TransactionResponse } from 'ethers'
4+
import { TransactionResponse } from '@ethersproject/abstract-provider'
55
import { ContractRunner, ZeroHash } from 'ethers'
66

77
type PositionsCreateWithEth = (options: {

lib/agent/propertiesAuthenticate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FallbackableOverrides } from '../common/utils/execute'
22
import type { BaseProvider } from '@ethersproject/providers'
3-
import type { TransactionResponse } from 'ethers'
3+
import type { TransactionResponse } from '@ethersproject/abstract-provider'
44
import { UndefinedOr } from '@devprotocol/util-ts'
55

66
type PropertiesAuthenticate = (options: {

lib/agent/propertiesCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TransactionResponse } from 'ethers'
1+
import { TransactionResponse } from '@ethersproject/abstract-provider'
22
import { FallbackableOverrides } from '../common/utils/execute'
33
import type { BaseProvider } from '@ethersproject/providers'
44
import { UndefinedOr } from '@devprotocol/util-ts'

0 commit comments

Comments
 (0)