From 014ba6fa7e52e42be171d2180d203460cd5f7aa5 Mon Sep 17 00:00:00 2001 From: Austin Date: Mon, 8 Jul 2024 11:24:05 -0500 Subject: [PATCH] docs: init jsons --- .gitignore | 3 -- .../init/credit-agency-init.json | 31 +++++++++++++++++++ .../lending/market_v2/init/create-market.json | 26 ++++++++++++++++ 3 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 contracts/lending/credit-agency/init/credit-agency-init.json create mode 100644 contracts/lending/market_v2/init/create-market.json diff --git a/.gitignore b/.gitignore index c8dbb2c9b..533d5a134 100644 --- a/.gitignore +++ b/.gitignore @@ -7,9 +7,6 @@ # Build results target/ -# Testing configs -*.json - # Code coverage stuff *.profraw diff --git a/contracts/lending/credit-agency/init/credit-agency-init.json b/contracts/lending/credit-agency/init/credit-agency-init.json new file mode 100644 index 000000000..b36838d7b --- /dev/null +++ b/contracts/lending/credit-agency/init/credit-agency-init.json @@ -0,0 +1,31 @@ +{ + "gov_contract": { + "address": "", + "code_hash": "" + }, + "query_auth": { + "address": "secret1e0k5jza9jqctc5dt7mltnxmwpu3a3kqe0a6hf3", + "code_hash": "b6ec3cc640d26b6658d52e0cfb5f79abc3afd1643ec5112cfc6a9fb51d848e69" + }, + "lend_market_id": 8702, + "lend_market_code_hash": "cffedf317ea76d945d9596737e5136acfe6d799fb08ad89859724e4f641058d3", + "market_viewing_key": "key", + "ctoken_token_id": 8701, + "ctoken_code_hash": "22fdfc0cbe8d9f904d2e343bb55094db56736486aa0056a862c990a7eda9f9a2", + "reward_token": { + "Cw20": { + "address": "secret13w6n5u3kpvqdunkavgfy40d7ma85xuhxrcxd0a", + "code_hash": "31cbe386f9b8f04994a7f3fa097ce52b713527da235f22658aa2ba413138dc5f" + } + }, + "common_token": { + "Cw20": { + "address": "secret10wz305lmdjt7kvph44c8vvpnq6pqny6q5jlhtn", + "code_hash": "1691e4e24714e324a8d2345183027a918bba5c737bb2cbdbedda3cf8e7672faf" + } + }, + "liquidation_price": "0.05", + "liquidation_threshold": "0.01", + "borrow_limit_ratio": "0.5", + "default_estimate_multiplier": "1.0" +} \ No newline at end of file diff --git a/contracts/lending/market_v2/init/create-market.json b/contracts/lending/market_v2/init/create-market.json new file mode 100644 index 000000000..a693f1f4c --- /dev/null +++ b/contracts/lending/market_v2/init/create-market.json @@ -0,0 +1,26 @@ +{ + "create_market": { + "name": "market0", + "symbol": "m0", + "decimals": 6, + "market_token": { + "Cw20": { + "address": "secret13w6n5u3kpvqdunkavgfy40d7ma85xuhxrcxd0a", + "code_hash": "31cbe386f9b8f04994a7f3fa097ce52b713527da235f22658aa2ba413138dc5f" + } + }, + "interest_rate": { + "linear": { + "base": "0.02", + "slope": "0.01" + } + }, + "interest_charge_period": 3600, + "collateral_ratio": "0.8", + "price_oracle": { + "address": "secret17z47r9u4nqytpdgvewxq4jqd965sfj2wpsnlak", + "code_hash": "113c47c016667817b315dde03b4ee9774edf1fb293a7ea3f02d983c6b1fa1cf1" + }, + "reserve_factor": "0.1" + } +} \ No newline at end of file