Skip to content

Commit

Permalink
Forking closed source repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ueco-jb committed Jul 12, 2023
0 parents commit 5000c52
Show file tree
Hide file tree
Showing 109 changed files with 24,096 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/isotonic-issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Isotonic issue template
about: Remember to put contract's name in context
title: "[Contract name] "
labels: ''
assignees: ''

---


64 changes: 64 additions & 0 deletions .github/workflows/Basic-Checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
on: [push, pull_request]

name: Basic Checks

jobs:

test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.64.0
target: wasm32-unknown-unknown
override: true

- name: Run unit tests
uses: actions-rs/cargo@v1
with:
command: test
args: --locked
env:
RUST_BACKTRACE: 1

lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.64.0
override: true
target: wasm32-unknown-unknown
components: rustfmt, clippy

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings

- name: Generate Schema
run: |
for C in ./contracts/*/
do
echo "Generating schema for `basename $C`..."
(cd $C && cargo schema --locked)
done
35 changes: 35 additions & 0 deletions .github/workflows/WasmCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml

on:
push:
branches:
- main

name: Wasm Checks

jobs:
wasm-check:
name: wasm-check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown

- name: Build wasm release
run: |
for C in ./contracts/*/
do
echo "Compiling `basename $C`..."
(cd $C && cargo build --release --lib --target wasm32-unknown-unknown --locked)
done
- name: Install cosmwasm-check
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --version 1.1.0 cosmwasm-check

