@curvefi/llamalend-api 1.0.2

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 (125) hide show
  1. package/.eslintrc.json +40 -0
  2. package/.github/workflows/lint.yml +15 -0
  3. package/.github/workflows/publish.yml +55 -0
  4. package/LICENSE +21 -0
  5. package/README.md +1976 -0
  6. package/lib/cache/index.d.ts +14 -0
  7. package/lib/cache/index.js +31 -0
  8. package/lib/constants/L2Networks.d.ts +1 -0
  9. package/lib/constants/L2Networks.js +1 -0
  10. package/lib/constants/abis/Controller.json +1027 -0
  11. package/lib/constants/abis/ERC20.json +222 -0
  12. package/lib/constants/abis/ERC4626.json +1674 -0
  13. package/lib/constants/abis/GaugeController.json +794 -0
  14. package/lib/constants/abis/GaugeFactoryMainnet.json +1 -0
  15. package/lib/constants/abis/GaugeFactorySidechain.json +475 -0
  16. package/lib/constants/abis/GaugeV5.json +958 -0
  17. package/lib/constants/abis/LeverageZap.json +35 -0
  18. package/lib/constants/abis/Llamma.json +984 -0
  19. package/lib/constants/abis/Minter.json +1 -0
  20. package/lib/constants/abis/MonetaryPolicy.json +221 -0
  21. package/lib/constants/abis/OneWayLendingFactoryABI.json +899 -0
  22. package/lib/constants/abis/SidechainGauge.json +939 -0
  23. package/lib/constants/abis/Vault.json +721 -0
  24. package/lib/constants/abis/crvUSD/DeleverageZap.json +248 -0
  25. package/lib/constants/abis/crvUSD/Factory.json +514 -0
  26. package/lib/constants/abis/crvUSD/HealthCalculatorZap.json +54 -0
  27. package/lib/constants/abis/crvUSD/LeverageZap.json +312 -0
  28. package/lib/constants/abis/crvUSD/MonetaryPolicy.json +294 -0
  29. package/lib/constants/abis/crvUSD/MonetaryPolicy2.json +299 -0
  30. package/lib/constants/abis/crvUSD/PegKeeper.json +411 -0
  31. package/lib/constants/abis/crvUSD/controller.json +991 -0
  32. package/lib/constants/abis/crvUSD/llamma.json +984 -0
  33. package/lib/constants/abis/gas_oracle_optimism.json +149 -0
  34. package/lib/constants/abis/gas_oracle_optimism_blob.json +203 -0
  35. package/lib/constants/aliases.d.ts +16 -0
  36. package/lib/constants/aliases.js +124 -0
  37. package/lib/constants/coins.d.ts +16 -0
  38. package/lib/constants/coins.js +24 -0
  39. package/lib/constants/llammas.d.ts +2 -0
  40. package/lib/constants/llammas.js +96 -0
  41. package/lib/constants/utils.d.ts +4 -0
  42. package/lib/constants/utils.js +27 -0
  43. package/lib/external-api.d.ts +13 -0
  44. package/lib/external-api.js +436 -0
  45. package/lib/index.d.ts +104 -0
  46. package/lib/index.js +123 -0
  47. package/lib/interfaces.d.ts +228 -0
  48. package/lib/interfaces.js +1 -0
  49. package/lib/lendMarkets/LendMarketTemplate.d.ts +510 -0
  50. package/lib/lendMarkets/LendMarketTemplate.js +4682 -0
  51. package/lib/lendMarkets/index.d.ts +3 -0
  52. package/lib/lendMarkets/index.js +3 -0
  53. package/lib/lendMarkets/lendMarketConstructor.d.ts +2 -0
  54. package/lib/lendMarkets/lendMarketConstructor.js +6 -0
  55. package/lib/llamalend.d.ts +80 -0
  56. package/lib/llamalend.js +878 -0
  57. package/lib/mintMarkets/MintMarketTemplate.d.ts +308 -0
  58. package/lib/mintMarkets/MintMarketTemplate.js +2998 -0
  59. package/lib/mintMarkets/index.d.ts +3 -0
  60. package/lib/mintMarkets/index.js +3 -0
  61. package/lib/mintMarkets/mintMarketConstructor.d.ts +2 -0
  62. package/lib/mintMarkets/mintMarketConstructor.js +4 -0
  63. package/lib/st-crvUSD.d.ts +35 -0
  64. package/lib/st-crvUSD.js +505 -0
  65. package/lib/utils.d.ts +58 -0
  66. package/lib/utils.js +661 -0
  67. package/package.json +42 -0
  68. package/src/cache/index.ts +41 -0
  69. package/src/constants/L2Networks.ts +1 -0
  70. package/src/constants/abis/Controller.json +1027 -0
  71. package/src/constants/abis/ERC20.json +222 -0
  72. package/src/constants/abis/ERC4626.json +1674 -0
  73. package/src/constants/abis/GaugeController.json +794 -0
  74. package/src/constants/abis/GaugeFactoryMainnet.json +1 -0
  75. package/src/constants/abis/GaugeFactorySidechain.json +475 -0
  76. package/src/constants/abis/GaugeV5.json +958 -0
  77. package/src/constants/abis/LeverageZap.json +35 -0
  78. package/src/constants/abis/Llamma.json +984 -0
  79. package/src/constants/abis/Minter.json +1 -0
  80. package/src/constants/abis/MonetaryPolicy.json +221 -0
  81. package/src/constants/abis/OneWayLendingFactoryABI.json +899 -0
  82. package/src/constants/abis/SidechainGauge.json +939 -0
  83. package/src/constants/abis/Vault.json +721 -0
  84. package/src/constants/abis/crvUSD/DeleverageZap.json +248 -0
  85. package/src/constants/abis/crvUSD/ERC20.json +222 -0
  86. package/src/constants/abis/crvUSD/Factory.json +514 -0
  87. package/src/constants/abis/crvUSD/HealthCalculatorZap.json +54 -0
  88. package/src/constants/abis/crvUSD/LeverageZap.json +312 -0
  89. package/src/constants/abis/crvUSD/MonetaryPolicy.json +294 -0
  90. package/src/constants/abis/crvUSD/MonetaryPolicy2.json +299 -0
  91. package/src/constants/abis/crvUSD/PegKeeper.json +411 -0
  92. package/src/constants/abis/crvUSD/controller.json +991 -0
  93. package/src/constants/abis/crvUSD/llamma.json +984 -0
  94. package/src/constants/abis/gas_oracle_optimism.json +149 -0
  95. package/src/constants/abis/gas_oracle_optimism_blob.json +203 -0
  96. package/src/constants/aliases.ts +141 -0
  97. package/src/constants/coins.ts +41 -0
  98. package/src/constants/llammas.ts +99 -0
  99. package/src/constants/utils.ts +33 -0
  100. package/src/external-api.ts +325 -0
  101. package/src/index.ts +128 -0
  102. package/src/interfaces.ts +237 -0
  103. package/src/lendMarkets/LendMarketTemplate.ts +3022 -0
  104. package/src/lendMarkets/index.ts +7 -0
  105. package/src/lendMarkets/lendMarketConstructor.ts +7 -0
  106. package/src/llamalend.ts +785 -0
  107. package/src/mintMarkets/MintMarketTemplate.ts +1781 -0
  108. package/src/mintMarkets/index.ts +7 -0
  109. package/src/mintMarkets/mintMarketConstructor.ts +5 -0
  110. package/src/st-crvUSD.ts +244 -0
  111. package/src/utils.ts +497 -0
  112. package/test/fetch.test.ts +152 -0
  113. package/test/general.test.ts +216 -0
  114. package/test/leverageBorrowMore.test.ts +245 -0
  115. package/test/leverageCreateLoan.test.ts +236 -0
  116. package/test/leverageRepay.test.ts +240 -0
  117. package/test/readme.test.ts +475 -0
  118. package/test/selfLiquidate.test.ts +57 -0
  119. package/test/selfLiquidateCrvUSD.test.ts +54 -0
  120. package/test/st_crvUSD.test.ts +68 -0
  121. package/test/swap.test.ts +62 -0
  122. package/test/swapCrvUSD.test.ts +56 -0
  123. package/test/vault.test.ts +112 -0
  124. package/tsconfig.build.json +10 -0
  125. package/tsconfig.json +72 -0
