diff --git a/projects/dex-ui/src/declarations.d.ts b/projects/dex-ui/src/declarations.d.ts deleted file mode 100644 index 5d968ea5a5..0000000000 --- a/projects/dex-ui/src/declarations.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { TokenValue } from '@beanstalk/sdk'; -import { BigNumber, ContractTransaction } from 'ethers'; - -declare module '@beanstalk/sdk-core' { - interface Token { - isUnripe: boolean; - rewards?: { stalk: TokenValue; seeds: TokenValue | null }; - getStalk(bdv?: TokenValue): TokenValue; - getSeeds(bdv?: TokenValue): TokenValue; - approveBeanstalk( - amount: TokenValue | BigNumber - ): Promise; - } -} diff --git a/projects/sdk/src/classes/Token/Token.ts b/projects/sdk/src/classes/Token/Token.ts index 68aa88a696..c35a7d2f9f 100644 --- a/projects/sdk/src/classes/Token/Token.ts +++ b/projects/sdk/src/classes/Token/Token.ts @@ -4,6 +4,20 @@ import { BigNumber, ContractTransaction } from "ethers"; const STALK_DECIMALS = 10; const SEED_DECIMALS = 6; +declare module "@beanstalk/sdk-core" { + interface Token { + isUnripe: boolean; + rewards?: { stalk: TokenValue; seeds: TokenValue | null }; + getStalk(bdv?: TokenValue): TokenValue; + getSeeds(bdv?: TokenValue): TokenValue; + approveBeanstalk(amount: TokenValue | BigNumber): Promise; + } + + namespace Token { + let _source: string; + } +} + // Adding the static Token._source property Object.defineProperty(CoreToken, "_source", { value: "BeanstalkSDK", diff --git a/projects/sdk/src/sdk-core.d.ts b/projects/sdk/src/sdk-core.d.ts deleted file mode 100644 index 6874f7eb27..0000000000 --- a/projects/sdk/src/sdk-core.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { TokenValue, BigNumber, ContractTransaction } from "@beanstalk/sdk-core"; - -declare module "@beanstalk/sdk-core" { - interface Token { - isUnripe: boolean; - rewards?: { stalk: TokenValue; seeds: TokenValue | null }; - getStalk(bdv?: TokenValue): TokenValue; - getSeeds(bdv?: TokenValue): TokenValue; - approveBeanstalk(amount: TokenValue | BigNumber): Promise; - } - - namespace Token { - let _source: string; - } -} diff --git a/projects/ui/src/declarations.d.ts b/projects/ui/src/declarations.d.ts deleted file mode 100644 index 5d968ea5a5..0000000000 --- a/projects/ui/src/declarations.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { TokenValue } from '@beanstalk/sdk'; -import { BigNumber, ContractTransaction } from 'ethers'; - -declare module '@beanstalk/sdk-core' { - interface Token { - isUnripe: boolean; - rewards?: { stalk: TokenValue; seeds: TokenValue | null }; - getStalk(bdv?: TokenValue): TokenValue; - getSeeds(bdv?: TokenValue): TokenValue; - approveBeanstalk( - amount: TokenValue | BigNumber - ): Promise; - } -}