@evergonlabs/tmi-protocol-api 0.9.0 → 0.10.0-rc.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 +108 -27
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +114 -27
- package/dist/client.d.ts.map +1 -1
- package/dist/common/models/base/date.d.ts +6 -0
- package/dist/common/models/base/date.d.ts.map +1 -0
- package/dist/common/models/base/date.js +13 -0
- package/dist/common/models/date.d.ts +1 -5
- package/dist/common/models/date.d.ts.map +1 -1
- package/dist/common/models/date.js +4 -13
- package/dist/common/models/exports.d.ts +1 -0
- package/dist/common/models/exports.d.ts.map +1 -1
- package/dist/common/models/exports.js +1 -0
- package/dist/common/models/index.d.ts +1 -0
- package/dist/common/models/index.d.ts.map +1 -1
- package/dist/common/models/index.js +1 -0
- package/dist/fractions/markets/common/platform.d.ts.map +1 -1
- package/dist/fractions/markets/common/platform.js +2 -1
- package/dist/fractions/sales/common/fractionsSale.d.ts.map +1 -1
- package/dist/fractions/sales/common/fractionsSale.js +2 -1
- package/dist/fractions/sales/createFractions.schema.js +1 -1
- package/dist/fractions/sales/vesting/editCliff.route.js +1 -1
- package/dist/issuance/common/factories.base.d.ts +12 -12
- package/dist/next/fractions/index.d.ts +108 -27
- package/dist/next/fractions/index.d.ts.map +1 -1
- package/dist/next/fractions/lending/index.d.ts +26 -25
- package/dist/next/fractions/lending/index.d.ts.map +1 -1
- package/dist/next/fractions/lending/index.js +2 -2
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.routes.d.ts +38 -0
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.routes.js +39 -0
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.schema.d.ts +25 -0
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/{fractions/nftfractions/v0 → next/fractions/platforms/default}/deployNftFractionsMarket.schema.js +7 -12
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.routes.d.ts +39 -0
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/{fractions/platforms → next/fractions/platforms/gated}/deployNftFractionsMarket.routes.js +11 -23
- package/dist/{fractions/platforms → next/fractions/platforms/gated}/deployNftFractionsMarket.schema.d.ts +4 -8
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/{fractions/platforms → next/fractions/platforms/gated}/deployNftFractionsMarket.schema.js +6 -11
- package/dist/next/fractions/platforms/index.d.ts +34 -1
- package/dist/next/fractions/platforms/index.d.ts.map +1 -1
- package/dist/next/fractions/platforms/index.js +6 -2
- package/dist/next/fractions/sales/createNftFractions.schema.js +1 -1
- package/dist/next/fractions/sales/index.d.ts +48 -1
- package/dist/next/fractions/sales/index.d.ts.map +1 -1
- package/dist/next/fractions/sales/index.js +7 -1
- package/dist/next/fractions/sales/parseFractionsCreatedEvent.d.ts +23 -0
- package/dist/next/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/{src/fractions/createFractions/v0 → next/fractions/sales}/parseFractionsCreatedEvent.js +27 -19
- package/dist/next/fractions/sales/purchase.routes.d.ts +27 -0
- package/dist/next/fractions/sales/purchase.routes.d.ts.map +1 -0
- package/dist/next/fractions/sales/purchase.routes.js +37 -0
- package/dist/staking/platforms/common/platform.d.ts.map +1 -1
- package/dist/staking/platforms/common/platform.js +2 -1
- package/dist/staking/pools/common/pool.d.ts.map +1 -1
- package/dist/staking/pools/common/pool.js +2 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.js +1 -1
- package/dist/staking/stakes/common/stake.d.ts.map +1 -1
- package/dist/staking/stakes/common/stake.js +2 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +1 -1
- package/dist/stakingTemplates/templates/common/time.js +1 -1
- package/package.json +13 -12
- package/dist/common/abis/erc20Whitelisted.d.ts +0 -316
- package/dist/common/abis/erc20Whitelisted.d.ts.map +0 -1
- package/dist/common/abis/erc20Whitelisted.js +0 -1139
- package/dist/common/indexer/index.d.ts +0 -4044
- package/dist/common/indexer/index.d.ts.map +0 -1
- package/dist/common/indexer/index.js +0 -3
- package/dist/common/models/numOrStr.d.ts +0 -7
- package/dist/common/models/numOrStr.d.ts.map +0 -1
- package/dist/common/models/numOrStr.js +0 -11
- package/dist/common/zod.d.ts +0 -3
- package/dist/common/zod.d.ts.map +0 -1
- package/dist/common/zod.js +0 -2
- package/dist/fractions/activity/searchActivity.route.d.ts +0 -198
- package/dist/fractions/activity/searchActivity.route.d.ts.map +0 -1
- package/dist/fractions/activity/searchActivity.route.js +0 -53
- package/dist/fractions/activity/utils.d.ts +0 -228
- package/dist/fractions/activity/utils.d.ts.map +0 -1
- package/dist/fractions/activity/utils.js +0 -68
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts +0 -68
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts.map +0 -1
- package/dist/fractions/approveSale/v0/approveSale.route.js +0 -31
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts +0 -203
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +0 -1
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.js +0 -84
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts +0 -68
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts.map +0 -1
- package/dist/fractions/completeSale/v0/completeSale.route.js +0 -31
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts +0 -305
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts.map +0 -1
- package/dist/fractions/createFractions/v0/createFractions.route.js +0 -48
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts +0 -427
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts.map +0 -1
- package/dist/fractions/createFractions/v0/createFractions.schema.js +0 -78
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +0 -51
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +0 -1
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.js +0 -58
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts +0 -374
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +0 -1
- package/dist/fractions/deployMarket/v0/deployMarket.routes.js +0 -138
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts +0 -86
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +0 -1
- package/dist/fractions/deployMarket/v0/deployMarket.schema.js +0 -24
- package/dist/fractions/deployMarket/v0/index.d.ts +0 -3
- package/dist/fractions/deployMarket/v0/index.d.ts.map +0 -1
- package/dist/fractions/deployMarket/v0/index.js +0 -2
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts +0 -61
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts.map +0 -1
- package/dist/fractions/deployMarket/v0/initNid.route.js +0 -31
- package/dist/fractions/gating/v0/getAuthData.d.ts +0 -86
- package/dist/fractions/gating/v0/getAuthData.d.ts.map +0 -1
- package/dist/fractions/gating/v0/getAuthData.js +0 -48
- package/dist/fractions/gating/v0/getNonce.route.d.ts +0 -54
- package/dist/fractions/gating/v0/getNonce.route.d.ts.map +0 -1
- package/dist/fractions/gating/v0/getNonce.route.js +0 -40
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts +0 -65
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts.map +0 -1
- package/dist/fractions/grantRole/v0/grantRole.route.js +0 -31
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts +0 -26
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts.map +0 -1
- package/dist/fractions/grantRole/v0/grantRole.schema.js +0 -14
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts +0 -103
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts.map +0 -1
- package/dist/fractions/markets/getMarket/v0/getMarket.js +0 -62
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +0 -115
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +0 -1
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.js +0 -42
- package/dist/fractions/nftfractions/index.d.ts +0 -6
- package/dist/fractions/nftfractions/index.d.ts.map +0 -1
- package/dist/fractions/nftfractions/index.js +0 -5
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.d.ts +0 -192
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.js +0 -58
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.d.ts +0 -245
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.js +0 -65
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.d.ts +0 -96
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.js +0 -52
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.d.ts +0 -70
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/initCompilot.routes.d.ts +0 -74
- package/dist/fractions/nftfractions/v0/initCompilot.routes.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/initCompilot.routes.js +0 -41
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.d.ts +0 -96
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.d.ts.map +0 -1
- package/dist/fractions/platforms/deployNftFractionsMarket.schema.d.ts.map +0 -1
- package/dist/fractions/purchase/v0/purchase.route.d.ts +0 -89
- package/dist/fractions/purchase/v0/purchase.route.d.ts.map +0 -1
- package/dist/fractions/purchase/v0/purchase.route.js +0 -41
- package/dist/fractions/purchase/v0/statistics.route.d.ts +0 -65
- package/dist/fractions/purchase/v0/statistics.route.d.ts.map +0 -1
- package/dist/fractions/purchase/v0/statistics.route.js +0 -52
- package/dist/fractions/roles/getRoles/v0/getRoles.d.ts +0 -28
- package/dist/fractions/roles/getRoles/v0/getRoles.d.ts.map +0 -1
- package/dist/fractions/roles/getRoles/v0/getRoles.js +0 -41
- package/dist/fractions/sales/createNftFractions.routes.d.ts +0 -180
- package/dist/fractions/sales/createNftFractions.routes.d.ts.map +0 -1
- package/dist/fractions/sales/createNftFractions.routes.js +0 -58
- package/dist/fractions/sales/createNftFractions.schema.d.ts +0 -85
- package/dist/fractions/sales/createNftFractions.schema.d.ts.map +0 -1
- package/dist/fractions/sales/createNftFractions.schema.js +0 -67
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +0 -89
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +0 -1
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +0 -82
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts +0 -257
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts.map +0 -1
- package/dist/fractions/sales/searchSales/v0/searchSales.js +0 -49
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts +0 -92
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.js +0 -90
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +0 -94
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.js +0 -41
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts +0 -87
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/v0/editCliff.route.js +0 -40
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +0 -48
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +0 -57
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts +0 -68
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts.map +0 -1
- package/dist/fractions/withdraw/v0/withdraw.route.js +0 -31
- package/dist/general/balance-client.d.ts +0 -13
- package/dist/general/balance-client.d.ts.map +0 -1
- package/dist/general/balance-client.js +0 -26
- package/dist/issuance/approve.d.ts +0 -75
- package/dist/issuance/approve.d.ts.map +0 -1
- package/dist/issuance/approve.js +0 -36
- package/dist/issuance/burn.d.ts +0 -75
- package/dist/issuance/burn.d.ts.map +0 -1
- package/dist/issuance/burn.js +0 -36
- package/dist/issuance/common.d.ts +0 -2
- package/dist/issuance/common.d.ts.map +0 -1
- package/dist/issuance/common.js +0 -1
- package/dist/issuance/deploy.d.ts +0 -158
- package/dist/issuance/deploy.d.ts.map +0 -1
- package/dist/issuance/deploy.js +0 -227
- package/dist/issuance/erc20/deploy.d.ts +0 -38
- package/dist/issuance/erc20/deploy.d.ts.map +0 -1
- package/dist/issuance/erc20/deploy.js +0 -52
- package/dist/issuance/erc20/deployGated.d.ts +0 -40
- package/dist/issuance/erc20/deployGated.d.ts.map +0 -1
- package/dist/issuance/erc20/deployGated.js +0 -58
- package/dist/issuance/erc20/getInitData.d.ts +0 -59
- package/dist/issuance/erc20/getInitData.d.ts.map +0 -1
- package/dist/issuance/erc20/getInitData.js +0 -49
- package/dist/issuance/erc20/initialize.d.ts +0 -40
- package/dist/issuance/erc20/initialize.d.ts.map +0 -1
- package/dist/issuance/erc20/initialize.js +0 -45
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts +0 -23
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts.map +0 -1
- package/dist/issuance/erc20/parseErc20DeployEvent.js +0 -79
- package/dist/issuance/erc721/deploy.d.ts +0 -38
- package/dist/issuance/erc721/deploy.d.ts.map +0 -1
- package/dist/issuance/erc721/deploy.js +0 -51
- package/dist/issuance/erc721/deployGated.d.ts +0 -40
- package/dist/issuance/erc721/deployGated.d.ts.map +0 -1
- package/dist/issuance/erc721/deployGated.js +0 -58
- package/dist/issuance/erc721/getInitData.d.ts +0 -49
- package/dist/issuance/erc721/getInitData.d.ts.map +0 -1
- package/dist/issuance/erc721/getInitData.js +0 -51
- package/dist/issuance/erc721/initialize.d.ts +0 -38
- package/dist/issuance/erc721/initialize.d.ts.map +0 -1
- package/dist/issuance/erc721/initialize.js +0 -40
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts +0 -23
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts.map +0 -1
- package/dist/issuance/erc721/parseErc721DeployEvent.js +0 -78
- package/dist/issuance/getInitData.d.ts +0 -132
- package/dist/issuance/getInitData.d.ts.map +0 -1
- package/dist/issuance/getInitData.js +0 -104
- package/dist/issuance/grantRole.d.ts +0 -76
- package/dist/issuance/grantRole.d.ts.map +0 -1
- package/dist/issuance/grantRole.js +0 -42
- package/dist/issuance/mint.d.ts +0 -75
- package/dist/issuance/mint.d.ts.map +0 -1
- package/dist/issuance/mint.js +0 -36
- package/dist/issuance/recover.d.ts +0 -82
- package/dist/issuance/recover.d.ts.map +0 -1
- package/dist/issuance/recover.js +0 -38
- package/dist/issuance/renounceRole.d.ts +0 -76
- package/dist/issuance/renounceRole.d.ts.map +0 -1
- package/dist/issuance/renounceRole.js +0 -42
- package/dist/issuance/transfer.d.ts +0 -75
- package/dist/issuance/transfer.d.ts.map +0 -1
- package/dist/issuance/transfer.js +0 -36
- package/dist/issuance/upgrade.d.ts +0 -82
- package/dist/issuance/upgrade.d.ts.map +0 -1
- package/dist/issuance/upgrade.js +0 -45
- package/dist/package.json +0 -78
- package/dist/src/app.d.ts +0 -2194
- package/dist/src/app.d.ts.map +0 -1
- package/dist/src/app.js +0 -18
- package/dist/src/client.d.ts +0 -2690
- package/dist/src/client.d.ts.map +0 -1
- package/dist/src/client.js +0 -4
- package/dist/src/common/abis/erc20Whitelisted.d.ts +0 -4
- package/dist/src/common/abis/erc20Whitelisted.d.ts.map +0 -1
- package/dist/src/common/abis/erc20Whitelisted.js +0 -4
- package/dist/src/common/app.d.ts +0 -9
- package/dist/src/common/app.d.ts.map +0 -1
- package/dist/src/common/app.js +0 -3
- package/dist/src/common/blockchain.d.ts +0 -9528
- package/dist/src/common/blockchain.d.ts.map +0 -1
- package/dist/src/common/blockchain.js +0 -40
- package/dist/src/common/config.d.ts +0 -21
- package/dist/src/common/config.d.ts.map +0 -1
- package/dist/src/common/config.js +0 -33
- package/dist/src/common/http-error.d.ts +0 -7
- package/dist/src/common/http-error.d.ts.map +0 -1
- package/dist/src/common/http-error.js +0 -7
- package/dist/src/common/index.d.ts +0 -2
- package/dist/src/common/index.d.ts.map +0 -1
- package/dist/src/common/index.js +0 -1
- package/dist/src/common/indexer/client.d.ts +0 -1191
- package/dist/src/common/indexer/client.d.ts.map +0 -1
- package/dist/src/common/indexer/client.js +0 -7
- package/dist/src/common/indexer/index.d.ts +0 -1191
- package/dist/src/common/indexer/index.d.ts.map +0 -1
- package/dist/src/common/indexer/index.js +0 -3
- package/dist/src/common/indexer/schemas.d.ts +0 -1191
- package/dist/src/common/indexer/schemas.d.ts.map +0 -1
- package/dist/src/common/indexer/schemas.js +0 -14
- package/dist/src/common/models/chainId.d.ts +0 -5
- package/dist/src/common/models/chainId.d.ts.map +0 -1
- package/dist/src/common/models/chainId.js +0 -23
- package/dist/src/common/models/date.d.ts +0 -3
- package/dist/src/common/models/date.d.ts.map +0 -1
- package/dist/src/common/models/date.js +0 -5
- package/dist/src/common/models/erc721.d.ts +0 -15
- package/dist/src/common/models/erc721.d.ts.map +0 -1
- package/dist/src/common/models/erc721.js +0 -21
- package/dist/src/common/models/index.d.ts +0 -7
- package/dist/src/common/models/index.d.ts.map +0 -1
- package/dist/src/common/models/index.js +0 -6
- package/dist/src/common/models/page.d.ts +0 -12
- package/dist/src/common/models/page.d.ts.map +0 -1
- package/dist/src/common/models/page.js +0 -15
- package/dist/src/common/models/percent.d.ts +0 -3
- package/dist/src/common/models/percent.d.ts.map +0 -1
- package/dist/src/common/models/percent.js +0 -6
- package/dist/src/common/models/platform.d.ts +0 -4
- package/dist/src/common/models/platform.d.ts.map +0 -1
- package/dist/src/common/models/platform.js +0 -13
- package/dist/src/common/models/routes.d.ts +0 -16
- package/dist/src/common/models/routes.d.ts.map +0 -1
- package/dist/src/common/models/routes.js +0 -13
- package/dist/src/common/models/saleId.d.ts +0 -12
- package/dist/src/common/models/saleId.d.ts.map +0 -1
- package/dist/src/common/models/saleId.js +0 -6
- package/dist/src/common/models/transaction.d.ts +0 -90
- package/dist/src/common/models/transaction.d.ts.map +0 -1
- package/dist/src/common/models/transaction.js +0 -57
- package/dist/src/common/models/viem.d.ts +0 -4
- package/dist/src/common/models/viem.d.ts.map +0 -1
- package/dist/src/common/models/viem.js +0 -15
- package/dist/src/common/openapi.d.ts +0 -4
- package/dist/src/common/openapi.d.ts.map +0 -1
- package/dist/src/common/openapi.js +0 -40
- package/dist/src/common/tag.d.ts +0 -7
- package/dist/src/common/tag.d.ts.map +0 -1
- package/dist/src/common/tag.js +0 -5
- package/dist/src/common/version.d.ts +0 -2
- package/dist/src/common/version.d.ts.map +0 -1
- package/dist/src/common/version.js +0 -2
- package/dist/src/common/zod.d.ts +0 -3
- package/dist/src/common/zod.d.ts.map +0 -1
- package/dist/src/common/zod.js +0 -2
- package/dist/src/error.d.ts +0 -3
- package/dist/src/error.d.ts.map +0 -1
- package/dist/src/error.js +0 -16
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts +0 -68
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts.map +0 -1
- package/dist/src/fractions/approveSale/v0/approveSale.route.js +0 -31
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts +0 -203
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +0 -1
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.js +0 -84
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts +0 -68
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts.map +0 -1
- package/dist/src/fractions/completeSale/v0/completeSale.route.js +0 -31
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts +0 -305
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts.map +0 -1
- package/dist/src/fractions/createFractions/v0/createFractions.route.js +0 -61
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts +0 -416
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts.map +0 -1
- package/dist/src/fractions/createFractions/v0/createFractions.schema.js +0 -67
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +0 -51
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +0 -1
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts +0 -297
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +0 -1
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.js +0 -98
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts +0 -96
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +0 -1
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.js +0 -21
- package/dist/src/fractions/gating/index.d.ts +0 -2
- package/dist/src/fractions/gating/index.d.ts.map +0 -1
- package/dist/src/fractions/gating/index.js +0 -0
- package/dist/src/fractions/gating/v0/getAuthData.d.ts +0 -86
- package/dist/src/fractions/gating/v0/getAuthData.d.ts.map +0 -1
- package/dist/src/fractions/gating/v0/getAuthData.js +0 -48
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts +0 -54
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts.map +0 -1
- package/dist/src/fractions/gating/v0/getNonce.route.js +0 -40
- package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts +0 -65
- package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts.map +0 -1
- package/dist/src/fractions/grantRole/v0/grantRole.route.js +0 -31
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts +0 -26
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts.map +0 -1
- package/dist/src/fractions/grantRole/v0/grantRole.schema.js +0 -14
- package/dist/src/fractions/index.d.ts +0 -968
- package/dist/src/fractions/index.d.ts.map +0 -1
- package/dist/src/fractions/index.js +0 -91
- package/dist/src/fractions/markets/common/platform.d.ts +0 -26
- package/dist/src/fractions/markets/common/platform.d.ts.map +0 -1
- package/dist/src/fractions/markets/common/platform.js +0 -26
- package/dist/src/fractions/markets/getDeployEvent.d.ts +0 -42
- package/dist/src/fractions/markets/getDeployEvent.d.ts.map +0 -1
- package/dist/src/fractions/markets/getDeployEvent.js +0 -47
- package/dist/src/fractions/markets/getMarket/index.d.ts +0 -40
- package/dist/src/fractions/markets/getMarket/index.d.ts.map +0 -1
- package/dist/src/fractions/markets/getMarket/index.js +0 -4
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts +0 -64
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts.map +0 -1
- package/dist/src/fractions/markets/getMarket/v0/getMarket.js +0 -63
- package/dist/src/fractions/markets/index.d.ts +0 -84
- package/dist/src/fractions/markets/index.d.ts.map +0 -1
- package/dist/src/fractions/markets/index.js +0 -12
- package/dist/src/fractions/markets/searchMarkets/index.d.ts +0 -32
- package/dist/src/fractions/markets/searchMarkets/index.d.ts.map +0 -1
- package/dist/src/fractions/markets/searchMarkets/index.js +0 -4
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +0 -76
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +0 -1
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.js +0 -42
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts +0 -89
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts.map +0 -1
- package/dist/src/fractions/purchase/v0/purchase.route.js +0 -41
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts +0 -28
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts.map +0 -1
- package/dist/src/fractions/roles/getRoles/v0/getRoles.js +0 -41
- package/dist/src/fractions/sales/getVaultAddress.d.ts +0 -52
- package/dist/src/fractions/sales/getVaultAddress.d.ts.map +0 -1
- package/dist/src/fractions/sales/getVaultAddress.js +0 -61
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts +0 -42
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts.map +0 -1
- package/dist/src/fractions/sales/getWithdrawEvent.js +0 -52
- package/dist/src/fractions/sales/index.d.ts +0 -10
- package/dist/src/fractions/sales/index.d.ts.map +0 -1
- package/dist/src/fractions/sales/index.js +0 -10
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +0 -144
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.js +0 -59
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +0 -57
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +0 -27
- package/dist/src/fractions/sales/recoverFractions.d.ts +0 -108
- package/dist/src/fractions/sales/recoverFractions.d.ts.map +0 -1
- package/dist/src/fractions/sales/recoverFractions.js +0 -45
- package/dist/src/fractions/sales/rejectFractions.d.ts +0 -80
- package/dist/src/fractions/sales/rejectFractions.d.ts.map +0 -1
- package/dist/src/fractions/sales/rejectFractions.js +0 -39
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts +0 -2
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts.map +0 -1
- package/dist/src/fractions/sales/searchSaleEvents/index.js +0 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +0 -89
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +0 -1
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +0 -82
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts +0 -75
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts.map +0 -1
- package/dist/src/fractions/sales/setFeeCapLimit.js +0 -32
- package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts +0 -68
- package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/unlockWrappedAssets.route.js +0 -31
- package/dist/src/fractions/sales/vesting/index.d.ts +0 -2
- package/dist/src/fractions/sales/vesting/index.d.ts.map +0 -1
- package/dist/src/fractions/sales/vesting/index.js +0 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +0 -94
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.js +0 -41
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts +0 -87
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.js +0 -40
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +0 -48
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +0 -1
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +0 -58
- package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts +0 -68
- package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts.map +0 -1
- package/dist/src/fractions/withdraw/v0/withdraw.route.js +0 -31
- package/dist/src/general/balance-client.d.ts +0 -13
- package/dist/src/general/balance-client.d.ts.map +0 -1
- package/dist/src/general/balance-client.js +0 -26
- package/dist/src/general/common.d.ts +0 -94
- package/dist/src/general/common.d.ts.map +0 -1
- package/dist/src/general/common.js +0 -35
- package/dist/src/general/estimateGas.d.ts +0 -52
- package/dist/src/general/estimateGas.d.ts.map +0 -1
- package/dist/src/general/estimateGas.js +0 -64
- package/dist/src/general/getBalance.d.ts +0 -44
- package/dist/src/general/getBalance.d.ts.map +0 -1
- package/dist/src/general/getBalance.js +0 -43
- package/dist/src/general/getBalancesBatch.d.ts +0 -59
- package/dist/src/general/getBalancesBatch.d.ts.map +0 -1
- package/dist/src/general/getBalancesBatch.js +0 -34
- package/dist/src/general/index.d.ts +0 -100
- package/dist/src/general/index.d.ts.map +0 -1
- package/dist/src/general/index.js +0 -20
- package/dist/src/general/searchBalances.d.ts +0 -78
- package/dist/src/general/searchBalances.d.ts.map +0 -1
- package/dist/src/general/searchBalances.js +0 -49
- package/dist/src/issuance/approve.d.ts +0 -75
- package/dist/src/issuance/approve.d.ts.map +0 -1
- package/dist/src/issuance/approve.js +0 -36
- package/dist/src/issuance/burn.d.ts +0 -75
- package/dist/src/issuance/burn.d.ts.map +0 -1
- package/dist/src/issuance/burn.js +0 -36
- package/dist/src/issuance/deploy.d.ts +0 -88
- package/dist/src/issuance/deploy.d.ts.map +0 -1
- package/dist/src/issuance/deploy.js +0 -91
- package/dist/src/issuance/grantRole.d.ts +0 -78
- package/dist/src/issuance/grantRole.d.ts.map +0 -1
- package/dist/src/issuance/grantRole.js +0 -50
- package/dist/src/issuance/index.d.ts +0 -165
- package/dist/src/issuance/index.d.ts.map +0 -1
- package/dist/src/issuance/index.js +0 -23
- package/dist/src/issuance/mint.d.ts +0 -75
- package/dist/src/issuance/mint.d.ts.map +0 -1
- package/dist/src/issuance/mint.js +0 -36
- package/dist/src/issuance/transfer.d.ts +0 -75
- package/dist/src/issuance/transfer.d.ts.map +0 -1
- package/dist/src/issuance/transfer.js +0 -36
- package/dist/src/serve.d.ts +0 -2
- package/dist/src/serve.d.ts.map +0 -1
- package/dist/src/serve.js +0 -33
- package/dist/src/staking/index.d.ts +0 -242
- package/dist/src/staking/index.d.ts.map +0 -1
- package/dist/src/staking/index.js +0 -20
- package/dist/src/staking/platforms/common/platform.d.ts +0 -26
- package/dist/src/staking/platforms/common/platform.d.ts.map +0 -1
- package/dist/src/staking/platforms/common/platform.js +0 -26
- package/dist/src/staking/platforms/common/platformNotFound.d.ts +0 -9
- package/dist/src/staking/platforms/common/platformNotFound.d.ts.map +0 -1
- package/dist/src/staking/platforms/common/platformNotFound.js +0 -13
- package/dist/src/staking/platforms/getPlatform/index.d.ts +0 -26
- package/dist/src/staking/platforms/getPlatform/index.d.ts.map +0 -1
- package/dist/src/staking/platforms/getPlatform/index.js +0 -4
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts +0 -52
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +0 -1
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.js +0 -58
- package/dist/src/staking/platforms/index.d.ts +0 -52
- package/dist/src/staking/platforms/index.d.ts.map +0 -1
- package/dist/src/staking/platforms/index.js +0 -10
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts +0 -32
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts.map +0 -1
- package/dist/src/staking/platforms/searchPlatforms/index.js +0 -4
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +0 -76
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +0 -1
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.js +0 -42
- package/dist/src/staking/pools/common/pool.d.ts +0 -29
- package/dist/src/staking/pools/common/pool.d.ts.map +0 -1
- package/dist/src/staking/pools/common/pool.js +0 -28
- package/dist/src/staking/pools/common/poolNotFound.d.ts +0 -10
- package/dist/src/staking/pools/common/poolNotFound.d.ts.map +0 -1
- package/dist/src/staking/pools/common/poolNotFound.js +0 -14
- package/dist/src/staking/pools/getPool/index.d.ts +0 -20
- package/dist/src/staking/pools/getPool/index.d.ts.map +0 -1
- package/dist/src/staking/pools/getPool/index.js +0 -4
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts +0 -35
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts.map +0 -1
- package/dist/src/staking/pools/getPool/v0/getPool.js +0 -64
- package/dist/src/staking/pools/index.d.ts +0 -39
- package/dist/src/staking/pools/index.d.ts.map +0 -1
- package/dist/src/staking/pools/index.js +0 -10
- package/dist/src/staking/pools/searchPools/index.d.ts +0 -25
- package/dist/src/staking/pools/searchPools/index.d.ts.map +0 -1
- package/dist/src/staking/pools/searchPools/index.js +0 -4
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts +0 -55
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts.map +0 -1
- package/dist/src/staking/pools/searchPools/v0/searchPools.js +0 -42
- package/dist/src/staking/roles/common/role.d.ts +0 -13
- package/dist/src/staking/roles/common/role.d.ts.map +0 -1
- package/dist/src/staking/roles/common/role.js +0 -18
- package/dist/src/staking/roles/common/roleAssignment.d.ts +0 -27
- package/dist/src/staking/roles/common/roleAssignment.d.ts.map +0 -1
- package/dist/src/staking/roles/common/roleAssignment.js +0 -21
- package/dist/src/staking/roles/common/roleEvent.d.ts +0 -30
- package/dist/src/staking/roles/common/roleEvent.d.ts.map +0 -1
- package/dist/src/staking/roles/common/roleEvent.js +0 -23
- package/dist/src/staking/roles/getRoles/index.d.ts +0 -26
- package/dist/src/staking/roles/getRoles/index.d.ts.map +0 -1
- package/dist/src/staking/roles/getRoles/index.js +0 -4
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts +0 -29
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts.map +0 -1
- package/dist/src/staking/roles/getRoles/v0/getRoles.js +0 -41
- package/dist/src/staking/roles/grantRole/index.d.ts +0 -29
- package/dist/src/staking/roles/grantRole/index.d.ts.map +0 -1
- package/dist/src/staking/roles/grantRole/index.js +0 -4
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts +0 -63
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts.map +0 -1
- package/dist/src/staking/roles/grantRole/v0/grantRole.js +0 -40
- package/dist/src/staking/roles/index.d.ts +0 -93
- package/dist/src/staking/roles/index.d.ts.map +0 -1
- package/dist/src/staking/roles/index.js +0 -14
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts +0 -27
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts.map +0 -1
- package/dist/src/staking/roles/searchRoleEvents/index.js +0 -4
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +0 -63
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +0 -1
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +0 -58
- package/dist/src/staking/roles/searchRoles/index.d.ts +0 -27
- package/dist/src/staking/roles/searchRoles/index.d.ts.map +0 -1
- package/dist/src/staking/roles/searchRoles/index.js +0 -4
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts +0 -63
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts.map +0 -1
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.js +0 -56
- package/dist/src/staking/stakes/common/stake.d.ts +0 -44
- package/dist/src/staking/stakes/common/stake.d.ts.map +0 -1
- package/dist/src/staking/stakes/common/stake.js +0 -45
- package/dist/src/staking/stakes/common/stakeEvent.d.ts +0 -30
- package/dist/src/staking/stakes/common/stakeEvent.d.ts.map +0 -1
- package/dist/src/staking/stakes/common/stakeEvent.js +0 -24
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts +0 -9
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts.map +0 -1
- package/dist/src/staking/stakes/common/stakeNotFound.js +0 -13
- package/dist/src/staking/stakes/getStake/index.d.ts +0 -20
- package/dist/src/staking/stakes/getStake/index.d.ts.map +0 -1
- package/dist/src/staking/stakes/getStake/index.js +0 -4
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts +0 -35
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts.map +0 -1
- package/dist/src/staking/stakes/getStake/v0/getStake.js +0 -64
- package/dist/src/staking/stakes/index.d.ts +0 -63
- package/dist/src/staking/stakes/index.d.ts.map +0 -1
- package/dist/src/staking/stakes/index.js +0 -12
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts +0 -27
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts.map +0 -1
- package/dist/src/staking/stakes/searchStakeEvents/index.js +0 -4
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +0 -63
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +0 -1
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +0 -59
- package/dist/src/staking/stakes/searchStakes/index.d.ts +0 -27
- package/dist/src/staking/stakes/searchStakes/index.d.ts.map +0 -1
- package/dist/src/staking/stakes/searchStakes/index.js +0 -4
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts +0 -63
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +0 -1
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.js +0 -61
- package/dist/src/staking-templates/index.d.ts +0 -732
- package/dist/src/staking-templates/index.d.ts.map +0 -1
- package/dist/src/staking-templates/index.js +0 -18
- package/dist/src/staking-templates/templates/common/amount.d.ts +0 -13
- package/dist/src/staking-templates/templates/common/amount.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/amount.js +0 -17
- package/dist/src/staking-templates/templates/common/amountMult.d.ts +0 -3
- package/dist/src/staking-templates/templates/common/amountMult.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/amountMult.js +0 -23
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts +0 -12
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/erc20Input.js +0 -16
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts +0 -12
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/erc20Reward.js +0 -16
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts +0 -31
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.js +0 -47
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts +0 -40
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.js +0 -46
- package/dist/src/staking-templates/templates/common/getReward.d.ts +0 -58
- package/dist/src/staking-templates/templates/common/getReward.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/getReward.js +0 -34
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts +0 -31
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/getStakeEvent.js +0 -51
- package/dist/src/staking-templates/templates/common/lock.d.ts +0 -12
- package/dist/src/staking-templates/templates/common/lock.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/lock.js +0 -20
- package/dist/src/staking-templates/templates/common/lockMult.d.ts +0 -3
- package/dist/src/staking-templates/templates/common/lockMult.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/lockMult.js +0 -15
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts +0 -62
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/partialUnstake.js +0 -39
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts +0 -13
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/rewardDistribution.js +0 -19
- package/dist/src/staking-templates/templates/common/templates.d.ts +0 -61
- package/dist/src/staking-templates/templates/common/templates.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/templates.js +0 -8
- package/dist/src/staking-templates/templates/common/time.d.ts +0 -2
- package/dist/src/staking-templates/templates/common/time.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/time.js +0 -4
- package/dist/src/staking-templates/templates/common/unstake.d.ts +0 -58
- package/dist/src/staking-templates/templates/common/unstake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/unstake.js +0 -34
- package/dist/src/staking-templates/templates/reputation/common.d.ts +0 -23
- package/dist/src/staking-templates/templates/reputation/common.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/common.js +0 -3
- package/dist/src/staking-templates/templates/reputation/index.d.ts +0 -233
- package/dist/src/staking-templates/templates/reputation/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/index.js +0 -4
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts +0 -81
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.js +0 -56
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts +0 -113
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/createPool.js +0 -85
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts +0 -233
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/index.js +0 -25
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts +0 -61
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/restake.js +0 -40
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts +0 -61
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/stake.js +0 -45
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts +0 -23
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/common.js +0 -3
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts +0 -244
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/index.js +0 -4
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +0 -81
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.js +0 -56
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts +0 -149
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.js +0 -99
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts +0 -244
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/index.js +0 -25
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts +0 -65
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.js +0 -44
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts +0 -65
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.js +0 -46
- package/dist/src/staking-templates/templates/rwa/common.d.ts +0 -23
- package/dist/src/staking-templates/templates/rwa/common.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/common.js +0 -3
- package/dist/src/staking-templates/templates/rwa/index.d.ts +0 -256
- package/dist/src/staking-templates/templates/rwa/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/index.js +0 -4
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts +0 -81
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.js +0 -56
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts +0 -109
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/createPool.js +0 -79
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts +0 -256
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/index.js +0 -27
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts +0 -61
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.js +0 -41
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts +0 -61
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/restake.js +0 -40
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts +0 -61
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/stake.js +0 -45
- package/dist/staking/platforms/common/platformNotFound.d.ts +0 -9
- package/dist/staking/platforms/common/platformNotFound.d.ts.map +0 -1
- package/dist/staking/platforms/common/platformNotFound.js +0 -13
- package/dist/staking/pools/common/poolNotFound.d.ts +0 -10
- package/dist/staking/pools/common/poolNotFound.d.ts.map +0 -1
- package/dist/staking/pools/common/poolNotFound.js +0 -14
- package/dist/staking/stakes/common/stakeNotFound.d.ts +0 -9
- package/dist/staking/stakes/common/stakeNotFound.d.ts.map +0 -1
- package/dist/staking/stakes/common/stakeNotFound.js +0 -13
- package/dist/staking-templates/index.d.ts +0 -732
- package/dist/staking-templates/index.d.ts.map +0 -1
- package/dist/staking-templates/index.js +0 -18
- package/dist/staking-templates/templates/common/amount.d.ts +0 -7
- package/dist/staking-templates/templates/common/amount.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/amount.js +0 -15
- package/dist/staking-templates/templates/common/amountMult.d.ts +0 -3
- package/dist/staking-templates/templates/common/amountMult.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/amountMult.js +0 -22
- package/dist/staking-templates/templates/common/erc20Input.d.ts +0 -6
- package/dist/staking-templates/templates/common/erc20Input.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/erc20Input.js +0 -14
- package/dist/staking-templates/templates/common/erc20Reward.d.ts +0 -6
- package/dist/staking-templates/templates/common/erc20Reward.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/erc20Reward.js +0 -13
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts +0 -31
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/getCreatePoolEvent.js +0 -47
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts +0 -40
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.js +0 -46
- package/dist/staking-templates/templates/common/getReward.d.ts +0 -58
- package/dist/staking-templates/templates/common/getReward.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/getReward.js +0 -34
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts +0 -31
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/getStakeEvent.js +0 -51
- package/dist/staking-templates/templates/common/lock.d.ts +0 -6
- package/dist/staking-templates/templates/common/lock.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/lock.js +0 -18
- package/dist/staking-templates/templates/common/lockMult.d.ts +0 -3
- package/dist/staking-templates/templates/common/lockMult.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/lockMult.js +0 -14
- package/dist/staking-templates/templates/common/partialUnstake.d.ts +0 -62
- package/dist/staking-templates/templates/common/partialUnstake.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/partialUnstake.js +0 -39
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts +0 -7
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/rewardDistribution.js +0 -16
- package/dist/staking-templates/templates/common/templates.d.ts +0 -61
- package/dist/staking-templates/templates/common/templates.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/templates.js +0 -8
- package/dist/staking-templates/templates/common/time.d.ts +0 -2
- package/dist/staking-templates/templates/common/time.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/time.js +0 -4
- package/dist/staking-templates/templates/common/unstake.d.ts +0 -58
- package/dist/staking-templates/templates/common/unstake.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/unstake.js +0 -34
- package/dist/staking-templates/templates/reputation/common.d.ts +0 -23
- package/dist/staking-templates/templates/reputation/common.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/common.js +0 -3
- package/dist/staking-templates/templates/reputation/index.d.ts +0 -233
- package/dist/staking-templates/templates/reputation/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/index.js +0 -4
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts +0 -81
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/createPlatform.js +0 -56
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts +0 -113
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/createPool.js +0 -85
- package/dist/staking-templates/templates/reputation/v0/index.d.ts +0 -233
- package/dist/staking-templates/templates/reputation/v0/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/index.js +0 -25
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts +0 -61
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/restake.js +0 -40
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts +0 -61
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/stake.js +0 -45
- package/dist/staking-templates/templates/reputationLock/common.d.ts +0 -23
- package/dist/staking-templates/templates/reputationLock/common.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/common.js +0 -3
- package/dist/staking-templates/templates/reputationLock/index.d.ts +0 -244
- package/dist/staking-templates/templates/reputationLock/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/index.js +0 -4
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +0 -81
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.js +0 -56
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts +0 -149
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/createPool.js +0 -99
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts +0 -244
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/index.js +0 -25
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts +0 -65
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/restake.js +0 -44
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts +0 -65
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/stake.js +0 -46
- package/dist/staking-templates/templates/rwa/common.d.ts +0 -23
- package/dist/staking-templates/templates/rwa/common.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/common.js +0 -3
- package/dist/staking-templates/templates/rwa/index.d.ts +0 -256
- package/dist/staking-templates/templates/rwa/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/index.js +0 -4
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts +0 -81
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/createPlatform.js +0 -56
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts +0 -109
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/createPool.js +0 -79
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts +0 -61
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.js +0 -41
- package/dist/staking-templates/templates/rwa/v0/index.d.ts +0 -256
- package/dist/staking-templates/templates/rwa/v0/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/index.js +0 -27
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.d.ts +0 -61
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.js +0 -41
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts +0 -61
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/restake.js +0 -40
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts +0 -61
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/stake.js +0 -45
- package/dist/v0/fractions/index.d.ts +0 -129
- package/dist/v0/fractions/index.d.ts.map +0 -1
- package/dist/v0/fractions/index.js +0 -9
- package/dist/v0/fractions/networkStatistics.route.d.ts +0 -297
- package/dist/v0/fractions/networkStatistics.route.d.ts.map +0 -1
- package/dist/v0/fractions/networkStatistics.route.js +0 -225
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts +0 -65
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts.map +0 -1
- package/dist/v1/fractions/lending/buyback/buyback.routes.js +0 -27
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts +0 -8
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts.map +0 -1
- package/dist/v1/fractions/lending/buyback/buyback.schema.js +0 -13
- package/dist/v1/fractions/lending/createLendingSale.d.ts +0 -303
- package/dist/v1/fractions/lending/createLendingSale.d.ts.map +0 -1
- package/dist/v1/fractions/lending/createLendingSale.js +0 -79
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts +0 -113
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts.map +0 -1
- package/dist/v1/fractions/lending/deployMarket/lending.routes.js +0 -41
- package/dist/v1/fractions/lending/index.d.ts +0 -192
- package/dist/v1/fractions/lending/index.d.ts.map +0 -1
- package/dist/v1/fractions/lending/index.js +0 -22
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts +0 -71
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts.map +0 -1
- package/dist/v1/fractions/lending/purchase/directPurchase.route.js +0 -31
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +0 -61
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts.map +0 -1
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.js +0 -27
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts +0 -7
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts.map +0 -1
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.js +0 -11
- package/dist/v1/fractions/schemas.d.ts +0 -20
- package/dist/v1/fractions/schemas.d.ts.map +0 -1
- package/dist/v1/fractions/schemas.js +0 -20
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { Factory } from "hono/factory";
|
|
2
|
-
import type { AppContext } from "../../common/context.js";
|
|
3
|
-
export declare function createNetworkStatisticsApp(factory: Factory<AppContext>): import("hono/hono-base").HonoBase<AppContext, {
|
|
4
|
-
"/holders": {
|
|
5
|
-
$post: {
|
|
6
|
-
input: {
|
|
7
|
-
json: {
|
|
8
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
output: {
|
|
12
|
-
[x: number]: string & import("zod").BRAND<"Int256">;
|
|
13
|
-
total: string & import("zod").BRAND<"Int256">;
|
|
14
|
-
} | {
|
|
15
|
-
total: string & import("zod").BRAND<"Int256">;
|
|
16
|
-
1: string & import("zod").BRAND<"Int256">;
|
|
17
|
-
31337: string & import("zod").BRAND<"Int256">;
|
|
18
|
-
11155111: string & import("zod").BRAND<"Int256">;
|
|
19
|
-
72080: string & import("zod").BRAND<"Int256">;
|
|
20
|
-
};
|
|
21
|
-
outputFormat: "json";
|
|
22
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
} & {
|
|
26
|
-
"/sales": {
|
|
27
|
-
$post: {
|
|
28
|
-
input: {
|
|
29
|
-
json: {
|
|
30
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
output: {
|
|
34
|
-
[x: number]: string & import("zod").BRAND<"Int256">;
|
|
35
|
-
total: string & import("zod").BRAND<"Int256">;
|
|
36
|
-
} | {
|
|
37
|
-
total: string & import("zod").BRAND<"Int256">;
|
|
38
|
-
1: string & import("zod").BRAND<"Int256">;
|
|
39
|
-
31337: string & import("zod").BRAND<"Int256">;
|
|
40
|
-
11155111: string & import("zod").BRAND<"Int256">;
|
|
41
|
-
72080: string & import("zod").BRAND<"Int256">;
|
|
42
|
-
};
|
|
43
|
-
outputFormat: "json";
|
|
44
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
} & {
|
|
48
|
-
"/ttv": {
|
|
49
|
-
$post: {
|
|
50
|
-
input: {
|
|
51
|
-
json: {
|
|
52
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
output: {
|
|
56
|
-
[x: number]: string & import("zod").BRAND<"Int256">;
|
|
57
|
-
total: string & import("zod").BRAND<"Int256">;
|
|
58
|
-
} | {
|
|
59
|
-
total: string & import("zod").BRAND<"Int256">;
|
|
60
|
-
1: string & import("zod").BRAND<"Int256">;
|
|
61
|
-
31337: string & import("zod").BRAND<"Int256">;
|
|
62
|
-
11155111: string & import("zod").BRAND<"Int256">;
|
|
63
|
-
72080: string & import("zod").BRAND<"Int256">;
|
|
64
|
-
};
|
|
65
|
-
outputFormat: "json";
|
|
66
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
} & {
|
|
70
|
-
"/": {
|
|
71
|
-
$post: {
|
|
72
|
-
input: {
|
|
73
|
-
json: {
|
|
74
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
output: {
|
|
78
|
-
[x: number]: {
|
|
79
|
-
holders: string & import("zod").BRAND<"Int256">;
|
|
80
|
-
sales: string & import("zod").BRAND<"Int256">;
|
|
81
|
-
ttv: string & import("zod").BRAND<"Int256">;
|
|
82
|
-
} | undefined;
|
|
83
|
-
total: {
|
|
84
|
-
holders: string & import("zod").BRAND<"Int256">;
|
|
85
|
-
sales: string & import("zod").BRAND<"Int256">;
|
|
86
|
-
ttv: string & import("zod").BRAND<"Int256">;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
outputFormat: "json";
|
|
90
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
91
|
-
} | {
|
|
92
|
-
input: {
|
|
93
|
-
json: {
|
|
94
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
output: {
|
|
98
|
-
total: {
|
|
99
|
-
holders: string & import("zod").BRAND<"Int256">;
|
|
100
|
-
sales: string & import("zod").BRAND<"Int256">;
|
|
101
|
-
ttv: string & import("zod").BRAND<"Int256">;
|
|
102
|
-
};
|
|
103
|
-
1?: {
|
|
104
|
-
holders: string & import("zod").BRAND<"Int256">;
|
|
105
|
-
sales: string & import("zod").BRAND<"Int256">;
|
|
106
|
-
ttv: string & import("zod").BRAND<"Int256">;
|
|
107
|
-
} | undefined;
|
|
108
|
-
31337?: {
|
|
109
|
-
holders: string & import("zod").BRAND<"Int256">;
|
|
110
|
-
sales: string & import("zod").BRAND<"Int256">;
|
|
111
|
-
ttv: string & import("zod").BRAND<"Int256">;
|
|
112
|
-
} | undefined;
|
|
113
|
-
11155111?: {
|
|
114
|
-
holders: string & import("zod").BRAND<"Int256">;
|
|
115
|
-
sales: string & import("zod").BRAND<"Int256">;
|
|
116
|
-
ttv: string & import("zod").BRAND<"Int256">;
|
|
117
|
-
} | undefined;
|
|
118
|
-
72080?: {
|
|
119
|
-
holders: string & import("zod").BRAND<"Int256">;
|
|
120
|
-
sales: string & import("zod").BRAND<"Int256">;
|
|
121
|
-
ttv: string & import("zod").BRAND<"Int256">;
|
|
122
|
-
} | undefined;
|
|
123
|
-
};
|
|
124
|
-
outputFormat: "json";
|
|
125
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
}, "/">;
|
|
129
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v0/fractions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAQ1D,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAOtE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createFractionHoldersCountV0, createSuccessfulSalesCountV0, createTtvV0, createNetworkStatisticsV0, } from "./networkStatistics.route.js";
|
|
2
|
-
export function createNetworkStatisticsApp(factory) {
|
|
3
|
-
return factory
|
|
4
|
-
.createApp()
|
|
5
|
-
.post("/holders", ...createFractionHoldersCountV0(factory))
|
|
6
|
-
.post("/sales", ...createSuccessfulSalesCountV0(factory))
|
|
7
|
-
.post("/ttv", ...createTtvV0(factory))
|
|
8
|
-
.post("/", ...createNetworkStatisticsV0(factory));
|
|
9
|
-
}
|
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { Factory } from "hono/factory";
|
|
2
|
-
import { z } from "../../common/zod.js";
|
|
3
|
-
import { AppContext } from "../../common/context.js";
|
|
4
|
-
/**
|
|
5
|
-
* Get the number of unique fraction holders from successful (finalized) sales
|
|
6
|
-
*/
|
|
7
|
-
export declare function createFractionHoldersCountV0(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
8
|
-
[x: number]: string & z.BRAND<"Int256">;
|
|
9
|
-
total: string & z.BRAND<"Int256">;
|
|
10
|
-
} | {
|
|
11
|
-
total: string & z.BRAND<"Int256">;
|
|
12
|
-
1: string & z.BRAND<"Int256">;
|
|
13
|
-
31337: string & z.BRAND<"Int256">;
|
|
14
|
-
11155111: string & z.BRAND<"Int256">;
|
|
15
|
-
72080: string & z.BRAND<"Int256">;
|
|
16
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
17
|
-
in: {
|
|
18
|
-
json: {
|
|
19
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
out: {
|
|
23
|
-
json: {
|
|
24
|
-
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
28
|
-
[x: number]: string & z.BRAND<"Int256">;
|
|
29
|
-
total: string & z.BRAND<"Int256">;
|
|
30
|
-
} | {
|
|
31
|
-
total: string & z.BRAND<"Int256">;
|
|
32
|
-
1: string & z.BRAND<"Int256">;
|
|
33
|
-
31337: string & z.BRAND<"Int256">;
|
|
34
|
-
11155111: string & z.BRAND<"Int256">;
|
|
35
|
-
72080: string & z.BRAND<"Int256">;
|
|
36
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<AppContext, string, {
|
|
37
|
-
in: {
|
|
38
|
-
json: {
|
|
39
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
out: {
|
|
43
|
-
json: {
|
|
44
|
-
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
48
|
-
[x: number]: string & z.BRAND<"Int256">;
|
|
49
|
-
total: string & z.BRAND<"Int256">;
|
|
50
|
-
} | {
|
|
51
|
-
total: string & z.BRAND<"Int256">;
|
|
52
|
-
1: string & z.BRAND<"Int256">;
|
|
53
|
-
31337: string & z.BRAND<"Int256">;
|
|
54
|
-
11155111: string & z.BRAND<"Int256">;
|
|
55
|
-
72080: string & z.BRAND<"Int256">;
|
|
56
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
57
|
-
/**
|
|
58
|
-
* Get the number of successful (finalized) fraction sales
|
|
59
|
-
*/
|
|
60
|
-
export declare function createSuccessfulSalesCountV0(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
61
|
-
[x: number]: string & z.BRAND<"Int256">;
|
|
62
|
-
total: string & z.BRAND<"Int256">;
|
|
63
|
-
} | {
|
|
64
|
-
total: string & z.BRAND<"Int256">;
|
|
65
|
-
1: string & z.BRAND<"Int256">;
|
|
66
|
-
31337: string & z.BRAND<"Int256">;
|
|
67
|
-
11155111: string & z.BRAND<"Int256">;
|
|
68
|
-
72080: string & z.BRAND<"Int256">;
|
|
69
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
70
|
-
in: {
|
|
71
|
-
json: {
|
|
72
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
out: {
|
|
76
|
-
json: {
|
|
77
|
-
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
81
|
-
[x: number]: string & z.BRAND<"Int256">;
|
|
82
|
-
total: string & z.BRAND<"Int256">;
|
|
83
|
-
} | {
|
|
84
|
-
total: string & z.BRAND<"Int256">;
|
|
85
|
-
1: string & z.BRAND<"Int256">;
|
|
86
|
-
31337: string & z.BRAND<"Int256">;
|
|
87
|
-
11155111: string & z.BRAND<"Int256">;
|
|
88
|
-
72080: string & z.BRAND<"Int256">;
|
|
89
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<AppContext, string, {
|
|
90
|
-
in: {
|
|
91
|
-
json: {
|
|
92
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
out: {
|
|
96
|
-
json: {
|
|
97
|
-
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
101
|
-
[x: number]: string & z.BRAND<"Int256">;
|
|
102
|
-
total: string & z.BRAND<"Int256">;
|
|
103
|
-
} | {
|
|
104
|
-
total: string & z.BRAND<"Int256">;
|
|
105
|
-
1: string & z.BRAND<"Int256">;
|
|
106
|
-
31337: string & z.BRAND<"Int256">;
|
|
107
|
-
11155111: string & z.BRAND<"Int256">;
|
|
108
|
-
72080: string & z.BRAND<"Int256">;
|
|
109
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
110
|
-
/**
|
|
111
|
-
* Get the Total Tokenized Value (TTV) - sum of all amounts raised by successful sales in USDC
|
|
112
|
-
*/
|
|
113
|
-
export declare function createTtvV0(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
114
|
-
[x: number]: string & z.BRAND<"Int256">;
|
|
115
|
-
total: string & z.BRAND<"Int256">;
|
|
116
|
-
} | {
|
|
117
|
-
total: string & z.BRAND<"Int256">;
|
|
118
|
-
1: string & z.BRAND<"Int256">;
|
|
119
|
-
31337: string & z.BRAND<"Int256">;
|
|
120
|
-
11155111: string & z.BRAND<"Int256">;
|
|
121
|
-
72080: string & z.BRAND<"Int256">;
|
|
122
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono").Env, string, {
|
|
123
|
-
in: {
|
|
124
|
-
json: {
|
|
125
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
out: {
|
|
129
|
-
json: {
|
|
130
|
-
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
134
|
-
[x: number]: string & z.BRAND<"Int256">;
|
|
135
|
-
total: string & z.BRAND<"Int256">;
|
|
136
|
-
} | {
|
|
137
|
-
total: string & z.BRAND<"Int256">;
|
|
138
|
-
1: string & z.BRAND<"Int256">;
|
|
139
|
-
31337: string & z.BRAND<"Int256">;
|
|
140
|
-
11155111: string & z.BRAND<"Int256">;
|
|
141
|
-
72080: string & z.BRAND<"Int256">;
|
|
142
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<AppContext, string, {
|
|
143
|
-
in: {
|
|
144
|
-
json: {
|
|
145
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
out: {
|
|
149
|
-
json: {
|
|
150
|
-
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
154
|
-
[x: number]: string & z.BRAND<"Int256">;
|
|
155
|
-
total: string & z.BRAND<"Int256">;
|
|
156
|
-
} | {
|
|
157
|
-
total: string & z.BRAND<"Int256">;
|
|
158
|
-
1: string & z.BRAND<"Int256">;
|
|
159
|
-
31337: string & z.BRAND<"Int256">;
|
|
160
|
-
11155111: string & z.BRAND<"Int256">;
|
|
161
|
-
72080: string & z.BRAND<"Int256">;
|
|
162
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
163
|
-
export declare function createNetworkStatisticsV0(factory: Factory<AppContext>): [import("hono/types").H<any, string, {}, Promise<(Response & import("hono").TypedResponse<{
|
|
164
|
-
[x: number]: {
|
|
165
|
-
holders: string & z.BRAND<"Int256">;
|
|
166
|
-
sales: string & z.BRAND<"Int256">;
|
|
167
|
-
ttv: string & z.BRAND<"Int256">;
|
|
168
|
-
} | undefined;
|
|
169
|
-
total: {
|
|
170
|
-
holders: string & z.BRAND<"Int256">;
|
|
171
|
-
sales: string & z.BRAND<"Int256">;
|
|
172
|
-
ttv: string & z.BRAND<"Int256">;
|
|
173
|
-
};
|
|
174
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
175
|
-
total: {
|
|
176
|
-
holders: string & z.BRAND<"Int256">;
|
|
177
|
-
sales: string & z.BRAND<"Int256">;
|
|
178
|
-
ttv: string & z.BRAND<"Int256">;
|
|
179
|
-
};
|
|
180
|
-
1?: {
|
|
181
|
-
holders: string & z.BRAND<"Int256">;
|
|
182
|
-
sales: string & z.BRAND<"Int256">;
|
|
183
|
-
ttv: string & z.BRAND<"Int256">;
|
|
184
|
-
} | undefined;
|
|
185
|
-
31337?: {
|
|
186
|
-
holders: string & z.BRAND<"Int256">;
|
|
187
|
-
sales: string & z.BRAND<"Int256">;
|
|
188
|
-
ttv: string & z.BRAND<"Int256">;
|
|
189
|
-
} | undefined;
|
|
190
|
-
11155111?: {
|
|
191
|
-
holders: string & z.BRAND<"Int256">;
|
|
192
|
-
sales: string & z.BRAND<"Int256">;
|
|
193
|
-
ttv: string & z.BRAND<"Int256">;
|
|
194
|
-
} | undefined;
|
|
195
|
-
72080?: {
|
|
196
|
-
holders: string & z.BRAND<"Int256">;
|
|
197
|
-
sales: string & z.BRAND<"Int256">;
|
|
198
|
-
ttv: string & z.BRAND<"Int256">;
|
|
199
|
-
} | undefined;
|
|
200
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">)>>, import("hono/types").H<import("hono").Env, string, {
|
|
201
|
-
in: {
|
|
202
|
-
json: {
|
|
203
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
out: {
|
|
207
|
-
json: {
|
|
208
|
-
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
}, Promise<(Response & import("hono").TypedResponse<{
|
|
212
|
-
[x: number]: {
|
|
213
|
-
holders: string & z.BRAND<"Int256">;
|
|
214
|
-
sales: string & z.BRAND<"Int256">;
|
|
215
|
-
ttv: string & z.BRAND<"Int256">;
|
|
216
|
-
} | undefined;
|
|
217
|
-
total: {
|
|
218
|
-
holders: string & z.BRAND<"Int256">;
|
|
219
|
-
sales: string & z.BRAND<"Int256">;
|
|
220
|
-
ttv: string & z.BRAND<"Int256">;
|
|
221
|
-
};
|
|
222
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
223
|
-
total: {
|
|
224
|
-
holders: string & z.BRAND<"Int256">;
|
|
225
|
-
sales: string & z.BRAND<"Int256">;
|
|
226
|
-
ttv: string & z.BRAND<"Int256">;
|
|
227
|
-
};
|
|
228
|
-
1?: {
|
|
229
|
-
holders: string & z.BRAND<"Int256">;
|
|
230
|
-
sales: string & z.BRAND<"Int256">;
|
|
231
|
-
ttv: string & z.BRAND<"Int256">;
|
|
232
|
-
} | undefined;
|
|
233
|
-
31337?: {
|
|
234
|
-
holders: string & z.BRAND<"Int256">;
|
|
235
|
-
sales: string & z.BRAND<"Int256">;
|
|
236
|
-
ttv: string & z.BRAND<"Int256">;
|
|
237
|
-
} | undefined;
|
|
238
|
-
11155111?: {
|
|
239
|
-
holders: string & z.BRAND<"Int256">;
|
|
240
|
-
sales: string & z.BRAND<"Int256">;
|
|
241
|
-
ttv: string & z.BRAND<"Int256">;
|
|
242
|
-
} | undefined;
|
|
243
|
-
72080?: {
|
|
244
|
-
holders: string & z.BRAND<"Int256">;
|
|
245
|
-
sales: string & z.BRAND<"Int256">;
|
|
246
|
-
ttv: string & z.BRAND<"Int256">;
|
|
247
|
-
} | undefined;
|
|
248
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">)>>, import("hono/types").H<AppContext, string, {
|
|
249
|
-
in: {
|
|
250
|
-
json: {
|
|
251
|
-
chainId?: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080" | undefined;
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
out: {
|
|
255
|
-
json: {
|
|
256
|
-
chainId?: 1 | 31337 | 11155111 | 72080 | undefined;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
}, Promise<(Response & import("hono").TypedResponse<{
|
|
260
|
-
[x: number]: {
|
|
261
|
-
holders: string & z.BRAND<"Int256">;
|
|
262
|
-
sales: string & z.BRAND<"Int256">;
|
|
263
|
-
ttv: string & z.BRAND<"Int256">;
|
|
264
|
-
} | undefined;
|
|
265
|
-
total: {
|
|
266
|
-
holders: string & z.BRAND<"Int256">;
|
|
267
|
-
sales: string & z.BRAND<"Int256">;
|
|
268
|
-
ttv: string & z.BRAND<"Int256">;
|
|
269
|
-
};
|
|
270
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
271
|
-
total: {
|
|
272
|
-
holders: string & z.BRAND<"Int256">;
|
|
273
|
-
sales: string & z.BRAND<"Int256">;
|
|
274
|
-
ttv: string & z.BRAND<"Int256">;
|
|
275
|
-
};
|
|
276
|
-
1?: {
|
|
277
|
-
holders: string & z.BRAND<"Int256">;
|
|
278
|
-
sales: string & z.BRAND<"Int256">;
|
|
279
|
-
ttv: string & z.BRAND<"Int256">;
|
|
280
|
-
} | undefined;
|
|
281
|
-
31337?: {
|
|
282
|
-
holders: string & z.BRAND<"Int256">;
|
|
283
|
-
sales: string & z.BRAND<"Int256">;
|
|
284
|
-
ttv: string & z.BRAND<"Int256">;
|
|
285
|
-
} | undefined;
|
|
286
|
-
11155111?: {
|
|
287
|
-
holders: string & z.BRAND<"Int256">;
|
|
288
|
-
sales: string & z.BRAND<"Int256">;
|
|
289
|
-
ttv: string & z.BRAND<"Int256">;
|
|
290
|
-
} | undefined;
|
|
291
|
-
72080?: {
|
|
292
|
-
holders: string & z.BRAND<"Int256">;
|
|
293
|
-
sales: string & z.BRAND<"Int256">;
|
|
294
|
-
ttv: string & z.BRAND<"Int256">;
|
|
295
|
-
} | undefined;
|
|
296
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">)>>];
|
|
297
|
-
//# sourceMappingURL=networkStatistics.route.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"networkStatistics.route.d.ts","sourceRoot":"","sources":["../../../src/v0/fractions/networkStatistics.route.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAMvC,OAAO,EAAE,CAAC,EAAE,MAAM,qBAAqB,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAmIrD;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEA6BxE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEA6BxE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEA6BvD;AA2BD,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sEAgCrE"}
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { Int256Json, toInt256Json } from "@evergonlabs/tmi-utils/models";
|
|
3
|
-
import { FractionsChains } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
5
|
-
import { and, count, countDistinct, eq, sum } from "@ponder/client";
|
|
6
|
-
import { z } from "../../common/zod.js";
|
|
7
|
-
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
8
|
-
import { FractionsChainId } from "../../common/index.js";
|
|
9
|
-
const FractionsStatsRequestSchema = z.object({
|
|
10
|
-
chainId: FractionsChainId.optional().openapi({
|
|
11
|
-
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.`,
|
|
12
|
-
}),
|
|
13
|
-
});
|
|
14
|
-
const FractionStatsByChain = z.intersection(z.object({ total: Int256Json }), z.record(FractionsChainId, Int256Json));
|
|
15
|
-
const FractionChainStats = z.object({
|
|
16
|
-
holders: Int256Json.openapi({
|
|
17
|
-
description: "Number of unique fraction holders",
|
|
18
|
-
}),
|
|
19
|
-
sales: Int256Json.openapi({
|
|
20
|
-
description: "Number of successful (finalized) fraction sales",
|
|
21
|
-
}),
|
|
22
|
-
ttv: Int256Json.openapi({
|
|
23
|
-
description: "Total Tokenized Value as string representation of bigdecimal in USDC (raw units)",
|
|
24
|
-
}),
|
|
25
|
-
});
|
|
26
|
-
/**
|
|
27
|
-
* Combined network statistics response schema
|
|
28
|
-
* Keys can be 'total' or chain IDs (as strings), values are statistics objects
|
|
29
|
-
*/
|
|
30
|
-
const FractionsStatsAllSchema = z
|
|
31
|
-
.intersection(z.object({ total: FractionChainStats }), z.record(FractionsChainId, FractionChainStats))
|
|
32
|
-
.openapi({
|
|
33
|
-
ref: "NetworkStatistics",
|
|
34
|
-
description: `Contains 'total' (when chainId not specified) aggregated statistics and per-chain breakdowns (chain IDs as string keys). When chainId is specified, only that chain's data is returned.`,
|
|
35
|
-
});
|
|
36
|
-
async function fetchPerChainStatistics(c, chainIdFilter) {
|
|
37
|
-
const { fractionsPurchases, fractionsSales } = indexerSchemas.fractions;
|
|
38
|
-
const chainFilter = chainIdFilter ? eq(fractionsSales.chainId, chainIdFilter) : undefined;
|
|
39
|
-
const purchaseChainFilter = chainIdFilter ? eq(fractionsPurchases.chainId, chainIdFilter) : undefined;
|
|
40
|
-
const indexerClient = c.get("indexerClient");
|
|
41
|
-
const [holders, sales, ttv] = await Promise.all([
|
|
42
|
-
// Unique holders from finalized sales, grouped by chain
|
|
43
|
-
indexerClient.db
|
|
44
|
-
.select({
|
|
45
|
-
chainId: fractionsPurchases.chainId,
|
|
46
|
-
holders: countDistinct(fractionsPurchases.buyerAddress),
|
|
47
|
-
})
|
|
48
|
-
.from(fractionsPurchases)
|
|
49
|
-
.innerJoin(fractionsSales, and(eq(fractionsPurchases.chainId, fractionsSales.chainId), eq(fractionsPurchases.diamondAddress, fractionsSales.diamondAddress), eq(fractionsPurchases.saleId, fractionsSales.saleId)))
|
|
50
|
-
.where(chainFilter)
|
|
51
|
-
.groupBy(fractionsPurchases.chainId),
|
|
52
|
-
// Count of finalized sales, grouped by chain
|
|
53
|
-
indexerClient.db
|
|
54
|
-
.select({
|
|
55
|
-
chainId: fractionsSales.chainId,
|
|
56
|
-
sales: count(fractionsSales.saleId),
|
|
57
|
-
})
|
|
58
|
-
.from(fractionsSales)
|
|
59
|
-
.where(chainFilter)
|
|
60
|
-
.groupBy(fractionsSales.chainId),
|
|
61
|
-
// Sum of amountPaid from purchases of finalized sales, grouped by chain
|
|
62
|
-
indexerClient.db
|
|
63
|
-
.select({
|
|
64
|
-
chainId: fractionsPurchases.chainId,
|
|
65
|
-
ttv: sum(fractionsPurchases.usdValue),
|
|
66
|
-
})
|
|
67
|
-
.from(fractionsPurchases)
|
|
68
|
-
.innerJoin(fractionsSales, and(eq(fractionsPurchases.chainId, fractionsSales.chainId), eq(fractionsPurchases.diamondAddress, fractionsSales.diamondAddress), eq(fractionsPurchases.saleId, fractionsSales.saleId)))
|
|
69
|
-
.where(purchaseChainFilter)
|
|
70
|
-
.groupBy(fractionsPurchases.chainId),
|
|
71
|
-
]);
|
|
72
|
-
const val = FractionsChains.chainIds.reduce((prev, curr) => {
|
|
73
|
-
const holdersByChain = holders.find((x) => x.chainId === curr);
|
|
74
|
-
const salesByChain = sales.find((x) => x.chainId === curr);
|
|
75
|
-
const ttvByChain = ttv.find((x) => x.chainId === curr);
|
|
76
|
-
return {
|
|
77
|
-
...prev,
|
|
78
|
-
[curr]: {
|
|
79
|
-
holders: toInt256Json(holdersByChain ? holdersByChain.holders : 0),
|
|
80
|
-
sales: toInt256Json(salesByChain ? salesByChain.sales : 0),
|
|
81
|
-
ttv: toInt256Json(ttvByChain?.ttv ? ttvByChain.ttv : 0),
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
}, {});
|
|
85
|
-
return {
|
|
86
|
-
...val,
|
|
87
|
-
total: FractionsChains.chainIds.reduce((prev, curr) => ({
|
|
88
|
-
holders: toInt256Json(BigInt(prev.holders) + BigInt(val[curr].holders)),
|
|
89
|
-
sales: toInt256Json(BigInt(prev.sales) + BigInt(val[curr].sales)),
|
|
90
|
-
ttv: toInt256Json(BigInt(prev.ttv) + BigInt(val[curr].ttv)),
|
|
91
|
-
}), {
|
|
92
|
-
holders: toInt256Json(0),
|
|
93
|
-
sales: toInt256Json(0),
|
|
94
|
-
ttv: toInt256Json(0),
|
|
95
|
-
}),
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Get the number of unique fraction holders from successful (finalized) sales
|
|
100
|
-
*/
|
|
101
|
-
export function createFractionHoldersCountV0(factory) {
|
|
102
|
-
return factory.createHandlers(describeRoute({
|
|
103
|
-
summary: "Get number of fraction holders",
|
|
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
|
-
tags: ["RWA Statistics"],
|
|
106
|
-
responses: {
|
|
107
|
-
200: {
|
|
108
|
-
description: "Number of unique fraction holders",
|
|
109
|
-
content: {
|
|
110
|
-
"application/json": {
|
|
111
|
-
schema: resolver(FractionStatsByChain.openapi({
|
|
112
|
-
ref: "FractionHoldersCount",
|
|
113
|
-
description: `Contains 'total' (when chainId not specified) and per-chain holder counts (chain IDs as string keys). When chainId is specified, only that chain's data is returned.`,
|
|
114
|
-
})),
|
|
115
|
-
},
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
}), validator("json", FractionsStatsRequestSchema), async (c) => {
|
|
120
|
-
const { chainId } = c.req.valid("json");
|
|
121
|
-
const stats = await fetchPerChainStatistics(c, chainId);
|
|
122
|
-
return c.json(getSingleStats(stats, "holders", chainId));
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Get the number of successful (finalized) fraction sales
|
|
127
|
-
*/
|
|
128
|
-
export function createSuccessfulSalesCountV0(factory) {
|
|
129
|
-
return factory.createHandlers(describeRoute({
|
|
130
|
-
summary: "Get number of successful sales",
|
|
131
|
-
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.`,
|
|
132
|
-
tags: ["RWA Statistics"],
|
|
133
|
-
responses: {
|
|
134
|
-
200: {
|
|
135
|
-
description: "Number of successful fraction sales",
|
|
136
|
-
content: {
|
|
137
|
-
"application/json": {
|
|
138
|
-
schema: resolver(FractionStatsByChain.openapi({
|
|
139
|
-
ref: "SuccessfulSalesCount",
|
|
140
|
-
description: `Contains 'total' (when chainId not specified) and per-chain sales counts (chain IDs as string keys). When chainId is specified, only that chain's data is returned.`,
|
|
141
|
-
})),
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
}), validator("json", FractionsStatsRequestSchema), async (c) => {
|
|
147
|
-
const { chainId } = c.req.valid("json");
|
|
148
|
-
const stats = await fetchPerChainStatistics(c, chainId);
|
|
149
|
-
return c.json(getSingleStats(stats, "sales", chainId));
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Get the Total Tokenized Value (TTV) - sum of all amounts raised by successful sales in USDC
|
|
154
|
-
*/
|
|
155
|
-
export function createTtvV0(factory) {
|
|
156
|
-
return factory.createHandlers(describeRoute({
|
|
157
|
-
summary: "Get Total Tokenized Value (TTV)",
|
|
158
|
-
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.`,
|
|
159
|
-
tags: ["RWA Statistics"],
|
|
160
|
-
responses: {
|
|
161
|
-
200: {
|
|
162
|
-
description: "Total Tokenized Value in USDC",
|
|
163
|
-
content: {
|
|
164
|
-
"application/json": {
|
|
165
|
-
schema: resolver(FractionStatsByChain.openapi({
|
|
166
|
-
ref: "TotalTokenizedValue",
|
|
167
|
-
description: `Contains 'total' (when chainId not specified) and per-chain TTV values as string representations of bigdecimal (chain IDs as string keys). When chainId is specified, only that chain's data is returned.`,
|
|
168
|
-
})),
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
}), validator("json", FractionsStatsRequestSchema), async (c) => {
|
|
174
|
-
const { chainId } = c.req.valid("json");
|
|
175
|
-
const stats = await fetchPerChainStatistics(c, chainId);
|
|
176
|
-
return c.json(getSingleStats(stats, "ttv", chainId));
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
function getSingleStats(stats, key, chainId) {
|
|
180
|
-
if (chainId) {
|
|
181
|
-
const statsByChain = stats[chainId];
|
|
182
|
-
return {
|
|
183
|
-
[chainId]: statsByChain[key],
|
|
184
|
-
total: stats.total[key],
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
return {
|
|
189
|
-
...FractionsChains.chainIds.reduce((prev, curr) => ({
|
|
190
|
-
...prev,
|
|
191
|
-
[curr]: stats[curr][key],
|
|
192
|
-
}), {}),
|
|
193
|
-
total: stats.total[key],
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
export function createNetworkStatisticsV0(factory) {
|
|
198
|
-
return factory.createHandlers(describeRoute({
|
|
199
|
-
summary: "Get all network statistics",
|
|
200
|
-
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.`,
|
|
201
|
-
tags: ["RWA Statistics"],
|
|
202
|
-
responses: {
|
|
203
|
-
200: {
|
|
204
|
-
description: "Network statistics including holders, sales, and TTV",
|
|
205
|
-
content: {
|
|
206
|
-
"application/json": {
|
|
207
|
-
schema: resolver(FractionsStatsAllSchema),
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
}), validator("json", FractionsStatsRequestSchema), async (c) => {
|
|
213
|
-
const { chainId } = c.req.valid("json");
|
|
214
|
-
const stats = await fetchPerChainStatistics(c, chainId);
|
|
215
|
-
if (chainId) {
|
|
216
|
-
return c.json({
|
|
217
|
-
total: stats.total,
|
|
218
|
-
[chainId]: stats[chainId],
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
return c.json(stats);
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
}
|