-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #300 from ethereum-ts/kk/0xGabi/ethers-target-fact…
…ories-subdir
- Loading branch information
Showing
40 changed files
with
454 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
pragma solidity ^0.6.4; | ||
|
||
import "./Payable.sol"; | ||
|
||
contract PayableFactory { | ||
function newPayable() public returns (Payable) { | ||
return new Payable(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers"; | ||
import { Listener, Provider } from "ethers/providers"; | ||
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils"; | ||
import { | ||
TransactionOverrides, | ||
TypedEventDescription, | ||
TypedFunctionDescription, | ||
} from "."; | ||
|
||
interface PayableFactoryInterface extends Interface { | ||
functions: { | ||
newPayable: TypedFunctionDescription<{ encode([]: []): string }>; | ||
}; | ||
|
||
events: {}; | ||
} | ||
|
||
export class PayableFactory extends Contract { | ||
connect(signerOrProvider: Signer | Provider | string): PayableFactory; | ||
attach(addressOrName: string): PayableFactory; | ||
deployed(): Promise<PayableFactory>; | ||
|
||
on(event: EventFilter | string, listener: Listener): PayableFactory; | ||
once(event: EventFilter | string, listener: Listener): PayableFactory; | ||
addListener( | ||
eventName: EventFilter | string, | ||
listener: Listener | ||
): PayableFactory; | ||
removeAllListeners(eventName: EventFilter | string): PayableFactory; | ||
removeListener(eventName: any, listener: Listener): PayableFactory; | ||
|
||
interface: PayableFactoryInterface; | ||
|
||
functions: { | ||
newPayable(overrides?: TransactionOverrides): Promise<ContractTransaction>; | ||
|
||
"newPayable()"( | ||
overrides?: TransactionOverrides | ||
): Promise<ContractTransaction>; | ||
}; | ||
|
||
newPayable(overrides?: TransactionOverrides): Promise<ContractTransaction>; | ||
|
||
"newPayable()"( | ||
overrides?: TransactionOverrides | ||
): Promise<ContractTransaction>; | ||
|
||
filters: {}; | ||
|
||
estimate: { | ||
newPayable(overrides?: TransactionOverrides): Promise<BigNumber>; | ||
|
||
"newPayable()"(overrides?: TransactionOverrides): Promise<BigNumber>; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/target-ethers-v4-test/types/factories/PayableFactory__factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import { Contract, Signer } from "ethers"; | ||
import { Provider } from "ethers/providers"; | ||
|
||
import { PayableFactory } from "../PayableFactory"; | ||
|
||
export class PayableFactory__factory { | ||
static connect( | ||
address: string, | ||
signerOrProvider: Signer | Provider | ||
): PayableFactory { | ||
return new Contract(address, _abi, signerOrProvider) as PayableFactory; | ||
} | ||
} | ||
|
||
const _abi = [ | ||
{ | ||
inputs: [], | ||
name: "newPayable", | ||
outputs: [ | ||
{ | ||
internalType: "contract Payable", | ||
name: "", | ||
type: "address", | ||
}, | ||
], | ||
stateMutability: "nonpayable", | ||
type: "function", | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const FACTORY_POSTFIX = '__factory' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.