File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
target-web3-v1-test/types Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,25 @@ export interface PayableTx extends NonPayableTx {
4747
4848export interface NonPayableTransactionObject < T > {
4949 arguments : any [ ] ;
50- call ( tx ?: NonPayableTx ) : Promise < T > ;
50+ call ( tx ?: NonPayableTx , block ?: BlockType ) : Promise < T > ;
5151 send ( tx ?: NonPayableTx ) : PromiEvent < TransactionReceipt > ;
5252 estimateGas ( tx ?: NonPayableTx ) : Promise < number > ;
5353 encodeABI ( ) : string ;
5454}
5555
5656export interface PayableTransactionObject < T > {
5757 arguments : any [ ] ;
58- call ( tx ?: PayableTx ) : Promise < T > ;
58+ call ( tx ?: PayableTx , block ?: BlockType ) : Promise < T > ;
5959 send ( tx ?: PayableTx ) : PromiEvent < TransactionReceipt > ;
6060 estimateGas ( tx ?: PayableTx ) : Promise < number > ;
6161 encodeABI ( ) : string ;
6262}
6363
64- export type BlockType = "latest" | "pending" | "genesis" | number ;
64+ export type BlockType =
65+ | "latest"
66+ | "pending"
67+ | "genesis"
68+ | "earliest"
69+ | number
70+ | BN ;
6571export type BaseContract = Omit < Contract , "clone" | "once" > ;
Original file line number Diff line number Diff line change @@ -41,19 +41,19 @@ export interface PayableTx extends NonPayableTx {
4141
4242export interface NonPayableTransactionObject < T > {
4343 arguments : any [ ]
44- call ( tx ?: NonPayableTx ) : Promise < T >
44+ call ( tx ?: NonPayableTx , block ?: BlockType ) : Promise < T >
4545 send ( tx ?: NonPayableTx ) : PromiEvent < TransactionReceipt >
4646 estimateGas ( tx ?: NonPayableTx ) : Promise < number >
4747 encodeABI ( ) : string
4848}
4949
5050export interface PayableTransactionObject < T > {
5151 arguments : any [ ]
52- call ( tx ?: PayableTx ) : Promise < T >
52+ call ( tx ?: PayableTx , block ?: BlockType ) : Promise < T >
5353 send ( tx ?: PayableTx ) : PromiEvent < TransactionReceipt >
5454 estimateGas ( tx ?: PayableTx ) : Promise < number >
5555 encodeABI ( ) : string
5656}
5757
58- export type BlockType = 'latest' | 'pending' | 'genesis' | number
58+ export type BlockType = 'latest' | 'pending' | 'genesis' | 'earliest' | number | BN
5959export type BaseContract = Omit < Contract , 'clone' | 'once' >
You can’t perform that action at this time.
0 commit comments