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

replaced deprecated libraries #16

Open
wants to merge 261 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
494357f
Merge pull request #3 from solendprotocol/support-USDT
0xCactus Aug 31, 2021
bfcdec8
re-add reserve refreshes
0xCactus Sep 2, 2021
b7d7c98
Merge pull request #5 from solendprotocol/re-add-reserve-refreshes
0xCactus Sep 2, 2021
3ee1c22
support FTT and make liquidator not break when new assets are added
0xCactus Sep 3, 2021
2da0ba4
Merge pull request #6 from solendprotocol/new-asset
0xCactus Sep 3, 2021
4752a53
continue onto next obligation on errors
0xCactus Sep 4, 2021
08b9bb3
Merge pull request #7 from solendprotocol/continue-onto-next-obg-on-e…
0xCactus Sep 4, 2021
dd1ca4a
update common pkg for ray
0xCactus Sep 8, 2021
0c4c823
Merge pull request #8 from solendprotocol/update-common-for-ray
0xCactus Sep 8, 2021
ae32525
limit liquidation amount to wallet's token balance
0xCactus Sep 10, 2021
5648bf7
Merge pull request #9 from solendprotocol/limit-liquidation-amount
0xCactus Sep 10, 2021
f9b03fa
remove ctoken redemption threshold
0xCactus Sep 11, 2021
97ecdc9
Merge pull request #10 from solendprotocol/remove-ctoken-threshold
0xCactus Sep 11, 2021
1c33a45
create wSOL ATA if necessary
0xCactus Sep 13, 2021
9610797
Merge pull request #11 from solendprotocol/create-wSOL-ata-if-needed
0xCactus Sep 13, 2021
a955b3c
filter undefined obligation
0xCactus Sep 30, 2021
fce0ff7
Merge pull request #12 from solendprotocol/check-undefined-obligation
0xCactus Sep 30, 2021
072a97e
update common pkg to 1.1.30
0xCactus Oct 7, 2021
e15fd1b
Merge pull request #13 from solendprotocol/update-common-pkg
0xCactus Oct 7, 2021
4473b38
update common pkg to 1.1.31
0xCactus Oct 11, 2021
5766f2c
Merge pull request #14 from solendprotocol/update-common-pkg-1.1.31
0xCactus Oct 11, 2021
67235a4
Fix for error TS2345 when running from docker
after-the-sunrise Nov 3, 2021
dba1a43
remove redundant refreshes
RadiantAeon Nov 5, 2021
c42d621
Merge pull request #16 from RealAwesomeness/main
0xCactus Nov 6, 2021
20a8275
fix pyth.ts typescript
0xCactus Nov 8, 2021
570c9f9
Merge pull request #18 from solendprotocol/fix-pyth-file-typescript
0xCactus Nov 8, 2021
fbaaf94
update common pkg 1.1.38
0xCactus Nov 9, 2021
420b530
Merge pull request #19 from solendprotocol/update-common-pkg-1.1.38
0xCactus Nov 9, 2021
e183c31
fix bn invalid char from super tiny amount
0xCactus Nov 19, 2021
4a2a75a
Merge pull request #20 from solendprotocol/fix-bn-invalid-char
0xCactus Nov 19, 2021
e953112
Merge pull request #15 from after-the-sunrise/main
0xCactus Dec 6, 2021
8c7058e
bump common 1.1.41
0xCactus Dec 7, 2021
07ea3db
Merge pull request #21 from solendprotocol/bump-common-to-1.1.41
0xCactus Dec 7, 2021
4bb1fa8
Merge pull request #1 from solendprotocol/wangart/add-marinade-example
0xodia Dec 10, 2021
bd00d8c
fix type
0xodia Dec 10, 2021
3153a69
Merge pull request #2 from solendprotocol/wangart/fix-type
0xodia Dec 10, 2021
3f3d50c
add type doc
0xodia Dec 14, 2021
8d15180
Merge pull request #3 from solendprotocol/wangart/add-type-doc
0xodia Dec 14, 2021
ad408ac
Create CNAME
0xodia Dec 14, 2021
673d5e6
Add actions example
0xodia Dec 18, 2021
8bd4bd7
update docs
0xodia Dec 18, 2021
d006f92
Create CNAME
0xodia Dec 18, 2021
63be380
bump common 1.1.43
0xCactus Dec 22, 2021
1665537
Merge pull request #22 from solendprotocol/bump-common-to-1.1.43
0xCactus Dec 22, 2021
b666682
use switchboard
0xCactus Dec 22, 2021
e1a85bc
Merge pull request #23 from solendprotocol/use-switchboard
0xCactus Dec 22, 2021
e05cb99
wip solend sdk classes
0xodia Jan 7, 2022
129c49f
missing files
0xodia Jan 7, 2022
a20ebb4
code complete
0xodia Jan 10, 2022
661aace
lint
0xodia Jan 10, 2022
a65e155
Merge pull request #4 from solendprotocol/wangart/code-complete
0xodia Jan 10, 2022
36c887c
Update README.md
0xodia Jan 10, 2022
0040e2e
Update README.md
0xodia Jan 10, 2022
846c7f8
Update README.md
0xodia Jan 10, 2022
111d4d7
Update README.md
0xodia Jan 10, 2022
14292ae
Update README.md
0xodia Jan 10, 2022
f377ae8
Delete CNAME
0xodia Jan 10, 2022
d997313
Create CNAME
0xodia Jan 10, 2022
59340f3
update docs
0xodia Jan 10, 2022
d838057
Merge pull request #5 from solendprotocol/wangart/code-complete
0xodia Jan 10, 2022
3fb7482
v0.4.0
0xodia Jan 10, 2022
37c0e9b
Update README.md
0xodia Jan 10, 2022
afc1f46
Update README.md
0xodia Jan 10, 2022
915ca43
Merge branch 'master' of 0xodiagithub.com:solendprotocol/solend-sdk
0xodia Jan 10, 2022
37fb9b5
Update README.md
0xodia Jan 10, 2022
e9acb79
fix new asset bug
0xodia Jan 11, 2022
7acca74
Create CNAME
0xodia Jan 11, 2022
19bc485
v0.4.2
0xodia Jan 12, 2022
bb82bee
0.4.2 allow sol max repay
0xodia Jan 12, 2022
c891660
Merge pull request #1 from solendprotocol/allow-max-sol-repay
0xodia Jan 12, 2022
117003b
fix first obligation creation
0xodia Jan 13, 2022
7aea715
Merge pull request #2 from solendprotocol/fix-create-obligation
0xodia Jan 13, 2022
eabe231
v0.4.3
0xodia Jan 13, 2022
c2c91ed
use axios
0xodia Jan 13, 2022
bdd6754
lint
0xodia Jan 13, 2022
0af98df
update test
0xodia Jan 13, 2022
c412d11
lint docs
0xodia Jan 13, 2022
e2ed669
Merge pull request #3 from solendprotocol/use-axios
0xodia Jan 13, 2022
04419f6
v0.4.4
0xodia Jan 13, 2022
56fab66
Update common version
0xodia Jan 27, 2022
d5d7b1e
Merge pull request #25 from solendprotocol/update-common-1164
0xodia Jan 27, 2022
ea253c4
Support multiple lending market
0xCactus Feb 1, 2022
392a06b
Merge pull request #26 from solendprotocol/much-needed-update
0xCactus Feb 1, 2022
1cc9698
use new liquidateObligationAndRedeem instruction
0xCactus Mar 17, 2022
12e655d
Merge pull request #29 from solendprotocol/use-new-liquidate-obligati…
0xCactus Mar 17, 2022
7cee1ea
support sbv2
0xCactus Apr 21, 2022
53ac85f
Merge pull request #30 from solendprotocol/support-sbv2
0xCactus May 3, 2022
aa8d96f
launch json
solendvega Jun 17, 2022
6bccdd4
deprecate config
solendvega Jun 17, 2022
96707b9
clean up
solendvega Jun 17, 2022
07b0424
v0.4.5
0xodia Jan 20, 2022
bbd76ba
fix max functionality in actions
0xodia Jan 20, 2022
80c9361
add init reserve and init market ix
0xodia Jan 25, 2022
7f17e17
v0.4.6
0xodia Jan 25, 2022
a0343d9
Remove lendingMarketAuthority as arg in depositObligationCollateral (#6)
0xkiplet Jan 25, 2022
4ea2293
Fix initReserve and polyfill buffer for browser
0xodia Jan 27, 2022
783a7f5
v0.4.7
0xodia Jan 27, 2022
7373a74
fix init reserve
0xodia Jan 27, 2022
e5074eb
v0.4.8
0xodia Jan 27, 2022
d7caea6
v0.4.9
0xodia Jan 27, 2022
53b235a
update docs
0xodia Jan 27, 2022
3692ab5
isolated support
0xodia Feb 8, 2022
75eb774
update docs
0xodia Feb 8, 2022
444358c
update docs
0xodia Feb 8, 2022
8d4bcc4
bump version to 0.5.0
0xodia Feb 8, 2022
cbef39f
update readme with isolated pools example
0xodia Feb 8, 2022
c5f3154
correct apy calculations
0xodia Feb 10, 2022
8fe8804
bump to 0.5.1
0xodia Feb 10, 2022
16166b9
Fix ctoken minting
0xodia Feb 25, 2022
cec64d5
v0.5.2
0xodia Feb 25, 2022
0a1d2b4
revert refresh fix
0xodia Feb 25, 2022
07ab8e9
add back mint fix
0xodia Feb 25, 2022
98e4ff4
Fix number overflow: Number can only safely store up to 53 bits
aaronovz1 Mar 10, 2022
2f04f46
v0.5.5
0xodia Mar 10, 2022
61478f6
Update README.md
0xdhu Mar 31, 2022
afeb724
Include wormhole ETH in program id documentation
andreihrs Mar 15, 2022
a13ed3f
modularize files
0xodia May 5, 2022
f015aef
v0.5.6
0xodia May 9, 2022
f5d378c
remove example directory
0xodia May 18, 2022
59874ee
v0.5.7
0xodia May 18, 2022
50b3edd
bump buffer-layout to 4.0.0
0xodia Jun 6, 2022
2f0cb55
v0.5.8
0xodia Jun 6, 2022
550e2d1
Add reward claim functionality and SolendWallet abstraction
0xodia Jun 1, 2022
59909ca
add option exercising
0xodia Jun 1, 2022
fffb691
wip
0xodia Jun 6, 2022
f229a84
add rewards functionality
0xodia Jun 6, 2022
472479a
edit readme
0xodia Jun 6, 2022
888d3fc
add basic test
0xodia Jun 6, 2022
053e572
v0.5.9
0xodia Jun 6, 2022
728e8d1
v0.6.0
0xodia Jun 6, 2022
639b2e9
change rpc
solendvega Jun 21, 2022
bcc49a9
clean up and fix one extra usage
solendvega Jun 21, 2022
7f79945
linter
solendvega Jun 21, 2022
6ef230c
address comments
solendvega Jun 21, 2022
fab4449
Update src/config.ts
solendvega Jun 23, 2022
05bcc5f
Update src/config.ts
solendvega Jun 23, 2022
0cad81e
Update src/config.ts
solendvega Jun 23, 2022
4a833e6
comments
solendvega Jun 23, 2022
1d3b646
Merge branch 'deprecate-config' of github.com:solendprotocol/liquidat…
solendvega Jun 23, 2022
03a405b
Merge pull request #33 from solendprotocol/deprecate-config
solendvega Jun 23, 2022
590f3a0
Adds updateReserveConfig instruction to sdk (#21)
0xtailsoup Jun 23, 2022
2ce0f58
=== -> eq
billythedummy Jul 13, 2022
d05f962
Merge pull request #23 from igneous-labs/fix/bn-eq
0xodia Jul 14, 2022
f613122
adding auto swapping and targeting specific markets
0xCactus Jul 18, 2022
77814bd
Merge pull request #37 from solendprotocol/auto-swap
0xCactus Jul 18, 2022
2ca1cc0
added .env to ignore
joemccann Jul 28, 2022
56eefe3
added check for secret file path as env var
joemccann Jul 28, 2022
f25db1c
added dotenv to config
joemccann Jul 28, 2022
e8697d6
added section to run with just node.js not docker; resolved markdown …
joemccann Jul 28, 2022
4ebfdbb
specify path in readSecret console error
0xCactus Jul 28, 2022
051a43a
Merge pull request #38 from joemccann/main
0xCactus Jul 28, 2022
19f4992
fix init reserve
nope-finance Jul 28, 2022
181832a
bump version
0xodia Jul 28, 2022
677e93d
Merge pull request #24 from solendprotocol/fix-initReserve
0xodia Aug 1, 2022
4b6fc2b
v0.6.2
0xodia Aug 1, 2022
c2b3fbf
flash loan instructions
0xripleys Aug 2, 2022
1acae27
test flash loan instruction against devnet
0xripleys Aug 3, 2022
cd8f213
add flash ix to default exports
0xripleys Aug 7, 2022
abfd8c1
remove clock sysvar
0xripleys Aug 12, 2022
cb5fd64
remove bad script
0xripleys Aug 12, 2022
3feb59a
yeh
nope-finance Aug 14, 2022
40769e5
add referal code
nope-finance Aug 15, 2022
a629aaf
fix secrets.ts
0xCactus Aug 19, 2022
ab9258e
Merge pull request #40 from solendprotocol/fix-secrets.ts
0xCactus Aug 19, 2022
7b0c49d
working marinade lever
0xripleys Aug 23, 2022
8359319
fixing delever
0xripleys Aug 23, 2022
0b9922b
working strategy class
0xripleys Aug 24, 2022
171e594
use deterministic extra wsol account
0xripleys Aug 24, 2022
820ac59
support re-levering
0xripleys Aug 24, 2022
fb61563
rename
0xripleys Aug 24, 2022
ff7464c
update sdk to use v1/markets/config and add break flash loans script
0xripleys Aug 29, 2022
b25641f
Add protocol take rate
0xodia Sep 12, 2022
e75db00
Merge pull request #28 from solendprotocol/add-protocol-take-rate
0xodia Sep 12, 2022
4f360ec
v0.6.3
0xodia Sep 12, 2022
572a78e
various fixes
0xripleys Sep 19, 2022
6d4d827
remove strategy code
0xripleys Sep 19, 2022
5aa2de4
remove bnumber reference
0xripleys Sep 19, 2022
157d5d8
Merge pull request #30 from solendprotocol/try_flash_beta_marinade
0xodia Sep 19, 2022
63a61c1
v0.6.5
0xodia Sep 19, 2022
35f8551
add nazare unwrap
Haoqian-Zheng Sep 20, 2022
a31d902
Revert "add nazare unwrap"
Haoqian-Zheng Sep 20, 2022
0777f96
add nazare unwrap
Haoqian-Zheng Sep 20, 2022
9845918
upgrade web3.js
Haoqian-Zheng Sep 20, 2022
2334075
Merge pull request #42 from Hedge-Finance/main
0xCactus Sep 21, 2022
6de4eef
fix layout buffer error
0xCactus Sep 21, 2022
d001270
Merge pull request #43 from solendprotocol/fix-layout-buffer-error
0xCactus Sep 21, 2022
69c56f2
refactor unstaking logic and add rBasis unstaking
0xCactus Sep 26, 2022
db1c923
Merge pull request #44 from solendprotocol/refactor-unstaking
0xCactus Sep 26, 2022
b57b8a5
deprecate old endpoints + make type names consistent
0xodia Sep 30, 2022
320484e
Merge pull request #31 from solendprotocol/remove-old-endpoints
0xodia Sep 30, 2022
f97785a
Add kamino unwrap
peroxy Oct 12, 2022
437557c
Merge pull request #45 from hubbleprotocol/main
0xCactus Oct 12, 2022
03cb46a
add solana token v2 dep for nazare
0xCactus Oct 12, 2022
94e6aa8
move sdk to diff folder
0xripleys Oct 13, 2022
5c13525
move to diff folder
0xripleys Oct 13, 2022
a8c1f1b
move hidden files
0xripleys Oct 13, 2022
a875082
Merge branch 'liquidator'
0xripleys Oct 13, 2022
478ccb0
cleanup
0xripleys Oct 13, 2022
67885cd
move vscode files to liquidator
0xripleys Oct 13, 2022
6885824
ci: liquidator
tahsintunan Oct 18, 2022
33cedc0
ci: solend-sdk
tahsintunan Oct 18, 2022
e4b681f
added some functionality to grab flashloan fee percentage alongside o…
Oct 20, 2022
0b1a0c3
Merge pull request #3 from staccDOTsol/features/add-flashloan-fee-per…
0xodia Oct 20, 2022
ce9b199
Update break_flash_loans.ts
0xripleys Oct 31, 2022
d885dd1
ci: actions work on all branches
tahsintunan Nov 6, 2022
b926b32
ci: actions work on all branches
tahsintunan Nov 6, 2022
54235db
ci: actions moved to root directory
tahsintunan Nov 6, 2022
c6ca046
ci: actions moved to root directory
tahsintunan Nov 6, 2022
6c6ab81
ci: set default working directory
tahsintunan Nov 6, 2022
1e728b5
Merge pull request #2 from tahsintunan/ci
0xripleys Nov 6, 2022
8c4b5c3
Add SolendRPCConnection and MultiConnection:
DaSichuan Nov 21, 2022
64795a7
Add SolendRPCConnection and MultiConnection
DaSichuan Nov 21, 2022
aec7d5d
Bump web3js version, add rpcEndpoint property
DaSichuan Nov 21, 2022
68acaee
add GetTransaction overloads
DaSichuan Nov 21, 2022
4651bd7
update Version to VersionedTransaction
DaSichuan Nov 21, 2022
b27dfdb
Add getAddressLookupTable
DaSichuan Nov 21, 2022
10cdfed
update statsd format
DaSichuan Nov 22, 2022
005ad69
Add delayed backup connection behavior
DaSichuan Nov 22, 2022
ea296a6
Add test for interface fulfillment
DaSichuan Nov 22, 2022
5f657f3
Fix sdk parseReserve
0xodia Nov 22, 2022
110b4e9
v0.6.6
0xodia Nov 22, 2022
3382e6f
Add cached connection
DaSichuan Nov 22, 2022
5354aed
Merge pull request #6 from solendprotocol/cached_connection
DaSichuan Nov 22, 2022
c535103
Fix cached connection
DaSichuan Nov 22, 2022
e41dc5a
Merge pull request #7 from solendprotocol/fix_cached_connection
DaSichuan Nov 22, 2022
9279161
Prevent caches from getting infinitely big
DaSichuan Nov 23, 2022
e8a35bf
Merge pull request #8 from solendprotocol/no_infinite_cache
DaSichuan Nov 23, 2022
051fb2b
Delete oldest object in cache instead of deleting everything
DaSichuan Nov 23, 2022
7589174
fix: lendingMarket interface definition
tahsintunan Nov 27, 2022
d9200a8
Merge pull request #9 from tahsintunan/fix-lendingMarket
0xripleys Nov 27, 2022
49b6c6f
v0.6.7
0xodia Dec 1, 2022
73ddede
use require for buffer-layout
0xCactus Dec 6, 2022
4771ba1
Merge pull request #10 from solendprotocol/fix-bufferlayout-compilation
0xCactus Dec 6, 2022
3059096
fix reserve size
0xCactus Dec 6, 2022
7fdd14b
Merge pull request #11 from solendprotocol/fix-reserve-size
0xCactus Dec 6, 2022
e9ab451
fix reserve
DaSichuan Dec 7, 2022
7895c4a
Merge pull request #12 from solendprotocol/fix_reserve
DaSichuan Dec 7, 2022
a9bf42c
Revert "fix reserve"
DaSichuan Dec 7, 2022
5d33fea
add accumulatedProtocolFeesWads
DaSichuan 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
5031134
Fix accumulatedProtoclFees
DaSichuan Dec 8, 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
2f361df
replaced Account with KeyPair and replaced Transaction with Versioned…
ngqinzhe Dec 12, 2022
bbc33f7
tidy
ngqinzhe Dec 12, 2022
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 16
uses: actions/setup-node@v3
with:
node-version: 16
- 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 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Lint
run: yarn lint
- name: Build
run: yarn build
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'],
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