@cryptonergy/smart-contracts-sdk 1.0.0-dev.8 → 1.0.0-dev.9

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.
Files changed (90) hide show
  1. package/dist/types/typechain-types/@chainlink/contracts/index.d.ts +2 -0
  2. package/dist/types/typechain-types/@chainlink/contracts/index.js +1 -0
  3. package/dist/types/typechain-types/@chainlink/contracts/src/index.d.ts +2 -0
  4. package/dist/types/typechain-types/@chainlink/contracts/src/index.js +1 -0
  5. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
  6. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.js +1 -0
  7. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.d.ts +2 -0
  8. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.js +1 -0
  9. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.d.ts +103 -0
  10. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.js +1 -0
  11. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
  12. package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.js +1 -0
  13. package/dist/types/typechain-types/@chainlink/index.d.ts +2 -0
  14. package/dist/types/typechain-types/@chainlink/index.js +1 -0
  15. package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.d.ts +54 -0
  16. package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.js +1 -0
  17. package/dist/types/typechain-types/@openzeppelin/contracts/access/index.d.ts +1 -0
  18. package/dist/types/typechain-types/@openzeppelin/contracts/access/index.js +1 -0
  19. package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +2 -0
  20. package/dist/types/typechain-types/contracts/index.d.ts +2 -0
  21. package/dist/types/typechain-types/contracts/mocks/MockPriceProvider.d.ts +113 -0
  22. package/dist/types/typechain-types/contracts/mocks/MockPriceProvider.js +1 -0
  23. package/dist/types/typechain-types/contracts/mocks/MockV3Aggregator.d.ts +75 -0
  24. package/dist/types/typechain-types/contracts/mocks/MockV3Aggregator.js +1 -0
  25. package/dist/types/typechain-types/contracts/mocks/index.d.ts +2 -0
  26. package/dist/types/typechain-types/contracts/oracle/IPriceProvider.d.ts +65 -0
  27. package/dist/types/typechain-types/contracts/oracle/IPriceProvider.js +1 -0
  28. package/dist/types/typechain-types/contracts/oracle/OracleProviderRegistry.d.ts +246 -0
  29. package/dist/types/typechain-types/contracts/oracle/OracleProviderRegistry.js +1 -0
  30. package/dist/types/typechain-types/contracts/oracle/OracleRouter.d.ts +395 -0
  31. package/dist/types/typechain-types/contracts/oracle/OracleRouter.js +1 -0
  32. package/dist/types/typechain-types/contracts/oracle/index.d.ts +5 -0
  33. package/dist/types/typechain-types/contracts/oracle/index.js +1 -0
  34. package/dist/types/typechain-types/contracts/oracle/providers/ChainlinkProvider.d.ts +116 -0
  35. package/dist/types/typechain-types/contracts/oracle/providers/ChainlinkProvider.js +1 -0
  36. package/dist/types/typechain-types/contracts/oracle/providers/index.d.ts +1 -0
  37. package/dist/types/typechain-types/contracts/oracle/providers/index.js +1 -0
  38. package/dist/types/typechain-types/factories/@chainlink/contracts/index.d.ts +1 -0
  39. package/dist/types/typechain-types/factories/@chainlink/contracts/index.js +4 -0
  40. package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.d.ts +1 -0
  41. package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.js +4 -0
  42. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
  43. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.js +4 -0
  44. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.d.ts +1 -0
  45. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.js +4 -0
  46. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface__factory.d.ts +93 -0
  47. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface__factory.js +126 -0
  48. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
  49. package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.js +4 -0
  50. package/dist/types/typechain-types/factories/@chainlink/index.d.ts +1 -0
  51. package/dist/types/typechain-types/factories/@chainlink/index.js +4 -0
  52. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +64 -0
  53. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.js +89 -0
  54. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.d.ts +1 -0
  55. package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.js +4 -0
  56. package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.d.ts +1 -0
  57. package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.js +1 -0
  58. package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.d.ts +1 -1
  59. package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.js +1 -1
  60. package/dist/types/typechain-types/factories/contracts/VaultV1__factory.d.ts +1 -1
  61. package/dist/types/typechain-types/factories/contracts/VaultV1__factory.js +1 -1
  62. package/dist/types/typechain-types/factories/contracts/index.d.ts +1 -0
  63. package/dist/types/typechain-types/factories/contracts/index.js +1 -0
  64. package/dist/types/typechain-types/factories/contracts/mocks/MockPriceProvider__factory.d.ts +218 -0
  65. package/dist/types/typechain-types/factories/contracts/mocks/MockPriceProvider__factory.js +291 -0
  66. package/dist/types/typechain-types/factories/contracts/mocks/MockV3Aggregator__factory.d.ts +110 -0
  67. package/dist/types/typechain-types/factories/contracts/mocks/MockV3Aggregator__factory.js +149 -0
  68. package/dist/types/typechain-types/factories/contracts/mocks/index.d.ts +2 -0
  69. package/dist/types/typechain-types/factories/contracts/mocks/index.js +2 -0
  70. package/dist/types/typechain-types/factories/contracts/oracle/IPriceProvider__factory.d.ts +67 -0
  71. package/dist/types/typechain-types/factories/contracts/oracle/IPriceProvider__factory.js +94 -0
  72. package/dist/types/typechain-types/factories/contracts/oracle/OracleProviderRegistry__factory.d.ts +377 -0
  73. package/dist/types/typechain-types/factories/contracts/oracle/OracleProviderRegistry__factory.js +498 -0
  74. package/dist/types/typechain-types/factories/contracts/oracle/OracleRouter__factory.d.ts +623 -0
  75. package/dist/types/typechain-types/factories/contracts/oracle/OracleRouter__factory.js +822 -0
  76. package/dist/types/typechain-types/factories/contracts/oracle/index.d.ts +4 -0
  77. package/dist/types/typechain-types/factories/contracts/oracle/index.js +7 -0
  78. package/dist/types/typechain-types/factories/contracts/oracle/providers/ChainlinkProvider__factory.d.ts +179 -0
  79. package/dist/types/typechain-types/factories/contracts/oracle/providers/ChainlinkProvider__factory.js +241 -0
  80. package/dist/types/typechain-types/factories/contracts/oracle/providers/index.d.ts +1 -0
  81. package/dist/types/typechain-types/factories/contracts/oracle/providers/index.js +4 -0
  82. package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.d.ts +1 -1
  83. package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.js +1 -1
  84. package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.d.ts +1 -1
  85. package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.js +1 -1
  86. package/dist/types/typechain-types/factories/index.d.ts +1 -0
  87. package/dist/types/typechain-types/factories/index.js +1 -0
  88. package/dist/types/typechain-types/index.d.ts +18 -0
  89. package/dist/types/typechain-types/index.js +8 -0
  90. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import type * as src from "./src";
