forked from dethcrypto/TypeChain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Counter.ts
111 lines (84 loc) · 3.65 KB
/
Counter.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
BaseContract,
BigNumber,
BytesLike,
CallOverrides,
ContractTransaction,
Overrides,
PopulatedTransaction,
Signer,
utils,
} from 'ethers'
import { FunctionFragment, Result, EventFragment } from '@ethersproject/abi'
import { Listener, Provider } from '@ethersproject/providers'
import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from '../common'
export interface CounterInterface extends utils.Interface {
contractName: 'Counter'
functions: {
'countDown()': FunctionFragment
'countUp()': FunctionFragment
'getCount()': FunctionFragment
}
encodeFunctionData(functionFragment: 'countDown', values?: undefined): string
encodeFunctionData(functionFragment: 'countUp', values?: undefined): string
encodeFunctionData(functionFragment: 'getCount', values?: undefined): string
decodeFunctionResult(functionFragment: 'countDown', data: BytesLike): Result
decodeFunctionResult(functionFragment: 'countUp', data: BytesLike): Result
decodeFunctionResult(functionFragment: 'getCount', data: BytesLike): Result
events: {
'CountedTo(uint256)': EventFragment
}
getEvent(nameOrSignatureOrTopic: 'CountedTo'): EventFragment
}
export type CountedToEvent = TypedEvent<[BigNumber], { number: BigNumber }>
export type CountedToEventFilter = TypedEventFilter<CountedToEvent>
export interface Counter extends BaseContract {
contractName: 'Counter'
connect(signerOrProvider: Signer | Provider | string): this
attach(addressOrName: string): this
deployed(): Promise<this>
interface: CounterInterface
queryFilter<TEvent extends TypedEvent>(
event: TypedEventFilter<TEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined,
): Promise<Array<TEvent>>
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>
listeners(eventName?: string): Array<Listener>
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this
removeAllListeners(eventName?: string): this
off: OnEvent<this>
on: OnEvent<this>
once: OnEvent<this>
removeListener: OnEvent<this>
functions: {
countDown(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
countUp(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
getCount(overrides?: CallOverrides): Promise<[BigNumber]>
}
countDown(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
countUp(overrides?: Overrides & { from?: string | Promise<string> }): Promise<ContractTransaction>
getCount(overrides?: CallOverrides): Promise<BigNumber>
callStatic: {
countDown(overrides?: CallOverrides): Promise<BigNumber>
countUp(overrides?: CallOverrides): Promise<BigNumber>
getCount(overrides?: CallOverrides): Promise<BigNumber>
}
filters: {
'CountedTo(uint256)'(number?: null): CountedToEventFilter
CountedTo(number?: null): CountedToEventFilter
}
estimateGas: {
countDown(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
countUp(overrides?: Overrides & { from?: string | Promise<string> }): Promise<BigNumber>
getCount(overrides?: CallOverrides): Promise<BigNumber>
}
populateTransaction: {
countDown(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
countUp(overrides?: Overrides & { from?: string | Promise<string> }): Promise<PopulatedTransaction>
getCount(overrides?: CallOverrides): Promise<PopulatedTransaction>
}
}