- name: Check wasm contracts
run: cosmwasm-check --available-capabilities osmosis,iterator,staking,stargate,cosmwasm_1_1 ./target/wasm32-unknown-unknown/release/*.wasm
33 changes: 33 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on: [pull_request]

name: Code coverage check

jobs:

coverage:
name: Code Coverage
# https://github.com/actions/virtual-environments
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.64.0
target: wasm32-unknown-unknown
override: true

- name: Install tarpaulin
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-tarpaulin --version 0.20.1

- name: Run code coverage check with tarpaulin
uses: actions-rs/cargo@v1
with:
command: tarpaulin
args: --workspace --timeout 120
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
target
artifacts
.idea
packages/*/schema
contracts/*/schema
153 changes: 153 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Changelog

## [Unreleased](https://github.com/confio/isotonic/tree/HEAD)

[Full Changelog](https://github.com/confio/isotonic/compare/v0.5.0...HEAD)

## [v0.5.0](https://github.com/confio/isotonic/tree/v0.5.0) (2022-03-08)

[Full Changelog](https://github.com/confio/isotonic/compare/v0.4.0...v0.5.0)

**Closed issues:**

- Market: Add multitests for sudo messages [\#93](https://github.com/confio/isotonic/issues/93)
- Rename to Isotonic [\#80](https://github.com/confio/isotonic/issues/80)
- Add separate message for charging interest without repay [\#57](https://github.com/confio/isotonic/issues/57)
- Allow governance to adjust credit agency [\#49](https://github.com/confio/isotonic/issues/49)
- Allow governance to adjust markets [\#48](https://github.com/confio/isotonic/issues/48)
- Update READMEs [\#36](https://github.com/confio/isotonic/issues/36)
- Optimize: Exit Markets [\#25](https://github.com/confio/isotonic/issues/25)
- Optimize: Explicitly Enter markets [\#24](https://github.com/confio/isotonic/issues/24)

**Merged pull requests:**

- Rename repository to isotonic [\#105](https://github.com/confio/isotonic/pull/105) ([ueco-jb](https://github.com/ueco-jb))
- Add multitests for sudo messages [\#99](https://github.com/confio/isotonic/pull/99) ([ueco-jb](https://github.com/ueco-jb))
- Exitin markets [\#97](https://github.com/confio/isotonic/pull/97) ([hashedone](https://github.com/hashedone))
- Allow governance to adjust credit agency [\#96](https://github.com/confio/isotonic/pull/96) ([ueco-jb](https://github.com/ueco-jb))
- Update READMEs [\#94](https://github.com/confio/isotonic/pull/94) ([uint](https://github.com/uint))
- Optimization: Entering markets [\#91](https://github.com/confio/isotonic/pull/91) ([uint](https://github.com/uint))
- Allow governance to adjust markets [\#90](https://github.com/confio/isotonic/pull/90) ([ueco-jb](https://github.com/ueco-jb))

## [v0.4.0](https://github.com/confio/isotonic/tree/v0.4.0) (2022-03-02)

[Full Changelog](https://github.com/confio/isotonic/compare/v0.3.0...v0.4.0)

**Breaking changes:**

- Add reserve for each Market [\#47](https://github.com/confio/isotonic/issues/47)

**Closed issues:**

- New liquidation \(option 2\): each market maintains a list of opt-in liquidators [\#82](https://github.com/confio/isotonic/issues/82)
- Rename to Isotonic [\#80](https://github.com/confio/isotonic/issues/80)
- Update to cw-plus 0.12.1 [\#77](https://github.com/confio/isotonic/issues/77)
- Replace Market's `Uint128` responses with `Coin` to acknowledge denoms [\#73](https://github.com/confio/isotonic/issues/73)
- Liquidate via AMM [\#68](https://github.com/confio/isotonic/issues/68)
- Allow list for who can liquidate [\#66](https://github.com/confio/isotonic/issues/66)
- Add cap to each market [\#65](https://github.com/confio/isotonic/issues/65)
- Add new interest rate model [\#64](https://github.com/confio/isotonic/issues/64)

**Merged pull requests:**

- Add reserve factor for each market [\#85](https://github.com/confio/isotonic/pull/85) ([ueco-jb](https://github.com/ueco-jb))
- Optional market caps [\#81](https://github.com/confio/isotonic/pull/81) ([uint](https://github.com/uint))
- Add denoms to CreditLineResponse [\#79](https://github.com/confio/isotonic/pull/79) ([uint](https://github.com/uint))
- Update cw-plus packages to 0.12.1 [\#78](https://github.com/confio/isotonic/pull/78) ([ueco-jb](https://github.com/ueco-jb))
- Update changelog accordingly to 0.3.0 release [\#76](https://github.com/confio/isotonic/pull/76) ([ueco-jb](https://github.com/ueco-jb))
- Validate interest rate [\#74](https://github.com/confio/isotonic/pull/74) ([uint](https://github.com/uint))
- Piecewise linear interest rate model [\#72](https://github.com/confio/isotonic/pull/72) ([uint](https://github.com/uint))

## [v0.3.0](https://github.com/confio/isotonic/tree/v0.3.0) (2022-02-14)

[Full Changelog](https://github.com/confio/isotonic/compare/v0.2.0...v0.3.0)

**Closed issues:**

- Price Oracle: Return inverse rate if buy/sell denoms matches [\#45](https://github.com/confio/isotonic/issues/45)
- Fix naming for price ratio [\#58](https://github.com/confio/isotonic/issues/58)
- Market: `collateral_ratio` must be lower then `liquidation_price` from CA [\#55](https://github.com/confio/isotonic/issues/55)
- Market Contract - Credit Agency authorizes transferable amount [\#53](https://github.com/confio/isotonic/issues/53)
- Set version `0.3.0` [\#50](https://github.com/confio/isotonic/issues/50)
- Direct Liquidation Possible [\#27](https://github.com/confio/isotonic/issues/27)
- Credit Agency properly authorizes borrows and transfers [\#26](https://github.com/confio/isotonic/issues/26)
- Add query for total credit on Credit Agency [\#23](https://github.com/confio/isotonic/issues/23)
- Provide Collateral Info from Market [\#21](https://github.com/confio/isotonic/issues/21)
- Create \(stub\) Price Oracle [\#20](https://github.com/confio/isotonic/issues/20)
- Create Credit Agency as Market Factory [\#19](https://github.com/confio/isotonic/issues/19)

**Merged pull requests:**

- Change contract's version to 0.3.0 [\#75](https://github.com/confio/isotonic/pull/75) ([ueco-jb](https://github.com/ueco-jb))
- Update workspace-optimizer to latest v0.12.4 [\#62](https://github.com/confio/isotonic/pull/62) ([maurolacy](https://github.com/maurolacy))
- Fix tag consolidation for matching CHANGELOG entries [\#61](https://github.com/confio/isotonic/pull/61) ([maurolacy](https://github.com/maurolacy))
- CA: Return error if liquidation price is lower then collateral ratio [\#60](https://github.com/confio/isotonic/pull/60) ([ueco-jb](https://github.com/ueco-jb))
- Market: Price ratio helper refactored [\#59](https://github.com/confio/isotonic/pull/59) ([ueco-jb](https://github.com/ueco-jb))
- Market contract: CA authorizes transferable amount [\#54](https://github.com/confio/isotonic/pull/54) ([ueco-jb](https://github.com/ueco-jb))
- Credit Agency: Direct liquidation [\#52](https://github.com/confio/isotonic/pull/52) ([ueco-jb](https://github.com/ueco-jb))
- CA authorizes borrows and transfers [\#51](https://github.com/confio/isotonic/pull/51) ([ueco-jb](https://github.com/ueco-jb))
- Credit Agency - add query for total credit [\#46](https://github.com/confio/isotonic/pull/46) ([ueco-jb](https://github.com/ueco-jb))
- Rename `base_asset` to `market_token` [\#44](https://github.com/confio/isotonic/pull/44) ([ueco-jb](https://github.com/ueco-jb))
- Provide collateral info from market [\#41](https://github.com/confio/isotonic/pull/41) ([ueco-jb](https://github.com/ueco-jb))

## [Unreleased](https://github.com/confio/isotonic/tree/HEAD)

[Full Changelog](https://github.com/confio/isotonic/compare/v0.1.0...HEAD)

## [v0.2.0](https://github.com/confio/isotonic/tree/v0.2.0) (2021-12-20)

[Full Changelog](https://github.com/confio/isotonic/compare/v0.1.0...v0.2.0)

**Implemented enhancements:**

- Remove schemas, and publish them with artifacts on release tags [\#33](https://github.com/confio/isotonic/issues/33)

**Closed issues:**

- Create \(stub\) Price Oracle [\#20](https://github.com/confio/isotonic/issues/20)
- Create Credit Agency as Market Factory [\#19](https://github.com/confio/isotonic/issues/19)
- Charge Interest [\#9](https://github.com/confio/isotonic/issues/9)
- Calculate Interest and Utilisation rate [\#8](https://github.com/confio/isotonic/issues/8)
- Borrow and Repay B Tokens [\#7](https://github.com/confio/isotonic/issues/7)
- Mint/Burn L Tokens [\#6](https://github.com/confio/isotonic/issues/6)
- Instantiate Market contract [\#5](https://github.com/confio/isotonic/issues/5)
- Add cw2222 style Distribution [\#4](https://github.com/confio/isotonic/issues/4)

**Merged pull requests:**

- Isotonic Market: Move execute messages to separate mod [\#39](https://github.com/confio/isotonic/pull/39) ([ueco-jb](https://github.com/ueco-jb))
- Create Credit Agency contract [\#38](https://github.com/confio/isotonic/pull/38) ([uint](https://github.com/uint))
- isotonic-oracle: set up the oracle contract [\#37](https://github.com/confio/isotonic/pull/37) ([uint](https://github.com/uint))
- Isotonic Market - charge interests [\#35](https://github.com/confio/isotonic/pull/35) ([ueco-jb](https://github.com/ueco-jb))
- Remove scheams from contracts [\#34](https://github.com/confio/isotonic/pull/34) ([ueco-jb](https://github.com/ueco-jb))
- Market Contract - Borrow and repay BTokens [\#32](https://github.com/confio/isotonic/pull/32) ([ueco-jb](https://github.com/ueco-jb))
- Interest and utilisation rates [\#31](https://github.com/confio/isotonic/pull/31) ([maurolacy](https://github.com/maurolacy))
- isotonic-token: Cw2222 style distribution [\#30](https://github.com/confio/isotonic/pull/30) ([hashedone](https://github.com/hashedone))
- isotonic-token: controller can burn anyone's coin [\#29](https://github.com/confio/isotonic/pull/29) ([uint](https://github.com/uint))
- isotonic-market: Mint/burn l-tokens [\#28](https://github.com/confio/isotonic/pull/28) ([uint](https://github.com/uint))

## [v0.1.0](https://github.com/confio/isotonic/tree/v0.1.0) (2021-12-10)

[Full Changelog](https://github.com/confio/isotonic/compare/849f1119e4f6e371421b90a1d667feb18f84e396...v0.1.0)

**Closed issues:**

- Set up CI config [\#12](https://github.com/confio/isotonic/issues/12)
- Provide one contract \(straight from cw-template\) called `isotonic-token`. [\#11](https://github.com/confio/isotonic/issues/11)
- Add rebasing to isotonic-token [\#3](https://github.com/confio/isotonic/issues/3)
- Minimal Isotonic Token \(no rebasing\) [\#2](https://github.com/confio/isotonic/issues/2)
- Set up repo [\#1](https://github.com/confio/isotonic/issues/1)

**Merged pull requests:**

- Basic isotonic contract [\#18](https://github.com/confio/isotonic/pull/18) ([hashedone](https://github.com/hashedone))
- isotonic-token: rebasing [\#17](https://github.com/confio/isotonic/pull/17) ([uint](https://github.com/uint))
- Instantiate Market contract [\#16](https://github.com/confio/isotonic/pull/16) ([ueco-jb](https://github.com/ueco-jb))
- Create new Market contract [\#15](https://github.com/confio/isotonic/pull/15) ([ueco-jb](https://github.com/ueco-jb))
- isotonic-token: Basic contract [\#14](https://github.com/confio/isotonic/pull/14) ([hashedone](https://github.com/hashedone))
- Setup CI config [\#13](https://github.com/confio/isotonic/pull/13) ([ueco-jb](https://github.com/ueco-jb))
- Add isotonic-token contract base and empty package `utils` [\#10](https://github.com/confio/isotonic/pull/10) ([ueco-jb](https://github.com/ueco-jb))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
Loading

0 comments on commit 5000c52

Please sign in to comment.