Skip to content

Commit

Permalink
feat: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SissonJ committed Mar 26, 2024
1 parent 3b4bf36 commit 82884da
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default defineConfig({
items: [
{ text: 'Swap', link: '/queries/swap' },
{ text: 'Oracle', link: '/queries/oracle' },
{ text: 'stkd-SCRT', link: '/queries/derivativeScrt' },
{ text: 'Batch Query', link: '/queries/batch-query' },
{ text: 'Snip20', link: '/queries/snip20' },
]
Expand Down
2 changes: 2 additions & 0 deletions docs/contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This page contains a list of deployed contracts.
| ShadeSwap Router | secret1pjhdug87nxzv0esxasmeyfsucaj98pw4334wyc | 448e3f6d801e453e838b7a5fbaa4dd93b84d0f1011245f0d5745366dadaf3e85 |
| Batch Query Router | secret17gnlxnwux0szd7qhl90ym8lw22qvedjz4v09dm | 72a09535b77b76862f7b568baf1ddbe158a2e4bbd0f0879c69ada9b398e31c1f |
| Oracle | secret10n2xl5jmez6r9umtdrth78k0vwmce0l5m9f5dm | 32c4710842b97a526c243a68511b15f58d6e72a388af38a7221ff3244c754e91 |
| stkd-scrt | secret1k6u0cy4feepm6pehnz804zmwakuwdapm69tuc4 | f6be719b3c6feb498d3554ca0398eb6b7e7db262acb33f84a8f12106da6bbb09 |

::: tip
The ShadeSwap pairs contracts are accessible via the factory registered pairs query.
Expand All @@ -22,3 +23,4 @@ The ShadeSwap pairs contracts are accessible via the factory registered pairs qu
| ShadeSwap Router | secret137sjm7hgqdp4d0dldqnrxe2ktw02meaygnjd0e | 93dac48bf508eeb4c619fcb8b1cb260f9957e31450740a2b7325440ddf92daa8 |
| Batch Query Router | secret10cxkxmspt44mp2wym6dcguk5wqqkm5a9ydw3du | 72a09535b77b76862f7b568baf1ddbe158a2e4bbd0f0879c69ada9b398e31c1f |
| Oracle | secret17z47r9u4nqytpdgvewxq4jqd965sfj2wpsnlak | 113c47c016667817b315dde03b4ee9774edf1fb293a7ea3f02d983c6b1fa1cf1 |
| stkd-scrt | secret14svk0x3sztxwta9kv9dv6fwzqlc26mmjfyypc2 | 680fbb3c8f8eb1c920da13d857daaedaa46ab8f9a8e26e892bb18a16985ec29e |
1 change: 1 addition & 0 deletions docs/queries/derivativeScrt.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This page demonstrates how to query the stkd Scrt derivative contracts
*
* queryTimeSeconds is a paramater to query the contract
* at a specific time in seconds from the UNIX Epoch
* Optional and will default to current time
*/
const queryDerivativeScrtInfo = ({
queryRouterContractAddress,
Expand Down
4 changes: 3 additions & 1 deletion src/contracts/services/derivativeScrt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function parseDerivativeScrtStakingInfo(
exchangeRate: convertCoinFromUDenom(exchangeRate, DERIVATE_PRICE_DECIMALS).toNumber(),
communityRewards,
nextUnboundAmount,
// Seconds to Miliseconds
// Seconds to Milliseconds
nextUnbondingBatchEstimatedTime: nextUnbondingBatchEstimatedTime * 1000,
};
}
Expand Down Expand Up @@ -97,6 +97,7 @@ const parseDerivativeScrtInfo = (
*
* queryTimeSeconds is a paramater to query the contract
* at a specific time in seconds from the UNIX Epoch
* Optional and will default to current time
*/
const queryDerivativeScrtInfo$ = ({
queryRouterContractAddress,
Expand Down Expand Up @@ -150,6 +151,7 @@ const queryDerivativeScrtInfo$ = ({
*
* queryTimeSeconds is a paramater to query the contract
* at a specific time in seconds from the UNIX Epoch
* Optional and will default to current time
*/
async function queryDerivativeScrtInfo({
queryRouterContractAddress,
Expand Down

0 comments on commit 82884da

Please sign in to comment.