@evergonlabs/tmi-protocol-api 0.11.0-rc.3 → 0.11.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +473 -232
- package/dist/app.d.ts.map +1 -1
- package/dist/apps.d.ts +1 -1
- package/dist/apps.js +1 -1
- package/dist/client.d.ts +1260 -1103
- package/dist/client.d.ts.map +1 -1
- package/dist/fractions/index.d.ts +84 -100
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/markets/deployMarket.d.ts +1 -1
- package/dist/fractions/markets/deployMarket.d.ts.map +1 -1
- package/dist/fractions/markets/deployMarket.js +5 -5
- package/dist/fractions/markets/getDeployEvent.d.ts +6 -0
- package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -1
- package/dist/fractions/markets/getDeployEvent.js +8 -5
- package/dist/fractions/markets/getMarket.d.ts +5 -0
- package/dist/fractions/markets/getMarket.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket.js +7 -14
- package/dist/fractions/markets/index.d.ts +7 -11
- package/dist/fractions/markets/index.d.ts.map +1 -1
- package/dist/fractions/markets/initCompilot.d.ts +4 -0
- package/dist/fractions/markets/initCompilot.d.ts.map +1 -1
- package/dist/fractions/markets/initCompilot.js +6 -4
- package/dist/fractions/markets/searchMarkets.d.ts +42 -11
- package/dist/fractions/markets/searchMarkets.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets.js +16 -11
- package/dist/fractions/roles/grantRole.d.ts +1 -1
- package/dist/fractions/roles/grantRole.js +1 -1
- package/dist/fractions/sales/{approveSale.route.d.ts → approveSale.d.ts} +2 -2
- package/dist/fractions/sales/approveSale.d.ts.map +1 -0
- package/dist/fractions/sales/{approveSale.route.js → approveSale.js} +1 -1
- package/dist/fractions/sales/{approveWrapper.route.d.ts → approveWrapper.d.ts} +2 -2
- package/dist/fractions/sales/approveWrapper.d.ts.map +1 -0
- package/dist/fractions/sales/{approveWrapper.route.js → approveWrapper.js} +1 -1
- package/dist/fractions/sales/{completeSale.route.d.ts → completeSale.d.ts} +2 -2
- package/dist/fractions/sales/completeSale.d.ts.map +1 -0
- package/dist/fractions/sales/{completeSale.route.js → completeSale.js} +1 -1
- package/dist/fractions/sales/{createFractions.route.d.ts → createFractions.d.ts} +2 -2
- package/dist/fractions/sales/createFractions.d.ts.map +1 -0
- package/dist/fractions/sales/{createFractions.route.js → createFractions.js} +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.d.ts +47 -0
- package/dist/fractions/sales/getFractionSaleStatistics.d.ts.map +1 -0
- package/dist/fractions/sales/{getFractionSaleStatistics.route.js → getFractionSaleStatistics.js} +32 -18
- package/dist/fractions/sales/getVaultAddress.d.ts +10 -1
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
- package/dist/fractions/sales/getVaultAddress.js +11 -7
- package/dist/fractions/sales/getWithdrawEvent.d.ts +4 -3
- package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -1
- package/dist/fractions/sales/getWithdrawEvent.js +8 -13
- package/dist/fractions/sales/index.d.ts +50 -62
- package/dist/fractions/sales/index.d.ts.map +1 -1
- package/dist/fractions/sales/index.js +16 -16
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts +13 -4
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -1
- package/dist/fractions/sales/parseFractionsCreatedEvent.js +20 -22
- package/dist/fractions/sales/{purchase.route.d.ts → purchase.d.ts} +2 -2
- package/dist/fractions/sales/purchase.d.ts.map +1 -0
- package/dist/fractions/sales/{purchase.route.js → purchase.js} +1 -1
- package/dist/fractions/sales/{purchaseStatistics.route.d.ts → purchaseStatistics.d.ts} +8 -7
- package/dist/fractions/sales/purchaseStatistics.d.ts.map +1 -0
- package/dist/fractions/sales/{purchaseStatistics.route.js → purchaseStatistics.js} +12 -10
- package/dist/fractions/sales/{receiveFundsAfterNonFunded.route.d.ts → receiveFundsAfterNonFunded.d.ts} +4 -4
- package/dist/fractions/sales/receiveFundsAfterNonFunded.d.ts.map +1 -0
- package/dist/fractions/sales/{receiveFundsAfterNonFunded.route.js → receiveFundsAfterNonFunded.js} +1 -1
- package/dist/fractions/sales/{receiveNonPurchasedWrappedAssets.route.d.ts → receiveNonPurchasedWrappedAssets.d.ts} +1 -1
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.d.ts.map +1 -0
- package/dist/fractions/sales/recoverFractions.d.ts +1 -1
- package/dist/fractions/sales/recoverFractions.js +1 -1
- package/dist/fractions/sales/rejectFractions.d.ts +1 -1
- package/dist/fractions/sales/rejectFractions.js +1 -1
- package/dist/fractions/sales/searchActivity.d.ts +121 -0
- package/dist/fractions/sales/searchActivity.d.ts.map +1 -0
- package/dist/fractions/sales/{searchActivity.route.js → searchActivity.js} +23 -15
- package/dist/fractions/sales/searchSales/searchSales.d.ts +89 -12
- package/dist/fractions/sales/searchSales/searchSales.d.ts.map +1 -1
- package/dist/fractions/sales/searchSales/searchSales.js +17 -12
- package/dist/fractions/sales/searchWithdrawal.d.ts +132 -0
- package/dist/fractions/sales/searchWithdrawal.d.ts.map +1 -0
- package/dist/fractions/sales/{searchWithdrawal.route.js → searchWithdrawal.js} +16 -11
- package/dist/fractions/sales/setFeeCapLimit.d.ts +1 -1
- package/dist/fractions/sales/setFeeCapLimit.js +1 -1
- package/dist/fractions/sales/{unlockWrappedAssets.route.d.ts → unlockWrappedAssets.d.ts} +2 -2
- package/dist/fractions/sales/unlockWrappedAssets.d.ts.map +1 -0
- package/dist/fractions/sales/{unlockWrappedAssets.route.js → unlockWrappedAssets.js} +1 -1
- package/dist/fractions/sales/vesting/{claimStatistics.route.d.ts → claimStatistics.d.ts} +5 -5
- package/dist/fractions/sales/vesting/claimStatistics.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/{claimStatistics.route.js → claimStatistics.js} +6 -6
- package/dist/fractions/sales/vesting/{claimVestedTokens.route.d.ts → claimVestedTokens.d.ts} +1 -1
- package/dist/fractions/sales/vesting/claimVestedTokens.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/{editCliff.route.d.ts → editCliff.d.ts} +1 -1
- package/dist/fractions/sales/vesting/editCliff.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/{editCliff.route.js → editCliff.js} +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts +6 -5
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +11 -16
- package/dist/fractions/sales/{withdraw.route.d.ts → withdraw.d.ts} +2 -2
- package/dist/fractions/sales/withdraw.d.ts.map +1 -0
- package/dist/fractions/sales/{withdraw.route.js → withdraw.js} +1 -1
- package/dist/fractions/schemas.d.ts +16 -5
- package/dist/fractions/schemas.d.ts.map +1 -1
- package/dist/fractions/schemas.js +20 -6
- package/dist/fractions/sig/getAuthData.d.ts +5 -9
- package/dist/fractions/sig/getAuthData.d.ts.map +1 -1
- package/dist/fractions/sig/getAuthData.js +7 -11
- package/dist/fractions/sig/{getNonce.route.d.ts → getNonce.d.ts} +6 -3
- package/dist/fractions/sig/getNonce.d.ts.map +1 -0
- package/dist/fractions/sig/{getNonce.route.js → getNonce.js} +10 -6
- package/dist/fractions/sig/index.d.ts +1 -1
- package/dist/fractions/sig/index.js +1 -1
- package/dist/fractions/statistics/index.d.ts +26 -26
- package/dist/fractions/statistics/index.js +1 -1
- package/dist/fractions/statistics/{networkStatistics.route.d.ts → networkStatistics.d.ts} +27 -27
- package/dist/fractions/statistics/networkStatistics.d.ts.map +1 -0
- package/dist/fractions/statistics/{networkStatistics.route.js → networkStatistics.js} +13 -13
- package/dist/general/common.d.ts +1 -1
- package/dist/general/common.d.ts.map +1 -1
- package/dist/general/common.js +2 -2
- package/dist/general/estimateGas.d.ts +14 -9
- package/dist/general/estimateGas.d.ts.map +1 -1
- package/dist/general/estimateGas.js +26 -27
- package/dist/general/getBalance.d.ts +10 -1
- package/dist/general/getBalance.d.ts.map +1 -1
- package/dist/general/getBalance.js +33 -24
- package/dist/general/getBalancesBatch.d.ts +18 -2
- package/dist/general/getBalancesBatch.d.ts.map +1 -1
- package/dist/general/getBalancesBatch.js +28 -21
- package/dist/general/index.d.ts +9 -10
- package/dist/general/index.d.ts.map +1 -1
- package/dist/general/searchBalances.d.ts +18 -3
- package/dist/general/searchBalances.d.ts.map +1 -1
- package/dist/general/searchBalances.js +24 -4
- package/dist/issuance/erc1155/burn.d.ts +1 -1
- package/dist/issuance/erc1155/burn.d.ts.map +1 -1
- package/dist/issuance/erc1155/burn.js +5 -3
- package/dist/issuance/erc1155/default/deploy.d.ts +1 -1
- package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/deploy.js +5 -3
- package/dist/issuance/erc1155/default/initialize.d.ts +1 -1
- package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/initialize.js +5 -3
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts +11 -0
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/default/parseDeployEvent.js +14 -9
- package/dist/issuance/erc1155/gated/deploy.d.ts +1 -1
- package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/deploy.js +5 -5
- package/dist/issuance/erc1155/gated/initialize.d.ts +1 -1
- package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/initialize.js +5 -5
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts +11 -0
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc1155/gated/parseDeployEvent.js +14 -9
- package/dist/issuance/erc1155/getMintedTokenId.d.ts +9 -1
- package/dist/issuance/erc1155/getMintedTokenId.d.ts.map +1 -1
- package/dist/issuance/erc1155/getMintedTokenId.js +16 -8
- package/dist/issuance/erc1155/grantRole.d.ts +1 -1
- package/dist/issuance/erc1155/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/grantRole.js +6 -4
- package/dist/issuance/erc1155/index.d.ts +1 -1
- package/dist/issuance/erc1155/mint.d.ts +1 -1
- package/dist/issuance/erc1155/mint.d.ts.map +1 -1
- package/dist/issuance/erc1155/mint.js +5 -3
- package/dist/issuance/erc1155/recover.d.ts +1 -1
- package/dist/issuance/erc1155/recover.d.ts.map +1 -1
- package/dist/issuance/erc1155/recover.js +5 -3
- package/dist/issuance/erc1155/renounceRole.d.ts +1 -1
- package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/renounceRole.js +6 -4
- package/dist/issuance/erc1155/revokeRole.d.ts +1 -1
- package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc1155/revokeRole.js +6 -4
- package/dist/issuance/erc1155/setApprovalForAll.d.ts +1 -1
- package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -1
- package/dist/issuance/erc1155/setApprovalForAll.js +5 -3
- package/dist/issuance/erc1155/setBaseURI.d.ts +1 -1
- package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc1155/setBaseURI.js +5 -3
- package/dist/issuance/erc1155/setTokenURI.d.ts +1 -1
- package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc1155/setTokenURI.js +5 -3
- package/dist/issuance/erc20/approve.d.ts +1 -1
- package/dist/issuance/erc20/approve.d.ts.map +1 -1
- package/dist/issuance/erc20/approve.js +5 -3
- package/dist/issuance/erc20/burn.d.ts +1 -1
- package/dist/issuance/erc20/burn.d.ts.map +1 -1
- package/dist/issuance/erc20/burn.js +5 -3
- package/dist/issuance/erc20/default/deploy.d.ts +1 -1
- package/dist/issuance/erc20/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/default/deploy.js +5 -3
- package/dist/issuance/erc20/default/initialize.d.ts +1 -1
- package/dist/issuance/erc20/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/default/initialize.js +5 -5
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts +14 -1
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/default/parseDeployEvent.js +22 -22
- package/dist/issuance/erc20/gated/deploy.d.ts +1 -1
- package/dist/issuance/erc20/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/deploy.js +5 -5
- package/dist/issuance/erc20/gated/initialize.d.ts +1 -1
- package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/initialize.js +5 -3
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts +14 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.js +28 -24
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts +285 -3
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts +3 -3
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.js +15 -9
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts +8 -0
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.js +11 -6
- package/dist/issuance/erc20/grantRole.d.ts +1 -1
- package/dist/issuance/erc20/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc20/grantRole.js +6 -4
- package/dist/issuance/erc20/index.d.ts +289 -7
- package/dist/issuance/erc20/index.d.ts.map +1 -1
- package/dist/issuance/erc20/mint.d.ts +1 -1
- package/dist/issuance/erc20/mint.d.ts.map +1 -1
- package/dist/issuance/erc20/mint.js +5 -3
- package/dist/issuance/erc20/recover.d.ts +1 -1
- package/dist/issuance/erc20/recover.d.ts.map +1 -1
- package/dist/issuance/erc20/recover.js +5 -3
- package/dist/issuance/erc20/renounceRole.d.ts +1 -1
- package/dist/issuance/erc20/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc20/renounceRole.js +6 -4
- package/dist/issuance/erc20/revokeRole.d.ts +1 -1
- package/dist/issuance/erc20/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc20/revokeRole.js +6 -4
- package/dist/issuance/erc20/transfer.d.ts +1 -1
- package/dist/issuance/erc20/transfer.d.ts.map +1 -1
- package/dist/issuance/erc20/transfer.js +5 -3
- package/dist/issuance/erc20/transferFrom.d.ts +1 -1
- package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc20/transferFrom.js +5 -3
- package/dist/issuance/erc721/approve.d.ts +1 -1
- package/dist/issuance/erc721/approve.d.ts.map +1 -1
- package/dist/issuance/erc721/approve.js +5 -3
- package/dist/issuance/erc721/burn.d.ts +1 -1
- package/dist/issuance/erc721/burn.d.ts.map +1 -1
- package/dist/issuance/erc721/burn.js +5 -3
- package/dist/issuance/erc721/default/deploy.d.ts +1 -1
- package/dist/issuance/erc721/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/default/deploy.js +5 -3
- package/dist/issuance/erc721/default/initialize.d.ts +1 -1
- package/dist/issuance/erc721/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/default/initialize.js +5 -3
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts +13 -0
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/default/parseDeployEvent.js +16 -11
- package/dist/issuance/erc721/gated/deploy.d.ts +1 -1
- package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/deploy.js +5 -5
- package/dist/issuance/erc721/gated/initialize.d.ts +1 -1
- package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/initialize.js +5 -3
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts +13 -0
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/parseDeployEvent.js +16 -11
- package/dist/issuance/erc721/getMintedTokenId.d.ts +8 -0
- package/dist/issuance/erc721/getMintedTokenId.d.ts.map +1 -1
- package/dist/issuance/erc721/getMintedTokenId.js +11 -6
- package/dist/issuance/erc721/grantRole.d.ts +1 -1
- package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc721/grantRole.js +6 -4
- package/dist/issuance/erc721/mint.d.ts +1 -1
- package/dist/issuance/erc721/mint.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.js +5 -3
- package/dist/issuance/erc721/recover.d.ts +1 -1
- package/dist/issuance/erc721/recover.d.ts.map +1 -1
- package/dist/issuance/erc721/recover.js +5 -3
- package/dist/issuance/erc721/renounceRole.d.ts +1 -1
- package/dist/issuance/erc721/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc721/renounceRole.js +6 -4
- package/dist/issuance/erc721/revokeRole.d.ts +1 -1
- package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc721/revokeRole.js +6 -4
- package/dist/issuance/erc721/setBaseURI.d.ts +1 -1
- package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setBaseURI.js +5 -3
- package/dist/issuance/erc721/setTokenURI.d.ts +1 -1
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setTokenURI.js +5 -3
- package/dist/issuance/erc721/transferFrom.d.ts +1 -1
- package/dist/issuance/erc721/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc721/transferFrom.js +5 -3
- package/dist/issuance/index.d.ts +292 -10
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/proxy/deploy.d.ts +3 -3
- package/dist/issuance/proxy/deploy.d.ts.map +1 -1
- package/dist/issuance/proxy/deploy.js +5 -3
- package/dist/issuance/proxy/index.d.ts +2 -2
- package/dist/issuance/proxy/upgrade.d.ts +1 -1
- package/dist/issuance/proxy/upgrade.d.ts.map +1 -1
- package/dist/issuance/proxy/upgrade.js +5 -3
- package/dist/issuance/schemas.d.ts +52 -42
- package/dist/issuance/schemas.d.ts.map +1 -1
- package/dist/issuance/schemas.js +52 -42
- package/dist/next/app.d.ts +21 -25
- package/dist/next/app.d.ts.map +1 -1
- package/dist/next/client.d.ts +21 -25
- package/dist/next/client.d.ts.map +1 -1
- package/dist/next/lending/buyback.d.ts.map +1 -1
- package/dist/next/lending/buyback.js +1 -1
- package/dist/next/lending/createSale.d.ts.map +1 -1
- package/dist/next/lending/createSale.js +1 -1
- package/dist/next/lending/deployMarket.d.ts.map +1 -1
- package/dist/next/lending/deployMarket.js +1 -1
- package/dist/next/lending/forcefullyUnlockWrappersNft.d.ts +7 -0
- package/dist/next/lending/forcefullyUnlockWrappersNft.d.ts.map +1 -0
- package/dist/next/lending/forcefullyUnlockWrappersNft.js +39 -0
- package/dist/next/lending/index.js +1 -1
- package/dist/next/lending/schemas.d.ts +5 -1
- package/dist/next/lending/schemas.d.ts.map +1 -1
- package/dist/next/lending/schemas.js +5 -3
- package/dist/next/lending/setCollateralPrice.d.ts.map +1 -1
- package/dist/next/lending/setCollateralPrice.js +1 -1
- package/dist/next/nftFractions/createNftFractions.d.ts.map +1 -1
- package/dist/next/nftFractions/createNftFractions.js +4 -2
- package/dist/next/nftFractions/deployNftFractionsMarket.d.ts.map +1 -1
- package/dist/next/nftFractions/deployNftFractionsMarket.js +4 -2
- package/dist/next/nftFractions/deployNftFractionsMarketGated.d.ts.map +1 -1
- package/dist/next/nftFractions/deployNftFractionsMarketGated.js +4 -2
- package/dist/next/nftFractions/index.d.ts +5 -5
- package/dist/next/nftFractions/index.js +1 -1
- package/dist/next/nftFractions/parseNftFractionsCreatedEvent.d.ts +18 -5
- package/dist/next/nftFractions/parseNftFractionsCreatedEvent.d.ts.map +1 -1
- package/dist/next/nftFractions/parseNftFractionsCreatedEvent.js +32 -28
- package/dist/next/nftFractions/schemas.d.ts +4 -1
- package/dist/next/nftFractions/schemas.d.ts.map +1 -1
- package/dist/next/nftFractions/schemas.js +4 -1
- package/dist/next/vestingRedemptionDynamic/approveCampaign.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/approveCampaign.js +1 -1
- package/dist/next/vestingRedemptionDynamic/createCampaign.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/createCampaign.js +1 -1
- package/dist/next/vestingRedemptionDynamic/deployMarket.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/deployMarket.js +1 -1
- package/dist/next/vestingRedemptionDynamic/epochPurchase.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/epochPurchase.js +1 -1
- package/dist/next/vestingRedemptionDynamic/exchangeNftForFractions.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/exchangeNftForFractions.js +1 -1
- package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.d.ts +14 -7
- package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/getCurrentEpoch.js +18 -11
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts +6 -2
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/getEpochPurchaseEvent.js +5 -5
- package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.d.ts +17 -9
- package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.js +25 -16
- package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.d.ts +6 -2
- package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.js +5 -5
- package/dist/next/vestingRedemptionDynamic/index.d.ts +16 -20
- package/dist/next/vestingRedemptionDynamic/index.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/requestWithdrawal.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/requestWithdrawal.js +1 -1
- package/dist/next/vestingRedemptionDynamic/schemas.d.ts +13 -1
- package/dist/next/vestingRedemptionDynamic/schemas.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/schemas.js +15 -1
- package/dist/next/vestingRedemptionDynamic/setEpochPrice.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/setEpochPrice.js +1 -1
- package/dist/next/vestingRedemptionDynamic/withdrawFunds.d.ts.map +1 -1
- package/dist/next/vestingRedemptionDynamic/withdrawFunds.js +1 -1
- package/dist/schemas.d.ts +50 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +62 -0
- package/dist/staking/index.d.ts +60 -84
- package/dist/staking/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform.d.ts +36 -0
- package/dist/staking/platforms/getPlatform.d.ts.map +1 -0
- package/dist/staking/platforms/{getPlatform/v0/getPlatform.js → getPlatform.js} +26 -22
- package/dist/staking/platforms/index.d.ts +10 -14
- package/dist/staking/platforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/index.js +3 -6
- package/dist/staking/platforms/searchPlatforms.d.ts +40 -0
- package/dist/staking/platforms/searchPlatforms.d.ts.map +1 -0
- package/dist/staking/platforms/searchPlatforms.js +50 -0
- package/dist/staking/pools/getPool.d.ts +40 -0
- package/dist/staking/pools/getPool.d.ts.map +1 -0
- package/dist/staking/pools/{getPool/v0/getPool.js → getPool.js} +32 -28
- package/dist/staking/pools/index.d.ts +9 -13
- package/dist/staking/pools/index.d.ts.map +1 -1
- package/dist/staking/pools/index.js +3 -6
- package/dist/staking/pools/searchPools.d.ts +42 -0
- package/dist/staking/pools/searchPools.d.ts.map +1 -0
- package/dist/staking/pools/searchPools.js +50 -0
- package/dist/staking/roles/getRoles.d.ts +28 -0
- package/dist/staking/roles/getRoles.d.ts.map +1 -0
- package/dist/staking/roles/{getRoles/v0/getRoles.js → getRoles.js} +6 -5
- package/dist/staking/roles/grantRole.d.ts +33 -0
- package/dist/staking/roles/grantRole.d.ts.map +1 -0
- package/dist/staking/roles/{grantRole/v0/grantRole.js → grantRole.js} +19 -16
- package/dist/staking/roles/index.d.ts +23 -31
- package/dist/staking/roles/index.d.ts.map +1 -1
- package/dist/staking/roles/index.js +8 -8
- package/dist/staking/roles/searchRoleEvents.d.ts +48 -0
- package/dist/staking/roles/searchRoleEvents.d.ts.map +1 -0
- package/dist/staking/roles/{searchRoleEvents/v0/searchRoleEvents.js → searchRoleEvents.js} +25 -20
- package/dist/staking/roles/searchRoles.d.ts +46 -0
- package/dist/staking/roles/searchRoles.d.ts.map +1 -0
- package/dist/staking/roles/{searchRoles/v0/searchRoles.js → searchRoles.js} +24 -19
- package/dist/staking/stakes/getStake.d.ts +50 -0
- package/dist/staking/stakes/getStake.d.ts.map +1 -0
- package/dist/staking/stakes/{getStake/v0/getStake.js → getStake.js} +32 -28
- package/dist/staking/stakes/index.d.ts +21 -29
- package/dist/staking/stakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/index.js +6 -6
- package/dist/staking/stakes/searchStakeEvents.d.ts +48 -0
- package/dist/staking/stakes/searchStakeEvents.d.ts.map +1 -0
- package/dist/staking/stakes/{searchStakeEvents/v0/searchStakeEvents.js → searchStakeEvents.js} +25 -20
- package/dist/staking/stakes/searchStakes.d.ts +56 -0
- package/dist/staking/stakes/searchStakes.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakes.js +52 -0
- package/dist/stakingTemplates/index.d.ts +28 -28
- package/dist/stakingTemplates/index.d.ts.map +1 -1
- package/dist/stakingTemplates/index.js +6 -6
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts +8 -2
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.js +18 -16
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts +6 -1
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.js +8 -5
- package/dist/stakingTemplates/templates/common/getReward.d.ts +5 -0
- package/dist/stakingTemplates/templates/common/getReward.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getReward.js +7 -4
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts +15 -5
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getStakeEvent.js +21 -10
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts +6 -0
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/partialUnstake.js +10 -7
- package/dist/stakingTemplates/templates/common/unstake.d.ts +5 -0
- package/dist/stakingTemplates/templates/common/unstake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/unstake.js +7 -4
- package/dist/stakingTemplates/templates/reputation/{v0/createPlatform.d.ts → createPlatform.d.ts} +12 -1
- package/dist/stakingTemplates/templates/reputation/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/{v0/createPlatform.js → createPlatform.js} +22 -19
- package/dist/stakingTemplates/templates/reputation/createPool.d.ts +58 -0
- package/dist/stakingTemplates/templates/reputation/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/{v0/createPool.js → createPool.js} +23 -20
- package/dist/stakingTemplates/templates/reputation/index.d.ts +10 -10
- package/dist/stakingTemplates/templates/reputation/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/index.js +24 -3
- package/dist/stakingTemplates/templates/reputation/restake.d.ts +32 -0
- package/dist/stakingTemplates/templates/reputation/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/{v0/restake.js → restake.js} +14 -11
- package/dist/stakingTemplates/templates/{rwa/v0/restake.d.ts → reputation/stake.d.ts} +8 -2
- package/dist/stakingTemplates/templates/reputation/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/{v0/stake.js → stake.js} +15 -16
- package/dist/stakingTemplates/templates/reputationLock/createPlatform.d.ts +42 -0
- package/dist/stakingTemplates/templates/reputationLock/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/{v0/createPlatform.js → createPlatform.js} +22 -19
- package/dist/stakingTemplates/templates/reputationLock/createPool.d.ts +76 -0
- package/dist/stakingTemplates/templates/reputationLock/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/{v0/createPool.js → createPool.js} +28 -25
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts +10 -10
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/index.js +24 -3
- package/dist/stakingTemplates/templates/reputationLock/restake.d.ts +34 -0
- package/dist/stakingTemplates/templates/reputationLock/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/{v0/restake.js → restake.js} +17 -14
- package/dist/stakingTemplates/templates/reputationLock/stake.d.ts +34 -0
- package/dist/stakingTemplates/templates/reputationLock/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/{v0/stake.js → stake.js} +19 -16
- package/dist/stakingTemplates/templates/{reputationLock/v0 → rwa}/createPlatform.d.ts +12 -1
- package/dist/stakingTemplates/templates/rwa/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/createPlatform.js → createPlatform.js} +22 -19
- package/dist/stakingTemplates/templates/rwa/createPool.d.ts +56 -0
- package/dist/stakingTemplates/templates/rwa/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/createPool.js → createPool.js} +21 -18
- package/dist/stakingTemplates/templates/{reputation/v0/stake.d.ts → rwa/distributeRewards.d.ts} +8 -2
- package/dist/stakingTemplates/templates/rwa/distributeRewards.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/distributeRewards.js → distributeRewards.js} +15 -12
- package/dist/stakingTemplates/templates/rwa/index.d.ts +10 -10
- package/dist/stakingTemplates/templates/rwa/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/index.js +26 -3
- package/dist/stakingTemplates/templates/rwa/restake.d.ts +32 -0
- package/dist/stakingTemplates/templates/rwa/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/restake.js → restake.js} +14 -11
- package/dist/stakingTemplates/templates/rwa/stake.d.ts +32 -0
- package/dist/stakingTemplates/templates/rwa/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/{v0/stake.js → stake.js} +15 -16
- package/package.json +12 -12
- package/dist/fractions/sales/approveSale.route.d.ts.map +0 -1
- package/dist/fractions/sales/approveWrapper.route.d.ts.map +0 -1
- package/dist/fractions/sales/completeSale.route.d.ts.map +0 -1
- package/dist/fractions/sales/createFractions.route.d.ts.map +0 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +0 -37
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +0 -1
- package/dist/fractions/sales/purchase.route.d.ts.map +0 -1
- package/dist/fractions/sales/purchaseStatistics.route.d.ts.map +0 -1
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +0 -1
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +0 -1
- package/dist/fractions/sales/searchActivity.route.d.ts +0 -71
- package/dist/fractions/sales/searchActivity.route.d.ts.map +0 -1
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +0 -56
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +0 -1
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/editCliff.route.d.ts.map +0 -1
- package/dist/fractions/sales/withdraw.route.d.ts.map +0 -1
- package/dist/fractions/sig/getNonce.route.d.ts.map +0 -1
- package/dist/fractions/statistics/networkStatistics.route.d.ts.map +0 -1
- package/dist/staking/platforms/getPlatform/index.d.ts +0 -23
- package/dist/staking/platforms/getPlatform/index.d.ts.map +0 -1
- package/dist/staking/platforms/getPlatform/index.js +0 -5
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +0 -24
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +0 -1
- package/dist/staking/platforms/searchPlatforms/index.d.ts +0 -29
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +0 -1
- package/dist/staking/platforms/searchPlatforms/index.js +0 -5
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +0 -30
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +0 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +0 -45
- package/dist/staking/pools/getPool/index.d.ts +0 -25
- package/dist/staking/pools/getPool/index.d.ts.map +0 -1
- package/dist/staking/pools/getPool/index.js +0 -5
- package/dist/staking/pools/getPool/v0/getPool.d.ts +0 -26
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +0 -1
- package/dist/staking/pools/searchPools/index.d.ts +0 -30
- package/dist/staking/pools/searchPools/index.d.ts.map +0 -1
- package/dist/staking/pools/searchPools/index.js +0 -5
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +0 -31
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +0 -1
- package/dist/staking/pools/searchPools/v0/searchPools.js +0 -45
- package/dist/staking/roles/getRoles/index.d.ts +0 -23
- package/dist/staking/roles/getRoles/index.d.ts.map +0 -1
- package/dist/staking/roles/getRoles/index.js +0 -5
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts +0 -23
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +0 -1
- package/dist/staking/roles/grantRole/index.d.ts +0 -26
- package/dist/staking/roles/grantRole/index.d.ts.map +0 -1
- package/dist/staking/roles/grantRole/index.js +0 -5
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +0 -26
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +0 -1
- package/dist/staking/roles/searchRoleEvents/index.d.ts +0 -33
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +0 -1
- package/dist/staking/roles/searchRoleEvents/index.js +0 -5
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +0 -34
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +0 -1
- package/dist/staking/roles/searchRoles/index.d.ts +0 -32
- package/dist/staking/roles/searchRoles/index.d.ts.map +0 -1
- package/dist/staking/roles/searchRoles/index.js +0 -5
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +0 -33
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +0 -1
- package/dist/staking/stakes/getStake/index.d.ts +0 -30
- package/dist/staking/stakes/getStake/index.d.ts.map +0 -1
- package/dist/staking/stakes/getStake/index.js +0 -5
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +0 -30
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +0 -33
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakeEvents/index.js +0 -5
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +0 -34
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakes/index.d.ts +0 -37
- package/dist/staking/stakes/searchStakes/index.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakes/index.js +0 -5
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +0 -37
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +0 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.js +0 -47
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts +0 -39
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts +0 -243
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputation/v0/index.js +0 -26
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts +0 -26
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts +0 -48
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts +0 -254
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/index.js +0 -26
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts +0 -27
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts +0 -27
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts +0 -31
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts +0 -38
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts +0 -26
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts +0 -266
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/index.js +0 -28
- package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts.map +0 -1
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts +0 -26
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts.map +0 -1
- /package/dist/fractions/sales/{receiveNonPurchasedWrappedAssets.route.js → receiveNonPurchasedWrappedAssets.js} +0 -0
- /package/dist/fractions/sales/vesting/{claimVestedTokens.route.js → claimVestedTokens.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployNftFractionsMarket.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/deployNftFractionsMarket.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployNftFractionsMarket.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/deployNftFractionsMarket.ts"],"names":[],"mappings":"AA4BA;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA0B5C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { createNftFractionsPlatformNoNid } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import { DeployNftFractionsMarketDefaultRequestSchema } from "
|
|
4
|
+
import { DeployNftFractionsMarketDefaultRequestSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { nftFractionsTag } from "./tag.js";
|
|
6
6
|
import { createController } from "../../common/controller.js";
|
|
7
7
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
@@ -25,7 +25,9 @@ const route = describeRoute({
|
|
|
25
25
|
* Controller for deploying an NFT Fractions market (non-gated)
|
|
26
26
|
*/
|
|
27
27
|
export const DeployNftFractionsMarketDefaultV0 = createController({
|
|
28
|
-
build: (factory) => factory
|
|
28
|
+
build: (factory) => factory
|
|
29
|
+
.createApp()
|
|
30
|
+
.post("/", route, validator("json", DeployNftFractionsMarketDefaultRequestSchema.openapi("DeployNftFractionsMarketDefaultRequestSchema")), async (c) => {
|
|
29
31
|
const { chainId, adminAddress, ownerAddress, cap, fee, acceptedFundingTokens } = c.req.valid("json");
|
|
30
32
|
const tx = createNftFractionsPlatformNoNid({
|
|
31
33
|
chainId: chainId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployNftFractionsMarketGated.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/deployNftFractionsMarketGated.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployNftFractionsMarketGated.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/deployNftFractionsMarketGated.ts"],"names":[],"mappings":"AA4BA;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aA4B1C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { createNftFractionsPlatform } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import { DeployNftFractionsMarketGatedRequestSchema } from "
|
|
4
|
+
import { DeployNftFractionsMarketGatedRequestSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { nftFractionsTag } from "./tag.js";
|
|
6
6
|
import { createController } from "../../common/controller.js";
|
|
7
7
|
import { DEFAULT_COMPILOT_SIGNER, toTransaction, TransactionSchema } from "../../common/index.js";
|
|
@@ -25,7 +25,9 @@ const route = describeRoute({
|
|
|
25
25
|
* Controller for deploying a gated NFT Fractions market (with ComPilot gating)
|
|
26
26
|
*/
|
|
27
27
|
export const DeployNftFractionsMarketGatedV0 = createController({
|
|
28
|
-
build: (factory) => factory
|
|
28
|
+
build: (factory) => factory
|
|
29
|
+
.createApp()
|
|
30
|
+
.post("/", route, validator("json", DeployNftFractionsMarketGatedRequestSchema.openapi("DeployNftFractionsMarketGatedRequestSchema")), async (c) => {
|
|
29
31
|
const { chainId, adminAddress, ownerAddress, compilotSignerAddress, cap, fee, acceptedFundingTokens } = c.req.valid("json");
|
|
30
32
|
const tx = createNftFractionsPlatform({
|
|
31
33
|
chainId: chainId,
|
|
@@ -92,18 +92,18 @@ export declare const NftFractionsApi: import("../../common/controller.js").IApi<
|
|
|
92
92
|
};
|
|
93
93
|
}, "/createFractions"> | import("hono/types").MergeSchemaPath<{
|
|
94
94
|
"/": {
|
|
95
|
-
$
|
|
95
|
+
$get: {
|
|
96
96
|
input: {
|
|
97
|
-
|
|
97
|
+
query: {
|
|
98
98
|
chainId: "31337" | "11155111" | "84532" | "72080";
|
|
99
99
|
hash: string;
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
output: {
|
|
103
|
-
campaignId: string
|
|
103
|
+
campaignId: string & import("zod").$brand<"Int256">;
|
|
104
104
|
creator: `0x${string}`;
|
|
105
|
-
nftId: string
|
|
106
|
-
fractionsCreated: string
|
|
105
|
+
nftId: string & import("zod").$brand<"Int256">;
|
|
106
|
+
fractionsCreated: string & import("zod").$brand<"Int256">;
|
|
107
107
|
fractionsAddress: `0x${string}`;
|
|
108
108
|
vaultAddress: `0x${string}` | undefined;
|
|
109
109
|
};
|
|
@@ -3,7 +3,7 @@ import { DeployNftFractionsMarketDefaultV0 } from "./deployNftFractionsMarket.js
|
|
|
3
3
|
import { DeployNftFractionsMarketGatedV0 } from "./deployNftFractionsMarketGated.js";
|
|
4
4
|
import { ParseNftFractionsCreatedEventV0 } from "./parseNftFractionsCreatedEvent.js";
|
|
5
5
|
import { createApi } from "../../common/controller.js";
|
|
6
|
-
import { PurchaseV0 } from "../../fractions/sales/purchase.
|
|
6
|
+
import { PurchaseV0 } from "../../fractions/sales/purchase.js";
|
|
7
7
|
export const NftFractionsApi = createApi({
|
|
8
8
|
title: "NFT Fractions API",
|
|
9
9
|
description: "NFT Fractions API",
|
|
@@ -1,17 +1,30 @@
|
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
export declare const ParseNftFractionsCreatedEventResponse: z.ZodObject<{
|
|
3
|
+
creator: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
+
nftId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
5
|
+
campaignId: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
6
|
+
fractionsCreated: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
7
|
+
fractionsAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
8
|
+
vaultAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const ParseNftFractionsCreatedEventRequest: z.ZodObject<{
|
|
11
|
+
chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532" | "72080">[]>;
|
|
12
|
+
hash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
1
14
|
export declare const ParseNftFractionsCreatedEventV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
15
|
"/": {
|
|
3
|
-
$
|
|
16
|
+
$get: {
|
|
4
17
|
input: {
|
|
5
|
-
|
|
18
|
+
query: {
|
|
6
19
|
chainId: "31337" | "11155111" | "84532" | "72080";
|
|
7
20
|
hash: string;
|
|
8
21
|
};
|
|
9
22
|
};
|
|
10
23
|
output: {
|
|
11
|
-
campaignId: string
|
|
24
|
+
campaignId: string & z.core.$brand<"Int256">;
|
|
12
25
|
creator: `0x${string}`;
|
|
13
|
-
nftId: string
|
|
14
|
-
fractionsCreated: string
|
|
26
|
+
nftId: string & z.core.$brand<"Int256">;
|
|
27
|
+
fractionsCreated: string & z.core.$brand<"Int256">;
|
|
15
28
|
fractionsAddress: `0x${string}`;
|
|
16
29
|
vaultAddress: `0x${string}` | undefined;
|
|
17
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseNftFractionsCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/parseNftFractionsCreatedEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parseNftFractionsCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/parseNftFractionsCreatedEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AASxD,eAAO,MAAM,qCAAqC;;;;;;;iBASC,CAAC;AAEpD,eAAO,MAAM,oCAAoC;;;iBASC,CAAC;AAEnD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;aA4C1C,CAAC"}
|
|
@@ -3,18 +3,34 @@ import { resolver, validator } from "hono-openapi";
|
|
|
3
3
|
import { waitForTransactionReceipt } from "viem/actions";
|
|
4
4
|
import { parseFractionsCreatedEvent } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
6
|
-
import { Int256Json } from "@evergonlabs/tmi-utils/models";
|
|
6
|
+
import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
7
7
|
import { nftFractionsTag } from "./tag.js";
|
|
8
8
|
import { getPublicClient } from "../../common/blockchain.js";
|
|
9
9
|
import { createController } from "../../common/controller.js";
|
|
10
10
|
import { HttpError } from "../../common/http-error.js";
|
|
11
11
|
import { AddressSchema, HashSchema, NextFractionsChainId } from "../../common/index.js";
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
export const ParseNftFractionsCreatedEventResponse = z
|
|
13
|
+
.object({
|
|
14
|
+
creator: AddressSchema,
|
|
15
|
+
nftId: Int256Json,
|
|
16
|
+
campaignId: Int256Json.openapi({ description: "Id of a Sale", example: "1" }),
|
|
17
|
+
fractionsCreated: Int256Json,
|
|
18
|
+
fractionsAddress: AddressSchema,
|
|
19
|
+
vaultAddress: AddressSchema,
|
|
20
|
+
})
|
|
21
|
+
.openapi("ParseNftFractionsCreatedEventResponse");
|
|
22
|
+
export const ParseNftFractionsCreatedEventRequest = z
|
|
23
|
+
.object({
|
|
24
|
+
chainId: NextFractionsChainId.openapi({
|
|
25
|
+
param: { name: "chainId", in: "query" },
|
|
26
|
+
}),
|
|
27
|
+
hash: HashSchema.openapi({
|
|
28
|
+
param: { name: "hash", in: "query" },
|
|
29
|
+
}),
|
|
30
|
+
})
|
|
31
|
+
.openapi("ParseNftFractionsCreatedEventRequest");
|
|
16
32
|
export const ParseNftFractionsCreatedEventV0 = createController({
|
|
17
|
-
build: (factory) => factory.createApp().
|
|
33
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
18
34
|
summary: "Get FractionsCreated event (next)",
|
|
19
35
|
description: "Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted with corresponding `createFractions` action from the next SDK.",
|
|
20
36
|
tags: [nftFractionsTag.tag],
|
|
@@ -23,42 +39,30 @@ export const ParseNftFractionsCreatedEventV0 = createController({
|
|
|
23
39
|
description: "Returns parsed event log",
|
|
24
40
|
content: {
|
|
25
41
|
"application/json": {
|
|
26
|
-
schema: resolver(
|
|
27
|
-
creator: AddressSchema,
|
|
28
|
-
nftId: Int256Json,
|
|
29
|
-
campaignId: Int256Json.openapi({ description: "Id of a Sale", example: "1" }),
|
|
30
|
-
fractionsCreated: Int256Json,
|
|
31
|
-
fractionsAddress: AddressSchema,
|
|
32
|
-
vaultAddress: AddressSchema,
|
|
33
|
-
})),
|
|
42
|
+
schema: resolver(ParseNftFractionsCreatedEventResponse),
|
|
34
43
|
},
|
|
35
44
|
},
|
|
36
45
|
},
|
|
37
46
|
},
|
|
38
|
-
}), validator("
|
|
39
|
-
const params = c.req.valid("
|
|
47
|
+
}), validator("query", ParseNftFractionsCreatedEventRequest), async (c) => {
|
|
48
|
+
const params = c.req.valid("query");
|
|
40
49
|
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
|
|
41
50
|
hash: params.hash,
|
|
42
51
|
});
|
|
43
52
|
const result = parseFractionsCreatedEvent(receipt.logs);
|
|
44
53
|
if (!result) {
|
|
45
|
-
throw new
|
|
54
|
+
throw new HttpError(500, {
|
|
55
|
+
message: "Can't parse FractionsCreated transaction. Make sure you're passing transaction that is generated by `createFractions` action",
|
|
56
|
+
name: "UnableParseFractionsCreatedEvent",
|
|
57
|
+
});
|
|
46
58
|
}
|
|
47
59
|
return c.json({
|
|
48
|
-
campaignId: result.campaignId
|
|
60
|
+
campaignId: toInt256Json(result.campaignId),
|
|
49
61
|
creator: result.creator,
|
|
50
|
-
nftId: result.wrapperNftId
|
|
51
|
-
fractionsCreated: result.fractionsCreated
|
|
62
|
+
nftId: toInt256Json(result.wrapperNftId),
|
|
63
|
+
fractionsCreated: toInt256Json(result.fractionsCreated),
|
|
52
64
|
fractionsAddress: result.fractionsAddress,
|
|
53
65
|
vaultAddress: result.vaultAddress,
|
|
54
66
|
});
|
|
55
67
|
}),
|
|
56
68
|
});
|
|
57
|
-
class UnableParseFractionsCreatedEvent extends HttpError {
|
|
58
|
-
constructor() {
|
|
59
|
-
super(500, {
|
|
60
|
-
message: "Can't parse FractionsCreated transaction. Make sure you're passing transaction that is generated by `createFractions` action",
|
|
61
|
-
name: "UnableParseFractionsCreatedEvent",
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ParseNftFractionsCreatedEventRequest, ParseNftFractionsCreatedEventResponse, } from "./parseNftFractionsCreatedEvent.js";
|
|
2
|
+
export { CreateNftFractionsConfigSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
3
|
+
export { DeployNftFractionsMarketDefaultRequestSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
+
export { DeployNftFractionsMarketGatedRequestSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
2
5
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/next/nftFractions/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,qCAAqC,GACtC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,4CAA4C,EAAE,MAAM,8CAA8C,CAAC;AAC5G,OAAO,EAAE,0CAA0C,EAAE,MAAM,8CAA8C,CAAC"}
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ParseNftFractionsCreatedEventRequest, ParseNftFractionsCreatedEventResponse, } from "./parseNftFractionsCreatedEvent.js";
|
|
2
|
+
export { CreateNftFractionsConfigSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
3
|
+
export { DeployNftFractionsMarketDefaultRequestSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
+
export { DeployNftFractionsMarketGatedRequestSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approveCampaign.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/approveCampaign.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"approveCampaign.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/approveCampaign.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;aAa5B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildApproveCampaignTx } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import { ApproveCampaignConfigSchema } from "
|
|
4
|
+
import { ApproveCampaignConfigSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { vrdTag } from "./tag.js";
|
|
6
6
|
import { createController } from "../../common/controller.js";
|
|
7
7
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCampaign.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/createCampaign.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createCampaign.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/createCampaign.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAmBnD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildCreateVestingRedemptionDynamicFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import { CreateVestingRedemptionDynamicFractionsConfigSchema } from "
|
|
4
|
+
import { CreateVestingRedemptionDynamicFractionsConfigSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { vrdTag } from "./tag.js";
|
|
6
6
|
import { createController } from "../../common/controller.js";
|
|
7
7
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployMarket.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/deployMarket.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployMarket.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/deployMarket.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAsBjD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { createVestingRedemptionDynamicMarket } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import { DeployVestingRedemptionDynamicMarketRequestSchema } from "
|
|
4
|
+
import { DeployVestingRedemptionDynamicMarketRequestSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { vrdTag } from "./tag.js";
|
|
6
6
|
import { createController } from "../../common/controller.js";
|
|
7
7
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epochPurchase.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/epochPurchase.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"epochPurchase.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/epochPurchase.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;aAc1B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildEpochPurchaseTx } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import { EpochPurchaseConfigSchema } from "
|
|
4
|
+
import { EpochPurchaseConfigSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { vrdTag } from "./tag.js";
|
|
6
6
|
import { createController } from "../../common/controller.js";
|
|
7
7
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exchangeNftForFractions.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/exchangeNftForFractions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exchangeNftForFractions.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/exchangeNftForFractions.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;aAcpC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { buildExchangeNftForFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
-
import { ExchangeNftForFractionsConfigSchema } from "
|
|
4
|
+
import { ExchangeNftForFractionsConfigSchema } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { vrdTag } from "./tag.js";
|
|
6
6
|
import { createController } from "../../common/controller.js";
|
|
7
7
|
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
export declare const GetCurrentEpochQuery: z.ZodObject<{
|
|
3
|
+
chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532" | "72080">[]>;
|
|
4
|
+
market: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
5
|
+
campaignId: z.ZodCoercedBigInt<unknown>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const GetCurrentEpochResponse: z.ZodObject<{
|
|
8
|
+
currentEpoch: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
9
|
+
}, z.core.$strip>;
|
|
1
10
|
export declare const GetCurrentEpochV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
11
|
"/": {
|
|
3
|
-
$
|
|
12
|
+
$get: {
|
|
4
13
|
input: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
chainId: "31337" | "11155111" | "84532" | "72080";
|
|
14
|
+
query: {
|
|
15
|
+
chainId: string | string[];
|
|
16
|
+
market: string | string[];
|
|
17
|
+
campaignId: string | string[];
|
|
11
18
|
};
|
|
12
19
|
};
|
|
13
20
|
output: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentEpoch.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/getCurrentEpoch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCurrentEpoch.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/getCurrentEpoch.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAQxD,eAAO,MAAM,oBAAoB;;;;iBAMC,CAAC;AAEnC,eAAO,MAAM,uBAAuB;;iBAIC,CAAC;AAEtC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;aAiC5B,CAAC"}
|
|
@@ -4,16 +4,24 @@ import { readContract } from "viem/actions";
|
|
|
4
4
|
import { buildGetCurrentEpochCall } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
6
6
|
import { Int256Json } from "@evergonlabs/tmi-utils/models";
|
|
7
|
-
import { GetCurrentEpochSchema as _GetCurrentEpochSchema } from "./schemas.js";
|
|
8
7
|
import { vrdTag } from "./tag.js";
|
|
9
8
|
import { getPublicClient } from "../../common/blockchain.js";
|
|
10
9
|
import { createController } from "../../common/controller.js";
|
|
11
|
-
import { NextFractionsChainId } from "../../common/index.js";
|
|
12
|
-
const
|
|
13
|
-
.
|
|
14
|
-
|
|
10
|
+
import { AddressSchema, NextFractionsChainId } from "../../common/index.js";
|
|
11
|
+
export const GetCurrentEpochQuery = z
|
|
12
|
+
.object({
|
|
13
|
+
chainId: NextFractionsChainId,
|
|
14
|
+
market: AddressSchema,
|
|
15
|
+
campaignId: z.coerce.bigint(),
|
|
16
|
+
})
|
|
17
|
+
.openapi("GetCurrentEpochQuery");
|
|
18
|
+
export const GetCurrentEpochResponse = z
|
|
19
|
+
.object({
|
|
20
|
+
currentEpoch: Int256Json.openapi({ description: "Current epoch number", example: "1" }),
|
|
21
|
+
})
|
|
22
|
+
.openapi("GetCurrentEpochResponse");
|
|
15
23
|
export const GetCurrentEpochV0 = createController({
|
|
16
|
-
build: (factory) => factory.createApp().
|
|
24
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
17
25
|
summary: "Get current epoch",
|
|
18
26
|
description: "Returns the current epoch number for a Vesting & Redemption Dynamic campaign.",
|
|
19
27
|
tags: [vrdTag.tag],
|
|
@@ -22,15 +30,14 @@ export const GetCurrentEpochV0 = createController({
|
|
|
22
30
|
description: "Returns the current epoch number",
|
|
23
31
|
content: {
|
|
24
32
|
"application/json": {
|
|
25
|
-
schema: resolver(
|
|
26
|
-
currentEpoch: Int256Json.openapi({ description: "Current epoch number", example: "1" }),
|
|
27
|
-
})),
|
|
33
|
+
schema: resolver(GetCurrentEpochResponse),
|
|
28
34
|
},
|
|
29
35
|
},
|
|
30
36
|
},
|
|
31
37
|
},
|
|
32
|
-
}), validator("
|
|
33
|
-
const { chainId,
|
|
38
|
+
}), validator("query", GetCurrentEpochQuery), async (c) => {
|
|
39
|
+
const { chainId, market, campaignId } = c.req.valid("query");
|
|
40
|
+
const campaign = { market, campaignId };
|
|
34
41
|
const publicClient = getPublicClient(chainId, c.env.config);
|
|
35
42
|
// account must be the diamond address itself so msg.sender == address(this),
|
|
36
43
|
// satisfying the OnlyInternalDelegateCall modifier on the facet.
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
export declare const GetEpochPurchaseEventQuery: z.ZodObject<{
|
|
3
|
+
chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532" | "72080">[]>;
|
|
4
|
+
hash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
2
6
|
export declare const GetEpochPurchaseEventV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
3
7
|
"/": {
|
|
4
|
-
$
|
|
8
|
+
$get: {
|
|
5
9
|
input: {
|
|
6
|
-
|
|
10
|
+
query: {
|
|
7
11
|
chainId: "31337" | "11155111" | "84532" | "72080";
|
|
8
12
|
hash: string;
|
|
9
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEpochPurchaseEvent.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/getEpochPurchaseEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"getEpochPurchaseEvent.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/getEpochPurchaseEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AASxD,eAAO,MAAM,0BAA0B;;;iBAKC,CAAC;AAEzC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;aAiDlC,CAAC"}
|
|
@@ -9,14 +9,14 @@ import { getPublicClient } from "../../common/blockchain.js";
|
|
|
9
9
|
import { createController } from "../../common/controller.js";
|
|
10
10
|
import { HttpError } from "../../common/http-error.js";
|
|
11
11
|
import { AddressSchema, HashSchema, NextFractionsChainId } from "../../common/index.js";
|
|
12
|
-
const
|
|
12
|
+
export const GetEpochPurchaseEventQuery = z
|
|
13
13
|
.object({
|
|
14
14
|
chainId: NextFractionsChainId,
|
|
15
15
|
hash: HashSchema,
|
|
16
16
|
})
|
|
17
|
-
.openapi("
|
|
17
|
+
.openapi("GetEpochPurchaseEventQuery");
|
|
18
18
|
export const GetEpochPurchaseEventV0 = createController({
|
|
19
|
-
build: (factory) => factory.createApp().
|
|
19
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
20
20
|
summary: "Get NftPurchased event",
|
|
21
21
|
description: "Gets the transaction by hash and parses the `NftPurchased` event emitted during step 1 of the two-click epoch purchase flow.",
|
|
22
22
|
tags: [vrdTag.tag],
|
|
@@ -37,8 +37,8 @@ export const GetEpochPurchaseEventV0 = createController({
|
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
|
-
}), validator("
|
|
41
|
-
const params = c.req.valid("
|
|
40
|
+
}), validator("query", GetEpochPurchaseEventQuery), async (c) => {
|
|
41
|
+
const params = c.req.valid("query");
|
|
42
42
|
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
|
|
43
43
|
hash: params.hash,
|
|
44
44
|
});
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
export declare const GetPurchasePriceForEpochQuery: z.ZodObject<{
|
|
3
|
+
chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532" | "72080">[]>;
|
|
4
|
+
market: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
5
|
+
campaignId: z.ZodCoercedBigInt<unknown>;
|
|
6
|
+
epoch: z.ZodCoercedBigInt<unknown>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const GetPurchasePriceForEpochResponse: z.ZodObject<{
|
|
9
|
+
price: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
10
|
+
}, z.core.$strip>;
|
|
1
11
|
export declare const GetPurchasePriceForEpochV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
12
|
"/": {
|
|
3
|
-
$
|
|
13
|
+
$get: {
|
|
4
14
|
input: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
epoch: string;
|
|
11
|
-
chainId: "31337" | "11155111" | "84532" | "72080";
|
|
15
|
+
query: {
|
|
16
|
+
chainId: string | string[];
|
|
17
|
+
market: string | string[];
|
|
18
|
+
campaignId: string | string[];
|
|
19
|
+
epoch: string | string[];
|
|
12
20
|
};
|
|
13
21
|
};
|
|
14
22
|
output: {
|
|
15
|
-
price: string
|
|
23
|
+
price: string & z.core.$brand<"Int256">;
|
|
16
24
|
};
|
|
17
25
|
outputFormat: "json";
|
|
18
26
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPurchasePriceForEpoch.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getPurchasePriceForEpoch.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/getPurchasePriceForEpoch.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAQxD,eAAO,MAAM,6BAA6B;;;;;iBAOC,CAAC;AAE5C,eAAO,MAAM,gCAAgC;;iBAOC,CAAC;AAE/C,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;aAkCrC,CAAC"}
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { readContract } from "viem/actions";
|
|
4
|
-
import { buildGetPurchasePriceForEpochCall
|
|
4
|
+
import { buildGetPurchasePriceForEpochCall } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
5
5
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
6
|
-
import { Int256Json } from "@evergonlabs/tmi-utils/models";
|
|
6
|
+
import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
7
7
|
import { vrdTag } from "./tag.js";
|
|
8
8
|
import { getPublicClient } from "../../common/blockchain.js";
|
|
9
9
|
import { createController } from "../../common/controller.js";
|
|
10
|
-
import { NextFractionsChainId } from "../../common/index.js";
|
|
11
|
-
const
|
|
12
|
-
.
|
|
13
|
-
|
|
10
|
+
import { AddressSchema, NextFractionsChainId } from "../../common/index.js";
|
|
11
|
+
export const GetPurchasePriceForEpochQuery = z
|
|
12
|
+
.object({
|
|
13
|
+
chainId: NextFractionsChainId,
|
|
14
|
+
market: AddressSchema,
|
|
15
|
+
campaignId: z.coerce.bigint(),
|
|
16
|
+
epoch: z.coerce.bigint(),
|
|
17
|
+
})
|
|
18
|
+
.openapi("GetPurchasePriceForEpochQuery");
|
|
19
|
+
export const GetPurchasePriceForEpochResponse = z
|
|
20
|
+
.object({
|
|
21
|
+
price: Int256Json.openapi({
|
|
22
|
+
description: "Price in funding packets per 10^18 fraction token units",
|
|
23
|
+
example: "1000000000000000000",
|
|
24
|
+
}),
|
|
25
|
+
})
|
|
26
|
+
.openapi("GetPurchasePriceForEpochResponse");
|
|
14
27
|
export const GetPurchasePriceForEpochV0 = createController({
|
|
15
|
-
build: (factory) => factory.createApp().
|
|
28
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
16
29
|
summary: "Get purchase price for epoch",
|
|
17
30
|
description: "Returns the purchase price (in funding packets per 10^18 fraction token units) recorded for a specific epoch in a Vesting & Redemption Dynamic campaign.",
|
|
18
31
|
tags: [vrdTag.tag],
|
|
@@ -21,18 +34,14 @@ export const GetPurchasePriceForEpochV0 = createController({
|
|
|
21
34
|
description: "Returns the epoch price",
|
|
22
35
|
content: {
|
|
23
36
|
"application/json": {
|
|
24
|
-
schema: resolver(
|
|
25
|
-
price: Int256Json.openapi({
|
|
26
|
-
description: "Price in funding packets per 10^18 fraction token units",
|
|
27
|
-
example: "1000000000000000000",
|
|
28
|
-
}),
|
|
29
|
-
})),
|
|
37
|
+
schema: resolver(GetPurchasePriceForEpochResponse),
|
|
30
38
|
},
|
|
31
39
|
},
|
|
32
40
|
},
|
|
33
41
|
},
|
|
34
|
-
}), validator("
|
|
35
|
-
const { chainId,
|
|
42
|
+
}), validator("query", GetPurchasePriceForEpochQuery), async (c) => {
|
|
43
|
+
const { chainId, market, campaignId, epoch } = c.req.valid("query");
|
|
44
|
+
const campaign = { market, campaignId };
|
|
36
45
|
const publicClient = getPublicClient(chainId, c.env.config);
|
|
37
46
|
// account must be the diamond address itself so msg.sender == address(this),
|
|
38
47
|
// satisfying the OnlyInternalDelegateCall modifier on the facet.
|
|
@@ -40,6 +49,6 @@ export const GetPurchasePriceForEpochV0 = createController({
|
|
|
40
49
|
...buildGetPurchasePriceForEpochCall({ campaign, epoch }),
|
|
41
50
|
account: campaign.market,
|
|
42
51
|
});
|
|
43
|
-
return c.json({ price: result
|
|
52
|
+
return c.json({ price: toInt256Json(result) });
|
|
44
53
|
}),
|
|
45
54
|
});
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
export declare const GetWithdrawalRequestedEventQuery: z.ZodObject<{
|
|
3
|
+
chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532" | "72080">[]>;
|
|
4
|
+
hash: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
2
6
|
export declare const GetWithdrawalRequestedEventV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
3
7
|
"/": {
|
|
4
|
-
$
|
|
8
|
+
$get: {
|
|
5
9
|
input: {
|
|
6
|
-
|
|
10
|
+
query: {
|
|
7
11
|
chainId: "31337" | "11155111" | "84532" | "72080";
|
|
8
12
|
hash: string;
|
|
9
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getWithdrawalRequestedEvent.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"getWithdrawalRequestedEvent.d.ts","sourceRoot":"","sources":["../../../src/next/vestingRedemptionDynamic/getWithdrawalRequestedEvent.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AASxD,eAAO,MAAM,gCAAgC;;;iBAKC,CAAC;AAE/C,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;aA6CxC,CAAC"}
|