@cryptonergy/smart-contracts-sdk 1.0.0-dev.7 → 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.
- package/dist/index.js +1 -17
- package/dist/types/typechain-types/@chainlink/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.d.ts +103 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.js +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/shared/interfaces/index.js +1 -0
- package/dist/types/typechain-types/@chainlink/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/index.js +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.d.ts +54 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/Ownable.js +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/access/index.js +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC1363.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC4626.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/Proxy.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/token/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Address.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Errors.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.js +1 -2
- package/dist/types/typechain-types/@openzeppelin/index.js +1 -2
- package/dist/types/typechain-types/common.js +1 -2
- package/dist/types/typechain-types/contracts/ManagementFeeUpgradeableV1.js +1 -2
- package/dist/types/typechain-types/contracts/PerformanceFeeUpgradeableV1.js +1 -2
- package/dist/types/typechain-types/contracts/VaultFactoryV1.js +1 -2
- package/dist/types/typechain-types/contracts/VaultV1.js +1 -2
- package/dist/types/typechain-types/contracts/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/index.js +1 -2
- package/dist/types/typechain-types/contracts/mocks/MockERC20.js +1 -2
- package/dist/types/typechain-types/contracts/mocks/MockPriceProvider.d.ts +113 -0
- package/dist/types/typechain-types/contracts/mocks/MockPriceProvider.js +1 -0
- package/dist/types/typechain-types/contracts/mocks/MockV3Aggregator.d.ts +75 -0
- package/dist/types/typechain-types/contracts/mocks/MockV3Aggregator.js +1 -0
- package/dist/types/typechain-types/contracts/mocks/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/index.js +1 -2
- package/dist/types/typechain-types/contracts/oracle/IPriceProvider.d.ts +65 -0
- package/dist/types/typechain-types/contracts/oracle/IPriceProvider.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/OracleProviderRegistry.d.ts +246 -0
- package/dist/types/typechain-types/contracts/oracle/OracleProviderRegistry.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/OracleRouter.d.ts +395 -0
- package/dist/types/typechain-types/contracts/oracle/OracleRouter.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/index.d.ts +5 -0
- package/dist/types/typechain-types/contracts/oracle/index.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/providers/ChainlinkProvider.d.ts +116 -0
- package/dist/types/typechain-types/contracts/oracle/providers/ChainlinkProvider.js +1 -0
- package/dist/types/typechain-types/contracts/oracle/providers/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/oracle/providers/index.js +1 -0
- package/dist/types/typechain-types/contracts/providers/AddressProviderV1.js +1 -2
- package/dist/types/typechain-types/contracts/providers/index.js +1 -2
- package/dist/types/typechain-types/contracts/registers/VaultRegistryV1.js +1 -2
- package/dist/types/typechain-types/contracts/registers/index.js +1 -2
- package/dist/types/typechain-types/factories/@chainlink/contracts/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface__factory.d.ts +93 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface__factory.js +126 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/shared/interfaces/index.js +4 -0
- package/dist/types/typechain-types/factories/@chainlink/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/index.js +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +64 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.js +89 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/access/index.js +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.js +5 -7
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1363__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC4626__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.js +1 -5
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.js +3 -9
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/index.js +5 -11
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.js +2 -7
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.js +1 -5
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/index.js +3 -7
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js +1 -5
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.js +4 -9
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.js +1 -5
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/index.js +1 -4
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Errors__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/index.js +4 -9
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.js +1 -5
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/index.js +1 -5
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.js +1 -5
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.js +4 -7
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.js +1 -4
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.js +2 -7
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.js +1 -5
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.js +2 -6
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/index.js +1 -4
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable__factory.js +4 -8
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.js +2 -7
- package/dist/types/typechain-types/factories/@openzeppelin/index.js +2 -5
- package/dist/types/typechain-types/factories/contracts/ManagementFeeUpgradeableV1__factory.js +4 -8
- package/dist/types/typechain-types/factories/contracts/PerformanceFeeUpgradeableV1__factory.js +4 -8
- package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.js +5 -9
- package/dist/types/typechain-types/factories/contracts/VaultV1__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/VaultV1__factory.js +5 -9
- package/dist/types/typechain-types/factories/contracts/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/index.js +8 -14
- package/dist/types/typechain-types/factories/contracts/mocks/MockERC20__factory.js +4 -8
- package/dist/types/typechain-types/factories/contracts/mocks/MockPriceProvider__factory.d.ts +218 -0
- package/dist/types/typechain-types/factories/contracts/mocks/MockPriceProvider__factory.js +291 -0
- package/dist/types/typechain-types/factories/contracts/mocks/MockV3Aggregator__factory.d.ts +110 -0
- package/dist/types/typechain-types/factories/contracts/mocks/MockV3Aggregator__factory.js +149 -0
- package/dist/types/typechain-types/factories/contracts/mocks/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/index.js +3 -5
- package/dist/types/typechain-types/factories/contracts/oracle/IPriceProvider__factory.d.ts +67 -0
- package/dist/types/typechain-types/factories/contracts/oracle/IPriceProvider__factory.js +94 -0
- package/dist/types/typechain-types/factories/contracts/oracle/OracleProviderRegistry__factory.d.ts +377 -0
- package/dist/types/typechain-types/factories/contracts/oracle/OracleProviderRegistry__factory.js +498 -0
- package/dist/types/typechain-types/factories/contracts/oracle/OracleRouter__factory.d.ts +623 -0
- package/dist/types/typechain-types/factories/contracts/oracle/OracleRouter__factory.js +822 -0
- package/dist/types/typechain-types/factories/contracts/oracle/index.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/oracle/index.js +7 -0
- package/dist/types/typechain-types/factories/contracts/oracle/providers/ChainlinkProvider__factory.d.ts +179 -0
- package/dist/types/typechain-types/factories/contracts/oracle/providers/ChainlinkProvider__factory.js +241 -0
- package/dist/types/typechain-types/factories/contracts/oracle/providers/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/oracle/providers/index.js +4 -0
- package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.js +5 -9
- package/dist/types/typechain-types/factories/contracts/providers/index.js +1 -5
- package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.js +5 -9
- package/dist/types/typechain-types/factories/contracts/registers/index.js +1 -5
- package/dist/types/typechain-types/factories/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/index.js +3 -5
- package/dist/types/typechain-types/index.d.ts +18 -0
- package/dist/types/typechain-types/index.js +42 -70
- package/package.json +6 -6
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Contract, ContractFactory, Interface, } from "ethers";
|
|
5
|
+
const _abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
internalType: "bytes32",
|
|
10
|
+
name: "id_",
|
|
11
|
+
type: "bytes32",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
internalType: "uint32",
|
|
15
|
+
name: "ver_",
|
|
16
|
+
type: "uint32",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "nonpayable",
|
|
20
|
+
type: "constructor",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [],
|
|
24
|
+
name: "MockRevert",
|
|
25
|
+
type: "error",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
inputs: [],
|
|
29
|
+
name: "decimals",
|
|
30
|
+
outputs: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint8",
|
|
33
|
+
name: "",
|
|
34
|
+
type: "uint8",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
stateMutability: "view",
|
|
38
|
+
type: "function",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
inputs: [
|
|
42
|
+
{
|
|
43
|
+
internalType: "address",
|
|
44
|
+
name: "asset",
|
|
45
|
+
type: "address",
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
name: "getPrice",
|
|
49
|
+
outputs: [
|
|
50
|
+
{
|
|
51
|
+
internalType: "uint256",
|
|
52
|
+
name: "p",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
internalType: "uint256",
|
|
57
|
+
name: "ts",
|
|
58
|
+
type: "uint256",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
internalType: "uint8",
|
|
62
|
+
name: "dec",
|
|
63
|
+
type: "uint8",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
internalType: "bool",
|
|
67
|
+
name: "isOk",
|
|
68
|
+
type: "bool",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
stateMutability: "view",
|
|
72
|
+
type: "function",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: "address",
|
|
78
|
+
name: "asset",
|
|
79
|
+
type: "address",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
name: "isSupported",
|
|
83
|
+
outputs: [
|
|
84
|
+
{
|
|
85
|
+
internalType: "bool",
|
|
86
|
+
name: "",
|
|
87
|
+
type: "bool",
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
stateMutability: "view",
|
|
91
|
+
type: "function",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
inputs: [],
|
|
95
|
+
name: "ok",
|
|
96
|
+
outputs: [
|
|
97
|
+
{
|
|
98
|
+
internalType: "bool",
|
|
99
|
+
name: "",
|
|
100
|
+
type: "bool",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
stateMutability: "view",
|
|
104
|
+
type: "function",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
inputs: [],
|
|
108
|
+
name: "price",
|
|
109
|
+
outputs: [
|
|
110
|
+
{
|
|
111
|
+
internalType: "uint256",
|
|
112
|
+
name: "",
|
|
113
|
+
type: "uint256",
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
stateMutability: "view",
|
|
117
|
+
type: "function",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
inputs: [],
|
|
121
|
+
name: "providerId",
|
|
122
|
+
outputs: [
|
|
123
|
+
{
|
|
124
|
+
internalType: "bytes32",
|
|
125
|
+
name: "",
|
|
126
|
+
type: "bytes32",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
stateMutability: "view",
|
|
130
|
+
type: "function",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
inputs: [
|
|
134
|
+
{
|
|
135
|
+
internalType: "uint8",
|
|
136
|
+
name: "d",
|
|
137
|
+
type: "uint8",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
name: "setDecimals",
|
|
141
|
+
outputs: [],
|
|
142
|
+
stateMutability: "nonpayable",
|
|
143
|
+
type: "function",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
inputs: [
|
|
147
|
+
{
|
|
148
|
+
internalType: "bool",
|
|
149
|
+
name: "v",
|
|
150
|
+
type: "bool",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
name: "setOk",
|
|
154
|
+
outputs: [],
|
|
155
|
+
stateMutability: "nonpayable",
|
|
156
|
+
type: "function",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
inputs: [
|
|
160
|
+
{
|
|
161
|
+
internalType: "uint256",
|
|
162
|
+
name: "p",
|
|
163
|
+
type: "uint256",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "setPrice",
|
|
167
|
+
outputs: [],
|
|
168
|
+
stateMutability: "nonpayable",
|
|
169
|
+
type: "function",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
inputs: [
|
|
173
|
+
{
|
|
174
|
+
internalType: "bool",
|
|
175
|
+
name: "v",
|
|
176
|
+
type: "bool",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
name: "setRevert",
|
|
180
|
+
outputs: [],
|
|
181
|
+
stateMutability: "nonpayable",
|
|
182
|
+
type: "function",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
inputs: [
|
|
186
|
+
{
|
|
187
|
+
internalType: "bool",
|
|
188
|
+
name: "v",
|
|
189
|
+
type: "bool",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
name: "setSupported",
|
|
193
|
+
outputs: [],
|
|
194
|
+
stateMutability: "nonpayable",
|
|
195
|
+
type: "function",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
inputs: [
|
|
199
|
+
{
|
|
200
|
+
internalType: "uint256",
|
|
201
|
+
name: "ts",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "setTimestamp",
|
|
206
|
+
outputs: [],
|
|
207
|
+
stateMutability: "nonpayable",
|
|
208
|
+
type: "function",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
inputs: [],
|
|
212
|
+
name: "shouldRevert",
|
|
213
|
+
outputs: [
|
|
214
|
+
{
|
|
215
|
+
internalType: "bool",
|
|
216
|
+
name: "",
|
|
217
|
+
type: "bool",
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
stateMutability: "view",
|
|
221
|
+
type: "function",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
inputs: [],
|
|
225
|
+
name: "supported",
|
|
226
|
+
outputs: [
|
|
227
|
+
{
|
|
228
|
+
internalType: "bool",
|
|
229
|
+
name: "",
|
|
230
|
+
type: "bool",
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
stateMutability: "view",
|
|
234
|
+
type: "function",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
inputs: [],
|
|
238
|
+
name: "timestamp",
|
|
239
|
+
outputs: [
|
|
240
|
+
{
|
|
241
|
+
internalType: "uint256",
|
|
242
|
+
name: "",
|
|
243
|
+
type: "uint256",
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
stateMutability: "view",
|
|
247
|
+
type: "function",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
inputs: [],
|
|
251
|
+
name: "version",
|
|
252
|
+
outputs: [
|
|
253
|
+
{
|
|
254
|
+
internalType: "uint32",
|
|
255
|
+
name: "",
|
|
256
|
+
type: "uint32",
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
stateMutability: "view",
|
|
260
|
+
type: "function",
|
|
261
|
+
},
|
|
262
|
+
];
|
|
263
|
+
const _bytecode = "0x60806040526001805462ffffff60201b191665010100000000179055348015602657600080fd5b506040516104d33803806104d38339810160408190526043916079565b6000919091556001805463ffffffff90921663ffffffff199092169190911790556004805460ff191660121790554260035560b0565b60008060408385031215608b57600080fd5b82519150602083015163ffffffff8116811460a557600080fd5b809150509250929050565b610414806100bf6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806391b7f5ed11610097578063b80777ea11610066578063b80777ea146102a6578063c9ae24d6146102af578063d3072d82146102c4578063d909b403146102db57600080fd5b806391b7f5ed14610247578063a035b1fe1461025a578063a0a2b57314610263578063b4b820c01461027657600080fd5b806354fd4d50116100d357806354fd4d50146101c75780637a1395aa146101df5780638490a8df146102035780638fb5f1711461021557600080fd5b8063313ce5671461010557806341976e09146101295780634a91ef8d146101675780634f129c5314610197575b600080fd5b6004546101129060ff1681565b60405160ff90911681526020015b60405180910390f35b61013c610137366004610350565b6102f1565b6040516101209493929190938452602084019290925260ff1660408301521515606082015260800190565b610195610175366004610380565b600180549115156401000000000264ff0000000019909216919091179055565b005b6101b76101a5366004610350565b50600154640100000000900460ff1690565b6040519015158152602001610120565b60015460405163ffffffff9091168152602001610120565b6101956101ed3660046103a2565b6004805460ff191660ff92909216919091179055565b6000545b604051908152602001610120565b610195610223366004610380565b6001805491151566010000000000000266ff00000000000019909216919091179055565b6101956102553660046103c5565b600255565b61020760025481565b6101956102713660046103c5565b600355565b610195610284366004610380565b60018054911515650100000000000265ff000000000019909216919091179055565b61020760035481565b6001546101b790640100000000900460ff1681565b6001546101b7906601000000000000900460ff1681565b6001546101b79065010000000000900460ff1681565b600080600080600160069054906101000a900460ff16156103255760405163872cfd4160e01b815260040160405180910390fd5b505060025460035460045460015492945090925060ff90811691650100000000009004169193509193565b60006020828403121561036257600080fd5b81356001600160a01b038116811461037957600080fd5b9392505050565b60006020828403121561039257600080fd5b8135801515811461037957600080fd5b6000602082840312156103b457600080fd5b813560ff8116811461037957600080fd5b6000602082840312156103d757600080fd5b503591905056fea2646970667358221220bad0a15e7ca61191654bbfea6a3f53bf641c8cb5464013fc1a84feeba0ed2d0864736f6c634300081c0033";
|
|
264
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
265
|
+
export class MockPriceProvider__factory extends ContractFactory {
|
|
266
|
+
constructor(...args) {
|
|
267
|
+
if (isSuperArgs(args)) {
|
|
268
|
+
super(...args);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
super(_abi, _bytecode, args[0]);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
getDeployTransaction(id_, ver_, overrides) {
|
|
275
|
+
return super.getDeployTransaction(id_, ver_, overrides || {});
|
|
276
|
+
}
|
|
277
|
+
deploy(id_, ver_, overrides) {
|
|
278
|
+
return super.deploy(id_, ver_, overrides || {});
|
|
279
|
+
}
|
|
280
|
+
connect(runner) {
|
|
281
|
+
return super.connect(runner);
|
|
282
|
+
}
|
|
283
|
+
static createInterface() {
|
|
284
|
+
return new Interface(_abi);
|
|
285
|
+
}
|
|
286
|
+
static connect(address, runner) {
|
|
287
|
+
return new Contract(address, _abi, runner);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
MockPriceProvider__factory.bytecode = _bytecode;
|
|
291
|
+
MockPriceProvider__factory.abi = _abi;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, BigNumberish, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../common";
|
|
4
|
+
import type { MockV3Aggregator, MockV3AggregatorInterface } from "../../../contracts/mocks/MockV3Aggregator";
|
|
5
|
+
type MockV3AggregatorConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class MockV3Aggregator__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: MockV3AggregatorConstructorParams);
|
|
8
|
+
getDeployTransaction(decimals_: BigNumberish, initialAnswer_: BigNumberish, overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(decimals_: BigNumberish, initialAnswer_: BigNumberish, overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<MockV3Aggregator & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): MockV3Aggregator__factory;
|
|
17
|
+
static readonly bytecode = "0x6080604052348015600f57600080fd5b506040516101e43803806101e4833981016040819052602c91604d565b6000805460ff191660ff841617905560478160015542600255565b5050607f565b60008060408385031215605f57600080fd5b825160ff81168114606f57600080fd5b6020939093015192949293505050565b6101568061008e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631ecc7d8814610067578063313ce5671461007c5780637519ab50146100a057806385bb7d69146100b757806399213cd8146100c0578063feaf968c146100d7575b600080fd5b61007a610075366004610107565b600255565b005b6000546100899060ff1681565b60405160ff90911681526020015b60405180910390f35b6100a960025481565b604051908152602001610097565b6100a960015481565b61007a6100ce366004610107565b60015542600255565b6001805460025460408051848152602081019390935282018190526060820152608081019190915260a001610097565b60006020828403121561011957600080fd5b503591905056fea264697066735822122010ee89c3ce719698d1072b907bc3c26de8486aacf5517326b8d1497ca07e776964736f6c634300081c0033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly internalType: "uint8";
|
|
21
|
+
readonly name: "decimals_";
|
|
22
|
+
readonly type: "uint8";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "int256";
|
|
25
|
+
readonly name: "initialAnswer_";
|
|
26
|
+
readonly type: "int256";
|
|
27
|
+
}];
|
|
28
|
+
readonly stateMutability: "nonpayable";
|
|
29
|
+
readonly type: "constructor";
|
|
30
|
+
}, {
|
|
31
|
+
readonly inputs: readonly [];
|
|
32
|
+
readonly name: "answer";
|
|
33
|
+
readonly outputs: readonly [{
|
|
34
|
+
readonly internalType: "int256";
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "int256";
|
|
37
|
+
}];
|
|
38
|
+
readonly stateMutability: "view";
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
}, {
|
|
41
|
+
readonly inputs: readonly [];
|
|
42
|
+
readonly name: "decimals";
|
|
43
|
+
readonly outputs: readonly [{
|
|
44
|
+
readonly internalType: "uint8";
|
|
45
|
+
readonly name: "";
|
|
46
|
+
readonly type: "uint8";
|
|
47
|
+
}];
|
|
48
|
+
readonly stateMutability: "view";
|
|
49
|
+
readonly type: "function";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [];
|
|
52
|
+
readonly name: "latestRoundData";
|
|
53
|
+
readonly outputs: readonly [{
|
|
54
|
+
readonly internalType: "uint80";
|
|
55
|
+
readonly name: "roundId";
|
|
56
|
+
readonly type: "uint80";
|
|
57
|
+
}, {
|
|
58
|
+
readonly internalType: "int256";
|
|
59
|
+
readonly name: "ans";
|
|
60
|
+
readonly type: "int256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly internalType: "uint256";
|
|
63
|
+
readonly name: "startedAt";
|
|
64
|
+
readonly type: "uint256";
|
|
65
|
+
}, {
|
|
66
|
+
readonly internalType: "uint256";
|
|
67
|
+
readonly name: "updatedAt_";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}, {
|
|
70
|
+
readonly internalType: "uint80";
|
|
71
|
+
readonly name: "answeredInRound";
|
|
72
|
+
readonly type: "uint80";
|
|
73
|
+
}];
|
|
74
|
+
readonly stateMutability: "view";
|
|
75
|
+
readonly type: "function";
|
|
76
|
+
}, {
|
|
77
|
+
readonly inputs: readonly [{
|
|
78
|
+
readonly internalType: "int256";
|
|
79
|
+
readonly name: "a";
|
|
80
|
+
readonly type: "int256";
|
|
81
|
+
}];
|
|
82
|
+
readonly name: "setAnswer";
|
|
83
|
+
readonly outputs: readonly [];
|
|
84
|
+
readonly stateMutability: "nonpayable";
|
|
85
|
+
readonly type: "function";
|
|
86
|
+
}, {
|
|
87
|
+
readonly inputs: readonly [{
|
|
88
|
+
readonly internalType: "uint256";
|
|
89
|
+
readonly name: "ts";
|
|
90
|
+
readonly type: "uint256";
|
|
91
|
+
}];
|
|
92
|
+
readonly name: "setUpdatedAt";
|
|
93
|
+
readonly outputs: readonly [];
|
|
94
|
+
readonly stateMutability: "nonpayable";
|
|
95
|
+
readonly type: "function";
|
|
96
|
+
}, {
|
|
97
|
+
readonly inputs: readonly [];
|
|
98
|
+
readonly name: "updatedAt";
|
|
99
|
+
readonly outputs: readonly [{
|
|
100
|
+
readonly internalType: "uint256";
|
|
101
|
+
readonly name: "";
|
|
102
|
+
readonly type: "uint256";
|
|
103
|
+
}];
|
|
104
|
+
readonly stateMutability: "view";
|
|
105
|
+
readonly type: "function";
|
|
106
|
+
}];
|
|
107
|
+
static createInterface(): MockV3AggregatorInterface;
|
|
108
|
+
static connect(address: string, runner?: ContractRunner | null): MockV3Aggregator;
|
|
109
|
+
}
|
|
110
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Contract, ContractFactory, Interface, } from "ethers";
|
|
5
|
+
const _abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
internalType: "uint8",
|
|
10
|
+
name: "decimals_",
|
|
11
|
+
type: "uint8",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
internalType: "int256",
|
|
15
|
+
name: "initialAnswer_",
|
|
16
|
+
type: "int256",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "nonpayable",
|
|
20
|
+
type: "constructor",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [],
|
|
24
|
+
name: "answer",
|
|
25
|
+
outputs: [
|
|
26
|
+
{
|
|
27
|
+
internalType: "int256",
|
|
28
|
+
name: "",
|
|
29
|
+
type: "int256",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "view",
|
|
33
|
+
type: "function",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
inputs: [],
|
|
37
|
+
name: "decimals",
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint8",
|
|
41
|
+
name: "",
|
|
42
|
+
type: "uint8",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
stateMutability: "view",
|
|
46
|
+
type: "function",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
inputs: [],
|
|
50
|
+
name: "latestRoundData",
|
|
51
|
+
outputs: [
|
|
52
|
+
{
|
|
53
|
+
internalType: "uint80",
|
|
54
|
+
name: "roundId",
|
|
55
|
+
type: "uint80",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
internalType: "int256",
|
|
59
|
+
name: "ans",
|
|
60
|
+
type: "int256",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
internalType: "uint256",
|
|
64
|
+
name: "startedAt",
|
|
65
|
+
type: "uint256",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
internalType: "uint256",
|
|
69
|
+
name: "updatedAt_",
|
|
70
|
+
type: "uint256",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
internalType: "uint80",
|
|
74
|
+
name: "answeredInRound",
|
|
75
|
+
type: "uint80",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
stateMutability: "view",
|
|
79
|
+
type: "function",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
inputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "int256",
|
|
85
|
+
name: "a",
|
|
86
|
+
type: "int256",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
name: "setAnswer",
|
|
90
|
+
outputs: [],
|
|
91
|
+
stateMutability: "nonpayable",
|
|
92
|
+
type: "function",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
inputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "ts",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
name: "setUpdatedAt",
|
|
103
|
+
outputs: [],
|
|
104
|
+
stateMutability: "nonpayable",
|
|
105
|
+
type: "function",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
inputs: [],
|
|
109
|
+
name: "updatedAt",
|
|
110
|
+
outputs: [
|
|
111
|
+
{
|
|
112
|
+
internalType: "uint256",
|
|
113
|
+
name: "",
|
|
114
|
+
type: "uint256",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
stateMutability: "view",
|
|
118
|
+
type: "function",
|
|
119
|
+
},
|
|
120
|
+
];
|
|
121
|
+
const _bytecode = "0x6080604052348015600f57600080fd5b506040516101e43803806101e4833981016040819052602c91604d565b6000805460ff191660ff841617905560478160015542600255565b5050607f565b60008060408385031215605f57600080fd5b825160ff81168114606f57600080fd5b6020939093015192949293505050565b6101568061008e6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631ecc7d8814610067578063313ce5671461007c5780637519ab50146100a057806385bb7d69146100b757806399213cd8146100c0578063feaf968c146100d7575b600080fd5b61007a610075366004610107565b600255565b005b6000546100899060ff1681565b60405160ff90911681526020015b60405180910390f35b6100a960025481565b604051908152602001610097565b6100a960015481565b61007a6100ce366004610107565b60015542600255565b6001805460025460408051848152602081019390935282018190526060820152608081019190915260a001610097565b60006020828403121561011957600080fd5b503591905056fea264697066735822122010ee89c3ce719698d1072b907bc3c26de8486aacf5517326b8d1497ca07e776964736f6c634300081c0033";
|
|
122
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
123
|
+
export class MockV3Aggregator__factory extends ContractFactory {
|
|
124
|
+
constructor(...args) {
|
|
125
|
+
if (isSuperArgs(args)) {
|
|
126
|
+
super(...args);
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
super(_abi, _bytecode, args[0]);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
getDeployTransaction(decimals_, initialAnswer_, overrides) {
|
|
133
|
+
return super.getDeployTransaction(decimals_, initialAnswer_, overrides || {});
|
|
134
|
+
}
|
|
135
|
+
deploy(decimals_, initialAnswer_, overrides) {
|
|
136
|
+
return super.deploy(decimals_, initialAnswer_, overrides || {});
|
|
137
|
+
}
|
|
138
|
+
connect(runner) {
|
|
139
|
+
return super.connect(runner);
|
|
140
|
+
}
|
|
141
|
+
static createInterface() {
|
|
142
|
+
return new Interface(_abi);
|
|
143
|
+
}
|
|
144
|
+
static connect(address, runner) {
|
|
145
|
+
return new Contract(address, _abi, runner);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
MockV3Aggregator__factory.bytecode = _bytecode;
|
|
149
|
+
MockV3Aggregator__factory.abi = _abi;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MockERC20__factory = void 0;
|
|
4
1
|
/* Autogenerated file. Do not edit manually. */
|
|
5
2
|
/* tslint:disable */
|
|
6
3
|
/* eslint-disable */
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export { MockERC20__factory } from "./MockERC20__factory";
|
|
5
|
+
export { MockPriceProvider__factory } from "./MockPriceProvider__factory";
|
|
6
|
+
export { MockV3Aggregator__factory } from "./MockV3Aggregator__factory";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type ContractRunner } from "ethers";
|
|
2
|
+
import type { IPriceProvider, IPriceProviderInterface } from "../../../contracts/oracle/IPriceProvider";
|
|
3
|
+
export declare class IPriceProvider__factory {
|
|
4
|
+
static readonly abi: readonly [{
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
readonly name: "asset";
|
|
8
|
+
readonly type: "address";
|
|
9
|
+
}];
|
|
10
|
+
readonly name: "getPrice";
|
|
11
|
+
readonly outputs: readonly [{
|
|
12
|
+
readonly internalType: "uint256";
|
|
13
|
+
readonly name: "price";
|
|
14
|
+
readonly type: "uint256";
|
|
15
|
+
}, {
|
|
16
|
+
readonly internalType: "uint256";
|
|
17
|
+
readonly name: "timestamp";
|
|
18
|
+
readonly type: "uint256";
|
|
19
|
+
}, {
|
|
20
|
+
readonly internalType: "uint8";
|
|
21
|
+
readonly name: "decimals";
|
|
22
|
+
readonly type: "uint8";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "bool";
|
|
25
|
+
readonly name: "ok";
|
|
26
|
+
readonly type: "bool";
|
|
27
|
+
}];
|
|
28
|
+
readonly stateMutability: "view";
|
|
29
|
+
readonly type: "function";
|
|
30
|
+
}, {
|
|
31
|
+
readonly inputs: readonly [{
|
|
32
|
+
readonly internalType: "address";
|
|
33
|
+
readonly name: "asset";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}];
|
|
36
|
+
readonly name: "isSupported";
|
|
37
|
+
readonly outputs: readonly [{
|
|
38
|
+
readonly internalType: "bool";
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly type: "bool";
|
|
41
|
+
}];
|
|
42
|
+
readonly stateMutability: "view";
|
|
43
|
+
readonly type: "function";
|
|
44
|
+
}, {
|
|
45
|
+
readonly inputs: readonly [];
|
|
46
|
+
readonly name: "providerId";
|
|
47
|
+
readonly outputs: readonly [{
|
|
48
|
+
readonly internalType: "bytes32";
|
|
49
|
+
readonly name: "";
|
|
50
|
+
readonly type: "bytes32";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "view";
|
|
53
|
+
readonly type: "function";
|
|
54
|
+
}, {
|
|
55
|
+
readonly inputs: readonly [];
|
|
56
|
+
readonly name: "version";
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly internalType: "uint32";
|
|
59
|
+
readonly name: "";
|
|
60
|
+
readonly type: "uint32";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "view";
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
}];
|
|
65
|
+
static createInterface(): IPriceProviderInterface;
|
|
66
|
+
static connect(address: string, runner?: ContractRunner | null): IPriceProvider;
|
|
67
|
+
}
|