Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,8 @@ jobs:
run: |
npm ci
npm run build
- name: "Build React production application"
working-directory: src/ui
run: |
npm ci
npm run build
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This project is the implementation of Compound Protocol on Tezos chain using SmartPy language.

Node.js 22 is required for the JavaScript and TypeScript packages. Run `nvm use` from the repository root before installing dependencies.

The diagram demonstrates relations between contracts
![](https://github.com/RSerhii/TezFin/blob/master/docs/ContractsRelations.png)

Expand Down Expand Up @@ -376,9 +378,10 @@ npm install
```sh
cd src/ui
npm install
npm run build
```

2. Run
3. Run

```sh
cd src/ui
Expand Down
89 changes: 56 additions & 33 deletions postdeploy/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions postdeploy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "0.0.1-alpha",
"description": "Utility for testing the tezfin wrapper code and contracts",
"private": true,
"engines": {
"node": "22.x"
},
"scripts": {
"postinstall": "npm run build",
"build": "rm -rf ./build/ && tsc",
Expand All @@ -12,7 +15,7 @@
"author": "Stable Technologies",
"license": "MIT",
"dependencies": {
"bignumber.js": "^9.0.1",
"bignumber.js": "^10.0.2",
"conseiljs": "5.3.0",
"conseiljs-softsigner": "^5.0.4",
"csv": "^6.1.0",
Expand All @@ -24,6 +27,6 @@
},
"devDependencies": {
"@types/node-fetch": "^2.5.7",
"typescript": "^4.1.2"
"typescript": "^4.9.5"
}
}
10 changes: 10 additions & 0 deletions src/ui/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
const webpack = require('webpack');

module.exports = function override(config) {
const oneOfRule = config.module && config.module.rules
? config.module.rules.find((rule) => Array.isArray(rule.oneOf))
: undefined;
if (oneOfRule) {
oneOfRule.oneOf.unshift({
test: /\.cjs$/,
type: 'javascript/auto'
});
}

const fallback = config.resolve.fallback || {};
Object.assign(fallback, {
crypto: require.resolve('crypto-browserify'),
Expand Down
Loading
Loading