@evergonlabs/tmi-protocol-api 0.1.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/dist/app.d.ts +2457 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +23 -0
- package/dist/client.d.ts +2985 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +4 -0
- package/dist/common/abis/erc20Whitelisted.d.ts +4 -0
- package/dist/common/abis/erc20Whitelisted.d.ts.map +1 -0
- package/dist/common/abis/erc20Whitelisted.js +4 -0
- package/dist/common/app.d.ts +9 -0
- package/dist/common/app.d.ts.map +1 -0
- package/dist/common/app.js +3 -0
- package/dist/common/blockchain.d.ts +10465 -0
- package/dist/common/blockchain.d.ts.map +1 -0
- package/dist/common/blockchain.js +44 -0
- package/dist/common/config.d.ts +24 -0
- package/dist/common/config.d.ts.map +1 -0
- package/dist/common/config.js +36 -0
- package/dist/common/http-error.d.ts +7 -0
- package/dist/common/http-error.d.ts.map +1 -0
- package/dist/common/http-error.js +7 -0
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/indexer/client.d.ts +3904 -0
- package/dist/common/indexer/client.d.ts.map +1 -0
- package/dist/common/indexer/client.js +7 -0
- package/dist/common/indexer/index.d.ts +3904 -0
- package/dist/common/indexer/index.d.ts.map +1 -0
- package/dist/common/indexer/index.js +3 -0
- package/dist/common/indexer/schemas.d.ts +2511 -0
- package/dist/common/indexer/schemas.d.ts.map +1 -0
- package/dist/common/indexer/schemas.js +29 -0
- package/dist/common/models/asset.d.ts +30 -0
- package/dist/common/models/asset.d.ts.map +1 -0
- package/dist/common/models/asset.js +21 -0
- package/dist/common/models/chainId.d.ts +5 -0
- package/dist/common/models/chainId.d.ts.map +1 -0
- package/dist/common/models/chainId.js +23 -0
- package/dist/common/models/date.d.ts +3 -0
- package/dist/common/models/date.d.ts.map +1 -0
- package/dist/common/models/date.js +5 -0
- package/dist/common/models/erc721.d.ts +15 -0
- package/dist/common/models/erc721.d.ts.map +1 -0
- package/dist/common/models/erc721.js +21 -0
- package/dist/common/models/index.d.ts +8 -0
- package/dist/common/models/index.d.ts.map +1 -0
- package/dist/common/models/index.js +7 -0
- package/dist/common/models/page.d.ts +12 -0
- package/dist/common/models/page.d.ts.map +1 -0
- package/dist/common/models/page.js +15 -0
- package/dist/common/models/percent.d.ts +3 -0
- package/dist/common/models/percent.d.ts.map +1 -0
- package/dist/common/models/percent.js +6 -0
- package/dist/common/models/platform.d.ts +8 -0
- package/dist/common/models/platform.d.ts.map +1 -0
- package/dist/common/models/platform.js +28 -0
- package/dist/common/models/routes.d.ts +16 -0
- package/dist/common/models/routes.d.ts.map +1 -0
- package/dist/common/models/routes.js +13 -0
- package/dist/common/models/saleId.d.ts +12 -0
- package/dist/common/models/saleId.d.ts.map +1 -0
- package/dist/common/models/saleId.js +6 -0
- package/dist/common/models/transaction.d.ts +90 -0
- package/dist/common/models/transaction.d.ts.map +1 -0
- package/dist/common/models/transaction.js +57 -0
- package/dist/common/models/viem.d.ts +4 -0
- package/dist/common/models/viem.d.ts.map +1 -0
- package/dist/common/models/viem.js +17 -0
- package/dist/common/roles/erc20-gated-roles.d.ts +7 -0
- package/dist/common/roles/erc20-gated-roles.d.ts.map +1 -0
- package/dist/common/roles/erc20-gated-roles.js +13 -0
- package/dist/common/tag.d.ts +7 -0
- package/dist/common/tag.d.ts.map +1 -0
- package/dist/common/tag.js +5 -0
- package/dist/common/zod.d.ts +3 -0
- package/dist/common/zod.d.ts.map +1 -0
- package/dist/common/zod.js +2 -0
- package/dist/error.d.ts +3 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +16 -0
- package/dist/fractions/activity/searchActivity.route.d.ts +162 -0
- package/dist/fractions/activity/searchActivity.route.d.ts.map +1 -0
- package/dist/fractions/activity/searchActivity.route.js +56 -0
- package/dist/fractions/activity/utils.d.ts +152 -0
- package/dist/fractions/activity/utils.d.ts.map +1 -0
- package/dist/fractions/activity/utils.js +59 -0
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts +68 -0
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts.map +1 -0
- package/dist/fractions/approveSale/v0/approveSale.route.js +31 -0
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts +203 -0
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +1 -0
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.js +84 -0
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts +68 -0
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts.map +1 -0
- package/dist/fractions/completeSale/v0/completeSale.route.js +31 -0
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts +305 -0
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts.map +1 -0
- package/dist/fractions/createFractions/v0/createFractions.route.js +61 -0
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts +416 -0
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts.map +1 -0
- package/dist/fractions/createFractions/v0/createFractions.schema.js +67 -0
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +51 -0
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.js +58 -0
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts +347 -0
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -0
- package/dist/fractions/deployMarket/v0/deployMarket.routes.js +139 -0
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts +83 -0
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +1 -0
- package/dist/fractions/deployMarket/v0/deployMarket.schema.js +21 -0
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts +61 -0
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts.map +1 -0
- package/dist/fractions/deployMarket/v0/initNid.route.js +31 -0
- package/dist/fractions/gating/v0/getAuthData.d.ts +86 -0
- package/dist/fractions/gating/v0/getAuthData.d.ts.map +1 -0
- package/dist/fractions/gating/v0/getAuthData.js +48 -0
- package/dist/fractions/gating/v0/getNonce.route.d.ts +54 -0
- package/dist/fractions/gating/v0/getNonce.route.d.ts.map +1 -0
- package/dist/fractions/gating/v0/getNonce.route.js +40 -0
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts +65 -0
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts.map +1 -0
- package/dist/fractions/grantRole/v0/grantRole.route.js +31 -0
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts +26 -0
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts.map +1 -0
- package/dist/fractions/grantRole/v0/grantRole.schema.js +14 -0
- package/dist/fractions/index.d.ts +1203 -0
- package/dist/fractions/index.d.ts.map +1 -0
- package/dist/fractions/index.js +100 -0
- package/dist/fractions/markets/common/platform.d.ts +84 -0
- package/dist/fractions/markets/common/platform.d.ts.map +1 -0
- package/dist/fractions/markets/common/platform.js +33 -0
- package/dist/fractions/markets/getDeployEvent.d.ts +42 -0
- package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -0
- package/dist/fractions/markets/getDeployEvent.js +47 -0
- package/dist/fractions/markets/getMarket/index.d.ts +53 -0
- package/dist/fractions/markets/getMarket/index.d.ts.map +1 -0
- package/dist/fractions/markets/getMarket/index.js +4 -0
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts +103 -0
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts.map +1 -0
- package/dist/fractions/markets/getMarket/v0/getMarket.js +63 -0
- package/dist/fractions/markets/index.d.ts +110 -0
- package/dist/fractions/markets/index.d.ts.map +1 -0
- package/dist/fractions/markets/index.js +12 -0
- package/dist/fractions/markets/searchMarkets/index.d.ts +45 -0
- package/dist/fractions/markets/searchMarkets/index.d.ts.map +1 -0
- package/dist/fractions/markets/searchMarkets/index.js +4 -0
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +115 -0
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +1 -0
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.js +43 -0
- package/dist/fractions/purchase/v0/purchase.route.d.ts +89 -0
- package/dist/fractions/purchase/v0/purchase.route.d.ts.map +1 -0
- package/dist/fractions/purchase/v0/purchase.route.js +41 -0
- package/dist/fractions/roles/getRoles/v0/getRoles.d.ts +28 -0
- package/dist/fractions/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/fractions/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/fractions/sales/common/fractionsSale.d.ts +352 -0
- package/dist/fractions/sales/common/fractionsSale.d.ts.map +1 -0
- package/dist/fractions/sales/common/fractionsSale.js +123 -0
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +98 -0
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +1 -0
- package/dist/fractions/sales/getFractionSaleStatistics.route.js +64 -0
- package/dist/fractions/sales/getVaultAddress.d.ts +52 -0
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -0
- package/dist/fractions/sales/getVaultAddress.js +60 -0
- package/dist/fractions/sales/getWithdrawEvent.d.ts +42 -0
- package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -0
- package/dist/fractions/sales/getWithdrawEvent.js +51 -0
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +144 -0
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -0
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.js +59 -0
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +57 -0
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -0
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +27 -0
- package/dist/fractions/sales/recoverFractions.d.ts +108 -0
- package/dist/fractions/sales/recoverFractions.d.ts.map +1 -0
- package/dist/fractions/sales/recoverFractions.js +45 -0
- package/dist/fractions/sales/rejectFractions.d.ts +80 -0
- package/dist/fractions/sales/rejectFractions.d.ts.map +1 -0
- package/dist/fractions/sales/rejectFractions.js +39 -0
- package/dist/fractions/sales/searchActivity.route.d.ts +90 -0
- package/dist/fractions/sales/searchActivity.route.d.ts.map +1 -0
- package/dist/fractions/sales/searchActivity.route.js +67 -0
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +89 -0
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +1 -0
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +82 -0
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts +257 -0
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts.map +1 -0
- package/dist/fractions/sales/searchSales/v0/searchSales.js +50 -0
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +58 -0
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +1 -0
- package/dist/fractions/sales/searchWithdrawal.route.js +48 -0
- package/dist/fractions/sales/setFeeCapLimit.d.ts +75 -0
- package/dist/fractions/sales/setFeeCapLimit.d.ts.map +1 -0
- package/dist/fractions/sales/setFeeCapLimit.js +32 -0
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts +68 -0
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -0
- package/dist/fractions/sales/unlockWrappedAssets.route.js +31 -0
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +94 -0
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.js +41 -0
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts +87 -0
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/v0/editCliff.route.js +40 -0
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +48 -0
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +57 -0
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts +68 -0
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts.map +1 -0
- package/dist/fractions/withdraw/v0/withdraw.route.js +31 -0
- package/dist/general/balance-client.d.ts +13 -0
- package/dist/general/balance-client.d.ts.map +1 -0
- package/dist/general/balance-client.js +26 -0
- package/dist/general/common.d.ts +94 -0
- package/dist/general/common.d.ts.map +1 -0
- package/dist/general/common.js +35 -0
- package/dist/general/estimateGas.d.ts +52 -0
- package/dist/general/estimateGas.d.ts.map +1 -0
- package/dist/general/estimateGas.js +64 -0
- package/dist/general/getBalance.d.ts +44 -0
- package/dist/general/getBalance.d.ts.map +1 -0
- package/dist/general/getBalance.js +43 -0
- package/dist/general/getBalancesBatch.d.ts +59 -0
- package/dist/general/getBalancesBatch.d.ts.map +1 -0
- package/dist/general/getBalancesBatch.js +34 -0
- package/dist/general/index.d.ts +100 -0
- package/dist/general/index.d.ts.map +1 -0
- package/dist/general/index.js +20 -0
- package/dist/general/searchBalances.d.ts +78 -0
- package/dist/general/searchBalances.d.ts.map +1 -0
- package/dist/general/searchBalances.js +49 -0
- package/dist/issuance/approve.d.ts +75 -0
- package/dist/issuance/approve.d.ts.map +1 -0
- package/dist/issuance/approve.js +36 -0
- package/dist/issuance/burn.d.ts +75 -0
- package/dist/issuance/burn.d.ts.map +1 -0
- package/dist/issuance/burn.js +36 -0
- package/dist/issuance/deploy.d.ts +88 -0
- package/dist/issuance/deploy.d.ts.map +1 -0
- package/dist/issuance/deploy.js +91 -0
- package/dist/issuance/grantRole.d.ts +76 -0
- package/dist/issuance/grantRole.d.ts.map +1 -0
- package/dist/issuance/grantRole.js +42 -0
- package/dist/issuance/index.d.ts +189 -0
- package/dist/issuance/index.d.ts.map +1 -0
- package/dist/issuance/index.js +25 -0
- package/dist/issuance/mint.d.ts +75 -0
- package/dist/issuance/mint.d.ts.map +1 -0
- package/dist/issuance/mint.js +36 -0
- package/dist/issuance/renounceRole.d.ts +76 -0
- package/dist/issuance/renounceRole.d.ts.map +1 -0
- package/dist/issuance/renounceRole.js +42 -0
- package/dist/issuance/transfer.d.ts +75 -0
- package/dist/issuance/transfer.d.ts.map +1 -0
- package/dist/issuance/transfer.js +36 -0
- package/dist/package.json +78 -0
- package/dist/src/app.d.ts +2194 -0
- package/dist/src/app.d.ts.map +1 -0
- package/dist/src/app.js +18 -0
- package/dist/src/client.d.ts +2690 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +4 -0
- package/dist/src/common/abis/erc20Whitelisted.d.ts +4 -0
- package/dist/src/common/abis/erc20Whitelisted.d.ts.map +1 -0
- package/dist/src/common/abis/erc20Whitelisted.js +4 -0
- package/dist/src/common/app.d.ts +9 -0
- package/dist/src/common/app.d.ts.map +1 -0
- package/dist/src/common/app.js +3 -0
- package/dist/src/common/blockchain.d.ts +9528 -0
- package/dist/src/common/blockchain.d.ts.map +1 -0
- package/dist/src/common/blockchain.js +40 -0
- package/dist/src/common/config.d.ts +21 -0
- package/dist/src/common/config.d.ts.map +1 -0
- package/dist/src/common/config.js +33 -0
- package/dist/src/common/http-error.d.ts +7 -0
- package/dist/src/common/http-error.d.ts.map +1 -0
- package/dist/src/common/http-error.js +7 -0
- package/dist/src/common/index.d.ts +2 -0
- package/dist/src/common/index.d.ts.map +1 -0
- package/dist/src/common/index.js +1 -0
- package/dist/src/common/indexer/client.d.ts +1191 -0
- package/dist/src/common/indexer/client.d.ts.map +1 -0
- package/dist/src/common/indexer/client.js +7 -0
- package/dist/src/common/indexer/index.d.ts +1191 -0
- package/dist/src/common/indexer/index.d.ts.map +1 -0
- package/dist/src/common/indexer/index.js +3 -0
- package/dist/src/common/indexer/schemas.d.ts +1191 -0
- package/dist/src/common/indexer/schemas.d.ts.map +1 -0
- package/dist/src/common/indexer/schemas.js +14 -0
- package/dist/src/common/models/chainId.d.ts +5 -0
- package/dist/src/common/models/chainId.d.ts.map +1 -0
- package/dist/src/common/models/chainId.js +23 -0
- package/dist/src/common/models/date.d.ts +3 -0
- package/dist/src/common/models/date.d.ts.map +1 -0
- package/dist/src/common/models/date.js +5 -0
- package/dist/src/common/models/erc721.d.ts +15 -0
- package/dist/src/common/models/erc721.d.ts.map +1 -0
- package/dist/src/common/models/erc721.js +21 -0
- package/dist/src/common/models/index.d.ts +7 -0
- package/dist/src/common/models/index.d.ts.map +1 -0
- package/dist/src/common/models/index.js +6 -0
- package/dist/src/common/models/page.d.ts +12 -0
- package/dist/src/common/models/page.d.ts.map +1 -0
- package/dist/src/common/models/page.js +15 -0
- package/dist/src/common/models/percent.d.ts +3 -0
- package/dist/src/common/models/percent.d.ts.map +1 -0
- package/dist/src/common/models/percent.js +6 -0
- package/dist/src/common/models/platform.d.ts +4 -0
- package/dist/src/common/models/platform.d.ts.map +1 -0
- package/dist/src/common/models/platform.js +13 -0
- package/dist/src/common/models/routes.d.ts +16 -0
- package/dist/src/common/models/routes.d.ts.map +1 -0
- package/dist/src/common/models/routes.js +13 -0
- package/dist/src/common/models/saleId.d.ts +12 -0
- package/dist/src/common/models/saleId.d.ts.map +1 -0
- package/dist/src/common/models/saleId.js +6 -0
- package/dist/src/common/models/transaction.d.ts +90 -0
- package/dist/src/common/models/transaction.d.ts.map +1 -0
- package/dist/src/common/models/transaction.js +57 -0
- package/dist/src/common/models/viem.d.ts +4 -0
- package/dist/src/common/models/viem.d.ts.map +1 -0
- package/dist/src/common/models/viem.js +15 -0
- package/dist/src/common/openapi.d.ts +4 -0
- package/dist/src/common/openapi.d.ts.map +1 -0
- package/dist/src/common/openapi.js +40 -0
- package/dist/src/common/tag.d.ts +7 -0
- package/dist/src/common/tag.d.ts.map +1 -0
- package/dist/src/common/tag.js +5 -0
- package/dist/src/common/version.d.ts +2 -0
- package/dist/src/common/version.d.ts.map +1 -0
- package/dist/src/common/version.js +2 -0
- package/dist/src/common/zod.d.ts +3 -0
- package/dist/src/common/zod.d.ts.map +1 -0
- package/dist/src/common/zod.js +2 -0
- package/dist/src/error.d.ts +3 -0
- package/dist/src/error.d.ts.map +1 -0
- package/dist/src/error.js +16 -0
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts +68 -0
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts.map +1 -0
- package/dist/src/fractions/approveSale/v0/approveSale.route.js +31 -0
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts +203 -0
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +1 -0
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.js +84 -0
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts +68 -0
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts.map +1 -0
- package/dist/src/fractions/completeSale/v0/completeSale.route.js +31 -0
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts +305 -0
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts.map +1 -0
- package/dist/src/fractions/createFractions/v0/createFractions.route.js +61 -0
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts +416 -0
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts.map +1 -0
- package/dist/src/fractions/createFractions/v0/createFractions.schema.js +67 -0
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +51 -0
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.js +59 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts +297 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.js +98 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts +96 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +1 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.js +21 -0
- package/dist/src/fractions/gating/index.d.ts +2 -0
- package/dist/src/fractions/gating/index.d.ts.map +1 -0
- package/dist/src/fractions/gating/index.js +0 -0
- package/dist/src/fractions/gating/v0/getAuthData.d.ts +86 -0
- package/dist/src/fractions/gating/v0/getAuthData.d.ts.map +1 -0
- package/dist/src/fractions/gating/v0/getAuthData.js +48 -0
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts +54 -0
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts.map +1 -0
- package/dist/src/fractions/gating/v0/getNonce.route.js +40 -0
- package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts +65 -0
- package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts.map +1 -0
- package/dist/src/fractions/grantRole/v0/grantRole.route.js +31 -0
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts +26 -0
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts.map +1 -0
- package/dist/src/fractions/grantRole/v0/grantRole.schema.js +14 -0
- package/dist/src/fractions/index.d.ts +968 -0
- package/dist/src/fractions/index.d.ts.map +1 -0
- package/dist/src/fractions/index.js +91 -0
- package/dist/src/fractions/markets/common/platform.d.ts +26 -0
- package/dist/src/fractions/markets/common/platform.d.ts.map +1 -0
- package/dist/src/fractions/markets/common/platform.js +26 -0
- package/dist/src/fractions/markets/getDeployEvent.d.ts +42 -0
- package/dist/src/fractions/markets/getDeployEvent.d.ts.map +1 -0
- package/dist/src/fractions/markets/getDeployEvent.js +47 -0
- package/dist/src/fractions/markets/getMarket/index.d.ts +40 -0
- package/dist/src/fractions/markets/getMarket/index.d.ts.map +1 -0
- package/dist/src/fractions/markets/getMarket/index.js +4 -0
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts +64 -0
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts.map +1 -0
- package/dist/src/fractions/markets/getMarket/v0/getMarket.js +63 -0
- package/dist/src/fractions/markets/index.d.ts +84 -0
- package/dist/src/fractions/markets/index.d.ts.map +1 -0
- package/dist/src/fractions/markets/index.js +12 -0
- package/dist/src/fractions/markets/searchMarkets/index.d.ts +32 -0
- package/dist/src/fractions/markets/searchMarkets/index.d.ts.map +1 -0
- package/dist/src/fractions/markets/searchMarkets/index.js +4 -0
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +76 -0
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +1 -0
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.js +42 -0
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts +89 -0
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts.map +1 -0
- package/dist/src/fractions/purchase/v0/purchase.route.js +41 -0
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts +28 -0
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/src/fractions/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/src/fractions/sales/getVaultAddress.d.ts +52 -0
- package/dist/src/fractions/sales/getVaultAddress.d.ts.map +1 -0
- package/dist/src/fractions/sales/getVaultAddress.js +61 -0
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts +42 -0
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts.map +1 -0
- package/dist/src/fractions/sales/getWithdrawEvent.js +52 -0
- package/dist/src/fractions/sales/index.d.ts +10 -0
- package/dist/src/fractions/sales/index.d.ts.map +1 -0
- package/dist/src/fractions/sales/index.js +10 -0
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +144 -0
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.js +59 -0
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +57 -0
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +27 -0
- package/dist/src/fractions/sales/recoverFractions.d.ts +108 -0
- package/dist/src/fractions/sales/recoverFractions.d.ts.map +1 -0
- package/dist/src/fractions/sales/recoverFractions.js +45 -0
- package/dist/src/fractions/sales/rejectFractions.d.ts +80 -0
- package/dist/src/fractions/sales/rejectFractions.d.ts.map +1 -0
- package/dist/src/fractions/sales/rejectFractions.js +39 -0
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts +2 -0
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts.map +1 -0
- package/dist/src/fractions/sales/searchSaleEvents/index.js +0 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +89 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +1 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +82 -0
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts +75 -0
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts.map +1 -0
- package/dist/src/fractions/sales/setFeeCapLimit.js +32 -0
- package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts +68 -0
- package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/unlockWrappedAssets.route.js +31 -0
- package/dist/src/fractions/sales/vesting/index.d.ts +2 -0
- package/dist/src/fractions/sales/vesting/index.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/index.js +0 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +94 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.js +41 -0
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts +87 -0
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.js +40 -0
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +48 -0
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +58 -0
- package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts +68 -0
- package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts.map +1 -0
- package/dist/src/fractions/withdraw/v0/withdraw.route.js +31 -0
- package/dist/src/general/balance-client.d.ts +13 -0
- package/dist/src/general/balance-client.d.ts.map +1 -0
- package/dist/src/general/balance-client.js +26 -0
- package/dist/src/general/common.d.ts +94 -0
- package/dist/src/general/common.d.ts.map +1 -0
- package/dist/src/general/common.js +35 -0
- package/dist/src/general/estimateGas.d.ts +52 -0
- package/dist/src/general/estimateGas.d.ts.map +1 -0
- package/dist/src/general/estimateGas.js +64 -0
- package/dist/src/general/getBalance.d.ts +44 -0
- package/dist/src/general/getBalance.d.ts.map +1 -0
- package/dist/src/general/getBalance.js +43 -0
- package/dist/src/general/getBalancesBatch.d.ts +59 -0
- package/dist/src/general/getBalancesBatch.d.ts.map +1 -0
- package/dist/src/general/getBalancesBatch.js +34 -0
- package/dist/src/general/index.d.ts +100 -0
- package/dist/src/general/index.d.ts.map +1 -0
- package/dist/src/general/index.js +20 -0
- package/dist/src/general/searchBalances.d.ts +78 -0
- package/dist/src/general/searchBalances.d.ts.map +1 -0
- package/dist/src/general/searchBalances.js +49 -0
- package/dist/src/issuance/approve.d.ts +75 -0
- package/dist/src/issuance/approve.d.ts.map +1 -0
- package/dist/src/issuance/approve.js +36 -0
- package/dist/src/issuance/burn.d.ts +75 -0
- package/dist/src/issuance/burn.d.ts.map +1 -0
- package/dist/src/issuance/burn.js +36 -0
- package/dist/src/issuance/deploy.d.ts +88 -0
- package/dist/src/issuance/deploy.d.ts.map +1 -0
- package/dist/src/issuance/deploy.js +91 -0
- package/dist/src/issuance/grantRole.d.ts +78 -0
- package/dist/src/issuance/grantRole.d.ts.map +1 -0
- package/dist/src/issuance/grantRole.js +50 -0
- package/dist/src/issuance/index.d.ts +165 -0
- package/dist/src/issuance/index.d.ts.map +1 -0
- package/dist/src/issuance/index.js +23 -0
- package/dist/src/issuance/mint.d.ts +75 -0
- package/dist/src/issuance/mint.d.ts.map +1 -0
- package/dist/src/issuance/mint.js +36 -0
- package/dist/src/issuance/transfer.d.ts +75 -0
- package/dist/src/issuance/transfer.d.ts.map +1 -0
- package/dist/src/issuance/transfer.js +36 -0
- package/dist/src/serve.d.ts +2 -0
- package/dist/src/serve.d.ts.map +1 -0
- package/dist/src/serve.js +33 -0
- package/dist/src/staking/index.d.ts +242 -0
- package/dist/src/staking/index.d.ts.map +1 -0
- package/dist/src/staking/index.js +20 -0
- package/dist/src/staking/platforms/common/platform.d.ts +26 -0
- package/dist/src/staking/platforms/common/platform.d.ts.map +1 -0
- package/dist/src/staking/platforms/common/platform.js +26 -0
- package/dist/src/staking/platforms/common/platformNotFound.d.ts +9 -0
- package/dist/src/staking/platforms/common/platformNotFound.d.ts.map +1 -0
- package/dist/src/staking/platforms/common/platformNotFound.js +13 -0
- package/dist/src/staking/platforms/getPlatform/index.d.ts +26 -0
- package/dist/src/staking/platforms/getPlatform/index.d.ts.map +1 -0
- package/dist/src/staking/platforms/getPlatform/index.js +4 -0
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts +52 -0
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -0
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.js +58 -0
- package/dist/src/staking/platforms/index.d.ts +52 -0
- package/dist/src/staking/platforms/index.d.ts.map +1 -0
- package/dist/src/staking/platforms/index.js +10 -0
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts +32 -0
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts.map +1 -0
- package/dist/src/staking/platforms/searchPlatforms/index.js +4 -0
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +76 -0
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -0
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.js +42 -0
- package/dist/src/staking/pools/common/pool.d.ts +29 -0
- package/dist/src/staking/pools/common/pool.d.ts.map +1 -0
- package/dist/src/staking/pools/common/pool.js +28 -0
- package/dist/src/staking/pools/common/poolNotFound.d.ts +10 -0
- package/dist/src/staking/pools/common/poolNotFound.d.ts.map +1 -0
- package/dist/src/staking/pools/common/poolNotFound.js +14 -0
- package/dist/src/staking/pools/getPool/index.d.ts +20 -0
- package/dist/src/staking/pools/getPool/index.d.ts.map +1 -0
- package/dist/src/staking/pools/getPool/index.js +4 -0
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts +35 -0
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts.map +1 -0
- package/dist/src/staking/pools/getPool/v0/getPool.js +64 -0
- package/dist/src/staking/pools/index.d.ts +39 -0
- package/dist/src/staking/pools/index.d.ts.map +1 -0
- package/dist/src/staking/pools/index.js +10 -0
- package/dist/src/staking/pools/searchPools/index.d.ts +25 -0
- package/dist/src/staking/pools/searchPools/index.d.ts.map +1 -0
- package/dist/src/staking/pools/searchPools/index.js +4 -0
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts +55 -0
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -0
- package/dist/src/staking/pools/searchPools/v0/searchPools.js +42 -0
- package/dist/src/staking/roles/common/role.d.ts +13 -0
- package/dist/src/staking/roles/common/role.d.ts.map +1 -0
- package/dist/src/staking/roles/common/role.js +18 -0
- package/dist/src/staking/roles/common/roleAssignment.d.ts +27 -0
- package/dist/src/staking/roles/common/roleAssignment.d.ts.map +1 -0
- package/dist/src/staking/roles/common/roleAssignment.js +21 -0
- package/dist/src/staking/roles/common/roleEvent.d.ts +30 -0
- package/dist/src/staking/roles/common/roleEvent.d.ts.map +1 -0
- package/dist/src/staking/roles/common/roleEvent.js +23 -0
- package/dist/src/staking/roles/getRoles/index.d.ts +26 -0
- package/dist/src/staking/roles/getRoles/index.d.ts.map +1 -0
- package/dist/src/staking/roles/getRoles/index.js +4 -0
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts +29 -0
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/src/staking/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/src/staking/roles/grantRole/index.d.ts +29 -0
- package/dist/src/staking/roles/grantRole/index.d.ts.map +1 -0
- package/dist/src/staking/roles/grantRole/index.js +4 -0
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts +63 -0
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -0
- package/dist/src/staking/roles/grantRole/v0/grantRole.js +40 -0
- package/dist/src/staking/roles/index.d.ts +93 -0
- package/dist/src/staking/roles/index.d.ts.map +1 -0
- package/dist/src/staking/roles/index.js +14 -0
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts +27 -0
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoleEvents/index.js +4 -0
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +63 -0
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +58 -0
- package/dist/src/staking/roles/searchRoles/index.d.ts +27 -0
- package/dist/src/staking/roles/searchRoles/index.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoles/index.js +4 -0
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts +63 -0
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.js +56 -0
- package/dist/src/staking/stakes/common/stake.d.ts +44 -0
- package/dist/src/staking/stakes/common/stake.d.ts.map +1 -0
- package/dist/src/staking/stakes/common/stake.js +45 -0
- package/dist/src/staking/stakes/common/stakeEvent.d.ts +30 -0
- package/dist/src/staking/stakes/common/stakeEvent.d.ts.map +1 -0
- package/dist/src/staking/stakes/common/stakeEvent.js +24 -0
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts +9 -0
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts.map +1 -0
- package/dist/src/staking/stakes/common/stakeNotFound.js +13 -0
- package/dist/src/staking/stakes/getStake/index.d.ts +20 -0
- package/dist/src/staking/stakes/getStake/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/getStake/index.js +4 -0
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts +35 -0
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts.map +1 -0
- package/dist/src/staking/stakes/getStake/v0/getStake.js +64 -0
- package/dist/src/staking/stakes/index.d.ts +63 -0
- package/dist/src/staking/stakes/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/index.js +12 -0
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts +27 -0
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakeEvents/index.js +4 -0
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +63 -0
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +59 -0
- package/dist/src/staking/stakes/searchStakes/index.d.ts +27 -0
- package/dist/src/staking/stakes/searchStakes/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakes/index.js +4 -0
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts +63 -0
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.js +61 -0
- package/dist/src/staking-templates/index.d.ts +732 -0
- package/dist/src/staking-templates/index.d.ts.map +1 -0
- package/dist/src/staking-templates/index.js +18 -0
- package/dist/src/staking-templates/templates/common/amount.d.ts +13 -0
- package/dist/src/staking-templates/templates/common/amount.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/amount.js +17 -0
- package/dist/src/staking-templates/templates/common/amountMult.d.ts +3 -0
- package/dist/src/staking-templates/templates/common/amountMult.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/amountMult.js +23 -0
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts +12 -0
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/erc20Input.js +16 -0
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts +12 -0
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/erc20Reward.js +16 -0
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts +31 -0
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.js +47 -0
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts +40 -0
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.js +46 -0
- package/dist/src/staking-templates/templates/common/getReward.d.ts +58 -0
- package/dist/src/staking-templates/templates/common/getReward.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getReward.js +34 -0
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts +31 -0
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getStakeEvent.js +51 -0
- package/dist/src/staking-templates/templates/common/lock.d.ts +12 -0
- package/dist/src/staking-templates/templates/common/lock.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/lock.js +20 -0
- package/dist/src/staking-templates/templates/common/lockMult.d.ts +3 -0
- package/dist/src/staking-templates/templates/common/lockMult.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/lockMult.js +15 -0
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts +62 -0
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/partialUnstake.js +39 -0
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts +13 -0
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/rewardDistribution.js +19 -0
- package/dist/src/staking-templates/templates/common/templates.d.ts +61 -0
- package/dist/src/staking-templates/templates/common/templates.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/templates.js +8 -0
- package/dist/src/staking-templates/templates/common/time.d.ts +2 -0
- package/dist/src/staking-templates/templates/common/time.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/time.js +4 -0
- package/dist/src/staking-templates/templates/common/unstake.d.ts +58 -0
- package/dist/src/staking-templates/templates/common/unstake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/unstake.js +34 -0
- package/dist/src/staking-templates/templates/reputation/common.d.ts +23 -0
- package/dist/src/staking-templates/templates/reputation/common.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/common.js +3 -0
- package/dist/src/staking-templates/templates/reputation/index.d.ts +233 -0
- package/dist/src/staking-templates/templates/reputation/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/index.js +4 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts +81 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.js +56 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts +113 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPool.js +85 -0
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts +233 -0
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/index.js +25 -0
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts +61 -0
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/restake.js +40 -0
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts +61 -0
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/stake.js +45 -0
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts +23 -0
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/common.js +3 -0
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts +244 -0
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/index.js +4 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +81 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.js +56 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts +149 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.js +99 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts +244 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/index.js +25 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts +65 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.js +44 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts +65 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.js +46 -0
- package/dist/src/staking-templates/templates/rwa/common.d.ts +23 -0
- package/dist/src/staking-templates/templates/rwa/common.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/common.js +3 -0
- package/dist/src/staking-templates/templates/rwa/index.d.ts +256 -0
- package/dist/src/staking-templates/templates/rwa/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/index.js +4 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts +81 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.js +56 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts +109 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPool.js +79 -0
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts +256 -0
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/index.js +27 -0
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts +61 -0
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.js +41 -0
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts +61 -0
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/restake.js +40 -0
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts +61 -0
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/stake.js +45 -0
- package/dist/staking/index.d.ts +242 -0
- package/dist/staking/index.d.ts.map +1 -0
- package/dist/staking/index.js +20 -0
- package/dist/staking/platforms/common/platform.d.ts +26 -0
- package/dist/staking/platforms/common/platform.d.ts.map +1 -0
- package/dist/staking/platforms/common/platform.js +26 -0
- package/dist/staking/platforms/common/platformNotFound.d.ts +9 -0
- package/dist/staking/platforms/common/platformNotFound.d.ts.map +1 -0
- package/dist/staking/platforms/common/platformNotFound.js +13 -0
- package/dist/staking/platforms/getPlatform/index.d.ts +26 -0
- package/dist/staking/platforms/getPlatform/index.d.ts.map +1 -0
- package/dist/staking/platforms/getPlatform/index.js +4 -0
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +52 -0
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -0
- package/dist/staking/platforms/getPlatform/v0/getPlatform.js +58 -0
- package/dist/staking/platforms/index.d.ts +52 -0
- package/dist/staking/platforms/index.d.ts.map +1 -0
- package/dist/staking/platforms/index.js +10 -0
- package/dist/staking/platforms/searchPlatforms/index.d.ts +32 -0
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +1 -0
- package/dist/staking/platforms/searchPlatforms/index.js +4 -0
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +76 -0
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -0
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +42 -0
- package/dist/staking/pools/common/pool.d.ts +29 -0
- package/dist/staking/pools/common/pool.d.ts.map +1 -0
- package/dist/staking/pools/common/pool.js +28 -0
- package/dist/staking/pools/common/poolNotFound.d.ts +10 -0
- package/dist/staking/pools/common/poolNotFound.d.ts.map +1 -0
- package/dist/staking/pools/common/poolNotFound.js +14 -0
- package/dist/staking/pools/getPool/index.d.ts +20 -0
- package/dist/staking/pools/getPool/index.d.ts.map +1 -0
- package/dist/staking/pools/getPool/index.js +4 -0
- package/dist/staking/pools/getPool/v0/getPool.d.ts +35 -0
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +1 -0
- package/dist/staking/pools/getPool/v0/getPool.js +64 -0
- package/dist/staking/pools/index.d.ts +39 -0
- package/dist/staking/pools/index.d.ts.map +1 -0
- package/dist/staking/pools/index.js +10 -0
- package/dist/staking/pools/searchPools/index.d.ts +25 -0
- package/dist/staking/pools/searchPools/index.d.ts.map +1 -0
- package/dist/staking/pools/searchPools/index.js +4 -0
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +55 -0
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -0
- package/dist/staking/pools/searchPools/v0/searchPools.js +42 -0
- package/dist/staking/roles/common/role.d.ts +13 -0
- package/dist/staking/roles/common/role.d.ts.map +1 -0
- package/dist/staking/roles/common/role.js +18 -0
- package/dist/staking/roles/common/roleAssignment.d.ts +27 -0
- package/dist/staking/roles/common/roleAssignment.d.ts.map +1 -0
- package/dist/staking/roles/common/roleAssignment.js +21 -0
- package/dist/staking/roles/common/roleEvent.d.ts +30 -0
- package/dist/staking/roles/common/roleEvent.d.ts.map +1 -0
- package/dist/staking/roles/common/roleEvent.js +23 -0
- package/dist/staking/roles/getRoles/index.d.ts +26 -0
- package/dist/staking/roles/getRoles/index.d.ts.map +1 -0
- package/dist/staking/roles/getRoles/index.js +4 -0
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts +29 -0
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/staking/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/staking/roles/grantRole/index.d.ts +29 -0
- package/dist/staking/roles/grantRole/index.d.ts.map +1 -0
- package/dist/staking/roles/grantRole/index.js +4 -0
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +63 -0
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -0
- package/dist/staking/roles/grantRole/v0/grantRole.js +40 -0
- package/dist/staking/roles/index.d.ts +93 -0
- package/dist/staking/roles/index.d.ts.map +1 -0
- package/dist/staking/roles/index.js +14 -0
- package/dist/staking/roles/searchRoleEvents/index.d.ts +27 -0
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +1 -0
- package/dist/staking/roles/searchRoleEvents/index.js +4 -0
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +63 -0
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -0
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +58 -0
- package/dist/staking/roles/searchRoles/index.d.ts +27 -0
- package/dist/staking/roles/searchRoles/index.d.ts.map +1 -0
- package/dist/staking/roles/searchRoles/index.js +4 -0
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +63 -0
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -0
- package/dist/staking/roles/searchRoles/v0/searchRoles.js +56 -0
- package/dist/staking/stakes/common/stake.d.ts +44 -0
- package/dist/staking/stakes/common/stake.d.ts.map +1 -0
- package/dist/staking/stakes/common/stake.js +45 -0
- package/dist/staking/stakes/common/stakeEvent.d.ts +30 -0
- package/dist/staking/stakes/common/stakeEvent.d.ts.map +1 -0
- package/dist/staking/stakes/common/stakeEvent.js +24 -0
- package/dist/staking/stakes/common/stakeNotFound.d.ts +9 -0
- package/dist/staking/stakes/common/stakeNotFound.d.ts.map +1 -0
- package/dist/staking/stakes/common/stakeNotFound.js +13 -0
- package/dist/staking/stakes/getStake/index.d.ts +20 -0
- package/dist/staking/stakes/getStake/index.d.ts.map +1 -0
- package/dist/staking/stakes/getStake/index.js +4 -0
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +35 -0
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +1 -0
- package/dist/staking/stakes/getStake/v0/getStake.js +64 -0
- package/dist/staking/stakes/index.d.ts +63 -0
- package/dist/staking/stakes/index.d.ts.map +1 -0
- package/dist/staking/stakes/index.js +12 -0
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +27 -0
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakeEvents/index.js +4 -0
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +63 -0
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +59 -0
- package/dist/staking/stakes/searchStakes/index.d.ts +27 -0
- package/dist/staking/stakes/searchStakes/index.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakes/index.js +4 -0
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +63 -0
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakes/v0/searchStakes.js +61 -0
- package/dist/staking-templates/index.d.ts +732 -0
- package/dist/staking-templates/index.d.ts.map +1 -0
- package/dist/staking-templates/index.js +18 -0
- package/dist/staking-templates/templates/common/amount.d.ts +13 -0
- package/dist/staking-templates/templates/common/amount.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/amount.js +17 -0
- package/dist/staking-templates/templates/common/amountMult.d.ts +3 -0
- package/dist/staking-templates/templates/common/amountMult.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/amountMult.js +23 -0
- package/dist/staking-templates/templates/common/erc20Input.d.ts +12 -0
- package/dist/staking-templates/templates/common/erc20Input.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/erc20Input.js +16 -0
- package/dist/staking-templates/templates/common/erc20Reward.d.ts +12 -0
- package/dist/staking-templates/templates/common/erc20Reward.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/erc20Reward.js +16 -0
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts +31 -0
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/getCreatePoolEvent.js +47 -0
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts +40 -0
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.js +46 -0
- package/dist/staking-templates/templates/common/getReward.d.ts +58 -0
- package/dist/staking-templates/templates/common/getReward.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/getReward.js +34 -0
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts +31 -0
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/getStakeEvent.js +51 -0
- package/dist/staking-templates/templates/common/lock.d.ts +12 -0
- package/dist/staking-templates/templates/common/lock.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/lock.js +20 -0
- package/dist/staking-templates/templates/common/lockMult.d.ts +3 -0
- package/dist/staking-templates/templates/common/lockMult.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/lockMult.js +15 -0
- package/dist/staking-templates/templates/common/partialUnstake.d.ts +62 -0
- package/dist/staking-templates/templates/common/partialUnstake.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/partialUnstake.js +39 -0
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts +13 -0
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/rewardDistribution.js +19 -0
- package/dist/staking-templates/templates/common/templates.d.ts +61 -0
- package/dist/staking-templates/templates/common/templates.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/templates.js +8 -0
- package/dist/staking-templates/templates/common/time.d.ts +2 -0
- package/dist/staking-templates/templates/common/time.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/time.js +4 -0
- package/dist/staking-templates/templates/common/unstake.d.ts +58 -0
- package/dist/staking-templates/templates/common/unstake.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/unstake.js +34 -0
- package/dist/staking-templates/templates/reputation/common.d.ts +23 -0
- package/dist/staking-templates/templates/reputation/common.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/common.js +3 -0
- package/dist/staking-templates/templates/reputation/index.d.ts +233 -0
- package/dist/staking-templates/templates/reputation/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/index.js +4 -0
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts +81 -0
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/createPlatform.js +56 -0
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts +113 -0
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/createPool.js +85 -0
- package/dist/staking-templates/templates/reputation/v0/index.d.ts +233 -0
- package/dist/staking-templates/templates/reputation/v0/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/index.js +25 -0
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts +61 -0
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/restake.js +40 -0
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts +61 -0
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/stake.js +45 -0
- package/dist/staking-templates/templates/reputationLock/common.d.ts +23 -0
- package/dist/staking-templates/templates/reputationLock/common.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/common.js +3 -0
- package/dist/staking-templates/templates/reputationLock/index.d.ts +244 -0
- package/dist/staking-templates/templates/reputationLock/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/index.js +4 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +81 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.js +56 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts +149 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPool.js +99 -0
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts +244 -0
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/index.js +25 -0
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts +65 -0
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/restake.js +44 -0
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts +65 -0
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/stake.js +46 -0
- package/dist/staking-templates/templates/rwa/common.d.ts +23 -0
- package/dist/staking-templates/templates/rwa/common.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/common.js +3 -0
- package/dist/staking-templates/templates/rwa/index.d.ts +256 -0
- package/dist/staking-templates/templates/rwa/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/index.js +4 -0
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts +81 -0
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/createPlatform.js +56 -0
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts +109 -0
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/createPool.js +79 -0
- package/dist/staking-templates/templates/rwa/v0/index.d.ts +256 -0
- package/dist/staking-templates/templates/rwa/v0/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/index.js +27 -0
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.d.ts +61 -0
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.js +41 -0
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts +61 -0
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/restake.js +40 -0
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts +61 -0
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/stake.js +45 -0
- package/package.json +82 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { receiveFundsAfterNonFundedNoDiscount, receiveFundsAfterNonFundedDiscount, checkAndJumpToNonFunded, } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { SaleIdSchema } from "../../common/models/saleId.js";
|
|
7
|
+
export const ReceiveFundsAfterNonFundedRequestSchema = z
|
|
8
|
+
.object({
|
|
9
|
+
upperGenesisId: z.coerce.bigint().optional().openapi({ description: "Required if discount was applied" }),
|
|
10
|
+
amountOfFractions: z.coerce.bigint(),
|
|
11
|
+
isDiscounted: z.boolean(),
|
|
12
|
+
})
|
|
13
|
+
.extend(SaleIdSchema.shape);
|
|
14
|
+
const route = describeRoute({
|
|
15
|
+
summary: "Receive funds after non funded state",
|
|
16
|
+
description: "Returns transaction to receive funds after a sale enters non funded state",
|
|
17
|
+
tags: ["Fractions"],
|
|
18
|
+
responses: {
|
|
19
|
+
200: {
|
|
20
|
+
description: "Returns transaction to receive funds after non funded state",
|
|
21
|
+
content: {
|
|
22
|
+
"application/json": {
|
|
23
|
+
schema: resolver(TransactionSchema),
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
export function createReceiveFundsAfterNonFundedTransaction(factory) {
|
|
30
|
+
return factory.createHandlers(route, validator("json", ReceiveFundsAfterNonFundedRequestSchema.openapi({ ref: "ReceiveFundsAfterNonFundedRequestSchema" })), async (c) => {
|
|
31
|
+
const { market, campaignId, amountOfFractions, upperGenesisId, isDiscounted } = c.req.valid("json");
|
|
32
|
+
const tx = isDiscounted
|
|
33
|
+
? receiveFundsAfterNonFundedDiscount(market, campaignId, upperGenesisId, amountOfFractions)
|
|
34
|
+
: receiveFundsAfterNonFundedNoDiscount(market, campaignId, amountOfFractions);
|
|
35
|
+
return c.json(toTransaction(tx));
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
const checkAndJumpToNonFundedRoute = describeRoute({
|
|
39
|
+
summary: "Check and jump to non funded state",
|
|
40
|
+
description: "Returns transaction to check and jump a sale to non funded state if conditions are met",
|
|
41
|
+
tags: ["Fractions"],
|
|
42
|
+
responses: {
|
|
43
|
+
200: {
|
|
44
|
+
description: "Returns transaction to check and jump to non funded state",
|
|
45
|
+
content: {
|
|
46
|
+
"application/json": {
|
|
47
|
+
schema: resolver(TransactionSchema),
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
export function createCheckAndJumpToNonFundedTransaction(factory) {
|
|
54
|
+
return factory.createHandlers(checkAndJumpToNonFundedRoute, validator("json", SaleIdSchema), async (c) => {
|
|
55
|
+
const { market, campaignId } = c.req.valid("json");
|
|
56
|
+
const tx = checkAndJumpToNonFunded(market, campaignId);
|
|
57
|
+
return c.json(toTransaction(tx));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Env } from "hono";
|
|
2
|
+
import { Factory } from "hono/factory";
|
|
3
|
+
export declare function createReceiveNonPurchasedWrappedAssetsTransaction<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
|
+
data: `0x${string}`;
|
|
5
|
+
to: `0x${string}`;
|
|
6
|
+
details: {
|
|
7
|
+
functionName: string;
|
|
8
|
+
address: `0x${string}`;
|
|
9
|
+
abi: any[];
|
|
10
|
+
args: any[];
|
|
11
|
+
};
|
|
12
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
13
|
+
in: {
|
|
14
|
+
json: {
|
|
15
|
+
campaignId: bigint;
|
|
16
|
+
market: `0x${string}`;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
out: {
|
|
20
|
+
json: {
|
|
21
|
+
campaignId: bigint;
|
|
22
|
+
market: `0x${string}`;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
26
|
+
data: `0x${string}`;
|
|
27
|
+
to: `0x${string}`;
|
|
28
|
+
details: {
|
|
29
|
+
functionName: string;
|
|
30
|
+
address: `0x${string}`;
|
|
31
|
+
abi: any[];
|
|
32
|
+
args: any[];
|
|
33
|
+
};
|
|
34
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
35
|
+
in: {
|
|
36
|
+
json: {
|
|
37
|
+
campaignId: bigint;
|
|
38
|
+
market: `0x${string}`;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
out: {
|
|
42
|
+
json: {
|
|
43
|
+
campaignId: bigint;
|
|
44
|
+
market: `0x${string}`;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
48
|
+
data: `0x${string}`;
|
|
49
|
+
to: `0x${string}`;
|
|
50
|
+
details: {
|
|
51
|
+
functionName: string;
|
|
52
|
+
address: `0x${string}`;
|
|
53
|
+
abi: any[];
|
|
54
|
+
args: any[];
|
|
55
|
+
};
|
|
56
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
57
|
+
//# sourceMappingURL=receiveNonPurchasedWrappedAssets.route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receiveNonPurchasedWrappedAssets.route.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/receiveNonPurchasedWrappedAssets.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuBvC,wBAAgB,iDAAiD,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAMnG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { receiveNonPurchasedWrappedAssets } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { toTransaction, TransactionSchema } from "../../common/index.js";
|
|
5
|
+
import { SaleIdSchema } from "../../common/models/saleId.js";
|
|
6
|
+
const route = describeRoute({
|
|
7
|
+
summary: "Receive non-purchased wrapped assets",
|
|
8
|
+
description: "Returns transaction to receive non-purchased wrapped assets from a sale",
|
|
9
|
+
tags: ["Fractions"],
|
|
10
|
+
responses: {
|
|
11
|
+
200: {
|
|
12
|
+
description: "Returns transaction to receive non-purchased wrapped assets",
|
|
13
|
+
content: {
|
|
14
|
+
"application/json": {
|
|
15
|
+
schema: resolver(TransactionSchema),
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
export function createReceiveNonPurchasedWrappedAssetsTransaction(factory) {
|
|
22
|
+
return factory.createHandlers(route, validator("json", SaleIdSchema), async (c) => {
|
|
23
|
+
const { market, campaignId } = c.req.valid("json");
|
|
24
|
+
const tx = receiveNonPurchasedWrappedAssets(market, campaignId);
|
|
25
|
+
return c.json(toTransaction(tx));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Factory } from "hono/factory";
|
|
3
|
+
import { Env } from "hono";
|
|
4
|
+
export declare const RecoverFractionsRequestSchema: z.ZodObject<{
|
|
5
|
+
marketAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
+
campaignId: z.ZodBigInt;
|
|
7
|
+
lostAccount: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
8
|
+
recoveryAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
|
+
amountOfFractions: z.ZodBigInt;
|
|
10
|
+
fractionId: z.ZodBigInt;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
campaignId: bigint;
|
|
13
|
+
marketAddress: `0x${string}`;
|
|
14
|
+
lostAccount: `0x${string}`;
|
|
15
|
+
recoveryAddress: `0x${string}`;
|
|
16
|
+
amountOfFractions: bigint;
|
|
17
|
+
fractionId: bigint;
|
|
18
|
+
}, {
|
|
19
|
+
campaignId: bigint;
|
|
20
|
+
marketAddress: `0x${string}`;
|
|
21
|
+
lostAccount: `0x${string}`;
|
|
22
|
+
recoveryAddress: `0x${string}`;
|
|
23
|
+
amountOfFractions: bigint;
|
|
24
|
+
fractionId: bigint;
|
|
25
|
+
}>;
|
|
26
|
+
export declare function createRecoverFractionsTransaction<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<(Response & import("hono").TypedResponse<{
|
|
27
|
+
data: `0x${string}`;
|
|
28
|
+
to: `0x${string}`;
|
|
29
|
+
details: {
|
|
30
|
+
functionName: string;
|
|
31
|
+
address: `0x${string}`;
|
|
32
|
+
abi: any[];
|
|
33
|
+
args: any[];
|
|
34
|
+
};
|
|
35
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
36
|
+
error: string;
|
|
37
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
38
|
+
error: string;
|
|
39
|
+
}, 500, "json">)>>, import("hono/types").H<Env, string, {
|
|
40
|
+
in: {
|
|
41
|
+
json: {
|
|
42
|
+
campaignId: bigint;
|
|
43
|
+
marketAddress: `0x${string}`;
|
|
44
|
+
lostAccount: `0x${string}`;
|
|
45
|
+
recoveryAddress: `0x${string}`;
|
|
46
|
+
amountOfFractions: bigint;
|
|
47
|
+
fractionId: bigint;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
out: {
|
|
51
|
+
json: {
|
|
52
|
+
campaignId: bigint;
|
|
53
|
+
marketAddress: `0x${string}`;
|
|
54
|
+
lostAccount: `0x${string}`;
|
|
55
|
+
recoveryAddress: `0x${string}`;
|
|
56
|
+
amountOfFractions: bigint;
|
|
57
|
+
fractionId: bigint;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}, Promise<(Response & import("hono").TypedResponse<{
|
|
61
|
+
data: `0x${string}`;
|
|
62
|
+
to: `0x${string}`;
|
|
63
|
+
details: {
|
|
64
|
+
functionName: string;
|
|
65
|
+
address: `0x${string}`;
|
|
66
|
+
abi: any[];
|
|
67
|
+
args: any[];
|
|
68
|
+
};
|
|
69
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
70
|
+
error: string;
|
|
71
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
72
|
+
error: string;
|
|
73
|
+
}, 500, "json">)>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
74
|
+
in: {
|
|
75
|
+
json: {
|
|
76
|
+
campaignId: bigint;
|
|
77
|
+
marketAddress: `0x${string}`;
|
|
78
|
+
lostAccount: `0x${string}`;
|
|
79
|
+
recoveryAddress: `0x${string}`;
|
|
80
|
+
amountOfFractions: bigint;
|
|
81
|
+
fractionId: bigint;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
out: {
|
|
85
|
+
json: {
|
|
86
|
+
campaignId: bigint;
|
|
87
|
+
marketAddress: `0x${string}`;
|
|
88
|
+
lostAccount: `0x${string}`;
|
|
89
|
+
recoveryAddress: `0x${string}`;
|
|
90
|
+
amountOfFractions: bigint;
|
|
91
|
+
fractionId: bigint;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}, Promise<(Response & import("hono").TypedResponse<{
|
|
95
|
+
data: `0x${string}`;
|
|
96
|
+
to: `0x${string}`;
|
|
97
|
+
details: {
|
|
98
|
+
functionName: string;
|
|
99
|
+
address: `0x${string}`;
|
|
100
|
+
abi: any[];
|
|
101
|
+
args: any[];
|
|
102
|
+
};
|
|
103
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
104
|
+
error: string;
|
|
105
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
106
|
+
error: string;
|
|
107
|
+
}, 500, "json">)>>];
|
|
108
|
+
//# sourceMappingURL=recoverFractions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recoverFractions.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/recoverFractions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAG3B,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;EASU,CAAC;AAkBrD,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsBnF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
|
|
3
|
+
import { describeRoute } from "hono-openapi";
|
|
4
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
5
|
+
import { buildRecoverFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
6
|
+
export const RecoverFractionsRequestSchema = z
|
|
7
|
+
.object({
|
|
8
|
+
marketAddress: AddressSchema,
|
|
9
|
+
campaignId: z.coerce.bigint().positive(),
|
|
10
|
+
lostAccount: AddressSchema,
|
|
11
|
+
recoveryAddress: AddressSchema,
|
|
12
|
+
amountOfFractions: z.coerce.bigint().positive(),
|
|
13
|
+
fractionId: z.coerce.bigint().nonnegative(),
|
|
14
|
+
})
|
|
15
|
+
.openapi({ ref: "RecoverFractionsRequestSchema" });
|
|
16
|
+
const route = describeRoute({
|
|
17
|
+
summary: "Recover fractions",
|
|
18
|
+
description: "Returns transaction data for recovering fractions from a lost account",
|
|
19
|
+
tags: ["Fractions"],
|
|
20
|
+
responses: {
|
|
21
|
+
200: {
|
|
22
|
+
description: "Returns transaction data for recovering fractions",
|
|
23
|
+
content: {
|
|
24
|
+
"application/json": {
|
|
25
|
+
schema: resolver(TransactionSchema),
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
export function createRecoverFractionsTransaction(factory) {
|
|
32
|
+
return factory.createHandlers(route, validator("json", RecoverFractionsRequestSchema), async (c) => {
|
|
33
|
+
const { marketAddress, campaignId, lostAccount, recoveryAddress, amountOfFractions, fractionId } = c.req.valid("json");
|
|
34
|
+
try {
|
|
35
|
+
const tx = buildRecoverFractionsTx(marketAddress, campaignId, lostAccount, recoveryAddress, amountOfFractions, fractionId);
|
|
36
|
+
return c.json(toTransaction(tx));
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
if (error instanceof Error) {
|
|
40
|
+
return c.json({ error: error.message }, 400);
|
|
41
|
+
}
|
|
42
|
+
return c.json({ error: "An unknown error occurred" }, 500);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Factory } from "hono/factory";
|
|
3
|
+
import { Env } from "hono";
|
|
4
|
+
export declare const RejectFractionsRequestSchema: z.ZodObject<{
|
|
5
|
+
marketAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
+
saleId: z.ZodBigInt;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
saleId: bigint;
|
|
9
|
+
marketAddress: `0x${string}`;
|
|
10
|
+
}, {
|
|
11
|
+
saleId: bigint;
|
|
12
|
+
marketAddress: `0x${string}`;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function createRejectFractionsTransaction<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<(Response & import("hono").TypedResponse<{
|
|
15
|
+
data: `0x${string}`;
|
|
16
|
+
to: `0x${string}`;
|
|
17
|
+
details: {
|
|
18
|
+
functionName: string;
|
|
19
|
+
address: `0x${string}`;
|
|
20
|
+
abi: any[];
|
|
21
|
+
args: any[];
|
|
22
|
+
};
|
|
23
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
24
|
+
error: string;
|
|
25
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
26
|
+
error: string;
|
|
27
|
+
}, 500, "json">)>>, import("hono/types").H<Env, string, {
|
|
28
|
+
in: {
|
|
29
|
+
json: {
|
|
30
|
+
saleId: bigint;
|
|
31
|
+
marketAddress: `0x${string}`;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
out: {
|
|
35
|
+
json: {
|
|
36
|
+
saleId: bigint;
|
|
37
|
+
marketAddress: `0x${string}`;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}, Promise<(Response & import("hono").TypedResponse<{
|
|
41
|
+
data: `0x${string}`;
|
|
42
|
+
to: `0x${string}`;
|
|
43
|
+
details: {
|
|
44
|
+
functionName: string;
|
|
45
|
+
address: `0x${string}`;
|
|
46
|
+
abi: any[];
|
|
47
|
+
args: any[];
|
|
48
|
+
};
|
|
49
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
50
|
+
error: string;
|
|
51
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
52
|
+
error: string;
|
|
53
|
+
}, 500, "json">)>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
54
|
+
in: {
|
|
55
|
+
json: {
|
|
56
|
+
saleId: bigint;
|
|
57
|
+
marketAddress: `0x${string}`;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
out: {
|
|
61
|
+
json: {
|
|
62
|
+
saleId: bigint;
|
|
63
|
+
marketAddress: `0x${string}`;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
}, Promise<(Response & import("hono").TypedResponse<{
|
|
67
|
+
data: `0x${string}`;
|
|
68
|
+
to: `0x${string}`;
|
|
69
|
+
details: {
|
|
70
|
+
functionName: string;
|
|
71
|
+
address: `0x${string}`;
|
|
72
|
+
abi: any[];
|
|
73
|
+
args: any[];
|
|
74
|
+
};
|
|
75
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
76
|
+
error: string;
|
|
77
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
78
|
+
error: string;
|
|
79
|
+
}, 500, "json">)>>];
|
|
80
|
+
//# sourceMappingURL=rejectFractions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rejectFractions.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/rejectFractions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAG3B,eAAO,MAAM,4BAA4B;;;;;;;;;EAGvC,CAAC;AAkBH,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkBlF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
|
|
3
|
+
import { describeRoute } from "hono-openapi";
|
|
4
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
5
|
+
import { builtRejectFractionsTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
6
|
+
export const RejectFractionsRequestSchema = z.object({
|
|
7
|
+
marketAddress: AddressSchema,
|
|
8
|
+
saleId: z.coerce.bigint().positive(),
|
|
9
|
+
});
|
|
10
|
+
const route = describeRoute({
|
|
11
|
+
summary: "Reject fractions",
|
|
12
|
+
description: "Returns transaction data for rejecting fractions in a sale",
|
|
13
|
+
tags: ["Fractions"],
|
|
14
|
+
responses: {
|
|
15
|
+
200: {
|
|
16
|
+
description: "Returns transaction data for rejecting fractions",
|
|
17
|
+
content: {
|
|
18
|
+
"application/json": {
|
|
19
|
+
schema: resolver(TransactionSchema),
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
export function createRejectFractionsTransaction(factory) {
|
|
26
|
+
return factory.createHandlers(route, validator("json", RejectFractionsRequestSchema.openapi({ ref: "RejectFractionsRequestSchema" })), async (c) => {
|
|
27
|
+
const { marketAddress, saleId } = c.req.valid("json");
|
|
28
|
+
try {
|
|
29
|
+
const tx = builtRejectFractionsTx(marketAddress, saleId);
|
|
30
|
+
return c.json(toTransaction(tx));
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
if (error instanceof Error) {
|
|
34
|
+
return c.json({ error: error.message }, 400);
|
|
35
|
+
}
|
|
36
|
+
return c.json({ error: "An unknown error occurred" }, 500);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/sales/searchSaleEvents/index.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Env } from "hono";
|
|
2
|
+
import { Factory } from "hono/factory";
|
|
3
|
+
import { z } from "../../../../common/zod.js";
|
|
4
|
+
export declare const CampaignIdSchema: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
5
|
+
export declare const SaleEventSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
chainId: z.ZodType<import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId, z.ZodTypeDef, import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId>;
|
|
8
|
+
platform: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
|
+
campaignId: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>>;
|
|
10
|
+
owner: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
11
|
+
createdAt: z.ZodString;
|
|
12
|
+
txHash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
15
|
+
platform: `0x${string}`;
|
|
16
|
+
id: string;
|
|
17
|
+
txHash: `0x${string}`;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
owner: `0x${string}`;
|
|
20
|
+
campaignId?: bigint | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
23
|
+
platform: `0x${string}`;
|
|
24
|
+
id: string;
|
|
25
|
+
txHash: `0x${string}`;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
owner: `0x${string}`;
|
|
28
|
+
campaignId?: string | number | bigint | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export declare function createSearchSaleEventsV0App<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
31
|
+
in: {
|
|
32
|
+
json: {
|
|
33
|
+
filter: {
|
|
34
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
35
|
+
platform?: `0x${string}` | undefined;
|
|
36
|
+
campaignId?: string | number | bigint | undefined;
|
|
37
|
+
owner?: `0x${string}` | undefined;
|
|
38
|
+
};
|
|
39
|
+
page: {
|
|
40
|
+
skip: number;
|
|
41
|
+
limit: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
out: {
|
|
46
|
+
json: {
|
|
47
|
+
filter: {
|
|
48
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
49
|
+
platform?: `0x${string}` | undefined;
|
|
50
|
+
campaignId?: bigint | undefined;
|
|
51
|
+
owner?: `0x${string}` | undefined;
|
|
52
|
+
};
|
|
53
|
+
page: {
|
|
54
|
+
skip: number;
|
|
55
|
+
limit: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
60
|
+
in: {
|
|
61
|
+
json: {
|
|
62
|
+
filter: {
|
|
63
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
64
|
+
platform?: `0x${string}` | undefined;
|
|
65
|
+
campaignId?: string | number | bigint | undefined;
|
|
66
|
+
owner?: `0x${string}` | undefined;
|
|
67
|
+
};
|
|
68
|
+
page: {
|
|
69
|
+
skip: number;
|
|
70
|
+
limit: number;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
out: {
|
|
75
|
+
json: {
|
|
76
|
+
filter: {
|
|
77
|
+
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
78
|
+
platform?: `0x${string}` | undefined;
|
|
79
|
+
campaignId?: bigint | undefined;
|
|
80
|
+
owner?: `0x${string}` | undefined;
|
|
81
|
+
};
|
|
82
|
+
page: {
|
|
83
|
+
skip: number;
|
|
84
|
+
limit: number;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>];
|
|
89
|
+
//# sourceMappingURL=searchSaleEvents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchSaleEvents.d.ts","sourceRoot":"","sources":["../../../../../../src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,OAAO,EAAE,CAAC,EAAE,MAAM,2BAA2B,CAAC;AAe9C,eAAO,MAAM,gBAAgB,iFAG3B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;EAkBxB,CAAC;AAEL,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAsD7E"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { unixToDate } from "@evergonlabs/tmi-protocol-utils/date";
|
|
4
|
+
import { and, eq } from "@ponder/client";
|
|
5
|
+
import { z } from "../../../../common/zod.js";
|
|
6
|
+
import { indexerClient } from "../../../../common/indexer/index.js";
|
|
7
|
+
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
8
|
+
import { PageSchema } from "../../../../common/models/page.js";
|
|
9
|
+
import { AddressSchema, HashSchema, PlatformContractAddress, PoolIdSchema, TmiChainIdSchema, } from "../../../../common/index.js";
|
|
10
|
+
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
11
|
+
import { ISOSchema } from "../../../../common/models/date.js";
|
|
12
|
+
export const CampaignIdSchema = Int256Positive.openapi({
|
|
13
|
+
description: "Id of a Sale",
|
|
14
|
+
example: "1",
|
|
15
|
+
});
|
|
16
|
+
export const SaleEventSchema = z
|
|
17
|
+
.object({
|
|
18
|
+
id: z.string().openapi({
|
|
19
|
+
description: "Unique event id",
|
|
20
|
+
}),
|
|
21
|
+
chainId: TmiChainIdSchema,
|
|
22
|
+
platform: PlatformContractAddress,
|
|
23
|
+
campaignId: CampaignIdSchema.optional().openapi({
|
|
24
|
+
description: "If empty or 0 then it's platform-wide",
|
|
25
|
+
}),
|
|
26
|
+
owner: AddressSchema.openapi({
|
|
27
|
+
description: "Address role assigned to",
|
|
28
|
+
}),
|
|
29
|
+
createdAt: ISOSchema,
|
|
30
|
+
txHash: HashSchema,
|
|
31
|
+
})
|
|
32
|
+
.openapi({
|
|
33
|
+
ref: "StakeEvent",
|
|
34
|
+
});
|
|
35
|
+
export function createSearchSaleEventsV0App(factory) {
|
|
36
|
+
return factory.createHandlers(describeRoute({
|
|
37
|
+
summary: "Search sale events",
|
|
38
|
+
description: "Search sale events by users, platforms and pools",
|
|
39
|
+
tags: ["Fractions"],
|
|
40
|
+
responses: {
|
|
41
|
+
200: {
|
|
42
|
+
description: "Returns list of sales events within specified platforms and pools",
|
|
43
|
+
content: {
|
|
44
|
+
"application/json": {
|
|
45
|
+
schema: resolver(z.array(SaleEventSchema)),
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
}), validator("json", z.object({
|
|
51
|
+
page: PageSchema,
|
|
52
|
+
filter: z.object({
|
|
53
|
+
chainId: TmiChainIdSchema.optional(),
|
|
54
|
+
owner: AddressSchema.optional(),
|
|
55
|
+
platform: PlatformContractAddress.optional(),
|
|
56
|
+
campaignId: CampaignIdSchema.optional(),
|
|
57
|
+
}),
|
|
58
|
+
})), async (c) => {
|
|
59
|
+
const { page, filter } = c.req.valid("json");
|
|
60
|
+
const result = await indexerClient.db
|
|
61
|
+
.select()
|
|
62
|
+
.from(indexerSchemas.fractions.fractionEvents)
|
|
63
|
+
.limit(page.limit)
|
|
64
|
+
.offset(page.skip)
|
|
65
|
+
.orderBy(indexerSchemas.fractions.fractionEvents.createdAt)
|
|
66
|
+
.where(and(filter.chainId ? eq(indexerSchemas.fractions.fractionEvents.chainId, Number(filter.chainId)) : undefined, filter.owner ? eq(indexerSchemas.fractions.fractionEvents.walletAddress, filter.owner) : undefined, filter.platform ? eq(indexerSchemas.fractions.fractionEvents.diamondAddress, filter.platform) : undefined, typeof filter.campaignId === "number"
|
|
67
|
+
? eq(indexerSchemas.fractions.fractionEvents.saleId, BigInt(filter.campaignId))
|
|
68
|
+
: undefined));
|
|
69
|
+
return c.json(result.map((x) => toSaleEvent(x)), 200);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function toSaleEvent(raw) {
|
|
73
|
+
return {
|
|
74
|
+
id: raw.id,
|
|
75
|
+
txHash: raw.txHash,
|
|
76
|
+
chainId: TmiChainIdSchema.parse(raw.chainId),
|
|
77
|
+
platform: raw.diamondAddress,
|
|
78
|
+
owner: raw.walletAddress,
|
|
79
|
+
campaignId: raw.saleId ? PoolIdSchema.parse(raw.saleId) : undefined,
|
|
80
|
+
createdAt: unixToDate(raw.createdAt).toISOString(),
|
|
81
|
+
};
|
|
82
|
+
}
|