@evergonlabs/tmi-protocol-api 0.11.0-rc.0 → 0.11.0-rc.2
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 +253 -878
- 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 +260 -927
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -9
- package/dist/common/blockchain.d.ts +173 -173
- package/dist/common/blockchain.d.ts.map +1 -1
- package/dist/common/config.d.ts +1 -1
- package/dist/common/config.d.ts.map +1 -1
- package/dist/common/config.js +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 +7 -17
- 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 +159 -111
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +0 -2
- package/dist/fractions/markets/{deployMarket.routes.d.ts → deployMarket.d.ts} +11 -11
- package/dist/fractions/markets/deployMarket.d.ts.map +1 -0
- package/dist/fractions/markets/{deployMarket.routes.js → deployMarket.js} +3 -2
- 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/markets/initCompilot.d.ts +28 -0
- package/dist/fractions/markets/initCompilot.d.ts.map +1 -0
- package/dist/fractions/markets/{initCompilot.routes.js → initCompilot.js} +7 -13
- 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 -7
- package/dist/fractions/sales/approveWrapper.route.d.ts.map +1 -1
- package/dist/fractions/sales/approveWrapper.route.js +5 -9
- 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 +1 -1
- 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 +119 -70
- package/dist/fractions/sales/index.d.ts.map +1 -1
- package/dist/fractions/sales/index.js +5 -4
- 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 +1 -1
- 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 +2 -2
- 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 +12 -12
- 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 +13 -13
- package/dist/fractions/statistics/networkStatistics.route.d.ts.map +1 -1
- package/dist/fractions/statistics/networkStatistics.route.js +6 -6
- 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 +17 -23
- package/dist/issuance/common/factories.base.d.ts.map +1 -1
- package/dist/issuance/common/factories.base.js +3 -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 +8 -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 +2 -2
- package/dist/issuance/erc1155/getMintedTokenId.d.ts.map +1 -1
- package/dist/issuance/erc1155/getMintedTokenId.js +5 -15
- 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 +8 -8
- package/dist/issuance/erc1155/index.d.ts.map +1 -1
- package/dist/issuance/erc1155/index.js +1 -1
- 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 +2 -2
- package/dist/issuance/erc721/getMintedTokenId.d.ts.map +1 -1
- package/dist/issuance/erc721/getMintedTokenId.js +5 -15
- 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 +8 -8
- package/dist/issuance/erc721/index.d.ts.map +1 -1
- package/dist/issuance/erc721/index.js +1 -1
- 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 +24 -24
- 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/{fractions/index.d.ts.map → app.d.ts.map} +1 -1
- 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/vestingRedemptionDynamic/approveCampaign.routes.d.ts → lending/setCollateralPrice.d.ts} +7 -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} +3 -3
- package/dist/next/nftFractions/createNftFractions.d.ts.map +1 -0
- package/dist/next/{fractions/sales/createNftFractions.routes.js → nftFractions/createNftFractions.js} +8 -18
- 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/{fractions/vestingRedemptionDynamic/setEpochPrice.routes.d.ts → vestingRedemptionDynamic/approveCampaign.d.ts} +6 -5
- package/dist/next/vestingRedemptionDynamic/approveCampaign.d.ts.map +1 -0
- package/dist/next/{fractions/vestingRedemptionDynamic/approveCampaign.routes.js → vestingRedemptionDynamic/approveCampaign.js} +10 -14
- package/dist/next/{fractions/vestingRedemptionDynamic/createCampaign.routes.d.ts → vestingRedemptionDynamic/createCampaign.d.ts} +3 -3
- package/dist/next/vestingRedemptionDynamic/createCampaign.d.ts.map +1 -0
- package/dist/next/{fractions/vestingRedemptionDynamic/createCampaign.routes.js → vestingRedemptionDynamic/createCampaign.js} +8 -25
- package/dist/next/{fractions/vestingRedemptionDynamic/deployMarket.routes.d.ts → vestingRedemptionDynamic/deployMarket.d.ts} +3 -3
- package/dist/next/vestingRedemptionDynamic/deployMarket.d.ts.map +1 -0
- package/dist/next/{fractions/vestingRedemptionDynamic/deployMarket.routes.js → vestingRedemptionDynamic/deployMarket.js} +9 -13
- 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/{fractions/vestingRedemptionDynamic/getCurrentEpoch.routes.js → vestingRedemptionDynamic/getCurrentEpoch.js} +16 -25
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts +24 -0
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts.map +1 -0
- package/dist/next/{fractions/vestingRedemptionDynamic/getEpochPurchaseEvent.routes.js → vestingRedemptionDynamic/getEpochPurchaseEvent.js} +23 -24
- 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/{fractions/vestingRedemptionDynamic/getWithdrawalRequestedEvent.routes.js → vestingRedemptionDynamic/getWithdrawalRequestedEvent.js} +21 -22
- package/dist/next/{fractions/vestingRedemptionDynamic → vestingRedemptionDynamic}/index.d.ts +62 -46
- package/dist/next/{fractions/vestingRedemptionDynamic → vestingRedemptionDynamic}/index.d.ts.map +1 -1
- package/dist/next/{fractions/vestingRedemptionDynamic → vestingRedemptionDynamic}/index.js +16 -12
- 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/{fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts → vestingRedemptionDynamic/withdrawFunds.d.ts} +7 -5
- 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 +32 -13
- 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/deployMarket.routes.d.ts.map +0 -1
- package/dist/fractions/markets/deployMarket.schema.d.ts +0 -33
- package/dist/fractions/markets/deployMarket.schema.d.ts.map +0 -1
- package/dist/fractions/markets/deployMarket.schema.js +0 -28
- 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/initCompilot.routes.d.ts +0 -36
- package/dist/fractions/markets/initCompilot.routes.d.ts.map +0 -1
- 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/index.d.ts +0 -174
- package/dist/fractions/platforms/index.js +0 -13
- 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 -671
- package/dist/next/fractions/index.js +0 -15
- 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 -88
- package/dist/next/fractions/sales/createNftFractions.schema.d.ts.map +0 -1
- package/dist/next/fractions/sales/createNftFractions.schema.js +0 -61
- package/dist/next/fractions/sales/index.d.ts +0 -112
- 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
- package/dist/next/fractions/vestingRedemptionDynamic/approveCampaign.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/createCampaign.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/createCampaign.schema.d.ts +0 -43
- package/dist/next/fractions/vestingRedemptionDynamic/createCampaign.schema.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/createCampaign.schema.js +0 -48
- package/dist/next/fractions/vestingRedemptionDynamic/deployMarket.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/deployMarket.schema.d.ts +0 -23
- package/dist/next/fractions/vestingRedemptionDynamic/deployMarket.schema.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/deployMarket.schema.js +0 -29
- package/dist/next/fractions/vestingRedemptionDynamic/epochPurchase.routes.d.ts +0 -51
- package/dist/next/fractions/vestingRedemptionDynamic/epochPurchase.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/epochPurchase.routes.js +0 -74
- package/dist/next/fractions/vestingRedemptionDynamic/epochWithdrawal.routes.d.ts +0 -51
- package/dist/next/fractions/vestingRedemptionDynamic/epochWithdrawal.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/epochWithdrawal.routes.js +0 -75
- package/dist/next/fractions/vestingRedemptionDynamic/getCurrentEpoch.routes.d.ts +0 -19
- package/dist/next/fractions/vestingRedemptionDynamic/getCurrentEpoch.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/getEpochPurchaseEvent.routes.d.ts +0 -23
- package/dist/next/fractions/vestingRedemptionDynamic/getEpochPurchaseEvent.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/getPurchasePriceForEpoch.routes.d.ts +0 -20
- package/dist/next/fractions/vestingRedemptionDynamic/getPurchasePriceForEpoch.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/getPurchasePriceForEpoch.routes.js +0 -59
- package/dist/next/fractions/vestingRedemptionDynamic/getWithdrawalRequestedEvent.routes.d.ts +0 -21
- package/dist/next/fractions/vestingRedemptionDynamic/getWithdrawalRequestedEvent.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/setEpochPrice.routes.d.ts.map +0 -1
- package/dist/next/fractions/vestingRedemptionDynamic/setEpochPrice.routes.js +0 -41
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Time boundary schema for sale period
|
|
4
|
-
*/
|
|
5
|
-
export declare const TimeBoundarySchema: z.ZodObject<{
|
|
6
|
-
start: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "ISO", "out">, z.ZodTransform<Date, string & z.core.$brand<"ISO">>>;
|
|
7
|
-
end: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "ISO", "out">, z.ZodTransform<Date, string & z.core.$brand<"ISO">>>;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
/**
|
|
10
|
-
* Capitalization schema for sale limits
|
|
11
|
-
*/
|
|
12
|
-
export declare const CapitalizationSchema: z.ZodObject<{
|
|
13
|
-
soft: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
14
|
-
hard: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
15
|
-
softPerAccount: z.ZodOptional<z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>>;
|
|
16
|
-
hardPerAccount: z.ZodOptional<z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
/**
|
|
19
|
-
* Fraction configuration schema
|
|
20
|
-
*/
|
|
21
|
-
export declare const FractionSchema: z.ZodObject<{
|
|
22
|
-
name: z.ZodString;
|
|
23
|
-
symbol: z.ZodString;
|
|
24
|
-
amount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
/**
|
|
27
|
-
* Funding configuration schema for payment tokens
|
|
28
|
-
*/
|
|
29
|
-
export declare const FundingSchema: z.ZodObject<{
|
|
30
|
-
token: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
31
|
-
amountPerPacket: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
/**
|
|
34
|
-
* Vesting configuration schema
|
|
35
|
-
*/
|
|
36
|
-
export declare const VestingSchema: z.ZodObject<{
|
|
37
|
-
cliff: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "ISO", "out">, z.ZodTransform<Date, string & z.core.$brand<"ISO">>>;
|
|
38
|
-
totalVestingPeriod: z.ZodNumber;
|
|
39
|
-
portionPeriod: z.ZodNumber;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
/**
|
|
42
|
-
* Request schema for creating NFT fractions
|
|
43
|
-
*/
|
|
44
|
-
export declare const CreateNftFractionsRequestSchema: z.ZodObject<{
|
|
45
|
-
chainId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<[z.ZodLiteral<1 | 11155111 | 31337 | 84532 | 72080>, z.ZodLiteral<1 | 11155111 | 31337 | 84532 | 72080>, ...z.ZodLiteral<1 | 11155111 | 31337 | 84532 | 72080>[]]>>;
|
|
46
|
-
market: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
47
|
-
wrapped: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
48
|
-
type: z.ZodLiteral<"ERC20">;
|
|
49
|
-
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
50
|
-
values: z.ZodArray<z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>>;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
type: z.ZodLiteral<"ERC721">;
|
|
53
|
-
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
54
|
-
tokenIds: z.ZodArray<z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>>;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
type: z.ZodLiteral<"ERC1155">;
|
|
57
|
-
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
58
|
-
tokenIds: z.ZodArray<z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>>;
|
|
59
|
-
values: z.ZodArray<z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>>;
|
|
60
|
-
}, z.core.$strip>]>>;
|
|
61
|
-
fractions: z.ZodObject<{
|
|
62
|
-
name: z.ZodString;
|
|
63
|
-
symbol: z.ZodString;
|
|
64
|
-
amount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
65
|
-
}, z.core.$strip>;
|
|
66
|
-
timeBoundary: z.ZodObject<{
|
|
67
|
-
start: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "ISO", "out">, z.ZodTransform<Date, string & z.core.$brand<"ISO">>>;
|
|
68
|
-
end: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "ISO", "out">, z.ZodTransform<Date, string & z.core.$brand<"ISO">>>;
|
|
69
|
-
}, z.core.$strip>;
|
|
70
|
-
cap: z.ZodObject<{
|
|
71
|
-
soft: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
72
|
-
hard: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
73
|
-
softPerAccount: z.ZodOptional<z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>>;
|
|
74
|
-
hardPerAccount: z.ZodOptional<z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>>;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
funding: z.ZodArray<z.ZodObject<{
|
|
77
|
-
token: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
78
|
-
amountPerPacket: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
79
|
-
}, z.core.$strip>>;
|
|
80
|
-
amountOfPacketsPerFraction: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
81
|
-
vesting: z.ZodOptional<z.ZodObject<{
|
|
82
|
-
cliff: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "ISO", "out">, z.ZodTransform<Date, string & z.core.$brand<"ISO">>>;
|
|
83
|
-
totalVestingPeriod: z.ZodNumber;
|
|
84
|
-
portionPeriod: z.ZodNumber;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
refundAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
//# sourceMappingURL=createNftFractions.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createNftFractions.schema.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/sales/createNftFractions.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;iBAGxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;iBAIxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAaC,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { AddressSchema, FractionsChainId } from "../../../common/index.js";
|
|
3
|
-
import { Int256BigInt } from "../../../common/int256.js";
|
|
4
|
-
import { ISODate } from "../../../common/models/base/date.js";
|
|
5
|
-
import { WrappedTokenTypeSchema } from "../../../fractions/sales/createFractions.schema.js";
|
|
6
|
-
/**
|
|
7
|
-
* Time boundary schema for sale period
|
|
8
|
-
*/
|
|
9
|
-
export const TimeBoundarySchema = z.object({
|
|
10
|
-
start: ISODate().describe("Sale start date"),
|
|
11
|
-
end: ISODate().describe("Sale end date"),
|
|
12
|
-
});
|
|
13
|
-
/**
|
|
14
|
-
* Capitalization schema for sale limits
|
|
15
|
-
*/
|
|
16
|
-
export const CapitalizationSchema = z.object({
|
|
17
|
-
soft: Int256BigInt(z.bigint().positive()).describe("Soft cap - minimum funding target"),
|
|
18
|
-
hard: Int256BigInt(z.bigint().positive()).describe("Hard cap - maximum funding limit"),
|
|
19
|
-
softPerAccount: Int256BigInt(z.bigint().positive()).optional().describe("Optional soft cap per account"),
|
|
20
|
-
hardPerAccount: Int256BigInt(z.bigint().positive()).optional().describe("Optional hard cap per account"),
|
|
21
|
-
});
|
|
22
|
-
/**
|
|
23
|
-
* Fraction configuration schema
|
|
24
|
-
*/
|
|
25
|
-
export const FractionSchema = z.object({
|
|
26
|
-
name: z.string().min(1).describe("Fraction token name"),
|
|
27
|
-
symbol: z.string().min(1).max(11).describe("Fraction token symbol"),
|
|
28
|
-
amount: Int256BigInt(z.bigint().positive()).describe("Total supply of fractions to mint"),
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* Funding configuration schema for payment tokens
|
|
32
|
-
*/
|
|
33
|
-
export const FundingSchema = z.object({
|
|
34
|
-
token: AddressSchema.describe("Payment token address (e.g., USDC)"),
|
|
35
|
-
amountPerPacket: Int256BigInt(z.bigint().positive()).describe("Amount of payment token per packet"),
|
|
36
|
-
});
|
|
37
|
-
/**
|
|
38
|
-
* Vesting configuration schema
|
|
39
|
-
*/
|
|
40
|
-
export const VestingSchema = z.object({
|
|
41
|
-
cliff: ISODate().describe("Cliff date after which vesting begins"),
|
|
42
|
-
totalVestingPeriod: z.number().positive().describe("Total vesting period in seconds"),
|
|
43
|
-
portionPeriod: z.number().positive().describe("Period between vesting portions in seconds"),
|
|
44
|
-
});
|
|
45
|
-
/**
|
|
46
|
-
* Request schema for creating NFT fractions
|
|
47
|
-
*/
|
|
48
|
-
export const CreateNftFractionsRequestSchema = z
|
|
49
|
-
.object({
|
|
50
|
-
chainId: FractionsChainId.describe("Chain ID where the market is deployed"),
|
|
51
|
-
market: AddressSchema.describe("Address of the NFT Fractions market"),
|
|
52
|
-
wrapped: z.array(WrappedTokenTypeSchema).nonempty().describe("Wrapped asset details to include in the sale"),
|
|
53
|
-
fractions: FractionSchema.describe("Fraction token configuration"),
|
|
54
|
-
timeBoundary: TimeBoundarySchema.describe("Purchase time window"),
|
|
55
|
-
cap: CapitalizationSchema.describe("Capitalization limits"),
|
|
56
|
-
funding: z.array(FundingSchema).nonempty().describe("Payment token configuration"),
|
|
57
|
-
amountOfPacketsPerFraction: Int256BigInt(z.bigint().positive()).describe("Number of funding packets per fraction"),
|
|
58
|
-
vesting: VestingSchema.optional().describe("Optional vesting configuration"),
|
|
59
|
-
refundAddress: AddressSchema.describe("Address to receive refunds"),
|
|
60
|
-
})
|
|
61
|
-
.openapi("CreateNftFractionsRequestSchema");
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
export declare const SalesController: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
2
|
-
"/": {
|
|
3
|
-
$post: {
|
|
4
|
-
input: {
|
|
5
|
-
json: {
|
|
6
|
-
market: string;
|
|
7
|
-
campaignId: string;
|
|
8
|
-
chainId: unknown;
|
|
9
|
-
amountToBuy: string;
|
|
10
|
-
applyDiscount: boolean;
|
|
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
|
-
}, "/purchase"> | import("hono/types").MergeSchemaPath<{
|
|
28
|
-
"/": {
|
|
29
|
-
$post: {
|
|
30
|
-
input: {
|
|
31
|
-
json: {
|
|
32
|
-
chainId: unknown;
|
|
33
|
-
market: string;
|
|
34
|
-
wrapped: ({
|
|
35
|
-
type: "ERC20";
|
|
36
|
-
address: string;
|
|
37
|
-
values: string[];
|
|
38
|
-
} | {
|
|
39
|
-
type: "ERC721";
|
|
40
|
-
address: string;
|
|
41
|
-
tokenIds: string[];
|
|
42
|
-
} | {
|
|
43
|
-
type: "ERC1155";
|
|
44
|
-
address: string;
|
|
45
|
-
tokenIds: string[];
|
|
46
|
-
values: string[];
|
|
47
|
-
})[];
|
|
48
|
-
fractions: {
|
|
49
|
-
name: string;
|
|
50
|
-
symbol: string;
|
|
51
|
-
amount: string;
|
|
52
|
-
};
|
|
53
|
-
timeBoundary: {
|
|
54
|
-
start: string;
|
|
55
|
-
end: string;
|
|
56
|
-
};
|
|
57
|
-
cap: {
|
|
58
|
-
soft: string;
|
|
59
|
-
hard: string;
|
|
60
|
-
softPerAccount?: string | undefined;
|
|
61
|
-
hardPerAccount?: string | undefined;
|
|
62
|
-
};
|
|
63
|
-
funding: {
|
|
64
|
-
token: string;
|
|
65
|
-
amountPerPacket: string;
|
|
66
|
-
}[];
|
|
67
|
-
amountOfPacketsPerFraction: string;
|
|
68
|
-
refundAddress: string;
|
|
69
|
-
vesting?: {
|
|
70
|
-
cliff: string;
|
|
71
|
-
totalVestingPeriod: number;
|
|
72
|
-
portionPeriod: number;
|
|
73
|
-
} | undefined;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
output: {
|
|
77
|
-
data: `0x${string}`;
|
|
78
|
-
to: `0x${string}`;
|
|
79
|
-
details: {
|
|
80
|
-
functionName: string;
|
|
81
|
-
address: `0x${string}`;
|
|
82
|
-
abi: any[];
|
|
83
|
-
args: any[];
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
outputFormat: "json";
|
|
87
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
}, "/nftFractions"> | import("hono/types").MergeSchemaPath<{
|
|
91
|
-
"/": {
|
|
92
|
-
$get: {
|
|
93
|
-
input: {
|
|
94
|
-
query: {
|
|
95
|
-
chainId: string | string[];
|
|
96
|
-
hash: string | string[];
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
output: {
|
|
100
|
-
campaignId: string;
|
|
101
|
-
creator: `0x${string}`;
|
|
102
|
-
nftId: string;
|
|
103
|
-
fractionsCreated: string;
|
|
104
|
-
fractionsAddress: `0x${string}`;
|
|
105
|
-
vaultAddress: `0x${string}` | undefined;
|
|
106
|
-
};
|
|
107
|
-
outputFormat: "json";
|
|
108
|
-
status: 200;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
}, "/getFractionsCreatedEvent">, "/", "/">>;
|
|
112
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/sales/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAO1B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createController } from "../../../common/controller.js";
|
|
2
|
-
import { PurchaseV0 } from "../../../fractions/sales/purchase.route.js";
|
|
3
|
-
import { CreateNftFractionsV0 } from "./createNftFractions.routes.js";
|
|
4
|
-
import { ParseNextFractionsCreatedEventV0 } from "./parseFractionsCreatedEvent.js";
|
|
5
|
-
export const SalesController = createController({
|
|
6
|
-
build: (factory) => factory
|
|
7
|
-
.createApp()
|
|
8
|
-
.route("/nftFractions", CreateNftFractionsV0.build(factory))
|
|
9
|
-
.route("/getFractionsCreatedEvent", ParseNextFractionsCreatedEventV0.build(factory))
|
|
10
|
-
.route("/purchase", PurchaseV0.build(factory)),
|
|
11
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const ParseNextFractionsCreatedEventV0: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
|
|
2
|
-
"/": {
|
|
3
|
-
$get: {
|
|
4
|
-
input: {
|
|
5
|
-
query: {
|
|
6
|
-
chainId: string | string[];
|
|
7
|
-
hash: string | string[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
output: {
|
|
11
|
-
campaignId: string;
|
|
12
|
-
creator: `0x${string}`;
|
|
13
|
-
nftId: string;
|
|
14
|
-
fractionsCreated: string;
|
|
15
|
-
fractionsAddress: `0x${string}`;
|
|
16
|
-
vaultAddress: `0x${string}` | undefined;
|
|
17
|
-
};
|
|
18
|
-
outputFormat: "json";
|
|
19
|
-
status: 200;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}, "/", "/">>;
|
|
23
|
-
//# sourceMappingURL=parseFractionsCreatedEvent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseFractionsCreatedEvent.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/sales/parseFractionsCreatedEvent.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;aAoD3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approveCampaign.routes.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/vestingRedemptionDynamic/approveCampaign.routes.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;aAO5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createCampaign.routes.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/vestingRedemptionDynamic/createCampaign.routes.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA4CnD,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Issuer-provided fee schema for a single fee type.
|
|
4
|
-
*/
|
|
5
|
-
export declare const IssuerFeeSchema: z.ZodObject<{
|
|
6
|
-
collectorAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
7
|
-
proportion: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
/**
|
|
10
|
-
* Request schema for creating a Vesting & Redemption Dynamic campaign.
|
|
11
|
-
*/
|
|
12
|
-
export declare const CreateVestingRedemptionDynamicCampaignRequestSchema: z.ZodObject<{
|
|
13
|
-
chainId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<[z.ZodLiteral<11155111 | 31337 | 84532 | 72080>, z.ZodLiteral<11155111 | 31337 | 84532 | 72080>, ...z.ZodLiteral<11155111 | 31337 | 84532 | 72080>[]]>>;
|
|
14
|
-
market: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
15
|
-
nft: z.ZodObject<{
|
|
16
|
-
contractAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
17
|
-
tokenId: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
fractions: z.ZodObject<{
|
|
20
|
-
name: z.ZodString;
|
|
21
|
-
symbol: z.ZodString;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
refundAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
24
|
-
funding: z.ZodObject<{
|
|
25
|
-
token: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
26
|
-
amountPerPacket: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
startDate: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "ISO", "out">, z.ZodTransform<Date, string & z.core.$brand<"ISO">>>;
|
|
29
|
-
softCapPerPurchase: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
30
|
-
hardCapPerAccount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
31
|
-
fundsReceiver: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
32
|
-
priceSetter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
33
|
-
fundsProvider: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
34
|
-
issuerEntryFee: z.ZodOptional<z.ZodObject<{
|
|
35
|
-
collectorAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
36
|
-
proportion: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
issuerExitFee: z.ZodOptional<z.ZodObject<{
|
|
39
|
-
collectorAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
40
|
-
proportion: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
41
|
-
}, z.core.$strip>>;
|
|
42
|
-
}, z.core.$strip>;
|
|
43
|
-
//# sourceMappingURL=createCampaign.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createCampaign.schema.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/vestingRedemptionDynamic/createCampaign.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,eAAO,MAAM,eAAe;;;iBAM1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0DC,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { AddressSchema, NextFractionsChainId } from "../../../common/index.js";
|
|
3
|
-
import { Int256BigInt } from "../../../common/int256.js";
|
|
4
|
-
import { ISODate } from "../../../common/models/base/date.js";
|
|
5
|
-
/**
|
|
6
|
-
* Issuer-provided fee schema for a single fee type.
|
|
7
|
-
*/
|
|
8
|
-
export const IssuerFeeSchema = z.object({
|
|
9
|
-
collectorAddress: AddressSchema.describe("Address that collects the fee"),
|
|
10
|
-
proportion: Int256BigInt(z.bigint().nonnegative()).describe("Fee proportion in 10^6 fixed-point (e.g. 40000 = 4%, 10000 = 1%). " +
|
|
11
|
-
"The total fee applied = platform-wide fee + this issuer fee."),
|
|
12
|
-
});
|
|
13
|
-
/**
|
|
14
|
-
* Request schema for creating a Vesting & Redemption Dynamic campaign.
|
|
15
|
-
*/
|
|
16
|
-
export const CreateVestingRedemptionDynamicCampaignRequestSchema = z
|
|
17
|
-
.object({
|
|
18
|
-
chainId: NextFractionsChainId.describe("Chain ID where the market is deployed"),
|
|
19
|
-
market: AddressSchema.describe("Address of the deployed Vesting & Redemption Dynamic market"),
|
|
20
|
-
nft: z
|
|
21
|
-
.object({
|
|
22
|
-
contractAddress: AddressSchema.describe("ERC-721 contract address"),
|
|
23
|
-
tokenId: Int256BigInt(z.bigint().nonnegative()).describe("Token ID of the NFT to wrap"),
|
|
24
|
-
})
|
|
25
|
-
.describe("ERC-721 NFT to wrap as the underlying collateral"),
|
|
26
|
-
fractions: z
|
|
27
|
-
.object({
|
|
28
|
-
name: z.string().min(1).describe("ERC-20 fraction token name"),
|
|
29
|
-
symbol: z.string().min(1).max(11).describe("ERC-20 fraction token symbol"),
|
|
30
|
-
})
|
|
31
|
-
.describe("ERC-20 fraction token metadata"),
|
|
32
|
-
refundAddress: AddressSchema.describe("Address that receives refunds if the campaign is incorrectly set up"),
|
|
33
|
-
funding: z
|
|
34
|
-
.object({
|
|
35
|
-
token: AddressSchema.describe("ERC-20 payment token address (must be an accepted funding token of the market)"),
|
|
36
|
-
amountPerPacket: Int256BigInt(z.bigint().positive()).describe("Amount of payment token per funding packet (in raw token units, e.g. 1e6 for 1 USDC with 6 decimals)"),
|
|
37
|
-
})
|
|
38
|
-
.describe("Payment token configuration"),
|
|
39
|
-
startDate: ISODate().describe("Campaign start date in ISO 8601 format. No purchases can be made before this time."),
|
|
40
|
-
softCapPerPurchase: Int256BigInt(z.bigint().positive()).describe("Minimum number of funding packets per single purchase call"),
|
|
41
|
-
hardCapPerAccount: Int256BigInt(z.bigint().positive()).describe("Maximum total funding packets an investor may provide across all purchases"),
|
|
42
|
-
fundsReceiver: AddressSchema.describe("Address that receives the funds provided by investors (the issuer or fund manager wallet)"),
|
|
43
|
-
priceSetter: AddressSchema.describe("Address authorised to call setPrice and advance the epoch"),
|
|
44
|
-
fundsProvider: AddressSchema.describe("Address that must supply withdrawal funds when the price setter advances the epoch. Typically the same as priceSetter."),
|
|
45
|
-
issuerEntryFee: IssuerFeeSchema.optional().describe("Issuer-provided entry fee applied on top of the platform-wide purchase fee"),
|
|
46
|
-
issuerExitFee: IssuerFeeSchema.optional().describe("Issuer-provided exit fee applied on top of the platform-wide withdrawal fee"),
|
|
47
|
-
})
|
|
48
|
-
.openapi("CreateVestingRedemptionDynamicCampaignRequestSchema");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployMarket.routes.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/vestingRedemptionDynamic/deployMarket.routes.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA2BjD,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Request schema for deploying a Vesting & Redemption Dynamic market.
|
|
4
|
-
*/
|
|
5
|
-
export declare const DeployVestingRedemptionDynamicMarketRequestSchema: z.ZodObject<{
|
|
6
|
-
chainId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<[z.ZodLiteral<11155111 | 31337 | 84532 | 72080>, z.ZodLiteral<11155111 | 31337 | 84532 | 72080>, ...z.ZodLiteral<11155111 | 31337 | 84532 | 72080>[]]>>;
|
|
7
|
-
adminAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
8
|
-
ownerAddress: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
|
|
9
|
-
acceptedFundingTokens: z.ZodArray<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
|
|
10
|
-
platformEntryFee: z.ZodOptional<z.ZodObject<{
|
|
11
|
-
collectorAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
12
|
-
basisPoints: z.ZodNumber;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
platformExitFee: z.ZodOptional<z.ZodObject<{
|
|
15
|
-
collectorAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
16
|
-
basisPoints: z.ZodNumber;
|
|
17
|
-
}, z.core.$strip>>;
|
|
18
|
-
receiptNft: z.ZodOptional<z.ZodObject<{
|
|
19
|
-
baseName: z.ZodString;
|
|
20
|
-
baseSymbol: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
//# sourceMappingURL=deployMarket.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployMarket.schema.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/vestingRedemptionDynamic/deployMarket.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB;;GAEG;AACH,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;iBAsBC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { AddressSchema, NextFractionsChainId } from "../../../common/index.js";
|
|
3
|
-
/**
|
|
4
|
-
* Platform-wide fee configuration for a single fee type (entry or exit).
|
|
5
|
-
*/
|
|
6
|
-
const PlatformFeeSchema = z.object({
|
|
7
|
-
collectorAddress: AddressSchema.describe("Address that receives the fee"),
|
|
8
|
-
basisPoints: z.number().int().min(0).max(10000).describe("Fee in basis points (1 = 0.01%, 10000 = 100%)"),
|
|
9
|
-
});
|
|
10
|
-
/**
|
|
11
|
-
* Request schema for deploying a Vesting & Redemption Dynamic market.
|
|
12
|
-
*/
|
|
13
|
-
export const DeployVestingRedemptionDynamicMarketRequestSchema = z
|
|
14
|
-
.object({
|
|
15
|
-
chainId: NextFractionsChainId.describe("Chain ID where the market will be deployed"),
|
|
16
|
-
adminAddress: AddressSchema.describe("Address of the market administrator. Also used as the approval authority for campaigns."),
|
|
17
|
-
ownerAddress: AddressSchema.optional().describe("Diamond owner address. Defaults to adminAddress if not provided."),
|
|
18
|
-
acceptedFundingTokens: z.array(AddressSchema).nonempty().describe("ERC-20 token addresses accepted as payment."),
|
|
19
|
-
platformEntryFee: PlatformFeeSchema.optional().describe("Platform-wide entry fee applied to all purchase transactions."),
|
|
20
|
-
platformExitFee: PlatformFeeSchema.optional().describe("Platform-wide exit fee applied to all epoch price updates (withdrawals)."),
|
|
21
|
-
receiptNft: z
|
|
22
|
-
.object({
|
|
23
|
-
baseName: z.string().min(1).describe("Base name for receipt NFTs (used for purchase and withdrawal receipts)"),
|
|
24
|
-
baseSymbol: z.string().min(1).max(11).describe("Base symbol for receipt NFTs"),
|
|
25
|
-
})
|
|
26
|
-
.optional()
|
|
27
|
-
.describe("Custom receipt NFT metadata. Defaults to 'VRD Receipt' / 'VRD'."),
|
|
28
|
-
})
|
|
29
|
-
.openapi("DeployVestingRedemptionDynamicMarketRequestSchema");
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export declare const EpochPurchaseV0: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
|
|
2
|
-
"/": {
|
|
3
|
-
$post: {
|
|
4
|
-
input: {
|
|
5
|
-
json: {
|
|
6
|
-
market: string;
|
|
7
|
-
campaignId: string;
|
|
8
|
-
amountToProvide: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
output: {
|
|
12
|
-
data: `0x${string}`;
|
|
13
|
-
to: `0x${string}`;
|
|
14
|
-
details: {
|
|
15
|
-
functionName: string;
|
|
16
|
-
address: `0x${string}`;
|
|
17
|
-
abi: any[];
|
|
18
|
-
args: any[];
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
outputFormat: "json";
|
|
22
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
}, "/", "/">>;
|
|
26
|
-
export declare const ExchangeNftForFractionsV0: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
|
|
27
|
-
"/": {
|
|
28
|
-
$post: {
|
|
29
|
-
input: {
|
|
30
|
-
json: {
|
|
31
|
-
market: string;
|
|
32
|
-
campaignId: string;
|
|
33
|
-
nftId: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
output: {
|
|
37
|
-
data: `0x${string}`;
|
|
38
|
-
to: `0x${string}`;
|
|
39
|
-
details: {
|
|
40
|
-
functionName: string;
|
|
41
|
-
address: `0x${string}`;
|
|
42
|
-
abi: any[];
|
|
43
|
-
args: any[];
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
outputFormat: "json";
|
|
47
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
}, "/", "/">>;
|
|
51
|
-
//# sourceMappingURL=epochPurchase.routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"epochPurchase.routes.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/vestingRedemptionDynamic/epochPurchase.routes.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;aAO1B,CAAC;AAkCH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;aAOpC,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
import { buildEpochPurchaseTx, buildExchangeNftForFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
|
-
import { createController } from "../../../common/controller.js";
|
|
6
|
-
import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
7
|
-
import { Int256BigInt } from "../../../common/int256.js";
|
|
8
|
-
// ─────────────────────────────── Purchase (step 1) ───────────────────────────
|
|
9
|
-
const EpochPurchaseRequestSchema = z
|
|
10
|
-
.object({
|
|
11
|
-
market: AddressSchema.describe("Address of the Vesting & Redemption Dynamic market"),
|
|
12
|
-
campaignId: Int256BigInt(z.bigint().nonnegative()).describe("Campaign ID"),
|
|
13
|
-
amountToProvide: Int256BigInt(z.bigint().positive()).describe("Number of funding packets to provide (must satisfy softCapPerPurchase ≤ value ≤ remaining hardCapPerAccount). " +
|
|
14
|
-
"The market transfers amountToProvide × amountPerPacket tokens from the caller."),
|
|
15
|
-
})
|
|
16
|
-
.openapi("EpochPurchaseRequestSchema");
|
|
17
|
-
const purchaseRoute = describeRoute({
|
|
18
|
-
summary: "Purchase step 1 — provide funds and receive receipt NFT",
|
|
19
|
-
description: "Returns transaction data for the first step of the two-click epoch purchase flow. " +
|
|
20
|
-
"The investor provides funding packets and receives a purchase receipt NFT. " +
|
|
21
|
-
"Prerequisites: investor must hold the INVESTOR role, and must have approved " +
|
|
22
|
-
"the market to spend their ERC-20 payment tokens.",
|
|
23
|
-
tags: ["Vesting & Redemption Dynamic"],
|
|
24
|
-
responses: {
|
|
25
|
-
200: {
|
|
26
|
-
description: "Returns transaction data for the epoch purchase",
|
|
27
|
-
content: {
|
|
28
|
-
"application/json": {
|
|
29
|
-
schema: resolver(TransactionSchema),
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
export const EpochPurchaseV0 = createController({
|
|
36
|
-
build: (factory) => factory.createApp().post("/", purchaseRoute, validator("json", EpochPurchaseRequestSchema), async (c) => {
|
|
37
|
-
const { market, campaignId, amountToProvide } = c.req.valid("json");
|
|
38
|
-
const tx = buildEpochPurchaseTx({ market, campaignId, amountToProvide });
|
|
39
|
-
return c.json(toTransaction(tx));
|
|
40
|
-
}),
|
|
41
|
-
});
|
|
42
|
-
// ──────────────────────────── Exchange NFT for Fractions (step 2) ────────────
|
|
43
|
-
const ExchangeNftForFractionsRequestSchema = z
|
|
44
|
-
.object({
|
|
45
|
-
market: AddressSchema.describe("Address of the Vesting & Redemption Dynamic market"),
|
|
46
|
-
campaignId: Int256BigInt(z.bigint().nonnegative()).describe("Campaign ID"),
|
|
47
|
-
nftId: Int256BigInt(z.bigint().nonnegative()).describe("ID of the purchase receipt NFT (emitted in the NftPurchased event from step 1)"),
|
|
48
|
-
})
|
|
49
|
-
.openapi("ExchangeNftForFractionsRequestSchema");
|
|
50
|
-
const exchangeRoute = describeRoute({
|
|
51
|
-
summary: "Purchase step 2 — burn receipt NFT and receive ERC-20 fractions",
|
|
52
|
-
description: "Returns transaction data for the second step of the two-click epoch purchase flow. " +
|
|
53
|
-
"The investor burns their purchase receipt NFT and receives ERC-20 fractions priced at epoch N+1, " +
|
|
54
|
-
"where N is the epoch in which the receipt was minted. " +
|
|
55
|
-
"This can only be called after the price setter has advanced the epoch at least once since the purchase.",
|
|
56
|
-
tags: ["Vesting & Redemption Dynamic"],
|
|
57
|
-
responses: {
|
|
58
|
-
200: {
|
|
59
|
-
description: "Returns transaction data for the NFT exchange",
|
|
60
|
-
content: {
|
|
61
|
-
"application/json": {
|
|
62
|
-
schema: resolver(TransactionSchema),
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
export const ExchangeNftForFractionsV0 = createController({
|
|
69
|
-
build: (factory) => factory.createApp().post("/", exchangeRoute, validator("json", ExchangeNftForFractionsRequestSchema), async (c) => {
|
|
70
|
-
const { market, campaignId, nftId } = c.req.valid("json");
|
|
71
|
-
const tx = buildExchangeNftForFractionsTx({ market, campaignId, nftId });
|
|
72
|
-
return c.json(toTransaction(tx));
|
|
73
|
-
}),
|
|
74
|
-
});
|