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

feat: pass constants through everything & read them from env #69

Merged
merged 9 commits into from
Oct 10, 2024
144 changes: 144 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
env:
CI: true
FORCE_COLOR: true

on:
push:
branches:
- main
- production
pull_request:

jobs:
# frontend
lint_frontend:
name: lint frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: yarn
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0
- run: yarn install --immutable

- run: yarn workspace @liquity/dev-frontend lint

build_frontend:
name: build frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: yarn
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0
- run: yarn install --immutable

- run: yarn workspace @liquity/dev-frontend build:tsc
- run: yarn workspace @liquity/dev-frontend build:vite

# lib-base
lint_lib-base:
name: lint lib-base
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: yarn
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0
- run: yarn install --immutable

- run: yarn workspace @liquity/lib-base prepare:eslint

build_lib-base:
name: build lib-base
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: yarn
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0
- run: yarn install --immutable

- run: yarn workspace @liquity/lib-base prepare:tsc

# lib-ethers
lint_lib-ethers:
name: lint lib-ethers
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: yarn
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0
- run: yarn install --immutable

- run: yarn workspace @liquity/lib-ethers prepare:eslint

build_lib-ethers:
name: build lib-ethers
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: yarn
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0
- run: yarn install --immutable

- run: yarn workspace @liquity/lib-ethers prepare:tsc

# lib-react
lint_lib-react:
name: lint lib-react
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: yarn
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0
- run: yarn install --immutable

- run: yarn workspace @liquity/lib-react prepare:eslint

build_lib-react:
name: build lib-react
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
cache: yarn
env:
# Workaround for https://github.com/actions/setup-node/issues/317
FORCE_COLOR: 0
- run: yarn install --immutable

- run: yarn workspace @liquity/lib-react prepare:tsc
59 changes: 0 additions & 59 deletions .github/workflows/release.yml

This file was deleted.

6 changes: 3 additions & 3 deletions docs/sdk/lib-base.beta.md → docs/sdk/lib-base.address.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-base](./lib-base.md) &gt; [BETA](./lib-base.beta.md)
[Home](./index.md) &gt; [@liquity/lib-base](./lib-base.md) &gt; [Address](./lib-base.address.md)

## BETA variable
## Address type

**Signature:**

```typescript
BETA: Decimal
export declare type Address = `0x${string}`;
```
49 changes: 49 additions & 0 deletions docs/sdk/lib-base.consentableliquity.approvehchftospendhchf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-base](./lib-base.md) &gt; [ConsentableLiquity](./lib-base.consentableliquity.md) &gt; [approveHchfToSpendHchf](./lib-base.consentableliquity.approvehchftospendhchf.md)

## ConsentableLiquity.approveHchfToSpendHchf() method

**Signature:**

```typescript
approveHchfToSpendHchf(amount: Decimal): Promise<void>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

amount


</td><td>

[Decimal](./lib-base.decimal.md)


</td><td>


</td></tr>
</tbody></table>
**Returns:**

Promise&lt;void&gt;

49 changes: 49 additions & 0 deletions docs/sdk/lib-base.consentableliquity.approvehlqttospendhlqt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-base](./lib-base.md) &gt; [ConsentableLiquity](./lib-base.consentableliquity.md) &gt; [approveHlqtToSpendHlqt](./lib-base.consentableliquity.approvehlqttospendhlqt.md)

## ConsentableLiquity.approveHlqtToSpendHlqt() method

**Signature:**

```typescript
approveHlqtToSpendHlqt(amount: Decimal): Promise<void>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

amount


</td><td>

[Decimal](./lib-base.decimal.md)


</td><td>


</td></tr>
</tbody></table>
**Returns:**

Promise&lt;void&gt;

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-base](./lib-base.md) &gt; [ConsentableLiquity](./lib-base.consentableliquity.md) &gt; [approveSaucerSwapToSpendLpToken](./lib-base.consentableliquity.approvesaucerswaptospendlptoken.md)

## ConsentableLiquity.approveSaucerSwapToSpendLpToken() method

**Signature:**

```typescript
approveSaucerSwapToSpendLpToken(amount: Decimal): Promise<void>;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

amount


</td><td>

[Decimal](./lib-base.decimal.md)


</td><td>


</td></tr>
</tbody></table>
**Returns:**

Promise&lt;void&gt;

15 changes: 15 additions & 0 deletions docs/sdk/lib-base.consentableliquity.associatewithhchf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-base](./lib-base.md) &gt; [ConsentableLiquity](./lib-base.consentableliquity.md) &gt; [associateWithHchf](./lib-base.consentableliquity.associatewithhchf.md)

## ConsentableLiquity.associateWithHchf() method

**Signature:**

```typescript
associateWithHchf(): Promise<void>;
```
**Returns:**

Promise&lt;void&gt;

Loading
Loading