@evergonlabs/tmi-protocol-api 0.2.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/issuance/deploy.d.ts +16 -16
- package/dist/issuance/deploy.d.ts.map +1 -1
- package/dist/issuance/deploy.js +11 -7
- package/dist/issuance/index.d.ts +2 -2
- package/dist/issuance/index.js +2 -2
- package/dist/package.json +78 -0
- package/dist/src/app.d.ts +2194 -0
- package/dist/src/app.d.ts.map +1 -0
- package/dist/src/app.js +18 -0
- package/dist/src/client.d.ts +2690 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +4 -0
- package/dist/src/common/abis/erc20Whitelisted.d.ts +4 -0
- package/dist/src/common/abis/erc20Whitelisted.d.ts.map +1 -0
- package/dist/src/common/abis/erc20Whitelisted.js +4 -0
- package/dist/src/common/app.d.ts +9 -0
- package/dist/src/common/app.d.ts.map +1 -0
- package/dist/src/common/app.js +3 -0
- package/dist/src/common/blockchain.d.ts +9528 -0
- package/dist/src/common/blockchain.d.ts.map +1 -0
- package/dist/src/common/blockchain.js +40 -0
- package/dist/src/common/config.d.ts +21 -0
- package/dist/src/common/config.d.ts.map +1 -0
- package/dist/src/common/config.js +33 -0
- package/dist/src/common/http-error.d.ts +7 -0
- package/dist/src/common/http-error.d.ts.map +1 -0
- package/dist/src/common/http-error.js +7 -0
- package/dist/src/common/index.d.ts +2 -0
- package/dist/src/common/index.d.ts.map +1 -0
- package/dist/src/common/index.js +1 -0
- package/dist/src/common/indexer/client.d.ts +1191 -0
- package/dist/src/common/indexer/client.d.ts.map +1 -0
- package/dist/src/common/indexer/client.js +7 -0
- package/dist/src/common/indexer/index.d.ts +1191 -0
- package/dist/src/common/indexer/index.d.ts.map +1 -0
- package/dist/src/common/indexer/index.js +3 -0
- package/dist/src/common/indexer/schemas.d.ts +1191 -0
- package/dist/src/common/indexer/schemas.d.ts.map +1 -0
- package/dist/src/common/indexer/schemas.js +14 -0
- package/dist/src/common/models/chainId.d.ts +5 -0
- package/dist/src/common/models/chainId.d.ts.map +1 -0
- package/dist/src/common/models/chainId.js +23 -0
- package/dist/src/common/models/date.d.ts +3 -0
- package/dist/src/common/models/date.d.ts.map +1 -0
- package/dist/src/common/models/date.js +5 -0
- package/dist/src/common/models/erc721.d.ts +15 -0
- package/dist/src/common/models/erc721.d.ts.map +1 -0
- package/dist/src/common/models/erc721.js +21 -0
- package/dist/src/common/models/index.d.ts +7 -0
- package/dist/src/common/models/index.d.ts.map +1 -0
- package/dist/src/common/models/index.js +6 -0
- package/dist/src/common/models/page.d.ts +12 -0
- package/dist/src/common/models/page.d.ts.map +1 -0
- package/dist/src/common/models/page.js +15 -0
- package/dist/src/common/models/percent.d.ts +3 -0
- package/dist/src/common/models/percent.d.ts.map +1 -0
- package/dist/src/common/models/percent.js +6 -0
- package/dist/src/common/models/platform.d.ts +4 -0
- package/dist/src/common/models/platform.d.ts.map +1 -0
- package/dist/src/common/models/platform.js +13 -0
- package/dist/src/common/models/routes.d.ts +16 -0
- package/dist/src/common/models/routes.d.ts.map +1 -0
- package/dist/src/common/models/routes.js +13 -0
- package/dist/src/common/models/saleId.d.ts +12 -0
- package/dist/src/common/models/saleId.d.ts.map +1 -0
- package/dist/src/common/models/saleId.js +6 -0
- package/dist/src/common/models/transaction.d.ts +90 -0
- package/dist/src/common/models/transaction.d.ts.map +1 -0
- package/dist/src/common/models/transaction.js +57 -0
- package/dist/src/common/models/viem.d.ts +4 -0
- package/dist/src/common/models/viem.d.ts.map +1 -0
- package/dist/src/common/models/viem.js +15 -0
- package/dist/src/common/openapi.d.ts +4 -0
- package/dist/src/common/openapi.d.ts.map +1 -0
- package/dist/src/common/openapi.js +40 -0
- package/dist/src/common/tag.d.ts +7 -0
- package/dist/src/common/tag.d.ts.map +1 -0
- package/dist/src/common/tag.js +5 -0
- package/dist/src/common/version.d.ts +2 -0
- package/dist/src/common/version.d.ts.map +1 -0
- package/dist/src/common/version.js +2 -0
- package/dist/src/common/zod.d.ts +3 -0
- package/dist/src/common/zod.d.ts.map +1 -0
- package/dist/src/common/zod.js +2 -0
- package/dist/src/error.d.ts +3 -0
- package/dist/src/error.d.ts.map +1 -0
- package/dist/src/error.js +16 -0
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts +68 -0
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts.map +1 -0
- package/dist/src/fractions/approveSale/v0/approveSale.route.js +31 -0
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts +203 -0
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +1 -0
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.js +84 -0
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts +68 -0
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts.map +1 -0
- package/dist/src/fractions/completeSale/v0/completeSale.route.js +31 -0
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts +305 -0
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts.map +1 -0
- package/dist/src/fractions/createFractions/v0/createFractions.route.js +61 -0
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts +416 -0
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts.map +1 -0
- package/dist/src/fractions/createFractions/v0/createFractions.schema.js +67 -0
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +51 -0
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.js +59 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts +297 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.js +98 -0
- package/dist/{lending → src/fractions}/deployMarket/v0/deployMarket.schema.d.ts +41 -50
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +1 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.js +21 -0
- package/dist/src/fractions/gating/index.d.ts +2 -0
- package/dist/src/fractions/gating/index.d.ts.map +1 -0
- package/dist/src/fractions/gating/index.js +0 -0
- package/dist/src/fractions/gating/v0/getAuthData.d.ts +86 -0
- package/dist/src/fractions/gating/v0/getAuthData.d.ts.map +1 -0
- package/dist/src/fractions/gating/v0/getAuthData.js +48 -0
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts +54 -0
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts.map +1 -0
- package/dist/src/fractions/gating/v0/getNonce.route.js +40 -0
- package/dist/{lending/setCollateralPrice/v0/setCollateralPrice.routes.d.ts → src/fractions/grantRole/v0/grantRole.route.d.ts} +15 -11
- package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts.map +1 -0
- package/dist/src/fractions/grantRole/v0/grantRole.route.js +31 -0
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts +26 -0
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts.map +1 -0
- package/dist/src/fractions/grantRole/v0/grantRole.schema.js +14 -0
- package/dist/src/fractions/index.d.ts +968 -0
- package/dist/src/fractions/index.d.ts.map +1 -0
- package/dist/src/fractions/index.js +91 -0
- package/dist/src/fractions/markets/common/platform.d.ts +26 -0
- package/dist/src/fractions/markets/common/platform.d.ts.map +1 -0
- package/dist/src/fractions/markets/common/platform.js +26 -0
- package/dist/src/fractions/markets/getDeployEvent.d.ts +42 -0
- package/dist/src/fractions/markets/getDeployEvent.d.ts.map +1 -0
- package/dist/src/fractions/markets/getDeployEvent.js +47 -0
- package/dist/src/fractions/markets/getMarket/index.d.ts +40 -0
- package/dist/src/fractions/markets/getMarket/index.d.ts.map +1 -0
- package/dist/src/fractions/markets/getMarket/index.js +4 -0
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts +64 -0
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts.map +1 -0
- package/dist/src/fractions/markets/getMarket/v0/getMarket.js +63 -0
- package/dist/src/fractions/markets/index.d.ts +84 -0
- package/dist/src/fractions/markets/index.d.ts.map +1 -0
- package/dist/src/fractions/markets/index.js +12 -0
- package/dist/src/fractions/markets/searchMarkets/index.d.ts +32 -0
- package/dist/src/fractions/markets/searchMarkets/index.d.ts.map +1 -0
- package/dist/src/fractions/markets/searchMarkets/index.js +4 -0
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +76 -0
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +1 -0
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.js +42 -0
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts +89 -0
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts.map +1 -0
- package/dist/src/fractions/purchase/v0/purchase.route.js +41 -0
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts +28 -0
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/src/fractions/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/src/fractions/sales/getVaultAddress.d.ts +52 -0
- package/dist/src/fractions/sales/getVaultAddress.d.ts.map +1 -0
- package/dist/src/fractions/sales/getVaultAddress.js +61 -0
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts +42 -0
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts.map +1 -0
- package/dist/src/fractions/sales/getWithdrawEvent.js +52 -0
- package/dist/src/fractions/sales/index.d.ts +10 -0
- package/dist/src/fractions/sales/index.d.ts.map +1 -0
- package/dist/src/fractions/sales/index.js +10 -0
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +144 -0
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.js +59 -0
- package/dist/{lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.d.ts → src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts} +6 -6
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +27 -0
- package/dist/src/fractions/sales/recoverFractions.d.ts +108 -0
- package/dist/src/fractions/sales/recoverFractions.d.ts.map +1 -0
- package/dist/src/fractions/sales/recoverFractions.js +45 -0
- package/dist/src/fractions/sales/rejectFractions.d.ts +80 -0
- package/dist/src/fractions/sales/rejectFractions.d.ts.map +1 -0
- package/dist/src/fractions/sales/rejectFractions.js +39 -0
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts +2 -0
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts.map +1 -0
- package/dist/src/fractions/sales/searchSaleEvents/index.js +0 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +89 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +1 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +82 -0
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts +75 -0
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts.map +1 -0
- package/dist/src/fractions/sales/setFeeCapLimit.js +32 -0
- package/dist/{lending/buyback/v0/buyback.routes.d.ts → src/fractions/sales/unlockWrappedAssets.route.d.ts} +17 -10
- package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/unlockWrappedAssets.route.js +31 -0
- package/dist/src/fractions/sales/vesting/index.d.ts +2 -0
- package/dist/src/fractions/sales/vesting/index.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/index.js +0 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +94 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.js +41 -0
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts +87 -0
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.js +40 -0
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +48 -0
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +58 -0
- package/dist/{lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.routes.d.ts → src/fractions/withdraw/v0/withdraw.route.d.ts} +17 -6
- package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts.map +1 -0
- package/dist/src/fractions/withdraw/v0/withdraw.route.js +31 -0
- package/dist/src/general/balance-client.d.ts +13 -0
- package/dist/src/general/balance-client.d.ts.map +1 -0
- package/dist/src/general/balance-client.js +26 -0
- package/dist/src/general/common.d.ts +94 -0
- package/dist/src/general/common.d.ts.map +1 -0
- package/dist/src/general/common.js +35 -0
- package/dist/src/general/estimateGas.d.ts +52 -0
- package/dist/src/general/estimateGas.d.ts.map +1 -0
- package/dist/src/general/estimateGas.js +64 -0
- package/dist/src/general/getBalance.d.ts +44 -0
- package/dist/src/general/getBalance.d.ts.map +1 -0
- package/dist/src/general/getBalance.js +43 -0
- package/dist/src/general/getBalancesBatch.d.ts +59 -0
- package/dist/src/general/getBalancesBatch.d.ts.map +1 -0
- package/dist/src/general/getBalancesBatch.js +34 -0
- package/dist/src/general/index.d.ts +100 -0
- package/dist/src/general/index.d.ts.map +1 -0
- package/dist/src/general/index.js +20 -0
- package/dist/src/general/searchBalances.d.ts +78 -0
- package/dist/src/general/searchBalances.d.ts.map +1 -0
- package/dist/src/general/searchBalances.js +49 -0
- package/dist/src/issuance/approve.d.ts +75 -0
- package/dist/src/issuance/approve.d.ts.map +1 -0
- package/dist/src/issuance/approve.js +36 -0
- package/dist/src/issuance/burn.d.ts +75 -0
- package/dist/src/issuance/burn.d.ts.map +1 -0
- package/dist/src/issuance/burn.js +36 -0
- package/dist/src/issuance/deploy.d.ts +88 -0
- package/dist/src/issuance/deploy.d.ts.map +1 -0
- package/dist/src/issuance/deploy.js +91 -0
- package/dist/src/issuance/grantRole.d.ts +78 -0
- package/dist/src/issuance/grantRole.d.ts.map +1 -0
- package/dist/src/issuance/grantRole.js +50 -0
- package/dist/src/issuance/index.d.ts +165 -0
- package/dist/src/issuance/index.d.ts.map +1 -0
- package/dist/src/issuance/index.js +23 -0
- package/dist/src/issuance/mint.d.ts +75 -0
- package/dist/src/issuance/mint.d.ts.map +1 -0
- package/dist/src/issuance/mint.js +36 -0
- package/dist/src/issuance/transfer.d.ts +75 -0
- package/dist/src/issuance/transfer.d.ts.map +1 -0
- package/dist/src/issuance/transfer.js +36 -0
- package/dist/src/serve.d.ts +2 -0
- package/dist/src/serve.d.ts.map +1 -0
- package/dist/src/serve.js +33 -0
- package/dist/src/staking/index.d.ts +242 -0
- package/dist/src/staking/index.d.ts.map +1 -0
- package/dist/src/staking/index.js +20 -0
- package/dist/src/staking/platforms/common/platform.d.ts +26 -0
- package/dist/src/staking/platforms/common/platform.d.ts.map +1 -0
- package/dist/src/staking/platforms/common/platform.js +26 -0
- package/dist/src/staking/platforms/common/platformNotFound.d.ts +9 -0
- package/dist/src/staking/platforms/common/platformNotFound.d.ts.map +1 -0
- package/dist/src/staking/platforms/common/platformNotFound.js +13 -0
- package/dist/src/staking/platforms/getPlatform/index.d.ts +26 -0
- package/dist/src/staking/platforms/getPlatform/index.d.ts.map +1 -0
- package/dist/src/staking/platforms/getPlatform/index.js +4 -0
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts +52 -0
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -0
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.js +58 -0
- package/dist/src/staking/platforms/index.d.ts +52 -0
- package/dist/src/staking/platforms/index.d.ts.map +1 -0
- package/dist/src/staking/platforms/index.js +10 -0
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts +32 -0
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts.map +1 -0
- package/dist/src/staking/platforms/searchPlatforms/index.js +4 -0
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +76 -0
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -0
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.js +42 -0
- package/dist/src/staking/pools/common/pool.d.ts +29 -0
- package/dist/src/staking/pools/common/pool.d.ts.map +1 -0
- package/dist/src/staking/pools/common/pool.js +28 -0
- package/dist/src/staking/pools/common/poolNotFound.d.ts +10 -0
- package/dist/src/staking/pools/common/poolNotFound.d.ts.map +1 -0
- package/dist/src/staking/pools/common/poolNotFound.js +14 -0
- package/dist/src/staking/pools/getPool/index.d.ts +20 -0
- package/dist/src/staking/pools/getPool/index.d.ts.map +1 -0
- package/dist/src/staking/pools/getPool/index.js +4 -0
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts +35 -0
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts.map +1 -0
- package/dist/src/staking/pools/getPool/v0/getPool.js +64 -0
- package/dist/src/staking/pools/index.d.ts +39 -0
- package/dist/src/staking/pools/index.d.ts.map +1 -0
- package/dist/src/staking/pools/index.js +10 -0
- package/dist/src/staking/pools/searchPools/index.d.ts +25 -0
- package/dist/src/staking/pools/searchPools/index.d.ts.map +1 -0
- package/dist/src/staking/pools/searchPools/index.js +4 -0
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts +55 -0
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -0
- package/dist/src/staking/pools/searchPools/v0/searchPools.js +42 -0
- package/dist/src/staking/roles/common/role.d.ts +13 -0
- package/dist/src/staking/roles/common/role.d.ts.map +1 -0
- package/dist/src/staking/roles/common/role.js +18 -0
- package/dist/src/staking/roles/common/roleAssignment.d.ts +27 -0
- package/dist/src/staking/roles/common/roleAssignment.d.ts.map +1 -0
- package/dist/src/staking/roles/common/roleAssignment.js +21 -0
- package/dist/src/staking/roles/common/roleEvent.d.ts +30 -0
- package/dist/src/staking/roles/common/roleEvent.d.ts.map +1 -0
- package/dist/src/staking/roles/common/roleEvent.js +23 -0
- package/dist/src/staking/roles/getRoles/index.d.ts +26 -0
- package/dist/src/staking/roles/getRoles/index.d.ts.map +1 -0
- package/dist/src/staking/roles/getRoles/index.js +4 -0
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts +29 -0
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/src/staking/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/src/staking/roles/grantRole/index.d.ts +29 -0
- package/dist/src/staking/roles/grantRole/index.d.ts.map +1 -0
- package/dist/src/staking/roles/grantRole/index.js +4 -0
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts +63 -0
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -0
- package/dist/src/staking/roles/grantRole/v0/grantRole.js +40 -0
- package/dist/src/staking/roles/index.d.ts +93 -0
- package/dist/src/staking/roles/index.d.ts.map +1 -0
- package/dist/src/staking/roles/index.js +14 -0
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts +27 -0
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoleEvents/index.js +4 -0
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +63 -0
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +58 -0
- package/dist/src/staking/roles/searchRoles/index.d.ts +27 -0
- package/dist/src/staking/roles/searchRoles/index.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoles/index.js +4 -0
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts +63 -0
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.js +56 -0
- package/dist/src/staking/stakes/common/stake.d.ts +44 -0
- package/dist/src/staking/stakes/common/stake.d.ts.map +1 -0
- package/dist/src/staking/stakes/common/stake.js +45 -0
- package/dist/src/staking/stakes/common/stakeEvent.d.ts +30 -0
- package/dist/src/staking/stakes/common/stakeEvent.d.ts.map +1 -0
- package/dist/src/staking/stakes/common/stakeEvent.js +24 -0
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts +9 -0
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts.map +1 -0
- package/dist/src/staking/stakes/common/stakeNotFound.js +13 -0
- package/dist/src/staking/stakes/getStake/index.d.ts +20 -0
- package/dist/src/staking/stakes/getStake/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/getStake/index.js +4 -0
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts +35 -0
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts.map +1 -0
- package/dist/src/staking/stakes/getStake/v0/getStake.js +64 -0
- package/dist/src/staking/stakes/index.d.ts +63 -0
- package/dist/src/staking/stakes/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/index.js +12 -0
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts +27 -0
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakeEvents/index.js +4 -0
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +63 -0
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +59 -0
- package/dist/src/staking/stakes/searchStakes/index.d.ts +27 -0
- package/dist/src/staking/stakes/searchStakes/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakes/index.js +4 -0
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts +63 -0
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.js +61 -0
- package/dist/src/staking-templates/index.d.ts +732 -0
- package/dist/src/staking-templates/index.d.ts.map +1 -0
- package/dist/src/staking-templates/index.js +18 -0
- package/dist/src/staking-templates/templates/common/amount.d.ts +13 -0
- package/dist/src/staking-templates/templates/common/amount.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/amount.js +17 -0
- package/dist/src/staking-templates/templates/common/amountMult.d.ts +3 -0
- package/dist/src/staking-templates/templates/common/amountMult.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/amountMult.js +23 -0
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts +12 -0
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/erc20Input.js +16 -0
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts +12 -0
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/erc20Reward.js +16 -0
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts +31 -0
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.js +47 -0
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts +40 -0
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.js +46 -0
- package/dist/src/staking-templates/templates/common/getReward.d.ts +58 -0
- package/dist/src/staking-templates/templates/common/getReward.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getReward.js +34 -0
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts +31 -0
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getStakeEvent.js +51 -0
- package/dist/src/staking-templates/templates/common/lock.d.ts +12 -0
- package/dist/src/staking-templates/templates/common/lock.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/lock.js +20 -0
- package/dist/src/staking-templates/templates/common/lockMult.d.ts +3 -0
- package/dist/src/staking-templates/templates/common/lockMult.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/lockMult.js +15 -0
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts +62 -0
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/partialUnstake.js +39 -0
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts +13 -0
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/rewardDistribution.js +19 -0
- package/dist/src/staking-templates/templates/common/templates.d.ts +61 -0
- package/dist/src/staking-templates/templates/common/templates.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/templates.js +8 -0
- package/dist/src/staking-templates/templates/common/time.d.ts +2 -0
- package/dist/src/staking-templates/templates/common/time.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/time.js +4 -0
- package/dist/src/staking-templates/templates/common/unstake.d.ts +58 -0
- package/dist/src/staking-templates/templates/common/unstake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/unstake.js +34 -0
- package/dist/src/staking-templates/templates/reputation/common.d.ts +23 -0
- package/dist/src/staking-templates/templates/reputation/common.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/common.js +3 -0
- package/dist/src/staking-templates/templates/reputation/index.d.ts +233 -0
- package/dist/src/staking-templates/templates/reputation/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/index.js +4 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts +81 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.js +56 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts +113 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPool.js +85 -0
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts +233 -0
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/index.js +25 -0
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts +61 -0
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/restake.js +40 -0
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts +61 -0
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/stake.js +45 -0
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts +23 -0
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/common.js +3 -0
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts +244 -0
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/index.js +4 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +81 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.js +56 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts +149 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.js +99 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts +244 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/index.js +25 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts +65 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.js +44 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts +65 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.js +46 -0
- package/dist/src/staking-templates/templates/rwa/common.d.ts +23 -0
- package/dist/src/staking-templates/templates/rwa/common.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/common.js +3 -0
- package/dist/src/staking-templates/templates/rwa/index.d.ts +256 -0
- package/dist/src/staking-templates/templates/rwa/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/index.js +4 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts +81 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.js +56 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts +109 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPool.js +79 -0
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts +256 -0
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/index.js +27 -0
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts +61 -0
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.js +41 -0
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts +61 -0
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/restake.js +40 -0
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts +61 -0
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/stake.js +45 -0
- package/package.json +2 -2
- package/dist/fractions/deployMarket/v0/index.d.ts +0 -3
- package/dist/fractions/deployMarket/v0/index.d.ts.map +0 -1
- package/dist/fractions/deployMarket/v0/index.js +0 -2
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.routes.d.ts.map +0 -1
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.routes.js +0 -33
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.schema.d.ts +0 -12
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.schema.d.ts.map +0 -1
- package/dist/lending/buyBackAfterLiquidation/v0/buyBackAfterLiquidation.schema.js +0 -10
- package/dist/lending/buyback/v0/buyback.routes.d.ts.map +0 -1
- package/dist/lending/buyback/v0/buyback.routes.js +0 -33
- package/dist/lending/buyback/v0/buyback.schema.d.ts +0 -15
- package/dist/lending/buyback/v0/buyback.schema.d.ts.map +0 -1
- package/dist/lending/buyback/v0/buyback.schema.js +0 -13
- package/dist/lending/createLendingSale.d.ts +0 -585
- package/dist/lending/createLendingSale.d.ts.map +0 -1
- package/dist/lending/createLendingSale.js +0 -81
- package/dist/lending/deployMarket/v0/deployMarket.routes.d.ts +0 -117
- package/dist/lending/deployMarket/v0/deployMarket.routes.d.ts.map +0 -1
- package/dist/lending/deployMarket/v0/deployMarket.routes.js +0 -34
- package/dist/lending/deployMarket/v0/deployMarket.schema.d.ts.map +0 -1
- package/dist/lending/deployMarket/v0/deployMarket.schema.js +0 -12
- package/dist/lending/deployMarket/v0/lending.routes.d.ts +0 -105
- package/dist/lending/deployMarket/v0/lending.routes.d.ts.map +0 -1
- package/dist/lending/deployMarket/v0/lending.routes.js +0 -35
- package/dist/lending/deployMarket/v0/lending.schema.d.ts +0 -99
- package/dist/lending/deployMarket/v0/lending.schema.d.ts.map +0 -1
- package/dist/lending/deployMarket/v0/lending.schema.js +0 -14
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.d.ts.map +0 -1
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.js +0 -33
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.d.ts +0 -12
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.d.ts.map +0 -1
- package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.js +0 -10
- package/dist/lending/index.d.ts +0 -226
- package/dist/lending/index.d.ts.map +0 -1
- package/dist/lending/index.js +0 -24
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.routes.d.ts.map +0 -1
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.routes.js +0 -33
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.schema.d.ts +0 -15
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.schema.d.ts.map +0 -1
- package/dist/lending/setCollateralPrice/v0/setCollateralPrice.schema.js +0 -13
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createDeployLendingMarketTransactionV0<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
|
-
data: `0x${string}`;
|
|
5
|
-
to: `0x${string}`;
|
|
6
|
-
details: {
|
|
7
|
-
functionName: string;
|
|
8
|
-
address: `0x${string}`;
|
|
9
|
-
abi: any[];
|
|
10
|
-
args: any[];
|
|
11
|
-
};
|
|
12
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
13
|
-
in: {
|
|
14
|
-
json: {
|
|
15
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
16
|
-
adminAddress: `0x${string}`;
|
|
17
|
-
lending: {
|
|
18
|
-
minInterest: number;
|
|
19
|
-
maxInterest: number;
|
|
20
|
-
minDuration: bigint;
|
|
21
|
-
maxDuration: bigint;
|
|
22
|
-
minimumProportionsOverObligation: bigint;
|
|
23
|
-
};
|
|
24
|
-
discount?: {
|
|
25
|
-
burnForDiscount: {
|
|
26
|
-
burnableTokenAddress: `0x${string}`;
|
|
27
|
-
};
|
|
28
|
-
} | undefined;
|
|
29
|
-
cap?: {
|
|
30
|
-
maxHardCap: bigint;
|
|
31
|
-
} | undefined;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
out: {
|
|
35
|
-
json: {
|
|
36
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
37
|
-
adminAddress: `0x${string}`;
|
|
38
|
-
lending: {
|
|
39
|
-
minInterest: number;
|
|
40
|
-
maxInterest: number;
|
|
41
|
-
minDuration: bigint;
|
|
42
|
-
maxDuration: bigint;
|
|
43
|
-
minimumProportionsOverObligation: bigint;
|
|
44
|
-
};
|
|
45
|
-
discount?: {
|
|
46
|
-
burnForDiscount: {
|
|
47
|
-
burnableTokenAddress: `0x${string}`;
|
|
48
|
-
};
|
|
49
|
-
} | undefined;
|
|
50
|
-
cap?: {
|
|
51
|
-
maxHardCap: bigint;
|
|
52
|
-
} | undefined;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
56
|
-
data: `0x${string}`;
|
|
57
|
-
to: `0x${string}`;
|
|
58
|
-
details: {
|
|
59
|
-
functionName: string;
|
|
60
|
-
address: `0x${string}`;
|
|
61
|
-
abi: any[];
|
|
62
|
-
args: any[];
|
|
63
|
-
};
|
|
64
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
65
|
-
in: {
|
|
66
|
-
json: {
|
|
67
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
68
|
-
adminAddress: `0x${string}`;
|
|
69
|
-
lending: {
|
|
70
|
-
minInterest: number;
|
|
71
|
-
maxInterest: number;
|
|
72
|
-
minDuration: bigint;
|
|
73
|
-
maxDuration: bigint;
|
|
74
|
-
minimumProportionsOverObligation: bigint;
|
|
75
|
-
};
|
|
76
|
-
discount?: {
|
|
77
|
-
burnForDiscount: {
|
|
78
|
-
burnableTokenAddress: `0x${string}`;
|
|
79
|
-
};
|
|
80
|
-
} | undefined;
|
|
81
|
-
cap?: {
|
|
82
|
-
maxHardCap: bigint;
|
|
83
|
-
} | undefined;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
out: {
|
|
87
|
-
json: {
|
|
88
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
89
|
-
adminAddress: `0x${string}`;
|
|
90
|
-
lending: {
|
|
91
|
-
minInterest: number;
|
|
92
|
-
maxInterest: number;
|
|
93
|
-
minDuration: bigint;
|
|
94
|
-
maxDuration: bigint;
|
|
95
|
-
minimumProportionsOverObligation: bigint;
|
|
96
|
-
};
|
|
97
|
-
discount?: {
|
|
98
|
-
burnForDiscount: {
|
|
99
|
-
burnableTokenAddress: `0x${string}`;
|
|
100
|
-
};
|
|
101
|
-
} | undefined;
|
|
102
|
-
cap?: {
|
|
103
|
-
maxHardCap: bigint;
|
|
104
|
-
} | undefined;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
108
|
-
data: `0x${string}`;
|
|
109
|
-
to: `0x${string}`;
|
|
110
|
-
details: {
|
|
111
|
-
functionName: string;
|
|
112
|
-
address: `0x${string}`;
|
|
113
|
-
abi: any[];
|
|
114
|
-
args: any[];
|
|
115
|
-
};
|
|
116
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
117
|
-
//# sourceMappingURL=deployMarket.routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployMarket.routes.d.ts","sourceRoot":"","sources":["../../../../src/lending/deployMarket/v0/deployMarket.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAsBvC,wBAAgB,sCAAsC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAcxF"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { DeployLendingMarketRequestSchema } from "./deployMarket.schema.js";
|
|
2
|
-
import { describeRoute } from "hono-openapi";
|
|
3
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
4
|
-
import { toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
5
|
-
import { createLendingPlatform } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
6
|
-
const route = describeRoute({
|
|
7
|
-
summary: "Deploy a lending market",
|
|
8
|
-
description: "Returns transaction data for deploying a lending market with fractionalized collateral",
|
|
9
|
-
tags: ["Lending"],
|
|
10
|
-
responses: {
|
|
11
|
-
200: {
|
|
12
|
-
description: "Returns transaction data for deploying a lending market",
|
|
13
|
-
content: {
|
|
14
|
-
"application/json": {
|
|
15
|
-
schema: resolver(TransactionSchema),
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
export function createDeployLendingMarketTransactionV0(factory) {
|
|
22
|
-
return factory.createHandlers(route, validator("json", DeployLendingMarketRequestSchema), async (c) => {
|
|
23
|
-
const { chainId, adminAddress, cap, lending } = c.req.valid("json");
|
|
24
|
-
const fee = getFeeConfig();
|
|
25
|
-
const tx = createLendingPlatform({
|
|
26
|
-
chainId: chainId,
|
|
27
|
-
adminAddress: adminAddress,
|
|
28
|
-
cap: cap,
|
|
29
|
-
fee: fee,
|
|
30
|
-
min: lending,
|
|
31
|
-
});
|
|
32
|
-
return c.json(toTransaction(tx));
|
|
33
|
-
});
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployMarket.schema.d.ts","sourceRoot":"","sources":["../../../../src/lending/deployMarket/v0/deployMarket.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEU,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { DeployMarketRequestSchema } from "../../../fractions/deployMarket/v0/deployMarket.schema.js";
|
|
3
|
-
export const LendingConfigSchema = z.object({
|
|
4
|
-
minInterest: z.number().min(0).max(100000), // 0 to 100000 basis points (0% to 1000%)
|
|
5
|
-
maxInterest: z.number().min(0).max(100000), // 0 to 100000 basis points (0% to 1000%)
|
|
6
|
-
minDuration: z.coerce.bigint().min(BigInt(1)), // Minimum duration in seconds
|
|
7
|
-
maxDuration: z.coerce.bigint().min(BigInt(1)), // Maximum duration in seconds
|
|
8
|
-
minimumProportionsOverObligation: z.coerce.bigint().min(BigInt(1)),
|
|
9
|
-
});
|
|
10
|
-
export const DeployLendingMarketRequestSchema = DeployMarketRequestSchema.extend({
|
|
11
|
-
lending: LendingConfigSchema,
|
|
12
|
-
}).openapi({ ref: "DeployLendingMarketRequestSchema" });
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createDeployLendingMarketTransactionV0<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
|
-
data: `0x${string}`;
|
|
5
|
-
to: `0x${string}`;
|
|
6
|
-
details: {
|
|
7
|
-
functionName: string;
|
|
8
|
-
address: `0x${string}`;
|
|
9
|
-
abi: any[];
|
|
10
|
-
args: any[];
|
|
11
|
-
};
|
|
12
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
13
|
-
in: {
|
|
14
|
-
json: {
|
|
15
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
16
|
-
adminAddress: `0x${string}`;
|
|
17
|
-
lending: {
|
|
18
|
-
minInterest: number;
|
|
19
|
-
maxInterest: number;
|
|
20
|
-
minDuration: bigint;
|
|
21
|
-
maxDuration: bigint;
|
|
22
|
-
minimumProportionOverObligation: bigint;
|
|
23
|
-
};
|
|
24
|
-
discount?: {
|
|
25
|
-
burnForDiscount: {
|
|
26
|
-
burnableTokenAddress: `0x${string}`;
|
|
27
|
-
};
|
|
28
|
-
} | undefined;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
out: {
|
|
32
|
-
json: {
|
|
33
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
34
|
-
adminAddress: `0x${string}`;
|
|
35
|
-
lending: {
|
|
36
|
-
minInterest: number;
|
|
37
|
-
maxInterest: number;
|
|
38
|
-
minDuration: bigint;
|
|
39
|
-
maxDuration: bigint;
|
|
40
|
-
minimumProportionOverObligation: bigint;
|
|
41
|
-
};
|
|
42
|
-
discount?: {
|
|
43
|
-
burnForDiscount: {
|
|
44
|
-
burnableTokenAddress: `0x${string}`;
|
|
45
|
-
};
|
|
46
|
-
} | undefined;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
50
|
-
data: `0x${string}`;
|
|
51
|
-
to: `0x${string}`;
|
|
52
|
-
details: {
|
|
53
|
-
functionName: string;
|
|
54
|
-
address: `0x${string}`;
|
|
55
|
-
abi: any[];
|
|
56
|
-
args: any[];
|
|
57
|
-
};
|
|
58
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
59
|
-
in: {
|
|
60
|
-
json: {
|
|
61
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
62
|
-
adminAddress: `0x${string}`;
|
|
63
|
-
lending: {
|
|
64
|
-
minInterest: number;
|
|
65
|
-
maxInterest: number;
|
|
66
|
-
minDuration: bigint;
|
|
67
|
-
maxDuration: bigint;
|
|
68
|
-
minimumProportionOverObligation: bigint;
|
|
69
|
-
};
|
|
70
|
-
discount?: {
|
|
71
|
-
burnForDiscount: {
|
|
72
|
-
burnableTokenAddress: `0x${string}`;
|
|
73
|
-
};
|
|
74
|
-
} | undefined;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
out: {
|
|
78
|
-
json: {
|
|
79
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
80
|
-
adminAddress: `0x${string}`;
|
|
81
|
-
lending: {
|
|
82
|
-
minInterest: number;
|
|
83
|
-
maxInterest: number;
|
|
84
|
-
minDuration: bigint;
|
|
85
|
-
maxDuration: bigint;
|
|
86
|
-
minimumProportionOverObligation: bigint;
|
|
87
|
-
};
|
|
88
|
-
discount?: {
|
|
89
|
-
burnForDiscount: {
|
|
90
|
-
burnableTokenAddress: `0x${string}`;
|
|
91
|
-
};
|
|
92
|
-
} | undefined;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
96
|
-
data: `0x${string}`;
|
|
97
|
-
to: `0x${string}`;
|
|
98
|
-
details: {
|
|
99
|
-
functionName: string;
|
|
100
|
-
address: `0x${string}`;
|
|
101
|
-
abi: any[];
|
|
102
|
-
args: any[];
|
|
103
|
-
};
|
|
104
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
105
|
-
//# sourceMappingURL=lending.routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lending.routes.d.ts","sourceRoot":"","sources":["../../../../src/lending/deployMarket/v0/lending.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuBvC,wBAAgB,sCAAsC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAcxF"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DeployLendingMarketRequestSchema } from "./lending.schema.js";
|
|
2
|
-
import { describeRoute } from "hono-openapi";
|
|
3
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
4
|
-
import { toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
5
|
-
import { createLendingPlatform } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
6
|
-
import { discountConfig, getFeeConfig } from "../../../fractions/deployMarket/v0/index.js";
|
|
7
|
-
const route = describeRoute({
|
|
8
|
-
summary: "Deploy a lending market",
|
|
9
|
-
description: "Returns transaction data for deploying a lending market with fractionalized collateral",
|
|
10
|
-
tags: ["Lending"],
|
|
11
|
-
responses: {
|
|
12
|
-
200: {
|
|
13
|
-
description: "Returns transaction data for deploying a lending market",
|
|
14
|
-
content: {
|
|
15
|
-
"application/json": {
|
|
16
|
-
schema: resolver(TransactionSchema),
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
export function createDeployLendingMarketTransactionV0(factory) {
|
|
23
|
-
return factory.createHandlers(route, validator("json", DeployLendingMarketRequestSchema), async (c) => {
|
|
24
|
-
const { chainId, adminAddress, lending, discount } = c.req.valid("json");
|
|
25
|
-
const fee = getFeeConfig();
|
|
26
|
-
const tx = createLendingPlatform({
|
|
27
|
-
chainId: chainId,
|
|
28
|
-
adminAddress: adminAddress,
|
|
29
|
-
fee: fee,
|
|
30
|
-
lending: lending,
|
|
31
|
-
discountConfig: discountConfig(discount),
|
|
32
|
-
});
|
|
33
|
-
return c.json(toTransaction(tx, true));
|
|
34
|
-
});
|
|
35
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const LendingConfigSchema: z.ZodObject<{
|
|
3
|
-
minInterest: z.ZodNumber;
|
|
4
|
-
maxInterest: z.ZodNumber;
|
|
5
|
-
minDuration: z.ZodBigInt;
|
|
6
|
-
maxDuration: z.ZodBigInt;
|
|
7
|
-
minimumProportionOverObligation: z.ZodBigInt;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
minInterest: number;
|
|
10
|
-
maxInterest: number;
|
|
11
|
-
minDuration: bigint;
|
|
12
|
-
maxDuration: bigint;
|
|
13
|
-
minimumProportionOverObligation: bigint;
|
|
14
|
-
}, {
|
|
15
|
-
minInterest: number;
|
|
16
|
-
maxInterest: number;
|
|
17
|
-
minDuration: bigint;
|
|
18
|
-
maxDuration: bigint;
|
|
19
|
-
minimumProportionOverObligation: bigint;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const DeployLendingMarketRequestSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
22
|
-
chainId: z.ZodType<import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId, z.ZodTypeDef, import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId>;
|
|
23
|
-
adminAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
24
|
-
discount: z.ZodOptional<z.ZodObject<{
|
|
25
|
-
burnForDiscount: z.ZodObject<{
|
|
26
|
-
burnableTokenAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
burnableTokenAddress: `0x${string}`;
|
|
29
|
-
}, {
|
|
30
|
-
burnableTokenAddress: `0x${string}`;
|
|
31
|
-
}>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
burnForDiscount: {
|
|
34
|
-
burnableTokenAddress: `0x${string}`;
|
|
35
|
-
};
|
|
36
|
-
}, {
|
|
37
|
-
burnForDiscount: {
|
|
38
|
-
burnableTokenAddress: `0x${string}`;
|
|
39
|
-
};
|
|
40
|
-
}>>;
|
|
41
|
-
cap: z.ZodOptional<z.ZodObject<{
|
|
42
|
-
maxHardCap: z.ZodBigInt;
|
|
43
|
-
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
maxHardCap: bigint;
|
|
45
|
-
}, {
|
|
46
|
-
maxHardCap: bigint;
|
|
47
|
-
}>>;
|
|
48
|
-
}, {
|
|
49
|
-
lending: z.ZodObject<{
|
|
50
|
-
minInterest: z.ZodNumber;
|
|
51
|
-
maxInterest: z.ZodNumber;
|
|
52
|
-
minDuration: z.ZodBigInt;
|
|
53
|
-
maxDuration: z.ZodBigInt;
|
|
54
|
-
minimumProportionOverObligation: z.ZodBigInt;
|
|
55
|
-
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
minInterest: number;
|
|
57
|
-
maxInterest: number;
|
|
58
|
-
minDuration: bigint;
|
|
59
|
-
maxDuration: bigint;
|
|
60
|
-
minimumProportionOverObligation: bigint;
|
|
61
|
-
}, {
|
|
62
|
-
minInterest: number;
|
|
63
|
-
maxInterest: number;
|
|
64
|
-
minDuration: bigint;
|
|
65
|
-
maxDuration: bigint;
|
|
66
|
-
minimumProportionOverObligation: bigint;
|
|
67
|
-
}>;
|
|
68
|
-
}>, "cap">, "strip", z.ZodTypeAny, {
|
|
69
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
70
|
-
adminAddress: `0x${string}`;
|
|
71
|
-
lending: {
|
|
72
|
-
minInterest: number;
|
|
73
|
-
maxInterest: number;
|
|
74
|
-
minDuration: bigint;
|
|
75
|
-
maxDuration: bigint;
|
|
76
|
-
minimumProportionOverObligation: bigint;
|
|
77
|
-
};
|
|
78
|
-
discount?: {
|
|
79
|
-
burnForDiscount: {
|
|
80
|
-
burnableTokenAddress: `0x${string}`;
|
|
81
|
-
};
|
|
82
|
-
} | undefined;
|
|
83
|
-
}, {
|
|
84
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
85
|
-
adminAddress: `0x${string}`;
|
|
86
|
-
lending: {
|
|
87
|
-
minInterest: number;
|
|
88
|
-
maxInterest: number;
|
|
89
|
-
minDuration: bigint;
|
|
90
|
-
maxDuration: bigint;
|
|
91
|
-
minimumProportionOverObligation: bigint;
|
|
92
|
-
};
|
|
93
|
-
discount?: {
|
|
94
|
-
burnForDiscount: {
|
|
95
|
-
burnableTokenAddress: `0x${string}`;
|
|
96
|
-
};
|
|
97
|
-
} | undefined;
|
|
98
|
-
}>;
|
|
99
|
-
//# sourceMappingURL=lending.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lending.schema.d.ts","sourceRoot":"","sources":["../../../../src/lending/deployMarket/v0/lending.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIU,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { DeployMarketRequestSchema } from "../../../fractions/deployMarket/v0/deployMarket.schema.js";
|
|
3
|
-
export const LendingConfigSchema = z.object({
|
|
4
|
-
minInterest: z.number(), // 0 to 100000 basis points (0% to 1000%)
|
|
5
|
-
maxInterest: z.number(), // 0 to 100000 basis points (0% to 1000%)
|
|
6
|
-
minDuration: z.coerce.bigint(), // Minimum duration in seconds
|
|
7
|
-
maxDuration: z.coerce.bigint(), // Maximum duration in seconds
|
|
8
|
-
minimumProportionOverObligation: z.coerce.bigint(),
|
|
9
|
-
});
|
|
10
|
-
export const DeployLendingMarketRequestSchema = DeployMarketRequestSchema.extend({
|
|
11
|
-
lending: LendingConfigSchema,
|
|
12
|
-
})
|
|
13
|
-
.omit({ cap: true })
|
|
14
|
-
.openapi({ ref: "DeployLendingMarketRequestSchema" });
|
package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forcefullyUnlockWrappersNft.routes.d.ts","sourceRoot":"","sources":["../../../../src/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAqBvC,wBAAgB,8CAA8C,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAehG"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ForcefullyUnlockWrappersNftRequestSchema } from "./forcefullyUnlockWrappersNft.schema.js";
|
|
2
|
-
import { describeRoute } from "hono-openapi";
|
|
3
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
4
|
-
import { toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
5
|
-
const route = describeRoute({
|
|
6
|
-
summary: "Forcefully unlock wrapper NFT during liquidation",
|
|
7
|
-
description: "Returns transaction data for forcefully unlocking wrapper NFT when campaign is in liquidation state",
|
|
8
|
-
tags: ["Lending"],
|
|
9
|
-
responses: {
|
|
10
|
-
200: {
|
|
11
|
-
description: "Returns transaction data for forcefully unlocking wrapper NFT",
|
|
12
|
-
content: {
|
|
13
|
-
"application/json": {
|
|
14
|
-
schema: resolver(TransactionSchema),
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
export function createForcefullyUnlockWrappersNftTransactionV0(factory) {
|
|
21
|
-
return factory.createHandlers(route, validator("json", ForcefullyUnlockWrappersNftRequestSchema), async (c) => {
|
|
22
|
-
const { campaignId } = c.req.valid("json");
|
|
23
|
-
// TODO: Import and use the actual SDK function once available
|
|
24
|
-
// For now, return a mock transaction structure
|
|
25
|
-
const tx = {
|
|
26
|
-
address: "0x0000000000000000000000000000000000000000",
|
|
27
|
-
abi: [],
|
|
28
|
-
functionName: "forcefullyUnlockWrappersNft",
|
|
29
|
-
args: [campaignId],
|
|
30
|
-
};
|
|
31
|
-
return c.json(toTransaction(tx));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ForcefullyUnlockWrappersNftRequestSchema: z.ZodObject<{
|
|
3
|
-
chainId: z.ZodType<import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId, z.ZodTypeDef, import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId>;
|
|
4
|
-
campaignId: z.ZodBigInt;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
7
|
-
campaignId: bigint;
|
|
8
|
-
}, {
|
|
9
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
10
|
-
campaignId: bigint;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=forcefullyUnlockWrappersNft.schema.d.ts.map
|
package/dist/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forcefullyUnlockWrappersNft.schema.d.ts","sourceRoot":"","sources":["../../../../src/lending/forcefullyUnlockWrappersNft/v0/forcefullyUnlockWrappersNft.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wCAAwC;;;;;;;;;EAOU,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { TmiChainIdSchema } from "../../../common/index.js";
|
|
3
|
-
export const ForcefullyUnlockWrappersNftRequestSchema = z
|
|
4
|
-
.object({
|
|
5
|
-
chainId: TmiChainIdSchema,
|
|
6
|
-
campaignId: z.coerce.bigint().openapi({
|
|
7
|
-
description: "The campaign ID to forcefully unlock wrapper NFT for",
|
|
8
|
-
}),
|
|
9
|
-
})
|
|
10
|
-
.openapi({ ref: "ForcefullyUnlockWrappersNftRequestSchema" });
|