2
+ export type { src };
@@ -0,0 +1,2 @@
1
+ import type * as v08 from "./v0.8";
2
+ export type { v08 };
@@ -0,0 +1,2 @@
1
+ import type * as shared from "./shared";
2
+ export type { shared };
@@ -0,0 +1,2 @@
1
+ import type * as interfaces from "./interfaces";
2
+ export type { interfaces };
@@ -0,0 +1,103 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../../../../common";
3
+ export interface AggregatorV3InterfaceInterface extends Interface {
4
+ getFunction(nameOrSignature: "decimals" | "description" | "getRoundData" | "latestRoundData" | "version"): FunctionFragment;
5
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
6
+ encodeFunctionData(functionFragment: "description", values?: undefined): string;
7
+ encodeFunctionData(functionFragment: "getRoundData", values: [BigNumberish]): string;
8
+ encodeFunctionData(functionFragment: "latestRoundData", values?: undefined): string;
9
+ encodeFunctionData(functionFragment: "version", values?: undefined): string;
10
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
11
+ decodeFunctionResult(functionFragment: "description", data: BytesLike): Result;
12
+ decodeFunctionResult(functionFragment: "getRoundData", data: BytesLike): Result;
13
+ decodeFunctionResult(functionFragment: "latestRoundData", data: BytesLike): Result;
14
+ decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
15
+ }
16
+ export interface AggregatorV3Interface extends BaseContract {
17
+ connect(runner?: ContractRunner | null): AggregatorV3Interface;
18
+ waitForDeployment(): Promise<this>;
19
+ interface: AggregatorV3InterfaceInterface;
20
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
21
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
22
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
23
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
24
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
25
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
26
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
27
+ listeners(eventName?: string): Promise<Array<Listener>>;
28
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
29
+ decimals: TypedContractMethod<[], [bigint], "view">;
30
+ description: TypedContractMethod<[], [string], "view">;
31
+ getRoundData: TypedContractMethod<[
32
+ _roundId: BigNumberish
33
+ ], [
34
+ [
35
+ bigint,
36
+ bigint,
37
+ bigint,
38
+ bigint,
39
+ bigint
40
+ ] & {
41
+ roundId: bigint;
42
+ answer: bigint;
43
+ startedAt: bigint;
44
+ updatedAt: bigint;
45
+ answeredInRound: bigint;
46
+ }
47
+ ], "view">;
48
+ latestRoundData: TypedContractMethod<[
49
+ ], [
50
+ [
51
+ bigint,
52
+ bigint,
53
+ bigint,
54
+ bigint,
55
+ bigint
56
+ ] & {
57
+ roundId: bigint;
58
+ answer: bigint;
59
+ startedAt: bigint;
60
+ updatedAt: bigint;
61
+ answeredInRound: bigint;
62
+ }
63
+ ], "view">;
64
+ version: TypedContractMethod<[], [bigint], "view">;
65
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
66
+ getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
67
+ getFunction(nameOrSignature: "description"): TypedContractMethod<[], [string], "view">;
68
+ getFunction(nameOrSignature: "getRoundData"): TypedContractMethod<[
69
+ _roundId: BigNumberish
70
+ ], [
71
+ [
72
+ bigint,
73
+ bigint,
74
+ bigint,
75
+ bigint,
76
+ bigint
77
+ ] & {
78
+ roundId: bigint;
79
+ answer: bigint;
80
+ startedAt: bigint;
81
+ updatedAt: bigint;
82
+ answeredInRound: bigint;
83
+ }
84
+ ], "view">;
85
+ getFunction(nameOrSignature: "latestRoundData"): TypedContractMethod<[
86
+ ], [
87
+ [
88
+ bigint,
89
+ bigint,
90
+ bigint,
91
+ bigint,
92
+ bigint
93
+ ] & {
94
+ roundId: bigint;
95
+ answer: bigint;
96
+ startedAt: bigint;
97
+ updatedAt: bigint;
98
+ answeredInRound: bigint;
99
+ }
100
+ ], "view">;
101
+ getFunction(nameOrSignature: "version"): TypedContractMethod<[], [bigint], "view">;
102
+ filters: {};
103
+ }
@@ -0,0 +1 @@
1
+ export type { AggregatorV3Interface } from "./AggregatorV3Interface";
@@ -0,0 +1,2 @@
1
+ import type * as contracts from "./contracts";
2
+ export type { contracts };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,54 @@
1
+ import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../common";
3
+ export interface OwnableInterface extends Interface {
4
+ getFunction(nameOrSignature: "owner" | "renounceOwnership" | "transferOwnership"): FunctionFragment;
5
+ getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
6
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
7
+ encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
8
+ encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
9
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
10
+ decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
11
+ decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
12
+ }
13
+ export declare namespace OwnershipTransferredEvent {
14
+ type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
15
+ type OutputTuple = [previousOwner: string, newOwner: string];
16
+ interface OutputObject {
17
+ previousOwner: string;
18
+ newOwner: string;
19
+ }
20
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
21
+ type Filter = TypedDeferredTopicFilter<Event>;
22
+ type Log = TypedEventLog<Event>;
23
+ type LogDescription = TypedLogDescription<Event>;
24
+ }
25
+ export interface Ownable extends BaseContract {
26
+ connect(runner?: ContractRunner | null): Ownable;
27
+ waitForDeployment(): Promise<this>;
28
+ interface: OwnableInterface;
29
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
30
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
31
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
32
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
33
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
34
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
35
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
36
+ listeners(eventName?: string): Promise<Array<Listener>>;
37
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
38
+ owner: TypedContractMethod<[], [string], "view">;
39
+ renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
40
+ transferOwnership: TypedContractMethod<[
41
+ newOwner: AddressLike
42
+ ], [
43
+ void
44
+ ], "nonpayable">;
45
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
46
+ getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
47
+ getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
48
+ getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
49
+ getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
50
+ filters: {
51
+ "OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
52
+ OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
53
+ };
54
+ }
@@ -0,0 +1 @@
1
+ export type { Ownable } from "./Ownable";
@@ -1,3 +1,5 @@
1
+ import type * as access from "./access";
2
+ export type { access };
1
3
  import type * as interfaces from "./interfaces";
