@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,76 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
import { ITag } from "../../../../common/tag.js";
|
|
4
|
-
export declare function createSearchPlatformsV0App<E extends Env>(factory: Factory<E>, tag: ITag): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
5
|
-
chainId: "11155111" | "31337";
|
|
6
|
-
txHash: `0x${string}`;
|
|
7
|
-
createdAt: string;
|
|
8
|
-
contractAddress: `0x${string}`;
|
|
9
|
-
adminAddress: `0x${string}`;
|
|
10
|
-
updatedAt: string;
|
|
11
|
-
}[], 200, "json">>>, import("hono/types").H<Env, string, {
|
|
12
|
-
in: {
|
|
13
|
-
json: {
|
|
14
|
-
filter: {
|
|
15
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
16
|
-
owner?: `0x${string}` | undefined;
|
|
17
|
-
};
|
|
18
|
-
page: {
|
|
19
|
-
skip: number;
|
|
20
|
-
limit: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
out: {
|
|
25
|
-
json: {
|
|
26
|
-
filter: {
|
|
27
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
28
|
-
owner?: `0x${string}` | undefined;
|
|
29
|
-
};
|
|
30
|
-
page: {
|
|
31
|
-
skip: number;
|
|
32
|
-
limit: number;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
37
|
-
chainId: "11155111" | "31337";
|
|
38
|
-
txHash: `0x${string}`;
|
|
39
|
-
createdAt: string;
|
|
40
|
-
contractAddress: `0x${string}`;
|
|
41
|
-
adminAddress: `0x${string}`;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
}[], 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
44
|
-
in: {
|
|
45
|
-
json: {
|
|
46
|
-
filter: {
|
|
47
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
48
|
-
owner?: `0x${string}` | undefined;
|
|
49
|
-
};
|
|
50
|
-
page: {
|
|
51
|
-
skip: number;
|
|
52
|
-
limit: number;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
out: {
|
|
57
|
-
json: {
|
|
58
|
-
filter: {
|
|
59
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
60
|
-
owner?: `0x${string}` | undefined;
|
|
61
|
-
};
|
|
62
|
-
page: {
|
|
63
|
-
skip: number;
|
|
64
|
-
limit: number;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
69
|
-
chainId: "11155111" | "31337";
|
|
70
|
-
txHash: `0x${string}`;
|
|
71
|
-
createdAt: string;
|
|
72
|
-
contractAddress: `0x${string}`;
|
|
73
|
-
adminAddress: `0x${string}`;
|
|
74
|
-
updatedAt: string;
|
|
75
|
-
}[], 200, "json">>>];
|
|
76
|
-
//# sourceMappingURL=searchPlatforms.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchPlatforms.d.ts","sourceRoot":"","sources":["../../../../../../src/staking/platforms/searchPlatforms/v0/searchPlatforms.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AASvC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgDvF"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
-
import { and, eq } from "@ponder/client";
|
|
4
|
-
import { indexerClient } from "../../../../common/indexer/index.js";
|
|
5
|
-
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
6
|
-
import { PageSchema } from "../../../../common/models/page.js";
|
|
7
|
-
import { AddressSchema, StakingChainId } from "../../../../common/index.js";
|
|
8
|
-
import { z } from "../../../../common/zod.js";
|
|
9
|
-
import { PlatformSchema, mapToPlatform } from "../../common/platform.js";
|
|
10
|
-
export function createSearchPlatformsV0App(factory, tag) {
|
|
11
|
-
return factory.createHandlers(describeRoute({
|
|
12
|
-
summary: "Search Platforms",
|
|
13
|
-
description: "Retrieve a list of platforms with filtering and sorting",
|
|
14
|
-
tags: [tag.tag],
|
|
15
|
-
responses: {
|
|
16
|
-
200: {
|
|
17
|
-
description: "Returns list of platforms by specified filter",
|
|
18
|
-
content: {
|
|
19
|
-
"application/json": {
|
|
20
|
-
schema: resolver(z.array(PlatformSchema)),
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
}), validator("json", z.object({
|
|
26
|
-
page: PageSchema,
|
|
27
|
-
filter: z.object({
|
|
28
|
-
chainId: StakingChainId.optional(),
|
|
29
|
-
owner: AddressSchema.optional(),
|
|
30
|
-
}),
|
|
31
|
-
})), async (c) => {
|
|
32
|
-
const { page, filter } = c.req.valid("json");
|
|
33
|
-
const result = await indexerClient.db
|
|
34
|
-
.select()
|
|
35
|
-
.from(indexerSchemas.diamonds)
|
|
36
|
-
.limit(page.limit)
|
|
37
|
-
.offset(page.skip)
|
|
38
|
-
.orderBy(indexerSchemas.diamonds.createdAt)
|
|
39
|
-
.where(and(filter.chainId ? eq(indexerSchemas.diamonds.chainId, Number(filter.chainId)) : undefined, filter.owner ? eq(indexerSchemas.diamonds.adminAddress, filter.owner) : undefined));
|
|
40
|
-
return c.json(result.map((x) => mapToPlatform(x)), 200);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from "../../../common/zod.js";
|
|
2
|
-
import { indexerSchemas } from "../../../common/indexer/schemas.js";
|
|
3
|
-
export declare const PoolSchema: z.ZodObject<{
|
|
4
|
-
chainId: z.ZodType<"11155111" | "31337", z.ZodTypeDef, "11155111" | "31337">;
|
|
5
|
-
platform: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
-
rewardsHandler: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
7
|
-
assetHandler: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
8
|
-
txHash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
|
-
poolId: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
10
|
-
createdAt: z.ZodString;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
chainId: "11155111" | "31337";
|
|
13
|
-
platform: `0x${string}`;
|
|
14
|
-
poolId: bigint;
|
|
15
|
-
rewardsHandler: `0x${string}`;
|
|
16
|
-
txHash: `0x${string}`;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
assetHandler: `0x${string}`;
|
|
19
|
-
}, {
|
|
20
|
-
chainId: "11155111" | "31337";
|
|
21
|
-
platform: `0x${string}`;
|
|
22
|
-
poolId: string | number | bigint;
|
|
23
|
-
rewardsHandler: `0x${string}`;
|
|
24
|
-
txHash: `0x${string}`;
|
|
25
|
-
createdAt: string;
|
|
26
|
-
assetHandler: `0x${string}`;
|
|
27
|
-
}>;
|
|
28
|
-
export declare function mapToPool(raw: typeof indexerSchemas.pools.$inferSelect): z.output<typeof PoolSchema>;
|
|
29
|
-
//# sourceMappingURL=pool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../../../../src/staking/pools/common/pool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAS3C,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEpE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;EAYnB,CAAC;AAEL,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,cAAc,CAAC,KAAK,CAAC,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAUpG"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { unixToDate } from "@evergonlabs/tmi-protocol-utils/date";
|
|
2
|
-
import { z } from "../../../common/zod.js";
|
|
3
|
-
import { ISOSchema } from "../../../common/models/date.js";
|
|
4
|
-
import { AddressSchema, HashSchema, PlatformContractAddress, PoolIdSchema, StakingChainId, } from "../../../common/index.js";
|
|
5
|
-
export const PoolSchema = z
|
|
6
|
-
.object({
|
|
7
|
-
chainId: StakingChainId,
|
|
8
|
-
platform: PlatformContractAddress,
|
|
9
|
-
rewardsHandler: AddressSchema,
|
|
10
|
-
assetHandler: AddressSchema,
|
|
11
|
-
txHash: HashSchema,
|
|
12
|
-
poolId: PoolIdSchema,
|
|
13
|
-
createdAt: ISOSchema,
|
|
14
|
-
})
|
|
15
|
-
.openapi({
|
|
16
|
-
ref: "Pool",
|
|
17
|
-
});
|
|
18
|
-
export function mapToPool(raw) {
|
|
19
|
-
return {
|
|
20
|
-
chainId: StakingChainId.parse(raw.chainId),
|
|
21
|
-
platform: raw.diamondAddress,
|
|
22
|
-
rewardsHandler: raw.rewardsHandler,
|
|
23
|
-
assetHandler: raw.assetsHandler,
|
|
24
|
-
txHash: raw.txHash,
|
|
25
|
-
poolId: raw.poolId,
|
|
26
|
-
createdAt: unixToDate(raw.createdAt).toISOString(),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CustomError } from "@evergonlabs/tmi-utils/errors";
|
|
2
|
-
import { Address } from "viem";
|
|
3
|
-
export declare class PoolNotFoundError extends CustomError<{
|
|
4
|
-
chainId: string;
|
|
5
|
-
platform: Address;
|
|
6
|
-
poolId: string;
|
|
7
|
-
}> {
|
|
8
|
-
constructor(chainId: string, poolId: string, platform: Address);
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=poolNotFound.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"poolNotFound.d.ts","sourceRoot":"","sources":["../../../../../src/staking/pools/common/poolNotFound.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,qBAAa,iBAAkB,SAAQ,WAAW,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;gBACY,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;CAW/D"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CustomError } from "@evergonlabs/tmi-utils/errors";
|
|
2
|
-
export class PoolNotFoundError extends CustomError {
|
|
3
|
-
constructor(chainId, poolId, platform) {
|
|
4
|
-
super({
|
|
5
|
-
name: "PoolNotFoundError",
|
|
6
|
-
message: `Pool with id ${poolId} in ${platform} platform is not found (chainId ${chainId})`,
|
|
7
|
-
data: {
|
|
8
|
-
chainId: chainId,
|
|
9
|
-
platform: platform,
|
|
10
|
-
poolId: poolId,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
import { ITag } from "../../../common/tag.js";
|
|
4
|
-
export declare function createGetPoolApp<E extends Env>(factory: Factory<E>, tag: ITag): import("hono/hono-base").HonoBase<E, {
|
|
5
|
-
"/v0": {
|
|
6
|
-
$get: {
|
|
7
|
-
input: {
|
|
8
|
-
query: {
|
|
9
|
-
chainId: string | string[];
|
|
10
|
-
platform: string | string[];
|
|
11
|
-
poolId: string | string[];
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
output: never;
|
|
15
|
-
outputFormat: "json";
|
|
16
|
-
status: 200;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}, "/">;
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/staking/pools/getPool/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;QAE7E"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Factory } from "hono/factory";
|
|
2
|
-
import { Env } from "hono";
|
|
3
|
-
import { ITag } from "../../../../common/tag.js";
|
|
4
|
-
export declare function createGetPoolV0App<E extends Env>(factory: Factory<E>, tag: ITag): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
5
|
-
in: {
|
|
6
|
-
query: {
|
|
7
|
-
chainId: string | string[];
|
|
8
|
-
platform: string | string[];
|
|
9
|
-
poolId: string | string[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
out: {
|
|
13
|
-
query: {
|
|
14
|
-
chainId: "11155111" | "31337";
|
|
15
|
-
platform: `0x${string}`;
|
|
16
|
-
poolId: bigint;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
20
|
-
in: {
|
|
21
|
-
query: {
|
|
22
|
-
chainId: string | string[];
|
|
23
|
-
platform: string | string[];
|
|
24
|
-
poolId: string | string[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
out: {
|
|
28
|
-
query: {
|
|
29
|
-
chainId: "11155111" | "31337";
|
|
30
|
-
platform: `0x${string}`;
|
|
31
|
-
poolId: bigint;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>];
|
|
35
|
-
//# sourceMappingURL=getPool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPool.d.ts","sourceRoot":"","sources":["../../../../../../src/staking/pools/getPool/v0/getPool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAK3B,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAIjD,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAqE/E"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { and, eq } from "@ponder/client";
|
|
2
|
-
import { describeRoute } from "hono-openapi";
|
|
3
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
4
|
-
import { indexerClient } from "../../../../common/indexer/index.js";
|
|
5
|
-
import { z } from "../../../../common/zod.js";
|
|
6
|
-
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
7
|
-
import { ErrorSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../../../common/index.js";
|
|
8
|
-
import { mapToPool, PoolSchema } from "../../common/pool.js";
|
|
9
|
-
import { PoolNotFoundError } from "../../common/poolNotFound.js";
|
|
10
|
-
export function createGetPoolV0App(factory, tag) {
|
|
11
|
-
return factory.createHandlers(describeRoute({
|
|
12
|
-
summary: "Get Pool",
|
|
13
|
-
description: "Retrieve details of a specified pool",
|
|
14
|
-
tags: [tag.tag],
|
|
15
|
-
responses: {
|
|
16
|
-
200: {
|
|
17
|
-
description: "List platforms",
|
|
18
|
-
content: {
|
|
19
|
-
"application/json": {
|
|
20
|
-
schema: resolver(PoolSchema),
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
404: {
|
|
25
|
-
description: "No pool found",
|
|
26
|
-
content: {
|
|
27
|
-
"application/json": {
|
|
28
|
-
schema: resolver(ErrorSchema),
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
}), validator("query", z.object({
|
|
34
|
-
chainId: StakingChainId.openapi({
|
|
35
|
-
param: {
|
|
36
|
-
name: "chainId",
|
|
37
|
-
in: "query",
|
|
38
|
-
},
|
|
39
|
-
}),
|
|
40
|
-
poolId: PoolIdSchema.openapi({
|
|
41
|
-
param: {
|
|
42
|
-
name: "poolId",
|
|
43
|
-
in: "query",
|
|
44
|
-
},
|
|
45
|
-
}),
|
|
46
|
-
platform: PlatformContractAddress.openapi({
|
|
47
|
-
param: {
|
|
48
|
-
name: "platform",
|
|
49
|
-
in: "query",
|
|
50
|
-
},
|
|
51
|
-
}),
|
|
52
|
-
})), async (c) => {
|
|
53
|
-
const { chainId, platform, poolId } = c.req.valid("query");
|
|
54
|
-
const [pool] = await indexerClient.db
|
|
55
|
-
.select()
|
|
56
|
-
.from(indexerSchemas.pools)
|
|
57
|
-
.limit(1)
|
|
58
|
-
.where(and(eq(indexerSchemas.pools.chainId, Number(chainId)), eq(indexerSchemas.pools.diamondAddress, platform), eq(indexerSchemas.pools.poolId, poolId)));
|
|
59
|
-
if (!pool) {
|
|
60
|
-
throw new PoolNotFoundError(chainId, poolId.toString(), platform);
|
|
61
|
-
}
|
|
62
|
-
return c.json(mapToPool(pool), 200);
|
|
63
|
-
});
|
|
64
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createPoolsApp<E extends Env>(factory: Factory<E>): import("hono/hono-base").HonoBase<E, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
4
|
-
"/v0": {
|
|
5
|
-
$post: {
|
|
6
|
-
input: {
|
|
7
|
-
json: {
|
|
8
|
-
filter: {
|
|
9
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
10
|
-
platform?: `0x${string}` | undefined;
|
|
11
|
-
};
|
|
12
|
-
page: {
|
|
13
|
-
skip: number;
|
|
14
|
-
limit: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
output: never;
|
|
19
|
-
outputFormat: "json";
|
|
20
|
-
status: 200;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}, "/searchPools"> | import("hono/types").MergeSchemaPath<{
|
|
24
|
-
"/v0": {
|
|
25
|
-
$get: {
|
|
26
|
-
input: {
|
|
27
|
-
query: {
|
|
28
|
-
chainId: string | string[];
|
|
29
|
-
platform: string | string[];
|
|
30
|
-
poolId: string | string[];
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
output: never;
|
|
34
|
-
outputFormat: "json";
|
|
35
|
-
status: 200;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
}, "/getPool">, "/">;
|
|
39
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/staking/pools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,wBAAgB,cAAc,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMhE"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createTag } from "../../common/tag.js";
|
|
2
|
-
import { createSearchPoolsApp } from "./searchPools/index.js";
|
|
3
|
-
import { createGetPoolApp } from "./getPool/index.js";
|
|
4
|
-
export function createPoolsApp(factory) {
|
|
5
|
-
const tag = createTag("Pools");
|
|
6
|
-
return factory
|
|
7
|
-
.createApp()
|
|
8
|
-
.route("/searchPools", createSearchPoolsApp(factory, tag))
|
|
9
|
-
.route("/getPool", createGetPoolApp(factory, tag));
|
|
10
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
import { ITag } from "../../../common/tag.js";
|
|
4
|
-
export declare function createSearchPoolsApp<E extends Env>(factory: Factory<E>, tag: ITag): import("hono/hono-base").HonoBase<E, {
|
|
5
|
-
"/v0": {
|
|
6
|
-
$post: {
|
|
7
|
-
input: {
|
|
8
|
-
json: {
|
|
9
|
-
filter: {
|
|
10
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
11
|
-
platform?: `0x${string}` | undefined;
|
|
12
|
-
};
|
|
13
|
-
page: {
|
|
14
|
-
skip: number;
|
|
15
|
-
limit: number;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
output: never;
|
|
20
|
-
outputFormat: "json";
|
|
21
|
-
status: 200;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}, "/">;
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/staking/pools/searchPools/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;QAEjF"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
import { ITag } from "../../../../common/tag.js";
|
|
4
|
-
export declare function createSearchPoolsV0App<E extends Env>(factory: Factory<E>, tag: ITag): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
5
|
-
in: {
|
|
6
|
-
json: {
|
|
7
|
-
filter: {
|
|
8
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
9
|
-
platform?: `0x${string}` | undefined;
|
|
10
|
-
};
|
|
11
|
-
page: {
|
|
12
|
-
skip: number;
|
|
13
|
-
limit: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
out: {
|
|
18
|
-
json: {
|
|
19
|
-
filter: {
|
|
20
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
21
|
-
platform?: `0x${string}` | undefined;
|
|
22
|
-
};
|
|
23
|
-
page: {
|
|
24
|
-
skip: number;
|
|
25
|
-
limit: number;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
30
|
-
in: {
|
|
31
|
-
json: {
|
|
32
|
-
filter: {
|
|
33
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
34
|
-
platform?: `0x${string}` | undefined;
|
|
35
|
-
};
|
|
36
|
-
page: {
|
|
37
|
-
skip: number;
|
|
38
|
-
limit: number;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
out: {
|
|
43
|
-
json: {
|
|
44
|
-
filter: {
|
|
45
|
-
chainId?: "11155111" | "31337" | undefined;
|
|
46
|
-
platform?: `0x${string}` | undefined;
|
|
47
|
-
};
|
|
48
|
-
page: {
|
|
49
|
-
skip: number;
|
|
50
|
-
limit: number;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>];
|
|
55
|
-
//# sourceMappingURL=searchPools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchPools.d.ts","sourceRoot":"","sources":["../../../../../../src/staking/pools/searchPools/v0/searchPools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AASvC,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAgDnF"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
-
import { and, eq } from "@ponder/client";
|
|
4
|
-
import { indexerClient } from "../../../../common/indexer/index.js";
|
|
5
|
-
import { indexerSchemas } from "../../../../common/indexer/schemas.js";
|
|
6
|
-
import { PageSchema } from "../../../../common/models/page.js";
|
|
7
|
-
import { PlatformContractAddress, StakingChainId } from "../../../../common/index.js";
|
|
8
|
-
import { z } from "../../../../common/zod.js";
|
|
9
|
-
import { mapToPool, PoolSchema } from "../../common/pool.js";
|
|
10
|
-
export function createSearchPoolsV0App(factory, tag) {
|
|
11
|
-
return factory.createHandlers(describeRoute({
|
|
12
|
-
summary: "Search Pools",
|
|
13
|
-
description: "Retrieve a list of pools with filtering and sorting",
|
|
14
|
-
tags: [tag.tag],
|
|
15
|
-
responses: {
|
|
16
|
-
200: {
|
|
17
|
-
description: "Returns list of pools by specified filter",
|
|
18
|
-
content: {
|
|
19
|
-
"application/json": {
|
|
20
|
-
schema: resolver(z.array(PoolSchema)),
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
}), validator("json", z.object({
|
|
26
|
-
page: PageSchema,
|
|
27
|
-
filter: z.object({
|
|
28
|
-
chainId: StakingChainId.optional(),
|
|
29
|
-
platform: PlatformContractAddress.optional(),
|
|
30
|
-
}),
|
|
31
|
-
})), async (c) => {
|
|
32
|
-
const { page, filter } = c.req.valid("json");
|
|
33
|
-
const result = await indexerClient.db
|
|
34
|
-
.select()
|
|
35
|
-
.from(indexerSchemas.pools)
|
|
36
|
-
.limit(page.limit)
|
|
37
|
-
.offset(page.skip)
|
|
38
|
-
.orderBy(indexerSchemas.pools.createdAt)
|
|
39
|
-
.where(and(filter.chainId ? eq(indexerSchemas.pools.chainId, Number(filter.chainId)) : undefined, filter.platform ? eq(indexerSchemas.pools.diamondAddress, filter.platform) : undefined));
|
|
40
|
-
return c.json(result.map((x) => mapToPool(x)), 200);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from "../../../common/zod.js";
|
|
2
|
-
export declare const RoleIdSchema: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
3
|
-
export declare const RoleSchema: z.ZodObject<{
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
value: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
value: `0x${string}`;
|
|
8
|
-
name: string;
|
|
9
|
-
}, {
|
|
10
|
-
value: `0x${string}`;
|
|
11
|
-
name: string;
|
|
12
|
-
}>;
|
|
13
|
-
//# sourceMappingURL=role.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../../../src/staking/roles/common/role.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAE3C,eAAO,MAAM,YAAY,uDAGvB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;EAUnB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { getStakingRole, StakingRole } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
2
|
-
import { HexStringSchema } from "../../../common/index.js";
|
|
3
|
-
import { z } from "../../../common/zod.js";
|
|
4
|
-
export const RoleIdSchema = HexStringSchema.openapi({
|
|
5
|
-
description: "Hexademical identifier of role",
|
|
6
|
-
example: getStakingRole(StakingRole.Staker),
|
|
7
|
-
});
|
|
8
|
-
export const RoleSchema = z
|
|
9
|
-
.object({
|
|
10
|
-
name: z.string().openapi({
|
|
11
|
-
description: "User-friendly display name of a role",
|
|
12
|
-
example: "Admin",
|
|
13
|
-
}),
|
|
14
|
-
value: RoleIdSchema,
|
|
15
|
-
})
|
|
16
|
-
.openapi({
|
|
17
|
-
ref: "Role",
|
|
18
|
-
});
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z } from "../../../common/zod.js";
|
|
2
|
-
export declare const RoleAssignmentSchema: z.ZodObject<{
|
|
3
|
-
chainId: z.ZodType<"11155111" | "31337", z.ZodTypeDef, "11155111" | "31337">;
|
|
4
|
-
platform: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
5
|
-
roleId: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
-
poolId: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>>;
|
|
7
|
-
owner: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
8
|
-
createdAt: z.ZodString;
|
|
9
|
-
updatedAt: z.ZodString;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
chainId: "11155111" | "31337";
|
|
12
|
-
platform: `0x${string}`;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
roleId: `0x${string}`;
|
|
16
|
-
owner: `0x${string}`;
|
|
17
|
-
poolId?: bigint | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
chainId: "11155111" | "31337";
|
|
20
|
-
platform: `0x${string}`;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
updatedAt: string;
|
|
23
|
-
roleId: `0x${string}`;
|
|
24
|
-
owner: `0x${string}`;
|
|
25
|
-
poolId?: string | number | bigint | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
//# sourceMappingURL=roleAssignment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roleAssignment.d.ts","sourceRoot":"","sources":["../../../../../src/staking/roles/common/roleAssignment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAI3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;EAgB7B,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ISOSchema } from "../../../common/models/date.js";
|
|
2
|
-
import { z } from "../../../common/zod.js";
|
|
3
|
-
import { AddressSchema, PlatformContractAddress, PoolIdSchema, StakingChainId } from "../../../common/index.js";
|
|
4
|
-
import { RoleIdSchema } from "./role.js";
|
|
5
|
-
export const RoleAssignmentSchema = z
|
|
6
|
-
.object({
|
|
7
|
-
chainId: StakingChainId,
|
|
8
|
-
platform: PlatformContractAddress,
|
|
9
|
-
roleId: RoleIdSchema,
|
|
10
|
-
poolId: PoolIdSchema.optional().openapi({
|
|
11
|
-
description: "If empty or 0 then it's platform-wide",
|
|
12
|
-
}),
|
|
13
|
-
owner: AddressSchema.openapi({
|
|
14
|
-
description: "Address role assigned to",
|
|
15
|
-
}),
|
|
16
|
-
createdAt: ISOSchema,
|
|
17
|
-
updatedAt: ISOSchema,
|
|
18
|
-
})
|
|
19
|
-
.openapi({
|
|
20
|
-
ref: "RoleAssignment",
|
|
21
|
-
});
|