Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2789 commits
Select commit Hold shift + click to select a range
77c3567
Merge pull request #484 from liquity/lock-npm-dependencies
edmulraney Apr 2, 2021
febc2b8
Merge branch 'master' into main
danielattilasimon Apr 2, 2021
60fb71f
contracts: economic simulation: Get rid of try/except
bingen Apr 2, 2021
756a88a
contracts: economic simulation: Improve providing to Stability Pool
bingen Apr 2, 2021
adc2fc8
chore: deploy the final version to testnets
danielattilasimon Apr 2, 2021
e411fe1
Merge branch 'final-testnet-deployment' into main
danielattilasimon Apr 2, 2021
46e087e
fixup! contracts: economic simulation: Get rid of try/except
bingen Apr 2, 2021
0dcf992
chore: update yarn.lock
danielattilasimon Apr 3, 2021
848a5d8
fix: stop spinner and revert icon from overlapping
danielattilasimon Apr 3, 2021
ea12938
Merge pull request #485 from liquity/fix-overlapping-icons
danielattilasimon Apr 3, 2021
ff06cff
feat: allow configuring Dev UI in testnet-only mode
danielattilasimon Apr 3, 2021
65d965a
add info icon for lqty reward and leave space at bottom of page
edmulraney Apr 3, 2021
d361d10
Merge pull request #486 from liquity/testnet-only
danielattilasimon Apr 3, 2021
e07de35
Created GNU GPLv3 license for the contracts
cvalkan Apr 3, 2021
da34313
Create MIT License
cvalkan Apr 3, 2021
e0fb05c
Update License
cvalkan Apr 3, 2021
c9b40e1
Update License
cvalkan Apr 3, 2021
a9c3d42
Create License
cvalkan Apr 3, 2021
4d9cdb0
Create License
cvalkan Apr 3, 2021
39a6936
update deployment script
RickGriff Apr 3, 2021
839653e
Merge pull request #487 from liquity/lqty-rewards-info-icon
edmulraney Apr 3, 2021
dd56437
docs: update frontend status badge to say "Testnet"
danielattilasimon Apr 4, 2021
cd52913
chore: remove duplicated dependency
danielattilasimon Apr 4, 2021
a967f10
Changed borrowing fee example, removed CCR
cvalkan Apr 4, 2021
acc2e5d
480 use mainnet LQTY and ETH/LUSD token addresses
edmulraney Apr 4, 2021
ca6b53b
Merge pull request #488 from liquity/feature/480-use-real-token-addre…
edmulraney Apr 4, 2021
f868f08
add vertical scroll bar for stats popup on mobile
edmulraney Apr 4, 2021
70e9cd7
Merge pull request #489 from liquity/scroll-stats-on-mobile
edmulraney Apr 4, 2021
09dcb4a
Extend deployment script post-deployment actions
RickGriff Apr 4, 2021
f609bb1
make account balances use new style
edmulraney Apr 4, 2021
6b26099
Merge pull request #491 from liquity/scroll-stats-on-mobile
edmulraney Apr 4, 2021
d8d1fc0
Add extra system state checks to deployment script
RickGriff Apr 4, 2021
14fddd2
Tweak deployment script
RickGriff Apr 4, 2021
7eb064a
Add assert for 2nd account in deployment script
RickGriff Apr 4, 2021
9228ad1
Add assert for LQTY Safe address to deployment script
RickGriff Apr 4, 2021
f9ec70c
Merge pull request #490 from liquity/mainnet-deployment-extra-actions
RickGriff Apr 4, 2021
05db50b
add lqty and lusd icons
edmulraney Apr 4, 2021
58074c9
Add real LQTY Safe, General Safe and deployer addresses to input file
RickGriff Apr 5, 2021
5d47fb5
Fix typo in comment
RickGriff Apr 5, 2021
11d1d3e
Uncomment asserts in deployment script
RickGriff Apr 5, 2021
1d98bb9
contracts: economic simulation: Improve redemptions
bingen Apr 5, 2021
0d803a7
Fix price var in deployment script
RickGriff Apr 5, 2021
a9e4c13
Merge pull request #492 from liquity/add-icons
edmulraney Apr 5, 2021
2e16a53
chore: add manifest for mainnet deployment
danielattilasimon Apr 1, 2021
caa6dee
Add outputs from real mainnet deployment
RickGriff Apr 5, 2021
7901951
Add ops for repaying LUSD and adding coll to deployment script
RickGriff Apr 5, 2021
3e82b69
disable move eth to trove button if there's no eth gain
edmulraney Apr 5, 2021
86f461e
Merge pull request #495 from liquity/disable-move-eth-if-no-eth
edmulraney Apr 5, 2021
149186c
hide apy if its zero
edmulraney Apr 5, 2021
a905e51
Merge pull request #496 from liquity/hide-0-percent-apy
danielattilasimon Apr 5, 2021
363676e
Add etherscan verification codes to deployments output
RickGriff Apr 5, 2021
a430c61
Merge pull request #493 from liquity/mainnet-deployment-manifest
danielattilasimon Apr 5, 2021
b9a16d0
feat: dummy commit to kick off SDK release
danielattilasimon Apr 5, 2021
0326d20
contracts: Fix getSecret in hardhat config
bingen Apr 5, 2021
bf638ec
Add extra deployment script outputs
RickGriff Apr 6, 2021
714615f
Merge branch 'mainnet-deployment' of https://github.com/liquity/dev i…
RickGriff Apr 6, 2021
d3ae2d3
Merge pull request #457 from liquity/mainnet-deployment
RickGriff Apr 6, 2021
fb727de
Add LockupContract beneficiaries to mainnet deployment params
RickGriff Apr 6, 2021
4986d49
change account in beneficaries list
RickGriff Apr 6, 2021
4539b53
Add outputs for mainnet LC deployments and beneficiaries
RickGriff Apr 6, 2021
4916d42
Add Etherscan verification outputs for LC deployments
RickGriff Apr 7, 2021
0818b46
feat: add `liquidityMiningLQTYRewardRate` to `EthersLiquityConnection`
danielattilasimon Apr 7, 2021
337f8d1
Merge pull request #502 from liquity/unipool-reward-rate
danielattilasimon Apr 7, 2021
0a442ee
fix: fix `MODULE_NOT_FOUND` error due to missing `dev.json`
danielattilasimon Apr 7, 2021
25c7ab7
Merge pull request #503 from liquity/fix-module-not-found
danielattilasimon Apr 7, 2021
fcface6
rename APY -> APR and show remaining farming days
edmulraney Apr 7, 2021
e3b0b4b
remove superfluous effect
edmulraney Apr 7, 2021
c760806
Merge pull request #504 from liquity/update-yield-information
edmulraney Apr 7, 2021
382545d
fix: eliminate temporary deployment from package
danielattilasimon Apr 7, 2021
108dbba
contracts: economic simulation: Divide ether price in sub-periods
bingen Apr 7, 2021
fd0a4d9
feat: display pool share on Stability panel
danielattilasimon Apr 7, 2021
a446afa
feat: display pool share on Staking panel
danielattilasimon Apr 7, 2021
da0c2d1
chore: untrack NPM lockfiles
danielattilasimon Apr 7, 2021
cb81d5a
Merge pull request #506 from liquity/stability-pool-share
edmulraney Apr 7, 2021
e2baa11
include pool share in farm panel
edmulraney Apr 7, 2021
0222609
clarify recovery mode where possible
edmulraney Apr 7, 2021
e72a3da
specify collateral instead of value
edmulraney Apr 7, 2021
42c0f65
remove apostrophe
edmulraney Apr 7, 2021
e3c9f5e
Merge pull request #508 from liquity/clarify-recovery-mode
edmulraney Apr 7, 2021
6d00a66
Merge pull request #507 from liquity/farm-pool-share
edmulraney Apr 7, 2021
90fb59b
fix: fix some edge cases in pool share displays
danielattilasimon Apr 8, 2021
7c7d9ad
increase pool share decimal places
edmulraney Apr 8, 2021
57ddb6d
Merge pull request #510 from liquity/increase-pool-share-decimals
edmulraney Apr 8, 2021
e9e921f
Merge pull request #511 from liquity/main
edmulraney Apr 8, 2021
6e3fe2d
contracts: economic simulation: Fix liquidations
bingen Apr 8, 2021
8cd2750
Merge pull request #505 from liquity/economic_simulations_2
bingen Apr 8, 2021
004cdb7
Update README.public.md
sunshineluyao Apr 12, 2021
93e6166
contracts: Add coverage for TroveManager
bingen Apr 12, 2021
864aa2b
contracts: Add coverage for BorrowerOperations
bingen Apr 12, 2021
81e3d1c
remove redemption fee from stats, make it always visible on redemptio…
edmulraney Apr 13, 2021
a953016
Merge pull request #516 from liquity/clarify-redemption-fee
edmulraney Apr 13, 2021
3485af9
add info icon to redemption fee
edmulraney Apr 13, 2021
f7980b5
Merge pull request #517 from liquity/clarify-redemption-fee
edmulraney Apr 13, 2021
ffd9f26
Merge pull request #518 from liquity/main
edmulraney Apr 13, 2021
59e7fc6
Deprecate liquity/liquity repo
edmulraney Apr 15, 2021
46b89e2
Merge pull request #520 from liquity/deprecate-old-liquity-repo
edmulraney Apr 15, 2021
54c5c61
Merge remote-tracking branch 'origin/master' into main
danielattilasimon Apr 15, 2021
7e5c38e
Merge pull request #513 from sunshineluyao/main
RickGriff Apr 15, 2021
a1824dd
Merge pull request #514 from liquity/coverage_post_mainnet
bingen Apr 16, 2021
ec9e6e3
feat!: have only one Trove/StabilityDeposit per User
danielattilasimon Apr 20, 2021
0188e45
Merge pull request #525 from liquity/subgraph-one-trove-sdep-per-user
danielattilasimon Apr 20, 2021
06114a8
Add hintExamples script
RickGriff Apr 20, 2021
f972095
allow user to claim gains after unstaking
edmulraney Apr 20, 2021
442dfb2
Merge pull request #528 from liquity/claim-gains-after-unstaking
edmulraney Apr 21, 2021
d988d66
remove old readme
edmulraney Apr 21, 2021
a88ac49
rename Dev UI to frontend
edmulraney Apr 21, 2021
40f7f5f
remove duplicate package information
edmulraney Apr 21, 2021
e9a2e33
Merge pull request #529 from liquity/remove-old-readme
edmulraney Apr 21, 2021
6f1881f
Update README.md
RickGriff Apr 21, 2021
4c95d7d
Merge pull request #530 from liquity/main
edmulraney Apr 21, 2021
cdf1d1c
add subgraph entities for LQTY staking (enables historic LQTY staking…
edmulraney Apr 21, 2021
9c1d25e
remove gain changes from stake change event handler, the smart contra…
edmulraney Apr 21, 2021
a8fdbf2
add lqty-staking contract registration
edmulraney Apr 22, 2021
cc1bfc7
correct file name casing
edmulraney Apr 22, 2021
cf5e242
show lqty staking gains as a positive number, not negative
edmulraney Apr 22, 2021
2bf402f
fix global state tracking, simplify logic
edmulraney Apr 22, 2021
117246a
fix casing
edmulraney Apr 22, 2021
41c68de
subgraph: Rename subgraph
bingen Apr 23, 2021
beaccde
Merge pull request #533 from liquity/rename_subgraph
bingen Apr 23, 2021
b3b526b
Update README.md
bjnpck Apr 23, 2021
2af3eab
Update README.md
bjnpck Apr 23, 2021
3d7c9e9
Update README.md
bjnpck Apr 23, 2021
f44aa20
Merge pull request #531 from liquity/lqty-stake-subgraph
edmulraney Apr 23, 2021
1d82d22
address PR comments
edmulraney Apr 23, 2021
b0b28d1
fix path
edmulraney Apr 23, 2021
144682f
Merge pull request #534 from liquity/lqty-stake-subgraph
edmulraney Apr 23, 2021
506b338
choose borrow amount when opening a trove
edmulraney Apr 26, 2021
69619a6
update tooltip, include gas reservation when pressing max on collater…
edmulraney Apr 26, 2021
e891dde
choose net debt instead of total debt on adjust trove view
edmulraney Apr 26, 2021
4efce0e
Merge pull request #540 from liquity/choose-borrow-amount
edmulraney Apr 26, 2021
89ada0d
Merge pull request #541 from liquity/main
edmulraney Apr 26, 2021
4da143b
Add files via upload
bjnpck Apr 27, 2021
6d299d4
Add files via upload
bjnpck Apr 27, 2021
5059f68
set minimum borrow amount to 1800 to prevent decay factor invalidatin…
edmulraney Apr 27, 2021
56094a0
remove unused dependency array item
edmulraney Apr 27, 2021
52edb74
remove revert button from close trove
edmulraney Apr 27, 2021
6602cb5
prevent negative trove changes after a backend update
edmulraney Apr 27, 2021
4e80ab6
fix: untangle StabilityDeposit events in subgraph
danielattilasimon Apr 27, 2021
a76c1d3
Merge pull request #545 from liquity/choose-borrow-amount
edmulraney Apr 27, 2021
ea7efcc
Merge pull request #548 from liquity/main
edmulraney Apr 27, 2021
ceccaa8
fix: increase gas headroom for TXs that manipulate StortedTroves
danielattilasimon Apr 26, 2021
ff8371d
lqty apr tooltip fixed
Apr 27, 2021
1e36fe9
Merge pull request #549 from liquity/increase-traversal-headroom
edmulraney Apr 27, 2021
dbadb79
Merge pull request #550 from liquity/main
edmulraney Apr 27, 2021
379b9c6
subgraph: Add tokens
bingen Apr 27, 2021
7d44960
contracts: Add token allowances
bingen Apr 27, 2021
50edec6
subgraph: Add tokens, historic total supply
bingen Apr 27, 2021
8db1a65
Merge pull request #547 from liquity/untangle-deposit-events
danielattilasimon Apr 28, 2021
3705542
subgraph: Remove token changes
bingen Apr 28, 2021
79db565
subgraph: Remove dangling commas
bingen Apr 28, 2021
6bbf2e5
subgraph: Fix Token events import
bingen Apr 28, 2021
bbe63e9
subgraph: Replace ERC20Mock abi with ERC20
bingen Apr 28, 2021
19f67f8
update variable names
Apr 28, 2021
7f3f188
fixup! subgraph: Remove token changes
bingen Apr 28, 2021
3272d02
fixup! subgraph: Remove token changes
bingen Apr 28, 2021
29dac18
subgraph: Convert decimal values from tokens to integers
bingen Apr 28, 2021
9011c40
contracts: Add hint examples script
RickGriff Apr 29, 2021
f173167
Merge branch 'main' of https://github.com/liquity/dev into main
RickGriff Apr 29, 2021
44033a0
Merge pull request #551 from liquity/subgraph-tokens
bingen Apr 29, 2021
ac7e8e5
feat: generate subgraph manifest from a template
danielattilasimon Apr 29, 2021
56fa8b4
chore: rename subgraph to match listing on Explorer
danielattilasimon Apr 29, 2021
b7aaa3e
Merge pull request #546 from dvdese/fix-lqty-apr-tooltip
edmulraney Apr 30, 2021
90e75f6
fix broken lqty staking decrements
edmulraney Apr 30, 2021
d664bac
simplify branching logic
edmulraney May 3, 2021
44af9d4
Merge pull request #558 from liquity/subgraph-deduct-lqty-on-decrease
edmulraney May 3, 2021
f7302d6
feat: add `startBlock` to deployment manifests
danielattilasimon May 4, 2021
930cb6f
feat: parameterize network in subgraph manifest template
danielattilasimon May 4, 2021
7d0204e
Merge pull request #554 from liquity/subgraph-manifest-template
danielattilasimon May 4, 2021
2cced78
feat: add borrowing fees to subgraph
danielattilasimon Apr 30, 2021
2951cc7
Merge pull request #555 from liquity/subgraph-borrowing-fee
danielattilasimon May 4, 2021
15bcd15
add subgraph support for frontend tracking
edmulraney May 4, 2021
619d25f
Merge branch 'main' into add-frontends-to-subgraph
edmulraney May 4, 2021
81b2c77
feat: add redemption fees to subgraph
danielattilasimon May 5, 2021
a55c3e0
Merge pull request #561 from liquity/subgraph-redemption-fee
danielattilasimon May 6, 2021
3e08cbd
use new template approach. add README for subgraph
edmulraney May 7, 2021
37e04b0
Merge pull request #559 from liquity/add-frontends-to-subgraph
edmulraney May 10, 2021
e0c9259
contracts: Fix Uniswap typos
bingen May 13, 2021
48ce9ee
contracts: Add entries to gitignore
bingen May 13, 2021
db7751e
fixup! contracts: Add entries to gitignore
bingen May 13, 2021
567450c
contracts: Make npm package public
bingen May 13, 2021
7c83ea1
contracts: Add .npmrc file
bingen May 13, 2021
e70236a
contracts: Add tests for back to Normal Mode in multi-liquidations
bingen May 18, 2021
b9dcdbd
contracts: Fix back to Normal Mode issue in multi-liquidations
bingen May 18, 2021
ece6d0c
Update Liquity Whitepaper rev. 0.2.tex
bjnpck May 22, 2021
9c79c9e
Update Liquity Whitepaper rev. 0.2.tex
bjnpck May 22, 2021
5bd633d
fix: eliminate bogus `TroveChange` upon capped liquidation
danielattilasimon Jun 3, 2021
510475a
Update Liquity Whitepaper rev. 0.2.tex
bjnpck Jun 3, 2021
c5f72b6
Merge pull request #588 from liquity/eliminate-bogus-trovechange
danielattilasimon Jun 7, 2021
a51ff1e
fix: use events to update price in subgraph
danielattilasimon Jun 4, 2021
3768d5a
chore: update lib-subgraph to latest subgraph schema
danielattilasimon Jun 4, 2021
c642a95
Merge pull request #589 from liquity/fix-price-in-subgraph
danielattilasimon Jun 8, 2021
dced7a4
fix: always subtract gas compensation from total collateral
danielattilasimon Jun 4, 2021
a015ef9
contracts: Fix simulation tests
bingen Jun 9, 2021
0b40e65
Merge pull request #598 from liquity/issue_595
bingen Jun 10, 2021
9d5bc8d
Rename Liquity Whitepaper rev. 0.2.tex to Liquity Whitepaper rev. 0.3…
bjnpck Jun 11, 2021
0bf96e7
contracts: Add balancer pool deployment script
bingen Jun 11, 2021
007ecac
Merge pull request #592 from liquity/fix-total-collateral-in-subgraph
danielattilasimon Jun 14, 2021
8d7948d
chore: update ethers to v5.3
danielattilasimon Jun 15, 2021
9e34df6
contracts: Balancer pool: use exact LUSD approval amount
bingen Jun 16, 2021
38a4a78
contracts: Balancer pool: Comment mainnet fork test stuff out
bingen Jun 16, 2021
a56f9b6
feat: make use of Ethers' transaction replacement detection
danielattilasimon Jun 16, 2021
8f54a6b
feat: optimize WebSocketAugmentedProvider for replacement detection
danielattilasimon Jun 18, 2021
571d59f
feat: detect cancellation of TXs that have been broadcast
danielattilasimon Jun 18, 2021
bbd7d7a
Merge pull request #607 from liquity/detect-tx-replacement
danielattilasimon Jun 18, 2021
2a251c3
fix: properly disable max button if collateral is maxed out
danielattilasimon Jun 18, 2021
7fa5115
refactor: stop using `_CachedReadableLiquity`
danielattilasimon May 12, 2021
26ef873
feat: estimate the gas cost increase of TXs due to fee decay
danielattilasimon May 24, 2021
d8ed41c
feat: show a warning for TXs with a lot of gas headroom
danielattilasimon Jun 14, 2021
f140d04
chore: update yarn.lock
danielattilasimon Jun 18, 2021
e469beb
fix: improve gas cost of hint recovery when inserting into the end of…
danielattilasimon Jun 21, 2021
0b3e4c4
test: fix Dev UI smoke test failure
danielattilasimon Jun 21, 2021
bccc199
Merge pull request #612 from liquity/estimate-fee-decay-gas-increase
danielattilasimon Jun 21, 2021
5b0f9a4
Merge pull request #609 from liquity/fix-max-button
danielattilasimon Jun 21, 2021
ab72c00
fix: require borrowing at least the minimum net debt
danielattilasimon Jun 22, 2021
54f7444
Merge pull request #614 from liquity/fix-stuck-confirm-button
danielattilasimon Jun 22, 2021
0be7019
fix: tweak copy on expensive TX warning
danielattilasimon Jun 22, 2021
c1e2c5a
Switch from PriceFeed to Chainlink aggregator
bingen Jun 22, 2021
55e1c06
Merge pull request #603 from liquity/balancer_pool
bingen Jun 23, 2021
4db34e0
fix: insufficient gas headroom for updating `baseRate`
danielattilasimon Jun 25, 2021
374f959
Merge pull request #618 from liquity/baserate-gas-headroom
danielattilasimon Jun 25, 2021
3d51ea6
fix: don't let listener errors mess up event dispatch
danielattilasimon Jun 28, 2021
1f4270e
Merge pull request #624 from liquity/isolate-listeners
danielattilasimon Jun 28, 2021
4ad0998
Merge branch 'main'
danielattilasimon Jun 29, 2021
c8435b0
contracts: Balancer pool deployment: Add gas logs
bingen Jun 29, 2021
d92b710
docs: fix default value of `borrowingFeeDecayToleranceMinutes` in API…
danielattilasimon Jun 29, 2021
accbea8
chore: update generated markdown
danielattilasimon Jun 29, 2021
e1d6dd9
Balancer deployment last tweaks
bingen Jun 29, 2021
4268c97
Merge pull request #626 from liquity/balancer_pool_gas_logs
bingen Jun 30, 2021
2fc0564
fix: fix ambiguous `cause` of some `SystemState` entities
danielattilasimon Jul 5, 2021
b0610d1
Merge pull request #630 from liquity/fix-ambiguous-systemstate-cause
danielattilasimon Jul 6, 2021
c69d0ba
Merge pull request from GHSA-xh2p-7p87-fhgh
cvalkan Jul 9, 2021
4d85405
Add Known Issues section to dev Readme
RickGriff Jul 14, 2021
9a8c25a
Add items to README table of contents
bingen Jul 15, 2021
38a9ac1
docs: fix outdated deployment instructions
danielattilasimon Jul 19, 2021
3cb3e38
changes-for-avax-depl
hasclass Jul 19, 2021
71d9f94
First custom deployment w/ customized token names and disabled tellor
Jul 20, 2021
d8432fb
Merge pull request #7 from hasclass/bwb-experiment
hasclass Jul 21, 2021
7b432f8
change LQTY to TEDDY in the frontend
hasclass Jul 21, 2021
01cf346
replace LUSD with TSD
hasclass Jul 21, 2021
6228fb2
replace lqty with teddy
hasclass Jul 21, 2021
1e048d0
Temporarily comment out AVAX gas price
Jul 21, 2021
f662b3d
Fix test
Jul 22, 2021
033d195
Comment out AVAX gas price
Jul 22, 2021
5d6eda7
Revert renaming of contracts for AVAX
Jul 22, 2021
5db311f
Don't check tellor in deployment script, it fails
Jul 22, 2021
0fae247
Deployed to fuji
Jul 23, 2021
37f2431
Change ETH references in UI to AVAX
Jul 23, 2021
42bcb6f
Custom WS endpoint for fuji
Jul 23, 2021
ccd6b90
Merge pull request #8 from hasclass/avax
bryanwb Jul 23, 2021
72e5be0
chore(deps): bump @fortawesome/fontawesome-svg-core
dependabot[bot] Jul 31, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Enable syntax highlighting for Solidity
*.sol linguist-language=Solidity
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
65 changes: 65 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Release SDK & UI

env:
CI: true
FORCE_COLOR: true

on:
push:
branches: [master, main]
pull_request:
branches: [master, main]

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 12.x

- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- run: yarn install --frozen-lockfile
- run: yarn build

- name: Test SDK & UI
run: yarn test

- name: Test SDK integration against live contracts
if: ${{ github.ref == 'refs/heads/master' }}
run: yarn test-live

- name: Release SDK on NPM
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release

- name: Login to Docker Hub
uses: azure/docker-login@v1
if: ${{ github.event_name == 'push' }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Release dev-frontend on Docker Hub
if: ${{ github.event_name == 'push' }}
run: |
docker-compose build
docker-compose push
working-directory: ./packages/dev-frontend
env:
TAG: ${{ fromJSON('{ "refs/heads/master":"latest", "refs/heads/main":"next" }')[github.ref] }}
77 changes: 77 additions & 0 deletions .github/workflows/test-contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Test contracts

env:
CI: true
FORCE_COLOR: true

on:
push:
paths:
- "packages/contracts/**"
pull_request:
paths:
- "packages/contracts/**"

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 12.x

- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- run: yarn install --frozen-lockfile

- name: Test contracts
run: yarn test-contracts
env:
NODE_OPTIONS: --max-old-space-size=4096

coverage:
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'coverage') }}
continue-on-error: true

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: 12.x

- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- run: yarn install --frozen-lockfile

- name: Test contract coverage
run: yarn coverage
continue-on-error: true
env:
NODE_OPTIONS: --max-old-space-size=4096

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./packages/contracts/coverage/lcov.info
23 changes: 19 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# dependencies
/node_modules
# Editor temp files
*~

# Contract JSONs
/client/src/contracts
# macOS Finder attribute files
.DS_Store

node_modules

# output of TypeScript transpilation
/packages/*/dist

# api-extractor temp files
/packages/*/temp

/temp
.env
.eslintcache

# Don't track NPM lockfile (we use Yarn)
package-lock.json
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"arrowParens": "avoid",
"printWidth": 101,
"trailingComma": "none"
}
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"slither.solcPath": "",
"slither.hiddenDetectors": []
"slither.hiddenDetectors": [],
"solidity.compileUsingRemoteVersion": "v0.6.11+commit.5ef660b1",
"typescript.tsdk": "node_modules/typescript/lib"
}
Loading