tax rate, version and compose (#70)
resolves #67 Co-authored-by: johba <johba@harb.eth> Reviewed-on: https://codeberg.org/johba/harb/pulls/70
This commit is contained in:
parent
d8ca557eb6
commit
6cbb1781ce
40 changed files with 1243 additions and 213 deletions
|
|
@ -1,7 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/../kraiken-lib"
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
|
||||
cd "$REPO_ROOT/kraiken-lib"
|
||||
|
||||
if [[ ! -d node_modules || ! -x node_modules/.bin/tsc ]]; then
|
||||
if ! npm install --silent; then
|
||||
|
|
@ -9,6 +12,9 @@ if [[ ! -d node_modules || ! -x node_modules/.bin/tsc ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# Ensure tax rate data mirrors onchain Stake.sol before compiling
|
||||
node "$SCRIPT_DIR/sync-tax-rates.mjs"
|
||||
|
||||
./node_modules/.bin/tsc
|
||||
|
||||
echo "kraiken-lib built"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue