@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,4 +1,4 @@
|
|
|
1
|
-
export declare const SearchMarketsV0: import("
|
|
1
|
+
export declare const SearchMarketsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
2
|
"/": {
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
@@ -8,20 +8,20 @@ export declare const SearchMarketsV0: import("../../../common/controller.js").IC
|
|
|
8
8
|
limit: number;
|
|
9
9
|
};
|
|
10
10
|
filter: {
|
|
11
|
-
chainId?:
|
|
11
|
+
chainId?: "1" | "31337" | "11155111" | "84532" | "72080" | undefined;
|
|
12
12
|
owner?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
output: {
|
|
17
|
-
chainId:
|
|
17
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
18
18
|
transactionHash: string;
|
|
19
19
|
template: "unknown" | "default" | "compilot" | "continuous-withdrawal" | "continuous-withdrawal-nid" | "lending";
|
|
20
20
|
contractAddress: string;
|
|
21
21
|
adminAddress: string;
|
|
22
22
|
wrapperAddress: string | null;
|
|
23
23
|
burnAsset: {
|
|
24
|
-
chainId:
|
|
24
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
25
25
|
address: string;
|
|
26
26
|
type: string;
|
|
27
27
|
symbol: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchMarkets.d.ts","sourceRoot":"","sources":["../../../src/fractions/markets/searchMarkets.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAqD1B,CAAC"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { and, eq } from "@ponder/client";
|
|
2
2
|
import { describeRoute } from "hono-openapi";
|
|
3
3
|
import { resolver, validator } from "hono-openapi";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { FractionsMarketSchema, mapToFractionsMarket } from "../common/platform.js";
|
|
11
|
-
const tag = createTag("Markets");
|
|
4
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
5
|
+
import { FractionsMarketSchema, mapToFractionsMarket, marketsTag } from "./utils.js";
|
|
6
|
+
import { createController } from "../../common/controller.js";
|
|
7
|
+
import { AddressSchema, FractionsChainId } from "../../common/index.js";
|
|
8
|
+
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
9
|
+
import { PageSchema } from "../../common/models/page.js";
|
|
12
10
|
export const SearchMarketsV0 = createController({
|
|
13
11
|
build: (factory) => factory.createApp().post("/", describeRoute({
|
|
14
12
|
summary: "Search markets",
|
|
15
13
|
description: "Retrieve a list of markets with filtering and sorting",
|
|
16
|
-
tags: [
|
|
14
|
+
tags: [marketsTag.tag],
|
|
17
15
|
responses: {
|
|
18
16
|
200: {
|
|
19
17
|
description: "Returns list of platforms by specified filter",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { indexerSchemas } from "
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
3
3
|
export declare const FractionsMarketSchema: z.ZodObject<{
|
|
4
|
-
chainId: z.
|
|
4
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
5
5
|
transactionHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
6
6
|
template: z.ZodEnum<{
|
|
7
7
|
unknown: "unknown";
|
|
@@ -15,7 +15,7 @@ export declare const FractionsMarketSchema: z.ZodObject<{
|
|
|
15
15
|
adminAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
16
16
|
wrapperAddress: z.ZodNullable<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
|
|
17
17
|
burnAsset: z.ZodNullable<z.ZodObject<{
|
|
18
|
-
chainId: z.
|
|
18
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
19
19
|
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
20
20
|
type: z.ZodString;
|
|
21
21
|
symbol: z.ZodString;
|
|
@@ -25,8 +25,11 @@ export declare const FractionsMarketSchema: z.ZodObject<{
|
|
|
25
25
|
burnable: z.ZodDefault<z.ZodBoolean>;
|
|
26
26
|
}, z.core.$strip>>;
|
|
27
27
|
feesBps: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
createdAt: z.core.$ZodBranded<z.ZodString, "
|
|
29
|
-
updatedAt: z.core.$ZodBranded<z.ZodString, "
|
|
28
|
+
createdAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
|
|
29
|
+
updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
|
|
30
30
|
}, z.core.$strip>;
|
|
31
31
|
export declare function mapToFractionsMarket(diamond: typeof indexerSchemas.fractions.fractionsMarkets.$inferSelect, burnAsset: typeof indexerSchemas.assets.$inferSelect | null): z.input<typeof FractionsMarketSchema>;
|
|
32
|
-
|
|
32
|
+
export declare const marketsTag: {
|
|
33
|
+
tag: "Markets";
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/fractions/markets/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAWxD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAG7D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAaL,CAAC;AAE9B,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,cAAc,CAAC,SAAS,CAAC,gBAAgB,CAAC,YAAY,EACtE,SAAS,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC,YAAY,GAAG,IAAI,GAC1D,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAavC;AAED,eAAO,MAAM,UAAU;;CAAuB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
import { toISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
3
|
+
import { ISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
4
|
+
import { AddressSchema, AssetSchema, FractionsChainId, FractionsMarketTemplateSchema, HashSchema, } from "../../common/index.js";
|
|
5
|
+
import { createTag } from "../../common/tag.js";
|
|
5
6
|
export const FractionsMarketSchema = z
|
|
6
7
|
.object({
|
|
7
8
|
chainId: FractionsChainId,
|
|
@@ -18,7 +19,7 @@ export const FractionsMarketSchema = z
|
|
|
18
19
|
.openapi("FractionsMarket");
|
|
19
20
|
export function mapToFractionsMarket(diamond, burnAsset) {
|
|
20
21
|
return {
|
|
21
|
-
chainId: diamond.chainId
|
|
22
|
+
chainId: `${diamond.chainId}`,
|
|
22
23
|
transactionHash: diamond.transactionHash,
|
|
23
24
|
template: FractionsMarketTemplateSchema.parse(diamond.template),
|
|
24
25
|
contractAddress: diamond.contractAddress,
|
|
@@ -30,3 +31,4 @@ export function mapToFractionsMarket(diamond, burnAsset) {
|
|
|
30
31
|
updatedAt: toISOJson(diamond.updatedAt),
|
|
31
32
|
};
|
|
32
33
|
}
|
|
34
|
+
export const marketsTag = createTag("Markets");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const GetFractionsRolesV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context
|
|
1
|
+
export declare const GetFractionsRolesV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
|
|
2
2
|
"/": {
|
|
3
3
|
$get: {
|
|
4
4
|
input: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRoles.d.ts","sourceRoot":"","sources":["../../../src/fractions/roles/getRoles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getRoles.d.ts","sourceRoot":"","sources":["../../../src/fractions/roles/getRoles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;aAqB9B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver } from "hono-openapi";
|
|
3
|
-
import { z } from "zod";
|
|
4
3
|
import { FractionsRole, getFractionsRole } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
6
|
import { RoleSchema } from "../../staking/roles/common/role.js";
|
|
7
7
|
export const GetFractionsRolesV0 = createController({
|
|
@@ -3,7 +3,6 @@ export declare const GrantFractionsRoleV0: import("../../common/controller.js").
|
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
5
5
|
json: {
|
|
6
|
-
chainId: unknown;
|
|
7
6
|
marketAddress: string;
|
|
8
7
|
users: string[];
|
|
9
8
|
role: import("@evergonlabs/tmi-protocol-fractions-sdk").RoleTypeEnum;
|
|
@@ -24,4 +23,4 @@ export declare const GrantFractionsRoleV0: import("../../common/controller.js").
|
|
|
24
23
|
};
|
|
25
24
|
};
|
|
26
25
|
}, "/", "/">>;
|
|
27
|
-
//# sourceMappingURL=grantRole.
|
|
26
|
+
//# sourceMappingURL=grantRole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grantRole.d.ts","sourceRoot":"","sources":["../../../src/fractions/roles/grantRole.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;aAmB/B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildGrantRoleTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { GrantMarketRoleRequestSchema } from "../schemas.js";
|
|
4
5
|
import { createController } from "../../common/controller.js";
|
|
5
6
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
6
|
-
import { GrantMarketRoleRequestSchema } from "./grantRole.schema.js";
|
|
7
7
|
const route = describeRoute({
|
|
8
8
|
summary: "Grant a role",
|
|
9
9
|
description: "Returns transaction data for granting a role in a market",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fractions/roles/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fractions/roles/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAM1B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createController } from "../../common/controller.js";
|
|
2
1
|
import { GetFractionsRolesV0 } from "./getRoles.js";
|
|
3
|
-
import { GrantFractionsRoleV0 } from "./grantRole.
|
|
2
|
+
import { GrantFractionsRoleV0 } from "./grantRole.js";
|
|
3
|
+
import { createController } from "../../common/controller.js";
|
|
4
4
|
export const RolesController = createController({
|
|
5
5
|
build: (factory) => factory
|
|
6
6
|
.createApp()
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import { FractionSaleEventEnum, FractionSaleStatusEnum } from "@evergonlabs/tmi-protocol-indexer/schema";
|
|
2
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
3
3
|
export declare const FractionActivityEntrySchema: z.ZodObject<{
|
|
4
|
-
chainId: z.
|
|
4
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
5
5
|
platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
6
6
|
campaignId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
7
7
|
transactionHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
8
8
|
from: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
9
|
-
createdAt: z.core.$ZodBranded<z.ZodString, "
|
|
10
|
-
updatedAt: z.core.$ZodBranded<z.ZodString, "
|
|
9
|
+
createdAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
|
|
10
|
+
updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
|
|
11
11
|
metadata: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12
12
|
type: z.ZodLiteral<FractionSaleEventEnum.CREATED>;
|
|
13
13
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityUtils.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/activityUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"activityUtils.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/activityUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AACzG,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAiExD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYT,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import { FractionSaleEventEnum, FractionSaleStatusEnum } from "@evergonlabs/tmi-protocol-indexer/schema";
|
|
2
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
3
|
+
import { ISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
3
4
|
import { AddressSchema, TransactionHashSchema } from "@evergonlabs/tmi-utils/models";
|
|
4
5
|
import { Int256Json } from "@evergonlabs/tmi-utils/models";
|
|
5
6
|
import { FractionsChainId, PlatformContractAddress } from "../../common/index.js";
|
|
6
|
-
import { ISOJson } from "../../common/models/date.js";
|
|
7
7
|
const baseSchema = z.object({
|
|
8
8
|
chainId: FractionsChainId,
|
|
9
9
|
platform: PlatformContractAddress,
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ApproveSaleRequestSchema: z.ZodObject<{
|
|
3
|
-
marketAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
-
campaignId: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
1
|
export declare const ApproveSaleV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
7
2
|
"/": {
|
|
8
3
|
$post: {
|
|
9
4
|
input: {
|
|
10
5
|
json: {
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
campaign: {
|
|
7
|
+
market: string;
|
|
8
|
+
campaignId: string;
|
|
9
|
+
};
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
output: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approveSale.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/approveSale.route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"approveSale.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/approveSale.route.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;aASxB,CAAC"}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
|
-
import { z } from "zod";
|
|
4
3
|
import { buildApproveSaleTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { ApproveSaleRequestSchema } from "../schemas.js";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
|
-
import {
|
|
7
|
-
import { Int256BigInt } from "../../common/int256.js";
|
|
8
|
-
export const ApproveSaleRequestSchema = z.object({
|
|
9
|
-
marketAddress: AddressSchema,
|
|
10
|
-
campaignId: Int256BigInt(z.bigint().nonnegative()),
|
|
11
|
-
});
|
|
6
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
12
7
|
const route = describeRoute({
|
|
13
8
|
summary: "Approve a sale",
|
|
14
9
|
description: "Returns transaction data for approving a sale",
|
|
@@ -28,8 +23,8 @@ export const ApproveSaleV0 = createController({
|
|
|
28
23
|
build: (factory) => factory
|
|
29
24
|
.createApp()
|
|
30
25
|
.post("/", route, validator("json", ApproveSaleRequestSchema.openapi("ApproveSaleRequestSchema")), async (c) => {
|
|
31
|
-
const
|
|
32
|
-
const tx = buildApproveSaleTx(
|
|
26
|
+
const config = c.req.valid("json");
|
|
27
|
+
const tx = buildApproveSaleTx(config);
|
|
33
28
|
return c.json(toTransaction(tx));
|
|
34
29
|
}),
|
|
35
30
|
});
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ApproveWrapperRequestSchema: z.ZodObject<{
|
|
3
|
-
marketAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
-
wrapperAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
1
|
export declare const ApproveWrapperV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
7
2
|
"/": {
|
|
8
3
|
$post: {
|
|
9
4
|
input: {
|
|
10
5
|
json: {
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
market: string;
|
|
7
|
+
wrapper: string;
|
|
13
8
|
};
|
|
14
9
|
};
|
|
15
10
|
output: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approveWrapper.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/approveWrapper.route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"approveWrapper.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/approveWrapper.route.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;aAc3B,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
|
-
import { z } from "zod";
|
|
4
3
|
import { buildApproveWrapperTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { ApproveWrapperConfigSchema } from "../schemas.js";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
|
-
import {
|
|
7
|
-
export const ApproveWrapperRequestSchema = z.object({
|
|
8
|
-
marketAddress: AddressSchema,
|
|
9
|
-
wrapperAddress: AddressSchema,
|
|
10
|
-
});
|
|
6
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
11
7
|
const route = describeRoute({
|
|
12
8
|
summary: "Approve a wrapper",
|
|
13
9
|
description: "Returns transaction data for approving a wrapper",
|
|
@@ -26,9 +22,9 @@ const route = describeRoute({
|
|
|
26
22
|
export const ApproveWrapperV0 = createController({
|
|
27
23
|
build: (factory) => factory
|
|
28
24
|
.createApp()
|
|
29
|
-
.post("/", route, validator("json",
|
|
30
|
-
const
|
|
31
|
-
const tx = buildApproveWrapperTx(
|
|
25
|
+
.post("/", route, validator("json", ApproveWrapperConfigSchema.openapi("ApproveWrapperConfigSchema")), async (c) => {
|
|
26
|
+
const config = c.req.valid("json");
|
|
27
|
+
const tx = buildApproveWrapperTx(config);
|
|
32
28
|
return c.json(toTransaction(tx));
|
|
33
29
|
}),
|
|
34
30
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
2
|
import { indexerSchemas } from "../../../common/indexer/schemas.js";
|
|
3
3
|
export declare const FractionsSaleSchema: z.ZodObject<{
|
|
4
|
-
chainId: z.
|
|
4
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
5
5
|
platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
6
6
|
campaignId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
7
7
|
nftId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
8
8
|
status: z.ZodEnum<{
|
|
9
|
-
finalized: "finalized";
|
|
10
9
|
created: "created";
|
|
11
10
|
approved: "approved";
|
|
12
11
|
rejected: "rejected";
|
|
12
|
+
finalized: "finalized";
|
|
13
13
|
refunded: "refunded";
|
|
14
14
|
}>;
|
|
15
15
|
owner: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
16
16
|
fractions: z.ZodObject<{
|
|
17
17
|
asset: z.ZodObject<{
|
|
18
|
-
chainId: z.
|
|
18
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
19
19
|
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
20
20
|
type: z.ZodString;
|
|
21
21
|
symbol: z.ZodString;
|
|
@@ -34,17 +34,17 @@ export declare const FractionsSaleSchema: z.ZodObject<{
|
|
|
34
34
|
softCapPerAccount: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
|
|
35
35
|
}, z.core.$strip>>;
|
|
36
36
|
timeline: z.ZodNullable<z.ZodObject<{
|
|
37
|
-
startDate: z.core.$ZodBranded<z.ZodString, "
|
|
38
|
-
endDate: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "
|
|
37
|
+
startDate: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
|
|
38
|
+
endDate: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">>;
|
|
39
39
|
}, z.core.$strip>>;
|
|
40
40
|
vesting: z.ZodNullable<z.ZodObject<{
|
|
41
|
-
cliffDate: z.core.$ZodBranded<z.ZodString, "
|
|
41
|
+
cliffDate: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
|
|
42
42
|
totalVestingPeriod: z.ZodNumber;
|
|
43
43
|
portionPeriod: z.ZodNumber;
|
|
44
44
|
}, z.core.$strip>>;
|
|
45
45
|
wrappedAssets: z.ZodArray<z.ZodObject<{
|
|
46
46
|
asset: z.ZodObject<{
|
|
47
|
-
chainId: z.
|
|
47
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
48
48
|
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
49
49
|
type: z.ZodString;
|
|
50
50
|
symbol: z.ZodString;
|
|
@@ -57,7 +57,7 @@ export declare const FractionsSaleSchema: z.ZodObject<{
|
|
|
57
57
|
}, z.core.$strip>>;
|
|
58
58
|
fundingAssets: z.ZodArray<z.ZodObject<{
|
|
59
59
|
asset: z.ZodObject<{
|
|
60
|
-
chainId: z.
|
|
60
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
61
61
|
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
62
62
|
type: z.ZodString;
|
|
63
63
|
symbol: z.ZodString;
|
|
@@ -69,8 +69,8 @@ export declare const FractionsSaleSchema: z.ZodObject<{
|
|
|
69
69
|
amountPerPacket: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
70
70
|
}, z.core.$strip>>;
|
|
71
71
|
transactionHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
72
|
-
createdAt: z.core.$ZodBranded<z.ZodString, "
|
|
73
|
-
updatedAt: z.core.$ZodBranded<z.ZodString, "
|
|
72
|
+
createdAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
|
|
73
|
+
updatedAt: z.core.$ZodBranded<z.ZodString, "IsoDateString", "out">;
|
|
74
74
|
}, z.core.$strip>;
|
|
75
75
|
export declare function toFractionsSale(raw: typeof indexerSchemas.fractions.fractionsSales.$inferSelect, fractionsAsset: typeof indexerSchemas.assets.$inferSelect, wrappedAssets: any[], fundingAssets: any[]): z.input<typeof FractionsSaleSchema>;
|
|
76
76
|
//# sourceMappingURL=fractionsSale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionsSale.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/common/fractionsSale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fractionsSale.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/common/fractionsSale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAaxD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoDL,CAAC;AAE5B,wBAAgB,eAAe,CAC7B,GAAG,EAAE,OAAO,cAAc,CAAC,SAAS,CAAC,cAAc,CAAC,YAAY,EAChE,cAAc,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC,YAAY,EAEzD,aAAa,EAAE,GAAG,EAAE,EACpB,aAAa,EAAE,GAAG,EAAE,GACnB,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CA6BrC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
import { toISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
3
|
+
import { ISOJson } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
4
|
import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
3
5
|
import { AddressSchema, AssetSchema, FractionsChainId, FractionsSaleStatusSchema, HashSchema, PlatformContractAddress, } from "../../../common/index.js";
|
|
4
|
-
import { toISOJson } from "../../../common/models/base/date.js";
|
|
5
|
-
import { ISOJson } from "../../../common/models/date.js";
|
|
6
6
|
export const FractionsSaleSchema = z
|
|
7
7
|
.object({
|
|
8
8
|
chainId: FractionsChainId,
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const CompleteSaleRequestSchema: z.ZodObject<{
|
|
3
|
-
marketAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
-
campaignId: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
1
|
export declare const CompleteSaleV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
7
2
|
"/": {
|
|
8
3
|
$post: {
|
|
9
4
|
input: {
|
|
10
5
|
json: {
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
campaign: {
|
|
7
|
+
market: string;
|
|
8
|
+
campaignId: string;
|
|
9
|
+
};
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
output: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completeSale.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/completeSale.route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"completeSale.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/completeSale.route.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;aAUzB,CAAC"}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
|
-
import { z } from "zod";
|
|
4
3
|
import { buildFinishSaleTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { FinishSaleRequestSchema } from "../schemas.js";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
|
-
import {
|
|
7
|
-
import { Int256BigInt } from "../../common/int256.js";
|
|
8
|
-
export const CompleteSaleRequestSchema = z.object({
|
|
9
|
-
marketAddress: AddressSchema,
|
|
10
|
-
campaignId: Int256BigInt(z.bigint().nonnegative()),
|
|
11
|
-
});
|
|
6
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
12
7
|
const route = describeRoute({
|
|
13
8
|
summary: "Complete a sale",
|
|
14
9
|
description: "Returns transaction data for completing a sale",
|
|
@@ -27,9 +22,9 @@ const route = describeRoute({
|
|
|
27
22
|
export const CompleteSaleV0 = createController({
|
|
28
23
|
build: (factory) => factory
|
|
29
24
|
.createApp()
|
|
30
|
-
.post("/", route, validator("json",
|
|
31
|
-
const
|
|
32
|
-
const tx = buildFinishSaleTx(
|
|
25
|
+
.post("/", route, validator("json", FinishSaleRequestSchema.openapi("FinishSaleRequestSchema")), async (c) => {
|
|
26
|
+
const config = c.req.valid("json");
|
|
27
|
+
const tx = buildFinishSaleTx(config);
|
|
33
28
|
return c.json(toTransaction(tx));
|
|
34
29
|
}),
|
|
35
30
|
});
|
|
@@ -3,13 +3,12 @@ export declare const CreateFractionsV0: import("../../common/controller.js").ICo
|
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
5
5
|
json: {
|
|
6
|
-
chainId:
|
|
6
|
+
chainId: number;
|
|
7
7
|
market: string;
|
|
8
8
|
fractions: {
|
|
9
9
|
symbol: string;
|
|
10
10
|
name: string;
|
|
11
11
|
amount: string;
|
|
12
|
-
token?: string | undefined;
|
|
13
12
|
};
|
|
14
13
|
timeBoundary: {
|
|
15
14
|
start: string;
|
|
@@ -44,7 +43,7 @@ export declare const CreateFractionsV0: import("../../common/controller.js").ICo
|
|
|
44
43
|
discounts?: {
|
|
45
44
|
burnableTokenAddress: string;
|
|
46
45
|
amountToBurn: string;
|
|
47
|
-
percentDiscount:
|
|
46
|
+
percentDiscount: string;
|
|
48
47
|
} | undefined;
|
|
49
48
|
vesting?: {
|
|
50
49
|
cliff: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createFractions.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/createFractions.route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createFractions.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/createFractions.route.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiD5B,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildCreateFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { CreateFractionsRequestSchema } from "../schemas.js";
|
|
4
5
|
import { createController } from "../../common/controller.js";
|
|
5
6
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
6
|
-
import { CreateFractionsRequestSchema, createWrapped } from "./createFractions.schema.js";
|
|
7
7
|
const route = describeRoute({
|
|
8
8
|
summary: "Create fractions",
|
|
9
9
|
description: "Returns transaction data for creating fractions",
|
|
@@ -24,11 +24,10 @@ export const CreateFractionsV0 = createController({
|
|
|
24
24
|
.createApp()
|
|
25
25
|
.post("/", route, validator("json", CreateFractionsRequestSchema.openapi("CreateFractionsRequestSchema")), async (c) => {
|
|
26
26
|
const { chainId, market, wrapped, funding, fractions, timeBoundary, cap, vesting, amountOfPacketsPerFraction, refundAddress, discounts, } = c.req.valid("json");
|
|
27
|
-
const wrappedTokens = wrapped.map(createWrapped);
|
|
28
27
|
const fractionsConfig = {
|
|
29
28
|
chainId: chainId,
|
|
30
29
|
market: market,
|
|
31
|
-
wrapped:
|
|
30
|
+
wrapped: wrapped,
|
|
32
31
|
funding: funding,
|
|
33
32
|
fractions: {
|
|
34
33
|
name: fractions.name,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
2
|
export declare const FractionsSaleStatisticSchema: z.ZodObject<{
|
|
3
|
-
chainId: z.
|
|
3
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
4
4
|
platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
5
5
|
campaignId: z.ZodCoercedString<unknown>;
|
|
6
6
|
statistics: z.ZodArray<z.ZodObject<{
|
|
@@ -9,18 +9,18 @@ export declare const FractionsSaleStatisticSchema: z.ZodObject<{
|
|
|
9
9
|
purchases: z.ZodNumber;
|
|
10
10
|
}, z.core.$strip>>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
export declare const GetFractionSaleStatisticsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context
|
|
12
|
+
export declare const GetFractionSaleStatisticsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
|
|
13
13
|
"/": {
|
|
14
14
|
$post: {
|
|
15
15
|
input: {
|
|
16
16
|
json: {
|
|
17
|
-
chainId:
|
|
17
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
18
18
|
platform: string;
|
|
19
19
|
campaignId: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
output: {
|
|
23
|
-
chainId: 1 |
|
|
23
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
24
24
|
platform: `0x${string}`;
|
|
25
25
|
campaignId: string;
|
|
26
26
|
statistics: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFractionSaleStatistics.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/getFractionSaleStatistics.route.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getFractionSaleStatistics.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/getFractionSaleStatistics.route.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAMxD,eAAO,MAAM,4BAA4B;;;;;;;;;iBAaJ,CAAC;AAEtC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;aAkEtC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { and, count, eq, sum } from "@ponder/client";
|
|
2
2
|
import { describeRoute } from "hono-openapi";
|
|
3
3
|
import { resolver, validator } from "hono-openapi";
|
|
4
|
-
import { z } from "zod";
|
|
4
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
6
|
import { CampaignIdSchema, FractionsChainId, PlatformContractAddress } from "../../common/index.js";
|
|
7
7
|
import { indexerSchemas } from "../../common/indexer/schemas.js";
|