@ubk-labs/ubk-oracle 0.1.5 → 0.1.6

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.
@@ -1,7 +1,7 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  pragma solidity ^0.8.20;
3
3
 
4
- import "@ubk-labs/ubk-commons/commons/UBKConstants.sol";
4
+ import "@ubk-labs/ubk-commons/contracts/constants/UBKConstants.sol";
5
5
 
6
6
 
7
7
  library UBKOracleConstants {
@@ -1,7 +1,7 @@
1
1
  // SPDX-License-Identifier: MIT
2
2
  pragma solidity ^0.8.20;
3
3
 
4
- import "@ubk-labs/ubk-commons/commons/UBKErrors.sol";
4
+ import "@ubk-labs/ubk-commons/contracts/errors/UBKErrors.sol";
5
5
 
6
6
  // ───────────── Errors ─────────────
7
7
  error InvalidManualPrice(address token, uint256 price);
@@ -0,0 +1,14 @@
1
+ // SPDX-License-Identifier: MIT
2
+ pragma solidity ^0.8.0;
3
+
4
+ // Importing these ensures Hardhat generates artifacts for them.
5
+ import "@ubk-labs/ubk-commons/contracts/mocks/MockERC20.sol";
6
+ import "@ubk-labs/ubk-commons/contracts/mocks/MockERC4626.sol";
7
+ import "@ubk-labs/ubk-commons/contracts/mocks/MockAggregatorV3.sol";
8
+
9
+ abstract contract UBKImports {
10
+ /**
11
+ This shim file will import all external contracts to enable
12
+ automatic artifact generation by HardHat.
13
+ */
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubk-labs/ubk-oracle",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Oracle supporting ERC-20 and ERC-4626 assets for use in decentralized financial applications.",
5
5
  "scripts": {
6
6
  "build": "npx hardhat compile",
@@ -19,10 +19,10 @@
19
19
  "license": "MIT",
20
20
  "files": [
21
21
  "contracts",
22
- "artifacts",
23
22
  "interfaces",
24
23
  "README.md",
25
- "LICENSE"
24
+ "LICENSE",
25
+ "package.json"
26
26
  ],
27
27
  "devDependencies": {
28
28
  "@graphprotocol/hardhat-graph": "^0.1.0-alpha.2",
@@ -37,6 +37,6 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@chainlink/contracts": "^0.6.1",
40
- "@ubk-labs/ubk-commons": "^0.1.1"
40
+ "@ubk-labs/ubk-commons": "^0.1.5"
41
41
  }
42
42
  }
@@ -1,4 +0,0 @@
1
- {
2
- "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/c04fe46bfd9dbe62256a68be548afa14.json"
4
- }
@@ -1,141 +0,0 @@
1
- {
2
- "_format": "hh-sol-artifact-1",
3
- "contractName": "UBKOracleConstants",
4
- "sourceName": "contracts/constants/UBKOracleConstants.sol",
5
- "abi": [
6
- {
7
- "inputs": [],
8
- "name": "MAX_RECURSION_DEPTH",
9
- "outputs": [
10
- {
11
- "internalType": "uint256",
12
- "name": "",
13
- "type": "uint256"
14
- }
15
- ],
16
- "stateMutability": "view",
17
- "type": "function"
18
- },
19
- {
20
- "inputs": [],
21
- "name": "ORACLE_DEFAULT_STALE_PERIOD",
22
- "outputs": [
23
- {
24
- "internalType": "uint256",
25
- "name": "",
26
- "type": "uint256"
27
- }
28
- ],
29
- "stateMutability": "view",
30
- "type": "function"
31
- },
32
- {
33
- "inputs": [],
34
- "name": "ORACLE_MANUAL_PRICE_MAX_DELTA_WAD",
35
- "outputs": [
36
- {
37
- "internalType": "uint256",
38
- "name": "",
39
- "type": "uint256"
40
- }
41
- ],
42
- "stateMutability": "view",
43
- "type": "function"
44
- },
45
- {
46
- "inputs": [],
47
- "name": "ORACLE_MAX_ABSOLUTE_PRICE_WAD",
48
- "outputs": [
49
- {
50
- "internalType": "uint256",
51
- "name": "",
52
- "type": "uint256"
53
- }
54
- ],
55
- "stateMutability": "view",
56
- "type": "function"
57
- },
58
- {
59
- "inputs": [],
60
- "name": "ORACLE_MAX_STALE_PERIOD",
61
- "outputs": [
62
- {
63
- "internalType": "uint256",
64
- "name": "",
65
- "type": "uint256"
66
- }
67
- ],
68
- "stateMutability": "view",
69
- "type": "function"
70
- },
71
- {
72
- "inputs": [],
73
- "name": "ORACLE_MAX_VAULT_RATE_WAD",
74
- "outputs": [
75
- {
76
- "internalType": "uint256",
77
- "name": "",
78
- "type": "uint256"
79
- }
80
- ],
81
- "stateMutability": "view",
82
- "type": "function"
83
- },
84
- {
85
- "inputs": [],
86
- "name": "ORACLE_MIN_ABSOLUTE_PRICE_WAD",
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": "ORACLE_MIN_STALE_PERIOD",
100
- "outputs": [
101
- {
102
- "internalType": "uint256",
103
- "name": "",
104
- "type": "uint256"
105
- }
106
- ],
107
- "stateMutability": "view",
108
- "type": "function"
109
- },
110
- {
111
- "inputs": [],
112
- "name": "ORACLE_MIN_VAULT_RATE_WAD",
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": "WAD",
126
- "outputs": [
127
- {
128
- "internalType": "uint256",
129
- "name": "",
130
- "type": "uint256"
131
- }
132
- ],
133
- "stateMutability": "view",
134
- "type": "function"
135
- }
136
- ],
137
- "bytecode": "0x61016861003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100a85760003560e01c8063730513511161007057806373051351146101015780639a1b2c43146100ad578063afb9888514610112578063d160ed4d14610121578063f3f7de781461012957600080fd5b80634e9331ef146100ad5780635c94d0f9146100c85780636a146024146100d75780636bae86bb146100e65780636c0d5b36146100f2575b600080fd5b6100b6610e1081565b60405190815260200160405180910390f35b6100b667016345785d8a000081565b6100b6670de0b6b3a764000081565b6100b66402540be40081565b6100b66729a2241af62c000081565b6100b669d3c21bcecceda100000081565b6100b66702c68af0bb14000081565b6100b6600581565b6100b6612a308156fea2646970667358221220a0861901c16baa83a56628bb8b95ec1e373e3060f03d44a4084cb5c2271c79ef64736f6c63430008150033",
138
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100a85760003560e01c8063730513511161007057806373051351146101015780639a1b2c43146100ad578063afb9888514610112578063d160ed4d14610121578063f3f7de781461012957600080fd5b80634e9331ef146100ad5780635c94d0f9146100c85780636a146024146100d75780636bae86bb146100e65780636c0d5b36146100f2575b600080fd5b6100b6610e1081565b60405190815260200160405180910390f35b6100b667016345785d8a000081565b6100b6670de0b6b3a764000081565b6100b66402540be40081565b6100b66729a2241af62c000081565b6100b669d3c21bcecceda100000081565b6100b66702c68af0bb14000081565b6100b6600581565b6100b6612a308156fea2646970667358221220a0861901c16baa83a56628bb8b95ec1e373e3060f03d44a4084cb5c2271c79ef64736f6c63430008150033",
139
- "linkReferences": {},
140
- "deployedLinkReferences": {}
141
- }
@@ -1,4 +0,0 @@
1
- {
2
- "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../build-info/c04fe46bfd9dbe62256a68be548afa14.json"
4
- }