@evergonlabs/tmi-protocol-api 0.10.1 → 0.11.0-rc.1
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 +294 -611
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +1 -10
- package/dist/apps.d.ts +0 -6
- package/dist/apps.d.ts.map +1 -1
- package/dist/apps.js +0 -3
- package/dist/client.d.ts +299 -634
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -9
- package/dist/common/blockchain.d.ts +8779 -143
- package/dist/common/blockchain.d.ts.map +1 -1
- package/dist/common/blockchain.js +5 -1
- package/dist/common/config.d.ts +6 -1
- package/dist/common/config.d.ts.map +1 -1
- package/dist/common/config.js +6 -1
- package/dist/common/indexer/client.d.ts.map +1 -1
- package/dist/common/indexer/schemas.d.ts.map +1 -1
- package/dist/common/models/asset.d.ts +2 -2
- package/dist/common/models/asset.d.ts.map +1 -1
- package/dist/common/models/asset.js +2 -2
- package/dist/common/models/chainId.d.ts +6 -9
- package/dist/common/models/chainId.d.ts.map +1 -1
- package/dist/common/models/chainId.js +8 -16
- package/dist/common/models/deployTransaction.d.ts +1 -1
- package/dist/common/models/deployTransaction.d.ts.map +1 -1
- package/dist/common/models/deployTransaction.js +2 -2
- package/dist/common/models/erc721.d.ts +1 -1
- package/dist/common/models/erc721.d.ts.map +1 -1
- package/dist/common/models/erc721.js +1 -1
- package/dist/common/models/exports.d.ts +5 -5
- package/dist/common/models/exports.d.ts.map +1 -1
- package/dist/common/models/exports.js +5 -5
- package/dist/common/models/index.d.ts +1 -4
- package/dist/common/models/index.d.ts.map +1 -1
- package/dist/common/models/index.js +1 -4
- package/dist/common/models/page.d.ts +1 -1
- package/dist/common/models/page.d.ts.map +1 -1
- package/dist/common/models/page.js +1 -1
- package/dist/common/models/platform.d.ts +5 -5
- package/dist/common/models/platform.d.ts.map +1 -1
- package/dist/common/models/platform.js +6 -6
- package/dist/common/models/routes.d.ts +1 -1
- package/dist/common/models/routes.d.ts.map +1 -1
- package/dist/common/models/routes.js +1 -1
- package/dist/common/models/transaction.d.ts +2 -2
- package/dist/common/models/transaction.d.ts.map +1 -1
- package/dist/common/models/transaction.js +2 -2
- package/dist/fractions/index.d.ts +170 -161
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +0 -2
- package/dist/fractions/{platforms/deployMarket.routes.d.ts → markets/deployMarket.d.ts} +11 -11
- package/dist/fractions/markets/deployMarket.d.ts.map +1 -0
- package/dist/fractions/{platforms/deployMarket.routes.js → markets/deployMarket.js} +18 -17
- package/dist/fractions/markets/getDeployEvent.d.ts +2 -2
- package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -1
- package/dist/fractions/markets/getDeployEvent.js +3 -2
- package/dist/fractions/markets/{getMarket/getMarket.d.ts → getMarket.d.ts} +8 -8
- package/dist/fractions/markets/getMarket.d.ts.map +1 -0
- package/dist/fractions/markets/{getMarket/getMarket.js → getMarket.js} +6 -8
- package/dist/fractions/markets/index.d.ts +187 -16
- package/dist/fractions/markets/index.d.ts.map +1 -1
- package/dist/fractions/markets/index.js +13 -6
- package/dist/fractions/{platforms/initCompilot.routes.d.ts → markets/initCompilot.d.ts} +2 -10
- package/dist/fractions/markets/initCompilot.d.ts.map +1 -0
- package/dist/fractions/{platforms/initCompilot.routes.js → markets/initCompilot.js} +10 -17
- package/dist/fractions/markets/{searchMarkets/searchMarkets.d.ts → searchMarkets.d.ts} +4 -4
- package/dist/fractions/markets/searchMarkets.d.ts.map +1 -0
- package/dist/fractions/markets/{searchMarkets/searchMarkets.js → searchMarkets.js} +7 -9
- package/dist/fractions/markets/{common/platform.d.ts → utils.d.ts} +10 -7
- package/dist/fractions/markets/utils.d.ts.map +1 -0
- package/dist/fractions/markets/{common/platform.js → utils.js} +7 -5
- package/dist/fractions/roles/getRoles.d.ts +1 -1
- package/dist/fractions/roles/getRoles.d.ts.map +1 -1
- package/dist/fractions/roles/getRoles.js +1 -1
- package/dist/fractions/roles/{grantRole.route.d.ts → grantRole.d.ts} +1 -2
- package/dist/fractions/roles/grantRole.d.ts.map +1 -0
- package/dist/fractions/roles/{grantRole.route.js → grantRole.js} +1 -1
- package/dist/fractions/roles/index.d.ts +0 -1
- package/dist/fractions/roles/index.d.ts.map +1 -1
- package/dist/fractions/roles/index.js +2 -2
- package/dist/fractions/sales/activityUtils.d.ts +4 -4
- package/dist/fractions/sales/activityUtils.d.ts.map +1 -1
- package/dist/fractions/sales/activityUtils.js +2 -2
- package/dist/fractions/sales/approveSale.route.d.ts +4 -7
- package/dist/fractions/sales/approveSale.route.d.ts.map +1 -1
- package/dist/fractions/sales/approveSale.route.js +4 -9
- package/dist/fractions/sales/approveWrapper.route.d.ts +2 -65
- package/dist/fractions/sales/approveWrapper.route.d.ts.map +1 -1
- package/dist/fractions/sales/approveWrapper.route.js +6 -68
- package/dist/fractions/sales/common/fractionsSale.d.ts +11 -11
- package/dist/fractions/sales/common/fractionsSale.d.ts.map +1 -1
- package/dist/fractions/sales/common/fractionsSale.js +3 -3
- package/dist/fractions/sales/completeSale.route.d.ts +4 -7
- package/dist/fractions/sales/completeSale.route.d.ts.map +1 -1
- package/dist/fractions/sales/completeSale.route.js +5 -10
- package/dist/fractions/sales/createFractions.route.d.ts +2 -3
- package/dist/fractions/sales/createFractions.route.d.ts.map +1 -1
- package/dist/fractions/sales/createFractions.route.js +2 -3
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +5 -5
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.js +2 -2
- package/dist/fractions/sales/getVaultAddress.d.ts +8 -8
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
- package/dist/fractions/sales/getVaultAddress.js +3 -3
- package/dist/fractions/sales/getWithdrawEvent.d.ts +3 -3
- package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -1
- package/dist/fractions/sales/getWithdrawEvent.js +1 -1
- package/dist/fractions/sales/index.d.ts +120 -118
- package/dist/fractions/sales/index.d.ts.map +1 -1
- package/dist/fractions/sales/index.js +5 -6
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts +3 -3
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -1
- package/dist/fractions/sales/parseFractionsCreatedEvent.js +3 -3
- package/dist/fractions/sales/purchase.route.d.ts +7 -12
- package/dist/fractions/sales/purchase.route.d.ts.map +1 -1
- package/dist/fractions/sales/purchase.route.js +4 -16
- package/dist/fractions/sales/purchaseStatistics.route.d.ts +2 -2
- package/dist/fractions/sales/purchaseStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/purchaseStatistics.route.js +3 -3
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +36 -14
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -1
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.js +35 -20
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +5 -3
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -1
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +6 -5
- package/dist/fractions/sales/recoverFractions.d.ts +12 -15
- package/dist/fractions/sales/recoverFractions.d.ts.map +1 -1
- package/dist/fractions/sales/recoverFractions.js +5 -16
- package/dist/fractions/sales/rejectFractions.d.ts +3 -8
- package/dist/fractions/sales/rejectFractions.d.ts.map +1 -1
- package/dist/fractions/sales/rejectFractions.js +5 -10
- package/dist/fractions/sales/searchActivity.route.d.ts +5 -5
- package/dist/fractions/sales/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/sales/searchActivity.route.js +2 -2
- package/dist/fractions/sales/searchSales/searchSales.d.ts +6 -6
- package/dist/fractions/sales/searchSales/searchSales.d.ts.map +1 -1
- package/dist/fractions/sales/searchSales/searchSales.js +2 -2
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +1 -1
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +1 -1
- package/dist/fractions/sales/searchWithdrawal.route.js +2 -2
- package/dist/fractions/sales/setFeeCapLimit.d.ts +4 -8
- package/dist/fractions/sales/setFeeCapLimit.d.ts.map +1 -1
- package/dist/fractions/sales/setFeeCapLimit.js +5 -11
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts +4 -6
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -1
- package/dist/fractions/sales/unlockWrappedAssets.route.js +5 -5
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts +8 -8
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/claimStatistics.route.js +2 -2
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts +1 -8
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/claimVestedTokens.route.js +2 -10
- package/dist/fractions/sales/vesting/editCliff.route.d.ts +4 -10
- package/dist/fractions/sales/vesting/editCliff.route.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/editCliff.route.js +5 -12
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts +3 -3
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +1 -1
- package/dist/fractions/sales/withdraw.route.d.ts +4 -6
- package/dist/fractions/sales/withdraw.route.d.ts.map +1 -1
- package/dist/fractions/sales/withdraw.route.js +5 -5
- package/dist/fractions/schemas.d.ts +6 -0
- package/dist/fractions/schemas.d.ts.map +1 -0
- package/dist/fractions/schemas.js +6 -0
- package/dist/fractions/sig/getAuthData.d.ts +6 -6
- package/dist/fractions/sig/getAuthData.d.ts.map +1 -1
- package/dist/fractions/sig/getAuthData.js +4 -5
- package/dist/fractions/sig/getNonce.route.d.ts +4 -4
- package/dist/fractions/sig/getNonce.route.d.ts.map +1 -1
- package/dist/fractions/sig/getNonce.route.js +1 -1
- package/dist/fractions/sig/index.d.ts +2 -2
- package/dist/fractions/sig/index.d.ts.map +1 -1
- package/dist/fractions/sig/index.js +1 -1
- package/dist/fractions/statistics/index.d.ts +19 -11
- package/dist/fractions/statistics/index.d.ts.map +1 -1
- package/dist/fractions/statistics/index.js +1 -1
- package/dist/fractions/statistics/networkStatistics.route.d.ts +20 -12
- package/dist/fractions/statistics/networkStatistics.route.d.ts.map +1 -1
- package/dist/fractions/statistics/networkStatistics.route.js +3 -3
- package/dist/general/balanceClient.d.ts +1 -1
- package/dist/general/balanceClient.d.ts.map +1 -1
- package/dist/general/balanceClient.js +1 -1
- package/dist/general/common.d.ts +1 -1
- package/dist/general/common.d.ts.map +1 -1
- package/dist/general/common.js +1 -1
- package/dist/general/estimateGas.d.ts +1 -1
- package/dist/general/estimateGas.d.ts.map +1 -1
- package/dist/general/estimateGas.js +2 -3
- package/dist/general/getBalance.d.ts +2 -2
- package/dist/general/getBalance.d.ts.map +1 -1
- package/dist/general/getBalance.js +2 -3
- package/dist/general/getBalancesBatch.d.ts +1 -1
- package/dist/general/getBalancesBatch.d.ts.map +1 -1
- package/dist/general/getBalancesBatch.js +6 -5
- package/dist/general/index.d.ts +5 -5
- package/dist/general/searchBalances.d.ts +2 -2
- package/dist/general/searchBalances.d.ts.map +1 -1
- package/dist/general/searchBalances.js +6 -5
- package/dist/general/tag.d.ts +4 -0
- package/dist/general/tag.d.ts.map +1 -0
- package/dist/general/tag.js +2 -0
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts +1 -1
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts.map +1 -1
- package/dist/general/utils/tokenBalance/tokenBalance.js +1 -1
- package/dist/issuance/common/factories.base.d.ts +649 -5
- package/dist/issuance/common/factories.base.d.ts.map +1 -1
- package/dist/issuance/common/factories.base.js +2 -2
- package/dist/issuance/common/factories.d.ts +2 -1
- package/dist/issuance/common/factories.d.ts.map +1 -1
- package/dist/issuance/common/factories.js +10 -2
- package/dist/issuance/erc1155/burn.d.ts +3 -3
- package/dist/issuance/erc1155/burn.d.ts.map +1 -1
- package/dist/issuance/erc1155/burn.js +5 -5
- package/dist/issuance/erc1155/default/deploy.d.ts +3 -3
- package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/deploy.js +3 -3
- package/dist/issuance/erc1155/default/initialize.d.ts +1 -1
- package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/initialize.js +2 -2
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts +2 -2
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/parseDeployEvent.js +5 -15
- package/dist/issuance/erc1155/gated/deploy.d.ts +3 -3
- package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/deploy.js +3 -3
- package/dist/issuance/erc1155/gated/initialize.d.ts +1 -1
- package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/initialize.js +2 -2
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts +2 -2
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/parseDeployEvent.js +5 -15
- package/dist/issuance/erc1155/getMintedTokenId.d.ts +18 -0
- package/dist/issuance/erc1155/getMintedTokenId.d.ts.map +1 -0
- package/dist/issuance/erc1155/getMintedTokenId.js +71 -0
- package/dist/issuance/erc1155/grantRole.d.ts +1 -1
- package/dist/issuance/erc1155/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/grantRole.js +2 -2
- package/dist/issuance/erc1155/index.d.ts +23 -7
- package/dist/issuance/erc1155/index.d.ts.map +1 -1
- package/dist/issuance/erc1155/index.js +4 -2
- package/dist/issuance/erc1155/mint.d.ts +2 -2
- package/dist/issuance/erc1155/mint.d.ts.map +1 -1
- package/dist/issuance/erc1155/mint.js +4 -4
- package/dist/issuance/erc1155/recover.d.ts +3 -3
- package/dist/issuance/erc1155/recover.d.ts.map +1 -1
- package/dist/issuance/erc1155/recover.js +5 -5
- package/dist/issuance/erc1155/renounceRole.d.ts +1 -1
- package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/renounceRole.js +2 -2
- package/dist/issuance/erc1155/revokeRole.d.ts +1 -1
- package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/revokeRole.js +2 -2
- package/dist/issuance/erc1155/setApprovalForAll.d.ts +1 -1
- package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -1
- package/dist/issuance/erc1155/setApprovalForAll.js +2 -2
- package/dist/issuance/erc1155/setBaseURI.d.ts +1 -1
- package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc1155/setBaseURI.js +2 -2
- package/dist/issuance/erc1155/setTokenURI.d.ts +2 -2
- package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc1155/setTokenURI.js +4 -4
- package/dist/issuance/erc20/approve.d.ts +2 -2
- package/dist/issuance/erc20/approve.d.ts.map +1 -1
- package/dist/issuance/erc20/approve.js +4 -4
- package/dist/issuance/erc20/burn.d.ts +2 -2
- package/dist/issuance/erc20/burn.d.ts.map +1 -1
- package/dist/issuance/erc20/burn.js +4 -4
- package/dist/issuance/erc20/default/deploy.d.ts +4 -4
- package/dist/issuance/erc20/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/default/deploy.js +5 -5
- package/dist/issuance/erc20/default/initialize.d.ts +2 -2
- package/dist/issuance/erc20/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/default/initialize.js +4 -4
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts +2 -2
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/default/parseDeployEvent.js +5 -15
- package/dist/issuance/erc20/gated/deploy.d.ts +4 -4
- package/dist/issuance/erc20/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/deploy.js +5 -5
- package/dist/issuance/erc20/gated/initialize.d.ts +2 -2
- package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/initialize.js +4 -4
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts +2 -2
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.js +5 -15
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/deploy.js +1 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts +2 -2
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.js +4 -4
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts +2 -2
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.js +5 -15
- package/dist/issuance/erc20/grantRole.d.ts +1 -1
- package/dist/issuance/erc20/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc20/grantRole.js +2 -2
- package/dist/issuance/erc20/index.d.ts +8 -8
- package/dist/issuance/erc20/index.d.ts.map +1 -1
- package/dist/issuance/erc20/index.js +1 -1
- package/dist/issuance/erc20/mint.d.ts +2 -2
- package/dist/issuance/erc20/mint.d.ts.map +1 -1
- package/dist/issuance/erc20/mint.js +4 -4
- package/dist/issuance/erc20/recover.d.ts +2 -2
- package/dist/issuance/erc20/recover.d.ts.map +1 -1
- package/dist/issuance/erc20/recover.js +4 -4
- package/dist/issuance/erc20/renounceRole.d.ts +1 -1
- package/dist/issuance/erc20/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc20/renounceRole.js +2 -2
- package/dist/issuance/erc20/revokeRole.d.ts +1 -1
- package/dist/issuance/erc20/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc20/revokeRole.js +2 -2
- package/dist/issuance/erc20/transfer.d.ts +2 -2
- package/dist/issuance/erc20/transfer.d.ts.map +1 -1
- package/dist/issuance/erc20/transfer.js +4 -4
- package/dist/issuance/erc20/transferFrom.d.ts +2 -2
- package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc20/transferFrom.js +4 -4
- package/dist/issuance/erc721/approve.d.ts +2 -2
- package/dist/issuance/erc721/approve.d.ts.map +1 -1
- package/dist/issuance/erc721/approve.js +4 -4
- package/dist/issuance/erc721/burn.d.ts +2 -2
- package/dist/issuance/erc721/burn.d.ts.map +1 -1
- package/dist/issuance/erc721/burn.js +4 -4
- package/dist/issuance/erc721/default/deploy.d.ts +3 -3
- package/dist/issuance/erc721/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/default/deploy.js +3 -3
- package/dist/issuance/erc721/default/initialize.d.ts +1 -1
- package/dist/issuance/erc721/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/default/initialize.js +2 -2
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts +2 -2
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/default/parseDeployEvent.js +5 -15
- package/dist/issuance/erc721/gated/deploy.d.ts +3 -3
- package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/deploy.js +3 -3
- package/dist/issuance/erc721/gated/initialize.d.ts +1 -1
- package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/initialize.js +2 -2
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts +2 -2
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/parseDeployEvent.js +5 -15
- package/dist/issuance/erc721/getMintedTokenId.d.ts +18 -0
- package/dist/issuance/erc721/getMintedTokenId.d.ts.map +1 -0
- package/dist/issuance/erc721/getMintedTokenId.js +69 -0
- package/dist/issuance/erc721/grantRole.d.ts +1 -1
- package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc721/grantRole.js +2 -2
- package/dist/issuance/erc721/index.d.ts +23 -7
- package/dist/issuance/erc721/index.d.ts.map +1 -1
- package/dist/issuance/erc721/index.js +4 -2
- package/dist/issuance/erc721/mint.d.ts +1 -1
- package/dist/issuance/erc721/mint.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.js +2 -2
- package/dist/issuance/erc721/recover.d.ts +2 -2
- package/dist/issuance/erc721/recover.d.ts.map +1 -1
- package/dist/issuance/erc721/recover.js +4 -4
- package/dist/issuance/erc721/renounceRole.d.ts +1 -1
- package/dist/issuance/erc721/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc721/renounceRole.js +2 -2
- package/dist/issuance/erc721/revokeRole.d.ts +1 -1
- package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc721/revokeRole.js +2 -2
- package/dist/issuance/erc721/setBaseURI.d.ts +1 -1
- package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setBaseURI.js +2 -2
- package/dist/issuance/erc721/setTokenURI.d.ts +2 -2
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setTokenURI.js +4 -4
- package/dist/issuance/erc721/transferFrom.d.ts +2 -2
- package/dist/issuance/erc721/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc721/transferFrom.js +4 -4
- package/dist/issuance/index.d.ts +54 -22
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/proxy/deploy.d.ts +1 -1
- package/dist/issuance/proxy/deploy.d.ts.map +1 -1
- package/dist/issuance/proxy/deploy.js +2 -2
- package/dist/issuance/proxy/index.d.ts.map +1 -1
- package/dist/issuance/proxy/index.js +1 -1
- package/dist/issuance/proxy/upgrade.d.ts +1 -1
- package/dist/issuance/proxy/upgrade.d.ts.map +1 -1
- package/dist/issuance/proxy/upgrade.js +2 -2
- package/dist/issuance/schemas.d.ts +43 -0
- package/dist/issuance/schemas.d.ts.map +1 -0
- package/dist/issuance/schemas.js +46 -0
- package/dist/next/app.d.ts +708 -0
- package/dist/next/app.d.ts.map +1 -0
- package/dist/next/app.js +33 -0
- package/dist/next/apps.d.ts +18 -0
- package/dist/next/apps.d.ts.map +1 -0
- package/dist/next/apps.js +11 -0
- package/dist/next/client.d.ts +704 -0
- package/dist/next/client.d.ts.map +1 -0
- package/dist/next/client.js +13 -0
- package/dist/next/lending/buyback.d.ts +28 -0
- package/dist/next/lending/buyback.d.ts.map +1 -0
- package/dist/next/{fractions/lending/buyback/buyback.routes.js → lending/buyback.js} +8 -7
- package/dist/next/lending/createSale.d.ts +71 -0
- package/dist/next/lending/createSale.d.ts.map +1 -0
- package/dist/next/lending/createSale.js +31 -0
- package/dist/next/{fractions/lending/deployMarket/lending.routes.d.ts → lending/deployMarket.d.ts} +4 -4
- package/dist/next/lending/deployMarket.d.ts.map +1 -0
- package/dist/next/{fractions/lending/deployMarket/lending.routes.js → lending/deployMarket.js} +8 -5
- package/dist/next/{fractions/lending → lending}/index.d.ts +23 -18
- package/dist/next/{fractions/lending → lending}/index.d.ts.map +1 -1
- package/dist/next/lending/index.js +17 -0
- package/dist/next/lending/schemas.d.ts +2 -0
- package/dist/next/lending/schemas.d.ts.map +1 -0
- package/dist/next/lending/schemas.js +3 -0
- package/dist/next/{fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts → lending/setCollateralPrice.d.ts} +6 -4
- package/dist/next/lending/setCollateralPrice.d.ts.map +1 -0
- package/dist/next/{fractions/lending/setCollateralPrice/setCollateralPrice.routes.js → lending/setCollateralPrice.js} +10 -7
- package/dist/next/lending/tag.d.ts +4 -0
- package/dist/next/lending/tag.d.ts.map +1 -0
- package/dist/next/lending/tag.js +2 -0
- package/dist/next/{fractions/sales/createNftFractions.routes.d.ts → nftFractions/createNftFractions.d.ts} +16 -6
- package/dist/next/nftFractions/createNftFractions.d.ts.map +1 -0
- package/dist/next/{fractions/sales/createNftFractions.routes.js → nftFractions/createNftFractions.js} +10 -12
- package/dist/next/{fractions/platforms/default/deployNftFractionsMarket.routes.d.ts → nftFractions/deployNftFractionsMarket.d.ts} +4 -4
- package/dist/next/nftFractions/deployNftFractionsMarket.d.ts.map +1 -0
- package/dist/next/{fractions/platforms/default/deployNftFractionsMarket.routes.js → nftFractions/deployNftFractionsMarket.js} +5 -4
- package/dist/next/{fractions/platforms/gated/deployNftFractionsMarket.routes.d.ts → nftFractions/deployNftFractionsMarketGated.d.ts} +5 -5
- package/dist/next/nftFractions/deployNftFractionsMarketGated.d.ts.map +1 -0
- package/dist/next/{fractions/platforms/gated/deployNftFractionsMarket.routes.js → nftFractions/deployNftFractionsMarketGated.js} +5 -4
- package/dist/next/nftFractions/index.d.ts +182 -0
- package/dist/{fractions/platforms → next/nftFractions}/index.d.ts.map +1 -1
- package/dist/next/nftFractions/index.js +17 -0
- package/dist/next/nftFractions/parseNftFractionsCreatedEvent.d.ts +23 -0
- package/dist/next/nftFractions/parseNftFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/next/{fractions/sales/parseFractionsCreatedEvent.js → nftFractions/parseNftFractionsCreatedEvent.js} +15 -18
- package/dist/next/nftFractions/schemas.d.ts +2 -0
- package/dist/next/nftFractions/schemas.d.ts.map +1 -0
- package/dist/next/nftFractions/schemas.js +1 -0
- package/dist/next/nftFractions/tag.d.ts +4 -0
- package/dist/next/nftFractions/tag.d.ts.map +1 -0
- package/dist/next/nftFractions/tag.js +2 -0
- package/dist/next/schemas.d.ts +4 -0
- package/dist/next/schemas.d.ts.map +1 -0
- package/dist/next/schemas.js +3 -0
- package/dist/next/vestingRedemptionDynamic/approveCampaign.d.ts +27 -0
- package/dist/next/vestingRedemptionDynamic/approveCampaign.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/approveCampaign.js +31 -0
- package/dist/next/vestingRedemptionDynamic/createCampaign.d.ts +52 -0
- package/dist/next/vestingRedemptionDynamic/createCampaign.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/createCampaign.js +33 -0
- package/dist/next/vestingRedemptionDynamic/deployMarket.d.ts +39 -0
- package/dist/next/vestingRedemptionDynamic/deployMarket.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/deployMarket.js +35 -0
- package/dist/next/vestingRedemptionDynamic/epochPurchase.d.ts +28 -0
- package/dist/next/vestingRedemptionDynamic/epochPurchase.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/epochPurchase.js +34 -0
- package/dist/next/vestingRedemptionDynamic/exchangeNftForFractions.d.ts +28 -0
- package/dist/next/vestingRedemptionDynamic/exchangeNftForFractions.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/exchangeNftForFractions.js +34 -0
- package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.d.ts +21 -0
- package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.js +43 -0
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts +24 -0
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.js +66 -0
- package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.d.ts +22 -0
- package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.js +45 -0
- package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.d.ts +22 -0
- package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.js +62 -0
- package/dist/next/vestingRedemptionDynamic/index.d.ts +323 -0
- package/dist/next/{fractions → vestingRedemptionDynamic}/index.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/index.js +31 -0
- package/dist/next/vestingRedemptionDynamic/requestWithdrawal.d.ts +28 -0
- package/dist/next/vestingRedemptionDynamic/requestWithdrawal.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/requestWithdrawal.js +33 -0
- package/dist/next/vestingRedemptionDynamic/schemas.d.ts +2 -0
- package/dist/next/vestingRedemptionDynamic/schemas.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/schemas.js +1 -0
- package/dist/next/{fractions/lending/buyback/buyback.routes.d.ts → vestingRedemptionDynamic/setEpochPrice.d.ts} +7 -6
- package/dist/next/vestingRedemptionDynamic/setEpochPrice.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/setEpochPrice.js +34 -0
- package/dist/next/vestingRedemptionDynamic/tag.d.ts +4 -0
- package/dist/next/vestingRedemptionDynamic/tag.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/tag.js +2 -0
- package/dist/next/vestingRedemptionDynamic/withdrawFunds.d.ts +28 -0
- package/dist/next/vestingRedemptionDynamic/withdrawFunds.d.ts.map +1 -0
- package/dist/next/vestingRedemptionDynamic/withdrawFunds.js +34 -0
- package/dist/schemas.d.ts +3 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +2 -0
- package/dist/staking/index.d.ts +38 -38
- package/dist/staking/platforms/common/platform.d.ts +4 -4
- package/dist/staking/platforms/common/platform.d.ts.map +1 -1
- package/dist/staking/platforms/common/platform.js +3 -3
- package/dist/staking/platforms/getPlatform/index.d.ts +5 -5
- package/dist/staking/platforms/getPlatform/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/index.js +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +7 -7
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.js +2 -2
- package/dist/staking/platforms/index.d.ts +9 -9
- package/dist/staking/platforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/index.js +1 -1
- package/dist/staking/platforms/searchPlatforms/index.d.ts +4 -4
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/index.js +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +6 -6
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +2 -2
- package/dist/staking/pools/common/pool.d.ts +4 -4
- package/dist/staking/pools/common/pool.d.ts.map +1 -1
- package/dist/staking/pools/common/pool.js +6 -5
- package/dist/staking/pools/getPool/index.d.ts +6 -6
- package/dist/staking/pools/getPool/index.d.ts.map +1 -1
- package/dist/staking/pools/getPool/index.js +1 -1
- package/dist/staking/pools/getPool/v0/getPool.d.ts +8 -8
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +1 -1
- package/dist/staking/pools/getPool/v0/getPool.js +3 -3
- package/dist/staking/pools/index.d.ts +10 -10
- package/dist/staking/pools/index.d.ts.map +1 -1
- package/dist/staking/pools/index.js +1 -1
- package/dist/staking/pools/searchPools/index.d.ts +4 -4
- package/dist/staking/pools/searchPools/index.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/index.js +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +6 -6
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.js +2 -2
- package/dist/staking/roles/common/role.d.ts +1 -1
- package/dist/staking/roles/common/role.d.ts.map +1 -1
- package/dist/staking/roles/common/role.js +1 -1
- package/dist/staking/roles/common/roleAssignment.d.ts +5 -5
- package/dist/staking/roles/common/roleAssignment.d.ts.map +1 -1
- package/dist/staking/roles/common/roleAssignment.js +3 -3
- package/dist/staking/roles/common/roleEvent.d.ts +3 -3
- package/dist/staking/roles/common/roleEvent.d.ts.map +1 -1
- package/dist/staking/roles/common/roleEvent.js +2 -2
- package/dist/staking/roles/getRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/getRoles/index.js +1 -1
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts +1 -1
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -1
- package/dist/staking/roles/getRoles/v0/getRoles.js +2 -2
- package/dist/staking/roles/grantRole/index.d.ts.map +1 -1
- package/dist/staking/roles/grantRole/index.js +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.js +1 -1
- package/dist/staking/roles/index.d.ts +8 -8
- package/dist/staking/roles/index.d.ts.map +1 -1
- package/dist/staking/roles/index.js +1 -1
- package/dist/staking/roles/searchRoleEvents/index.d.ts +3 -3
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/index.js +1 -1
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +5 -4
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +2 -2
- package/dist/staking/roles/searchRoles/index.d.ts +5 -5
- package/dist/staking/roles/searchRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/index.js +1 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +7 -7
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.js +3 -3
- package/dist/staking/stakes/common/stake.d.ts +8 -8
- package/dist/staking/stakes/common/stake.d.ts.map +1 -1
- package/dist/staking/stakes/common/stake.js +5 -5
- package/dist/staking/stakes/common/stakeEvent.d.ts +5 -5
- package/dist/staking/stakes/common/stakeEvent.d.ts.map +1 -1
- package/dist/staking/stakes/common/stakeEvent.js +2 -2
- package/dist/staking/stakes/getStake/index.d.ts +4 -4
- package/dist/staking/stakes/getStake/index.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/index.js +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +5 -5
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.js +3 -3
- package/dist/staking/stakes/index.d.ts +11 -11
- package/dist/staking/stakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/index.js +1 -1
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +5 -5
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/index.js +1 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +7 -7
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +6 -5
- package/dist/staking/stakes/searchStakes/index.d.ts +2 -2
- package/dist/staking/stakes/searchStakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/index.js +1 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +3 -3
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.js +2 -2
- package/dist/stakingTemplates/index.d.ts +27 -27
- package/dist/stakingTemplates/templates/common/amount.d.ts +4 -4
- package/dist/stakingTemplates/templates/common/amount.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/amount.js +5 -5
- package/dist/stakingTemplates/templates/common/amountMult.d.ts +2 -2
- package/dist/stakingTemplates/templates/common/amountMult.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/amountMult.js +3 -5
- package/dist/stakingTemplates/templates/common/erc20Input.d.ts +2 -2
- package/dist/stakingTemplates/templates/common/erc20Input.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/erc20Input.js +3 -3
- package/dist/stakingTemplates/templates/common/erc20Reward.d.ts +2 -2
- package/dist/stakingTemplates/templates/common/erc20Reward.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/erc20Reward.js +3 -3
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts +3 -3
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.js +2 -2
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts +3 -3
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.js +2 -2
- package/dist/stakingTemplates/templates/common/getReward.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getReward.js +3 -2
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts +2 -2
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getStakeEvent.js +1 -1
- package/dist/stakingTemplates/templates/common/lock.d.ts +3 -3
- package/dist/stakingTemplates/templates/common/lock.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/lock.js +6 -6
- package/dist/stakingTemplates/templates/common/lockMult.d.ts +2 -2
- package/dist/stakingTemplates/templates/common/lockMult.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/lockMult.js +3 -5
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/partialUnstake.js +3 -3
- package/dist/stakingTemplates/templates/common/rewardDistribution.d.ts +3 -3
- package/dist/stakingTemplates/templates/common/rewardDistribution.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/rewardDistribution.js +4 -4
- package/dist/stakingTemplates/templates/common/templates.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/time.d.ts +1 -1
- package/dist/stakingTemplates/templates/common/time.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/time.js +1 -1
- package/dist/stakingTemplates/templates/common/unstake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/unstake.js +1 -1
- package/dist/stakingTemplates/templates/reputation/index.d.ts +9 -9
- package/dist/stakingTemplates/templates/reputation/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/index.js +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.js +2 -2
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPool.js +8 -8
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts +9 -9
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/index.js +7 -7
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/restake.js +4 -4
- package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/stake.js +4 -4
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts +9 -9
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/index.js +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.js +2 -2
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.js +10 -10
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts +9 -9
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/index.js +7 -7
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.js +5 -5
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.js +5 -5
- package/dist/stakingTemplates/templates/rwa/index.d.ts +9 -9
- package/dist/stakingTemplates/templates/rwa/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/index.js +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.js +2 -2
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPool.js +7 -7
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.js +4 -4
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts +9 -9
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/index.js +7 -7
- package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/restake.js +4 -4
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/stake.js +4 -4
- package/package.json +34 -15
- package/dist/common/int256.d.ts +0 -3
- package/dist/common/int256.d.ts.map +0 -1
- package/dist/common/int256.js +0 -12
- package/dist/common/models/base/chainId.d.ts +0 -8
- package/dist/common/models/base/chainId.d.ts.map +0 -1
- package/dist/common/models/base/chainId.js +0 -11
- package/dist/common/models/base/date.d.ts +0 -6
- package/dist/common/models/base/date.d.ts.map +0 -1
- package/dist/common/models/base/date.js +0 -13
- package/dist/common/models/base/deployTransaction.d.ts +0 -8
- package/dist/common/models/base/deployTransaction.d.ts.map +0 -1
- package/dist/common/models/base/deployTransaction.js +0 -7
- package/dist/common/models/base/page.d.ts +0 -7
- package/dist/common/models/base/page.d.ts.map +0 -1
- package/dist/common/models/base/page.js +0 -5
- package/dist/common/models/base/transaction.d.ts +0 -13
- package/dist/common/models/base/transaction.d.ts.map +0 -1
- package/dist/common/models/base/transaction.js +0 -12
- package/dist/common/models/base/viem.d.ts +0 -6
- package/dist/common/models/base/viem.d.ts.map +0 -1
- package/dist/common/models/base/viem.js +0 -5
- package/dist/common/models/date.d.ts +0 -2
- package/dist/common/models/date.d.ts.map +0 -1
- package/dist/common/models/date.js +0 -4
- package/dist/common/models/percent.d.ts +0 -3
- package/dist/common/models/percent.d.ts.map +0 -1
- package/dist/common/models/percent.js +0 -6
- package/dist/common/models/saleId.d.ts +0 -6
- package/dist/common/models/saleId.d.ts.map +0 -1
- package/dist/common/models/saleId.js +0 -7
- package/dist/common/models/viem.d.ts +0 -6
- package/dist/common/models/viem.d.ts.map +0 -1
- package/dist/common/models/viem.js +0 -22
- package/dist/fractions/markets/common/platform.d.ts.map +0 -1
- package/dist/fractions/markets/getMarket/getMarket.d.ts.map +0 -1
- package/dist/fractions/markets/getMarket/index.d.ts +0 -50
- package/dist/fractions/markets/getMarket/index.d.ts.map +0 -1
- package/dist/fractions/markets/getMarket/index.js +0 -5
- package/dist/fractions/markets/searchMarkets/index.d.ts +0 -42
- package/dist/fractions/markets/searchMarkets/index.d.ts.map +0 -1
- package/dist/fractions/markets/searchMarkets/index.js +0 -5
- package/dist/fractions/markets/searchMarkets/searchMarkets.d.ts.map +0 -1
- package/dist/fractions/platforms/deployMarket.routes.d.ts.map +0 -1
- package/dist/fractions/platforms/deployMarket.schema.d.ts +0 -33
- package/dist/fractions/platforms/deployMarket.schema.d.ts.map +0 -1
- package/dist/fractions/platforms/deployMarket.schema.js +0 -28
- package/dist/fractions/platforms/index.d.ts +0 -174
- package/dist/fractions/platforms/index.js +0 -13
- package/dist/fractions/platforms/initCompilot.routes.d.ts.map +0 -1
- package/dist/fractions/roles/grantRole.route.d.ts.map +0 -1
- package/dist/fractions/roles/grantRole.schema.d.ts +0 -16
- package/dist/fractions/roles/grantRole.schema.d.ts.map +0 -1
- package/dist/fractions/roles/grantRole.schema.js +0 -14
- package/dist/fractions/sales/createFractions.schema.d.ts +0 -123
- package/dist/fractions/sales/createFractions.schema.d.ts.map +0 -1
- package/dist/fractions/sales/createFractions.schema.js +0 -80
- package/dist/next/fractions/index.d.ts +0 -356
- package/dist/next/fractions/index.js +0 -13
- package/dist/next/fractions/lending/buyback/buyback.routes.d.ts.map +0 -1
- package/dist/next/fractions/lending/buyback/buyback.schema.d.ts +0 -8
- package/dist/next/fractions/lending/buyback/buyback.schema.d.ts.map +0 -1
- package/dist/next/fractions/lending/buyback/buyback.schema.js +0 -13
- package/dist/next/fractions/lending/createLendingSale.d.ts +0 -130
- package/dist/next/fractions/lending/createLendingSale.d.ts.map +0 -1
- package/dist/next/fractions/lending/createLendingSale.js +0 -82
- package/dist/next/fractions/lending/deployMarket/lending.routes.d.ts.map +0 -1
- package/dist/next/fractions/lending/index.js +0 -15
- package/dist/next/fractions/lending/schemas.d.ts +0 -25
- package/dist/next/fractions/lending/schemas.d.ts.map +0 -1
- package/dist/next/fractions/lending/schemas.js +0 -21
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts.map +0 -1
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts +0 -7
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts.map +0 -1
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.schema.js +0 -11
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.routes.d.ts.map +0 -1
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.schema.d.ts +0 -25
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.schema.d.ts.map +0 -1
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.schema.js +0 -23
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.routes.d.ts.map +0 -1
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.schema.d.ts +0 -26
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.schema.d.ts.map +0 -1
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.schema.js +0 -24
- package/dist/next/fractions/platforms/index.d.ts +0 -69
- package/dist/next/fractions/platforms/index.d.ts.map +0 -1
- package/dist/next/fractions/platforms/index.js +0 -9
- package/dist/next/fractions/sales/createNftFractions.routes.d.ts.map +0 -1
- package/dist/next/fractions/sales/createNftFractions.schema.d.ts +0 -85
- package/dist/next/fractions/sales/createNftFractions.schema.d.ts.map +0 -1
- package/dist/next/fractions/sales/createNftFractions.schema.js +0 -67
- package/dist/next/fractions/sales/index.d.ts +0 -102
- package/dist/next/fractions/sales/index.d.ts.map +0 -1
- package/dist/next/fractions/sales/index.js +0 -11
- package/dist/next/fractions/sales/parseFractionsCreatedEvent.d.ts +0 -23
- package/dist/next/fractions/sales/parseFractionsCreatedEvent.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/next/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAM,MAAM,aAAa,CAAC;AAIvD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM5E;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAMnD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { hc } from "hono/client";
|
|
2
|
+
import { appsRegistry } from "./apps.js";
|
|
3
|
+
export function buildClients(basePath, options) {
|
|
4
|
+
return {
|
|
5
|
+
nftFractions: buildClient("nftFractions", basePath, options),
|
|
6
|
+
lending: buildClient("lending", basePath, options),
|
|
7
|
+
vestingRedemptionDynamic: buildClient("vestingRedemptionDynamic", basePath, options),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function buildClient(app, basePath, options) {
|
|
11
|
+
return hc(`${basePath}${appsRegistry[app].path}`, options);
|
|
12
|
+
}
|
|
13
|
+
export { parseResponse } from "hono/client";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const BuybackV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
|
+
"/": {
|
|
3
|
+
$post: {
|
|
4
|
+
input: {
|
|
5
|
+
json: {
|
|
6
|
+
campaign: {
|
|
7
|
+
market: string;
|
|
8
|
+
campaignId: string;
|
|
9
|
+
};
|
|
10
|
+
buybackPacketsAmount: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
output: {
|
|
14
|
+
data: `0x${string}`;
|
|
15
|
+
to: `0x${string}`;
|
|
16
|
+
details: {
|
|
17
|
+
functionName: string;
|
|
18
|
+
address: `0x${string}`;
|
|
19
|
+
abi: any[];
|
|
20
|
+
args: any[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
outputFormat: "json";
|
|
24
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, "/", "/">>;
|
|
28
|
+
//# sourceMappingURL=buyback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buyback.d.ts","sourceRoot":"","sources":["../../../src/next/lending/buyback.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;aAOpB,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildBuybackTx } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { BuyBackSchema } from "./schemas.js";
|
|
5
|
+
import { lendingTag } from "./tag.js";
|
|
6
|
+
import { createController } from "../../common/controller.js";
|
|
7
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
8
|
const route = describeRoute({
|
|
8
9
|
summary: "Perform buyback of financing position",
|
|
9
10
|
description: "Returns transaction data for buying back the financing position with interest",
|
|
10
|
-
tags: [
|
|
11
|
+
tags: [lendingTag.tag],
|
|
11
12
|
responses: {
|
|
12
13
|
200: {
|
|
13
14
|
description: "Returns transaction data for buy back operation",
|
|
@@ -20,9 +21,9 @@ const route = describeRoute({
|
|
|
20
21
|
},
|
|
21
22
|
});
|
|
22
23
|
export const BuybackV0 = createController({
|
|
23
|
-
build: (factory) => factory.createApp().post("/", route, validator("json",
|
|
24
|
-
const
|
|
25
|
-
const tx = buildBuybackTx(
|
|
24
|
+
build: (factory) => factory.createApp().post("/", route, validator("json", BuyBackSchema.openapi("BuyBackSchema")), async (c) => {
|
|
25
|
+
const config = c.req.valid("json");
|
|
26
|
+
const tx = buildBuybackTx(config);
|
|
26
27
|
return c.json(toTransaction(tx));
|
|
27
28
|
}),
|
|
28
29
|
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare const CreateLendingSaleController: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
|
+
"/": {
|
|
3
|
+
$post: {
|
|
4
|
+
input: {
|
|
5
|
+
json: {
|
|
6
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
7
|
+
market: string;
|
|
8
|
+
fractions: {
|
|
9
|
+
symbol: string;
|
|
10
|
+
name: string;
|
|
11
|
+
amount: string;
|
|
12
|
+
};
|
|
13
|
+
timeBoundary: {
|
|
14
|
+
start: string;
|
|
15
|
+
end: string;
|
|
16
|
+
};
|
|
17
|
+
cap: {
|
|
18
|
+
soft: string;
|
|
19
|
+
hard: string;
|
|
20
|
+
softPerAccount?: string | undefined;
|
|
21
|
+
hardPerAccount?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
wrapped: ({
|
|
24
|
+
type: "ERC20";
|
|
25
|
+
address: string;
|
|
26
|
+
values: string[];
|
|
27
|
+
} | {
|
|
28
|
+
type: "ERC721";
|
|
29
|
+
address: string;
|
|
30
|
+
tokenIds: string[];
|
|
31
|
+
} | {
|
|
32
|
+
type: "ERC1155";
|
|
33
|
+
address: string;
|
|
34
|
+
tokenIds: string[];
|
|
35
|
+
values: string[];
|
|
36
|
+
})[];
|
|
37
|
+
funding: {
|
|
38
|
+
token: string;
|
|
39
|
+
amountPerPacket: string;
|
|
40
|
+
}[];
|
|
41
|
+
refundAddress: string;
|
|
42
|
+
amountOfPacketsPerFraction: string;
|
|
43
|
+
buyback: {
|
|
44
|
+
durationSeconds: number;
|
|
45
|
+
interestPercentage: string;
|
|
46
|
+
liquidationLimitPercentage: string;
|
|
47
|
+
marginCallLimitPercentage: string;
|
|
48
|
+
};
|
|
49
|
+
discounts?: {
|
|
50
|
+
burnableTokenAddress: string;
|
|
51
|
+
amountToBurn: string;
|
|
52
|
+
percentDiscount: string;
|
|
53
|
+
} | undefined;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
output: {
|
|
57
|
+
data: `0x${string}`;
|
|
58
|
+
to: `0x${string}`;
|
|
59
|
+
details: {
|
|
60
|
+
functionName: string;
|
|
61
|
+
address: `0x${string}`;
|
|
62
|
+
abi: any[];
|
|
63
|
+
args: any[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
outputFormat: "json";
|
|
67
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}, "/", "/">>;
|
|
71
|
+
//# sourceMappingURL=createSale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSale.d.ts","sourceRoot":"","sources":["../../../src/next/lending/createSale.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aActC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi";
|
|
3
|
+
import { buildCreateLendingFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
+
import { CreateLendingFractionsSchema } from "./schemas.js";
|
|
5
|
+
import { lendingTag } from "./tag.js";
|
|
6
|
+
import { createController } from "../../common/controller.js";
|
|
7
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
8
|
+
const route = describeRoute({
|
|
9
|
+
summary: "Create financing sale fractions",
|
|
10
|
+
description: "Returns transaction data for creating financing sale fractions",
|
|
11
|
+
tags: [lendingTag.tag],
|
|
12
|
+
responses: {
|
|
13
|
+
200: {
|
|
14
|
+
description: "Returns transaction data for creating financing sale fractions",
|
|
15
|
+
content: {
|
|
16
|
+
"application/json": {
|
|
17
|
+
schema: resolver(TransactionSchema),
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
export const CreateLendingSaleController = createController({
|
|
24
|
+
build: (factory) => factory
|
|
25
|
+
.createApp()
|
|
26
|
+
.post("/", route, validator("json", CreateLendingFractionsSchema.openapi("CreateLendingFractionsSchema")), async (c) => {
|
|
27
|
+
const config = c.req.valid("json");
|
|
28
|
+
const tx = buildCreateLendingFractionsTx(config);
|
|
29
|
+
return c.json(toTransaction(tx));
|
|
30
|
+
}),
|
|
31
|
+
});
|
package/dist/next/{fractions/lending/deployMarket/lending.routes.d.ts → lending/deployMarket.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const DeployLendingMarketV0: import("
|
|
1
|
+
export declare const DeployLendingMarketV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
2
|
"/": {
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
5
5
|
json: {
|
|
6
|
-
chainId:
|
|
6
|
+
chainId: "31337" | "11155111" | "84532" | "72080";
|
|
7
7
|
adminAddress: string;
|
|
8
8
|
minInterest: number;
|
|
9
9
|
maxInterest: number;
|
|
@@ -20,7 +20,7 @@ export declare const DeployLendingMarketV0: import("../../../../common/controlle
|
|
|
20
20
|
maxHardCap: string;
|
|
21
21
|
} | undefined;
|
|
22
22
|
fee?: {
|
|
23
|
-
percent:
|
|
23
|
+
percent: string;
|
|
24
24
|
collectorAddress: string;
|
|
25
25
|
feeAdmin: string;
|
|
26
26
|
} | undefined;
|
|
@@ -41,4 +41,4 @@ export declare const DeployLendingMarketV0: import("../../../../common/controlle
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
}, "/", "/">>;
|
|
44
|
-
//# sourceMappingURL=
|
|
44
|
+
//# sourceMappingURL=deployMarket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployMarket.d.ts","sourceRoot":"","sources":["../../../src/next/lending/deployMarket.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAuChC,CAAC"}
|
package/dist/next/{fractions/lending/deployMarket/lending.routes.js → lending/deployMarket.js}
RENAMED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { createLendingPlatform } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { DeployLendingMarketRequestSchema } from "./schemas.js";
|
|
5
|
+
import { lendingTag } from "./tag.js";
|
|
6
|
+
import { createController } from "../../common/controller.js";
|
|
7
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
8
|
const route = describeRoute({
|
|
8
9
|
summary: "Deploy a financing market",
|
|
9
10
|
description: "Returns transaction data for deploying a financing market with fractionalized collateral",
|
|
10
|
-
tags: [
|
|
11
|
+
tags: [lendingTag.tag],
|
|
11
12
|
responses: {
|
|
12
13
|
200: {
|
|
13
14
|
description: "Returns transaction data for deploying a financing market",
|
|
@@ -20,7 +21,9 @@ const route = describeRoute({
|
|
|
20
21
|
},
|
|
21
22
|
});
|
|
22
23
|
export const DeployLendingMarketV0 = createController({
|
|
23
|
-
build: (factory) => factory
|
|
24
|
+
build: (factory) => factory
|
|
25
|
+
.createApp()
|
|
26
|
+
.post("/", route, validator("json", DeployLendingMarketRequestSchema.openapi("DeployLendingMarketRequestSchema")), async (c) => {
|
|
24
27
|
const { cap, chainId, adminAddress, discount, minInterest, maxInterest, minDuration, maxDuration, ownerAddress, minimumProportionOverObligation, fee, } = c.req.valid("json");
|
|
25
28
|
const tx = createLendingPlatform({
|
|
26
29
|
chainId: chainId,
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const LendingApi: import("../../common/controller.js").IApi<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
2
2
|
"/": {
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
5
5
|
json: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
campaign: {
|
|
7
|
+
market: string;
|
|
8
|
+
campaignId: string;
|
|
9
|
+
};
|
|
10
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
9
11
|
amountToBuy: string;
|
|
10
|
-
|
|
12
|
+
tokenId?: string | undefined;
|
|
13
|
+
burnForDiscount?: string | undefined;
|
|
11
14
|
};
|
|
12
15
|
};
|
|
13
16
|
output: {
|
|
@@ -29,7 +32,7 @@ export declare const LendingController: import("../../../common/controller.js").
|
|
|
29
32
|
$post: {
|
|
30
33
|
input: {
|
|
31
34
|
json: {
|
|
32
|
-
chainId:
|
|
35
|
+
chainId: "31337" | "11155111" | "84532" | "72080";
|
|
33
36
|
adminAddress: string;
|
|
34
37
|
minInterest: number;
|
|
35
38
|
maxInterest: number;
|
|
@@ -46,7 +49,7 @@ export declare const LendingController: import("../../../common/controller.js").
|
|
|
46
49
|
maxHardCap: string;
|
|
47
50
|
} | undefined;
|
|
48
51
|
fee?: {
|
|
49
|
-
percent:
|
|
52
|
+
percent: string;
|
|
50
53
|
collectorAddress: string;
|
|
51
54
|
feeAdmin: string;
|
|
52
55
|
} | undefined;
|
|
@@ -71,13 +74,12 @@ export declare const LendingController: import("../../../common/controller.js").
|
|
|
71
74
|
$post: {
|
|
72
75
|
input: {
|
|
73
76
|
json: {
|
|
74
|
-
chainId:
|
|
77
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
75
78
|
market: string;
|
|
76
79
|
fractions: {
|
|
77
80
|
symbol: string;
|
|
78
81
|
name: string;
|
|
79
82
|
amount: string;
|
|
80
|
-
token?: string | undefined;
|
|
81
83
|
};
|
|
82
84
|
timeBoundary: {
|
|
83
85
|
start: string;
|
|
@@ -111,14 +113,14 @@ export declare const LendingController: import("../../../common/controller.js").
|
|
|
111
113
|
amountOfPacketsPerFraction: string;
|
|
112
114
|
buyback: {
|
|
113
115
|
durationSeconds: number;
|
|
114
|
-
interestPercentage:
|
|
115
|
-
liquidationLimitPercentage:
|
|
116
|
-
marginCallLimitPercentage:
|
|
116
|
+
interestPercentage: string;
|
|
117
|
+
liquidationLimitPercentage: string;
|
|
118
|
+
marginCallLimitPercentage: string;
|
|
117
119
|
};
|
|
118
120
|
discounts?: {
|
|
119
121
|
burnableTokenAddress: string;
|
|
120
122
|
amountToBurn: string;
|
|
121
|
-
percentDiscount:
|
|
123
|
+
percentDiscount: string;
|
|
122
124
|
} | undefined;
|
|
123
125
|
};
|
|
124
126
|
};
|
|
@@ -141,9 +143,11 @@ export declare const LendingController: import("../../../common/controller.js").
|
|
|
141
143
|
$post: {
|
|
142
144
|
input: {
|
|
143
145
|
json: {
|
|
146
|
+
campaign: {
|
|
147
|
+
market: string;
|
|
148
|
+
campaignId: string;
|
|
149
|
+
};
|
|
144
150
|
collateralPriceInFundingPackets: string;
|
|
145
|
-
market: string;
|
|
146
|
-
campaignId: string;
|
|
147
151
|
};
|
|
148
152
|
};
|
|
149
153
|
output: {
|
|
@@ -165,10 +169,11 @@ export declare const LendingController: import("../../../common/controller.js").
|
|
|
165
169
|
$post: {
|
|
166
170
|
input: {
|
|
167
171
|
json: {
|
|
168
|
-
|
|
172
|
+
campaign: {
|
|
173
|
+
market: string;
|
|
174
|
+
campaignId: string;
|
|
175
|
+
};
|
|
169
176
|
buybackPacketsAmount: string;
|
|
170
|
-
market: string;
|
|
171
|
-
campaignId: string;
|
|
172
177
|
};
|
|
173
178
|
};
|
|
174
179
|
output: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/next/lending/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAWrB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BuybackV0 } from "./buyback.js";
|
|
2
|
+
import { CreateLendingSaleController } from "./createSale.js";
|
|
3
|
+
import { DeployLendingMarketV0 } from "./deployMarket.js";
|
|
4
|
+
import { SetCollateralPriceV0 } from "./setCollateralPrice.js";
|
|
5
|
+
import { createApi } from "../../common/controller.js";
|
|
6
|
+
import { PurchaseV0 } from "../../fractions/sales/purchase.route.js";
|
|
7
|
+
export const LendingApi = createApi({
|
|
8
|
+
title: "Financing API",
|
|
9
|
+
description: "Financing markets with fractionalized collateral, buyback, and collateral pricing",
|
|
10
|
+
build: (factory) => factory
|
|
11
|
+
.createApp()
|
|
12
|
+
.route("/deploy", DeployLendingMarketV0.build(factory))
|
|
13
|
+
.route("/createSale", CreateLendingSaleController.build(factory))
|
|
14
|
+
.route("/purchase", PurchaseV0.build(factory))
|
|
15
|
+
.route("/setCollateralPrice", SetCollateralPriceV0.build(factory))
|
|
16
|
+
.route("/buyback", BuybackV0.build(factory)),
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/next/lending/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EACb,4BAA4B,EAC5B,gCAAgC,EAChC,8BAA8B,GAC/B,MAAM,8CAA8C,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
export declare const SetCollateralPriceV0: import("
|
|
1
|
+
export declare const SetCollateralPriceV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
2
|
"/": {
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
5
5
|
json: {
|
|
6
|
+
campaign: {
|
|
7
|
+
market: string;
|
|
8
|
+
campaignId: string;
|
|
9
|
+
};
|
|
6
10
|
collateralPriceInFundingPackets: string;
|
|
7
|
-
market: string;
|
|
8
|
-
campaignId: string;
|
|
9
11
|
};
|
|
10
12
|
};
|
|
11
13
|
output: {
|
|
@@ -23,4 +25,4 @@ export declare const SetCollateralPriceV0: import("../../../../common/controller
|
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
27
|
}, "/", "/">>;
|
|
26
|
-
//# sourceMappingURL=setCollateralPrice.
|
|
28
|
+
//# sourceMappingURL=setCollateralPrice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setCollateralPrice.d.ts","sourceRoot":"","sources":["../../../src/next/lending/setCollateralPrice.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;aAc/B,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildSetCollateralPriceTx } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { SetCollateralPriceConfigSchema } from "./schemas.js";
|
|
5
|
+
import { lendingTag } from "./tag.js";
|
|
6
|
+
import { createController } from "../../common/controller.js";
|
|
7
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
8
|
const route = describeRoute({
|
|
8
9
|
summary: "Set collateral price for financing market",
|
|
9
10
|
description: "Returns transaction data for setting the collateral price in a financing market",
|
|
10
|
-
tags: [
|
|
11
|
+
tags: [lendingTag.tag],
|
|
11
12
|
responses: {
|
|
12
13
|
200: {
|
|
13
14
|
description: "Returns transaction data for setting collateral price",
|
|
@@ -20,9 +21,11 @@ const route = describeRoute({
|
|
|
20
21
|
},
|
|
21
22
|
});
|
|
22
23
|
export const SetCollateralPriceV0 = createController({
|
|
23
|
-
build: (factory) => factory
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
build: (factory) => factory
|
|
25
|
+
.createApp()
|
|
26
|
+
.post("/", route, validator("json", SetCollateralPriceConfigSchema.openapi("SetCollateralPriceRequestSchema")), async (c) => {
|
|
27
|
+
const config = c.req.valid("json");
|
|
28
|
+
const tx = buildSetCollateralPriceTx(config);
|
|
26
29
|
return c.json(toTransaction(tx));
|
|
27
30
|
}),
|
|
28
31
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/next/lending/tag.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;CAAuB,CAAC"}
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Controller for the create NFT fractions endpoint
|
|
3
3
|
*/
|
|
4
|
-
export declare const CreateNftFractionsV0: import("
|
|
4
|
+
export declare const CreateNftFractionsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
5
5
|
"/": {
|
|
6
6
|
$post: {
|
|
7
7
|
input: {
|
|
8
8
|
json: {
|
|
9
|
-
chainId:
|
|
9
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
10
10
|
market: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
wrapped: ({
|
|
12
|
+
type: "ERC20";
|
|
13
|
+
address: string;
|
|
14
|
+
values: string[];
|
|
15
|
+
} | {
|
|
16
|
+
type: "ERC721";
|
|
17
|
+
address: string;
|
|
13
18
|
tokenIds: string[];
|
|
14
|
-
}
|
|
19
|
+
} | {
|
|
20
|
+
type: "ERC1155";
|
|
21
|
+
address: string;
|
|
22
|
+
tokenIds: string[];
|
|
23
|
+
values: string[];
|
|
24
|
+
})[];
|
|
15
25
|
fractions: {
|
|
16
26
|
name: string;
|
|
17
27
|
symbol: string;
|
|
@@ -55,4 +65,4 @@ export declare const CreateNftFractionsV0: import("../../../common/controller.js
|
|
|
55
65
|
};
|
|
56
66
|
};
|
|
57
67
|
}, "/", "/">>;
|
|
58
|
-
//# sourceMappingURL=createNftFractions.
|
|
68
|
+
//# sourceMappingURL=createNftFractions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createNftFractions.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/createNftFractions.ts"],"names":[],"mappings":"AA2BA;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA4C/B,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildCreateNftFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { CreateNftFractionsConfigSchema } from "./schemas.js";
|
|
5
|
+
import { nftFractionsTag } from "./tag.js";
|
|
6
|
+
import { createController } from "../../common/controller.js";
|
|
7
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
8
|
const route = describeRoute({
|
|
8
9
|
summary: "Create NFT fractions",
|
|
9
|
-
description: "Returns transaction data for wrapping
|
|
10
|
-
"The
|
|
11
|
-
tags: [
|
|
10
|
+
description: "Returns transaction data for wrapping assets and creating ERC-20 compatible fractions. " +
|
|
11
|
+
"The asset owner must first approve the wrapper to transfer the wrapped tokens.",
|
|
12
|
+
tags: [nftFractionsTag.tag],
|
|
12
13
|
responses: {
|
|
13
14
|
200: {
|
|
14
15
|
description: "Returns transaction data for creating NFT fractions",
|
|
@@ -24,15 +25,12 @@ const route = describeRoute({
|
|
|
24
25
|
* Controller for the create NFT fractions endpoint
|
|
25
26
|
*/
|
|
26
27
|
export const CreateNftFractionsV0 = createController({
|
|
27
|
-
build: (factory) => factory.createApp().post("/", route, validator("json",
|
|
28
|
-
const { chainId, market,
|
|
28
|
+
build: (factory) => factory.createApp().post("/", route, validator("json", CreateNftFractionsConfigSchema), async (c) => {
|
|
29
|
+
const { chainId, market, wrapped, fractions, timeBoundary, cap, funding, amountOfPacketsPerFraction, vesting, refundAddress, } = c.req.valid("json");
|
|
29
30
|
const tx = buildCreateNftFractionsTx({
|
|
30
31
|
chainId: chainId,
|
|
31
32
|
market: market,
|
|
32
|
-
|
|
33
|
-
contractAddress: nft.contractAddress,
|
|
34
|
-
tokenIds: nft.tokenIds,
|
|
35
|
-
},
|
|
33
|
+
wrapped: wrapped,
|
|
36
34
|
fractions: {
|
|
37
35
|
name: fractions.name,
|
|
38
36
|
symbol: fractions.symbol,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Controller for deploying an NFT Fractions market (non-gated)
|
|
3
3
|
*/
|
|
4
|
-
export declare const DeployNftFractionsMarketDefaultV0: import("
|
|
4
|
+
export declare const DeployNftFractionsMarketDefaultV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
5
5
|
"/": {
|
|
6
6
|
$post: {
|
|
7
7
|
input: {
|
|
8
8
|
json: {
|
|
9
|
-
chainId:
|
|
9
|
+
chainId: "31337" | "11155111" | "84532" | "72080";
|
|
10
10
|
adminAddress: string;
|
|
11
11
|
acceptedFundingTokens: string[];
|
|
12
12
|
ownerAddress?: string | undefined;
|
|
@@ -14,7 +14,7 @@ export declare const DeployNftFractionsMarketDefaultV0: import("../../../../comm
|
|
|
14
14
|
maxHardCap: string;
|
|
15
15
|
} | undefined;
|
|
16
16
|
fee?: {
|
|
17
|
-
percent:
|
|
17
|
+
percent: string;
|
|
18
18
|
collectorAddress: string;
|
|
19
19
|
feeAdmin: string;
|
|
20
20
|
} | undefined;
|
|
@@ -35,4 +35,4 @@ export declare const DeployNftFractionsMarketDefaultV0: import("../../../../comm
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
}, "/", "/">>;
|
|
38
|
-
//# sourceMappingURL=deployNftFractionsMarket.
|
|
38
|
+
//# sourceMappingURL=deployNftFractionsMarket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployNftFractionsMarket.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/deployNftFractionsMarket.ts"],"names":[],"mappings":"AA2BA;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAgB5C,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { createNftFractionsPlatformNoNid } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { DeployNftFractionsMarketDefaultRequestSchema } from "./schemas.js";
|
|
5
|
+
import { nftFractionsTag } from "./tag.js";
|
|
6
|
+
import { createController } from "../../common/controller.js";
|
|
7
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
8
|
const route = describeRoute({
|
|
8
9
|
summary: "Deploy an NFT Fractions market",
|
|
9
10
|
description: "Returns transaction data for deploying an NFT Fractions market (non-gated). " +
|
|
10
11
|
"This market type supports wrapping ERC-721 tokens and fractionalizing them into ERC-20 compatible tokens.",
|
|
11
|
-
tags: [
|
|
12
|
+
tags: [nftFractionsTag.tag],
|
|
12
13
|
responses: {
|
|
13
14
|
200: {
|
|
14
15
|
description: "Returns transaction data for deploying an NFT Fractions market",
|