2
4
  export type { interfaces };
3
5
  import type * as proxy from "./proxy";
@@ -1,5 +1,7 @@
1
1
  import type * as mocks from "./mocks";
2
2
  export type { mocks };
3
+ import type * as oracle from "./oracle";
4
+ export type { oracle };
3
5
  import type * as providers from "./providers";
4
6
  export type { providers };
5
7
  import type * as registers from "./registers";
@@ -0,0 +1,113 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
3
+ export interface MockPriceProviderInterface extends Interface {
4
+ getFunction(nameOrSignature: "decimals" | "getPrice" | "isSupported" | "ok" | "price" | "providerId" | "setDecimals" | "setOk" | "setPrice" | "setRevert" | "setSupported" | "setTimestamp" | "shouldRevert" | "supported" | "timestamp" | "version"): FunctionFragment;
5
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
6
+ encodeFunctionData(functionFragment: "getPrice", values: [AddressLike]): string;
7
+ encodeFunctionData(functionFragment: "isSupported", values: [AddressLike]): string;
8
+ encodeFunctionData(functionFragment: "ok", values?: undefined): string;
9
+ encodeFunctionData(functionFragment: "price", values?: undefined): string;
10
+ encodeFunctionData(functionFragment: "providerId", values?: undefined): string;
11
+ encodeFunctionData(functionFragment: "setDecimals", values: [BigNumberish]): string;
12
+ encodeFunctionData(functionFragment: "setOk", values: [boolean]): string;
13
+ encodeFunctionData(functionFragment: "setPrice", values: [BigNumberish]): string;
14
+ encodeFunctionData(functionFragment: "setRevert", values: [boolean]): string;
15
+ encodeFunctionData(functionFragment: "setSupported", values: [boolean]): string;
16
+ encodeFunctionData(functionFragment: "setTimestamp", values: [BigNumberish]): string;
17
+ encodeFunctionData(functionFragment: "shouldRevert", values?: undefined): string;
18
+ encodeFunctionData(functionFragment: "supported", values?: undefined): string;
19
+ encodeFunctionData(functionFragment: "timestamp", values?: undefined): string;
20
+ encodeFunctionData(functionFragment: "version", values?: undefined): string;
21
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
22
+ decodeFunctionResult(functionFragment: "getPrice", data: BytesLike): Result;
23
+ decodeFunctionResult(functionFragment: "isSupported", data: BytesLike): Result;
24
+ decodeFunctionResult(functionFragment: "ok", data: BytesLike): Result;
25
+ decodeFunctionResult(functionFragment: "price", data: BytesLike): Result;
26
+ decodeFunctionResult(functionFragment: "providerId", data: BytesLike): Result;
27
+ decodeFunctionResult(functionFragment: "setDecimals", data: BytesLike): Result;
28
+ decodeFunctionResult(functionFragment: "setOk", data: BytesLike): Result;
29
+ decodeFunctionResult(functionFragment: "setPrice", data: BytesLike): Result;
30
+ decodeFunctionResult(functionFragment: "setRevert", data: BytesLike): Result;
31
+ decodeFunctionResult(functionFragment: "setSupported", data: BytesLike): Result;
32
+ decodeFunctionResult(functionFragment: "setTimestamp", data: BytesLike): Result;
33
+ decodeFunctionResult(functionFragment: "shouldRevert", data: BytesLike): Result;
34
+ decodeFunctionResult(functionFragment: "supported", data: BytesLike): Result;
35
+ decodeFunctionResult(functionFragment: "timestamp", data: BytesLike): Result;
36
+ decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
37
+ }
38
+ export interface MockPriceProvider extends BaseContract {
39
+ connect(runner?: ContractRunner | null): MockPriceProvider;
40
+ waitForDeployment(): Promise<this>;
41
+ interface: MockPriceProviderInterface;
42
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
43
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
44
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
45
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
46
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
47
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
48
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
49
+ listeners(eventName?: string): Promise<Array<Listener>>;
50
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
51
+ decimals: TypedContractMethod<[], [bigint], "view">;
52
+ getPrice: TypedContractMethod<[
53
+ asset: AddressLike
54
+ ], [
55
+ [
56
+ bigint,
57
+ bigint,
58
+ bigint,
59
+ boolean
60
+ ] & {
61
+ p: bigint;
62
+ ts: bigint;
63
+ dec: bigint;
64
+ isOk: boolean;
65
+ }
66
+ ], "view">;
67
+ isSupported: TypedContractMethod<[asset: AddressLike], [boolean], "view">;
68
+ ok: TypedContractMethod<[], [boolean], "view">;
69
+ price: TypedContractMethod<[], [bigint], "view">;
70
+ providerId: TypedContractMethod<[], [string], "view">;
71
+ setDecimals: TypedContractMethod<[d: BigNumberish], [void], "nonpayable">;
72
+ setOk: TypedContractMethod<[v: boolean], [void], "nonpayable">;
73
+ setPrice: TypedContractMethod<[p: BigNumberish], [void], "nonpayable">;
74
+ setRevert: TypedContractMethod<[v: boolean], [void], "nonpayable">;
75
+ setSupported: TypedContractMethod<[v: boolean], [void], "nonpayable">;
76
+ setTimestamp: TypedContractMethod<[ts: BigNumberish], [void], "nonpayable">;
77
+ shouldRevert: TypedContractMethod<[], [boolean], "view">;
78
+ supported: TypedContractMethod<[], [boolean], "view">;
79
+ timestamp: TypedContractMethod<[], [bigint], "view">;
80
+ version: TypedContractMethod<[], [bigint], "view">;
81
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
82
+ getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
83
+ getFunction(nameOrSignature: "getPrice"): TypedContractMethod<[
84
+ asset: AddressLike
85
+ ], [
86
+ [
87
+ bigint,
88
+ bigint,
89
+ bigint,
90
+ boolean
91
+ ] & {
92
+ p: bigint;
93
+ ts: bigint;
94
+ dec: bigint;
95
+ isOk: boolean;
96
+ }
97
+ ], "view">;
98
+ getFunction(nameOrSignature: "isSupported"): TypedContractMethod<[asset: AddressLike], [boolean], "view">;
99
+ getFunction(nameOrSignature: "ok"): TypedContractMethod<[], [boolean], "view">;
100
+ getFunction(nameOrSignature: "price"): TypedContractMethod<[], [bigint], "view">;
101
+ getFunction(nameOrSignature: "providerId"): TypedContractMethod<[], [string], "view">;
102
+ getFunction(nameOrSignature: "setDecimals"): TypedContractMethod<[d: BigNumberish], [void], "nonpayable">;
103
+ getFunction(nameOrSignature: "setOk"): TypedContractMethod<[v: boolean], [void], "nonpayable">;
104
+ getFunction(nameOrSignature: "setPrice"): TypedContractMethod<[p: BigNumberish], [void], "nonpayable">;
105
+ getFunction(nameOrSignature: "setRevert"): TypedContractMethod<[v: boolean], [void], "nonpayable">;
106
+ getFunction(nameOrSignature: "setSupported"): TypedContractMethod<[v: boolean], [void], "nonpayable">;
107
+ getFunction(nameOrSignature: "setTimestamp"): TypedContractMethod<[ts: BigNumberish], [void], "nonpayable">;
108
+ getFunction(nameOrSignature: "shouldRevert"): TypedContractMethod<[], [boolean], "view">;
109
+ getFunction(nameOrSignature: "supported"): TypedContractMethod<[], [boolean], "view">;
110
+ getFunction(nameOrSignature: "timestamp"): TypedContractMethod<[], [bigint], "view">;
111
+ getFunction(nameOrSignature: "version"): TypedContractMethod<[], [bigint], "view">;
112
+ filters: {};
113
+ }
@@ -0,0 +1,75 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
3
+ export interface MockV3AggregatorInterface extends Interface {
4
+ getFunction(nameOrSignature: "answer" | "decimals" | "latestRoundData" | "setAnswer" | "setUpdatedAt" | "updatedAt"): FunctionFragment;
5
+ encodeFunctionData(functionFragment: "answer", values?: undefined): string;
6
+ encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
7
+ encodeFunctionData(functionFragment: "latestRoundData", values?: undefined): string;
8
+ encodeFunctionData(functionFragment: "setAnswer", values: [BigNumberish]): string;
9
+ encodeFunctionData(functionFragment: "setUpdatedAt", values: [BigNumberish]): string;
10
+ encodeFunctionData(functionFragment: "updatedAt", values?: undefined): string;
11
+ decodeFunctionResult(functionFragment: "answer", data: BytesLike): Result;
12
+ decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
13
+ decodeFunctionResult(functionFragment: "latestRoundData", data: BytesLike): Result;
14
+ decodeFunctionResult(functionFragment: "setAnswer", data: BytesLike): Result;
15
+ decodeFunctionResult(functionFragment: "setUpdatedAt", data: BytesLike): Result;
16
+ decodeFunctionResult(functionFragment: "updatedAt", data: BytesLike): Result;
17
+ }
18
+ export interface MockV3Aggregator extends BaseContract {
19
+ connect(runner?: ContractRunner | null): MockV3Aggregator;
20
+ waitForDeployment(): Promise<this>;
21
+ interface: MockV3AggregatorInterface;
22
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
23
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
24
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
25
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
26
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
27
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
28
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
29
+ listeners(eventName?: string): Promise<Array<Listener>>;
30
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
31
+ answer: TypedContractMethod<[], [bigint], "view">;
32
+ decimals: TypedContractMethod<[], [bigint], "view">;
33
+ latestRoundData: TypedContractMethod<[
34
+ ], [
35
+ [
36
+ bigint,
37
+ bigint,
38
+ bigint,
39
+ bigint,
40
+ bigint
41
+ ] & {
42
+ roundId: bigint;
43
+ ans: bigint;
44
+ startedAt: bigint;
45
+ updatedAt_: bigint;
46
+ answeredInRound: bigint;
47
+ }
48
+ ], "view">;
49
+ setAnswer: TypedContractMethod<[a: BigNumberish], [void], "nonpayable">;
50
+ setUpdatedAt: TypedContractMethod<[ts: BigNumberish], [void], "nonpayable">;
51
+ updatedAt: TypedContractMethod<[], [bigint], "view">;
52
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
53
+ getFunction(nameOrSignature: "answer"): TypedContractMethod<[], [bigint], "view">;
54
+ getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
55
+ getFunction(nameOrSignature: "latestRoundData"): TypedContractMethod<[
56
+ ], [
57
+ [
58
+ bigint,
59
+ bigint,
60
+ bigint,
61
+ bigint,
62
+ bigint
63
+ ] & {
64
+ roundId: bigint;
65
+ ans: bigint;
66
+ startedAt: bigint;
67
+ updatedAt_: bigint;
68
+ answeredInRound: bigint;
69
+ }
70
+ ], "view">;
71
+ getFunction(nameOrSignature: "setAnswer"): TypedContractMethod<[a: BigNumberish], [void], "nonpayable">;
72
+ getFunction(nameOrSignature: "setUpdatedAt"): TypedContractMethod<[ts: BigNumberish], [void], "nonpayable">;
73
+ getFunction(nameOrSignature: "updatedAt"): TypedContractMethod<[], [bigint], "view">;
74
+ filters: {};
75
+ }
@@ -1 +1,3 @@
1
1
  export type { MockERC20 } from "./MockERC20";
