Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some comments #80

Open
wants to merge 563 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
563 commits
Select commit Hold shift + click to select a range
e9ab451
fix reserve
DaSichuan Dec 7, 2022
7895c4a
Merge pull request #12 from solendprotocol/fix_reserve
DaSichuan Dec 7, 2022
8a9656f
fix: remove styles folder
janvinsha Dec 7, 2022
a9bf42c
Revert "fix reserve"
DaSichuan Dec 7, 2022
5d33fea
add accumulatedProtocolFeesWads
DaSichuan Dec 7, 2022
ef1754a
Merge pull request #13 from janvinsha/uiv3
janvinsha Dec 7, 2022
92287ff
fix: Pool name
tahsintunan Dec 7, 2022
8fc4ea4
fix: placeholder domain error
janvinsha Dec 7, 2022
4889e85
fix: placeholder domain error
janvinsha Dec 7, 2022
324f761
Merge pull request #14 from janvinsha/uiv3
janvinsha Dec 7, 2022
242d079
bump to 0.6.8
0xCactus Dec 7, 2022
e098a18
Merge pull request #13 from solendprotocol/bump-sdk
0xCactus Dec 7, 2022
eb9f343
add publishing instructions to README
0xCactus Dec 7, 2022
add4519
Pool address format changed
tahsintunan Dec 7, 2022
a28f14b
remove hardcoded connection
tahsintunan Dec 7, 2022
5031134
Fix accumulatedProtoclFees
DaSichuan Dec 8, 2022
7b2b1f6
feat: breakdown views/home/index into smaller components
janvinsha Dec 8, 2022
fea0484
Merge pull request #15 from janvinsha/uiv3
janvinsha Dec 8, 2022
18bbda0
Merge pull request #5 from janvinsha/master
0xodia Dec 9, 2022
be5e949
v0.6.9
0xCactus Dec 11, 2022
ac36902
Merge pull request #15 from solendprotocol/bump-sdk-0.6.9
0xCactus Dec 11, 2022
303c29c
use solend-sdk
0xCactus Dec 7, 2022
29acf96
fix lint
0xCactus Dec 11, 2022
f8ea70e
Merge pull request #14 from solendprotocol/use-sdk
0xCactus Dec 11, 2022
051db1e
add solend lite
0xodia Dec 15, 2022
12866c8
Merge pull request #17 from solendprotocol/add-solend-lite
0xodia Dec 15, 2022
00f90df
Exit if poolTokens eq 0
Johnnycus Dec 19, 2022
c794200
fallback to previous pyth price
0xCactus Jan 10, 2023
19e506a
Merge pull request #18 from solendprotocol/fallback-to-last-price
0xCactus Jan 10, 2023
edcf4a5
add confirmTransaction to rpc wrapper
0xCactus Jan 12, 2023
2841ffe
Merge pull request #19 from solendprotocol/add-confirmTransaction-Sol…
0xCactus Jan 12, 2023
d843c04
add .gitmodules
0xCactus Jan 12, 2023
97b2808
actions bugfix
0xripleys Feb 2, 2023
4650b7b
removed solend-lite submodule
0xripleys Feb 10, 2023
736b440
move lite to subdirectory
0xodia Feb 10, 2023
9d54e5a
Merge pull request #6 from solendprotocol/lite-in-folder
0xodia Feb 10, 2023
53447ec
Merge branch 'lite5' into remove-lite-submodule
0xripleys Feb 10, 2023
37be4d1
Merge pull request #22 from solendprotocol/remove-lite-submodule
0xodia Feb 10, 2023
a077ce0
solend lite refactor
0xodia Feb 11, 2023
a269c52
regenerate yarn.lock
0xodia Feb 11, 2023
692d201
update sdk lock
0xodia Feb 11, 2023
a40e316
resolve different spl-token versions between lite and sdk
0xodia Feb 11, 2023
ba4172b
declare public as workspace
0xodia Feb 11, 2023
a6191cf
add bn.js to package.json
0xodia Feb 12, 2023
e8232c1
setup workspace
0xodia Feb 13, 2023
c267146
add workspace package.json
0xodia Feb 13, 2023
d704404
Merge pull request #21 from solendprotocol/add-solend-lite
0xodia Feb 13, 2023
a2451c3
rename liquidator package
0xodia Feb 13, 2023
5599bb7
Merge pull request #23 from solendprotocol/rename-liquidator-package
0xodia Feb 13, 2023
acc4b68
use alchemy as default node
0xodia Feb 13, 2023
330c3a2
lite mode mobile view
0xodia Feb 14, 2023
c837b68
Merge pull request #24 from solendprotocol/lite-mobile
0xodia Feb 14, 2023
d42602f
bugs
0xodia Feb 16, 2023
b70a756
bug bash 1
0xodia Feb 24, 2023
38f4bba
fix strict tsc changes
0xodia Feb 24, 2023
fa2683e
remove console.logs
0xodia Feb 24, 2023
31aabd9
move dashboard files
0xodia Feb 24, 2023
519647a
Merge pull request #25 from solendprotocol/bugbash1
0xodia Feb 24, 2023
1edfddd
sortable tables and other improvements
0xodia Feb 24, 2023
eb323c6
remove comments
0xodia Feb 24, 2023
f6930cb
ignore vscode settings
0xodia Feb 24, 2023
b9c11be
Merge pull request #26 from solendprotocol/sortable-tables
0xodia Feb 24, 2023
0e7deda
fix big input
0xodia Feb 26, 2023
913a924
Merge pull request #27 from solendprotocol/fix-big-input
0xodia Feb 26, 2023
5e79aab
release script
0xodia Feb 27, 2023
5bfef84
Merge pull request #28 from solendprotocol/release-script
0xodia Feb 27, 2023
1b2d321
move utils to sdk core
0xodia Feb 27, 2023
4391f31
remove action
0xodia Feb 27, 2023
9267806
Merge pull request #29 from solendprotocol/move-utils-to-sdk
0xodia Feb 27, 2023
486661a
Add SolendActionCore
0xodia Feb 28, 2023
1184937
lints
0xodia Feb 28, 2023
4d2171b
Merge pull request #30 from solendprotocol/actions-to-sdk
0xodia Feb 28, 2023
66203d9
contextual modal open
0xodia Feb 28, 2023
2bcb442
Merge pull request #31 from solendprotocol/tab-open
0xodia Feb 28, 2023
b28809e
Update README.md
0xodia Feb 28, 2023
2c945e8
Create README.md
0xodia Feb 28, 2023
2df52c6
Update README.md
0xodia Feb 28, 2023
5cac5b7
remove simulateTransaction
0xodia Feb 28, 2023
f3eed24
Merge pull request #32 from solendprotocol/delete-simulate
0xodia Feb 28, 2023
eee76ea
Fix api link
0xodia Feb 28, 2023
4844e54
Update README.md
0xodia Feb 28, 2023
1f259c9
Update README.md
0xodia Feb 28, 2023
faed25a
add example image to readme
0xodia Mar 1, 2023
1639882
Reference solend lite
0xodia Mar 1, 2023
6d00de0
propagate authority address from backend
0xodia Mar 1, 2023
039a6c5
Merge pull request #33 from solendprotocol/propagrate-authority
0xodia Mar 1, 2023
7bcee4b
small changes
0xodia Mar 2, 2023
152421f
Merge pull request #34 from solendprotocol/small-changes
0xodia Mar 2, 2023
8378b69
feedback
0xodia Mar 2, 2023
8c5327f
Merge pull request #35 from solendprotocol/lite-feedback
0xodia Mar 2, 2023
0268f04
ctoken fees bug
0xodia Mar 3, 2023
39553f8
Merge pull request #36 from solendprotocol/ctoken-bug
0xodia Mar 3, 2023
846248f
decode reserve properly
0xodia Mar 3, 2023
b84e793
Merge pull request #37 from solendprotocol/reserve-decoder
0xodia Mar 3, 2023
2f41345
order nav better
0xodia Mar 3, 2023
18795e5
Merge pull request #38 from solendprotocol/order-nav
0xodia Mar 3, 2023
d82fd98
ui nits
0xodia Mar 6, 2023
859cc0d
Merge pull request #39 from solendprotocol/ui-nits
0xodia Mar 6, 2023
e5cafe6
Add parser for v2 reserves
DaSichuan Mar 23, 2023
e46ed3f
Merge pull request #40 from solendprotocol/reserve_v2
DaSichuan Mar 23, 2023
19a4063
bump @types/node
0xCactus Mar 23, 2023
3a92675
fix u64
0xCactus Mar 24, 2023
18f3c44
Merge pull request #41 from solendprotocol/fix-u64
0xCactus Mar 24, 2023
c12304f
bump sdk version
0xCactus Mar 24, 2023
7d5792c
fix reserve decoding
0xCactus Mar 25, 2023
59a647f
bump sdk version
0xCactus Mar 25, 2023
f4ec3fd
Merge pull request #42 from solendprotocol/fix-reserve-decoding
0xCactus Mar 25, 2023
486b35e
update addedBorrowWeightBPS to BN
0xCactus Mar 25, 2023
45001f5
bump sdk version
0xCactus Mar 25, 2023
8a89770
Merge pull request #43 from solendprotocol/update-added_borrow_weight…
0xCactus Mar 25, 2023
993da89
fix borrowWeight
0xCactus Mar 28, 2023
97f606c
Merge pull request #44 from solendprotocol/fix-reserve-borrowWeight
0xCactus Mar 28, 2023
a3de7e5
add support for zstd compressed decodes
nope-finance Jan 28, 2023
c8d8068
added basic test
nope-finance Jan 28, 2023
74fddff
lint
nope-finance Mar 28, 2023
c67cd04
Merge pull request #20 from solendprotocol/zsdt_decode
nope-finance Mar 28, 2023
e58df86
use BN math for borrow weight calc
0xodia Mar 29, 2023
d719976
markets
DaSichuan Mar 29, 2023
9a9ab15
Merge pull request #48 from solendprotocol/bn-math
0xodia Mar 29, 2023
d096639
Merge pull request #49 from solendprotocol/markets
DaSichuan Mar 29, 2023
e16a46d
Add v2 obligations
DaSichuan Mar 29, 2023
2286de1
Merge pull request #47 from solendprotocol/obligations
DaSichuan Mar 29, 2023
252b28f
Fix reserve serialization
DaSichuan Mar 29, 2023
1035059
Fix reserve check
DaSichuan Mar 29, 2023
cb20945
change borrow weight to big number
0xodia Apr 18, 2023
7869a32
Merge pull request #50 from solendprotocol/borrow-weight-big-number
0xodia Apr 18, 2023
199df10
bump version
0xodia Apr 18, 2023
8a4dfaf
fix percent
0xodia May 15, 2023
a7bf3ea
Merge pull request #4 from igneous-labs/feat/unwrap-xsol
0xCactus May 16, 2023
33ad93b
Pin typescript version to 4.5.2
DaSichuan May 25, 2023
edc4711
pin @solana/web3.js to 1.76.0
DaSichuan May 25, 2023
833c5dd
Pin liquidator and solend-lite to 1.76.0 for web3.js
DaSichuan May 25, 2023
08f9aa9
1.76.1 -> 1.76.0
DaSichuan May 25, 2023
aae920d
v2 instruction changes
0xripleys May 28, 2023
2d9491c
Merge branch 'master' of solend.github.com:solendprotocol/public
0xripleys May 28, 2023
b84adc6
another v2 fix
0xripleys May 28, 2023
cc8e20c
update metadata instruction
0xripleys May 29, 2023
1aa823d
state changes
0xripleys Jul 12, 2023
ae1df08
instruction changes
0xripleys Jul 12, 2023
36f30cf
prettier + lint
0xripleys Jul 12, 2023
70398bc
v2 changes
0xodia Jul 12, 2023
1ef27bc
change system program thingy
0xripleys Jul 12, 2023
fdc44bd
build works
0xripleys Jul 12, 2023
98c6d41
fix account metrics
0xodia Jul 12, 2023
b3dc84e
fix lint issues
0xodia Jul 12, 2023
b66c863
Merge pull request #52 from solendprotocol/v2-changes
0xodia Jul 12, 2023
fa9f445
Merge pull request #51 from solendprotocol/v2.0.2
0xodia Jul 12, 2023
0d6da53
lite changes
0xodia Jul 24, 2023
877eb14
remove console log
0xodia Jul 24, 2023
4cb568c
add comment for deca bp
0xodia Jul 24, 2023
e82d4db
Merge pull request #53 from solendprotocol/2.0.2-lite-changes
0xodia Jul 24, 2023
e1f44b3
reverse deca bps conversion
0xodia Jul 24, 2023
ad2e210
Merge pull request #54 from solendprotocol/reverse-deca-bps
0xodia Jul 24, 2023
5dfe596
v2.0.2 fixes
0xodia Jul 25, 2023
bea448c
Merge pull request #55 from solendprotocol/v2.0.2-fixes
0xodia Jul 25, 2023
405daa6
bump package version
0xodia Jul 25, 2023
185b590
update reserve config fixes
0xodia Jul 27, 2023
fa0fbe0
fix rate limiter
0xodia Aug 2, 2023
df622fe
Merge pull request #56 from solendprotocol/fix-rate-limiter-calc
0xodia Aug 2, 2023
3ef8c61
changes
0xripleys Aug 7, 2023
bf94e5a
camelcase
0xripleys Aug 7, 2023
0e41b4e
fix build errors
0xCactus Aug 7, 2023
d1ea0cf
fix lint error
0xCactus Aug 7, 2023
95cb364
pin hubble deps
0xCactus Aug 7, 2023
976b639
mark lending market mutable
0xripleys Aug 8, 2023
11fef04
Merge pull request #57 from solendprotocol/v2.0.2-liquidator-changes
0xripleys Aug 8, 2023
220e51f
rates fix
0xripleys Aug 15, 2023
cb7a39d
setLendingMarketOwnerAnConfig update
0xodia Aug 16, 2023
a94dccc
Merge pull request #58 from solendprotocol/update-market-fix
0xodia Aug 16, 2023
72b5e4c
fix rates
0xodia Aug 16, 2023
e5712f0
Merge pull request #59 from solendprotocol/fix-rates
0xodia Aug 16, 2023
4232f09
fix flex pool
0xodia Aug 29, 2023
6032b79
Merge pull request #60 from solendprotocol/fix-fetch-pool
0xodia Aug 29, 2023
f0d9227
add supermax borrow rate to init reserve instruction generation
nope-finance Sep 1, 2023
75e40e8
Merge pull request #61 from solendprotocol/fix_init_reserve
nope-finance Sep 1, 2023
3e3d6f5
fix init reserve again
nope-finance Sep 1, 2023
5cddfc8
fix real
nope-finance Sep 1, 2023
1eff5c9
superMaxBorrowRate fix
0xripleys Sep 1, 2023
3798877
Merge branch 'master' of solend.github.com:solendprotocol/public
0xripleys Sep 1, 2023
d2270be
fixes
0xripleys Sep 1, 2023
1764d4a
prettier
0xripleys Sep 1, 2023
692df38
fixfixfix
nope-finance Sep 1, 2023
41b77d1
add error message util
0xodia Sep 18, 2023
598f3d7
Merge pull request #62 from solendprotocol/add-error-message-util
0xodia Sep 18, 2023
5c7b5d4
fix withdraw for lite
0xodia Sep 18, 2023
eaf3f7b
bump sdk version
0xodia Sep 18, 2023
107879c
fix build
0xodia Sep 20, 2023
578d22d
fix lite build attemp 2
0xodia Sep 20, 2023
cb82baf
fix lcs
0xodia Sep 20, 2023
13c0681
fix eslint dependencies
0xodia Sep 20, 2023
b707cd9
match eslint versions
0xodia Sep 20, 2023
f230410
update typescript packages
0xodia Sep 20, 2023
9a38ec5
Update SolendRPCConnection
DaSichuan Oct 5, 2023
f8b5670
update target compiler
DaSichuan Oct 5, 2023
537c424
Merge pull request #63 from solendprotocol/update_target_compiler
DaSichuan Oct 5, 2023
63dca13
add extra fields to config
0xodia Oct 17, 2023
3abeac0
Merge pull request #64 from solendprotocol/add-fields-to-config
0xodia Oct 17, 2023
b8b65b7
bump version
0xodia Oct 17, 2023
1ccbb31
add reserve address to config
0xodia Oct 17, 2023
4895a1b
Merge pull request #65 from solendprotocol/add-address-reserve-config
0xodia Oct 17, 2023
adeb3a8
serialize protocol liquidation fee as deca bps
0xodia Nov 21, 2023
6a9f001
update protocol liquiodation fee and fix lite
0xodia Dec 13, 2023
60d4abb
add reserve type
0xodia Jan 21, 2024
e3e5da4
copied apy calculation code from solend-lite to sdk (calculation was …
silostack Mar 15, 2024
5c47dd4
revert minor type change
silostack Mar 15, 2024
59c1b6e
bump version for patch release
silostack Mar 16, 2024
c9681f3
removed dupe code
silostack Mar 18, 2024
7693be2
removed unused functions
silostack Mar 19, 2024
cf6dcb2
just some slight changes
nope-finance Mar 20, 2024
4460b23
fix node version
nope-finance Mar 20, 2024
2f433e3
Merge pull request #70 from silostack/fix/supply-apy-calculation
nope-finance Mar 20, 2024
8e1b892
bump version
0xodia Mar 20, 2024
63a07b1
sdk refactor
0xodia Apr 3, 2024
5e4cc66
lint
0xodia Apr 3, 2024
4ceba7b
add nvm.rc
0xodia Apr 3, 2024
efc3925
Merge pull request #73 from solendprotocol/sdk-refactor
0xodia Apr 3, 2024
8fe7a0a
new sdk layout
0xodia Apr 29, 2024
f9dfe6d
Merge pull request #74 from solendprotocol/new-sdk-layout
0xodia Apr 29, 2024
8295e87
used forked utl
0xodia Apr 29, 2024
2ea4f90
2.0.3 changes
0xodia May 28, 2024
b63df8f
Merge pull request #77 from solendprotocol/sdk-upgrade
0xodia May 28, 2024
dc75860
update wrapper program
0xodia May 29, 2024
878da61
fix ctoken mint and redeem
0xodia Jun 3, 2024
94dae8f
Pin typescript version
DaSichuan Jun 6, 2024
9dc281b
Merge pull request #78 from solendprotocol/FixBuild
DaSichuan Jun 7, 2024
71d5f12
Fix getProgramAccounts
DaSichuan Jun 7, 2024
2f33333
Set spl-token to 0.1.8
DaSichuan Jun 7, 2024
a807340
Revert "Set spl-token to 0.1.8"
DaSichuan Jun 7, 2024
34600bd
Set spl-token to 0.3.6
DaSichuan Jun 7, 2024
3275725
Fix buffer-layout imports
DaSichuan Jun 7, 2024
a05cddd
Remove SDK import in SDK
DaSichuan Jun 7, 2024
3830075
update sdk
0xodia Jun 8, 2024
e9a1a5f
update lite to work with 2.0.3
0xodia Jun 10, 2024
0afcd1d
update lite ts version
0xodia Jun 10, 2024
50af403
add missing file
0xodia Jun 10, 2024
8f82b6f
check in yarn lock
0xodia Jun 12, 2024
2cca197
try resolving websocket
0xodia Jun 12, 2024
180046f
explicitly install websocket
0xodia Jun 12, 2024
99b1866
support new pyth oracles
0xodia Jul 15, 2024
8f9454a
bump version
0xodia Jul 15, 2024
832b29c
pull oracles
0xodia Jul 17, 2024
87b8182
pull oracle fixes
0xodia Jul 17, 2024
64bb9c4
bump version
0xodia Jul 19, 2024
23bf8f2
fix sb pull oracles
0xodia Jul 19, 2024
fef52fa
update sb sdk
0xodia Aug 6, 2024
55882a2
fix support ix refactor
0xodia Aug 9, 2024
11d8a80
always pull oracle
0xodia Aug 10, 2024
0dca080
fix look up table access
0xodia Aug 10, 2024
0189ae5
reinstate pyth pull logic
0xodia Aug 11, 2024
5014a9f
chore: fix some comments
mountdisk Aug 16, 2024
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
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/liquidator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Liquidator CI

on:
push:
paths:
- "liquidator/**"
- ".github/workflows/liquidator.yml"
pull_request:
paths:
- "liquidator/**"
- ".github/workflows/liquidator.yml"

jobs:
lint_and_build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./liquidator
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Lint
run: yarn lint
- name: Build
run: yarn build
30 changes: 30 additions & 0 deletions .github/workflows/solend-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Solend SDK CI

on:
push:
paths:
- "solend-sdk/**"
- ".github/workflows/solend-sdk.yml"
pull_request:
paths:
- "solend-sdk/**"
- ".github/workflows/solend-sdk.yml"

jobs:
lint_and_build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./solend-sdk
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Lint
run: yarn lint
- name: Build
run: yarn build
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
node_modules/
.vscode
.DS_Store
node_modules
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Solend Public
Solend public is a monorepo of public reposititories meant to benefit from a yarn workspace setup. This includes:
- Solend SDK, a Typescript SDK for interacting with the Solend program
- Solend LITE, a lightweight open-source Solend client, powered by and developed alongside the Solend SDK
- Solend Liquidator, a starting point for the Solend community to build their liquidator bots
75 changes: 0 additions & 75 deletions __tests__/examples.test.ts

This file was deleted.

7 changes: 0 additions & 7 deletions jest.config.js

This file was deleted.

1 change: 1 addition & 0 deletions liquidator/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
76 changes: 76 additions & 0 deletions liquidator/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react', 'import'],
extends: [
'eslint:recommended',
'airbnb-typescript',
'plugin:@typescript-eslint/eslint-recommended',
],
env: {
node: true,
jest: true,
es6: true,
},
parserOptions: {
project: ['./tsconfig.eslint.json', './tsconfig.json'],
ecmaVersion: 2015,
sourceType: 'module',
tsconfigRootDir: __dirname,
},
rules: {
'no-shadow': 'off',
'jest/no-focused-tests': 0,
'class-methods-use-this': 0,
'no-use-before-define': 0,
'no-await-in-loop': 0,
'no-underscore-dangle': 0,
'no-trailing-spaces': ['error', { ignoreComments: true }],
'import/prefer-default-export': 0,
'global-require': 'warn',
'no-restricted-imports': [
'error',
{
patterns: ['..*'],
},
],
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'variableLike',
custom: {
regex: '^([Aa]ny|[Nn]umber|[Ss]tring|[Bb]oolean|[Uu]ndefined)$',
match: false,
},
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
leadingUnderscore: 'allow',
trailingUnderscore: 'allow',
},
{
selector: 'typeLike',
custom: {
regex: '^([Aa]ny|[Nn]umber|[Ss]tring|[Bb]oolean|[Uu]ndefined)$',
match: false,
},
format: ['PascalCase'],
},
],
'max-len': 'off',
'no-console': 'off',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.d.ts', '.ts', '.tsx'],
moduleDirectory: ['node_modules', 'src'],
paths: 'src',
},
},
// silence dumb react warning
react: { version: '999.999.999' },
},
};
9 changes: 9 additions & 0 deletions liquidator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# generated
**/node_modules

# production
build/
.env

# misc
id.json
30 changes: 30 additions & 0 deletions liquidator/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "liquidate",
"type": "node",
"request": "launch",
"args": [
"${workspaceRoot}/src/liquidate.ts",
],
"runtimeArgs": [
"-r",
"ts-node/register",
"-r",
"tsconfig-paths/register"
],
"cwd": "${workspaceRoot}",
"internalConsoleOptions": "openOnSessionStart",
"runtimeExecutable": "/usr/local/bin/node",
"outputCapture": "std",
"env": {
"APP": "production",
"THROTTLE": "1000"
}
},
]
}
22 changes: 22 additions & 0 deletions liquidator/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM node:16-alpine3.11


# Create Directory for the Container
RUN mkdir -p /home/solend/app
WORKDIR /home/solend/app

# Increase heap size
ENV NODE_OPTIONS=--max_old_space_size=4096

# Only copy the package.json file to work directory
COPY package.json package-lock.json ./
# Install all Packages
RUN npm install

# Copy all other source code to work directory
COPY src /home/solend/app/src
COPY tsconfig.json /home/solend/app
RUN npm run build

# Start
CMD ["npm", "start"]
21 changes: 21 additions & 0 deletions liquidator/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Solend

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading