@gearbox-protocol/sdk 1.16.15 → 1.17.0
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/lib/core/eventOrTx.d.ts +1 -1
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.d.ts +106 -0
- package/lib/types/{contracts/MultiCall.sol/Multicall2.js → @chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.js} +0 -0
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.d.ts +218 -0
- package/lib/types/{contracts/MultiCall.sol/index.js → @chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.js} +0 -0
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/index.js +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite.d.ts +148 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite.js +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/interfaces/index.d.ts +1 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/test/interfaces/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts.d.ts +66 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/index.d.ts +1 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/config/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/index.d.ts +4 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents.d.ts +45 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/index.d.ts +1 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/index.js +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/index.d.ts +2 -0
- package/lib/types/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/index.js +2 -0
- package/lib/types/contracts/index.d.ts +2 -2
- package/lib/types/contracts/support/IOffchainOracle.d.ts +54 -0
- package/lib/types/contracts/support/IOffchainOracle.js +2 -0
- package/lib/types/contracts/{MultiCall.sol → support/MultiCall.sol}/Multicall2.d.ts +1 -1
- package/lib/types/contracts/support/MultiCall.sol/Multicall2.js +2 -0
- package/lib/types/contracts/{MultiCall.sol → support/MultiCall.sol}/index.d.ts +0 -0
- package/lib/types/contracts/support/MultiCall.sol/index.js +2 -0
- package/lib/types/contracts/support/index.d.ts +3 -0
- package/lib/types/contracts/support/index.js +2 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.d.ts +35 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js +149 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.d.ts +35 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.js +260 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +2 -0
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.js +5 -1
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/index.js +2 -1
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/index.js +30 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite__factory.d.ts +22 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/ITokenTestSuite__factory.js +181 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/test/interfaces/index.js +8 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/index.js +2 -1
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts__factory.d.ts +22 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/ISupportedContracts__factory.js +92 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/SupportedContracts.sol/index.js +8 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/config/index.js +30 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/index.d.ts +2 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/index.js +31 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/index.js +30 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory.d.ts +18 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/ILidoMockEvents__factory.js +47 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/LidoMock.sol/index.js +8 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/integrations-v2/contracts/test/mocks/integrations/index.js +30 -0
- package/lib/types/factories/contracts/index.d.ts +1 -1
- package/lib/types/factories/contracts/index.js +2 -2
- package/lib/types/factories/contracts/support/IOffchainOracle__factory.d.ts +22 -0
- package/lib/types/factories/contracts/support/IOffchainOracle__factory.js +75 -0
- package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/Multicall2__factory.d.ts +2 -2
- package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/Multicall2__factory.js +1 -1
- package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/index.d.ts +0 -0
- package/lib/types/factories/contracts/{MultiCall.sol → support/MultiCall.sol}/index.js +0 -0
- package/lib/types/factories/contracts/support/index.d.ts +2 -0
- package/lib/types/factories/contracts/support/index.js +32 -0
- package/lib/types/index.d.ts +14 -2
- package/lib/types/index.js +15 -3
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, Signer, utils } from "ethers";
|
|
2
|
+
import type { EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../../../../../common";
|
|
5
|
+
export interface ILidoMockEventsInterface extends utils.Interface {
|
|
6
|
+
functions: {};
|
|
7
|
+
events: {
|
|
8
|
+
"Mock_Submitted(address,uint256,address)": EventFragment;
|
|
9
|
+
};
|
|
10
|
+
getEvent(nameOrSignatureOrTopic: "Mock_Submitted"): EventFragment;
|
|
11
|
+
}
|
|
12
|
+
export interface Mock_SubmittedEventObject {
|
|
13
|
+
sender: string;
|
|
14
|
+
amount: BigNumber;
|
|
15
|
+
referral: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type Mock_SubmittedEvent = TypedEvent<[
|
|
18
|
+
string,
|
|
19
|
+
BigNumber,
|
|
20
|
+
string
|
|
21
|
+
], Mock_SubmittedEventObject>;
|
|
22
|
+
export declare type Mock_SubmittedEventFilter = TypedEventFilter<Mock_SubmittedEvent>;
|
|
23
|
+
export interface ILidoMockEvents extends BaseContract {
|
|
24
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
25
|
+
attach(addressOrName: string): this;
|
|
26
|
+
deployed(): Promise<this>;
|
|
27
|
+
interface: ILidoMockEventsInterface;
|
|
28
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
29
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
30
|
+
listeners(eventName?: string): Array<Listener>;
|
|
31
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
32
|
+
removeAllListeners(eventName?: string): this;
|
|
33
|
+
off: OnEvent<this>;
|
|
34
|
+
on: OnEvent<this>;
|
|
35
|
+
once: OnEvent<this>;
|
|
36
|
+
removeListener: OnEvent<this>;
|
|
37
|
+
functions: {};
|
|
38
|
+
callStatic: {};
|
|
39
|
+
filters: {
|
|
40
|
+
"Mock_Submitted(address,uint256,address)"(sender?: string | null, amount?: null, referral?: null): Mock_SubmittedEventFilter;
|
|
41
|
+
Mock_Submitted(sender?: string | null, amount?: null, referral?: null): Mock_SubmittedEventFilter;
|
|
42
|
+
};
|
|
43
|
+
estimateGas: {};
|
|
44
|
+
populateTransaction: {};
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ILidoMockEvents } from "./ILidoMockEvents";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
export type {
|
|
1
|
+
import type * as support from "./support";
|
|
2
|
+
export type { support };
|
|
3
3
|
export type { IGas } from "./IGas";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../common";
|
|
5
|
+
export interface IOffchainOracleInterface extends utils.Interface {
|
|
6
|
+
functions: {
|
|
7
|
+
"getRate(address,address,bool)": FunctionFragment;
|
|
8
|
+
"getRateToEth(address,bool)": FunctionFragment;
|
|
9
|
+
};
|
|
10
|
+
getFunction(nameOrSignatureOrTopic: "getRate" | "getRateToEth"): FunctionFragment;
|
|
11
|
+
encodeFunctionData(functionFragment: "getRate", values: [string, string, boolean]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "getRateToEth", values: [string, boolean]): string;
|
|
13
|
+
decodeFunctionResult(functionFragment: "getRate", data: BytesLike): Result;
|
|
14
|
+
decodeFunctionResult(functionFragment: "getRateToEth", data: BytesLike): Result;
|
|
15
|
+
events: {};
|
|
16
|
+
}
|
|
17
|
+
export interface IOffchainOracle extends BaseContract {
|
|
18
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
19
|
+
attach(addressOrName: string): this;
|
|
20
|
+
deployed(): Promise<this>;
|
|
21
|
+
interface: IOffchainOracleInterface;
|
|
22
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
23
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
24
|
+
listeners(eventName?: string): Array<Listener>;
|
|
25
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
26
|
+
removeAllListeners(eventName?: string): this;
|
|
27
|
+
off: OnEvent<this>;
|
|
28
|
+
on: OnEvent<this>;
|
|
29
|
+
once: OnEvent<this>;
|
|
30
|
+
removeListener: OnEvent<this>;
|
|
31
|
+
functions: {
|
|
32
|
+
getRate(srcToken: string, dstToken: string, useWrappers: boolean, overrides?: CallOverrides): Promise<[BigNumber] & {
|
|
33
|
+
weightedRate: BigNumber;
|
|
34
|
+
}>;
|
|
35
|
+
getRateToEth(srcToken: string, useSrcWrappers: boolean, overrides?: CallOverrides): Promise<[BigNumber] & {
|
|
36
|
+
weightedRate: BigNumber;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
getRate(srcToken: string, dstToken: string, useWrappers: boolean, overrides?: CallOverrides): Promise<BigNumber>;
|
|
40
|
+
getRateToEth(srcToken: string, useSrcWrappers: boolean, overrides?: CallOverrides): Promise<BigNumber>;
|
|
41
|
+
callStatic: {
|
|
42
|
+
getRate(srcToken: string, dstToken: string, useWrappers: boolean, overrides?: CallOverrides): Promise<BigNumber>;
|
|
43
|
+
getRateToEth(srcToken: string, useSrcWrappers: boolean, overrides?: CallOverrides): Promise<BigNumber>;
|
|
44
|
+
};
|
|
45
|
+
filters: {};
|
|
46
|
+
estimateGas: {
|
|
47
|
+
getRate(srcToken: string, dstToken: string, useWrappers: boolean, overrides?: CallOverrides): Promise<BigNumber>;
|
|
48
|
+
getRateToEth(srcToken: string, useSrcWrappers: boolean, overrides?: CallOverrides): Promise<BigNumber>;
|
|
49
|
+
};
|
|
50
|
+
populateTransaction: {
|
|
51
|
+
getRate(srcToken: string, dstToken: string, useWrappers: boolean, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
52
|
+
getRateToEth(srcToken: string, useSrcWrappers: boolean, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../../common";
|
|
5
5
|
export declare namespace Multicall2 {
|
|
6
6
|
type CallStruct = {
|
|
7
7
|
target: string;
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { AggregatorInterface, AggregatorInterfaceInterface } from "../../../../../../@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface";
|
|
4
|
+
export declare class AggregatorInterface__factory {
|
|
5
|
+
static readonly abi: ({
|
|
6
|
+
anonymous: boolean;
|
|
7
|
+
inputs: {
|
|
8
|
+
indexed: boolean;
|
|
9
|
+
internalType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
outputs?: undefined;
|
|
16
|
+
stateMutability?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
inputs: {
|
|
19
|
+
internalType: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
}[];
|
|
23
|
+
name: string;
|
|
24
|
+
outputs: {
|
|
25
|
+
internalType: string;
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
stateMutability: string;
|
|
30
|
+
type: string;
|
|
31
|
+
anonymous?: undefined;
|
|
32
|
+
})[];
|
|
33
|
+
static createInterface(): AggregatorInterfaceInterface;
|
|
34
|
+
static connect(address: string, signerOrProvider: Signer | Provider): AggregatorInterface;
|
|
35
|
+
}
|
package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AggregatorInterface__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: "int256",
|
|
15
|
+
name: "current",
|
|
16
|
+
type: "int256",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: true,
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
name: "roundId",
|
|
22
|
+
type: "uint256",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
indexed: false,
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "updatedAt",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "AnswerUpdated",
|
|
32
|
+
type: "event",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "roundId",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "startedBy",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: false,
|
|
51
|
+
internalType: "uint256",
|
|
52
|
+
name: "startedAt",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
name: "NewRound",
|
|
57
|
+
type: "event",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [
|
|
61
|
+
{
|
|
62
|
+
internalType: "uint256",
|
|
63
|
+
name: "roundId",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
name: "getAnswer",
|
|
68
|
+
outputs: [
|
|
69
|
+
{
|
|
70
|
+
internalType: "int256",
|
|
71
|
+
name: "",
|
|
72
|
+
type: "int256",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
stateMutability: "view",
|
|
76
|
+
type: "function",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
inputs: [
|
|
80
|
+
{
|
|
81
|
+
internalType: "uint256",
|
|
82
|
+
name: "roundId",
|
|
83
|
+
type: "uint256",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
name: "getTimestamp",
|
|
87
|
+
outputs: [
|
|
88
|
+
{
|
|
89
|
+
internalType: "uint256",
|
|
90
|
+
name: "",
|
|
91
|
+
type: "uint256",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
stateMutability: "view",
|
|
95
|
+
type: "function",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
inputs: [],
|
|
99
|
+
name: "latestAnswer",
|
|
100
|
+
outputs: [
|
|
101
|
+
{
|
|
102
|
+
internalType: "int256",
|
|
103
|
+
name: "",
|
|
104
|
+
type: "int256",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
stateMutability: "view",
|
|
108
|
+
type: "function",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
inputs: [],
|
|
112
|
+
name: "latestRound",
|
|
113
|
+
outputs: [
|
|
114
|
+
{
|
|
115
|
+
internalType: "uint256",
|
|
116
|
+
name: "",
|
|
117
|
+
type: "uint256",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
stateMutability: "view",
|
|
121
|
+
type: "function",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
inputs: [],
|
|
125
|
+
name: "latestTimestamp",
|
|
126
|
+
outputs: [
|
|
127
|
+
{
|
|
128
|
+
internalType: "uint256",
|
|
129
|
+
name: "",
|
|
130
|
+
type: "uint256",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
stateMutability: "view",
|
|
134
|
+
type: "function",
|
|
135
|
+
},
|
|
136
|
+
];
|
|
137
|
+
var AggregatorInterface__factory = /** @class */ (function () {
|
|
138
|
+
function AggregatorInterface__factory() {
|
|
139
|
+
}
|
|
140
|
+
AggregatorInterface__factory.createInterface = function () {
|
|
141
|
+
return new ethers_1.utils.Interface(_abi);
|
|
142
|
+
};
|
|
143
|
+
AggregatorInterface__factory.connect = function (address, signerOrProvider) {
|
|
144
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
145
|
+
};
|
|
146
|
+
AggregatorInterface__factory.abi = _abi;
|
|
147
|
+
return AggregatorInterface__factory;
|
|
148
|
+
}());
|
|
149
|
+
exports.AggregatorInterface__factory = AggregatorInterface__factory;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { AggregatorV2V3Interface, AggregatorV2V3InterfaceInterface } from "../../../../../../@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface";
|
|
4
|
+
export declare class AggregatorV2V3Interface__factory {
|
|
5
|
+
static readonly abi: ({
|
|
6
|
+
anonymous: boolean;
|
|
7
|
+
inputs: {
|
|
8
|
+
indexed: boolean;
|
|
9
|
+
internalType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
outputs?: undefined;
|
|
16
|
+
stateMutability?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
inputs: {
|
|
19
|
+
internalType: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
}[];
|
|
23
|
+
name: string;
|
|
24
|
+
outputs: {
|
|
25
|
+
internalType: string;
|
|
26
|
+
name: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
stateMutability: string;
|
|
30
|
+
type: string;
|
|
31
|
+
anonymous?: undefined;
|
|
32
|
+
})[];
|
|
33
|
+
static createInterface(): AggregatorV2V3InterfaceInterface;
|
|
34
|
+
static connect(address: string, signerOrProvider: Signer | Provider): AggregatorV2V3Interface;
|
|
35
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AggregatorV2V3Interface__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: "int256",
|
|
15
|
+
name: "current",
|
|
16
|
+
type: "int256",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: true,
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
name: "roundId",
|
|
22
|
+
type: "uint256",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
indexed: false,
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "updatedAt",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "AnswerUpdated",
|
|
32
|
+
type: "event",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "roundId",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "startedBy",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: false,
|
|
51
|
+
internalType: "uint256",
|
|
52
|
+
name: "startedAt",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
name: "NewRound",
|
|
57
|
+
type: "event",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
inputs: [],
|
|
61
|
+
name: "decimals",
|
|
62
|
+
outputs: [
|
|
63
|
+
{
|
|
64
|
+
internalType: "uint8",
|
|
65
|
+
name: "",
|
|
66
|
+
type: "uint8",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
stateMutability: "view",
|
|
70
|
+
type: "function",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
inputs: [],
|
|
74
|
+
name: "description",
|
|
75
|
+
outputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: "string",
|
|
78
|
+
name: "",
|
|
79
|
+
type: "string",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
stateMutability: "view",
|
|
83
|
+
type: "function",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
inputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "uint256",
|
|
89
|
+
name: "roundId",
|
|
90
|
+
type: "uint256",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
name: "getAnswer",
|
|
94
|
+
outputs: [
|
|
95
|
+
{
|
|
96
|
+
internalType: "int256",
|
|
97
|
+
name: "",
|
|
98
|
+
type: "int256",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
stateMutability: "view",
|
|
102
|
+
type: "function",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
inputs: [
|
|
106
|
+
{
|
|
107
|
+
internalType: "uint80",
|
|
108
|
+
name: "_roundId",
|
|
109
|
+
type: "uint80",
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
name: "getRoundData",
|
|
113
|
+
outputs: [
|
|
114
|
+
{
|
|
115
|
+
internalType: "uint80",
|
|
116
|
+
name: "roundId",
|
|
117
|
+
type: "uint80",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
internalType: "int256",
|
|
121
|
+
name: "answer",
|
|
122
|
+
type: "int256",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "startedAt",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
internalType: "uint256",
|
|
131
|
+
name: "updatedAt",
|
|
132
|
+
type: "uint256",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
internalType: "uint80",
|
|
136
|
+
name: "answeredInRound",
|
|
137
|
+
type: "uint80",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
stateMutability: "view",
|
|
141
|
+
type: "function",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
inputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "uint256",
|
|
147
|
+
name: "roundId",
|
|
148
|
+
type: "uint256",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
name: "getTimestamp",
|
|
152
|
+
outputs: [
|
|
153
|
+
{
|
|
154
|
+
internalType: "uint256",
|
|
155
|
+
name: "",
|
|
156
|
+
type: "uint256",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
stateMutability: "view",
|
|
160
|
+
type: "function",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
inputs: [],
|
|
164
|
+
name: "latestAnswer",
|
|
165
|
+
outputs: [
|
|
166
|
+
{
|
|
167
|
+
internalType: "int256",
|
|
168
|
+
name: "",
|
|
169
|
+
type: "int256",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
stateMutability: "view",
|
|
173
|
+
type: "function",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
inputs: [],
|
|
177
|
+
name: "latestRound",
|
|
178
|
+
outputs: [
|
|
179
|
+
{
|
|
180
|
+
internalType: "uint256",
|
|
181
|
+
name: "",
|
|
182
|
+
type: "uint256",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
stateMutability: "view",
|
|
186
|
+
type: "function",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
inputs: [],
|
|
190
|
+
name: "latestRoundData",
|
|
191
|
+
outputs: [
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint80",
|
|
194
|
+
name: "roundId",
|
|
195
|
+
type: "uint80",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
internalType: "int256",
|
|
199
|
+
name: "answer",
|
|
200
|
+
type: "int256",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
internalType: "uint256",
|
|
204
|
+
name: "startedAt",
|
|
205
|
+
type: "uint256",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
internalType: "uint256",
|
|
209
|
+
name: "updatedAt",
|
|
210
|
+
type: "uint256",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
internalType: "uint80",
|
|
214
|
+
name: "answeredInRound",
|
|
215
|
+
type: "uint80",
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
stateMutability: "view",
|
|
219
|
+
type: "function",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
inputs: [],
|
|
223
|
+
name: "latestTimestamp",
|
|
224
|
+
outputs: [
|
|
225
|
+
{
|
|
226
|
+
internalType: "uint256",
|
|
227
|
+
name: "",
|
|
228
|
+
type: "uint256",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
stateMutability: "view",
|
|
232
|
+
type: "function",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
inputs: [],
|
|
236
|
+
name: "version",
|
|
237
|
+
outputs: [
|
|
238
|
+
{
|
|
239
|
+
internalType: "uint256",
|
|
240
|
+
name: "",
|
|
241
|
+
type: "uint256",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
stateMutability: "view",
|
|
245
|
+
type: "function",
|
|
246
|
+
},
|
|
247
|
+
];
|
|
248
|
+
var AggregatorV2V3Interface__factory = /** @class */ (function () {
|
|
249
|
+
function AggregatorV2V3Interface__factory() {
|
|
250
|
+
}
|
|
251
|
+
AggregatorV2V3Interface__factory.createInterface = function () {
|
|
252
|
+
return new ethers_1.utils.Interface(_abi);
|
|
253
|
+
};
|
|
254
|
+
AggregatorV2V3Interface__factory.connect = function (address, signerOrProvider) {
|
|
255
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
256
|
+
};
|
|
257
|
+
AggregatorV2V3Interface__factory.abi = _abi;
|
|
258
|
+
return AggregatorV2V3Interface__factory;
|
|
259
|
+
}());
|
|
260
|
+
exports.AggregatorV2V3Interface__factory = AggregatorV2V3Interface__factory;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AggregatorV3Interface__factory = void 0;
|
|
3
|
+
exports.AggregatorV3Interface__factory = exports.AggregatorV2V3Interface__factory = exports.AggregatorInterface__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
7
|
+
var AggregatorInterface__factory_1 = require("./AggregatorInterface__factory");
|
|
8
|
+
Object.defineProperty(exports, "AggregatorInterface__factory", { enumerable: true, get: function () { return AggregatorInterface__factory_1.AggregatorInterface__factory; } });
|
|
9
|
+
var AggregatorV2V3Interface__factory_1 = require("./AggregatorV2V3Interface__factory");
|
|
10
|
+
Object.defineProperty(exports, "AggregatorV2V3Interface__factory", { enumerable: true, get: function () { return AggregatorV2V3Interface__factory_1.AggregatorV2V3Interface__factory; } });
|
|
7
11
|
var AggregatorV3Interface__factory_1 = require("./AggregatorV3Interface__factory");
|
|
8
12
|
Object.defineProperty(exports, "AggregatorV3Interface__factory", { enumerable: true, get: function () { return AggregatorV3Interface__factory_1.AggregatorV3Interface__factory; } });
|
|
@@ -23,8 +23,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.interfaces = void 0;
|
|
26
|
+
exports.test = exports.interfaces = void 0;
|
|
27
27
|
/* Autogenerated file. Do not edit manually. */
|
|
28
28
|
/* tslint:disable */
|
|
29
29
|
/* eslint-disable */
|
|
30
30
|
exports.interfaces = __importStar(require("./interfaces"));
|
|
31
|
+
exports.test = __importStar(require("./test"));
|