@@ -0,0 +1,62 @@
1
+ import { assert } from "chai";
2
+ import llamalend from "../src/index.js";
3
+ import { getOneWayMarket, OneWayMarketTemplate } from "../src/markets/index.js";
4
+ import { BN } from "../src/utils.js";
5
+
6
+ const ONE_WAY_MARKETS = ['one-way-market-0'];
7
+
8
+ const swapTest = (id: string) => {
9
+ let oneWayMarket: OneWayMarketTemplate;
10
+ let maxDebt: string;
11
+
12
+ before(async function () {
13
+ oneWayMarket = getOneWayMarket(id);
14
+ const depositAmount = Number(await oneWayMarket.vault.maxDeposit()) * 0.05;
15
+ await oneWayMarket.vault.deposit(depositAmount);
16
+ maxDebt = await oneWayMarket.createLoanMaxRecv(0.3, 10);
17
+ await oneWayMarket.createLoan(0.3, maxDebt, 10)
18
+ });
19
+
20
+ after(async function () {
21
+ await oneWayMarket.fullRepay();
22
+ });
23
+
24
+
25
+ describe(`${id} one-way-market swap test`, function () {
26
+ for (let i = 0; i < 2; i++) {
27
+ for (let j = 0; j < 2; j++) {
28
+ if (i === j) continue;
29
+
30
+ it(`${i} --> ${j}`, async function () {
31
+ const initialBalancesObj = await oneWayMarket.wallet.balances();
32
+ const initialBalances = [initialBalancesObj.borrowed, initialBalancesObj.collateral];
33
+ const swapAmount = i === 0 ? Number(maxDebt) / 10 : 0.003;
34
+ const expected = Number(await oneWayMarket.swapExpected(i, j, swapAmount));
35
+
36
+ await oneWayMarket.swap(i, j, swapAmount, 0.05);
37
+
38
+ const balancesObj = await oneWayMarket.wallet.balances();
39
+ const balances = [balancesObj.borrowed, balancesObj.collateral];
40
+ const out = Number(balances[j]) - Number(initialBalances[j]);
41
+
42
+ assert.deepStrictEqual(BN(balances[i]).toString(), BN(initialBalances[i]).minus(BN(swapAmount)).toString(), 'in');
43
+ assert.isAtMost(Math.abs(out - expected) / expected, 5 * 1e-3, 'out');
44
+ });
45
+ }
46
+ }
47
+ });
48
+ }
49
+
50
+ describe('Swap test', async function () {
51
+ this.timeout(120000);
52
+
53
+ before(async function () {
54
+ await llamalend.init('JsonRpc', {},{ gasPrice: 0 });
55
+ await llamalend.oneWayfactory.fetchMarkets();
56
+ });
57
+
58
+ for (const oneWayMarketId of ONE_WAY_MARKETS) {
59
+ swapTest(oneWayMarketId);
60
+ }
61
+ })
62
+
@@ -0,0 +1,56 @@
1
+ import { assert } from "chai";
2
+ import llamalend from "../src/index.js";
3
+ import {getLlamma, LlammaTemplate} from "../src/llammas/index.js";
4
+ import { BN } from "../src/utils.js";
5
+
6
+ const LLAMMAS = ['sfrxeth'];
7
+
8
+ const swapCrvUSDTest = (id: string) => {
9
+ let llamma: LlammaTemplate;
10
+ let maxDebt: string;
11
+
12
+ before(async function () {
13
+ llamma = getLlamma(id);
14
+ maxDebt = await llamma.createLoanMaxRecv(0.3, 10);
15
+ await llamma.createLoan(0.3, maxDebt, 10)
16
+ });
17
+
18
+ after(async function () {
19
+ await llamma.fullRepay();
20
+ });
21
+
22
+
23
+ describe(`${id} llamma swap test`, function () {
24
+ for (let i = 0; i < 2; i++) {
25
+ for (let j = 0; j < 2; j++) {
26
+ if (i === j) continue;
27
+
28
+ it(`${i} --> ${j}`, async function () {
29
+ const initialBalances = await llamma.wallet.balances();
30
+ const swapAmount = i === 0 ? Number(maxDebt) / 10 : 0.003;
31
+ const expected = Number(await llamma.swapExpected(i, j, swapAmount));
32
+
33
+ await llamma.swap(i, j, swapAmount, 0.05);
34
+
35
+ const balances = await llamma.wallet.balances();
36
+ const out = Number(Object.values(balances)[j]) - Number(Object.values(initialBalances)[j]);
37
+
38
+ assert.deepStrictEqual(BN(Object.values(balances)[i]).toString(), BN(Object.values(initialBalances)[i]).minus(BN(swapAmount)).toString(), 'in');
39
+ assert.isAtMost(Math.abs(out - expected) / expected, 5 * 1e-3, 'out');
40
+ });
41
+ }
42
+ }
43
+ });
44
+ }
45
+
46
+ describe('Swap test', async function () {
47
+ this.timeout(120000);
48
+
49
+ before(async function () {
50
+ await llamalend.init('JsonRpc', {},{ gasPrice: 0 });
51
+ });
52
+
53
+ for (const llammaId of LLAMMAS) {
54
+ swapCrvUSDTest(llammaId);
55
+ }
56
+ })
@@ -0,0 +1,112 @@
1
+ import { assert } from "chai";
2
+ import llamalend from "../src/index.js";
3
+ import { getOneWayMarket, OneWayMarketTemplate } from "../src/markets/index.js";
4
+ import { BN } from "../src/utils.js";
5
+
6
+
7
+ const ONE_WAY_MARKETS = ['one-way-market-1'];
8
+
9
+ const vaultTest = (id: string) => {
10
+ describe(`${id} vault test`, function () {
11
+ let oneWayMarket: OneWayMarketTemplate;
12
+
13
+ before(async function () {
14
+ oneWayMarket = getOneWayMarket(id);
15
+ const maxRedeem = await oneWayMarket.vault.maxRedeem();
16
+ await oneWayMarket.vault.redeem(maxRedeem);
17
+ });
18
+
19
+ it("deposit", async function () {
20
+ const initialBalances = await oneWayMarket.wallet.balances();
21
+ const depositAmount = Number(await oneWayMarket.vault.maxDeposit()) / 2;
22
+ const expectedShares = await oneWayMarket.vault.previewDeposit(depositAmount);
23
+
24
+ await oneWayMarket.vault.deposit(depositAmount);
25
+
26
+ const balances = await oneWayMarket.wallet.balances();
27
+
28
+ assert.deepStrictEqual(BN(balances.borrowed).toString(), BN(initialBalances.borrowed).minus(depositAmount).toString(), 'assets');
29
+ const delta = Number(balances.vaultShares) - (Number(initialBalances.vaultShares) + Number(expectedShares));
30
+ assert.isAtMost(Math.abs(delta) / Number(balances.vaultShares), 1e-7, 'shares');
31
+ });
32
+
33
+ it("mint", async function () {
34
+ const initialBalances = await oneWayMarket.wallet.balances();
35
+ const mintAmount = Number(await oneWayMarket.vault.maxMint()) / 2;
36
+ const expectedAssets = await oneWayMarket.vault.previewMint(mintAmount);
37
+
38
+ await oneWayMarket.vault.mint(mintAmount);
39
+
40
+ const balances = await oneWayMarket.wallet.balances();
41
+
42
+ const delta = Number(balances.borrowed) - (Number(initialBalances.borrowed) - Number(expectedAssets));
43
+ assert.isAtMost(Math.abs(delta) / Number(balances.borrowed), 1e-10, 'assets');
44
+ assert.deepStrictEqual(BN(balances.vaultShares).toString(), BN(initialBalances.vaultShares).plus(mintAmount).toString(), 'shares');
45
+ });
46
+
47
+ it("stake", async function () {
48
+ const initialBalances = await oneWayMarket.wallet.balances();
49
+ const stakeAmount = Number(initialBalances.vaultShares) / 2;
50
+
51
+ await oneWayMarket.vault.stake(stakeAmount);
52
+
53
+ const balances = await oneWayMarket.wallet.balances();
54
+
55
+ assert.deepStrictEqual(balances.gauge, String(stakeAmount), 'gauge balance');
56
+ assert.deepStrictEqual(BN(balances.vaultShares), BN(initialBalances.vaultShares).minus(stakeAmount), 'wallet balance');
57
+ });
58
+
59
+ it("unstake", async function () {
60
+ const initialBalances = await oneWayMarket.wallet.balances();
61
+ const unstakeAmount = initialBalances.gauge;
62
+
63
+ await oneWayMarket.vault.unstake(unstakeAmount);
64
+
65
+ const balances = await oneWayMarket.wallet.balances();
66
+
67
+ assert.deepStrictEqual(balances.gauge, "0.0", 'gauge balance');
68
+ assert.deepStrictEqual(BN(balances.vaultShares), BN(initialBalances.vaultShares).plus(unstakeAmount), 'wallet balance');
69
+ });
70
+
71
+ it("withdraw", async function () {
72
+ const initialBalances = await oneWayMarket.wallet.balances();
73
+ const withdrawAmount = Number(await oneWayMarket.vault.maxWithdraw()) / 2;
74
+ const expectedShares = await oneWayMarket.vault.previewWithdraw(withdrawAmount);
75
+
76
+ await oneWayMarket.vault.withdraw(withdrawAmount);
77
+
78
+ const balances = await oneWayMarket.wallet.balances();
79
+
80
+ assert.deepStrictEqual(BN(balances.borrowed).toString(), BN(initialBalances.borrowed).plus(BN(withdrawAmount)).toString(), 'assets');
81
+ const delta = Number(balances.vaultShares) - (Number(initialBalances.vaultShares) - Number(expectedShares));
82
+ assert.isAtMost(Math.abs(delta) / Number(balances.vaultShares), 1e-8, 'shares');
83
+ });
84
+
85
+ it("redeem", async function () {
86
+ const initialBalances = await oneWayMarket.wallet.balances();
87
+ const redeemAmount = await oneWayMarket.vault.maxRedeem();
88
+ const expectedAssets = await oneWayMarket.vault.previewRedeem(redeemAmount);
89
+
90
+ await oneWayMarket.vault.redeem(redeemAmount);
91
+
92
+ const balances = await oneWayMarket.wallet.balances();
93
+
94
+ const delta = Number(balances.borrowed) - (Number(initialBalances.borrowed) + Number(expectedAssets));
95
+ assert.isAtMost(Math.abs(delta) / Number(balances.borrowed), 1e-10, 'assets');
96
+ assert.deepStrictEqual(BN(balances.vaultShares).toString(), BN(initialBalances.vaultShares).minus(redeemAmount).toString(), 'shares');
97
+ });
98
+ });
99
+ }
100
+
101
+ describe('Vault test', async function () {
102
+ this.timeout(120000);
103
+
104
+ before(async function () {
105
+ await llamalend.init('JsonRpc', {},{ gasPrice: 0 });
106
+ await llamalend.oneWayfactory.fetchMarkets();
107
+ });
108
+
109
+ for (const oneWayMarketId of ONE_WAY_MARKETS) {
110
+ vaultTest(oneWayMarketId);
111
+ }
112
+ })
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./lib",
5
+ "rootDir": "./src",
6
+ },
7
+ "exclude": [
8
+ "**/*.test.ts"
9
+ ]
10
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,72 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
4
+
5
+ /* Basic Options */
6
+ // "incremental": true, /* Enable incremental compilation */
7
+ "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8
+ "module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
9
+ "lib": ["ES2020"], /* Specify library files to be included in the compilation. */
10
+ // "allowJs": true, /* Allow javascript files to be compiled. */
11
+ // "checkJs": true, /* Report errors in .js files. */
12
+ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
13
+ "declaration": true, /* Generates corresponding '.d.ts' file. */
14
+ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
15
+ // "sourceMap": true, /* Generates corresponding '.map' file. */
16
+ // "outFile": "./", /* Concatenate and emit output to single file. */
17
+ "outDir": "./dist", /* Redirect output structure to the directory. */
18
+ "rootDir": ".", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
19
+ // "composite": true, /* Enable project compilation */
20
+ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
21
+ // "removeComments": true, /* Do not emit comments to output. */
22
+ // "noEmit": true, /* Do not emit outputs. */
23
+ // "importHelpers": true, /* Import emit helpers from 'tslib'. */
24
+ // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
25
+ // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
26
+
27
+ /* Strict Type-Checking Options */
28
+ "strict": true, /* Enable all strict type-checking options. */
29
+ // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
30
+ // "strictNullChecks": true, /* Enable strict null checks. */
31
+ // "strictFunctionTypes": true, /* Enable strict checking of function types. */
32
+ // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
33
+ // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
34
+ // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
35
+ // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
36
+
37
+ /* Additional Checks */
38
+ // "noUnusedLocals": true, /* Report errors on unused locals. */
39
+ // "noUnusedParameters": true, /* Report errors on unused parameters. */
40
+ // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
41
+ // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
42
+ // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
43
+ // "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
44
+
45
+ /* Module Resolution Options */
46
+ "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
47
+ // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
48
+ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
49
+ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
50
+ // "typeRoots": [], /* List of folders to include type definitions from. */
51
+ // "types": [], /* Type declaration files to be included in compilation. */
52
+ // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
53
+ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
54
+ // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
55
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
56
+
57
+ /* Source Map Options */
58
+ // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
59
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
60
+ // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
61
+ // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
62
+
63
+ /* Experimental Options */
64
+ // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
65
+ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
66
+
67
+ /* Advanced Options */
68
+ "skipLibCheck": true, /* Skip type checking of declaration files. */
69
+ "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
70
+ "resolveJsonModule": true
71
+ }
72
+ }