@coset-dev/contracts 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Oracle.d.ts +210 -0
- package/dist/OracleFactory.d.ts +313 -0
- package/dist/OracleUtils.d.ts +20 -0
- package/dist/cjs/ethers-contracts/Oracle.js +2 -0
- package/dist/cjs/ethers-contracts/Oracle.js.map +7 -0
- package/dist/cjs/ethers-contracts/OracleFactory.js +2 -0
- package/dist/cjs/ethers-contracts/OracleFactory.js.map +7 -0
- package/dist/cjs/ethers-contracts/OracleUtils.js +2 -0
- package/dist/cjs/ethers-contracts/OracleUtils.js.map +7 -0
- package/dist/cjs/ethers-contracts/common.js +2 -0
- package/dist/cjs/ethers-contracts/common.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/OracleFactory__factory.js +2 -0
- package/dist/cjs/ethers-contracts/factories/OracleFactory__factory.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/OracleUtils__factory.js +2 -0
- package/dist/cjs/ethers-contracts/factories/OracleUtils__factory.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/Oracle__factory.js +2 -0
- package/dist/cjs/ethers-contracts/factories/Oracle__factory.js.map +7 -0
- package/dist/cjs/ethers-contracts/factories/index.js +2 -0
- package/dist/cjs/ethers-contracts/factories/index.js.map +7 -0
- package/dist/cjs/ethers-contracts/index.js +2 -0
- package/dist/cjs/ethers-contracts/index.js.map +7 -0
- package/dist/common.d.ts +46 -0
- package/dist/esm/ethers-contracts/Oracle.js +2 -0
- package/dist/esm/ethers-contracts/Oracle.js.map +7 -0
- package/dist/esm/ethers-contracts/OracleFactory.js +2 -0
- package/dist/esm/ethers-contracts/OracleFactory.js.map +7 -0
- package/dist/esm/ethers-contracts/OracleUtils.js +1 -0
- package/dist/esm/ethers-contracts/OracleUtils.js.map +7 -0
- package/dist/esm/ethers-contracts/common.js +1 -0
- package/dist/esm/ethers-contracts/common.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/OracleFactory__factory.js +2 -0
- package/dist/esm/ethers-contracts/factories/OracleFactory__factory.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/OracleUtils__factory.js +2 -0
- package/dist/esm/ethers-contracts/factories/OracleUtils__factory.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/Oracle__factory.js +2 -0
- package/dist/esm/ethers-contracts/factories/Oracle__factory.js.map +7 -0
- package/dist/esm/ethers-contracts/factories/index.js +2 -0
- package/dist/esm/ethers-contracts/factories/index.js.map +7 -0
- package/dist/esm/ethers-contracts/index.js +2 -0
- package/dist/esm/ethers-contracts/index.js.map +7 -0
- package/dist/factories/OracleFactory__factory.d.ts +421 -0
- package/dist/factories/OracleUtils__factory.d.ts +108 -0
- package/dist/factories/Oracle__factory.d.ts +323 -0
- package/{types/ethers-contracts/factories/index.ts → dist/factories/index.d.ts} +1 -4
- package/{types/ethers-contracts/index.ts → dist/index.d.ts} +1 -4
- package/package.json +41 -16
- package/types/ethers-contracts/Oracle.ts +0 -306
- package/types/ethers-contracts/OracleFactory.ts +0 -363
- package/types/ethers-contracts/OracleUtils.ts +0 -64
- package/types/ethers-contracts/common.ts +0 -92
- package/types/ethers-contracts/factories/OracleFactory__factory.ts +0 -578
- package/types/ethers-contracts/factories/OracleUtils__factory.ts +0 -170
- package/types/ethers-contracts/factories/Oracle__factory.ts +0 -449
- /package/{types/ethers-contracts → dist}/hardhat.d.ts +0 -0
package/dist/Oracle.d.ts
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common.js";
|
|
3
|
+
export interface OracleInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "MAX_DATA_SIZE" | "dataUpdatePrice" | "factory" | "getData" | "getDataWithoutCheck" | "getProvider" | "history" | "historyCount" | "isActive" | "lastUpdateTimestamp" | "provider" | "recommendedUpdateDuration" | "setDataUpdatePrice" | "setOracleStatus" | "setRecommendedUpdateDuration" | "updateData"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "DataUpdated"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: 'MAX_DATA_SIZE', values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: 'dataUpdatePrice', values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: 'factory', values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: 'getData', values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: 'getDataWithoutCheck', values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: 'getProvider', values?: undefined): string;
|
|
12
|
+
encodeFunctionData(functionFragment: 'history', values: [BigNumberish]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: 'historyCount', values?: undefined): string;
|
|
14
|
+
encodeFunctionData(functionFragment: 'isActive', values?: undefined): string;
|
|
15
|
+
encodeFunctionData(functionFragment: 'lastUpdateTimestamp', values?: undefined): string;
|
|
16
|
+
encodeFunctionData(functionFragment: 'provider', values?: undefined): string;
|
|
17
|
+
encodeFunctionData(functionFragment: 'recommendedUpdateDuration', values?: undefined): string;
|
|
18
|
+
encodeFunctionData(functionFragment: 'setDataUpdatePrice', values: [BigNumberish]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: 'setOracleStatus', values: [boolean]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: 'setRecommendedUpdateDuration', values: [BigNumberish]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: 'updateData', values: [BytesLike]): string;
|
|
22
|
+
decodeFunctionResult(functionFragment: 'MAX_DATA_SIZE', data: BytesLike): Result;
|
|
23
|
+
decodeFunctionResult(functionFragment: 'dataUpdatePrice', data: BytesLike): Result;
|
|
24
|
+
decodeFunctionResult(functionFragment: 'factory', data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: 'getData', data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: 'getDataWithoutCheck', data: BytesLike): Result;
|
|
27
|
+
decodeFunctionResult(functionFragment: 'getProvider', data: BytesLike): Result;
|
|
28
|
+
decodeFunctionResult(functionFragment: 'history', data: BytesLike): Result;
|
|
29
|
+
decodeFunctionResult(functionFragment: 'historyCount', data: BytesLike): Result;
|
|
30
|
+
decodeFunctionResult(functionFragment: 'isActive', data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: 'lastUpdateTimestamp', data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: 'provider', data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: 'recommendedUpdateDuration', data: BytesLike): Result;
|
|
34
|
+
decodeFunctionResult(functionFragment: 'setDataUpdatePrice', data: BytesLike): Result;
|
|
35
|
+
decodeFunctionResult(functionFragment: 'setOracleStatus', data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: 'setRecommendedUpdateDuration', data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: 'updateData', data: BytesLike): Result;
|
|
38
|
+
}
|
|
39
|
+
export declare namespace DataUpdatedEvent {
|
|
40
|
+
type InputTuple = [data: BytesLike, timestamp: BigNumberish];
|
|
41
|
+
type OutputTuple = [data: string, timestamp: bigint];
|
|
42
|
+
interface OutputObject {
|
|
43
|
+
data: string;
|
|
44
|
+
timestamp: bigint;
|
|
45
|
+
}
|
|
46
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
47
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
48
|
+
type Log = TypedEventLog<Event>;
|
|
49
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
50
|
+
}
|
|
51
|
+
export interface Oracle extends BaseContract {
|
|
52
|
+
connect(runner?: ContractRunner | null): Oracle;
|
|
53
|
+
waitForDeployment(): Promise<this>;
|
|
54
|
+
interface: OracleInterface;
|
|
55
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
56
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
57
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
58
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
59
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
60
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
61
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
62
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
63
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
64
|
+
MAX_DATA_SIZE: TypedContractMethod<[
|
|
65
|
+
], [
|
|
66
|
+
bigint
|
|
67
|
+
], 'view'>;
|
|
68
|
+
dataUpdatePrice: TypedContractMethod<[
|
|
69
|
+
], [
|
|
70
|
+
bigint
|
|
71
|
+
], 'view'>;
|
|
72
|
+
factory: TypedContractMethod<[
|
|
73
|
+
], [
|
|
74
|
+
string
|
|
75
|
+
], 'view'>;
|
|
76
|
+
getData: TypedContractMethod<[
|
|
77
|
+
], [
|
|
78
|
+
string
|
|
79
|
+
], 'view'>;
|
|
80
|
+
getDataWithoutCheck: TypedContractMethod<[
|
|
81
|
+
], [
|
|
82
|
+
string
|
|
83
|
+
], 'view'>;
|
|
84
|
+
getProvider: TypedContractMethod<[
|
|
85
|
+
], [
|
|
86
|
+
string
|
|
87
|
+
], 'view'>;
|
|
88
|
+
history: TypedContractMethod<[
|
|
89
|
+
arg0: BigNumberish
|
|
90
|
+
], [
|
|
91
|
+
[string, bigint] & {
|
|
92
|
+
data: string;
|
|
93
|
+
timestamp: bigint;
|
|
94
|
+
}
|
|
95
|
+
], 'view'>;
|
|
96
|
+
historyCount: TypedContractMethod<[
|
|
97
|
+
], [
|
|
98
|
+
bigint
|
|
99
|
+
], 'view'>;
|
|
100
|
+
isActive: TypedContractMethod<[
|
|
101
|
+
], [
|
|
102
|
+
boolean
|
|
103
|
+
], 'view'>;
|
|
104
|
+
lastUpdateTimestamp: TypedContractMethod<[
|
|
105
|
+
], [
|
|
106
|
+
bigint
|
|
107
|
+
], 'view'>;
|
|
108
|
+
recommendedUpdateDuration: TypedContractMethod<[
|
|
109
|
+
], [
|
|
110
|
+
bigint
|
|
111
|
+
], 'view'>;
|
|
112
|
+
setDataUpdatePrice: TypedContractMethod<[
|
|
113
|
+
_price: BigNumberish
|
|
114
|
+
], [
|
|
115
|
+
void
|
|
116
|
+
], 'nonpayable'>;
|
|
117
|
+
setOracleStatus: TypedContractMethod<[
|
|
118
|
+
_isActive: boolean
|
|
119
|
+
], [
|
|
120
|
+
void
|
|
121
|
+
], 'nonpayable'>;
|
|
122
|
+
setRecommendedUpdateDuration: TypedContractMethod<[
|
|
123
|
+
_duration: BigNumberish
|
|
124
|
+
], [
|
|
125
|
+
void
|
|
126
|
+
], 'nonpayable'>;
|
|
127
|
+
updateData: TypedContractMethod<[
|
|
128
|
+
_data: BytesLike
|
|
129
|
+
], [
|
|
130
|
+
void
|
|
131
|
+
], 'payable'>;
|
|
132
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
133
|
+
getFunction(nameOrSignature: 'MAX_DATA_SIZE'): TypedContractMethod<[
|
|
134
|
+
], [
|
|
135
|
+
bigint
|
|
136
|
+
], 'view'>;
|
|
137
|
+
getFunction(nameOrSignature: 'dataUpdatePrice'): TypedContractMethod<[
|
|
138
|
+
], [
|
|
139
|
+
bigint
|
|
140
|
+
], 'view'>;
|
|
141
|
+
getFunction(nameOrSignature: 'factory'): TypedContractMethod<[
|
|
142
|
+
], [
|
|
143
|
+
string
|
|
144
|
+
], 'view'>;
|
|
145
|
+
getFunction(nameOrSignature: 'getData'): TypedContractMethod<[
|
|
146
|
+
], [
|
|
147
|
+
string
|
|
148
|
+
], 'view'>;
|
|
149
|
+
getFunction(nameOrSignature: 'getDataWithoutCheck'): TypedContractMethod<[
|
|
150
|
+
], [
|
|
151
|
+
string
|
|
152
|
+
], 'view'>;
|
|
153
|
+
getFunction(nameOrSignature: 'getProvider'): TypedContractMethod<[
|
|
154
|
+
], [
|
|
155
|
+
string
|
|
156
|
+
], 'view'>;
|
|
157
|
+
getFunction(nameOrSignature: 'history'): TypedContractMethod<[
|
|
158
|
+
arg0: BigNumberish
|
|
159
|
+
], [
|
|
160
|
+
[string, bigint] & {
|
|
161
|
+
data: string;
|
|
162
|
+
timestamp: bigint;
|
|
163
|
+
}
|
|
164
|
+
], 'view'>;
|
|
165
|
+
getFunction(nameOrSignature: 'historyCount'): TypedContractMethod<[
|
|
166
|
+
], [
|
|
167
|
+
bigint
|
|
168
|
+
], 'view'>;
|
|
169
|
+
getFunction(nameOrSignature: 'isActive'): TypedContractMethod<[
|
|
170
|
+
], [
|
|
171
|
+
boolean
|
|
172
|
+
], 'view'>;
|
|
173
|
+
getFunction(nameOrSignature: 'lastUpdateTimestamp'): TypedContractMethod<[
|
|
174
|
+
], [
|
|
175
|
+
bigint
|
|
176
|
+
], 'view'>;
|
|
177
|
+
getFunction(nameOrSignature: 'provider'): TypedContractMethod<[
|
|
178
|
+
], [
|
|
179
|
+
string
|
|
180
|
+
], 'view'>;
|
|
181
|
+
getFunction(nameOrSignature: 'recommendedUpdateDuration'): TypedContractMethod<[
|
|
182
|
+
], [
|
|
183
|
+
bigint
|
|
184
|
+
], 'view'>;
|
|
185
|
+
getFunction(nameOrSignature: 'setDataUpdatePrice'): TypedContractMethod<[
|
|
186
|
+
_price: BigNumberish
|
|
187
|
+
], [
|
|
188
|
+
void
|
|
189
|
+
], 'nonpayable'>;
|
|
190
|
+
getFunction(nameOrSignature: 'setOracleStatus'): TypedContractMethod<[
|
|
191
|
+
_isActive: boolean
|
|
192
|
+
], [
|
|
193
|
+
void
|
|
194
|
+
], 'nonpayable'>;
|
|
195
|
+
getFunction(nameOrSignature: 'setRecommendedUpdateDuration'): TypedContractMethod<[
|
|
196
|
+
_duration: BigNumberish
|
|
197
|
+
], [
|
|
198
|
+
void
|
|
199
|
+
], 'nonpayable'>;
|
|
200
|
+
getFunction(nameOrSignature: 'updateData'): TypedContractMethod<[
|
|
201
|
+
_data: BytesLike
|
|
202
|
+
], [
|
|
203
|
+
void
|
|
204
|
+
], 'payable'>;
|
|
205
|
+
getEvent(key: 'DataUpdated'): TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
|
|
206
|
+
filters: {
|
|
207
|
+
'DataUpdated(bytes,uint256)': TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
|
|
208
|
+
DataUpdated: TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;
|
|
209
|
+
};
|
|
210
|
+
}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common.js";
|
|
3
|
+
export interface OracleFactoryInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "activeOracleCount" | "config" | "deployOracle" | "getAllOracles()" | "getAllOracles(uint256,uint256)" | "getOracleInfo" | "getProviderOracles(address,uint256,uint256)" | "getProviderOracles(address)" | "oracleList" | "oracles" | "owner" | "providerOracles" | "renounceOwnership" | "setOracleDataUpdatePrice" | "setOracleStatus" | "transferOwnership" | "updateConfig"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "OracleDeployed" | "OracleStatusChanged" | "OwnershipTransferred"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: 'activeOracleCount', values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: 'config', values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: 'deployOracle', values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
9
|
+
encodeFunctionData(functionFragment: 'getAllOracles()', values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: 'getAllOracles(uint256,uint256)', values: [BigNumberish, BigNumberish]): string;
|
|
11
|
+
encodeFunctionData(functionFragment: 'getOracleInfo', values: [AddressLike]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: 'getProviderOracles(address,uint256,uint256)', values: [AddressLike, BigNumberish, BigNumberish]): string;
|
|
13
|
+
encodeFunctionData(functionFragment: 'getProviderOracles(address)', values: [AddressLike]): string;
|
|
14
|
+
encodeFunctionData(functionFragment: 'oracleList', values: [BigNumberish]): string;
|
|
15
|
+
encodeFunctionData(functionFragment: 'oracles', values: [AddressLike]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: 'owner', values?: undefined): string;
|
|
17
|
+
encodeFunctionData(functionFragment: 'providerOracles', values: [AddressLike, BigNumberish]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string;
|
|
19
|
+
encodeFunctionData(functionFragment: 'setOracleDataUpdatePrice', values: [AddressLike, BigNumberish]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: 'setOracleStatus', values: [AddressLike, boolean]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: 'transferOwnership', values: [AddressLike]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: 'updateConfig', values: [BigNumberish, BigNumberish]): string;
|
|
23
|
+
decodeFunctionResult(functionFragment: 'activeOracleCount', data: BytesLike): Result;
|
|
24
|
+
decodeFunctionResult(functionFragment: 'config', data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: 'deployOracle', data: BytesLike): Result;
|
|
26
|
+
decodeFunctionResult(functionFragment: 'getAllOracles()', data: BytesLike): Result;
|
|
27
|
+
decodeFunctionResult(functionFragment: 'getAllOracles(uint256,uint256)', data: BytesLike): Result;
|
|
28
|
+
decodeFunctionResult(functionFragment: 'getOracleInfo', data: BytesLike): Result;
|
|
29
|
+
decodeFunctionResult(functionFragment: 'getProviderOracles(address,uint256,uint256)', data: BytesLike): Result;
|
|
30
|
+
decodeFunctionResult(functionFragment: 'getProviderOracles(address)', data: BytesLike): Result;
|
|
31
|
+
decodeFunctionResult(functionFragment: 'oracleList', data: BytesLike): Result;
|
|
32
|
+
decodeFunctionResult(functionFragment: 'oracles', data: BytesLike): Result;
|
|
33
|
+
decodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result;
|
|
34
|
+
decodeFunctionResult(functionFragment: 'providerOracles', data: BytesLike): Result;
|
|
35
|
+
decodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: 'setOracleDataUpdatePrice', data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: 'setOracleStatus', data: BytesLike): Result;
|
|
38
|
+
decodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result;
|
|
39
|
+
decodeFunctionResult(functionFragment: 'updateConfig', data: BytesLike): Result;
|
|
40
|
+
}
|
|
41
|
+
export declare namespace OracleDeployedEvent {
|
|
42
|
+
type InputTuple = [oracleAddress: AddressLike, provider: AddressLike, timestamp: BigNumberish];
|
|
43
|
+
type OutputTuple = [oracleAddress: string, provider: string, timestamp: bigint];
|
|
44
|
+
interface OutputObject {
|
|
45
|
+
oracleAddress: string;
|
|
46
|
+
provider: string;
|
|
47
|
+
timestamp: bigint;
|
|
48
|
+
}
|
|
49
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
50
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
51
|
+
type Log = TypedEventLog<Event>;
|
|
52
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace OracleStatusChangedEvent {
|
|
55
|
+
type InputTuple = [oracleAddress: AddressLike, provider: AddressLike, newOracleStatus: boolean, timestamp: BigNumberish];
|
|
56
|
+
type OutputTuple = [oracleAddress: string, provider: string, newOracleStatus: boolean, timestamp: bigint];
|
|
57
|
+
interface OutputObject {
|
|
58
|
+
oracleAddress: string;
|
|
59
|
+
provider: string;
|
|
60
|
+
newOracleStatus: boolean;
|
|
61
|
+
timestamp: bigint;
|
|
62
|
+
}
|
|
63
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
64
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
65
|
+
type Log = TypedEventLog<Event>;
|
|
66
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
67
|
+
}
|
|
68
|
+
export declare namespace OwnershipTransferredEvent {
|
|
69
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
70
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
71
|
+
interface OutputObject {
|
|
72
|
+
previousOwner: string;
|
|
73
|
+
newOwner: string;
|
|
74
|
+
}
|
|
75
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
76
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
77
|
+
type Log = TypedEventLog<Event>;
|
|
78
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
79
|
+
}
|
|
80
|
+
export interface OracleFactory extends BaseContract {
|
|
81
|
+
connect(runner?: ContractRunner | null): OracleFactory;
|
|
82
|
+
waitForDeployment(): Promise<this>;
|
|
83
|
+
interface: OracleFactoryInterface;
|
|
84
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
85
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
86
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
87
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
88
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
89
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
90
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
91
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
92
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
93
|
+
activeOracleCount: TypedContractMethod<[
|
|
94
|
+
], [
|
|
95
|
+
bigint
|
|
96
|
+
], 'view'>;
|
|
97
|
+
config: TypedContractMethod<[
|
|
98
|
+
], [
|
|
99
|
+
[bigint, bigint] & {
|
|
100
|
+
oracleDeployPrice: bigint;
|
|
101
|
+
oracleFactoryShare: bigint;
|
|
102
|
+
}
|
|
103
|
+
], 'view'>;
|
|
104
|
+
deployOracle: TypedContractMethod<[
|
|
105
|
+
_recommendedUpdateDuration: BigNumberish,
|
|
106
|
+
_dataUpdatePrice: BigNumberish,
|
|
107
|
+
_initialData: BytesLike
|
|
108
|
+
], [
|
|
109
|
+
void
|
|
110
|
+
], 'payable'>;
|
|
111
|
+
"getAllOracles()": TypedContractMethod<[
|
|
112
|
+
], [
|
|
113
|
+
string[]
|
|
114
|
+
], 'view'>;
|
|
115
|
+
"getAllOracles(uint256,uint256)": TypedContractMethod<[
|
|
116
|
+
offset: BigNumberish,
|
|
117
|
+
limit: BigNumberish
|
|
118
|
+
], [
|
|
119
|
+
[string[], bigint] & {
|
|
120
|
+
total: bigint;
|
|
121
|
+
}
|
|
122
|
+
], 'view'>;
|
|
123
|
+
getOracleInfo: TypedContractMethod<[
|
|
124
|
+
oracleAddress: AddressLike
|
|
125
|
+
], [
|
|
126
|
+
[string, bigint, boolean] & {
|
|
127
|
+
provider: string;
|
|
128
|
+
createdAt: bigint;
|
|
129
|
+
isActive: boolean;
|
|
130
|
+
}
|
|
131
|
+
], 'view'>;
|
|
132
|
+
"getProviderOracles(address,uint256,uint256)": TypedContractMethod<[
|
|
133
|
+
provider: AddressLike,
|
|
134
|
+
offset: BigNumberish,
|
|
135
|
+
limit: BigNumberish
|
|
136
|
+
], [
|
|
137
|
+
[string[], bigint] & {
|
|
138
|
+
total: bigint;
|
|
139
|
+
}
|
|
140
|
+
], 'view'>;
|
|
141
|
+
"getProviderOracles(address)": TypedContractMethod<[
|
|
142
|
+
provider: AddressLike
|
|
143
|
+
], [
|
|
144
|
+
string[]
|
|
145
|
+
], 'view'>;
|
|
146
|
+
oracleList: TypedContractMethod<[
|
|
147
|
+
arg0: BigNumberish
|
|
148
|
+
], [
|
|
149
|
+
string
|
|
150
|
+
], 'view'>;
|
|
151
|
+
oracles: TypedContractMethod<[
|
|
152
|
+
arg0: AddressLike
|
|
153
|
+
], [
|
|
154
|
+
[string, bigint, boolean] & {
|
|
155
|
+
provider: string;
|
|
156
|
+
createdAt: bigint;
|
|
157
|
+
isActive: boolean;
|
|
158
|
+
}
|
|
159
|
+
], 'view'>;
|
|
160
|
+
owner: TypedContractMethod<[
|
|
161
|
+
], [
|
|
162
|
+
string
|
|
163
|
+
], 'view'>;
|
|
164
|
+
providerOracles: TypedContractMethod<[
|
|
165
|
+
arg0: AddressLike,
|
|
166
|
+
arg1: BigNumberish
|
|
167
|
+
], [
|
|
168
|
+
string
|
|
169
|
+
], 'view'>;
|
|
170
|
+
renounceOwnership: TypedContractMethod<[
|
|
171
|
+
], [
|
|
172
|
+
void
|
|
173
|
+
], 'nonpayable'>;
|
|
174
|
+
setOracleDataUpdatePrice: TypedContractMethod<[
|
|
175
|
+
oracleAddress: AddressLike,
|
|
176
|
+
_dataUpdatePrice: BigNumberish
|
|
177
|
+
], [
|
|
178
|
+
void
|
|
179
|
+
], 'nonpayable'>;
|
|
180
|
+
setOracleStatus: TypedContractMethod<[
|
|
181
|
+
oracleAddress: AddressLike,
|
|
182
|
+
_isActive: boolean
|
|
183
|
+
], [
|
|
184
|
+
void
|
|
185
|
+
], 'nonpayable'>;
|
|
186
|
+
transferOwnership: TypedContractMethod<[
|
|
187
|
+
newOwner: AddressLike
|
|
188
|
+
], [
|
|
189
|
+
void
|
|
190
|
+
], 'nonpayable'>;
|
|
191
|
+
updateConfig: TypedContractMethod<[
|
|
192
|
+
_oracleDeployPrice: BigNumberish,
|
|
193
|
+
_oracleFactoryShare: BigNumberish
|
|
194
|
+
], [
|
|
195
|
+
void
|
|
196
|
+
], 'nonpayable'>;
|
|
197
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
198
|
+
getFunction(nameOrSignature: 'activeOracleCount'): TypedContractMethod<[
|
|
199
|
+
], [
|
|
200
|
+
bigint
|
|
201
|
+
], 'view'>;
|
|
202
|
+
getFunction(nameOrSignature: 'config'): TypedContractMethod<[
|
|
203
|
+
], [
|
|
204
|
+
[bigint, bigint] & {
|
|
205
|
+
oracleDeployPrice: bigint;
|
|
206
|
+
oracleFactoryShare: bigint;
|
|
207
|
+
}
|
|
208
|
+
], 'view'>;
|
|
209
|
+
getFunction(nameOrSignature: 'deployOracle'): TypedContractMethod<[
|
|
210
|
+
_recommendedUpdateDuration: BigNumberish,
|
|
211
|
+
_dataUpdatePrice: BigNumberish,
|
|
212
|
+
_initialData: BytesLike
|
|
213
|
+
], [
|
|
214
|
+
void
|
|
215
|
+
], 'payable'>;
|
|
216
|
+
getFunction(nameOrSignature: 'getAllOracles()'): TypedContractMethod<[
|
|
217
|
+
], [
|
|
218
|
+
string[]
|
|
219
|
+
], 'view'>;
|
|
220
|
+
getFunction(nameOrSignature: 'getAllOracles(uint256,uint256)'): TypedContractMethod<[
|
|
221
|
+
offset: BigNumberish,
|
|
222
|
+
limit: BigNumberish
|
|
223
|
+
], [
|
|
224
|
+
[string[], bigint] & {
|
|
225
|
+
total: bigint;
|
|
226
|
+
}
|
|
227
|
+
], 'view'>;
|
|
228
|
+
getFunction(nameOrSignature: 'getOracleInfo'): TypedContractMethod<[
|
|
229
|
+
oracleAddress: AddressLike
|
|
230
|
+
], [
|
|
231
|
+
[string, bigint, boolean] & {
|
|
232
|
+
provider: string;
|
|
233
|
+
createdAt: bigint;
|
|
234
|
+
isActive: boolean;
|
|
235
|
+
}
|
|
236
|
+
], 'view'>;
|
|
237
|
+
getFunction(nameOrSignature: 'getProviderOracles(address,uint256,uint256)'): TypedContractMethod<[
|
|
238
|
+
provider: AddressLike,
|
|
239
|
+
offset: BigNumberish,
|
|
240
|
+
limit: BigNumberish
|
|
241
|
+
], [
|
|
242
|
+
[string[], bigint] & {
|
|
243
|
+
total: bigint;
|
|
244
|
+
}
|
|
245
|
+
], 'view'>;
|
|
246
|
+
getFunction(nameOrSignature: 'getProviderOracles(address)'): TypedContractMethod<[
|
|
247
|
+
provider: AddressLike
|
|
248
|
+
], [
|
|
249
|
+
string[]
|
|
250
|
+
], 'view'>;
|
|
251
|
+
getFunction(nameOrSignature: 'oracleList'): TypedContractMethod<[
|
|
252
|
+
arg0: BigNumberish
|
|
253
|
+
], [
|
|
254
|
+
string
|
|
255
|
+
], 'view'>;
|
|
256
|
+
getFunction(nameOrSignature: 'oracles'): TypedContractMethod<[
|
|
257
|
+
arg0: AddressLike
|
|
258
|
+
], [
|
|
259
|
+
[string, bigint, boolean] & {
|
|
260
|
+
provider: string;
|
|
261
|
+
createdAt: bigint;
|
|
262
|
+
isActive: boolean;
|
|
263
|
+
}
|
|
264
|
+
], 'view'>;
|
|
265
|
+
getFunction(nameOrSignature: 'owner'): TypedContractMethod<[
|
|
266
|
+
], [
|
|
267
|
+
string
|
|
268
|
+
], 'view'>;
|
|
269
|
+
getFunction(nameOrSignature: 'providerOracles'): TypedContractMethod<[
|
|
270
|
+
arg0: AddressLike,
|
|
271
|
+
arg1: BigNumberish
|
|
272
|
+
], [
|
|
273
|
+
string
|
|
274
|
+
], 'view'>;
|
|
275
|
+
getFunction(nameOrSignature: 'renounceOwnership'): TypedContractMethod<[
|
|
276
|
+
], [
|
|
277
|
+
void
|
|
278
|
+
], 'nonpayable'>;
|
|
279
|
+
getFunction(nameOrSignature: 'setOracleDataUpdatePrice'): TypedContractMethod<[
|
|
280
|
+
oracleAddress: AddressLike,
|
|
281
|
+
_dataUpdatePrice: BigNumberish
|
|
282
|
+
], [
|
|
283
|
+
void
|
|
284
|
+
], 'nonpayable'>;
|
|
285
|
+
getFunction(nameOrSignature: 'setOracleStatus'): TypedContractMethod<[
|
|
286
|
+
oracleAddress: AddressLike,
|
|
287
|
+
_isActive: boolean
|
|
288
|
+
], [
|
|
289
|
+
void
|
|
290
|
+
], 'nonpayable'>;
|
|
291
|
+
getFunction(nameOrSignature: 'transferOwnership'): TypedContractMethod<[
|
|
292
|
+
newOwner: AddressLike
|
|
293
|
+
], [
|
|
294
|
+
void
|
|
295
|
+
], 'nonpayable'>;
|
|
296
|
+
getFunction(nameOrSignature: 'updateConfig'): TypedContractMethod<[
|
|
297
|
+
_oracleDeployPrice: BigNumberish,
|
|
298
|
+
_oracleFactoryShare: BigNumberish
|
|
299
|
+
], [
|
|
300
|
+
void
|
|
301
|
+
], 'nonpayable'>;
|
|
302
|
+
getEvent(key: 'OracleDeployed'): TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;
|
|
303
|
+
getEvent(key: 'OracleStatusChanged'): TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;
|
|
304
|
+
getEvent(key: 'OwnershipTransferred'): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
305
|
+
filters: {
|
|
306
|
+
'OracleDeployed(address,address,uint256)': TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;
|
|
307
|
+
OracleDeployed: TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;
|
|
308
|
+
'OracleStatusChanged(address,address,bool,uint256)': TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;
|
|
309
|
+
OracleStatusChanged: TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;
|
|
310
|
+
'OwnershipTransferred(address,address)': TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
311
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
312
|
+
};
|
|
313
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "./common.js";
|
|
3
|
+
export interface OracleUtilsInterface extends Interface {
|
|
4
|
+
}
|
|
5
|
+
export interface OracleUtils extends BaseContract {
|
|
6
|
+
connect(runner?: ContractRunner | null): OracleUtils;
|
|
7
|
+
waitForDeployment(): Promise<this>;
|
|
8
|
+
interface: OracleUtilsInterface;
|
|
9
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
10
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
11
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
12
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
13
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
14
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
16
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
17
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
18
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
19
|
+
filters: {};
|
|
20
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var i=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var s=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},p=(t,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of u(e))!c.call(t,n)&&n!==a&&i(t,n,{get:()=>e[n],enumerable:!(o=d(e,n))||o.enumerable});return t};var g=t=>p(i({},"__esModule",{value:!0}),t);var m={};s(m,{DataUpdatedEvent:()=>r});module.exports=g(m);var r;(t=>{})(r||={});0&&(module.exports={DataUpdatedEvent});
|
|
2
|
+
//# sourceMappingURL=Oracle.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../types/ethers-contracts/Oracle.ts"],
|
|
4
|
+
"sourcesContent": ["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nimport type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from \"ethers\"\nimport type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from \"./common.js\"\n \n\n export interface OracleInterface extends Interface {\n getFunction(nameOrSignature: \"MAX_DATA_SIZE\" | \"dataUpdatePrice\" | \"factory\" | \"getData\" | \"getDataWithoutCheck\" | \"getProvider\" | \"history\" | \"historyCount\" | \"isActive\" | \"lastUpdateTimestamp\" | \"provider\" | \"recommendedUpdateDuration\" | \"setDataUpdatePrice\" | \"setOracleStatus\" | \"setRecommendedUpdateDuration\" | \"updateData\"): FunctionFragment;\n\n getEvent(nameOrSignatureOrTopic: \"DataUpdated\"): EventFragment;\n\n encodeFunctionData(functionFragment: 'MAX_DATA_SIZE', values?: undefined): string;\nencodeFunctionData(functionFragment: 'dataUpdatePrice', values?: undefined): string;\nencodeFunctionData(functionFragment: 'factory', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getData', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getDataWithoutCheck', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getProvider', values?: undefined): string;\nencodeFunctionData(functionFragment: 'history', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'historyCount', values?: undefined): string;\nencodeFunctionData(functionFragment: 'isActive', values?: undefined): string;\nencodeFunctionData(functionFragment: 'lastUpdateTimestamp', values?: undefined): string;\nencodeFunctionData(functionFragment: 'provider', values?: undefined): string;\nencodeFunctionData(functionFragment: 'recommendedUpdateDuration', values?: undefined): string;\nencodeFunctionData(functionFragment: 'setDataUpdatePrice', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'setOracleStatus', values: [boolean]): string;\nencodeFunctionData(functionFragment: 'setRecommendedUpdateDuration', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'updateData', values: [BytesLike]): string;\n\n decodeFunctionResult(functionFragment: 'MAX_DATA_SIZE', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'dataUpdatePrice', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'factory', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getData', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getDataWithoutCheck', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getProvider', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'history', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'historyCount', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'isActive', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'lastUpdateTimestamp', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'provider', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'recommendedUpdateDuration', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setDataUpdatePrice', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setOracleStatus', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setRecommendedUpdateDuration', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'updateData', data: BytesLike): Result;\n }\n\n \n export namespace DataUpdatedEvent {\n export type InputTuple = [data: BytesLike, timestamp: BigNumberish];\n export type OutputTuple = [data: string, timestamp: bigint];\n export interface OutputObject {data: string, timestamp: bigint };\n export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>\n export type Filter = TypedDeferredTopicFilter<Event>\n export type Log = TypedEventLog<Event>\n export type LogDescription = TypedLogDescription<Event>\n }\n\n \n\n export interface Oracle extends BaseContract {\n \n connect(runner?: ContractRunner | null): Oracle;\n waitForDeployment(): Promise<this>;\n\n interface: OracleInterface;\n\n \n queryFilter<TCEvent extends TypedContractEvent>(\n event: TCEvent,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined,\n ): Promise<Array<TypedEventLog<TCEvent>>>\n queryFilter<TCEvent extends TypedContractEvent>(\n filter: TypedDeferredTopicFilter<TCEvent>,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined\n ): Promise<Array<TypedEventLog<TCEvent>>>;\n\n on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n \n once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n\n listeners<TCEvent extends TypedContractEvent>(\n event: TCEvent\n ): Promise<Array<TypedListener<TCEvent>>>;\n listeners(eventName?: string): Promise<Array<Listener>>\n removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>\n\n\n \n \n MAX_DATA_SIZE: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n dataUpdatePrice: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n factory: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n getData: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n getDataWithoutCheck: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n getProvider: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n history: TypedContractMethod<\n [arg0: BigNumberish, ],\n [[string, bigint] & {data: string, timestamp: bigint }],\n 'view'\n >\n \n\n \n historyCount: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n isActive: TypedContractMethod<\n [],\n [boolean],\n 'view'\n >\n \n\n \n lastUpdateTimestamp: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n recommendedUpdateDuration: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n setDataUpdatePrice: TypedContractMethod<\n [_price: BigNumberish, ],\n [void],\n 'nonpayable'\n >\n \n\n \n setOracleStatus: TypedContractMethod<\n [_isActive: boolean, ],\n [void],\n 'nonpayable'\n >\n \n\n \n setRecommendedUpdateDuration: TypedContractMethod<\n [_duration: BigNumberish, ],\n [void],\n 'nonpayable'\n >\n \n\n \n updateData: TypedContractMethod<\n [_data: BytesLike, ],\n [void],\n 'payable'\n >\n \n\n\n getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;\n\n getFunction(nameOrSignature: 'MAX_DATA_SIZE'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'dataUpdatePrice'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'factory'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getData'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getDataWithoutCheck'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getProvider'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'history'): TypedContractMethod<\n [arg0: BigNumberish, ],\n [[string, bigint] & {data: string, timestamp: bigint }],\n 'view'\n >;\ngetFunction(nameOrSignature: 'historyCount'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'isActive'): TypedContractMethod<\n [],\n [boolean],\n 'view'\n >;\ngetFunction(nameOrSignature: 'lastUpdateTimestamp'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'provider'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'recommendedUpdateDuration'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'setDataUpdatePrice'): TypedContractMethod<\n [_price: BigNumberish, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'setOracleStatus'): TypedContractMethod<\n [_isActive: boolean, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'setRecommendedUpdateDuration'): TypedContractMethod<\n [_duration: BigNumberish, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'updateData'): TypedContractMethod<\n [_data: BytesLike, ],\n [void],\n 'payable'\n >;\n\n getEvent(key: 'DataUpdated'): TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;\n\n filters: {\n \n 'DataUpdated(bytes,uint256)': TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;\n DataUpdated: TypedContractEvent<DataUpdatedEvent.InputTuple, DataUpdatedEvent.OutputTuple, DataUpdatedEvent.OutputObject>;\n \n };\n }"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GAgDW,IAAUE,MAAV,IAAUA,IAAA",
|
|
6
|
+
"names": ["Oracle_exports", "__export", "DataUpdatedEvent", "__toCommonJS"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var i=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})},g=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of u(t))!p.call(e,n)&&n!==r&&i(e,n,{get:()=>t[n],enumerable:!(a=c(t,n))||a.enumerable});return e};var v=e=>g(i({},"__esModule",{value:!0}),e);var O={};l(O,{OracleDeployedEvent:()=>o,OracleStatusChangedEvent:()=>s,OwnershipTransferredEvent:()=>d});module.exports=v(O);var o;(e=>{})(o||={});var s;(e=>{})(s||={});var d;(e=>{})(d||={});0&&(module.exports={OracleDeployedEvent,OracleStatusChangedEvent,OwnershipTransferredEvent});
|
|
2
|
+
//# sourceMappingURL=OracleFactory.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../types/ethers-contracts/OracleFactory.ts"],
|
|
4
|
+
"sourcesContent": ["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nimport type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from \"ethers\"\nimport type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from \"./common.js\"\n \n\n export interface OracleFactoryInterface extends Interface {\n getFunction(nameOrSignature: \"activeOracleCount\" | \"config\" | \"deployOracle\" | \"getAllOracles()\" | \"getAllOracles(uint256,uint256)\" | \"getOracleInfo\" | \"getProviderOracles(address,uint256,uint256)\" | \"getProviderOracles(address)\" | \"oracleList\" | \"oracles\" | \"owner\" | \"providerOracles\" | \"renounceOwnership\" | \"setOracleDataUpdatePrice\" | \"setOracleStatus\" | \"transferOwnership\" | \"updateConfig\"): FunctionFragment;\n\n getEvent(nameOrSignatureOrTopic: \"OracleDeployed\" | \"OracleStatusChanged\" | \"OwnershipTransferred\"): EventFragment;\n\n encodeFunctionData(functionFragment: 'activeOracleCount', values?: undefined): string;\nencodeFunctionData(functionFragment: 'config', values?: undefined): string;\nencodeFunctionData(functionFragment: 'deployOracle', values: [BigNumberish, BigNumberish, BytesLike]): string;\nencodeFunctionData(functionFragment: 'getAllOracles()', values?: undefined): string;\nencodeFunctionData(functionFragment: 'getAllOracles(uint256,uint256)', values: [BigNumberish, BigNumberish]): string;\nencodeFunctionData(functionFragment: 'getOracleInfo', values: [AddressLike]): string;\nencodeFunctionData(functionFragment: 'getProviderOracles(address,uint256,uint256)', values: [AddressLike, BigNumberish, BigNumberish]): string;\nencodeFunctionData(functionFragment: 'getProviderOracles(address)', values: [AddressLike]): string;\nencodeFunctionData(functionFragment: 'oracleList', values: [BigNumberish]): string;\nencodeFunctionData(functionFragment: 'oracles', values: [AddressLike]): string;\nencodeFunctionData(functionFragment: 'owner', values?: undefined): string;\nencodeFunctionData(functionFragment: 'providerOracles', values: [AddressLike, BigNumberish]): string;\nencodeFunctionData(functionFragment: 'renounceOwnership', values?: undefined): string;\nencodeFunctionData(functionFragment: 'setOracleDataUpdatePrice', values: [AddressLike, BigNumberish]): string;\nencodeFunctionData(functionFragment: 'setOracleStatus', values: [AddressLike, boolean]): string;\nencodeFunctionData(functionFragment: 'transferOwnership', values: [AddressLike]): string;\nencodeFunctionData(functionFragment: 'updateConfig', values: [BigNumberish, BigNumberish]): string;\n\n decodeFunctionResult(functionFragment: 'activeOracleCount', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'config', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'deployOracle', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getAllOracles()', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getAllOracles(uint256,uint256)', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getOracleInfo', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getProviderOracles(address,uint256,uint256)', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'getProviderOracles(address)', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'oracleList', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'oracles', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'owner', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'providerOracles', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'renounceOwnership', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setOracleDataUpdatePrice', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'setOracleStatus', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'transferOwnership', data: BytesLike): Result;\ndecodeFunctionResult(functionFragment: 'updateConfig', data: BytesLike): Result;\n }\n\n \n export namespace OracleDeployedEvent {\n export type InputTuple = [oracleAddress: AddressLike, provider: AddressLike, timestamp: BigNumberish];\n export type OutputTuple = [oracleAddress: string, provider: string, timestamp: bigint];\n export interface OutputObject {oracleAddress: string, provider: string, timestamp: bigint };\n export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>\n export type Filter = TypedDeferredTopicFilter<Event>\n export type Log = TypedEventLog<Event>\n export type LogDescription = TypedLogDescription<Event>\n }\n\n \n\n export namespace OracleStatusChangedEvent {\n export type InputTuple = [oracleAddress: AddressLike, provider: AddressLike, newOracleStatus: boolean, timestamp: BigNumberish];\n export type OutputTuple = [oracleAddress: string, provider: string, newOracleStatus: boolean, timestamp: bigint];\n export interface OutputObject {oracleAddress: string, provider: string, newOracleStatus: boolean, timestamp: bigint };\n export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>\n export type Filter = TypedDeferredTopicFilter<Event>\n export type Log = TypedEventLog<Event>\n export type LogDescription = TypedLogDescription<Event>\n }\n\n \n\n export namespace OwnershipTransferredEvent {\n export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];\n export type OutputTuple = [previousOwner: string, newOwner: string];\n export interface OutputObject {previousOwner: string, newOwner: string };\n export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>\n export type Filter = TypedDeferredTopicFilter<Event>\n export type Log = TypedEventLog<Event>\n export type LogDescription = TypedLogDescription<Event>\n }\n\n \n\n export interface OracleFactory extends BaseContract {\n \n connect(runner?: ContractRunner | null): OracleFactory;\n waitForDeployment(): Promise<this>;\n\n interface: OracleFactoryInterface;\n\n \n queryFilter<TCEvent extends TypedContractEvent>(\n event: TCEvent,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined,\n ): Promise<Array<TypedEventLog<TCEvent>>>\n queryFilter<TCEvent extends TypedContractEvent>(\n filter: TypedDeferredTopicFilter<TCEvent>,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined\n ): Promise<Array<TypedEventLog<TCEvent>>>;\n\n on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n \n once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n\n listeners<TCEvent extends TypedContractEvent>(\n event: TCEvent\n ): Promise<Array<TypedListener<TCEvent>>>;\n listeners(eventName?: string): Promise<Array<Listener>>\n removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>\n\n\n \n \n activeOracleCount: TypedContractMethod<\n [],\n [bigint],\n 'view'\n >\n \n\n \n config: TypedContractMethod<\n [],\n [[bigint, bigint] & {oracleDeployPrice: bigint, oracleFactoryShare: bigint }],\n 'view'\n >\n \n\n \n deployOracle: TypedContractMethod<\n [_recommendedUpdateDuration: BigNumberish, _dataUpdatePrice: BigNumberish, _initialData: BytesLike, ],\n [void],\n 'payable'\n >\n \n\n \n \"getAllOracles()\": TypedContractMethod<\n [],\n [string[]],\n 'view'\n >\n \n\n \n \"getAllOracles(uint256,uint256)\": TypedContractMethod<\n [offset: BigNumberish, limit: BigNumberish, ],\n [[string[], bigint] & {total: bigint }],\n 'view'\n >\n \n\n \n getOracleInfo: TypedContractMethod<\n [oracleAddress: AddressLike, ],\n [[string, bigint, boolean] & {provider: string, createdAt: bigint, isActive: boolean }],\n 'view'\n >\n \n\n \n \"getProviderOracles(address,uint256,uint256)\": TypedContractMethod<\n [provider: AddressLike, offset: BigNumberish, limit: BigNumberish, ],\n [[string[], bigint] & {total: bigint }],\n 'view'\n >\n \n\n \n \"getProviderOracles(address)\": TypedContractMethod<\n [provider: AddressLike, ],\n [string[]],\n 'view'\n >\n \n\n \n oracleList: TypedContractMethod<\n [arg0: BigNumberish, ],\n [string],\n 'view'\n >\n \n\n \n oracles: TypedContractMethod<\n [arg0: AddressLike, ],\n [[string, bigint, boolean] & {provider: string, createdAt: bigint, isActive: boolean }],\n 'view'\n >\n \n\n \n owner: TypedContractMethod<\n [],\n [string],\n 'view'\n >\n \n\n \n providerOracles: TypedContractMethod<\n [arg0: AddressLike, arg1: BigNumberish, ],\n [string],\n 'view'\n >\n \n\n \n renounceOwnership: TypedContractMethod<\n [],\n [void],\n 'nonpayable'\n >\n \n\n \n setOracleDataUpdatePrice: TypedContractMethod<\n [oracleAddress: AddressLike, _dataUpdatePrice: BigNumberish, ],\n [void],\n 'nonpayable'\n >\n \n\n \n setOracleStatus: TypedContractMethod<\n [oracleAddress: AddressLike, _isActive: boolean, ],\n [void],\n 'nonpayable'\n >\n \n\n \n transferOwnership: TypedContractMethod<\n [newOwner: AddressLike, ],\n [void],\n 'nonpayable'\n >\n \n\n \n updateConfig: TypedContractMethod<\n [_oracleDeployPrice: BigNumberish, _oracleFactoryShare: BigNumberish, ],\n [void],\n 'nonpayable'\n >\n \n\n\n getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;\n\n getFunction(nameOrSignature: 'activeOracleCount'): TypedContractMethod<\n [],\n [bigint],\n 'view'\n >;\ngetFunction(nameOrSignature: 'config'): TypedContractMethod<\n [],\n [[bigint, bigint] & {oracleDeployPrice: bigint, oracleFactoryShare: bigint }],\n 'view'\n >;\ngetFunction(nameOrSignature: 'deployOracle'): TypedContractMethod<\n [_recommendedUpdateDuration: BigNumberish, _dataUpdatePrice: BigNumberish, _initialData: BytesLike, ],\n [void],\n 'payable'\n >;\ngetFunction(nameOrSignature: 'getAllOracles()'): TypedContractMethod<\n [],\n [string[]],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getAllOracles(uint256,uint256)'): TypedContractMethod<\n [offset: BigNumberish, limit: BigNumberish, ],\n [[string[], bigint] & {total: bigint }],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getOracleInfo'): TypedContractMethod<\n [oracleAddress: AddressLike, ],\n [[string, bigint, boolean] & {provider: string, createdAt: bigint, isActive: boolean }],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getProviderOracles(address,uint256,uint256)'): TypedContractMethod<\n [provider: AddressLike, offset: BigNumberish, limit: BigNumberish, ],\n [[string[], bigint] & {total: bigint }],\n 'view'\n >;\ngetFunction(nameOrSignature: 'getProviderOracles(address)'): TypedContractMethod<\n [provider: AddressLike, ],\n [string[]],\n 'view'\n >;\ngetFunction(nameOrSignature: 'oracleList'): TypedContractMethod<\n [arg0: BigNumberish, ],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'oracles'): TypedContractMethod<\n [arg0: AddressLike, ],\n [[string, bigint, boolean] & {provider: string, createdAt: bigint, isActive: boolean }],\n 'view'\n >;\ngetFunction(nameOrSignature: 'owner'): TypedContractMethod<\n [],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'providerOracles'): TypedContractMethod<\n [arg0: AddressLike, arg1: BigNumberish, ],\n [string],\n 'view'\n >;\ngetFunction(nameOrSignature: 'renounceOwnership'): TypedContractMethod<\n [],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'setOracleDataUpdatePrice'): TypedContractMethod<\n [oracleAddress: AddressLike, _dataUpdatePrice: BigNumberish, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'setOracleStatus'): TypedContractMethod<\n [oracleAddress: AddressLike, _isActive: boolean, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'transferOwnership'): TypedContractMethod<\n [newOwner: AddressLike, ],\n [void],\n 'nonpayable'\n >;\ngetFunction(nameOrSignature: 'updateConfig'): TypedContractMethod<\n [_oracleDeployPrice: BigNumberish, _oracleFactoryShare: BigNumberish, ],\n [void],\n 'nonpayable'\n >;\n\n getEvent(key: 'OracleDeployed'): TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;\ngetEvent(key: 'OracleStatusChanged'): TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;\ngetEvent(key: 'OwnershipTransferred'): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;\n\n filters: {\n \n 'OracleDeployed(address,address,uint256)': TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;\n OracleDeployed: TypedContractEvent<OracleDeployedEvent.InputTuple, OracleDeployedEvent.OutputTuple, OracleDeployedEvent.OutputObject>;\n \n\n 'OracleStatusChanged(address,address,bool,uint256)': TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;\n OracleStatusChanged: TypedContractEvent<OracleStatusChangedEvent.InputTuple, OracleStatusChangedEvent.OutputTuple, OracleStatusChangedEvent.OutputObject>;\n \n\n 'OwnershipTransferred(address,address)': TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;\n OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;\n \n };\n }"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,yBAAAE,EAAA,6BAAAC,EAAA,8BAAAC,IAAA,eAAAC,EAAAL,GAkDW,IAAUE,MAAV,IAAUA,IAAA,IAYV,IAAUC,MAAV,IAAUA,IAAA,IAYV,IAAUC,MAAV,IAAUA,IAAA",
|
|
6
|
+
"names": ["OracleFactory_exports", "__export", "OracleDeployedEvent", "OracleStatusChangedEvent", "OwnershipTransferredEvent", "__toCommonJS"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var c=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of T(e))!d.call(t,n)&&n!==o&&i(t,n,{get:()=>e[n],enumerable:!(r=s(e,n))||r.enumerable});return t};var v=t=>c(i({},"__esModule",{value:!0}),t);var a={};module.exports=v(a);
|
|
2
|
+
//# sourceMappingURL=OracleUtils.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../types/ethers-contracts/OracleUtils.ts"],
|
|
4
|
+
"sourcesContent": ["/* Autogenerated file. Do not edit manually. */\n/* tslint:disable */\n/* eslint-disable */\nimport type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from \"ethers\"\nimport type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from \"./common.js\"\n \n\n export interface OracleUtilsInterface extends Interface {\n \n\n \n\n \n\n \n }\n\n \n\n export interface OracleUtils extends BaseContract {\n \n connect(runner?: ContractRunner | null): OracleUtils;\n waitForDeployment(): Promise<this>;\n\n interface: OracleUtilsInterface;\n\n \n queryFilter<TCEvent extends TypedContractEvent>(\n event: TCEvent,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined,\n ): Promise<Array<TypedEventLog<TCEvent>>>\n queryFilter<TCEvent extends TypedContractEvent>(\n filter: TypedDeferredTopicFilter<TCEvent>,\n fromBlockOrBlockhash?: string | number | undefined,\n toBlock?: string | number | undefined\n ): Promise<Array<TypedEventLog<TCEvent>>>;\n\n on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n \n once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>\n once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>\n\n listeners<TCEvent extends TypedContractEvent>(\n event: TCEvent\n ): Promise<Array<TypedListener<TCEvent>>>;\n listeners(eventName?: string): Promise<Array<Listener>>\n removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>\n\n\n \n\n\n getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;\n\n \n\n \n\n filters: {\n \n };\n }"],
|
|
5
|
+
"mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
|
|
6
|
+
"names": ["OracleUtils_exports", "__toCommonJS"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var a=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var y=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of i(e))!s.call(t,r)&&r!==o&&a(t,r,{get:()=>e[r],enumerable:!(n=p(e,r))||n.enumerable});return t};var d=t=>y(a({},"__esModule",{value:!0}),t);var c={};module.exports=d(c);
|
|
2
|
+
//# sourceMappingURL=common.js.map
|