@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,352 +1,76 @@
|
|
|
1
|
-
import { z } from "
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
import { indexerSchemas } from "../../../common/indexer/schemas.js";
|
|
3
3
|
export declare const FractionsSaleSchema: z.ZodObject<{
|
|
4
|
-
chainId: z.
|
|
5
|
-
platform: z.ZodType<`0x${string}`, z.
|
|
6
|
-
campaignId: z.
|
|
7
|
-
nftId: z.
|
|
8
|
-
status: z.ZodEnum<
|
|
9
|
-
|
|
4
|
+
chainId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<[z.ZodLiteral<1 | 11155111 | 31337 | 72080>, z.ZodLiteral<1 | 11155111 | 31337 | 72080>, ...z.ZodLiteral<1 | 11155111 | 31337 | 72080>[]]>>;
|
|
5
|
+
platform: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
6
|
+
campaignId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
7
|
+
nftId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
8
|
+
status: z.ZodEnum<{
|
|
9
|
+
created: "created";
|
|
10
|
+
approved: "approved";
|
|
11
|
+
rejected: "rejected";
|
|
12
|
+
finalized: "finalized";
|
|
13
|
+
refunded: "refunded";
|
|
14
|
+
}>;
|
|
15
|
+
owner: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
10
16
|
fractions: z.ZodObject<{
|
|
11
17
|
asset: z.ZodObject<{
|
|
12
|
-
chainId: z.
|
|
13
|
-
address: z.ZodType<`0x${string}`, z.
|
|
18
|
+
chainId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<[z.ZodLiteral<1 | 11155111 | 31337 | 72080>, z.ZodLiteral<1 | 11155111 | 31337 | 72080>, ...z.ZodLiteral<1 | 11155111 | 31337 | 72080>[]]>>;
|
|
19
|
+
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
14
20
|
type: z.ZodString;
|
|
15
21
|
symbol: z.ZodString;
|
|
16
22
|
name: z.ZodString;
|
|
17
|
-
tokenId: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
23
|
+
tokenId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
18
24
|
decimals: z.ZodDefault<z.ZodNumber>;
|
|
19
25
|
burnable: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
decimals?: number | undefined;
|
|
37
|
-
burnable?: boolean | undefined;
|
|
38
|
-
}>;
|
|
39
|
-
totalFractions: z.ZodString;
|
|
40
|
-
price: z.ZodString;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
asset: {
|
|
43
|
-
symbol: string;
|
|
44
|
-
type: string;
|
|
45
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
46
|
-
address: `0x${string}`;
|
|
47
|
-
name: string;
|
|
48
|
-
tokenId: string | null;
|
|
49
|
-
decimals: number;
|
|
50
|
-
burnable: boolean;
|
|
51
|
-
};
|
|
52
|
-
totalFractions: string;
|
|
53
|
-
price: string;
|
|
54
|
-
}, {
|
|
55
|
-
asset: {
|
|
56
|
-
symbol: string;
|
|
57
|
-
type: string;
|
|
58
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
59
|
-
address: `0x${string}`;
|
|
60
|
-
name: string;
|
|
61
|
-
tokenId: string | null;
|
|
62
|
-
decimals?: number | undefined;
|
|
63
|
-
burnable?: boolean | undefined;
|
|
64
|
-
};
|
|
65
|
-
totalFractions: string;
|
|
66
|
-
price: string;
|
|
67
|
-
}>;
|
|
68
|
-
capitalization: z.ZodUnion<[z.ZodObject<{
|
|
69
|
-
hardCap: z.ZodString;
|
|
70
|
-
hardCapPerAccount: z.ZodString;
|
|
71
|
-
softCap: z.ZodString;
|
|
72
|
-
softCapPerAccount: z.ZodString;
|
|
73
|
-
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
softCap: string;
|
|
75
|
-
hardCap: string;
|
|
76
|
-
softCapPerAccount: string;
|
|
77
|
-
hardCapPerAccount: string;
|
|
78
|
-
}, {
|
|
79
|
-
softCap: string;
|
|
80
|
-
hardCap: string;
|
|
81
|
-
softCapPerAccount: string;
|
|
82
|
-
hardCapPerAccount: string;
|
|
83
|
-
}>, z.ZodNull]>;
|
|
84
|
-
timeline: z.ZodUnion<[z.ZodObject<{
|
|
85
|
-
startDate: z.ZodString;
|
|
86
|
-
endDate: z.ZodString;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
startDate: string;
|
|
89
|
-
endDate: string;
|
|
90
|
-
}, {
|
|
91
|
-
startDate: string;
|
|
92
|
-
endDate: string;
|
|
93
|
-
}>, z.ZodNull]>;
|
|
94
|
-
vesting: z.ZodUnion<[z.ZodObject<{
|
|
95
|
-
cliffDate: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
totalFractions: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
28
|
+
price: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
capitalization: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
hardCap: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
|
|
32
|
+
hardCapPerAccount: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
|
|
33
|
+
softCap: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
|
|
34
|
+
softCapPerAccount: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Int256", "out">>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
timeline: z.ZodNullable<z.ZodObject<{
|
|
37
|
+
startDate: z.core.$ZodBranded<z.ZodString, "ISO", "out">;
|
|
38
|
+
endDate: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ISO", "out">>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
vesting: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
cliffDate: z.core.$ZodBranded<z.ZodString, "ISO", "out">;
|
|
96
42
|
totalVestingPeriod: z.ZodNumber;
|
|
97
43
|
portionPeriod: z.ZodNumber;
|
|
98
|
-
},
|
|
99
|
-
cliffDate: string;
|
|
100
|
-
totalVestingPeriod: number;
|
|
101
|
-
portionPeriod: number;
|
|
102
|
-
}, {
|
|
103
|
-
cliffDate: string;
|
|
104
|
-
totalVestingPeriod: number;
|
|
105
|
-
portionPeriod: number;
|
|
106
|
-
}>, z.ZodNull]>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
107
45
|
wrappedAssets: z.ZodArray<z.ZodObject<{
|
|
108
46
|
asset: z.ZodObject<{
|
|
109
|
-
chainId: z.
|
|
110
|
-
address: z.ZodType<`0x${string}`, z.
|
|
47
|
+
chainId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<[z.ZodLiteral<1 | 11155111 | 31337 | 72080>, z.ZodLiteral<1 | 11155111 | 31337 | 72080>, ...z.ZodLiteral<1 | 11155111 | 31337 | 72080>[]]>>;
|
|
48
|
+
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
111
49
|
type: z.ZodString;
|
|
112
50
|
symbol: z.ZodString;
|
|
113
51
|
name: z.ZodString;
|
|
114
|
-
tokenId: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
52
|
+
tokenId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
115
53
|
decimals: z.ZodDefault<z.ZodNumber>;
|
|
116
54
|
burnable: z.ZodDefault<z.ZodBoolean>;
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
121
|
-
address: `0x${string}`;
|
|
122
|
-
name: string;
|
|
123
|
-
tokenId: string | null;
|
|
124
|
-
decimals: number;
|
|
125
|
-
burnable: boolean;
|
|
126
|
-
}, {
|
|
127
|
-
symbol: string;
|
|
128
|
-
type: string;
|
|
129
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
130
|
-
address: `0x${string}`;
|
|
131
|
-
name: string;
|
|
132
|
-
tokenId: string | null;
|
|
133
|
-
decimals?: number | undefined;
|
|
134
|
-
burnable?: boolean | undefined;
|
|
135
|
-
}>;
|
|
136
|
-
wrappedAmount: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
asset: {
|
|
139
|
-
symbol: string;
|
|
140
|
-
type: string;
|
|
141
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
142
|
-
address: `0x${string}`;
|
|
143
|
-
name: string;
|
|
144
|
-
tokenId: string | null;
|
|
145
|
-
decimals: number;
|
|
146
|
-
burnable: boolean;
|
|
147
|
-
};
|
|
148
|
-
wrappedAmount: bigint;
|
|
149
|
-
}, {
|
|
150
|
-
asset: {
|
|
151
|
-
symbol: string;
|
|
152
|
-
type: string;
|
|
153
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
154
|
-
address: `0x${string}`;
|
|
155
|
-
name: string;
|
|
156
|
-
tokenId: string | null;
|
|
157
|
-
decimals?: number | undefined;
|
|
158
|
-
burnable?: boolean | undefined;
|
|
159
|
-
};
|
|
160
|
-
wrappedAmount: string | number | bigint;
|
|
161
|
-
}>, "many">;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
wrappedAmount: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
57
|
+
}, z.core.$strip>>;
|
|
162
58
|
fundingAssets: z.ZodArray<z.ZodObject<{
|
|
163
59
|
asset: z.ZodObject<{
|
|
164
|
-
chainId: z.
|
|
165
|
-
address: z.ZodType<`0x${string}`, z.
|
|
60
|
+
chainId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<[z.ZodLiteral<1 | 11155111 | 31337 | 72080>, z.ZodLiteral<1 | 11155111 | 31337 | 72080>, ...z.ZodLiteral<1 | 11155111 | 31337 | 72080>[]]>>;
|
|
61
|
+
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
166
62
|
type: z.ZodString;
|
|
167
63
|
symbol: z.ZodString;
|
|
168
64
|
name: z.ZodString;
|
|
169
|
-
tokenId: z.ZodUnion<[z.ZodString, z.ZodNull]>;
|
|
65
|
+
tokenId: z.ZodUnion<readonly [z.ZodString, z.ZodNull]>;
|
|
170
66
|
decimals: z.ZodDefault<z.ZodNumber>;
|
|
171
67
|
burnable: z.ZodDefault<z.ZodBoolean>;
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
burnable: boolean;
|
|
181
|
-
}, {
|
|
182
|
-
symbol: string;
|
|
183
|
-
type: string;
|
|
184
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
185
|
-
address: `0x${string}`;
|
|
186
|
-
name: string;
|
|
187
|
-
tokenId: string | null;
|
|
188
|
-
decimals?: number | undefined;
|
|
189
|
-
burnable?: boolean | undefined;
|
|
190
|
-
}>;
|
|
191
|
-
amountPerPacket: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
192
|
-
}, "strip", z.ZodTypeAny, {
|
|
193
|
-
asset: {
|
|
194
|
-
symbol: string;
|
|
195
|
-
type: string;
|
|
196
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
197
|
-
address: `0x${string}`;
|
|
198
|
-
name: string;
|
|
199
|
-
tokenId: string | null;
|
|
200
|
-
decimals: number;
|
|
201
|
-
burnable: boolean;
|
|
202
|
-
};
|
|
203
|
-
amountPerPacket: bigint;
|
|
204
|
-
}, {
|
|
205
|
-
asset: {
|
|
206
|
-
symbol: string;
|
|
207
|
-
type: string;
|
|
208
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
209
|
-
address: `0x${string}`;
|
|
210
|
-
name: string;
|
|
211
|
-
tokenId: string | null;
|
|
212
|
-
decimals?: number | undefined;
|
|
213
|
-
burnable?: boolean | undefined;
|
|
214
|
-
};
|
|
215
|
-
amountPerPacket: string | number | bigint;
|
|
216
|
-
}>, "many">;
|
|
217
|
-
transactionHash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
218
|
-
createdAt: z.ZodString;
|
|
219
|
-
updatedAt: z.ZodString;
|
|
220
|
-
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
status: "created" | "approved" | "rejected" | "finalized" | "refunded";
|
|
222
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
223
|
-
createdAt: string;
|
|
224
|
-
updatedAt: string;
|
|
225
|
-
campaignId: number;
|
|
226
|
-
transactionHash: `0x${string}`;
|
|
227
|
-
nftId: number;
|
|
228
|
-
fractions: {
|
|
229
|
-
asset: {
|
|
230
|
-
symbol: string;
|
|
231
|
-
type: string;
|
|
232
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
233
|
-
address: `0x${string}`;
|
|
234
|
-
name: string;
|
|
235
|
-
tokenId: string | null;
|
|
236
|
-
decimals: number;
|
|
237
|
-
burnable: boolean;
|
|
238
|
-
};
|
|
239
|
-
totalFractions: string;
|
|
240
|
-
price: string;
|
|
241
|
-
};
|
|
242
|
-
platform: `0x${string}`;
|
|
243
|
-
owner: `0x${string}`;
|
|
244
|
-
vesting: {
|
|
245
|
-
cliffDate: string;
|
|
246
|
-
totalVestingPeriod: number;
|
|
247
|
-
portionPeriod: number;
|
|
248
|
-
} | null;
|
|
249
|
-
capitalization: {
|
|
250
|
-
softCap: string;
|
|
251
|
-
hardCap: string;
|
|
252
|
-
softCapPerAccount: string;
|
|
253
|
-
hardCapPerAccount: string;
|
|
254
|
-
} | null;
|
|
255
|
-
timeline: {
|
|
256
|
-
startDate: string;
|
|
257
|
-
endDate: string;
|
|
258
|
-
} | null;
|
|
259
|
-
wrappedAssets: {
|
|
260
|
-
asset: {
|
|
261
|
-
symbol: string;
|
|
262
|
-
type: string;
|
|
263
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
264
|
-
address: `0x${string}`;
|
|
265
|
-
name: string;
|
|
266
|
-
tokenId: string | null;
|
|
267
|
-
decimals: number;
|
|
268
|
-
burnable: boolean;
|
|
269
|
-
};
|
|
270
|
-
wrappedAmount: bigint;
|
|
271
|
-
}[];
|
|
272
|
-
fundingAssets: {
|
|
273
|
-
asset: {
|
|
274
|
-
symbol: string;
|
|
275
|
-
type: string;
|
|
276
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
277
|
-
address: `0x${string}`;
|
|
278
|
-
name: string;
|
|
279
|
-
tokenId: string | null;
|
|
280
|
-
decimals: number;
|
|
281
|
-
burnable: boolean;
|
|
282
|
-
};
|
|
283
|
-
amountPerPacket: bigint;
|
|
284
|
-
}[];
|
|
285
|
-
}, {
|
|
286
|
-
status: "created" | "approved" | "rejected" | "finalized" | "refunded";
|
|
287
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
288
|
-
createdAt: string;
|
|
289
|
-
updatedAt: string;
|
|
290
|
-
campaignId: number;
|
|
291
|
-
transactionHash: `0x${string}`;
|
|
292
|
-
nftId: number;
|
|
293
|
-
fractions: {
|
|
294
|
-
asset: {
|
|
295
|
-
symbol: string;
|
|
296
|
-
type: string;
|
|
297
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
298
|
-
address: `0x${string}`;
|
|
299
|
-
name: string;
|
|
300
|
-
tokenId: string | null;
|
|
301
|
-
decimals?: number | undefined;
|
|
302
|
-
burnable?: boolean | undefined;
|
|
303
|
-
};
|
|
304
|
-
totalFractions: string;
|
|
305
|
-
price: string;
|
|
306
|
-
};
|
|
307
|
-
platform: `0x${string}`;
|
|
308
|
-
owner: `0x${string}`;
|
|
309
|
-
vesting: {
|
|
310
|
-
cliffDate: string;
|
|
311
|
-
totalVestingPeriod: number;
|
|
312
|
-
portionPeriod: number;
|
|
313
|
-
} | null;
|
|
314
|
-
capitalization: {
|
|
315
|
-
softCap: string;
|
|
316
|
-
hardCap: string;
|
|
317
|
-
softCapPerAccount: string;
|
|
318
|
-
hardCapPerAccount: string;
|
|
319
|
-
} | null;
|
|
320
|
-
timeline: {
|
|
321
|
-
startDate: string;
|
|
322
|
-
endDate: string;
|
|
323
|
-
} | null;
|
|
324
|
-
wrappedAssets: {
|
|
325
|
-
asset: {
|
|
326
|
-
symbol: string;
|
|
327
|
-
type: string;
|
|
328
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
329
|
-
address: `0x${string}`;
|
|
330
|
-
name: string;
|
|
331
|
-
tokenId: string | null;
|
|
332
|
-
decimals?: number | undefined;
|
|
333
|
-
burnable?: boolean | undefined;
|
|
334
|
-
};
|
|
335
|
-
wrappedAmount: string | number | bigint;
|
|
336
|
-
}[];
|
|
337
|
-
fundingAssets: {
|
|
338
|
-
asset: {
|
|
339
|
-
symbol: string;
|
|
340
|
-
type: string;
|
|
341
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
342
|
-
address: `0x${string}`;
|
|
343
|
-
name: string;
|
|
344
|
-
tokenId: string | null;
|
|
345
|
-
decimals?: number | undefined;
|
|
346
|
-
burnable?: boolean | undefined;
|
|
347
|
-
};
|
|
348
|
-
amountPerPacket: string | number | bigint;
|
|
349
|
-
}[];
|
|
350
|
-
}>;
|
|
351
|
-
export declare function toFractionsSale(raw: typeof indexerSchemas.fractions.fractionsSales.$inferSelect, fractionsAsset: typeof indexerSchemas.assets.$inferSelect, wrappedAssets: any[], fundingAssets: any[]): z.output<typeof FractionsSaleSchema>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
amountPerPacket: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
transactionHash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
72
|
+
createdAt: z.core.$ZodBranded<z.ZodString, "ISO", "out">;
|
|
73
|
+
updatedAt: z.core.$ZodBranded<z.ZodString, "ISO", "out">;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export declare function toFractionsSale(raw: typeof indexerSchemas.fractions.fractionsSales.$inferSelect, fractionsAsset: typeof indexerSchemas.assets.$inferSelect, wrappedAssets: any[], fundingAssets: any[]): z.input<typeof FractionsSaleSchema>;
|
|
352
76
|
//# sourceMappingURL=fractionsSale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fractionsSale.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/common/fractionsSale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fractionsSale.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/common/fractionsSale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoDL,CAAC;AAE5B,wBAAgB,eAAe,CAC7B,GAAG,EAAE,OAAO,cAAc,CAAC,SAAS,CAAC,cAAc,CAAC,YAAY,EAChE,cAAc,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC,YAAY,EAEzD,aAAa,EAAE,GAAG,EAAE,EACpB,aAAa,EAAE,GAAG,EAAE,GACnB,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CA6BrC"}
|
|
@@ -1,123 +1,108 @@
|
|
|
1
|
-
import { z } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
3
|
+
import { AddressSchema, AssetSchema, FractionsChainId, FractionsSaleStatusSchema, HashSchema, PlatformContractAddress, } from "../../../common/index.js";
|
|
4
|
+
import { ISOJson, toISOJson } from "../../../common/models/date.js";
|
|
5
5
|
export const FractionsSaleSchema = z
|
|
6
6
|
.object({
|
|
7
|
-
chainId:
|
|
7
|
+
chainId: FractionsChainId,
|
|
8
8
|
platform: PlatformContractAddress,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// nftId: Int256Positive,
|
|
12
|
-
nftId: z.number(),
|
|
9
|
+
campaignId: Int256Json,
|
|
10
|
+
nftId: Int256Json,
|
|
13
11
|
status: FractionsSaleStatusSchema,
|
|
14
12
|
owner: AddressSchema.openapi({
|
|
15
13
|
description: "Address role assigned to",
|
|
16
14
|
}),
|
|
17
15
|
fractions: z.object({
|
|
18
16
|
asset: AssetSchema,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
// price: Int256Positive,
|
|
22
|
-
price: z.string(),
|
|
17
|
+
totalFractions: Int256Json,
|
|
18
|
+
price: Int256Json,
|
|
23
19
|
}),
|
|
24
|
-
capitalization: z.
|
|
25
|
-
z.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
totalVestingPeriod: z.number().nonnegative(),
|
|
48
|
-
portionPeriod: z.number().nonnegative(),
|
|
49
|
-
}),
|
|
50
|
-
z.null(),
|
|
51
|
-
]),
|
|
52
|
-
wrappedAssets: z.array(z.object({ asset: AssetSchema, wrappedAmount: Int256Positive })),
|
|
53
|
-
fundingAssets: z.array(z.object({ asset: AssetSchema, amountPerPacket: Int256Positive })),
|
|
20
|
+
capitalization: z.nullable(z.object({
|
|
21
|
+
hardCap: z.nullable(Int256Json),
|
|
22
|
+
hardCapPerAccount: z.nullable(Int256Json),
|
|
23
|
+
softCap: z.nullable(Int256Json),
|
|
24
|
+
softCapPerAccount: z.nullable(Int256Json),
|
|
25
|
+
})),
|
|
26
|
+
timeline: z.nullable(z.object({
|
|
27
|
+
startDate: ISOJson,
|
|
28
|
+
endDate: z.nullable(ISOJson),
|
|
29
|
+
})),
|
|
30
|
+
vesting: z.nullable(z.object({
|
|
31
|
+
cliffDate: ISOJson,
|
|
32
|
+
totalVestingPeriod: z.number().nonnegative(),
|
|
33
|
+
portionPeriod: z.number().nonnegative(),
|
|
34
|
+
})),
|
|
35
|
+
wrappedAssets: z.array(z.object({
|
|
36
|
+
asset: AssetSchema,
|
|
37
|
+
wrappedAmount: Int256Json,
|
|
38
|
+
})),
|
|
39
|
+
fundingAssets: z.array(z.object({
|
|
40
|
+
asset: AssetSchema,
|
|
41
|
+
amountPerPacket: Int256Json,
|
|
42
|
+
})),
|
|
54
43
|
transactionHash: HashSchema,
|
|
55
|
-
createdAt:
|
|
56
|
-
updatedAt:
|
|
44
|
+
createdAt: ISOJson,
|
|
45
|
+
updatedAt: ISOJson,
|
|
57
46
|
})
|
|
58
|
-
.openapi(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
.openapi("FractionsSale");
|
|
48
|
+
export function toFractionsSale(raw, fractionsAsset,
|
|
49
|
+
// @todo fix this any type
|
|
50
|
+
wrappedAssets, fundingAssets) {
|
|
62
51
|
const fractions = toSaleFractions(raw, fractionsAsset);
|
|
63
52
|
const capitalization = toSaleCapitalization(raw);
|
|
64
53
|
const timeline = toSaleTimeline(raw);
|
|
65
54
|
const vesting = toSaleVesting(raw);
|
|
66
55
|
return {
|
|
67
|
-
chainId:
|
|
56
|
+
chainId: FractionsChainId.parse(raw.chainId),
|
|
68
57
|
platform: AddressSchema.parse(raw.diamondAddress),
|
|
69
|
-
campaignId:
|
|
70
|
-
nftId:
|
|
58
|
+
campaignId: toInt256Json(raw.saleId),
|
|
59
|
+
nftId: toInt256Json(raw.nftId),
|
|
71
60
|
owner: AddressSchema.parse(raw.creator),
|
|
72
61
|
status: FractionsSaleStatusSchema.parse(raw.status),
|
|
73
|
-
wrappedAssets: wrappedAssets.map((
|
|
74
|
-
asset: AssetSchema.parse(
|
|
75
|
-
wrappedAmount:
|
|
62
|
+
wrappedAssets: wrappedAssets.map((x) => ({
|
|
63
|
+
asset: AssetSchema.parse(x.asset),
|
|
64
|
+
wrappedAmount: toInt256Json(x.wrappedAmount),
|
|
76
65
|
})),
|
|
77
|
-
fundingAssets: fundingAssets.map((
|
|
78
|
-
asset: AssetSchema.parse(
|
|
79
|
-
amountPerPacket:
|
|
66
|
+
fundingAssets: fundingAssets.map((x) => ({
|
|
67
|
+
asset: AssetSchema.parse(x.asset),
|
|
68
|
+
amountPerPacket: toInt256Json(x.amountPerPacket),
|
|
80
69
|
})),
|
|
81
|
-
fractions,
|
|
82
|
-
capitalization,
|
|
83
|
-
timeline,
|
|
84
|
-
vesting,
|
|
70
|
+
fractions: fractions,
|
|
71
|
+
capitalization: capitalization,
|
|
72
|
+
timeline: timeline,
|
|
73
|
+
vesting: vesting,
|
|
85
74
|
transactionHash: raw.transactionHash,
|
|
86
|
-
createdAt: raw.createdAt
|
|
87
|
-
updatedAt: raw.updatedAt
|
|
75
|
+
createdAt: toISOJson(raw.createdAt),
|
|
76
|
+
updatedAt: toISOJson(raw.updatedAt),
|
|
88
77
|
};
|
|
89
78
|
}
|
|
90
79
|
function toSaleFractions(raw, fractionsAsset) {
|
|
91
|
-
//TODO:
|
|
92
80
|
return {
|
|
93
81
|
asset: AssetSchema.parse(fractionsAsset),
|
|
94
|
-
totalFractions: raw.fractionsCreated
|
|
95
|
-
price: raw.fractionPrice
|
|
82
|
+
totalFractions: toInt256Json(raw.fractionsCreated),
|
|
83
|
+
price: toInt256Json(raw.fractionPrice),
|
|
96
84
|
};
|
|
97
85
|
}
|
|
98
86
|
function toSaleCapitalization(raw) {
|
|
99
|
-
//TODO:
|
|
100
87
|
return {
|
|
101
|
-
softCap: raw.softCap.
|
|
102
|
-
hardCap: raw.hardCap.
|
|
103
|
-
softCapPerAccount: raw.softCapPerAccount.
|
|
104
|
-
hardCapPerAccount: raw.hardCapPerAccount.
|
|
88
|
+
softCap: raw.softCap ? toInt256Json(raw.softCap) : null,
|
|
89
|
+
hardCap: raw.hardCap ? toInt256Json(raw.hardCap) : null,
|
|
90
|
+
softCapPerAccount: raw.softCapPerAccount ? toInt256Json(raw.softCapPerAccount) : null,
|
|
91
|
+
hardCapPerAccount: raw.hardCapPerAccount ? toInt256Json(raw.hardCapPerAccount) : null,
|
|
105
92
|
};
|
|
106
93
|
}
|
|
107
94
|
function toSaleTimeline(raw) {
|
|
108
|
-
//TODO:
|
|
109
95
|
return {
|
|
110
|
-
startDate: raw.startDate
|
|
111
|
-
endDate: raw.endDate.
|
|
96
|
+
startDate: toISOJson(raw.startDate),
|
|
97
|
+
endDate: raw.endDate ? toISOJson(raw.endDate) : null,
|
|
112
98
|
};
|
|
113
99
|
}
|
|
114
100
|
function toSaleVesting(raw) {
|
|
115
|
-
//TODO:
|
|
116
101
|
return raw.cliffDate
|
|
117
102
|
? {
|
|
118
|
-
cliffDate: raw.cliffDate
|
|
119
|
-
totalVestingPeriod: Number(raw.totalVestingPeriod),
|
|
120
|
-
portionPeriod: Number(raw.portionPeriod),
|
|
103
|
+
cliffDate: toISOJson(raw.cliffDate),
|
|
104
|
+
totalVestingPeriod: raw.totalVestingPeriod ? Number(raw.totalVestingPeriod) : 0,
|
|
105
|
+
portionPeriod: raw.portionPeriod ? Number(raw.portionPeriod) : 0,
|
|
121
106
|
}
|
|
122
107
|
: null;
|
|
123
108
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CompleteSaleRequestSchema: z.ZodObject<{
|
|
3
|
+
marketAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
+
campaignId: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const CompleteSaleV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
7
|
+
"/": {
|
|
8
|
+
$post: {
|
|
9
|
+
input: {
|
|
10
|
+
json: {
|
|
11
|
+
marketAddress: string;
|
|
12
|
+
campaignId: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
output: {
|
|
16
|
+
data: `0x${string}`;
|
|
17
|
+
to: `0x${string}`;
|
|
18
|
+
details: {
|
|
19
|
+
functionName: string;
|
|
20
|
+
address: `0x${string}`;
|
|
21
|
+
abi: any[];
|
|
22
|
+
args: any[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
outputFormat: "json";
|
|
26
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}, "/">>;
|
|
30
|
+
//# sourceMappingURL=completeSale.route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completeSale.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/sales/completeSale.route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;QAgBzB,CAAC"}
|