Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
fb39e25
feat: get_public_logs
mohammedpatla Oct 22, 2024
bc9388b
feat: build the moneymarketpublic events service
mohammedpatla Oct 23, 2024
d2f97a3
feat: mock typed and test to check outputs and parsed values match
mohammedpatla Oct 25, 2024
99e4dd4
chore: eslint fixes
mohammedpatla Oct 25, 2024
3c3251b
chore: docs
mohammedpatla Oct 31, 2024
5283621
fix: changeset
mohammedpatla Oct 31, 2024
ae9d4b4
fix: address comments
mohammedpatla Oct 31, 2024
8a5254a
chore: eslint
mohammedpatla Oct 31, 2024
bceb82a
fix: change to logs and fix test
mohammedpatla Oct 31, 2024
218c67d
fix: correct changeset
mohammedpatla Oct 31, 2024
d988eb0
feat: bump secretjs version
DrPresident Oct 31, 2024
98f687b
fix: patch secretnetwork upgrade
mohammedpatla Nov 1, 2024
0500c93
feat: create a batch query
mohammedpatla Nov 4, 2024
437872f
chore: eslint
mohammedpatla Nov 4, 2024
5977ce3
fix: change event to logs
mohammedpatla Nov 4, 2024
be9476b
fix: change query to reflect data onchain
mohammedpatla Nov 11, 2024
330ce08
chore: eslint
mohammedpatla Nov 11, 2024
f148579
fix: change public events to get_public_logs
mohammedpatla Nov 11, 2024
531500b
feat: money market reward pools batch query
DrPresident Nov 12, 2024
3cdb253
feat: format
DrPresident Nov 12, 2024
45d2e27
feat: functions working, should add types
DrPresident Nov 19, 2024
57e129c
feat: removing console.logs
DrPresident Nov 21, 2024
f259a3e
feat: types
DrPresident Nov 21, 2024
4762e5d
feat: added type
DrPresident Nov 21, 2024
a9b17c1
Merge branch 'moneymarket' into money-market-reward-pools
DrPresident Nov 21, 2024
65a9948
feat: changeset
DrPresident Nov 21, 2024
c69792f
Merge pull request #175 from securesecrets/money-market-reward-pools
AustinWoetzel Nov 21, 2024
57320fd
feat: fixed block height type
DrPresident Nov 21, 2024
951351c
Borrower rewards (#177)
DrPresident Nov 27, 2024
44c5992
Vault Rework (#183)
DrPresident Jan 7, 2025
e3d59d5
chore: update docs
mohammedpatla Jan 13, 2025
37188a2
Merge pull request #191 from securesecrets/money-market-dcos
mohammedpatla Jan 13, 2025
3d0ca6b
feat: make changes for the contract interface change (#195)
SissonJ Feb 10, 2025
0cdfd03
feat: merge develop
SissonJ Feb 17, 2025
28a15f1
Merge pull request #196 from securesecrets/js014_merge-develop
SissonJ Feb 17, 2025
60a1886
chore: bump shadejs
mohammedpatla Sep 12, 2025
ff998e3
chore: add changeset
mohammedpatla Sep 12, 2025
9530c8a
Merge pull request #206 from securesecrets/fix/bump-shadejs
AustinWoetzel Sep 12, 2025
6f5d6f9
fix: bump shadejs version
mohammedpatla Sep 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/brown-laws-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shadeprotocol/shadejs": patch
---

Money Market Reward Pools
5 changes: 5 additions & 0 deletions .changeset/nasty-carrots-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shadeprotocol/shadejs": patch
---

interface changes from audit
5 changes: 5 additions & 0 deletions .changeset/poor-apricots-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shadeprotocol/shadejs": patch
---

Money Market Public Logs Querys
5 changes: 5 additions & 0 deletions .changeset/wild-poets-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shadeprotocol/shadejs": patch
---

Bump shadejs to latest
Binary file added .yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,16 @@ Docs will be available on a vitepress site. You can run the site locally with th

```
$ yarn docs:dev
```
```

## Building new version run for deployment via Github
```bash
yarn changeset
```


## Publish ShadeJs manually
```bash
yarn build
npm publish --tag beta
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@shadeprotocol/shadejs",
"description": "The Typescript SDK for Shade Protocol",
"version": "1.0.9",
"version": "1.7.1-beta.2",
"author": "Secure Secrets",
"bugs": {
"url": "https://github.com/securesecrets/shadejs/issues"
Expand Down Expand Up @@ -42,7 +42,7 @@
"dependencies": {
"bignumber.js": "^9.1.2",
"rxjs": "^7.8.1",
"secretjs": "1.15.0",
"secretjs": "1.21.2",
"vite": "^4.5.0",
"whatwg-fetch": "^3.6.19"
},
Expand Down
26 changes: 22 additions & 4 deletions src/contracts/definitions/moneyMarket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ const msgQueryMoneyMarketCollaterals = (
});

/**
* Query the markets' state and config info
* Query the vaults' state and config info
* NOT FOR PRODUCTION USE, CONTRACT IS IN DEVELOPMENT ON TESTNET ONLY
*/
const msgQueryMoneyMarketMarkets = (
const msgQueryMoneyMarketVaults = (
pagination?: Pagination,
) => ({
get_markets: {
get_vaults: {
pagination,
},
});
Expand Down Expand Up @@ -177,15 +177,33 @@ function msgMoneyMarketRepay({
}).msg;
}

function msgMoneyMarketClaimRewards() {
return { claim_rewards: {} };
}

/**
* Query the Public Event Logs for momeymarket contract
* NOT FOR PRODUCTION USE, CONTRACT IS IN DEVELOPMENT ON TESTNET ONLY
*/
const msgQueryMoneyMarketPublicLogs = (
pagination?: Pagination,
) => ({
get_public_log: {
pagination,
},
});

export {
msgQueryMoneyMarketConfig,
msgQueryMoneyMarketCollaterals,
msgQueryMoneyMarketMarkets,
msgQueryMoneyMarketVaults,
msgQueryMoneyMarketUserPosition,
msgMoneyMarketBorrow,
msgMoneyMarketWithdrawCollateral,
msgMoneyMarketDepositCollateral,
msgMoneyMarketSupply,
msgMoneyMarketWithdrawSupply,
msgMoneyMarketRepay,
msgMoneyMarketClaimRewards,
msgQueryMoneyMarketPublicLogs,
};
Loading
Loading