@evergonlabs/tmi-protocol-api 0.11.0-rc.3 → 0.11.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 +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
|
@@ -5,9 +5,9 @@ import { AppContext } from "../../common/context.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const GetHoldersV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<AppContext, {
|
|
7
7
|
"/": {
|
|
8
|
-
$
|
|
8
|
+
$get: {
|
|
9
9
|
input: {
|
|
10
|
-
|
|
10
|
+
query: {
|
|
11
11
|
chainId?: "1" | "31337" | "11155111" | "84532" | "72080" | undefined;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
@@ -32,9 +32,9 @@ export declare const GetHoldersV0: import("../../common/controller.js").IControl
|
|
|
32
32
|
*/
|
|
33
33
|
export declare const GetSalesStatisticsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<AppContext, {
|
|
34
34
|
"/": {
|
|
35
|
-
$
|
|
35
|
+
$get: {
|
|
36
36
|
input: {
|
|
37
|
-
|
|
37
|
+
query: {
|
|
38
38
|
chainId?: "1" | "31337" | "11155111" | "84532" | "72080" | undefined;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
@@ -59,9 +59,9 @@ export declare const GetSalesStatisticsV0: import("../../common/controller.js").
|
|
|
59
59
|
*/
|
|
60
60
|
export declare const GetTtvV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<AppContext, {
|
|
61
61
|
"/": {
|
|
62
|
-
$
|
|
62
|
+
$get: {
|
|
63
63
|
input: {
|
|
64
|
-
|
|
64
|
+
query: {
|
|
65
65
|
chainId?: "1" | "31337" | "11155111" | "84532" | "72080" | undefined;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
@@ -83,42 +83,42 @@ export declare const GetTtvV0: import("../../common/controller.js").IController<
|
|
|
83
83
|
}, "/", "/">>;
|
|
84
84
|
export declare const GetNetworkStatisticsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<AppContext, {
|
|
85
85
|
"/": {
|
|
86
|
-
$
|
|
86
|
+
$get: {
|
|
87
87
|
input: {
|
|
88
|
-
|
|
88
|
+
query: {
|
|
89
89
|
chainId?: "1" | "31337" | "11155111" | "84532" | "72080" | undefined;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
output: {
|
|
93
93
|
total: {
|
|
94
|
-
holders: string
|
|
95
|
-
sales: string
|
|
96
|
-
ttv: string
|
|
94
|
+
holders: string;
|
|
95
|
+
sales: string;
|
|
96
|
+
ttv: string;
|
|
97
97
|
};
|
|
98
98
|
1: {
|
|
99
|
-
holders: string
|
|
100
|
-
sales: string
|
|
101
|
-
ttv: string
|
|
99
|
+
holders: string;
|
|
100
|
+
sales: string;
|
|
101
|
+
ttv: string;
|
|
102
102
|
};
|
|
103
103
|
31337: {
|
|
104
|
-
holders: string
|
|
105
|
-
sales: string
|
|
106
|
-
ttv: string
|
|
104
|
+
holders: string;
|
|
105
|
+
sales: string;
|
|
106
|
+
ttv: string;
|
|
107
107
|
};
|
|
108
108
|
11155111: {
|
|
109
|
-
holders: string
|
|
110
|
-
sales: string
|
|
111
|
-
ttv: string
|
|
109
|
+
holders: string;
|
|
110
|
+
sales: string;
|
|
111
|
+
ttv: string;
|
|
112
112
|
};
|
|
113
113
|
84532: {
|
|
114
|
-
holders: string
|
|
115
|
-
sales: string
|
|
116
|
-
ttv: string
|
|
114
|
+
holders: string;
|
|
115
|
+
sales: string;
|
|
116
|
+
ttv: string;
|
|
117
117
|
};
|
|
118
118
|
72080: {
|
|
119
|
-
holders: string
|
|
120
|
-
sales: string
|
|
121
|
-
ttv: string
|
|
119
|
+
holders: string;
|
|
120
|
+
sales: string;
|
|
121
|
+
ttv: string;
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
outputFormat: "json";
|
|
@@ -126,4 +126,4 @@ export declare const GetNetworkStatisticsV0: import("../../common/controller.js"
|
|
|
126
126
|
};
|
|
127
127
|
};
|
|
128
128
|
}, "/", "/">>;
|
|
129
|
-
//# sourceMappingURL=networkStatistics.
|
|
129
|
+
//# sourceMappingURL=networkStatistics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkStatistics.d.ts","sourceRoot":"","sources":["../../../src/fractions/statistics/networkStatistics.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAGxD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAuIjD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;aA8BvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;aA8B/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;aA8BnB,CAAC;AA2BH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAkCjC,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
|
7
7
|
import { createController } from "../../common/controller.js";
|
|
8
8
|
import { FractionsChainId } from "../../common/index.js";
|
|
9
9
|
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
10
|
-
const
|
|
10
|
+
const FractionsStatsRequest = z.object({
|
|
11
11
|
chainId: FractionsChainId.optional().openapi({
|
|
12
12
|
description: `Optional chain ID to filter statistics by specific chain. If provided, returns only that chain's data. If not provided, returns total and all per-chain breakdowns.`,
|
|
13
13
|
}),
|
|
@@ -99,7 +99,7 @@ async function fetchPerChainStatistics(c, chainIdFilter) {
|
|
|
99
99
|
* Get the number of unique fraction holders from successful (finalized) sales
|
|
100
100
|
*/
|
|
101
101
|
export const GetHoldersV0 = createController({
|
|
102
|
-
build: (factory) => factory.createApp().
|
|
102
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
103
103
|
summary: "Get number of fraction holders",
|
|
104
104
|
description: `Returns the count of unique wallet addresses that hold fractions from successful (finalized) sales. If chainId is provided, returns only that chain's data. Otherwise, returns total and all per-chain breakdowns. Used for RWA aggregator integrations.`,
|
|
105
105
|
tags: ["Statistics"],
|
|
@@ -115,8 +115,8 @@ export const GetHoldersV0 = createController({
|
|
|
115
115
|
},
|
|
116
116
|
},
|
|
117
117
|
},
|
|
118
|
-
}), validator("
|
|
119
|
-
const { chainId } = c.req.valid("
|
|
118
|
+
}), validator("query", FractionsStatsRequest), async (c) => {
|
|
119
|
+
const { chainId } = c.req.valid("query");
|
|
120
120
|
const stats = await fetchPerChainStatistics(c, chainId);
|
|
121
121
|
return c.json(getSingleStats(stats, "holders", chainId));
|
|
122
122
|
}),
|
|
@@ -125,7 +125,7 @@ export const GetHoldersV0 = createController({
|
|
|
125
125
|
* Get the number of successful (finalized) fraction sales
|
|
126
126
|
*/
|
|
127
127
|
export const GetSalesStatisticsV0 = createController({
|
|
128
|
-
build: (factory) => factory.createApp().
|
|
128
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
129
129
|
summary: "Get number of successful sales",
|
|
130
130
|
description: `Returns the count of successful (finalized) fraction sales representing RWA tokens. If chainId is provided, returns only that chain's data. Otherwise, returns total and all per-chain breakdowns. Used for RWA aggregator integrations.`,
|
|
131
131
|
tags: ["Statistics"],
|
|
@@ -141,8 +141,8 @@ export const GetSalesStatisticsV0 = createController({
|
|
|
141
141
|
},
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
|
-
}), validator("
|
|
145
|
-
const { chainId } = c.req.valid("
|
|
144
|
+
}), validator("query", FractionsStatsRequest), async (c) => {
|
|
145
|
+
const { chainId } = c.req.valid("query");
|
|
146
146
|
const stats = await fetchPerChainStatistics(c, chainId);
|
|
147
147
|
return c.json(getSingleStats(stats, "sales", chainId));
|
|
148
148
|
}),
|
|
@@ -151,7 +151,7 @@ export const GetSalesStatisticsV0 = createController({
|
|
|
151
151
|
* Get the Total Tokenized Value (TTV) - sum of all amounts raised by successful sales in USDC
|
|
152
152
|
*/
|
|
153
153
|
export const GetTtvV0 = createController({
|
|
154
|
-
build: (factory) => factory.createApp().
|
|
154
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
155
155
|
summary: "Get Total Tokenized Value (TTV)",
|
|
156
156
|
description: `Returns the Total Tokenized Value - the sum of all amounts raised by successful (finalized) sales in USDC. If chainId is provided, returns only that chain's data. Otherwise, returns total and all per-chain breakdowns. Used for RWA aggregator integrations.`,
|
|
157
157
|
tags: ["Statistics"],
|
|
@@ -167,8 +167,8 @@ export const GetTtvV0 = createController({
|
|
|
167
167
|
},
|
|
168
168
|
},
|
|
169
169
|
},
|
|
170
|
-
}), validator("
|
|
171
|
-
const { chainId } = c.req.valid("
|
|
170
|
+
}), validator("query", FractionsStatsRequest), async (c) => {
|
|
171
|
+
const { chainId } = c.req.valid("query");
|
|
172
172
|
const stats = await fetchPerChainStatistics(c, chainId);
|
|
173
173
|
return c.json(getSingleStats(stats, "ttv", chainId));
|
|
174
174
|
}),
|
|
@@ -192,7 +192,7 @@ function getSingleStats(stats, key, chainId) {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
export const GetNetworkStatisticsV0 = createController({
|
|
195
|
-
build: (factory) => factory.createApp().
|
|
195
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
196
196
|
summary: "Get all network statistics",
|
|
197
197
|
description: `Returns all network statistics in a single call: number of fraction holders, successful sales count, and TTV. If chainId is provided, returns only that chain's data. Otherwise, returns total and all per-chain breakdowns. Used for RWA aggregator integrations like RWA.XYZ.`,
|
|
198
198
|
tags: ["Statistics"],
|
|
@@ -206,8 +206,8 @@ export const GetNetworkStatisticsV0 = createController({
|
|
|
206
206
|
},
|
|
207
207
|
},
|
|
208
208
|
},
|
|
209
|
-
}), validator("
|
|
210
|
-
const { chainId } = c.req.valid("
|
|
209
|
+
}), validator("query", FractionsStatsRequest), async (c) => {
|
|
210
|
+
const { chainId } = c.req.valid("query");
|
|
211
211
|
const stats = await fetchPerChainStatistics(c, chainId);
|
|
212
212
|
if (chainId) {
|
|
213
213
|
return c.json({
|
package/dist/general/common.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const TokenBalanceSchema: z.ZodObject<{
|
|
|
12
12
|
quantityIn: z.ZodString;
|
|
13
13
|
quantityOut: z.ZodString;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const BalancesResponse: z.ZodObject<{
|
|
16
16
|
balances: z.ZodArray<z.ZodObject<{
|
|
17
17
|
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
18
18
|
totalBalance: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/general/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAExE,eAAO,MAAM,kBAAkB;;;;;;;;;iBAWC,CAAC;AAEjC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/general/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAiB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAExE,eAAO,MAAM,kBAAkB;;;;;;;;;iBAWC,CAAC;AAEjC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;iBAOC,CAAC;AAE/B,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,kBAAkB,QAMpF"}
|
package/dist/general/common.js
CHANGED
|
@@ -14,14 +14,14 @@ export const TokenBalanceSchema = z
|
|
|
14
14
|
quantityOut: z.string(),
|
|
15
15
|
})
|
|
16
16
|
.openapi("TokenBalanceSchema");
|
|
17
|
-
export const
|
|
17
|
+
export const BalancesResponse = z
|
|
18
18
|
.object({
|
|
19
19
|
balances: z.array(TokenBalanceSchema),
|
|
20
20
|
totalItems: z.number(),
|
|
21
21
|
totalPages: z.number(),
|
|
22
22
|
pageNumber: z.number(),
|
|
23
23
|
})
|
|
24
|
-
.openapi("
|
|
24
|
+
.openapi("BalancesResponse");
|
|
25
25
|
export function getQuicknode(chainId, config) {
|
|
26
26
|
const rpc = getBalancesRpc(chainId, config);
|
|
27
27
|
return new Core({
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
export declare const EstimateGasRequest: z.ZodObject<{
|
|
3
|
+
chainId: z.ZodUnion<z.ZodLiteral<"31337" | "11155111" | "84532">[]>;
|
|
4
|
+
data: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
5
|
+
from: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
6
|
+
to: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const EstimateGasResponse: z.ZodObject<{
|
|
9
|
+
value: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
10
|
+
}, z.core.$strip>;
|
|
2
11
|
export declare const EstimateGasV0: import("../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../common/context.js").AppContext, {
|
|
3
12
|
"/": {
|
|
4
|
-
$
|
|
13
|
+
$get: {
|
|
5
14
|
input: {
|
|
6
|
-
|
|
15
|
+
query: {
|
|
7
16
|
chainId: "31337" | "11155111" | "84532";
|
|
8
17
|
data: string;
|
|
9
18
|
from: string;
|
|
@@ -11,15 +20,11 @@ export declare const EstimateGasV0: import("../common/controller.js").IControlle
|
|
|
11
20
|
};
|
|
12
21
|
};
|
|
13
22
|
output: {
|
|
14
|
-
|
|
15
|
-
readonly value: string;
|
|
23
|
+
value: string & z.core.$brand<"Int256">;
|
|
16
24
|
};
|
|
17
25
|
outputFormat: "json";
|
|
18
|
-
status:
|
|
26
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19
27
|
};
|
|
20
28
|
};
|
|
21
29
|
}, "/", "/">>;
|
|
22
|
-
export declare class UnableEstimateGasError extends HttpError<500> {
|
|
23
|
-
constructor(error: unknown);
|
|
24
|
-
}
|
|
25
30
|
//# sourceMappingURL=estimateGas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimateGas.d.ts","sourceRoot":"","sources":["../../src/general/estimateGas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"estimateGas.d.ts","sourceRoot":"","sources":["../../src/general/estimateGas.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AASxD,eAAO,MAAM,kBAAkB;;;;;iBAOC,CAAC;AAEjC,eAAO,MAAM,mBAAmB;;iBAMC,CAAC;AAkBlC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;aAuBxB,CAAC"}
|
|
@@ -3,12 +3,27 @@ import { resolver, validator } from "hono-openapi";
|
|
|
3
3
|
import { estimateGas } from "viem/actions";
|
|
4
4
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
5
5
|
import { getErrorMessage } from "@evergonlabs/tmi-utils/errors";
|
|
6
|
-
import { Int256Json } from "@evergonlabs/tmi-utils/models";
|
|
6
|
+
import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
7
7
|
import { getPublicClient } from "../common/blockchain.js";
|
|
8
8
|
import { createController } from "../common/controller.js";
|
|
9
9
|
import { HttpError } from "../common/http-error.js";
|
|
10
10
|
import { AddressSchema, HexStringSchema, StakingChainId } from "../common/index.js";
|
|
11
11
|
import { generalTag as tag } from "./tag.js";
|
|
12
|
+
export const EstimateGasRequest = z
|
|
13
|
+
.object({
|
|
14
|
+
chainId: StakingChainId,
|
|
15
|
+
data: HexStringSchema,
|
|
16
|
+
from: AddressSchema,
|
|
17
|
+
to: AddressSchema,
|
|
18
|
+
})
|
|
19
|
+
.openapi("EstimateGasRequest");
|
|
20
|
+
export const EstimateGasResponse = z
|
|
21
|
+
.object({
|
|
22
|
+
value: Int256Json.openapi({
|
|
23
|
+
description: "Amount of gas (in WEI) that is needed for specified transaction",
|
|
24
|
+
}),
|
|
25
|
+
})
|
|
26
|
+
.openapi("EstimateGasResponse");
|
|
12
27
|
const estimateGasRoute = describeRoute({
|
|
13
28
|
summary: "Estimate gas",
|
|
14
29
|
description: "Checks given transaction data whether it can be executed and returns estimated gas consumption",
|
|
@@ -18,26 +33,15 @@ const estimateGasRoute = describeRoute({
|
|
|
18
33
|
description: "Returns estimated gas or estimation error",
|
|
19
34
|
content: {
|
|
20
35
|
"application/json": {
|
|
21
|
-
schema: resolver(
|
|
22
|
-
.object({
|
|
23
|
-
value: Int256Json.openapi({
|
|
24
|
-
description: "Amount of gas (in WEI) that is needed for specified transaction",
|
|
25
|
-
}),
|
|
26
|
-
})
|
|
27
|
-
.openapi("EstimateGasResponse")),
|
|
36
|
+
schema: resolver(EstimateGasResponse),
|
|
28
37
|
},
|
|
29
38
|
},
|
|
30
39
|
},
|
|
31
40
|
},
|
|
32
41
|
});
|
|
33
42
|
export const EstimateGasV0 = createController({
|
|
34
|
-
build: (factory) => factory.createApp().
|
|
35
|
-
chainId
|
|
36
|
-
data: HexStringSchema,
|
|
37
|
-
from: AddressSchema,
|
|
38
|
-
to: AddressSchema,
|
|
39
|
-
})), async (c) => {
|
|
40
|
-
const { chainId, data, to, from } = c.req.valid("json");
|
|
43
|
+
build: (factory) => factory.createApp().get("/", estimateGasRoute, validator("query", EstimateGasRequest), async (c) => {
|
|
44
|
+
const { chainId, data, to, from } = c.req.valid("query");
|
|
41
45
|
const publicClient = getPublicClient(chainId, c.env.config);
|
|
42
46
|
try {
|
|
43
47
|
const estimated = await estimateGas(publicClient, {
|
|
@@ -46,20 +50,15 @@ export const EstimateGasV0 = createController({
|
|
|
46
50
|
account: from,
|
|
47
51
|
});
|
|
48
52
|
return c.json({
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}, 200);
|
|
53
|
+
value: toInt256Json(estimated),
|
|
54
|
+
});
|
|
52
55
|
}
|
|
53
56
|
catch (error) {
|
|
54
|
-
throw new
|
|
57
|
+
throw new HttpError(500, {
|
|
58
|
+
message: getErrorMessage(error),
|
|
59
|
+
name: "UnableEstimateGasError",
|
|
60
|
+
cause: error,
|
|
61
|
+
});
|
|
55
62
|
}
|
|
56
63
|
}),
|
|
57
64
|
});
|
|
58
|
-
export class UnableEstimateGasError extends HttpError {
|
|
59
|
-
constructor(error) {
|
|
60
|
-
super(500, {
|
|
61
|
-
message: getErrorMessage(error),
|
|
62
|
-
cause: error,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
export declare const GetBalanceResponse: z.ZodObject<{
|
|
3
|
+
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
+
balance: z.core.$ZodBranded<z.ZodString, "Int256", "out">;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const GetBalanceQuery: z.ZodObject<{
|
|
7
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
8
|
+
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
1
10
|
export declare const GetBalanceV0: import("../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../common/context.js").AppContext, {
|
|
2
11
|
"/": {
|
|
3
12
|
$get: {
|
|
@@ -9,7 +18,7 @@ export declare const GetBalanceV0: import("../common/controller.js").IController
|
|
|
9
18
|
};
|
|
10
19
|
output: {
|
|
11
20
|
address: `0x${string}`;
|
|
12
|
-
balance: string
|
|
21
|
+
balance: string & z.core.$brand<"Int256">;
|
|
13
22
|
};
|
|
14
23
|
outputFormat: "json";
|
|
15
24
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../src/general/getBalance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../src/general/getBalance.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAOxD,eAAO,MAAM,kBAAkB;;;iBAOC,CAAC;AAEjC,eAAO,MAAM,eAAe;;;iBASC,CAAC;AAE9B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;aAmCvB,CAAC"}
|
|
@@ -1,36 +1,45 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
3
|
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
4
|
-
import { Int256Json } from "@evergonlabs/tmi-utils/models";
|
|
4
|
+
import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
5
5
|
import { createController } from "../common/controller.js";
|
|
6
6
|
import { AddressSchema, FractionsChainId } from "../common/index.js";
|
|
7
7
|
import { getQuicknode } from "./common.js";
|
|
8
8
|
import { generalTag as tag } from "./tag.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
export const GetBalanceResponse = z
|
|
10
|
+
.object({
|
|
11
|
+
address: AddressSchema,
|
|
12
|
+
balance: Int256Json.openapi({
|
|
13
|
+
description: "Native tokens in WEI",
|
|
14
|
+
}),
|
|
15
|
+
})
|
|
16
|
+
.openapi("GetBalanceResponse");
|
|
17
|
+
export const GetBalanceQuery = z
|
|
18
|
+
.object({
|
|
19
|
+
chainId: FractionsChainId.openapi({
|
|
20
|
+
param: { name: "chainId", in: "query" },
|
|
21
|
+
}),
|
|
22
|
+
address: AddressSchema.openapi({
|
|
23
|
+
param: { name: "address", in: "query" },
|
|
24
|
+
}),
|
|
25
|
+
})
|
|
26
|
+
.openapi("GetBalanceQuery");
|
|
27
|
+
export const GetBalanceV0 = createController({
|
|
28
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
29
|
+
summary: "Get balance",
|
|
30
|
+
description: "Returns native balance of a wallet for specific token",
|
|
31
|
+
tags: [tag.tag],
|
|
32
|
+
responses: {
|
|
33
|
+
200: {
|
|
34
|
+
description: "Returns native balance of a wallet",
|
|
35
|
+
content: {
|
|
36
|
+
"application/json": {
|
|
37
|
+
schema: resolver(GetBalanceResponse),
|
|
38
|
+
},
|
|
24
39
|
},
|
|
25
40
|
},
|
|
26
41
|
},
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
export const GetBalanceV0 = createController({
|
|
30
|
-
build: (factory) => factory.createApp().get("/", getBalanceRoute, validator("query", z.object({
|
|
31
|
-
chainId: FractionsChainId,
|
|
32
|
-
address: AddressSchema,
|
|
33
|
-
})), async (c) => {
|
|
42
|
+
}), validator("query", GetBalanceQuery), async (c) => {
|
|
34
43
|
const { chainId, address } = c.req.valid("query");
|
|
35
44
|
const quicknode = getQuicknode(chainId, c.env.config);
|
|
36
45
|
const result = await quicknode.client.getBalance({
|
|
@@ -39,7 +48,7 @@ export const GetBalanceV0 = createController({
|
|
|
39
48
|
});
|
|
40
49
|
return c.json({
|
|
41
50
|
address: address,
|
|
42
|
-
balance: result
|
|
51
|
+
balance: toInt256Json(result),
|
|
43
52
|
});
|
|
44
53
|
}),
|
|
45
54
|
});
|
|
@@ -1,8 +1,24 @@
|
|
|
1
|
+
import { z } from "@evergonlabs/tmi-protocol-utils/zod";
|
|
2
|
+
export declare const GetBalancesBatchResponse: z.ZodArray<z.ZodObject<{
|
|
3
|
+
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
+
totalBalance: z.ZodString;
|
|
5
|
+
tokenId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
name: z.ZodNullable<z.ZodString>;
|
|
7
|
+
symbol: z.ZodNullable<z.ZodString>;
|
|
8
|
+
decimals: z.ZodNullable<z.ZodString>;
|
|
9
|
+
quantityIn: z.ZodString;
|
|
10
|
+
quantityOut: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
export declare const GetBalancesBatchQuery: z.ZodObject<{
|
|
13
|
+
chainId: z.ZodUnion<z.ZodLiteral<"1" | "31337" | "11155111" | "84532" | "72080">[]>;
|
|
14
|
+
address: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
15
|
+
contracts: z.ZodArray<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
1
17
|
export declare const GetBalancesBatchV0: import("../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../common/context.js").AppContext, {
|
|
2
18
|
"/": {
|
|
3
|
-
$
|
|
19
|
+
$get: {
|
|
4
20
|
input: {
|
|
5
|
-
|
|
21
|
+
query: {
|
|
6
22
|
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
7
23
|
address: string;
|
|
8
24
|
contracts: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBalancesBatch.d.ts","sourceRoot":"","sources":["../../src/general/getBalancesBatch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getBalancesBatch.d.ts","sourceRoot":"","sources":["../../src/general/getBalancesBatch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAMxD,eAAO,MAAM,wBAAwB;;;;;;;;;kBAAkE,CAAC;AAExG,eAAO,MAAM,qBAAqB;;;;iBAYC,CAAC;AAEpC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;aAgC7B,CAAC"}
|
|
@@ -5,30 +5,37 @@ import { createController } from "../common/controller.js";
|
|
|
5
5
|
import { AddressSchema, FractionsChainId } from "../common/index.js";
|
|
6
6
|
import { getQuicknode, TokenBalanceSchema } from "./common.js";
|
|
7
7
|
import { generalTag as tag } from "./tag.js";
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
export const GetBalancesBatchResponse = z.array(TokenBalanceSchema).openapi("GetBalancesBatchResponse");
|
|
9
|
+
export const GetBalancesBatchQuery = z
|
|
10
|
+
.object({
|
|
11
|
+
chainId: FractionsChainId.openapi({
|
|
12
|
+
param: { name: "chainId", in: "query" },
|
|
13
|
+
}),
|
|
14
|
+
address: AddressSchema.openapi({
|
|
15
|
+
param: { name: "address", in: "query" },
|
|
16
|
+
}),
|
|
17
|
+
contracts: z.array(AddressSchema).openapi({
|
|
18
|
+
param: { name: "contracts", in: "query" },
|
|
19
|
+
}),
|
|
20
|
+
})
|
|
21
|
+
.openapi("GetBalancesBatchQuery");
|
|
22
|
+
export const GetBalancesBatchV0 = createController({
|
|
23
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
24
|
+
summary: "Get balances batch",
|
|
25
|
+
description: "Returns ERC20 balances of a wallet for specific tokens",
|
|
26
|
+
tags: [tag.tag],
|
|
27
|
+
responses: {
|
|
28
|
+
200: {
|
|
29
|
+
description: "Returns ERC20 balances",
|
|
30
|
+
content: {
|
|
31
|
+
"application/json": {
|
|
32
|
+
schema: resolver(GetBalancesBatchResponse),
|
|
33
|
+
},
|
|
18
34
|
},
|
|
19
35
|
},
|
|
20
36
|
},
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
export const GetBalancesBatchV0 = createController({
|
|
24
|
-
build: (factory) => factory.createApp().post("/", getBalancesBatchRoute, validator("json", z
|
|
25
|
-
.object({
|
|
26
|
-
chainId: FractionsChainId,
|
|
27
|
-
address: AddressSchema,
|
|
28
|
-
contracts: z.array(AddressSchema),
|
|
29
|
-
})
|
|
30
|
-
.openapi("GetBalanceBatchRequest")), async (c) => {
|
|
31
|
-
const { chainId, address, contracts } = c.req.valid("json");
|
|
37
|
+
}), validator("query", GetBalancesBatchQuery), async (c) => {
|
|
38
|
+
const { chainId, address, contracts } = c.req.valid("query");
|
|
32
39
|
const quicknode = getQuicknode(chainId, c.env.config);
|
|
33
40
|
const result = await quicknode.client.qn_getWalletTokenBalance({
|
|
34
41
|
wallet: address,
|
package/dist/general/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const GeneralApi: import("../common/controller.js").IApi<import("hono/hono-base").HonoBase<import("../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
2
2
|
"/": {
|
|
3
|
-
$
|
|
3
|
+
$get: {
|
|
4
4
|
input: {
|
|
5
|
-
|
|
5
|
+
query: {
|
|
6
6
|
chainId: "31337" | "11155111" | "84532";
|
|
7
7
|
data: string;
|
|
8
8
|
from: string;
|
|
@@ -10,11 +10,10 @@ export declare const GeneralApi: import("../common/controller.js").IApi<import("
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
output: {
|
|
13
|
-
|
|
14
|
-
readonly value: string;
|
|
13
|
+
value: string & import("zod").$brand<"Int256">;
|
|
15
14
|
};
|
|
16
15
|
outputFormat: "json";
|
|
17
|
-
status:
|
|
16
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
19
|
}, "/estimateGas"> | import("hono/types").MergeSchemaPath<{
|
|
@@ -28,7 +27,7 @@ export declare const GeneralApi: import("../common/controller.js").IApi<import("
|
|
|
28
27
|
};
|
|
29
28
|
output: {
|
|
30
29
|
address: `0x${string}`;
|
|
31
|
-
balance: string
|
|
30
|
+
balance: string & import("zod").$brand<"Int256">;
|
|
32
31
|
};
|
|
33
32
|
outputFormat: "json";
|
|
34
33
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -36,9 +35,9 @@ export declare const GeneralApi: import("../common/controller.js").IApi<import("
|
|
|
36
35
|
};
|
|
37
36
|
}, "/balance"> | import("hono/types").MergeSchemaPath<{
|
|
38
37
|
"/": {
|
|
39
|
-
$
|
|
38
|
+
$get: {
|
|
40
39
|
input: {
|
|
41
|
-
|
|
40
|
+
query: {
|
|
42
41
|
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
43
42
|
address: string;
|
|
44
43
|
contracts: string[];
|
|
@@ -59,9 +58,9 @@ export declare const GeneralApi: import("../common/controller.js").IApi<import("
|
|
|
59
58
|
};
|
|
60
59
|
}, "/balances"> | import("hono/types").MergeSchemaPath<{
|
|
61
60
|
"/": {
|
|
62
|
-
$
|
|
61
|
+
$get: {
|
|
63
62
|
input: {
|
|
64
|
-
|
|
63
|
+
query: {
|
|
65
64
|
chainId: "1" | "31337" | "11155111" | "84532" | "72080";
|
|
66
65
|
address: string;
|
|
67
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/general/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/general/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAUrB,CAAC"}
|