Skip to content

Commit

Permalink
Bump typechain version (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzkaczor authored Jan 16, 2022
1 parent 3372520 commit 56283f4
Show file tree
Hide file tree
Showing 23 changed files with 165 additions and 129 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-cups-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@dethcrypto/eth-sdk': minor
---

Update TypeChain to v7
4 changes: 2 additions & 2 deletions packages/eth-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"test:fix": "yarn lint:fix && yarn format:fix && yarn test && yarn typecheck"
},
"dependencies": {
"@typechain/ethers-v5": "^8.0.1",
"@typechain/ethers-v5": "^9.0.0",
"chalk": "^4.1.2",
"commander": "^8.3.0",
"debug": "^4.3.2",
Expand All @@ -49,7 +49,7 @@
"mkdirp": "^1.0.4",
"ora": "^5.4.1",
"tmp-promise": "^3.0.3",
"typechain": "^6.0.2",
"typechain": "^7.0.0",
"zod": "^3.11.5"
},
"peerDependencies": {
Expand Down
11 changes: 6 additions & 5 deletions packages/test-e2e/test/with-etherscan/sdk/cjs/types/Dai.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface DaiInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface DaiInterface extends utils.Interface {
contractName: "Dai";
functions: {
"DOMAIN_SEPARATOR()": FunctionFragment;
"PERMIT_TYPEHASH()": FunctionFragment;
Expand Down Expand Up @@ -125,6 +125,7 @@ export declare type TransferEvent = TypedEvent<[
}>;
export declare type TransferEventFilter = TypedEventFilter<TransferEvent>;
export interface Dai extends BaseContract {
contractName: "Dai";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
3 changes: 0 additions & 3 deletions packages/test-e2e/test/with-etherscan/sdk/cjs/types/Dai.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
11 changes: 6 additions & 5 deletions packages/test-e2e/test/with-etherscan/sdk/cjs/types/Mkr.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface MkrInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface MkrInterface extends utils.Interface {
contractName: "Mkr";
functions: {
"name()": FunctionFragment;
"stop()": FunctionFragment;
Expand Down Expand Up @@ -150,6 +150,7 @@ export declare type ApprovalEvent = TypedEvent<[
}>;
export declare type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
export interface Mkr extends BaseContract {
contractName: "Mkr";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
3 changes: 0 additions & 3 deletions packages/test-e2e/test/with-etherscan/sdk/cjs/types/Mkr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface ProxyCustomImplementationInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface ProxyCustomImplementationInterface extends utils.Interface {
contractName: "ProxyCustomImplementation";
functions: {
"_become(address)": FunctionFragment;
"_borrowGuardianPaused()": FunctionFragment;
Expand Down Expand Up @@ -469,6 +469,7 @@ export declare type NewPriceOracleEvent = TypedEvent<[
}>;
export declare type NewPriceOracleEventFilter = TypedEventFilter<NewPriceOracleEvent>;
export interface ProxyCustomImplementation extends BaseContract {
contractName: "ProxyCustomImplementation";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface ProxyStandardStorageSlotInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface ProxyStandardStorageSlotInterface extends utils.Interface {
contractName: "ProxyStandardStorageSlot";
functions: {
"advance()": FunctionFragment;
"allowance(address,address)": FunctionFragment;
Expand Down Expand Up @@ -415,6 +415,7 @@ export declare type WithdrawEvent = TypedEvent<[
}>;
export declare type WithdrawEventFilter = TypedEventFilter<WithdrawEvent>;
export interface ProxyStandardStorageSlot extends BaseContract {
contractName: "ProxyStandardStorageSlot";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
11 changes: 6 additions & 5 deletions packages/test-e2e/test/with-etherscan/sdk/cjs/types/Uniswap.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface UniswapInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface UniswapInterface extends utils.Interface {
contractName: "Uniswap";
functions: {
"createPool(address,address,uint24)": FunctionFragment;
"enableFeeAmount(uint24,int24)": FunctionFragment;
Expand Down Expand Up @@ -67,6 +67,7 @@ export declare type PoolCreatedEvent = TypedEvent<[
}>;
export declare type PoolCreatedEventFilter = TypedEventFilter<PoolCreatedEvent>;
export interface Uniswap extends BaseContract {
contractName: "Uniswap";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
11 changes: 6 additions & 5 deletions packages/test-e2e/test/with-etherscan/sdk/esm/types/Dai.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface DaiInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface DaiInterface extends utils.Interface {
contractName: "Dai";
functions: {
"DOMAIN_SEPARATOR()": FunctionFragment;
"PERMIT_TYPEHASH()": FunctionFragment;
Expand Down Expand Up @@ -125,6 +125,7 @@ export declare type TransferEvent = TypedEvent<[
}>;
export declare type TransferEventFilter = TypedEventFilter<TransferEvent>;
export interface Dai extends BaseContract {
contractName: "Dai";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
3 changes: 0 additions & 3 deletions packages/test-e2e/test/with-etherscan/sdk/esm/types/Dai.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export {};
11 changes: 6 additions & 5 deletions packages/test-e2e/test/with-etherscan/sdk/esm/types/Mkr.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface MkrInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface MkrInterface extends utils.Interface {
contractName: "Mkr";
functions: {
"name()": FunctionFragment;
"stop()": FunctionFragment;
Expand Down Expand Up @@ -150,6 +150,7 @@ export declare type ApprovalEvent = TypedEvent<[
}>;
export declare type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
export interface Mkr extends BaseContract {
contractName: "Mkr";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
3 changes: 0 additions & 3 deletions packages/test-e2e/test/with-etherscan/sdk/esm/types/Mkr.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export {};
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface ProxyCustomImplementationInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface ProxyCustomImplementationInterface extends utils.Interface {
contractName: "ProxyCustomImplementation";
functions: {
"_become(address)": FunctionFragment;
"_borrowGuardianPaused()": FunctionFragment;
Expand Down Expand Up @@ -469,6 +469,7 @@ export declare type NewPriceOracleEvent = TypedEvent<[
}>;
export declare type NewPriceOracleEventFilter = TypedEventFilter<NewPriceOracleEvent>;
export interface ProxyCustomImplementation extends BaseContract {
contractName: "ProxyCustomImplementation";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export {};
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface ProxyStandardStorageSlotInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface ProxyStandardStorageSlotInterface extends utils.Interface {
contractName: "ProxyStandardStorageSlot";
functions: {
"advance()": FunctionFragment;
"allowance(address,address)": FunctionFragment;
Expand Down Expand Up @@ -415,6 +415,7 @@ export declare type WithdrawEvent = TypedEvent<[
}>;
export declare type WithdrawEventFilter = TypedEventFilter<WithdrawEvent>;
export interface ProxyStandardStorageSlot extends BaseContract {
contractName: "ProxyStandardStorageSlot";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export {};
11 changes: 6 additions & 5 deletions packages/test-e2e/test/with-etherscan/sdk/esm/types/Uniswap.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ethers, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides } from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface UniswapInterface extends ethers.utils.Interface {
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common";
export interface UniswapInterface extends utils.Interface {
contractName: "Uniswap";
functions: {
"createPool(address,address,uint24)": FunctionFragment;
"enableFeeAmount(uint24,int24)": FunctionFragment;
Expand Down Expand Up @@ -67,6 +67,7 @@ export declare type PoolCreatedEvent = TypedEvent<[
}>;
export declare type PoolCreatedEventFilter = TypedEventFilter<PoolCreatedEvent>;
export interface Uniswap extends BaseContract {
contractName: "Uniswap";
connect(signerOrProvider: Signer | Provider | string): this;
attach(addressOrName: string): this;
deployed(): Promise<this>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export {};
Loading

0 comments on commit 56283f4

Please sign in to comment.