2
+ export type { MockPriceProvider } from "./MockPriceProvider";
3
+ export type { MockV3Aggregator } from "./MockV3Aggregator";
@@ -0,0 +1,65 @@
1
+ import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
3
+ export interface IPriceProviderInterface extends Interface {
4
+ getFunction(nameOrSignature: "getPrice" | "isSupported" | "providerId" | "version"): FunctionFragment;
5
+ encodeFunctionData(functionFragment: "getPrice", values: [AddressLike]): string;
6
+ encodeFunctionData(functionFragment: "isSupported", values: [AddressLike]): string;
7
+ encodeFunctionData(functionFragment: "providerId", values?: undefined): string;
8
+ encodeFunctionData(functionFragment: "version", values?: undefined): string;
9
+ decodeFunctionResult(functionFragment: "getPrice", data: BytesLike): Result;
10
+ decodeFunctionResult(functionFragment: "isSupported", data: BytesLike): Result;
11
+ decodeFunctionResult(functionFragment: "providerId", data: BytesLike): Result;
12
+ decodeFunctionResult(functionFragment: "version", data: BytesLike): Result;
13
+ }
14
+ export interface IPriceProvider extends BaseContract {
15
+ connect(runner?: ContractRunner | null): IPriceProvider;
16
+ waitForDeployment(): Promise<this>;
17
+ interface: IPriceProviderInterface;
18
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
19
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
20
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
21
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
22
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
23
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
24
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
25
+ listeners(eventName?: string): Promise<Array<Listener>>;
26
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
27
+ getPrice: TypedContractMethod<[
28
+ asset: AddressLike
29
+ ], [
30
+ [
31
+ bigint,
32
+ bigint,
33
+ bigint,
34
+ boolean
35
+ ] & {
36
+ price: bigint;
37
+ timestamp: bigint;
38
+ decimals: bigint;
39
+ ok: boolean;
40
+ }
41
+ ], "view">;
42
+ isSupported: TypedContractMethod<[asset: AddressLike], [boolean], "view">;
43
+ providerId: TypedContractMethod<[], [string], "view">;
44
+ version: TypedContractMethod<[], [bigint], "view">;
45
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
46
+ getFunction(nameOrSignature: "getPrice"): TypedContractMethod<[
47
+ asset: AddressLike
48
+ ], [
49
+ [
50
+ bigint,
51
+ bigint,
52
+ bigint,
53
+ boolean
54
+ ] & {
55
+ price: bigint;
56
+ timestamp: bigint;
57
+ decimals: bigint;
58
+ ok: boolean;
59
+ }
60
+ ], "view">;
61
+ getFunction(nameOrSignature: "isSupported"): TypedContractMethod<[asset: AddressLike], [boolean], "view">;
62
+ getFunction(nameOrSignature: "providerId"): TypedContractMethod<[], [string], "view">;
63
+ getFunction(nameOrSignature: "version"): TypedContractMethod<[], [bigint], "view">;
64
+ filters: {};
65
+ }