@evergonlabs/tmi-protocol-api 0.5.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -0
- package/dist/app.d.ts +3301 -2851
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +36 -23
- package/dist/apps.d.ts +30 -0
- package/dist/apps.d.ts.map +1 -0
- package/dist/apps.js +16 -0
- package/dist/client.d.ts +2170 -1996
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +23 -2
- package/dist/common/blockchain.d.ts +26 -26
- package/dist/common/blockchain.d.ts.map +1 -1
- package/dist/common/blockchain.js +6 -10
- package/dist/common/config.d.ts +6 -27
- package/dist/common/config.d.ts.map +1 -1
- package/dist/common/config.js +2 -11
- package/dist/common/context.d.ts +2 -2
- package/dist/common/context.d.ts.map +1 -1
- package/dist/common/controller.d.ts +12 -0
- package/dist/common/controller.d.ts.map +1 -0
- package/dist/common/controller.js +6 -0
- package/dist/common/exports.d.ts +3 -0
- package/dist/common/exports.d.ts.map +1 -0
- package/dist/common/exports.js +2 -0
- package/dist/common/http-error.d.ts +1 -1
- package/dist/common/http-error.d.ts.map +1 -1
- package/dist/common/indexer/client.d.ts +138 -2
- package/dist/common/indexer/client.d.ts.map +1 -1
- package/dist/common/indexer/schemas.d.ts +69 -1
- package/dist/common/indexer/schemas.d.ts.map +1 -1
- package/dist/common/indexer/schemas.js +1 -1
- package/dist/common/int256.d.ts +3 -0
- package/dist/common/int256.d.ts.map +1 -0
- package/dist/common/int256.js +12 -0
- package/dist/common/models/asset.d.ts +5 -23
- package/dist/common/models/asset.d.ts.map +1 -1
- package/dist/common/models/asset.js +4 -6
- package/dist/common/models/base/chainId.d.ts +8 -0
- package/dist/common/models/base/chainId.d.ts.map +1 -0
- package/dist/common/models/base/chainId.js +11 -0
- package/dist/common/models/base/deployTransaction.d.ts +8 -0
- package/dist/common/models/base/deployTransaction.d.ts.map +1 -0
- package/dist/common/models/base/deployTransaction.js +7 -0
- package/dist/common/models/base/page.d.ts +7 -0
- package/dist/common/models/base/page.d.ts.map +1 -0
- package/dist/common/models/base/page.js +5 -0
- package/dist/common/models/base/transaction.d.ts +13 -0
- package/dist/common/models/base/transaction.d.ts.map +1 -0
- package/dist/common/models/base/transaction.js +12 -0
- package/dist/common/models/base/viem.d.ts +6 -0
- package/dist/common/models/base/viem.d.ts.map +1 -0
- package/dist/common/models/base/viem.js +5 -0
- package/dist/common/models/chainId.d.ts +7 -7
- package/dist/common/models/chainId.d.ts.map +1 -1
- package/dist/common/models/chainId.js +27 -12
- package/dist/common/models/compilot.d.ts +3 -0
- package/dist/common/models/compilot.d.ts.map +1 -0
- package/dist/common/models/compilot.js +1 -0
- package/dist/common/models/date.d.ts +5 -2
- package/dist/common/models/date.d.ts.map +1 -1
- package/dist/common/models/date.js +13 -5
- package/dist/common/models/deployTransaction.d.ts +8 -0
- package/dist/common/models/deployTransaction.d.ts.map +1 -0
- package/dist/common/models/deployTransaction.js +12 -0
- package/dist/common/models/erc721.d.ts +3 -11
- package/dist/common/models/erc721.d.ts.map +1 -1
- package/dist/common/models/erc721.js +2 -4
- package/dist/common/models/exports.d.ts +5 -0
- package/dist/common/models/exports.d.ts.map +1 -0
- package/dist/common/models/exports.js +4 -0
- package/dist/common/models/index.d.ts +7 -4
- package/dist/common/models/index.d.ts.map +1 -1
- package/dist/common/models/index.js +7 -4
- package/dist/common/models/page.d.ts +3 -8
- package/dist/common/models/page.d.ts.map +1 -1
- package/dist/common/models/page.js +2 -5
- package/dist/common/models/platform.d.ts +19 -6
- 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 +2 -10
- package/dist/common/models/routes.d.ts.map +1 -1
- package/dist/common/models/routes.js +1 -1
- package/dist/common/models/saleId.d.ts +3 -9
- package/dist/common/models/saleId.d.ts.map +1 -1
- package/dist/common/models/saleId.js +2 -1
- package/dist/common/models/transaction.d.ts +20 -81
- package/dist/common/models/transaction.d.ts.map +1 -1
- package/dist/common/models/transaction.js +13 -21
- package/dist/common/models/viem.d.ts +5 -3
- package/dist/common/models/viem.d.ts.map +1 -1
- package/dist/common/models/viem.js +6 -1
- package/dist/common/roles/erc20-gated-roles.d.ts +4 -2
- package/dist/common/roles/erc20-gated-roles.d.ts.map +1 -1
- package/dist/common/roles/erc20-gated-roles.js +3 -1
- package/dist/common/roles/erc721-factory-roles.d.ts +8 -0
- package/dist/common/roles/erc721-factory-roles.d.ts.map +1 -0
- package/dist/common/roles/erc721-factory-roles.js +13 -0
- package/dist/common/roles/exports.d.ts +3 -0
- package/dist/common/roles/exports.d.ts.map +1 -0
- package/dist/common/roles/exports.js +2 -0
- package/dist/factory.d.ts +11 -0
- package/dist/factory.d.ts.map +1 -0
- package/dist/factory.js +19 -0
- package/dist/fractions/activity/searchActivity.route.d.ts +7 -7
- package/dist/fractions/activity/searchActivity.route.js +2 -2
- package/dist/fractions/activity/utils.d.ts +3 -3
- package/dist/fractions/activity/utils.js +2 -2
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts +4 -4
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts.map +1 -1
- package/dist/fractions/createFractions/v0/createFractions.route.js +3 -16
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts +14 -3
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts.map +1 -1
- package/dist/fractions/createFractions/v0/createFractions.schema.js +13 -2
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +2 -2
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts +36 -22
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -1
- package/dist/fractions/deployMarket/v0/deployMarket.routes.js +30 -32
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts +6 -3
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +1 -1
- package/dist/fractions/deployMarket/v0/deployMarket.schema.js +5 -2
- package/dist/fractions/fractions/approveWrapper.route.d.ts +88 -0
- package/dist/fractions/fractions/approveWrapper.route.d.ts.map +1 -0
- package/dist/fractions/fractions/approveWrapper.route.js +92 -0
- package/dist/fractions/fractions/index.d.ts +72 -0
- package/dist/fractions/fractions/index.d.ts.map +1 -0
- package/dist/fractions/fractions/index.js +9 -0
- package/dist/fractions/gating/v0/getAuthData.d.ts +7 -7
- package/dist/fractions/gating/v0/getAuthData.js +2 -2
- package/dist/fractions/gating/v0/getNonce.route.d.ts +7 -7
- package/dist/fractions/gating/v0/getNonce.route.js +2 -2
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts +4 -4
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts +3 -3
- package/dist/fractions/grantRole/v0/grantRole.schema.js +2 -2
- package/dist/fractions/index.d.ts +1106 -1148
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +20 -105
- package/dist/fractions/markets/common/platform.d.ts +23 -75
- package/dist/fractions/markets/common/platform.d.ts.map +1 -1
- package/dist/fractions/markets/common/platform.js +11 -13
- package/dist/fractions/markets/getDeployEvent.d.ts +17 -39
- package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -1
- package/dist/fractions/markets/getDeployEvent.js +10 -9
- package/dist/fractions/markets/getMarket/getMarket.d.ts +30 -0
- package/dist/fractions/markets/getMarket/getMarket.d.ts.map +1 -0
- package/dist/fractions/markets/getMarket/getMarket.js +65 -0
- package/dist/fractions/markets/getMarket/index.d.ts +4 -27
- package/dist/fractions/markets/getMarket/index.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket/index.js +5 -4
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts +14 -14
- package/dist/fractions/markets/getMarket/v0/getMarket.js +2 -2
- package/dist/fractions/markets/index.d.ts +12 -54
- package/dist/fractions/markets/index.d.ts.map +1 -1
- package/dist/fractions/markets/index.js +10 -11
- package/dist/fractions/markets/searchMarkets/index.d.ts +7 -30
- package/dist/fractions/markets/searchMarkets/index.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/index.js +5 -4
- package/dist/fractions/markets/searchMarkets/searchMarkets.d.ts +22 -0
- package/dist/fractions/markets/searchMarkets/searchMarkets.d.ts.map +1 -0
- package/dist/fractions/markets/searchMarkets/searchMarkets.js +45 -0
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +13 -13
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.js +2 -2
- package/dist/fractions/nftfractions/index.d.ts +6 -0
- package/dist/fractions/nftfractions/index.d.ts.map +1 -0
- package/dist/fractions/nftfractions/index.js +5 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.d.ts +192 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.js +58 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.d.ts +245 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.js +65 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.d.ts +96 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.js +52 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.d.ts +70 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.js +28 -0
- package/dist/fractions/nftfractions/v0/initCompilot.routes.d.ts +74 -0
- package/dist/fractions/nftfractions/v0/initCompilot.routes.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/initCompilot.routes.js +41 -0
- package/dist/fractions/platforms/deployMarket.routes.d.ts +158 -0
- package/dist/fractions/platforms/deployMarket.routes.d.ts.map +1 -0
- package/dist/fractions/platforms/deployMarket.routes.js +131 -0
- package/dist/fractions/platforms/deployMarket.schema.d.ts +33 -0
- package/dist/fractions/platforms/deployMarket.schema.d.ts.map +1 -0
- package/dist/fractions/platforms/deployMarket.schema.js +28 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.d.ts +96 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.js +52 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.schema.d.ts +30 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.schema.js +29 -0
- package/dist/fractions/platforms/index.d.ts +196 -0
- package/dist/fractions/platforms/index.d.ts.map +1 -0
- package/dist/fractions/platforms/index.js +15 -0
- package/dist/fractions/platforms/initCompilot.routes.d.ts +36 -0
- package/dist/fractions/platforms/initCompilot.routes.d.ts.map +1 -0
- package/dist/fractions/platforms/initCompilot.routes.js +40 -0
- package/dist/fractions/platforms/initNid.route.d.ts +28 -0
- package/dist/fractions/platforms/initNid.route.d.ts.map +1 -0
- package/dist/fractions/platforms/initNid.route.js +32 -0
- package/dist/fractions/purchase/v0/purchase.route.d.ts +7 -7
- package/dist/fractions/purchase/v0/purchase.route.js +2 -2
- package/dist/fractions/purchase/v0/statistics.route.d.ts +7 -7
- package/dist/fractions/purchase/v0/statistics.route.js +2 -2
- package/dist/fractions/roles/getRoles.d.ts +23 -0
- package/dist/fractions/roles/getRoles.d.ts.map +1 -0
- package/dist/fractions/roles/getRoles.js +42 -0
- package/dist/fractions/roles/grantRole.route.d.ts +27 -0
- package/dist/fractions/roles/grantRole.route.d.ts.map +1 -0
- package/dist/fractions/roles/grantRole.route.js +34 -0
- package/dist/fractions/roles/grantRole.schema.d.ts +16 -0
- package/dist/fractions/roles/grantRole.schema.d.ts.map +1 -0
- package/dist/fractions/roles/grantRole.schema.js +14 -0
- package/dist/fractions/roles/index.d.ts +48 -0
- package/dist/fractions/roles/index.d.ts.map +1 -0
- package/dist/fractions/roles/index.js +9 -0
- package/dist/fractions/sales/activityUtils.d.ts +49 -0
- package/dist/fractions/sales/activityUtils.d.ts.map +1 -0
- package/dist/fractions/sales/activityUtils.js +68 -0
- package/dist/fractions/sales/approveSale.route.d.ts +30 -0
- package/dist/fractions/sales/approveSale.route.d.ts.map +1 -0
- package/dist/fractions/sales/approveSale.route.js +35 -0
- package/dist/fractions/sales/common/fractionsSale.d.ts +50 -326
- package/dist/fractions/sales/common/fractionsSale.d.ts.map +1 -1
- package/dist/fractions/sales/common/fractionsSale.js +64 -79
- package/dist/fractions/sales/completeSale.route.d.ts +30 -0
- package/dist/fractions/sales/completeSale.route.d.ts.map +1 -0
- package/dist/fractions/sales/completeSale.route.js +35 -0
- package/dist/fractions/sales/createFractions.route.d.ts +71 -0
- package/dist/fractions/sales/createFractions.route.d.ts.map +1 -0
- package/dist/fractions/sales/createFractions.route.js +51 -0
- package/dist/fractions/sales/createFractions.schema.d.ts +123 -0
- package/dist/fractions/sales/createFractions.schema.d.ts.map +1 -0
- package/dist/fractions/sales/createFractions.schema.js +80 -0
- package/dist/fractions/sales/createNftFractions.routes.d.ts +180 -0
- package/dist/fractions/sales/createNftFractions.routes.d.ts.map +1 -0
- package/dist/fractions/sales/createNftFractions.routes.js +58 -0
- package/dist/fractions/sales/createNftFractions.schema.d.ts +85 -0
- package/dist/fractions/sales/createNftFractions.schema.d.ts.map +1 -0
- package/dist/fractions/sales/createNftFractions.schema.js +67 -0
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +31 -92
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.js +12 -13
- package/dist/fractions/sales/getVaultAddress.d.ts +31 -49
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
- package/dist/fractions/sales/getVaultAddress.js +11 -10
- package/dist/fractions/sales/getWithdrawEvent.d.ts +17 -39
- package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -1
- package/dist/fractions/sales/getWithdrawEvent.js +13 -11
- package/dist/fractions/sales/index.d.ts +760 -0
- package/dist/fractions/sales/index.d.ts.map +1 -0
- package/dist/fractions/sales/index.js +52 -0
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts +23 -0
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/fractions/sales/parseFractionsCreatedEvent.js +59 -0
- package/dist/fractions/sales/purchase.route.d.ts +36 -0
- package/dist/fractions/sales/purchase.route.d.ts.map +1 -0
- package/dist/fractions/sales/purchase.route.js +42 -0
- package/dist/fractions/sales/purchaseStatistics.route.d.ts +27 -0
- package/dist/fractions/sales/purchaseStatistics.route.d.ts.map +1 -0
- package/dist/fractions/sales/purchaseStatistics.route.js +53 -0
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +56 -140
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -1
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.js +19 -15
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +22 -54
- 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 +65 -103
- package/dist/fractions/sales/recoverFractions.d.ts.map +1 -1
- package/dist/fractions/sales/recoverFractions.js +13 -11
- package/dist/fractions/sales/rejectFractions.d.ts +49 -75
- package/dist/fractions/sales/rejectFractions.d.ts.map +1 -1
- package/dist/fractions/sales/rejectFractions.js +12 -8
- package/dist/fractions/sales/searchActivity.route.d.ts +67 -86
- package/dist/fractions/sales/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/sales/searchActivity.route.js +27 -37
- package/dist/fractions/sales/searchSales/searchSales.d.ts +24 -0
- package/dist/fractions/sales/searchSales/searchSales.d.ts.map +1 -0
- package/dist/fractions/sales/searchSales/searchSales.js +50 -0
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts +16 -16
- package/dist/fractions/sales/searchSales/v0/searchSales.js +2 -2
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +20 -55
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +1 -1
- package/dist/fractions/sales/searchWithdrawal.route.js +10 -9
- package/dist/fractions/sales/setFeeCapLimit.d.ts +27 -70
- package/dist/fractions/sales/setFeeCapLimit.d.ts.map +1 -1
- package/dist/fractions/sales/setFeeCapLimit.js +12 -8
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts +26 -65
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -1
- package/dist/fractions/sales/unlockWrappedAssets.route.js +10 -11
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts +36 -0
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/claimStatistics.route.js +87 -0
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts +62 -0
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/claimVestedTokens.route.js +45 -0
- package/dist/fractions/sales/vesting/editCliff.route.d.ts +58 -0
- package/dist/fractions/sales/vesting/editCliff.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/editCliff.route.js +45 -0
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts +22 -0
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +58 -0
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts +10 -10
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.js +3 -3
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +2 -2
- package/dist/fractions/sales/withdraw.route.d.ts +29 -0
- package/dist/fractions/sales/withdraw.route.d.ts.map +1 -0
- package/dist/fractions/sales/withdraw.route.js +30 -0
- package/dist/fractions/sig/getAuthData.d.ts +40 -0
- package/dist/fractions/sig/getAuthData.d.ts.map +1 -0
- package/dist/fractions/sig/getAuthData.js +52 -0
- package/dist/fractions/sig/getNonce.route.d.ts +25 -0
- package/dist/fractions/sig/getNonce.route.d.ts.map +1 -0
- package/dist/fractions/sig/getNonce.route.js +43 -0
- package/dist/fractions/sig/index.d.ts +40 -0
- package/dist/fractions/sig/index.d.ts.map +1 -0
- package/dist/fractions/sig/index.js +6 -0
- package/dist/fractions/statistics/index.d.ts +107 -0
- package/dist/fractions/statistics/index.d.ts.map +1 -0
- package/dist/fractions/statistics/index.js +10 -0
- package/dist/fractions/statistics/networkStatistics.route.d.ts +121 -0
- package/dist/fractions/statistics/networkStatistics.route.d.ts.map +1 -0
- package/dist/fractions/statistics/networkStatistics.route.js +222 -0
- package/dist/general/balanceClient.d.ts +19 -58
- package/dist/general/balanceClient.d.ts.map +1 -1
- package/dist/general/balanceClient.js +3 -3
- package/dist/general/common.d.ts +11 -74
- package/dist/general/common.d.ts.map +1 -1
- package/dist/general/common.js +7 -11
- package/dist/general/estimateGas.d.ts +18 -45
- package/dist/general/estimateGas.d.ts.map +1 -1
- package/dist/general/estimateGas.js +32 -30
- package/dist/general/getBalance.d.ts +16 -37
- package/dist/general/getBalance.d.ts.map +1 -1
- package/dist/general/getBalance.js +30 -26
- package/dist/general/getBalancesBatch.d.ts +22 -56
- package/dist/general/getBalancesBatch.d.ts.map +1 -1
- package/dist/general/getBalancesBatch.js +24 -20
- package/dist/general/index.d.ts +74 -83
- package/dist/general/index.d.ts.map +1 -1
- package/dist/general/index.js +14 -19
- package/dist/general/searchBalances.d.ts +27 -67
- package/dist/general/searchBalances.d.ts.map +1 -1
- package/dist/general/searchBalances.js +25 -21
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts +17 -33
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts.map +1 -1
- package/dist/general/utils/tokenBalance/tokenBalance.js +5 -5
- package/dist/issuance/approve.js +1 -1
- package/dist/issuance/burn.js +1 -1
- package/dist/issuance/common/exports.d.ts +2 -0
- package/dist/issuance/common/exports.d.ts.map +1 -0
- package/dist/issuance/common/exports.js +1 -0
- package/dist/issuance/common/factories.d.ts +167 -0
- package/dist/issuance/common/factories.d.ts.map +1 -0
- package/dist/issuance/common/factories.js +15 -0
- package/dist/issuance/deploy.d.ts +12 -12
- package/dist/issuance/deploy.d.ts.map +1 -1
- package/dist/issuance/deploy.js +21 -8
- package/dist/issuance/erc20/approve.d.ts +32 -0
- package/dist/issuance/erc20/approve.d.ts.map +1 -0
- package/dist/issuance/erc20/approve.js +38 -0
- package/dist/issuance/erc20/burn.d.ts +32 -0
- package/dist/issuance/erc20/burn.d.ts.map +1 -0
- package/dist/issuance/erc20/burn.js +38 -0
- package/dist/issuance/erc20/deploy.d.ts +38 -0
- package/dist/issuance/erc20/deploy.d.ts.map +1 -0
- package/dist/issuance/erc20/deploy.js +52 -0
- package/dist/issuance/erc20/deployGated.d.ts +40 -0
- package/dist/issuance/erc20/deployGated.d.ts.map +1 -0
- package/dist/issuance/erc20/deployGated.js +58 -0
- package/dist/issuance/erc20/getInitData.d.ts +59 -0
- package/dist/issuance/erc20/getInitData.d.ts.map +1 -0
- package/dist/issuance/erc20/getInitData.js +49 -0
- package/dist/issuance/erc20/grantRole.d.ts +33 -0
- package/dist/issuance/erc20/grantRole.d.ts.map +1 -0
- package/dist/issuance/erc20/grantRole.js +41 -0
- package/dist/issuance/erc20/index.d.ts +324 -0
- package/dist/issuance/erc20/index.d.ts.map +1 -0
- package/dist/issuance/erc20/index.js +31 -0
- package/dist/issuance/erc20/initialize.d.ts +40 -0
- package/dist/issuance/erc20/initialize.d.ts.map +1 -0
- package/dist/issuance/erc20/initialize.js +45 -0
- package/dist/issuance/erc20/mint.d.ts +32 -0
- package/dist/issuance/erc20/mint.d.ts.map +1 -0
- package/dist/issuance/erc20/mint.js +38 -0
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts +23 -0
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc20/parseErc20DeployEvent.js +79 -0
- package/dist/issuance/erc20/recover.d.ts +34 -0
- package/dist/issuance/erc20/recover.d.ts.map +1 -0
- package/dist/issuance/erc20/recover.js +39 -0
- package/dist/issuance/erc20/renounceRole.d.ts +33 -0
- package/dist/issuance/erc20/renounceRole.d.ts.map +1 -0
- package/dist/issuance/erc20/renounceRole.js +41 -0
- package/dist/issuance/erc20/revokeRole.d.ts +33 -0
- package/dist/issuance/erc20/revokeRole.d.ts.map +1 -0
- package/dist/issuance/erc20/revokeRole.js +41 -0
- package/dist/issuance/erc20/transfer.d.ts +32 -0
- package/dist/issuance/erc20/transfer.d.ts.map +1 -0
- package/dist/issuance/erc20/transfer.js +38 -0
- package/dist/issuance/erc20/transferFrom.d.ts +34 -0
- package/dist/issuance/erc20/transferFrom.d.ts.map +1 -0
- package/dist/issuance/erc20/transferFrom.js +39 -0
- package/dist/issuance/erc721/approve.d.ts +32 -0
- package/dist/issuance/erc721/approve.d.ts.map +1 -0
- package/dist/issuance/erc721/approve.js +38 -0
- package/dist/issuance/erc721/burn.d.ts +30 -0
- package/dist/issuance/erc721/burn.d.ts.map +1 -0
- package/dist/issuance/erc721/burn.js +37 -0
- package/dist/issuance/erc721/deploy.d.ts +38 -0
- package/dist/issuance/erc721/deploy.d.ts.map +1 -0
- package/dist/issuance/erc721/deploy.js +51 -0
- package/dist/issuance/erc721/deployGated.d.ts +40 -0
- package/dist/issuance/erc721/deployGated.d.ts.map +1 -0
- package/dist/issuance/erc721/deployGated.js +58 -0
- package/dist/issuance/erc721/getInitData.d.ts +49 -0
- package/dist/issuance/erc721/getInitData.d.ts.map +1 -0
- package/dist/issuance/erc721/getInitData.js +51 -0
- package/dist/issuance/erc721/grantRole.d.ts +33 -0
- package/dist/issuance/erc721/grantRole.d.ts.map +1 -0
- package/dist/issuance/erc721/grantRole.js +41 -0
- package/dist/issuance/erc721/index.d.ts +345 -0
- package/dist/issuance/erc721/index.d.ts.map +1 -0
- package/dist/issuance/erc721/index.js +33 -0
- package/dist/issuance/erc721/initialize.d.ts +38 -0
- package/dist/issuance/erc721/initialize.d.ts.map +1 -0
- package/dist/issuance/erc721/initialize.js +40 -0
- package/dist/issuance/erc721/mint.d.ts +32 -0
- package/dist/issuance/erc721/mint.d.ts.map +1 -0
- package/dist/issuance/erc721/mint.js +38 -0
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts +23 -0
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc721/parseErc721DeployEvent.js +78 -0
- package/dist/issuance/erc721/recover.d.ts +34 -0
- package/dist/issuance/erc721/recover.d.ts.map +1 -0
- package/dist/issuance/erc721/recover.js +39 -0
- package/dist/issuance/erc721/renounceRole.d.ts +33 -0
- package/dist/issuance/erc721/renounceRole.d.ts.map +1 -0
- package/dist/issuance/erc721/renounceRole.js +41 -0
- package/dist/issuance/erc721/revokeRole.d.ts +33 -0
- package/dist/issuance/erc721/revokeRole.d.ts.map +1 -0
- package/dist/issuance/erc721/revokeRole.js +41 -0
- package/dist/issuance/erc721/setBaseURI.d.ts +30 -0
- package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -0
- package/dist/issuance/erc721/setBaseURI.js +36 -0
- package/dist/issuance/erc721/setTokenURI.d.ts +32 -0
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -0
- package/dist/issuance/erc721/setTokenURI.js +38 -0
- package/dist/issuance/erc721/transferFrom.d.ts +34 -0
- package/dist/issuance/erc721/transferFrom.d.ts.map +1 -0
- package/dist/issuance/erc721/transferFrom.js +39 -0
- package/dist/issuance/exports.d.ts +2 -0
- package/dist/issuance/exports.d.ts.map +1 -0
- package/dist/issuance/exports.js +1 -0
- package/dist/issuance/getInitData.d.ts +67 -10
- package/dist/issuance/getInitData.d.ts.map +1 -1
- package/dist/issuance/getInitData.js +52 -1
- package/dist/issuance/grantRole.js +1 -1
- package/dist/issuance/index.d.ts +682 -259
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/index.js +12 -33
- package/dist/issuance/mint.js +1 -1
- package/dist/issuance/proxy/deploy.d.ts +41 -0
- package/dist/issuance/proxy/deploy.d.ts.map +1 -0
- package/dist/issuance/proxy/deploy.js +68 -0
- package/dist/issuance/proxy/index.d.ts +59 -0
- package/dist/issuance/proxy/index.d.ts.map +1 -0
- package/dist/issuance/proxy/index.js +10 -0
- package/dist/issuance/proxy/upgrade.d.ts +34 -0
- package/dist/issuance/proxy/upgrade.d.ts.map +1 -0
- package/dist/issuance/proxy/upgrade.js +46 -0
- package/dist/issuance/recover.js +1 -1
- package/dist/issuance/renounceRole.js +1 -1
- package/dist/issuance/transfer.js +1 -1
- package/dist/next/fractions/index.d.ts +275 -0
- package/dist/next/fractions/index.d.ts.map +1 -0
- package/dist/next/fractions/index.js +13 -0
- package/dist/next/fractions/lending/buyback/buyback.routes.d.ts +27 -0
- package/dist/next/fractions/lending/buyback/buyback.routes.d.ts.map +1 -0
- package/dist/next/fractions/lending/buyback/buyback.routes.js +28 -0
- package/dist/next/fractions/lending/buyback/buyback.schema.d.ts +8 -0
- package/dist/next/fractions/lending/buyback/buyback.schema.d.ts.map +1 -0
- package/dist/next/fractions/lending/buyback/buyback.schema.js +13 -0
- package/dist/next/fractions/lending/createLendingSale.d.ts +130 -0
- package/dist/next/fractions/lending/createLendingSale.d.ts.map +1 -0
- package/dist/next/fractions/lending/createLendingSale.js +82 -0
- package/dist/next/fractions/lending/deployMarket/lending.routes.d.ts +44 -0
- package/dist/next/fractions/lending/deployMarket/lending.routes.d.ts.map +1 -0
- package/dist/next/fractions/lending/deployMarket/lending.routes.js +40 -0
- package/dist/next/fractions/lending/index.d.ts +188 -0
- package/dist/next/fractions/lending/index.d.ts.map +1 -0
- package/dist/next/fractions/lending/index.js +15 -0
- package/dist/next/fractions/lending/purchase/directPurchase.route.d.ts +33 -0
- package/dist/next/fractions/lending/purchase/directPurchase.route.d.ts.map +1 -0
- package/dist/next/fractions/lending/purchase/directPurchase.route.js +34 -0
- package/dist/next/fractions/lending/schemas.d.ts +25 -0
- package/dist/next/fractions/lending/schemas.d.ts.map +1 -0
- package/dist/next/fractions/lending/schemas.js +21 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +26 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts.map +1 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.js +28 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts +7 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts.map +1 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.schema.js +11 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.d.ts +39 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.js +40 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.schema.d.ts +26 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.schema.js +24 -0
- package/dist/next/fractions/platforms/index.d.ts +36 -0
- package/dist/next/fractions/platforms/index.d.ts.map +1 -0
- package/dist/next/fractions/platforms/index.js +5 -0
- package/dist/next/fractions/sales/createNftFractions.routes.d.ts +58 -0
- package/dist/next/fractions/sales/createNftFractions.routes.d.ts.map +1 -0
- package/dist/next/fractions/sales/createNftFractions.routes.js +59 -0
- package/dist/next/fractions/sales/createNftFractions.schema.d.ts +85 -0
- package/dist/next/fractions/sales/createNftFractions.schema.d.ts.map +1 -0
- package/dist/next/fractions/sales/createNftFractions.schema.js +67 -0
- package/dist/next/fractions/sales/index.d.ts +55 -0
- package/dist/next/fractions/sales/index.d.ts.map +1 -0
- package/dist/next/fractions/sales/index.js +5 -0
- package/dist/staking/index.d.ts +193 -202
- package/dist/staking/index.d.ts.map +1 -1
- package/dist/staking/index.js +14 -19
- package/dist/staking/platforms/common/platform.d.ts +7 -21
- package/dist/staking/platforms/common/platform.d.ts.map +1 -1
- package/dist/staking/platforms/common/platform.js +6 -8
- package/dist/staking/platforms/getPlatform/index.d.ts +9 -12
- package/dist/staking/platforms/getPlatform/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/index.js +5 -4
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +21 -49
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.js +20 -10
- package/dist/staking/platforms/index.d.ts +19 -21
- package/dist/staking/platforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/index.js +8 -9
- package/dist/staking/platforms/searchPlatforms/index.d.ts +11 -14
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/index.js +5 -4
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +27 -73
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +12 -9
- package/dist/staking/pools/common/pool.d.ts +9 -25
- package/dist/staking/pools/common/pool.d.ts.map +1 -1
- package/dist/staking/pools/common/pool.js +5 -7
- package/dist/staking/pools/getPool/index.d.ts +4 -7
- package/dist/staking/pools/getPool/index.d.ts.map +1 -1
- package/dist/staking/pools/getPool/index.js +5 -4
- package/dist/staking/pools/getPool/v0/getPool.d.ts +14 -32
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +1 -1
- package/dist/staking/pools/getPool/v0/getPool.js +20 -9
- package/dist/staking/pools/index.d.ts +10 -12
- package/dist/staking/pools/index.d.ts.map +1 -1
- package/dist/staking/pools/index.js +8 -9
- package/dist/staking/pools/searchPools/index.d.ts +7 -10
- package/dist/staking/pools/searchPools/index.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/index.js +5 -4
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +19 -52
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.js +11 -8
- package/dist/staking/roles/common/role.d.ts +4 -10
- package/dist/staking/roles/common/role.d.ts.map +1 -1
- package/dist/staking/roles/common/role.js +2 -4
- package/dist/staking/roles/common/roleAssignment.d.ts +9 -25
- package/dist/staking/roles/common/roleAssignment.d.ts.map +1 -1
- package/dist/staking/roles/common/roleAssignment.js +5 -7
- package/dist/staking/roles/common/roleEvent.d.ts +8 -26
- package/dist/staking/roles/common/roleEvent.d.ts.map +1 -1
- package/dist/staking/roles/common/roleEvent.js +3 -5
- package/dist/staking/roles/getRoles/index.d.ts +3 -6
- package/dist/staking/roles/getRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/getRoles/index.js +5 -4
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts +22 -28
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -1
- package/dist/staking/roles/getRoles/v0/getRoles.js +9 -6
- package/dist/staking/roles/grantRole/index.d.ts +7 -10
- package/dist/staking/roles/grantRole/index.d.ts.map +1 -1
- package/dist/staking/roles/grantRole/index.js +5 -4
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +23 -60
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.js +9 -6
- package/dist/staking/roles/index.d.ts +25 -27
- package/dist/staking/roles/index.d.ts.map +1 -1
- package/dist/staking/roles/index.js +12 -13
- package/dist/staking/roles/searchRoleEvents/index.d.ts +9 -12
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/index.js +5 -4
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +21 -60
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +11 -8
- package/dist/staking/roles/searchRoles/index.d.ts +9 -12
- package/dist/staking/roles/searchRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/index.js +5 -4
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +21 -60
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.js +17 -11
- package/dist/staking/stakes/common/stake.d.ts +14 -40
- package/dist/staking/stakes/common/stake.d.ts.map +1 -1
- package/dist/staking/stakes/common/stake.js +18 -20
- package/dist/staking/stakes/common/stakeEvent.d.ts +9 -27
- package/dist/staking/stakes/common/stakeEvent.d.ts.map +1 -1
- package/dist/staking/stakes/common/stakeEvent.js +4 -6
- package/dist/staking/stakes/getStake/index.d.ts +4 -7
- package/dist/staking/stakes/getStake/index.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/index.js +5 -4
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +14 -32
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.js +19 -9
- package/dist/staking/stakes/index.d.ts +20 -22
- package/dist/staking/stakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/index.js +10 -11
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +9 -12
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/index.js +5 -4
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +21 -60
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +13 -9
- package/dist/staking/stakes/searchStakes/index.d.ts +9 -12
- package/dist/staking/stakes/searchStakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/index.js +5 -4
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +21 -60
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.js +13 -27
- package/dist/staking-templates/index.d.ts +100 -100
- package/dist/staking-templates/index.js +1 -1
- package/dist/staking-templates/templates/common/amount.d.ts +5 -11
- package/dist/staking-templates/templates/common/amount.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/amount.js +6 -8
- package/dist/staking-templates/templates/common/amountMult.d.ts +2 -2
- package/dist/staking-templates/templates/common/amountMult.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/amountMult.js +3 -4
- package/dist/staking-templates/templates/common/erc20Input.d.ts +4 -10
- package/dist/staking-templates/templates/common/erc20Input.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/erc20Input.js +4 -6
- package/dist/staking-templates/templates/common/erc20Reward.d.ts +4 -10
- package/dist/staking-templates/templates/common/erc20Reward.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/erc20Reward.js +4 -7
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts +2 -2
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/getCreatePoolEvent.js +3 -3
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts +2 -2
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.js +4 -4
- package/dist/staking-templates/templates/common/getReward.d.ts +10 -10
- package/dist/staking-templates/templates/common/getReward.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/getReward.js +2 -2
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts +3 -3
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/getStakeEvent.js +4 -4
- package/dist/staking-templates/templates/common/lock.d.ts +4 -10
- package/dist/staking-templates/templates/common/lock.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/lock.js +5 -7
- package/dist/staking-templates/templates/common/lockMult.d.ts +2 -2
- package/dist/staking-templates/templates/common/lockMult.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/lockMult.js +3 -4
- package/dist/staking-templates/templates/common/partialUnstake.d.ts +12 -12
- package/dist/staking-templates/templates/common/partialUnstake.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/partialUnstake.js +4 -4
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts +5 -11
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/rewardDistribution.js +5 -8
- package/dist/staking-templates/templates/common/time.d.ts +1 -1
- package/dist/staking-templates/templates/common/time.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/time.js +2 -2
- package/dist/staking-templates/templates/common/unstake.d.ts +10 -10
- package/dist/staking-templates/templates/common/unstake.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/unstake.js +2 -2
- package/dist/staking-templates/templates/reputation/index.d.ts +30 -30
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts +11 -11
- package/dist/staking-templates/templates/reputation/v0/createPlatform.js +3 -3
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts +24 -24
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts.map +1 -1
- package/dist/staking-templates/templates/reputation/v0/createPool.js +6 -6
- package/dist/staking-templates/templates/reputation/v0/index.d.ts +30 -30
- package/dist/staking-templates/templates/reputation/v0/index.js +5 -5
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts +11 -11
- package/dist/staking-templates/templates/reputation/v0/restake.js +4 -4
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts +12 -12
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts.map +1 -1
- package/dist/staking-templates/templates/reputation/v0/stake.js +5 -5
- package/dist/staking-templates/templates/reputationLock/index.d.ts +37 -37
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +11 -11
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.js +3 -3
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts +36 -36
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +1 -1
- package/dist/staking-templates/templates/reputationLock/v0/createPool.js +7 -7
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts +37 -37
- package/dist/staking-templates/templates/reputationLock/v0/index.js +5 -5
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts +13 -13
- package/dist/staking-templates/templates/reputationLock/v0/restake.js +5 -5
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts +14 -14
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts.map +1 -1
- package/dist/staking-templates/templates/reputationLock/v0/stake.js +5 -5
- package/dist/staking-templates/templates/rwa/index.d.ts +33 -33
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts +11 -11
- package/dist/staking-templates/templates/rwa/v0/createPlatform.js +3 -3
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts +20 -20
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts.map +1 -1
- package/dist/staking-templates/templates/rwa/v0/createPool.js +4 -4
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts +12 -12
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts.map +1 -1
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.js +4 -4
- package/dist/staking-templates/templates/rwa/v0/index.d.ts +33 -33
- package/dist/staking-templates/templates/rwa/v0/index.js +5 -5
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts +11 -11
- package/dist/staking-templates/templates/rwa/v0/restake.js +4 -4
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts +12 -12
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts.map +1 -1
- package/dist/staking-templates/templates/rwa/v0/stake.js +5 -5
- package/dist/stakingTemplates/index.d.ts +723 -0
- package/dist/stakingTemplates/index.d.ts.map +1 -0
- package/dist/stakingTemplates/index.js +13 -0
- package/dist/stakingTemplates/templates/common/amount.d.ts +7 -0
- package/dist/stakingTemplates/templates/common/amount.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/amount.js +15 -0
- package/dist/stakingTemplates/templates/common/amountMult.d.ts +3 -0
- package/dist/stakingTemplates/templates/common/amountMult.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/amountMult.js +24 -0
- package/dist/stakingTemplates/templates/common/erc20Input.d.ts +6 -0
- package/dist/stakingTemplates/templates/common/erc20Input.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/erc20Input.js +16 -0
- package/dist/stakingTemplates/templates/common/erc20Reward.d.ts +6 -0
- package/dist/stakingTemplates/templates/common/erc20Reward.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/erc20Reward.js +15 -0
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts +17 -0
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.js +51 -0
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts +20 -0
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.js +49 -0
- package/dist/stakingTemplates/templates/common/getReward.d.ts +26 -0
- package/dist/stakingTemplates/templates/common/getReward.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/getReward.js +37 -0
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts +17 -0
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/getStakeEvent.js +55 -0
- package/dist/stakingTemplates/templates/common/lock.d.ts +6 -0
- package/dist/stakingTemplates/templates/common/lock.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/lock.js +18 -0
- package/dist/stakingTemplates/templates/common/lockMult.d.ts +3 -0
- package/dist/stakingTemplates/templates/common/lockMult.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/lockMult.js +16 -0
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts +27 -0
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/partialUnstake.js +42 -0
- package/dist/stakingTemplates/templates/common/rewardDistribution.d.ts +7 -0
- package/dist/stakingTemplates/templates/common/rewardDistribution.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/rewardDistribution.js +16 -0
- package/dist/stakingTemplates/templates/common/templates.d.ts +61 -0
- package/dist/stakingTemplates/templates/common/templates.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/templates.js +8 -0
- package/dist/stakingTemplates/templates/common/time.d.ts +2 -0
- package/dist/stakingTemplates/templates/common/time.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/time.js +4 -0
- package/dist/stakingTemplates/templates/common/unstake.d.ts +26 -0
- package/dist/stakingTemplates/templates/common/unstake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/unstake.js +37 -0
- package/dist/stakingTemplates/templates/reputation/common.d.ts +23 -0
- package/dist/stakingTemplates/templates/reputation/common.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/common.js +3 -0
- package/dist/stakingTemplates/templates/reputation/index.d.ts +231 -0
- package/dist/stakingTemplates/templates/reputation/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/index.js +5 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts +31 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.js +57 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts +39 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPool.js +86 -0
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts +231 -0
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/index.js +26 -0
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts +26 -0
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/restake.js +41 -0
- package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts +26 -0
- package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/stake.js +46 -0
- package/dist/stakingTemplates/templates/reputationLock/common.d.ts +23 -0
- package/dist/stakingTemplates/templates/reputationLock/common.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/common.js +3 -0
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts +242 -0
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/index.js +5 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts +31 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.js +57 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts +48 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.js +100 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts +242 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/index.js +26 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts +27 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.js +45 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts +27 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.js +47 -0
- package/dist/stakingTemplates/templates/rwa/common.d.ts +23 -0
- package/dist/stakingTemplates/templates/rwa/common.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/common.js +3 -0
- package/dist/stakingTemplates/templates/rwa/index.d.ts +254 -0
- package/dist/stakingTemplates/templates/rwa/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/index.js +5 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts +31 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.js +57 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts +38 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPool.js +80 -0
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts +26 -0
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.js +42 -0
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts +254 -0
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/index.js +28 -0
- package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts +26 -0
- package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/restake.js +41 -0
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts +26 -0
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/stake.js +46 -0
- package/dist/v0/fractions/index.d.ts +76 -15
- package/dist/v0/fractions/index.d.ts.map +1 -1
- package/dist/v0/fractions/networkStatistics.route.d.ts +208 -87
- package/dist/v0/fractions/networkStatistics.route.d.ts.map +1 -1
- package/dist/v0/fractions/networkStatistics.route.js +99 -228
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts +17 -17
- package/dist/v1/fractions/lending/buyback/buyback.routes.js +2 -2
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts +5 -16
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts.map +1 -1
- package/dist/v1/fractions/lending/buyback/buyback.schema.js +5 -4
- package/dist/v1/fractions/lending/createLendingSale.d.ts +124 -406
- package/dist/v1/fractions/lending/createLendingSale.d.ts.map +1 -1
- package/dist/v1/fractions/lending/createLendingSale.js +20 -22
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts +37 -41
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts.map +1 -1
- package/dist/v1/fractions/lending/deployMarket/lending.routes.js +13 -7
- package/dist/v1/fractions/lending/index.d.ts +55 -72
- package/dist/v1/fractions/lending/index.d.ts.map +1 -1
- package/dist/v1/fractions/lending/index.js +2 -2
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts +23 -34
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts.map +1 -1
- package/dist/v1/fractions/lending/purchase/directPurchase.route.js +9 -12
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +13 -13
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.js +2 -2
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts +4 -13
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts.map +1 -1
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.js +3 -2
- package/dist/v1/fractions/schemas.d.ts +14 -102
- package/dist/v1/fractions/schemas.d.ts.map +1 -1
- package/dist/v1/fractions/schemas.js +13 -28
- package/package.json +23 -19
|
@@ -1,90 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
txHash: string;
|
|
20
|
-
createdAt: Date;
|
|
21
|
-
updatedAt: Date;
|
|
22
|
-
from: `0x${string}`;
|
|
23
|
-
metadata?: unknown;
|
|
24
|
-
}, {
|
|
25
|
-
type: string;
|
|
26
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
27
|
-
platform: `0x${string}`;
|
|
28
|
-
campaignId: string;
|
|
29
|
-
txHash: string;
|
|
30
|
-
createdAt: Date;
|
|
31
|
-
updatedAt: Date;
|
|
32
|
-
from: `0x${string}`;
|
|
33
|
-
metadata?: unknown;
|
|
34
|
-
}>;
|
|
35
|
-
export declare function createSearchActivityV0App<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
36
|
-
in: {
|
|
37
|
-
json: {
|
|
38
|
-
filter: {
|
|
39
|
-
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
40
|
-
platform?: `0x${string}` | undefined;
|
|
41
|
-
campaignId?: string | number | bigint | undefined;
|
|
42
|
-
};
|
|
43
|
-
page: {
|
|
44
|
-
skip: number;
|
|
45
|
-
limit: number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
out: {
|
|
50
|
-
json: {
|
|
51
|
-
filter: {
|
|
52
|
-
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
53
|
-
platform?: `0x${string}` | undefined;
|
|
54
|
-
campaignId?: bigint | undefined;
|
|
55
|
-
};
|
|
56
|
-
page: {
|
|
57
|
-
skip: number;
|
|
58
|
-
limit: number;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
63
|
-
in: {
|
|
64
|
-
json: {
|
|
65
|
-
filter: {
|
|
66
|
-
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
67
|
-
platform?: `0x${string}` | undefined;
|
|
68
|
-
campaignId?: string | number | bigint | undefined;
|
|
69
|
-
};
|
|
70
|
-
page: {
|
|
71
|
-
skip: number;
|
|
72
|
-
limit: number;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
out: {
|
|
77
|
-
json: {
|
|
78
|
-
filter: {
|
|
79
|
-
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
80
|
-
platform?: `0x${string}` | undefined;
|
|
81
|
-
campaignId?: bigint | undefined;
|
|
82
|
-
};
|
|
83
|
-
page: {
|
|
84
|
-
skip: number;
|
|
85
|
-
limit: number;
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { FractionSaleEventEnum } from "@evergonlabs/tmi-protocol-indexer/schema";
|
|
3
|
+
export declare const SearchActivityV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
4
|
+
"/": {
|
|
5
|
+
$post: {
|
|
6
|
+
input: {
|
|
7
|
+
json: {
|
|
8
|
+
page: {
|
|
9
|
+
skip: number;
|
|
10
|
+
limit: number;
|
|
11
|
+
};
|
|
12
|
+
filter: {
|
|
13
|
+
chainId?: unknown;
|
|
14
|
+
platform?: string | undefined;
|
|
15
|
+
campaignId?: string | undefined;
|
|
16
|
+
operationType?: FractionSaleEventEnum | undefined;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
86
19
|
};
|
|
20
|
+
output: {
|
|
21
|
+
chainId: 1 | 11155111 | 31337 | 72080;
|
|
22
|
+
platform: `0x${string}`;
|
|
23
|
+
campaignId: string & z.core.$brand<"Int256">;
|
|
24
|
+
transactionHash: `0x${string}`;
|
|
25
|
+
from: `0x${string}`;
|
|
26
|
+
createdAt: string & z.core.$brand<"ISO">;
|
|
27
|
+
updatedAt: string & z.core.$brand<"ISO">;
|
|
28
|
+
metadata: {
|
|
29
|
+
type: FractionSaleEventEnum.CREATED;
|
|
30
|
+
} | {
|
|
31
|
+
type: FractionSaleEventEnum.STATUS_UPDATE;
|
|
32
|
+
status: import("@evergonlabs/tmi-protocol-indexer/schema").FractionSaleStatusEnum;
|
|
33
|
+
} | {
|
|
34
|
+
type: FractionSaleEventEnum.PURCHASE;
|
|
35
|
+
purchaser: `0x${string}`;
|
|
36
|
+
priceId: string;
|
|
37
|
+
amountOfFractions: string & z.core.$brand<"Int256">;
|
|
38
|
+
amountPaid: string & z.core.$brand<"Int256">;
|
|
39
|
+
amountBurnt: string & z.core.$brand<"Int256">;
|
|
40
|
+
} | {
|
|
41
|
+
type: FractionSaleEventEnum.CLAIM;
|
|
42
|
+
receiver: `0x${string}`;
|
|
43
|
+
claimId: string;
|
|
44
|
+
fractionsBurnt: string & z.core.$brand<"Int256">;
|
|
45
|
+
received: {
|
|
46
|
+
tokenAddress: `0x${string}`;
|
|
47
|
+
amount: string & z.core.$brand<"Int256">;
|
|
48
|
+
tokenId: string & z.core.$brand<"Int256">;
|
|
49
|
+
}[];
|
|
50
|
+
} | {
|
|
51
|
+
type: FractionSaleEventEnum.REFUND;
|
|
52
|
+
amount: string & z.core.$brand<"Int256">;
|
|
53
|
+
} | {
|
|
54
|
+
type: FractionSaleEventEnum.WITHDRAW;
|
|
55
|
+
amount: string & z.core.$brand<"Int256">;
|
|
56
|
+
} | {
|
|
57
|
+
type: FractionSaleEventEnum.WITHDRAW_NON_WRAPPED;
|
|
58
|
+
receiver: `0x${string}`;
|
|
59
|
+
received: {
|
|
60
|
+
tokenAddress: `0x${string}`;
|
|
61
|
+
amount: string & z.core.$brand<"Int256">;
|
|
62
|
+
tokenId: string & z.core.$brand<"Int256">;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
}[];
|
|
66
|
+
outputFormat: "json";
|
|
67
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
87
68
|
};
|
|
88
69
|
};
|
|
89
|
-
},
|
|
70
|
+
}, "/">>;
|
|
90
71
|
//# sourceMappingURL=searchActivity.route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchActivity.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/searchActivity.route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"searchActivity.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/searchActivity.route.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAQjF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAmE3B,CAAC"}
|
|
@@ -1,28 +1,16 @@
|
|
|
1
|
+
import { and, desc, eq, sql } from "@ponder/client";
|
|
1
2
|
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { resolver, validator } from "hono-openapi";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { FractionSaleEventEnum } from "@evergonlabs/tmi-protocol-indexer/schema";
|
|
6
|
+
import { toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
7
|
+
import { createController } from "../../common/controller.js";
|
|
8
|
+
import { CampaignIdSchema, FractionsChainId, PlatformContractAddress } from "../../common/index.js";
|
|
6
9
|
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
7
10
|
import { PageSchema } from "../../common/models/page.js";
|
|
8
|
-
import {
|
|
9
|
-
export const
|
|
10
|
-
.
|
|
11
|
-
chainId: TmiChainIdSchema,
|
|
12
|
-
platform: PlatformContractAddress,
|
|
13
|
-
campaignId: z.coerce.string(),
|
|
14
|
-
from: AddressSchema,
|
|
15
|
-
type: z.coerce.string(),
|
|
16
|
-
metadata: z.unknown(),
|
|
17
|
-
txHash: z.coerce.string(),
|
|
18
|
-
createdAt: z.date(),
|
|
19
|
-
updatedAt: z.date(),
|
|
20
|
-
})
|
|
21
|
-
.openapi({
|
|
22
|
-
ref: "FractionsActivity",
|
|
23
|
-
});
|
|
24
|
-
export function createSearchActivityV0App(factory) {
|
|
25
|
-
return factory.createHandlers(describeRoute({
|
|
11
|
+
import { FractionActivityEntrySchema } from "./activityUtils.js";
|
|
12
|
+
export const SearchActivityV0 = createController({
|
|
13
|
+
build: (factory) => factory.createApp().post("/", describeRoute({
|
|
26
14
|
summary: "Search activity events",
|
|
27
15
|
description: "Search activity events by users, platforms and pools",
|
|
28
16
|
tags: ["Fractions"],
|
|
@@ -31,7 +19,7 @@ export function createSearchActivityV0App(factory) {
|
|
|
31
19
|
description: "Returns list of activity events within specified platforms and pools",
|
|
32
20
|
content: {
|
|
33
21
|
"application/json": {
|
|
34
|
-
schema: resolver(z.array(
|
|
22
|
+
schema: resolver(z.array(FractionActivityEntrySchema)),
|
|
35
23
|
},
|
|
36
24
|
},
|
|
37
25
|
},
|
|
@@ -39,29 +27,31 @@ export function createSearchActivityV0App(factory) {
|
|
|
39
27
|
}), validator("json", z.object({
|
|
40
28
|
page: PageSchema,
|
|
41
29
|
filter: z.object({
|
|
42
|
-
chainId:
|
|
30
|
+
chainId: FractionsChainId.optional(),
|
|
43
31
|
platform: PlatformContractAddress.optional(),
|
|
44
32
|
campaignId: CampaignIdSchema.optional(),
|
|
33
|
+
operationType: z.nativeEnum(FractionSaleEventEnum).optional(),
|
|
45
34
|
}),
|
|
46
35
|
})), async (c) => {
|
|
47
36
|
const { page, filter } = c.req.valid("json");
|
|
48
37
|
const { fractions: { fractionsSaleActivity }, } = indexerSchemas;
|
|
49
|
-
const result = await indexerClient.db.query.fractionsSaleActivity.findMany({
|
|
50
|
-
where: and(filter.chainId ? eq(fractionsSaleActivity.chainId, Number(filter.chainId)) : undefined, filter.platform ? eq(fractionsSaleActivity.diamondAddress, filter.platform) : undefined, typeof filter.campaignId === "bigint" ? eq(fractionsSaleActivity.saleId, filter.campaignId) : undefined
|
|
38
|
+
const result = await c.get("indexerClient").db.query.fractionsSaleActivity.findMany({
|
|
39
|
+
where: and(filter.chainId ? eq(fractionsSaleActivity.chainId, Number(filter.chainId)) : undefined, filter.platform ? eq(fractionsSaleActivity.diamondAddress, filter.platform) : undefined, typeof filter.campaignId === "bigint" ? eq(fractionsSaleActivity.saleId, filter.campaignId) : undefined, filter.operationType
|
|
40
|
+
? sql `${fractionsSaleActivity.metadata}->>'type' = ${filter.operationType}`
|
|
41
|
+
: undefined),
|
|
51
42
|
limit: page.limit,
|
|
52
43
|
offset: page.skip,
|
|
53
|
-
orderBy: fractionsSaleActivity.createdAt,
|
|
44
|
+
orderBy: desc(fractionsSaleActivity.createdAt),
|
|
54
45
|
});
|
|
55
|
-
return c.json(result.map((i) =>
|
|
46
|
+
return c.json(result.map((i) => FractionActivityEntrySchema.parse({
|
|
56
47
|
chainId: i.chainId,
|
|
57
48
|
platform: i.diamondAddress,
|
|
58
|
-
campaignId: i.saleId,
|
|
59
|
-
type: i.type,
|
|
49
|
+
campaignId: toInt256Json(i.saleId),
|
|
60
50
|
metadata: i.metadata,
|
|
61
|
-
from: i.
|
|
62
|
-
|
|
63
|
-
createdAt: i.createdAt,
|
|
64
|
-
updatedAt: i.updatedAt,
|
|
65
|
-
}))
|
|
66
|
-
})
|
|
67
|
-
}
|
|
51
|
+
from: i.from,
|
|
52
|
+
transactionHash: i.transactionHash,
|
|
53
|
+
createdAt: i.createdAt.toISOString(),
|
|
54
|
+
updatedAt: i.updatedAt.toISOString(),
|
|
55
|
+
})));
|
|
56
|
+
}),
|
|
57
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const SearchSalesV0: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
|
|
2
|
+
"/": {
|
|
3
|
+
$post: {
|
|
4
|
+
input: {
|
|
5
|
+
json: {
|
|
6
|
+
page: {
|
|
7
|
+
skip: number;
|
|
8
|
+
limit: number;
|
|
9
|
+
};
|
|
10
|
+
filter: {
|
|
11
|
+
chainId?: unknown;
|
|
12
|
+
owner?: string | undefined;
|
|
13
|
+
platform?: string | undefined;
|
|
14
|
+
campaignId?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
output: never;
|
|
19
|
+
outputFormat: "json";
|
|
20
|
+
status: 200;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, "/">>;
|
|
24
|
+
//# sourceMappingURL=searchSales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchSales.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/searchSales/searchSales.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;QA0DxB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { and, eq } from "@ponder/client";
|
|
2
|
+
import { describeRoute } from "hono-openapi";
|
|
3
|
+
import { resolver, validator } from "hono-openapi";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { createController } from "../../../common/controller.js";
|
|
6
|
+
import { AddressSchema, CampaignIdSchema, FractionsChainId, PlatformContractAddress } from "../../../common/index.js";
|
|
7
|
+
import { indexerSchemas } from "../../../common/indexer/schemas.js";
|
|
8
|
+
import { PageSchema } from "../../../common/models/page.js";
|
|
9
|
+
import { FractionsSaleSchema, toFractionsSale } from "../common/fractionsSale.js";
|
|
10
|
+
export const SearchSalesV0 = createController({
|
|
11
|
+
build: (factory) => factory.createApp().post("/", describeRoute({
|
|
12
|
+
summary: "Search sale events",
|
|
13
|
+
description: "Search sale events by users, platforms and pools",
|
|
14
|
+
tags: ["Fractions"],
|
|
15
|
+
responses: {
|
|
16
|
+
200: {
|
|
17
|
+
description: "Returns list of sales events within specified platforms and pools",
|
|
18
|
+
content: {
|
|
19
|
+
"application/json": {
|
|
20
|
+
schema: resolver(z.array(FractionsSaleSchema)),
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
}), validator("json", z.object({
|
|
26
|
+
page: PageSchema,
|
|
27
|
+
filter: z.object({
|
|
28
|
+
chainId: FractionsChainId.optional(),
|
|
29
|
+
owner: AddressSchema.optional(),
|
|
30
|
+
platform: PlatformContractAddress.optional(),
|
|
31
|
+
campaignId: CampaignIdSchema.optional(),
|
|
32
|
+
}),
|
|
33
|
+
})), async (c) => {
|
|
34
|
+
const { page, filter } = c.req.valid("json");
|
|
35
|
+
const { fractions: { fractionsSales }, } = indexerSchemas;
|
|
36
|
+
const result = await c.get("indexerClient").db.query.fractionsSales.findMany({
|
|
37
|
+
with: {
|
|
38
|
+
fractionsAsset: true,
|
|
39
|
+
wrappedAssets: { with: { asset: true } },
|
|
40
|
+
fundingAssets: { with: { asset: true } },
|
|
41
|
+
},
|
|
42
|
+
where: and(filter.chainId ? eq(fractionsSales.chainId, Number(filter.chainId)) : undefined, filter.owner ? eq(fractionsSales.creator, filter.owner) : undefined, filter.platform ? eq(fractionsSales.diamondAddress, filter.platform) : undefined, typeof filter.campaignId === "number" ? eq(fractionsSales.saleId, BigInt(filter.campaignId)) : undefined),
|
|
43
|
+
limit: page.limit,
|
|
44
|
+
offset: page.skip,
|
|
45
|
+
orderBy: fractionsSales.createdAt,
|
|
46
|
+
});
|
|
47
|
+
const sales = result.map((x) => toFractionsSale(x, x.fractionsAsset, x.wrappedAssets, x.fundingAssets));
|
|
48
|
+
return c.json(sales, 200);
|
|
49
|
+
}),
|
|
50
|
+
});
|
|
@@ -2,7 +2,7 @@ import { Factory } from "hono/factory";
|
|
|
2
2
|
import { AppContext } from "../../../../common/context.js";
|
|
3
3
|
export declare function createSearchSalesV0App(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
4
|
status: "created" | "approved" | "rejected" | "finalized" | "refunded";
|
|
5
|
-
chainId:
|
|
5
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
6
6
|
createdAt: string;
|
|
7
7
|
updatedAt: string;
|
|
8
8
|
campaignId: number;
|
|
@@ -12,7 +12,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
12
12
|
asset: {
|
|
13
13
|
symbol: string;
|
|
14
14
|
type: string;
|
|
15
|
-
chainId:
|
|
15
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
16
16
|
address: `0x${string}`;
|
|
17
17
|
name: string;
|
|
18
18
|
tokenId: string | null;
|
|
@@ -43,7 +43,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
43
43
|
asset: {
|
|
44
44
|
symbol: string;
|
|
45
45
|
type: string;
|
|
46
|
-
chainId:
|
|
46
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
47
47
|
address: `0x${string}`;
|
|
48
48
|
name: string;
|
|
49
49
|
tokenId: string | null;
|
|
@@ -56,7 +56,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
56
56
|
asset: {
|
|
57
57
|
symbol: string;
|
|
58
58
|
type: string;
|
|
59
|
-
chainId:
|
|
59
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
60
60
|
address: `0x${string}`;
|
|
61
61
|
name: string;
|
|
62
62
|
tokenId: string | null;
|
|
@@ -69,7 +69,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
69
69
|
in: {
|
|
70
70
|
json: {
|
|
71
71
|
filter: {
|
|
72
|
-
chainId?:
|
|
72
|
+
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
73
73
|
campaignId?: string | number | bigint | undefined;
|
|
74
74
|
platform?: `0x${string}` | undefined;
|
|
75
75
|
owner?: `0x${string}` | undefined;
|
|
@@ -83,7 +83,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
83
83
|
out: {
|
|
84
84
|
json: {
|
|
85
85
|
filter: {
|
|
86
|
-
chainId?:
|
|
86
|
+
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
87
87
|
campaignId?: bigint | undefined;
|
|
88
88
|
platform?: `0x${string}` | undefined;
|
|
89
89
|
owner?: `0x${string}` | undefined;
|
|
@@ -96,7 +96,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
96
96
|
};
|
|
97
97
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
98
98
|
status: "created" | "approved" | "rejected" | "finalized" | "refunded";
|
|
99
|
-
chainId:
|
|
99
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
102
|
campaignId: number;
|
|
@@ -106,7 +106,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
106
106
|
asset: {
|
|
107
107
|
symbol: string;
|
|
108
108
|
type: string;
|
|
109
|
-
chainId:
|
|
109
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
110
110
|
address: `0x${string}`;
|
|
111
111
|
name: string;
|
|
112
112
|
tokenId: string | null;
|
|
@@ -137,7 +137,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
137
137
|
asset: {
|
|
138
138
|
symbol: string;
|
|
139
139
|
type: string;
|
|
140
|
-
chainId:
|
|
140
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
141
141
|
address: `0x${string}`;
|
|
142
142
|
name: string;
|
|
143
143
|
tokenId: string | null;
|
|
@@ -150,7 +150,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
150
150
|
asset: {
|
|
151
151
|
symbol: string;
|
|
152
152
|
type: string;
|
|
153
|
-
chainId:
|
|
153
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
154
154
|
address: `0x${string}`;
|
|
155
155
|
name: string;
|
|
156
156
|
tokenId: string | null;
|
|
@@ -163,7 +163,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
163
163
|
in: {
|
|
164
164
|
json: {
|
|
165
165
|
filter: {
|
|
166
|
-
chainId?:
|
|
166
|
+
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
167
167
|
campaignId?: string | number | bigint | undefined;
|
|
168
168
|
platform?: `0x${string}` | undefined;
|
|
169
169
|
owner?: `0x${string}` | undefined;
|
|
@@ -177,7 +177,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
177
177
|
out: {
|
|
178
178
|
json: {
|
|
179
179
|
filter: {
|
|
180
|
-
chainId?:
|
|
180
|
+
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
181
181
|
campaignId?: bigint | undefined;
|
|
182
182
|
platform?: `0x${string}` | undefined;
|
|
183
183
|
owner?: `0x${string}` | undefined;
|
|
@@ -190,7 +190,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
190
190
|
};
|
|
191
191
|
}, Promise<Response & import("hono").TypedResponse<{
|
|
192
192
|
status: "created" | "approved" | "rejected" | "finalized" | "refunded";
|
|
193
|
-
chainId:
|
|
193
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
194
194
|
createdAt: string;
|
|
195
195
|
updatedAt: string;
|
|
196
196
|
campaignId: number;
|
|
@@ -200,7 +200,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
200
200
|
asset: {
|
|
201
201
|
symbol: string;
|
|
202
202
|
type: string;
|
|
203
|
-
chainId:
|
|
203
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
204
204
|
address: `0x${string}`;
|
|
205
205
|
name: string;
|
|
206
206
|
tokenId: string | null;
|
|
@@ -231,7 +231,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
231
231
|
asset: {
|
|
232
232
|
symbol: string;
|
|
233
233
|
type: string;
|
|
234
|
-
chainId:
|
|
234
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
235
235
|
address: `0x${string}`;
|
|
236
236
|
name: string;
|
|
237
237
|
tokenId: string | null;
|
|
@@ -244,7 +244,7 @@ export declare function createSearchSalesV0App(factory: Factory<AppContext>): [i
|
|
|
244
244
|
asset: {
|
|
245
245
|
symbol: string;
|
|
246
246
|
type: string;
|
|
247
|
-
chainId:
|
|
247
|
+
chainId: 1 | 31337 | 11155111 | 72080;
|
|
248
248
|
address: `0x${string}`;
|
|
249
249
|
name: string;
|
|
250
250
|
tokenId: string | null;
|
|
@@ -4,7 +4,7 @@ import { and, eq } from "@ponder/client";
|
|
|
4
4
|
import { z } from "../../../../common/zod.js";
|
|
5
5
|
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
6
6
|
import { PageSchema } from "../../../../common/models/page.js";
|
|
7
|
-
import { AddressSchema, PlatformContractAddress, CampaignIdSchema,
|
|
7
|
+
import { AddressSchema, PlatformContractAddress, CampaignIdSchema, FractionsChainId, } from "../../../../common/index.js";
|
|
8
8
|
import { FractionsSaleSchema, toFractionsSale } from "../../common/fractionsSale.js";
|
|
9
9
|
export function createSearchSalesV0App(factory) {
|
|
10
10
|
return factory.createHandlers(describeRoute({
|
|
@@ -24,7 +24,7 @@ export function createSearchSalesV0App(factory) {
|
|
|
24
24
|
}), validator("json", z.object({
|
|
25
25
|
page: PageSchema,
|
|
26
26
|
filter: z.object({
|
|
27
|
-
chainId:
|
|
27
|
+
chainId: FractionsChainId.optional(),
|
|
28
28
|
owner: AddressSchema.optional(),
|
|
29
29
|
platform: PlatformContractAddress.optional(),
|
|
30
30
|
campaignId: CampaignIdSchema.optional(),
|
|
@@ -1,58 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
21
|
-
campaignId?: bigint | undefined;
|
|
22
|
-
platform?: `0x${string}` | undefined;
|
|
23
|
-
};
|
|
24
|
-
page: {
|
|
25
|
-
skip: number;
|
|
26
|
-
limit: number;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<AppContext, string, {
|
|
31
|
-
in: {
|
|
32
|
-
json: {
|
|
33
|
-
filter: {
|
|
34
|
-
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
35
|
-
campaignId?: string | number | bigint | undefined;
|
|
36
|
-
platform?: `0x${string}` | undefined;
|
|
37
|
-
};
|
|
38
|
-
page: {
|
|
39
|
-
skip: number;
|
|
40
|
-
limit: number;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
out: {
|
|
45
|
-
json: {
|
|
46
|
-
filter: {
|
|
47
|
-
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
48
|
-
campaignId?: bigint | undefined;
|
|
49
|
-
platform?: `0x${string}` | undefined;
|
|
50
|
-
};
|
|
51
|
-
page: {
|
|
52
|
-
skip: number;
|
|
53
|
-
limit: number;
|
|
54
|
-
};
|
|
1
|
+
export declare const SearchWithdrawalV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
|
+
"/": {
|
|
3
|
+
$post: {
|
|
4
|
+
input: {
|
|
5
|
+
json: {
|
|
6
|
+
page: {
|
|
7
|
+
skip: number;
|
|
8
|
+
limit: number;
|
|
9
|
+
};
|
|
10
|
+
filter: {
|
|
11
|
+
chainId?: unknown;
|
|
12
|
+
platform?: string | undefined;
|
|
13
|
+
campaignId?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
output: never;
|
|
18
|
+
outputFormat: "json";
|
|
19
|
+
status: 200;
|
|
55
20
|
};
|
|
56
21
|
};
|
|
57
|
-
},
|
|
22
|
+
}, "/">>;
|
|
58
23
|
//# sourceMappingURL=searchWithdrawal.route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchWithdrawal.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/searchWithdrawal.route.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"searchWithdrawal.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/searchWithdrawal.route.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;QAuD7B,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
3
1
|
import { and, eq } from "@ponder/client";
|
|
4
|
-
import {
|
|
2
|
+
import { describeRoute } from "hono-openapi";
|
|
3
|
+
import { resolver, validator } from "hono-openapi";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { createController } from "../../common/controller.js";
|
|
6
|
+
import { CampaignIdSchema, FractionsChainId, PlatformContractAddress } from "../../common/index.js";
|
|
5
7
|
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
6
8
|
import { PageSchema } from "../../common/models/page.js";
|
|
7
|
-
import { PlatformContractAddress, CampaignIdSchema, TmiChainIdSchema } from "../../common/index.js";
|
|
8
9
|
import { FractionsSaleSchema } from "./common/fractionsSale.js";
|
|
9
|
-
export
|
|
10
|
-
|
|
10
|
+
export const SearchWithdrawalV0 = createController({
|
|
11
|
+
build: (factory) => factory.createApp().post("/", describeRoute({
|
|
11
12
|
summary: "Search withdrawal events",
|
|
12
13
|
description: "Search withdrawal events by users, platforms and pools",
|
|
13
14
|
tags: ["Fractions"],
|
|
@@ -24,7 +25,7 @@ export function createSearchWithdrawalV0App(factory) {
|
|
|
24
25
|
}), validator("json", z.object({
|
|
25
26
|
page: PageSchema,
|
|
26
27
|
filter: z.object({
|
|
27
|
-
chainId:
|
|
28
|
+
chainId: FractionsChainId.optional(),
|
|
28
29
|
platform: PlatformContractAddress.optional(),
|
|
29
30
|
campaignId: CampaignIdSchema.optional(),
|
|
30
31
|
}),
|
|
@@ -43,5 +44,5 @@ export function createSearchWithdrawalV0App(factory) {
|
|
|
43
44
|
orderBy: fractionsWithdrawals.createdAt,
|
|
44
45
|
});
|
|
45
46
|
return c.json(result, 200);
|
|
46
|
-
})
|
|
47
|
-
}
|
|
47
|
+
}),
|
|
48
|
+
});
|