@evergonlabs/tmi-protocol-api 0.11.0-rc.3 → 0.11.0-rc.4
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 +473 -232
- package/dist/app.d.ts.map +1 -1
- package/dist/apps.d.ts +1 -1
- package/dist/apps.js +1 -1
- package/dist/client.d.ts +1260 -1103
- package/dist/client.d.ts.map +1 -1
- package/dist/fractions/index.d.ts +84 -100
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/markets/deployMarket.d.ts +1 -1
- package/dist/fractions/markets/deployMarket.d.ts.map +1 -1
- package/dist/fractions/markets/deployMarket.js +5 -5
- package/dist/fractions/markets/getDeployEvent.d.ts +6 -0
- package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -1
- package/dist/fractions/markets/getDeployEvent.js +8 -5
- package/dist/fractions/markets/getMarket.d.ts +5 -0
- package/dist/fractions/markets/getMarket.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket.js +7 -14
- package/dist/fractions/markets/index.d.ts +7 -11
- package/dist/fractions/markets/index.d.ts.map +1 -1
- package/dist/fractions/markets/initCompilot.d.ts +4 -0
- package/dist/fractions/markets/initCompilot.d.ts.map +1 -1
- package/dist/fractions/markets/initCompilot.js +6 -4
- package/dist/fractions/markets/searchMarkets.d.ts +42 -11
- package/dist/fractions/markets/searchMarkets.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets.js +16 -11
- package/dist/fractions/roles/grantRole.d.ts +1 -1
- package/dist/fractions/roles/grantRole.js +1 -1
- package/dist/fractions/sales/{approveSale.route.d.ts → approveSale.d.ts} +2 -2
- package/dist/fractions/sales/approveSale.d.ts.map +1 -0
- package/dist/fractions/sales/{approveSale.route.js → approveSale.js} +1 -1
- package/dist/fractions/sales/{approveWrapper.route.d.ts → approveWrapper.d.ts} +2 -2
- package/dist/fractions/sales/approveWrapper.d.ts.map +1 -0
- package/dist/fractions/sales/{approveWrapper.route.js → approveWrapper.js} +1 -1
- package/dist/fractions/sales/{completeSale.route.d.ts → completeSale.d.ts} +2 -2
- package/dist/fractions/sales/completeSale.d.ts.map +1 -0
- package/dist/fractions/sales/{completeSale.route.js → completeSale.js} +1 -1
- package/dist/fractions/sales/{createFractions.route.d.ts → createFractions.d.ts} +2 -2
- package/dist/fractions/sales/createFractions.d.ts.map +1 -0
- package/dist/fractions/sales/{createFractions.route.js → createFractions.js} +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.d.ts +47 -0
- package/dist/fractions/sales/getFractionSaleStatistics.d.ts.map +1 -0
- package/dist/fractions/sales/{getFractionSaleStatistics.route.js → getFractionSaleStatistics.js} +32 -18
- package/dist/fractions/sales/getVaultAddress.d.ts +10 -1
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
- package/dist/fractions/sales/getVaultAddress.js +11 -7
- package/dist/fractions/sales/getWithdrawEvent.d.ts +4 -3
- package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -1
- package/dist/fractions/sales/getWithdrawEvent.js +8 -13
- package/dist/fractions/sales/index.d.ts +50 -62
- package/dist/fractions/sales/index.d.ts.map +1 -1
- package/dist/fractions/sales/index.js +16 -16
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts +13 -4
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -1
- package/dist/fractions/sales/parseFractionsCreatedEvent.js +20 -22
- package/dist/fractions/sales/{purchase.route.d.ts → purchase.d.ts} +2 -2
- package/dist/fractions/sales/purchase.d.ts.map +1 -0
- package/dist/fractions/sales/{purchase.route.js → purchase.js} +1 -1
- package/dist/fractions/sales/{purchaseStatistics.route.d.ts → purchaseStatistics.d.ts} +8 -7
- package/dist/fractions/sales/purchaseStatistics.d.ts.map +1 -0
- package/dist/fractions/sales/{purchaseStatistics.route.js → purchaseStatistics.js} +12 -10
- package/dist/fractions/sales/{receiveFundsAfterNonFunded.route.d.ts → receiveFundsAfterNonFunded.d.ts} +4 -4
- package/dist/fractions/sales/receiveFundsAfterNonFunded.d.ts.map +1 -0
- package/dist/fractions/sales/{receiveFundsAfterNonFunded.route.js → receiveFundsAfterNonFunded.js} +1 -1
- package/dist/fractions/sales/{receiveNonPurchasedWrappedAssets.route.d.ts → receiveNonPurchasedWrappedAssets.d.ts} +1 -1
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.d.ts.map +1 -0
- package/dist/fractions/sales/recoverFractions.d.ts +1 -1
- package/dist/fractions/sales/recoverFractions.js +1 -1
- package/dist/fractions/sales/rejectFractions.d.ts +1 -1
- package/dist/fractions/sales/rejectFractions.js +1 -1
- package/dist/fractions/sales/searchActivity.d.ts +121 -0
- package/dist/fractions/sales/searchActivity.d.ts.map +1 -0
- package/dist/fractions/sales/{searchActivity.route.js → searchActivity.js} +23 -15
- package/dist/fractions/sales/searchSales/searchSales.d.ts +89 -12
- package/dist/fractions/sales/searchSales/searchSales.d.ts.map +1 -1
- package/dist/fractions/sales/searchSales/searchSales.js +17 -12
- package/dist/fractions/sales/searchWithdrawal.d.ts +132 -0
- package/dist/fractions/sales/searchWithdrawal.d.ts.map +1 -0
- package/dist/fractions/sales/{searchWithdrawal.route.js → searchWithdrawal.js} +16 -11
- package/dist/fractions/sales/setFeeCapLimit.d.ts +1 -1
- package/dist/fractions/sales/setFeeCapLimit.js +1 -1
- package/dist/fractions/sales/{unlockWrappedAssets.route.d.ts → unlockWrappedAssets.d.ts} +2 -2
- package/dist/fractions/sales/unlockWrappedAssets.d.ts.map +1 -0
- package/dist/fractions/sales/{unlockWrappedAssets.route.js → unlockWrappedAssets.js} +1 -1
- package/dist/fractions/sales/vesting/{claimStatistics.route.d.ts → claimStatistics.d.ts} +5 -5
- package/dist/fractions/sales/vesting/claimStatistics.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/{claimStatistics.route.js → claimStatistics.js} +6 -6
- package/dist/fractions/sales/vesting/{claimVestedTokens.route.d.ts → claimVestedTokens.d.ts} +1 -1
- package/dist/fractions/sales/vesting/claimVestedTokens.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/{editCliff.route.d.ts → editCliff.d.ts} +1 -1
- package/dist/fractions/sales/vesting/editCliff.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/{editCliff.route.js → editCliff.js} +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts +6 -5
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +11 -16
- package/dist/fractions/sales/{withdraw.route.d.ts → withdraw.d.ts} +2 -2
- package/dist/fractions/sales/withdraw.d.ts.map +1 -0
- package/dist/fractions/sales/{withdraw.route.js → withdraw.js} +1 -1
- package/dist/fractions/schemas.d.ts +16 -5
- package/dist/fractions/schemas.d.ts.map +1 -1
- package/dist/fractions/schemas.js +20 -6
- package/dist/fractions/sig/getAuthData.d.ts +5 -9
- package/dist/fractions/sig/getAuthData.d.ts.map +1 -1
- package/dist/fractions/sig/getAuthData.js +7 -11
- package/dist/fractions/sig/{getNonce.route.d.ts → getNonce.d.ts} +6 -3
- package/dist/fractions/sig/getNonce.d.ts.map +1 -0
- package/dist/fractions/sig/{getNonce.route.js → getNonce.js} +10 -6
- package/dist/fractions/sig/index.d.ts +1 -1
- package/dist/fractions/sig/index.js +1 -1
- package/dist/fractions/statistics/index.d.ts +26 -26
- package/dist/fractions/statistics/index.js +1 -1
- package/dist/fractions/statistics/{networkStatistics.route.d.ts → networkStatistics.d.ts} +27 -27
- package/dist/fractions/statistics/networkStatistics.d.ts.map +1 -0
- package/dist/fractions/statistics/{networkStatistics.route.js → networkStatistics.js} +13 -13
- package/dist/general/common.d.ts +1 -1
- package/dist/general/common.d.ts.map +1 -1
- package/dist/general/common.js +2 -2
- package/dist/general/estimateGas.d.ts +14 -9
- package/dist/general/estimateGas.d.ts.map +1 -1
- package/dist/general/estimateGas.js +26 -27
- package/dist/general/getBalance.d.ts +10 -1
- package/dist/general/getBalance.d.ts.map +1 -1
- package/dist/general/getBalance.js +33 -24
- package/dist/general/getBalancesBatch.d.ts +18 -2
- package/dist/general/getBalancesBatch.d.ts.map +1 -1
- package/dist/general/getBalancesBatch.js +28 -21
- package/dist/general/index.d.ts +9 -10
- package/dist/general/index.d.ts.map +1 -1
- package/dist/general/searchBalances.d.ts +18 -3
- package/dist/general/searchBalances.d.ts.map +1 -1
- package/dist/general/searchBalances.js +24 -4
- package/dist/issuance/erc1155/burn.d.ts +1 -1
- package/dist/issuance/erc1155/burn.d.ts.map +1 -1
- package/dist/issuance/erc1155/burn.js +5 -3
- package/dist/issuance/erc1155/default/deploy.d.ts +1 -1
- package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/deploy.js +5 -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 +5 -3
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts +11 -0
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/parseDeployEvent.js +14 -9
- package/dist/issuance/erc1155/gated/deploy.d.ts +1 -1
- package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/deploy.js +5 -5
- 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 +5 -5
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts +11 -0
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/parseDeployEvent.js +14 -9
- package/dist/issuance/erc1155/getMintedTokenId.d.ts +9 -1
- package/dist/issuance/erc1155/getMintedTokenId.d.ts.map +1 -1
- package/dist/issuance/erc1155/getMintedTokenId.js +16 -8
- 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 +6 -4
- package/dist/issuance/erc1155/index.d.ts +1 -1
- package/dist/issuance/erc1155/mint.d.ts +1 -1
- package/dist/issuance/erc1155/mint.d.ts.map +1 -1
- package/dist/issuance/erc1155/mint.js +5 -3
- package/dist/issuance/erc1155/recover.d.ts +1 -1
- package/dist/issuance/erc1155/recover.d.ts.map +1 -1
- package/dist/issuance/erc1155/recover.js +5 -3
- 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 +6 -4
- 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 +6 -4
- 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 +5 -3
- 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 +5 -3
- package/dist/issuance/erc1155/setTokenURI.d.ts +1 -1
- package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc1155/setTokenURI.js +5 -3
- package/dist/issuance/erc20/approve.d.ts +1 -1
- package/dist/issuance/erc20/approve.d.ts.map +1 -1
- package/dist/issuance/erc20/approve.js +5 -3
- package/dist/issuance/erc20/burn.d.ts +1 -1
- package/dist/issuance/erc20/burn.d.ts.map +1 -1
- package/dist/issuance/erc20/burn.js +5 -3
- package/dist/issuance/erc20/default/deploy.d.ts +1 -1
- package/dist/issuance/erc20/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/default/deploy.js +5 -3
- package/dist/issuance/erc20/default/initialize.d.ts +1 -1
- package/dist/issuance/erc20/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/default/initialize.js +5 -5
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts +14 -1
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/default/parseDeployEvent.js +22 -22
- package/dist/issuance/erc20/gated/deploy.d.ts +1 -1
- 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 +1 -1
- package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/initialize.js +5 -3
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts +14 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.js +28 -24
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts +285 -3
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts +3 -3
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.js +15 -9
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts +8 -0
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.js +11 -6
- 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 +6 -4
- package/dist/issuance/erc20/index.d.ts +289 -7
- package/dist/issuance/erc20/index.d.ts.map +1 -1
- package/dist/issuance/erc20/mint.d.ts +1 -1
- package/dist/issuance/erc20/mint.d.ts.map +1 -1
- package/dist/issuance/erc20/mint.js +5 -3
- package/dist/issuance/erc20/recover.d.ts +1 -1
- package/dist/issuance/erc20/recover.d.ts.map +1 -1
- package/dist/issuance/erc20/recover.js +5 -3
- 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 +6 -4
- 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 +6 -4
- package/dist/issuance/erc20/transfer.d.ts +1 -1
- package/dist/issuance/erc20/transfer.d.ts.map +1 -1
- package/dist/issuance/erc20/transfer.js +5 -3
- package/dist/issuance/erc20/transferFrom.d.ts +1 -1
- package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc20/transferFrom.js +5 -3
- package/dist/issuance/erc721/approve.d.ts +1 -1
- package/dist/issuance/erc721/approve.d.ts.map +1 -1
- package/dist/issuance/erc721/approve.js +5 -3
- package/dist/issuance/erc721/burn.d.ts +1 -1
- package/dist/issuance/erc721/burn.d.ts.map +1 -1
- package/dist/issuance/erc721/burn.js +5 -3
- package/dist/issuance/erc721/default/deploy.d.ts +1 -1
- package/dist/issuance/erc721/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/default/deploy.js +5 -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 +5 -3
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts +13 -0
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/default/parseDeployEvent.js +16 -11
- package/dist/issuance/erc721/gated/deploy.d.ts +1 -1
- package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/deploy.js +5 -5
- 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 +5 -3
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts +13 -0
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/parseDeployEvent.js +16 -11
- package/dist/issuance/erc721/getMintedTokenId.d.ts +8 -0
- package/dist/issuance/erc721/getMintedTokenId.d.ts.map +1 -1
- package/dist/issuance/erc721/getMintedTokenId.js +11 -6
- 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 +6 -4
- 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 +5 -3
- package/dist/issuance/erc721/recover.d.ts +1 -1
- package/dist/issuance/erc721/recover.d.ts.map +1 -1
- package/dist/issuance/erc721/recover.js +5 -3
- 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 +6 -4
- 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 +6 -4
- 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 +5 -3
- package/dist/issuance/erc721/setTokenURI.d.ts +1 -1
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setTokenURI.js +5 -3
- package/dist/issuance/erc721/transferFrom.d.ts +1 -1
- package/dist/issuance/erc721/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc721/transferFrom.js +5 -3
- package/dist/issuance/index.d.ts +292 -10
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/proxy/deploy.d.ts +3 -3
- package/dist/issuance/proxy/deploy.d.ts.map +1 -1
- package/dist/issuance/proxy/deploy.js +5 -3
- package/dist/issuance/proxy/index.d.ts +2 -2
- 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 +5 -3
- package/dist/issuance/schemas.d.ts +52 -42
- package/dist/issuance/schemas.d.ts.map +1 -1
- package/dist/issuance/schemas.js +52 -42
- package/dist/next/app.d.ts +21 -25
- package/dist/next/app.d.ts.map +1 -1
- package/dist/next/client.d.ts +21 -25
- package/dist/next/client.d.ts.map +1 -1
- package/dist/next/lending/buyback.d.ts.map +1 -1
- package/dist/next/lending/buyback.js +1 -1
- package/dist/next/lending/createSale.d.ts.map +1 -1
- package/dist/next/lending/createSale.js +1 -1
- package/dist/next/lending/deployMarket.d.ts.map +1 -1
- package/dist/next/lending/deployMarket.js +1 -1
- package/dist/next/lending/forcefullyUnlockWrappersNft.d.ts +7 -0
- package/dist/next/lending/forcefullyUnlockWrappersNft.d.ts.map +1 -0
- package/dist/next/lending/forcefullyUnlockWrappersNft.js +39 -0
- package/dist/next/lending/index.js +1 -1
- package/dist/next/lending/schemas.d.ts +5 -1
- package/dist/next/lending/schemas.d.ts.map +1 -1
- package/dist/next/lending/schemas.js +5 -3
- package/dist/next/lending/setCollateralPrice.d.ts.map +1 -1
- package/dist/next/lending/setCollateralPrice.js +1 -1
- package/dist/next/nftFractions/createNftFractions.d.ts.map +1 -1
- package/dist/next/nftFractions/createNftFractions.js +4 -2
- package/dist/next/nftFractions/deployNftFractionsMarket.d.ts.map +1 -1
- package/dist/next/nftFractions/deployNftFractionsMarket.js +4 -2
- package/dist/next/nftFractions/deployNftFractionsMarketGated.d.ts.map +1 -1
- package/dist/next/nftFractions/deployNftFractionsMarketGated.js +4 -2
- package/dist/next/nftFractions/index.d.ts +5 -5
- package/dist/next/nftFractions/index.js +1 -1
- package/dist/next/nftFractions/parseNftFractionsCreatedEvent.d.ts +18 -5
- package/dist/next/nftFractions/parseNftFractionsCreatedEvent.d.ts.map +1 -1
- package/dist/next/nftFractions/parseNftFractionsCreatedEvent.js +32 -28
- package/dist/next/nftFractions/schemas.d.ts +4 -1
- package/dist/next/nftFractions/schemas.d.ts.map +1 -1
- package/dist/next/nftFractions/schemas.js +4 -1
- package/dist/next/vestingRedemptionDynamic/approveCampaign.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/approveCampaign.js +1 -1
- package/dist/next/vestingRedemptionDynamic/createCampaign.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/createCampaign.js +1 -1
- package/dist/next/vestingRedemptionDynamic/deployMarket.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/deployMarket.js +1 -1
- package/dist/next/vestingRedemptionDynamic/epochPurchase.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/epochPurchase.js +1 -1
- package/dist/next/vestingRedemptionDynamic/exchangeNftForFractions.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/exchangeNftForFractions.js +1 -1
- package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.d.ts +14 -7
- package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.js +18 -11
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts +6 -2
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.js +5 -5
- package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.d.ts +17 -9
- package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.js +25 -16
- package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.d.ts +6 -2
- package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.js +5 -5
- package/dist/next/vestingRedemptionDynamic/index.d.ts +16 -20
- package/dist/next/vestingRedemptionDynamic/index.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/requestWithdrawal.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/requestWithdrawal.js +1 -1
- package/dist/next/vestingRedemptionDynamic/schemas.d.ts +13 -1
- package/dist/next/vestingRedemptionDynamic/schemas.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/schemas.js +15 -1
- package/dist/next/vestingRedemptionDynamic/setEpochPrice.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/setEpochPrice.js +1 -1
- package/dist/next/vestingRedemptionDynamic/withdrawFunds.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/withdrawFunds.js +1 -1
- package/dist/schemas.d.ts +50 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +62 -0
- package/dist/staking/index.d.ts +60 -84
- package/dist/staking/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform.d.ts +36 -0
- package/dist/staking/platforms/getPlatform.d.ts.map +1 -0
- package/dist/staking/platforms/{getPlatform/v0/getPlatform.js → getPlatform.js} +26 -22
- package/dist/staking/platforms/index.d.ts +10 -14
- package/dist/staking/platforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/index.js +3 -6
- package/dist/staking/platforms/searchPlatforms.d.ts +40 -0
- package/dist/staking/platforms/searchPlatforms.d.ts.map +1 -0
- package/dist/staking/platforms/searchPlatforms.js +50 -0
- package/dist/staking/pools/getPool.d.ts +40 -0
- package/dist/staking/pools/getPool.d.ts.map +1 -0
- package/dist/staking/pools/{getPool/v0/getPool.js → getPool.js} +32 -28
- package/dist/staking/pools/index.d.ts +9 -13
- package/dist/staking/pools/index.d.ts.map +1 -1
- package/dist/staking/pools/index.js +3 -6
- package/dist/staking/pools/searchPools.d.ts +42 -0
- package/dist/staking/pools/searchPools.d.ts.map +1 -0
- package/dist/staking/pools/searchPools.js +50 -0
- package/dist/staking/roles/getRoles.d.ts +28 -0
- package/dist/staking/roles/getRoles.d.ts.map +1 -0
- package/dist/staking/roles/{getRoles/v0/getRoles.js → getRoles.js} +6 -5
- package/dist/staking/roles/grantRole.d.ts +33 -0
- package/dist/staking/roles/grantRole.d.ts.map +1 -0
- package/dist/staking/roles/{grantRole/v0/grantRole.js → grantRole.js} +19 -16
- package/dist/staking/roles/index.d.ts +23 -31
- package/dist/staking/roles/index.d.ts.map +1 -1
- package/dist/staking/roles/index.js +8 -8
- package/dist/staking/roles/searchRoleEvents.d.ts +48 -0
- package/dist/staking/roles/searchRoleEvents.d.ts.map +1 -0
- package/dist/staking/roles/{searchRoleEvents/v0/searchRoleEvents.js → searchRoleEvents.js} +25 -20
- package/dist/staking/roles/searchRoles.d.ts +46 -0
- package/dist/staking/roles/searchRoles.d.ts.map +1 -0
- package/dist/staking/roles/{searchRoles/v0/searchRoles.js → searchRoles.js} +24 -19
- package/dist/staking/stakes/getStake.d.ts +50 -0
- package/dist/staking/stakes/getStake.d.ts.map +1 -0
- package/dist/staking/stakes/{getStake/v0/getStake.js → getStake.js} +32 -28
- package/dist/staking/stakes/index.d.ts +21 -29
- package/dist/staking/stakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/index.js +6 -6
- package/dist/staking/stakes/searchStakeEvents.d.ts +48 -0
- package/dist/staking/stakes/searchStakeEvents.d.ts.map +1 -0
- package/dist/staking/stakes/{searchStakeEvents/v0/searchStakeEvents.js → searchStakeEvents.js} +25 -20
- package/dist/staking/stakes/searchStakes.d.ts +56 -0
- package/dist/staking/stakes/searchStakes.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakes.js +52 -0
- package/dist/stakingTemplates/index.d.ts +28 -28
- package/dist/stakingTemplates/index.d.ts.map +1 -1
- package/dist/stakingTemplates/index.js +6 -6
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts +8 -2
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.js +18 -16
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts +6 -1
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.js +8 -5
- package/dist/stakingTemplates/templates/common/getReward.d.ts +5 -0
- package/dist/stakingTemplates/templates/common/getReward.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getReward.js +7 -4
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts +15 -5
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getStakeEvent.js +21 -10
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts +6 -0
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/partialUnstake.js +10 -7
- package/dist/stakingTemplates/templates/common/unstake.d.ts +5 -0
- package/dist/stakingTemplates/templates/common/unstake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/unstake.js +7 -4
- package/dist/stakingTemplates/templates/reputation/{v0/createPlatform.d.ts → createPlatform.d.ts} +12 -1
- package/dist/stakingTemplates/templates/reputation/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/{v0/createPlatform.js → createPlatform.js} +22 -19
- package/dist/stakingTemplates/templates/reputation/createPool.d.ts +58 -0
- package/dist/stakingTemplates/templates/reputation/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/{v0/createPool.js → createPool.js} +23 -20
- package/dist/stakingTemplates/templates/reputation/index.d.ts +10 -10
- package/dist/stakingTemplates/templates/reputation/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/index.js +24 -3
- package/dist/stakingTemplates/templates/reputation/restake.d.ts +32 -0
- package/dist/stakingTemplates/templates/reputation/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/{v0/restake.js → restake.js} +14 -11
- package/dist/stakingTemplates/templates/{rwa/v0/restake.d.ts → reputation/stake.d.ts} +8 -2
- package/dist/stakingTemplates/templates/reputation/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/{v0/stake.js → stake.js} +15 -16
- package/dist/stakingTemplates/templates/reputationLock/createPlatform.d.ts +42 -0
- package/dist/stakingTemplates/templates/reputationLock/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/{v0/createPlatform.js → createPlatform.js} +22 -19
- package/dist/stakingTemplates/templates/reputationLock/createPool.d.ts +76 -0
- package/dist/stakingTemplates/templates/reputationLock/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/{v0/createPool.js → createPool.js} +28 -25
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts +10 -10
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/index.js +24 -3
- package/dist/stakingTemplates/templates/reputationLock/restake.d.ts +34 -0
- package/dist/stakingTemplates/templates/reputationLock/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/{v0/restake.js → restake.js} +17 -14
- package/dist/stakingTemplates/templates/reputationLock/stake.d.ts +34 -0
- package/dist/stakingTemplates/templates/reputationLock/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/{v0/stake.js → stake.js} +19 -16
- package/dist/stakingTemplates/templates/{reputationLock/v0 → rwa}/createPlatform.d.ts +12 -1
- package/dist/stakingTemplates/templates/rwa/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/createPlatform.js → createPlatform.js} +22 -19
- package/dist/stakingTemplates/templates/rwa/createPool.d.ts +56 -0
- package/dist/stakingTemplates/templates/rwa/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/createPool.js → createPool.js} +21 -18
- package/dist/stakingTemplates/templates/{reputation/v0/stake.d.ts → rwa/distributeRewards.d.ts} +8 -2
- package/dist/stakingTemplates/templates/rwa/distributeRewards.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/distributeRewards.js → distributeRewards.js} +15 -12
- package/dist/stakingTemplates/templates/rwa/index.d.ts +10 -10
- package/dist/stakingTemplates/templates/rwa/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/index.js +26 -3
- package/dist/stakingTemplates/templates/rwa/restake.d.ts +32 -0
- package/dist/stakingTemplates/templates/rwa/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/restake.js → restake.js} +14 -11
- package/dist/stakingTemplates/templates/rwa/stake.d.ts +32 -0
- package/dist/stakingTemplates/templates/rwa/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/stake.js → stake.js} +15 -16
- package/package.json +12 -12
- package/dist/fractions/sales/approveSale.route.d.ts.map +0 -1
- package/dist/fractions/sales/approveWrapper.route.d.ts.map +0 -1
- package/dist/fractions/sales/completeSale.route.d.ts.map +0 -1
- package/dist/fractions/sales/createFractions.route.d.ts.map +0 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +0 -37
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +0 -1
- package/dist/fractions/sales/purchase.route.d.ts.map +0 -1
- package/dist/fractions/sales/purchaseStatistics.route.d.ts.map +0 -1
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +0 -1
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +0 -1
- package/dist/fractions/sales/searchActivity.route.d.ts +0 -71
- package/dist/fractions/sales/searchActivity.route.d.ts.map +0 -1
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +0 -56
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +0 -1
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/editCliff.route.d.ts.map +0 -1
- package/dist/fractions/sales/withdraw.route.d.ts.map +0 -1
- package/dist/fractions/sig/getNonce.route.d.ts.map +0 -1
- package/dist/fractions/statistics/networkStatistics.route.d.ts.map +0 -1
- package/dist/staking/platforms/getPlatform/index.d.ts +0 -23
- package/dist/staking/platforms/getPlatform/index.d.ts.map +0 -1
- package/dist/staking/platforms/getPlatform/index.js +0 -5
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +0 -24
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +0 -1
- package/dist/staking/platforms/searchPlatforms/index.d.ts +0 -29
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +0 -1
- package/dist/staking/platforms/searchPlatforms/index.js +0 -5
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +0 -30
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +0 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +0 -45
- package/dist/staking/pools/getPool/index.d.ts +0 -25
- package/dist/staking/pools/getPool/index.d.ts.map +0 -1
- package/dist/staking/pools/getPool/index.js +0 -5
- package/dist/staking/pools/getPool/v0/getPool.d.ts +0 -26
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +0 -1
- package/dist/staking/pools/searchPools/index.d.ts +0 -30
- package/dist/staking/pools/searchPools/index.d.ts.map +0 -1
- package/dist/staking/pools/searchPools/index.js +0 -5
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +0 -31
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +0 -1
- package/dist/staking/pools/searchPools/v0/searchPools.js +0 -45
- package/dist/staking/roles/getRoles/index.d.ts +0 -23
- package/dist/staking/roles/getRoles/index.d.ts.map +0 -1
- package/dist/staking/roles/getRoles/index.js +0 -5
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts +0 -23
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +0 -1
- package/dist/staking/roles/grantRole/index.d.ts +0 -26
- package/dist/staking/roles/grantRole/index.d.ts.map +0 -1
- package/dist/staking/roles/grantRole/index.js +0 -5
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +0 -26
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +0 -1
- package/dist/staking/roles/searchRoleEvents/index.d.ts +0 -33
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +0 -1
- package/dist/staking/roles/searchRoleEvents/index.js +0 -5
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +0 -34
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +0 -1
- package/dist/staking/roles/searchRoles/index.d.ts +0 -32
- package/dist/staking/roles/searchRoles/index.d.ts.map +0 -1
- package/dist/staking/roles/searchRoles/index.js +0 -5
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +0 -33
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +0 -1
- package/dist/staking/stakes/getStake/index.d.ts +0 -30
- package/dist/staking/stakes/getStake/index.d.ts.map +0 -1
- package/dist/staking/stakes/getStake/index.js +0 -5
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +0 -30
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +0 -33
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakeEvents/index.js +0 -5
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +0 -34
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakes/index.d.ts +0 -37
- package/dist/staking/stakes/searchStakes/index.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakes/index.js +0 -5
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +0 -37
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.js +0 -47
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts +0 -39
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts +0 -243
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputation/v0/index.js +0 -26
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts +0 -26
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts +0 -48
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts +0 -254
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/index.js +0 -26
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts +0 -27
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts +0 -27
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts +0 -31
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts +0 -38
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts +0 -26
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts +0 -266
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/index.js +0 -28
- package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts +0 -26
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts.map +0 -1
- /package/dist/fractions/sales/{receiveNonPurchasedWrappedAssets.route.js → receiveNonPurchasedWrappedAssets.js} +0 -0
- /package/dist/fractions/sales/vesting/{claimVestedTokens.route.js → claimVestedTokens.js} +0 -0
|
@@ -76,15 +76,15 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
output: {
|
|
79
|
-
campaignId: string
|
|
79
|
+
campaignId: string & import("zod").$brand<"Int256">;
|
|
80
80
|
creator: `0x${string}`;
|
|
81
|
-
nftId: string
|
|
82
|
-
fractionsCreated: string
|
|
81
|
+
nftId: string & import("zod").$brand<"Int256">;
|
|
82
|
+
fractionsCreated: string & import("zod").$brand<"Int256">;
|
|
83
83
|
fractionsAddress: `0x${string}`;
|
|
84
84
|
vaultAddress: `0x${string}` | undefined;
|
|
85
85
|
};
|
|
86
86
|
outputFormat: "json";
|
|
87
|
-
status:
|
|
87
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
90
|
}, "/getFractionsCreatedEvent"> | import("hono/types").MergeSchemaPath<{
|
|
@@ -305,22 +305,22 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
305
305
|
};
|
|
306
306
|
}, "/purchase"> | import("hono/types").MergeSchemaPath<{
|
|
307
307
|
"/": {
|
|
308
|
-
$
|
|
308
|
+
$get: {
|
|
309
309
|
input: {
|
|
310
|
-
|
|
310
|
+
query: {
|
|
311
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
311
312
|
platform: string;
|
|
312
313
|
campaignId: string;
|
|
313
314
|
walletAddress: string;
|
|
314
|
-
chainId?: "1" | "31337" | "11155111" | "84532" | "72080" | undefined;
|
|
315
315
|
};
|
|
316
316
|
};
|
|
317
317
|
output: {
|
|
318
318
|
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
319
319
|
platform: `0x${string}`;
|
|
320
|
-
campaignId: string
|
|
320
|
+
campaignId: string & import("zod").$brand<"Int256">;
|
|
321
321
|
statistics: {
|
|
322
|
-
priceId: string
|
|
323
|
-
fractionsSold: string
|
|
322
|
+
priceId: string & import("zod").$brand<"Int256">;
|
|
323
|
+
fractionsSold: string & import("zod").$brand<"Int256">;
|
|
324
324
|
purchases: number;
|
|
325
325
|
}[];
|
|
326
326
|
};
|
|
@@ -330,18 +330,14 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
330
330
|
};
|
|
331
331
|
}, "/purchase/statistics"> | import("hono/types").MergeSchemaPath<{
|
|
332
332
|
"/": {
|
|
333
|
-
$
|
|
333
|
+
$get: {
|
|
334
334
|
input: {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
chainId?: "1" | "31337" | "11155111" | "84532" | "72080" | undefined;
|
|
342
|
-
platform?: string | undefined;
|
|
343
|
-
campaignId?: string | undefined;
|
|
344
|
-
};
|
|
335
|
+
query: {
|
|
336
|
+
skip: string | string[];
|
|
337
|
+
limit: string | string[];
|
|
338
|
+
chainId?: string | string[] | undefined;
|
|
339
|
+
platform?: string | string[] | undefined;
|
|
340
|
+
campaignId?: string | string[] | undefined;
|
|
345
341
|
};
|
|
346
342
|
};
|
|
347
343
|
output: {
|
|
@@ -615,9 +611,9 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
615
611
|
};
|
|
616
612
|
}, "/vesting/claim"> | import("hono/types").MergeSchemaPath<{
|
|
617
613
|
"/": {
|
|
618
|
-
$
|
|
614
|
+
$get: {
|
|
619
615
|
input: {
|
|
620
|
-
|
|
616
|
+
query: {
|
|
621
617
|
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
622
618
|
platform: string;
|
|
623
619
|
campaignId: string;
|
|
@@ -649,31 +645,27 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
649
645
|
};
|
|
650
646
|
};
|
|
651
647
|
output: {
|
|
652
|
-
campaignId: string
|
|
648
|
+
campaignId: string & import("zod").$brand<"Int256">;
|
|
653
649
|
receiver: `0x${string}`;
|
|
654
|
-
burnId: string
|
|
655
|
-
nextBurnId: string | null;
|
|
656
|
-
amountOfFractionsBurnt: string
|
|
650
|
+
burnId: string & import("zod").$brand<"Int256">;
|
|
651
|
+
nextBurnId: (string & import("zod").$brand<"Int256">) | null;
|
|
652
|
+
amountOfFractionsBurnt: string & import("zod").$brand<"Int256">;
|
|
657
653
|
};
|
|
658
654
|
outputFormat: "json";
|
|
659
|
-
status:
|
|
655
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
660
656
|
};
|
|
661
657
|
};
|
|
662
658
|
}, "/vesting/getClaimVestedTokensEvent"> | import("hono/types").MergeSchemaPath<{
|
|
663
659
|
"/": {
|
|
664
|
-
$
|
|
660
|
+
$get: {
|
|
665
661
|
input: {
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
owner?: string | undefined;
|
|
674
|
-
platform?: string | undefined;
|
|
675
|
-
campaignId?: string | undefined;
|
|
676
|
-
};
|
|
662
|
+
query: {
|
|
663
|
+
skip: string | string[];
|
|
664
|
+
limit: string | string[];
|
|
665
|
+
chainId?: string | string[] | undefined;
|
|
666
|
+
owner?: string | string[] | undefined;
|
|
667
|
+
platform?: string | string[] | undefined;
|
|
668
|
+
campaignId?: string | string[] | undefined;
|
|
677
669
|
};
|
|
678
670
|
};
|
|
679
671
|
output: {
|
|
@@ -748,19 +740,15 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
748
740
|
};
|
|
749
741
|
}, "/search"> | import("hono/types").MergeSchemaPath<{
|
|
750
742
|
"/": {
|
|
751
|
-
$
|
|
743
|
+
$get: {
|
|
752
744
|
input: {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
platform?: string | undefined;
|
|
761
|
-
campaignId?: string | undefined;
|
|
762
|
-
operationType?: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleEventEnum | undefined;
|
|
763
|
-
};
|
|
745
|
+
query: {
|
|
746
|
+
skip: string | string[];
|
|
747
|
+
limit: string | string[];
|
|
748
|
+
chainId?: string | string[] | undefined;
|
|
749
|
+
platform?: string | string[] | undefined;
|
|
750
|
+
campaignId?: string | string[] | undefined;
|
|
751
|
+
operationType?: string | string[] | undefined;
|
|
764
752
|
};
|
|
765
753
|
};
|
|
766
754
|
output: {
|
|
@@ -815,9 +803,9 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
815
803
|
};
|
|
816
804
|
}, "/activity"> | import("hono/types").MergeSchemaPath<{
|
|
817
805
|
"/": {
|
|
818
|
-
$
|
|
806
|
+
$get: {
|
|
819
807
|
input: {
|
|
820
|
-
|
|
808
|
+
query: {
|
|
821
809
|
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
822
810
|
platform: string;
|
|
823
811
|
campaignId: string;
|
|
@@ -826,15 +814,15 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
826
814
|
output: {
|
|
827
815
|
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
828
816
|
platform: `0x${string}`;
|
|
829
|
-
campaignId: string
|
|
817
|
+
campaignId: string & import("zod").$brand<"Int256">;
|
|
830
818
|
statistics: {
|
|
831
|
-
priceId: string
|
|
832
|
-
fractionsSold: string
|
|
819
|
+
priceId: string & import("zod").$brand<"Int256">;
|
|
820
|
+
fractionsSold: string & import("zod").$brand<"Int256">;
|
|
833
821
|
purchases: number;
|
|
834
822
|
}[];
|
|
835
823
|
};
|
|
836
824
|
outputFormat: "json";
|
|
837
|
-
status:
|
|
825
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
838
826
|
};
|
|
839
827
|
};
|
|
840
828
|
}, "/statistics"> | import("hono/types").MergeSchemaPath<{
|
|
@@ -873,12 +861,12 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
873
861
|
};
|
|
874
862
|
};
|
|
875
863
|
output: {
|
|
876
|
-
campaignId: string
|
|
864
|
+
campaignId: string & import("zod").$brand<"Int256">;
|
|
877
865
|
receiver: `0x${string}`;
|
|
878
|
-
packetsReceived: string
|
|
866
|
+
packetsReceived: string & import("zod").$brand<"Int256">;
|
|
879
867
|
};
|
|
880
868
|
outputFormat: "json";
|
|
881
|
-
status:
|
|
869
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
882
870
|
};
|
|
883
871
|
};
|
|
884
872
|
}, "/getWithdrawEvent"> | import("hono/types").MergeSchemaPath<{
|
|
@@ -910,7 +898,7 @@ export declare const SalesController: import("../../common/controller.js").ICont
|
|
|
910
898
|
vaultAddress: `0x${string}`;
|
|
911
899
|
};
|
|
912
900
|
outputFormat: "json";
|
|
913
|
-
status:
|
|
901
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
914
902
|
};
|
|
915
903
|
};
|
|
916
904
|
}, "/getVaultAddress"> | import("hono/types").MergeSchemaPath<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/index.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/index.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA8B1B,CAAC"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { SearchSalesV0 } from "./searchSales/searchSales.js";
|
|
2
|
-
import { ClaimStatisticsV0 } from "./vesting/claimStatistics.
|
|
3
|
-
import { ClaimVestedTokensV0 } from "./vesting/claimVestedTokens.
|
|
4
|
-
import { EditCliffV0 } from "./vesting/editCliff.
|
|
2
|
+
import { ClaimStatisticsV0 } from "./vesting/claimStatistics.js";
|
|
3
|
+
import { ClaimVestedTokensV0 } from "./vesting/claimVestedTokens.js";
|
|
4
|
+
import { EditCliffV0 } from "./vesting/editCliff.js";
|
|
5
5
|
import { ParseClaimVestedTokensEventV0 } from "./vesting/parseClaimVestedTokensEvent.js";
|
|
6
|
-
import { ApproveSaleV0 } from "./approveSale.
|
|
7
|
-
import { ApproveWrapperV0 } from "./approveWrapper.
|
|
8
|
-
import { CompleteSaleV0 } from "./completeSale.
|
|
9
|
-
import { CreateFractionsV0 } from "./createFractions.
|
|
10
|
-
import { GetFractionSaleStatisticsV0 } from "./getFractionSaleStatistics.
|
|
6
|
+
import { ApproveSaleV0 } from "./approveSale.js";
|
|
7
|
+
import { ApproveWrapperV0 } from "./approveWrapper.js";
|
|
8
|
+
import { CompleteSaleV0 } from "./completeSale.js";
|
|
9
|
+
import { CreateFractionsV0 } from "./createFractions.js";
|
|
10
|
+
import { GetFractionSaleStatisticsV0 } from "./getFractionSaleStatistics.js";
|
|
11
11
|
import { GetVaultAddressV0 } from "./getVaultAddress.js";
|
|
12
12
|
import { GetWithdrawEventV0 } from "./getWithdrawEvent.js";
|
|
13
13
|
import { ParseFractionsCreatedEventV0 } from "./parseFractionsCreatedEvent.js";
|
|
14
|
-
import { PurchaseV0 } from "./purchase.
|
|
15
|
-
import { PurchaseStatisticsV0 } from "./purchaseStatistics.
|
|
16
|
-
import { CheckAndJumpToNonFundedV0, ReceiveFundsAfterNonFundedDiscountV0, ReceiveFundsAfterNonFundedV0, } from "./receiveFundsAfterNonFunded.
|
|
17
|
-
import { ReceiveNonPurchasedWrappedAssetsV0 } from "./receiveNonPurchasedWrappedAssets.
|
|
14
|
+
import { PurchaseV0 } from "./purchase.js";
|
|
15
|
+
import { PurchaseStatisticsV0 } from "./purchaseStatistics.js";
|
|
16
|
+
import { CheckAndJumpToNonFundedV0, ReceiveFundsAfterNonFundedDiscountV0, ReceiveFundsAfterNonFundedV0, } from "./receiveFundsAfterNonFunded.js";
|
|
17
|
+
import { ReceiveNonPurchasedWrappedAssetsV0 } from "./receiveNonPurchasedWrappedAssets.js";
|
|
18
18
|
import { RecoverFractionsV0 } from "./recoverFractions.js";
|
|
19
19
|
import { RejectFractionsV0 } from "./rejectFractions.js";
|
|
20
|
-
import { SearchActivityV0 } from "./searchActivity.
|
|
21
|
-
import { SearchWithdrawalV0 } from "./searchWithdrawal.
|
|
20
|
+
import { SearchActivityV0 } from "./searchActivity.js";
|
|
21
|
+
import { SearchWithdrawalV0 } from "./searchWithdrawal.js";
|
|
22
22
|
import { SetFeeCapLimitV0 } from "./setFeeCapLimit.js";
|
|
23
|
-
import { UnlockWrappedAssetsV0 } from "./unlockWrappedAssets.
|
|
24
|
-
import { WithdrawV0 } from "./withdraw.
|
|
23
|
+
import { UnlockWrappedAssetsV0 } from "./unlockWrappedAssets.js";
|
|
24
|
+
import { WithdrawV0 } from "./withdraw.js";
|
|
25
25
|
import { createController } from "../../common/controller.js";
|
|
26
26
|
export const SalesController = createController({
|
|
27
27
|
build: (factory) => factory
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
export declare const ParseFractionsCreatedEventResponse: z.ZodObject<{
|
|
3
|
+
creator: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
+
nftId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
5
|
+
campaignId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
6
|
+
fractionsCreated: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
7
|
+
fractionsAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
8
|
+
vaultAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
1
10
|
export declare const ParseFractionsCreatedEventV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
|
|
2
11
|
"/": {
|
|
3
12
|
$get: {
|
|
@@ -8,15 +17,15 @@ export declare const ParseFractionsCreatedEventV0: import("../../common/controll
|
|
|
8
17
|
};
|
|
9
18
|
};
|
|
10
19
|
output: {
|
|
11
|
-
campaignId: string
|
|
20
|
+
campaignId: string & z.core.$brand<"Int256">;
|
|
12
21
|
creator: `0x${string}`;
|
|
13
|
-
nftId: string
|
|
14
|
-
fractionsCreated: string
|
|
22
|
+
nftId: string & z.core.$brand<"Int256">;
|
|
23
|
+
fractionsCreated: string & z.core.$brand<"Int256">;
|
|
15
24
|
fractionsAddress: `0x${string}`;
|
|
16
25
|
vaultAddress: `0x${string}` | undefined;
|
|
17
26
|
};
|
|
18
27
|
outputFormat: "json";
|
|
19
|
-
status:
|
|
28
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20
29
|
};
|
|
21
30
|
};
|
|
22
31
|
}, "/", "/">>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseFractionsCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/parseFractionsCreatedEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseFractionsCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/parseFractionsCreatedEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAQxD,eAAO,MAAM,kCAAkC;;;;;;;iBASC,CAAC;AAEjD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;aA0CvC,CAAC"}
|
|
@@ -3,11 +3,21 @@ import { resolver, validator } from "hono-openapi";
|
|
|
3
3
|
import { waitForTransactionReceipt } from "viem/actions";
|
|
4
4
|
import { parseFractionsCreatedEvent } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
5
5
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
6
|
-
import { Int256Json } from "@evergonlabs/tmi-utils/models";
|
|
6
|
+
import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
7
7
|
import { getPublicClient } from "../../common/blockchain.js";
|
|
8
8
|
import { createController } from "../../common/controller.js";
|
|
9
9
|
import { HttpError } from "../../common/http-error.js";
|
|
10
10
|
import { AddressSchema, SentTransactionParamsSchema } from "../../common/index.js";
|
|
11
|
+
export const ParseFractionsCreatedEventResponse = z
|
|
12
|
+
.object({
|
|
13
|
+
creator: AddressSchema,
|
|
14
|
+
nftId: Int256Json,
|
|
15
|
+
campaignId: Int256Json.openapi({ description: "Id of a Sale", example: "1" }),
|
|
16
|
+
fractionsCreated: Int256Json,
|
|
17
|
+
fractionsAddress: AddressSchema,
|
|
18
|
+
vaultAddress: AddressSchema,
|
|
19
|
+
})
|
|
20
|
+
.openapi("ParseFractionsCreatedEventResponse");
|
|
11
21
|
export const ParseFractionsCreatedEventV0 = createController({
|
|
12
22
|
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
13
23
|
summary: "Get fraction sale event",
|
|
@@ -18,14 +28,7 @@ export const ParseFractionsCreatedEventV0 = createController({
|
|
|
18
28
|
description: "Returns parsed event log",
|
|
19
29
|
content: {
|
|
20
30
|
"application/json": {
|
|
21
|
-
schema: resolver(
|
|
22
|
-
creator: AddressSchema,
|
|
23
|
-
nftId: Int256Json,
|
|
24
|
-
campaignId: Int256Json.openapi({ description: "Id of a Sale", example: "1" }),
|
|
25
|
-
fractionsCreated: Int256Json,
|
|
26
|
-
fractionsAddress: AddressSchema,
|
|
27
|
-
vaultAddress: AddressSchema,
|
|
28
|
-
})),
|
|
31
|
+
schema: resolver(ParseFractionsCreatedEventResponse),
|
|
29
32
|
},
|
|
30
33
|
},
|
|
31
34
|
},
|
|
@@ -37,23 +40,18 @@ export const ParseFractionsCreatedEventV0 = createController({
|
|
|
37
40
|
});
|
|
38
41
|
const result = parseFractionsCreatedEvent(receipt.logs);
|
|
39
42
|
if (!result) {
|
|
40
|
-
throw new
|
|
43
|
+
throw new HttpError(500, {
|
|
44
|
+
message: `Can't parse FractionsCreated transaction. Make sure you're passing transaction that is generated by \`createFractions\` action`,
|
|
45
|
+
name: "UnableParseFractionsCreatedEvent",
|
|
46
|
+
});
|
|
41
47
|
}
|
|
42
48
|
return c.json({
|
|
43
|
-
campaignId: result.campaignId
|
|
49
|
+
campaignId: toInt256Json(result.campaignId),
|
|
44
50
|
creator: result.creator,
|
|
45
|
-
nftId: result.wrapperNftId
|
|
46
|
-
fractionsCreated: result.fractionsCreated
|
|
51
|
+
nftId: toInt256Json(result.wrapperNftId),
|
|
52
|
+
fractionsCreated: toInt256Json(result.fractionsCreated),
|
|
47
53
|
fractionsAddress: result.fractionsAddress,
|
|
48
54
|
vaultAddress: result.vaultAddress,
|
|
49
|
-
}
|
|
55
|
+
});
|
|
50
56
|
}),
|
|
51
57
|
});
|
|
52
|
-
class UnableParseFractionsCreatedEvent extends HttpError {
|
|
53
|
-
constructor() {
|
|
54
|
-
super(500, {
|
|
55
|
-
message: `Can't parse FractionsCreated transaction. Make sure you're passing transaction that is generated by \`createFractions\` action`,
|
|
56
|
-
name: "UnableParseFractionsCreatedEvent",
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const PurchaseV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context
|
|
1
|
+
export declare const PurchaseV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
|
|
2
2
|
"/": {
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
@@ -28,4 +28,4 @@ export declare const PurchaseV0: import("../../common/controller.js").IControlle
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
}, "/", "/">>;
|
|
31
|
-
//# sourceMappingURL=purchase.
|
|
31
|
+
//# sourceMappingURL=purchase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/purchase.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aASrB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildPurchaseTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
-
import { PurchaseRequestSchema } from "
|
|
4
|
+
import { PurchaseRequestSchema } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
6
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
7
|
const route = describeRoute({
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
1
2
|
export declare const PurchaseStatisticsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
3
|
"/": {
|
|
3
|
-
$
|
|
4
|
+
$get: {
|
|
4
5
|
input: {
|
|
5
|
-
|
|
6
|
+
query: {
|
|
7
|
+
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
6
8
|
platform: string;
|
|
7
9
|
campaignId: string;
|
|
8
10
|
walletAddress: string;
|
|
9
|
-
chainId?: "1" | "31337" | "11155111" | "84532" | "72080" | undefined;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
13
|
output: {
|
|
13
14
|
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
14
15
|
platform: `0x${string}`;
|
|
15
|
-
campaignId: string
|
|
16
|
+
campaignId: string & z.core.$brand<"Int256">;
|
|
16
17
|
statistics: {
|
|
17
|
-
priceId: string
|
|
18
|
-
fractionsSold: string
|
|
18
|
+
priceId: string & z.core.$brand<"Int256">;
|
|
19
|
+
fractionsSold: string & z.core.$brand<"Int256">;
|
|
19
20
|
purchases: number;
|
|
20
21
|
}[];
|
|
21
22
|
};
|
|
@@ -24,4 +25,4 @@ export declare const PurchaseStatisticsV0: import("../../common/controller.js").
|
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
}, "/", "/">>;
|
|
27
|
-
//# sourceMappingURL=purchaseStatistics.
|
|
28
|
+
//# sourceMappingURL=purchaseStatistics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchaseStatistics.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/purchaseStatistics.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAQxD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;aAsE/B,CAAC"}
|
|
@@ -2,12 +2,13 @@ import { and, count, eq, sum } from "@ponder/client";
|
|
|
2
2
|
import { describeRoute } from "hono-openapi";
|
|
3
3
|
import { resolver, validator } from "hono-openapi";
|
|
4
4
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
5
|
-
import {
|
|
5
|
+
import { toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
6
|
+
import { FractionsSaleStatisticResponse } from "./getFractionSaleStatistics.js";
|
|
6
7
|
import { createController } from "../../common/controller.js";
|
|
7
8
|
import { AddressSchema, CampaignIdSchema, FractionsChainId, PlatformContractAddress } from "../../common/index.js";
|
|
8
9
|
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
9
10
|
export const PurchaseStatisticsV0 = createController({
|
|
10
|
-
build: (factory) => factory.createApp().
|
|
11
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
11
12
|
summary: "Aggregate investor statistics for certain campaign",
|
|
12
13
|
description: "Returns aggregated statistics about investor purchases for a specific campaign, grouped by price ID. Statistics include the number of purchases and the total number of fractions sold.",
|
|
13
14
|
tags: ["Statistics"],
|
|
@@ -16,18 +17,18 @@ export const PurchaseStatisticsV0 = createController({
|
|
|
16
17
|
description: "Aggregated purchase statistics for the specified campaign and investor.",
|
|
17
18
|
content: {
|
|
18
19
|
"application/json": {
|
|
19
|
-
schema: resolver(
|
|
20
|
+
schema: resolver(FractionsSaleStatisticResponse),
|
|
20
21
|
},
|
|
21
22
|
},
|
|
22
23
|
},
|
|
23
24
|
},
|
|
24
|
-
}), validator("
|
|
25
|
-
chainId: FractionsChainId
|
|
25
|
+
}), validator("query", z.object({
|
|
26
|
+
chainId: FractionsChainId,
|
|
26
27
|
platform: PlatformContractAddress,
|
|
27
28
|
campaignId: CampaignIdSchema,
|
|
28
29
|
walletAddress: AddressSchema,
|
|
29
30
|
})), async (c) => {
|
|
30
|
-
const { chainId, platform, campaignId, walletAddress } = c.req.valid("
|
|
31
|
+
const { chainId, platform, campaignId, walletAddress } = c.req.valid("query");
|
|
31
32
|
const { fractions: { fractionsPurchases }, } = indexerSchemas;
|
|
32
33
|
const rows = await c
|
|
33
34
|
.get("indexerClient")
|
|
@@ -40,14 +41,15 @@ export const PurchaseStatisticsV0 = createController({
|
|
|
40
41
|
.where(and(eq(fractionsPurchases.chainId, Number(chainId)), eq(fractionsPurchases.diamondAddress, platform), eq(fractionsPurchases.saleId, BigInt(campaignId)), eq(fractionsPurchases.buyerAddress, walletAddress)))
|
|
41
42
|
.groupBy(fractionsPurchases.priceId);
|
|
42
43
|
const statistics = rows.map((r) => ({
|
|
43
|
-
|
|
44
|
-
fractionsSold: r.fractionsSold || "0",
|
|
44
|
+
priceId: toInt256Json(r.priceId),
|
|
45
|
+
fractionsSold: toInt256Json(r.fractionsSold || "0"),
|
|
46
|
+
purchases: r.purchases,
|
|
45
47
|
}));
|
|
46
|
-
return c.json(
|
|
48
|
+
return c.json({
|
|
47
49
|
chainId: chainId,
|
|
48
50
|
platform: platform,
|
|
49
51
|
campaignId: campaignId,
|
|
50
52
|
statistics,
|
|
51
|
-
}
|
|
53
|
+
}, 200);
|
|
52
54
|
}),
|
|
53
55
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ReceiveFundsAfterNonFundedV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context
|
|
1
|
+
export declare const ReceiveFundsAfterNonFundedV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
|
|
2
2
|
"/": {
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
@@ -25,7 +25,7 @@ export declare const ReceiveFundsAfterNonFundedV0: import("../../common/controll
|
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
}, "/", "/">>;
|
|
28
|
-
export declare const ReceiveFundsAfterNonFundedDiscountV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context
|
|
28
|
+
export declare const ReceiveFundsAfterNonFundedDiscountV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
|
|
29
29
|
"/": {
|
|
30
30
|
$post: {
|
|
31
31
|
input: {
|
|
@@ -53,7 +53,7 @@ export declare const ReceiveFundsAfterNonFundedDiscountV0: import("../../common/
|
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
}, "/", "/">>;
|
|
56
|
-
export declare const CheckAndJumpToNonFundedV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context
|
|
56
|
+
export declare const CheckAndJumpToNonFundedV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
|
|
57
57
|
"/": {
|
|
58
58
|
$post: {
|
|
59
59
|
input: {
|
|
@@ -79,4 +79,4 @@ export declare const CheckAndJumpToNonFundedV0: import("../../common/controller.
|
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
}, "/", "/">>;
|
|
82
|
-
//# sourceMappingURL=receiveFundsAfterNonFunded.
|
|
82
|
+
//# sourceMappingURL=receiveFundsAfterNonFunded.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receiveFundsAfterNonFunded.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/receiveFundsAfterNonFunded.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;aASvC,CAAC;AAkBH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;aAc/C,CAAC;AAkBH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;aASpC,CAAC"}
|
package/dist/fractions/sales/{receiveFundsAfterNonFunded.route.js → receiveFundsAfterNonFunded.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { checkAndJumpToNonFunded, receiveFundsAfterNonFundedDiscount, receiveFundsAfterNonFundedNoDiscount, } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
-
import { CheckAndJumpToNonFundedConfigSchema, ReceiveFundsAfterNonFundedDiscountConfigSchema, ReceiveFundsAfterNonFundedNoDiscountConfigSchema, } from "
|
|
4
|
+
import { CheckAndJumpToNonFundedConfigSchema, ReceiveFundsAfterNonFundedDiscountConfigSchema, ReceiveFundsAfterNonFundedNoDiscountConfigSchema, } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
6
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
7
|
const receiveFundsRoute = describeRoute({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receiveNonPurchasedWrappedAssets.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/receiveNonPurchasedWrappedAssets.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;aAc7C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const RecoverFractionsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context
|
|
1
|
+
export declare const RecoverFractionsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
|
|
2
2
|
"/": {
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildRecoverFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
-
import { RecoverFractionsConfigSchema } from "
|
|
4
|
+
import { RecoverFractionsConfigSchema } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
6
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
7
|
const route = describeRoute({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const RejectFractionsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context
|
|
1
|
+
export declare const RejectFractionsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context").AppContext, {
|
|
2
2
|
"/": {
|
|
3
3
|
$post: {
|
|
4
4
|
input: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { builtRejectFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
-
import { RejectFractionsConfigSchema } from "
|
|
4
|
+
import { RejectFractionsConfigSchema } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
5
5
|
import { createController } from "../../common/controller.js";
|
|
6
6
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
7
|
const route = describeRoute({
|