@evergonlabs/tmi-protocol-api 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +42 -1
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +60 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/common/abis/erc20Whitelisted.d.ts +14 -7
- package/dist/common/abis/erc20Whitelisted.d.ts.map +1 -1
- package/dist/common/abis/erc20Whitelisted.js +8 -3
- package/dist/common/indexer/client.d.ts +140 -0
- package/dist/common/indexer/client.d.ts.map +1 -1
- package/dist/common/indexer/index.d.ts +140 -0
- package/dist/common/indexer/index.d.ts.map +1 -1
- package/dist/common/indexer/schemas.d.ts +70 -0
- package/dist/common/indexer/schemas.d.ts.map +1 -1
- package/dist/fractions/activity/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/activity/searchActivity.route.js +1 -3
- package/dist/fractions/index.d.ts +41 -0
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +4 -0
- package/dist/fractions/purchase/v0/statistics.route.d.ts +65 -0
- package/dist/fractions/purchase/v0/statistics.route.d.ts.map +1 -0
- package/dist/fractions/purchase/v0/statistics.route.js +52 -0
- package/dist/fractions/sales/searchActivity.route.js +2 -2
- package/dist/{src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts → fractions/sales/searchClaim.route.d.ts} +14 -15
- package/dist/fractions/sales/searchClaim.route.d.ts.map +1 -0
- package/dist/fractions/sales/searchClaim.route.js +47 -0
- package/dist/fractions/sales/searchPurchase.route.d.ts +120 -0
- package/dist/fractions/sales/searchPurchase.route.d.ts.map +1 -0
- package/dist/fractions/sales/searchPurchase.route.js +70 -0
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +6 -6
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts +92 -0
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.js +89 -0
- package/dist/general/balanceClient.d.ts +16 -41
- package/dist/general/balanceClient.d.ts.map +1 -1
- package/dist/general/balanceClient.js +8 -19
- package/dist/general/index.d.ts +1 -1
- package/dist/general/searchBalances.d.ts +3 -3
- package/dist/general/searchBalances.js +2 -2
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts +28 -0
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts.map +1 -0
- package/dist/general/utils/tokenBalance/tokenBalance.js +20 -0
- package/package.json +8 -8
- 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/createFractions/v0/parseFractionsCreatedEvent.js +0 -59
- 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.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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fractions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA4FvC,eAAO,MAAM,YAAY;;gBAEX,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB/C,CAAC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { createDeployCompilotMarketTransactionV0, createDeployContinuousWithdrawMarketTransactionV0, createDeployMarketTransactionV0, } from "./deployMarket/v0/deployMarket.routes.js";
|
|
2
|
-
import { createRolesTransactionV0 } from "./grantRole/v0/grantRole.route.js";
|
|
3
|
-
import { createApproveSalesTransactionV0 } from "./approveSale/v0/approveSale.route.js";
|
|
4
|
-
import { createCompleteSalesTransactionV0 } from "./completeSale/v0/completeSale.route.js";
|
|
5
|
-
import { createWithdrawPaymentFromSaleTransactionV0 } from "./withdraw/v0/withdraw.route.js";
|
|
6
|
-
import { createFractionsTransactionV0 } from "./createFractions/v0/createFractions.route.js";
|
|
7
|
-
import { createPurchaseSalesTransactionV0 } from "./purchase/v0/purchase.route.js";
|
|
8
|
-
import { createMarketsApp } from "./markets/index.js";
|
|
9
|
-
import { createGetRolesV0App } from "./roles/getRoles/v0/getRoles.js";
|
|
10
|
-
import { createGetFractionsCreatedEventRoute } from "./createFractions/v0/parseFractionsCreatedEvent.js";
|
|
11
|
-
import { createApproveErc20SpendingToWrapper, createApproveErc721SpendingToWrapper, createApproveWrapperTransactionV0, } from "./approveWrapper/v0/approveWrapper.route.js";
|
|
12
|
-
import { createEditCliffTransactionApp } from "./sales/vesting/v0/editCliff.route.js";
|
|
13
|
-
import { createRejectFractionsTransaction } from "./sales/rejectFractions.js";
|
|
14
|
-
import { createRecoverFractionsTransaction } from "./sales/recoverFractions.js";
|
|
15
|
-
import { createSearchSaleEventsV0App } from "./sales/searchSaleEvents/v0/searchSaleEvents.js";
|
|
16
|
-
import { createClaimVestedTokensTransaction } from "./sales/vesting/v0/claimVestedTokens.route.js";
|
|
17
|
-
import { createSetFeeCapLimitTransactionV0 } from "./sales/setFeeCapLimit.js";
|
|
18
|
-
import { getNonceV0 } from "./gating/v0/getNonce.route.js";
|
|
19
|
-
import { getTxAuthDataV0 } from "./gating/v0/getAuthData.js";
|
|
20
|
-
import { createGetWithdrawEventRoute } from "./sales/getWithdrawEvent.js";
|
|
21
|
-
import { createGetClaimVestedTokensEventRoute } from "./sales/vesting/v0/parseClaimVestedTokensEvent.js";
|
|
22
|
-
import { createUnlockWrappedAssetsTransactionV0 } from "./sales/unlockWrappedAssets.route.js";
|
|
23
|
-
import { createReceiveFundsAfterNonFundedTransaction, createCheckAndJumpToNonFundedTransaction, } from "./sales/receiveFundsAfterNonFunded.route.js";
|
|
24
|
-
import { createReceiveNonPurchasedWrappedAssetsTransaction } from "./sales/receiveNonPurchasedWrappedAssets.route.js";
|
|
25
|
-
import { createGetVaultAddressRoute } from "./sales/getVaultAddress.js";
|
|
26
|
-
function createPlatformsApp(factory) {
|
|
27
|
-
return factory
|
|
28
|
-
.createApp()
|
|
29
|
-
.post("/deploy", ...createDeployMarketTransactionV0(factory))
|
|
30
|
-
.post("/deployNid", ...createDeployCompilotMarketTransactionV0(factory))
|
|
31
|
-
.post("/deployContinuousWithdraw", ...createDeployContinuousWithdrawMarketTransactionV0(factory));
|
|
32
|
-
}
|
|
33
|
-
function createRolesApp(factory) {
|
|
34
|
-
return factory
|
|
35
|
-
.createApp()
|
|
36
|
-
.get("/", ...createGetRolesV0App(factory))
|
|
37
|
-
.post("/grant", ...createRolesTransactionV0(factory));
|
|
38
|
-
}
|
|
39
|
-
function createFractionsApp(factory) {
|
|
40
|
-
return factory
|
|
41
|
-
.createApp()
|
|
42
|
-
.post("/approveWrapper", ...createApproveWrapperTransactionV0(factory))
|
|
43
|
-
.post("/approveWrapperAsErc20Spender", ...createApproveErc20SpendingToWrapper(factory))
|
|
44
|
-
.post("/approveWrapperAsErc721Spender", ...createApproveErc721SpendingToWrapper(factory));
|
|
45
|
-
}
|
|
46
|
-
function createSalesApp(factory) {
|
|
47
|
-
return factory
|
|
48
|
-
.createApp()
|
|
49
|
-
.post("/fractions", ...createFractionsTransactionV0(factory))
|
|
50
|
-
.get("/getFractionsCreatedEvent", ...createGetFractionsCreatedEventRoute(factory))
|
|
51
|
-
.post("/approve", ...createApproveSalesTransactionV0(factory))
|
|
52
|
-
.post("/reject", ...createRejectFractionsTransaction(factory))
|
|
53
|
-
.post("/recover", ...createRecoverFractionsTransaction(factory))
|
|
54
|
-
.post("/complete", ...createCompleteSalesTransactionV0(factory))
|
|
55
|
-
.post("/unlockWrappedAssets", ...createUnlockWrappedAssetsTransactionV0(factory))
|
|
56
|
-
.post("/purchase", ...createPurchaseSalesTransactionV0(factory))
|
|
57
|
-
.post("/withdrawPaymentToken", ...createWithdrawPaymentFromSaleTransactionV0(factory))
|
|
58
|
-
.post("/receiveFundsAfterNonFunded", ...createReceiveFundsAfterNonFundedTransaction(factory))
|
|
59
|
-
.post("/checkAndJumpToNonFunded", ...createCheckAndJumpToNonFundedTransaction(factory))
|
|
60
|
-
.post("/receiveNonPurchasedWrappedAssets", ...createReceiveNonPurchasedWrappedAssetsTransaction(factory))
|
|
61
|
-
.post("/vesting/editCliff", ...createEditCliffTransactionApp(factory))
|
|
62
|
-
.post("/vesting/claim", ...createClaimVestedTokensTransaction(factory))
|
|
63
|
-
.get("/vesting/getClaimVestedTokensEvent", ...createGetClaimVestedTokensEventRoute(factory))
|
|
64
|
-
.post("/search", ...createSearchSaleEventsV0App(factory))
|
|
65
|
-
.post("/setFeeCapLimit", ...createSetFeeCapLimitTransactionV0(factory))
|
|
66
|
-
.get("/getWithdrawEvent", ...createGetWithdrawEventRoute(factory))
|
|
67
|
-
.get("/getVaultAddress", ...createGetVaultAddressRoute(factory));
|
|
68
|
-
}
|
|
69
|
-
function createSignatureApp(factory) {
|
|
70
|
-
return factory
|
|
71
|
-
.createApp()
|
|
72
|
-
.post("/nonce", ...getNonceV0(factory))
|
|
73
|
-
.post("/authData", ...getTxAuthDataV0(factory));
|
|
74
|
-
}
|
|
75
|
-
export const fractionsApi = {
|
|
76
|
-
name: "Fractions API",
|
|
77
|
-
createApp: (factory) => factory
|
|
78
|
-
.createApp()
|
|
79
|
-
.route("/v0/fractions", factory
|
|
80
|
-
.createApp()
|
|
81
|
-
.route("/markets", createMarketsApp(factory))
|
|
82
|
-
.route("/platforms", createPlatformsApp(factory))
|
|
83
|
-
.route("/fractions", createFractionsApp(factory))
|
|
84
|
-
.route("/roles", createRolesApp(factory))
|
|
85
|
-
.route("/sales", createSalesApp(factory))
|
|
86
|
-
.route("/sig", createSignatureApp(factory))),
|
|
87
|
-
config: {
|
|
88
|
-
title: "Fractions API",
|
|
89
|
-
description: "Create and manage fractions of your assets",
|
|
90
|
-
},
|
|
91
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { indexerSchemas } from "../../../common/indexer/schemas.js";
|
|
3
|
-
export declare const PlatformSchema: z.ZodObject<{
|
|
4
|
-
chainId: z.ZodType<import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId, z.ZodTypeDef, import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId>;
|
|
5
|
-
txHash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
-
createdAt: z.ZodString;
|
|
7
|
-
contractAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
8
|
-
adminAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
|
-
updatedAt: z.ZodString;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
12
|
-
txHash: `0x${string}`;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
contractAddress: `0x${string}`;
|
|
15
|
-
adminAddress: `0x${string}`;
|
|
16
|
-
updatedAt: string;
|
|
17
|
-
}, {
|
|
18
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
19
|
-
txHash: `0x${string}`;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
contractAddress: `0x${string}`;
|
|
22
|
-
adminAddress: `0x${string}`;
|
|
23
|
-
updatedAt: string;
|
|
24
|
-
}>;
|
|
25
|
-
export declare function mapToPlatform(diamond: typeof indexerSchemas.diamonds.$inferSelect): z.output<typeof PlatformSchema>;
|
|
26
|
-
//# sourceMappingURL=platform.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/markets/common/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAWvB,CAAC;AAEL,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,cAAc,CAAC,QAAQ,CAAC,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CASnH"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { unixToDate } from "@evergonlabs/tmi-protocol-utils/date";
|
|
3
|
-
import { AddressSchema, HashSchema, TmiChainIdSchema } from "../../../common/index.js";
|
|
4
|
-
import { ISOSchema } from "../../../common/models/date.js";
|
|
5
|
-
export const PlatformSchema = z
|
|
6
|
-
.object({
|
|
7
|
-
chainId: TmiChainIdSchema,
|
|
8
|
-
txHash: HashSchema,
|
|
9
|
-
createdAt: ISOSchema,
|
|
10
|
-
contractAddress: AddressSchema,
|
|
11
|
-
adminAddress: AddressSchema,
|
|
12
|
-
updatedAt: ISOSchema,
|
|
13
|
-
})
|
|
14
|
-
.openapi({
|
|
15
|
-
ref: "Platform",
|
|
16
|
-
});
|
|
17
|
-
export function mapToPlatform(diamond) {
|
|
18
|
-
return {
|
|
19
|
-
chainId: TmiChainIdSchema.parse(diamond.chainId),
|
|
20
|
-
txHash: diamond.txHash,
|
|
21
|
-
contractAddress: diamond.contractAddress,
|
|
22
|
-
adminAddress: diamond.adminAddress,
|
|
23
|
-
createdAt: unixToDate(diamond.createdAt).toISOString(),
|
|
24
|
-
updatedAt: unixToDate(diamond.updatedAt).toISOString(),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createGetMarketDeployEventRoute<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
|
-
diamondAddress: `0x${string}`;
|
|
5
|
-
admin: `0x${string}`;
|
|
6
|
-
wrapperAddress: `0x${string}` | null;
|
|
7
|
-
}, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
8
|
-
in: {
|
|
9
|
-
query: {
|
|
10
|
-
chainId: "11155111" | "31337";
|
|
11
|
-
hash: `0x${string}`;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
out: {
|
|
15
|
-
query: {
|
|
16
|
-
chainId: "11155111" | "31337";
|
|
17
|
-
hash: `0x${string}`;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
21
|
-
diamondAddress: `0x${string}`;
|
|
22
|
-
admin: `0x${string}`;
|
|
23
|
-
wrapperAddress: `0x${string}` | null;
|
|
24
|
-
}, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
25
|
-
in: {
|
|
26
|
-
query: {
|
|
27
|
-
chainId: "11155111" | "31337";
|
|
28
|
-
hash: `0x${string}`;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
out: {
|
|
32
|
-
query: {
|
|
33
|
-
chainId: "11155111" | "31337";
|
|
34
|
-
hash: `0x${string}`;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
38
|
-
diamondAddress: `0x${string}`;
|
|
39
|
-
admin: `0x${string}`;
|
|
40
|
-
wrapperAddress: `0x${string}` | null;
|
|
41
|
-
}, 200, "json">>>];
|
|
42
|
-
//# sourceMappingURL=getDeployEvent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/fractions/markets/getDeployEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAUvC,wBAAgB,+BAA+B,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAoCjF"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
-
import { waitForTransactionReceipt } from "viem/actions";
|
|
4
|
-
import { AddressSchema, SentTransactionParamsSchema } from "../../common/index.js";
|
|
5
|
-
import { getPublicClient } from "../../common/blockchain.js";
|
|
6
|
-
import { HttpError } from "../../common/http-error.js";
|
|
7
|
-
import { z } from "../../common/zod.js";
|
|
8
|
-
import { parseDeployDiamondEvent } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
9
|
-
export function createGetMarketDeployEventRoute(factory) {
|
|
10
|
-
return factory.createHandlers(describeRoute({
|
|
11
|
-
summary: "Get Platform Deploy Event",
|
|
12
|
-
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted with corresponding \`createPlatform\` action`,
|
|
13
|
-
tags: ["Markets"],
|
|
14
|
-
responses: {
|
|
15
|
-
200: {
|
|
16
|
-
description: "Returns parsed event log",
|
|
17
|
-
content: {
|
|
18
|
-
"application/json": {
|
|
19
|
-
schema: resolver(z.object({
|
|
20
|
-
diamondAddress: AddressSchema,
|
|
21
|
-
admin: AddressSchema,
|
|
22
|
-
wrapperAddress: AddressSchema,
|
|
23
|
-
})),
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
}), validator("query", SentTransactionParamsSchema), async (c) => {
|
|
29
|
-
const params = c.req.valid("query");
|
|
30
|
-
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId), {
|
|
31
|
-
hash: params.hash,
|
|
32
|
-
});
|
|
33
|
-
const result = parseDeployDiamondEvent(receipt.logs);
|
|
34
|
-
if (!result) {
|
|
35
|
-
throw new UnableParseMarketDeployEvent();
|
|
36
|
-
}
|
|
37
|
-
return c.json(result, 200);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
class UnableParseMarketDeployEvent extends HttpError {
|
|
41
|
-
constructor() {
|
|
42
|
-
super(500, {
|
|
43
|
-
message: `Can't parse platform deployment transaction. Make sure you're passing transaction that is generated by \`createPlatform\` action`,
|
|
44
|
-
name: "UnableParseMarketDeployEvent",
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Factory } from "hono/factory";
|
|
2
|
-
import { Env } from "hono";
|
|
3
|
-
import { ITag } from "../../../common/tag.js";
|
|
4
|
-
export declare function createGetMarketApp<E extends Env>(factory: Factory<E>, tag: ITag): import("hono/hono-base").HonoBase<E, {
|
|
5
|
-
"/": {
|
|
6
|
-
$get: {
|
|
7
|
-
input: {
|
|
8
|
-
query: {
|
|
9
|
-
address: string | string[];
|
|
10
|
-
chainId: string | string[];
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
output: {
|
|
14
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
15
|
-
txHash: `0x${string}`;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
contractAddress: `0x${string}`;
|
|
18
|
-
adminAddress: `0x${string}`;
|
|
19
|
-
updatedAt: string;
|
|
20
|
-
};
|
|
21
|
-
outputFormat: "json";
|
|
22
|
-
status: 200;
|
|
23
|
-
} | {
|
|
24
|
-
input: {
|
|
25
|
-
query: {
|
|
26
|
-
address: string | string[];
|
|
27
|
-
chainId: string | string[];
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
output: {
|
|
31
|
-
error: string;
|
|
32
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
33
|
-
market: `0x${string}`;
|
|
34
|
-
};
|
|
35
|
-
outputFormat: "json";
|
|
36
|
-
status: 404;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
}, "/">;
|
|
40
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/markets/getMarket/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAE/E"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Factory } from "hono/factory";
|
|
2
|
-
import { Env } from "hono";
|
|
3
|
-
import { ITag } from "../../../../common/tag.js";
|
|
4
|
-
export declare function createGetMarketV0App<E extends Env>(factory: Factory<E>, tag: ITag): [import("hono/types").H<any, string, {}, Promise<(Response & import("hono").TypedResponse<{
|
|
5
|
-
error: string;
|
|
6
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
7
|
-
market: `0x${string}`;
|
|
8
|
-
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
9
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
10
|
-
txHash: `0x${string}`;
|
|
11
|
-
createdAt: string;
|
|
12
|
-
contractAddress: `0x${string}`;
|
|
13
|
-
adminAddress: `0x${string}`;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
}, 200, "json">)>>, import("hono/types").H<Env, string, {
|
|
16
|
-
in: {
|
|
17
|
-
query: {
|
|
18
|
-
address: string | string[];
|
|
19
|
-
chainId: string | string[];
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
out: {
|
|
23
|
-
query: {
|
|
24
|
-
address: `0x${string}`;
|
|
25
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
}, Promise<(Response & import("hono").TypedResponse<{
|
|
29
|
-
error: string;
|
|
30
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
31
|
-
market: `0x${string}`;
|
|
32
|
-
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
33
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
34
|
-
txHash: `0x${string}`;
|
|
35
|
-
createdAt: string;
|
|
36
|
-
contractAddress: `0x${string}`;
|
|
37
|
-
adminAddress: `0x${string}`;
|
|
38
|
-
updatedAt: string;
|
|
39
|
-
}, 200, "json">)>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
40
|
-
in: {
|
|
41
|
-
query: {
|
|
42
|
-
address: string | string[];
|
|
43
|
-
chainId: string | string[];
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
out: {
|
|
47
|
-
query: {
|
|
48
|
-
address: `0x${string}`;
|
|
49
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
}, Promise<(Response & import("hono").TypedResponse<{
|
|
53
|
-
error: string;
|
|
54
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
55
|
-
market: `0x${string}`;
|
|
56
|
-
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
57
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
58
|
-
txHash: `0x${string}`;
|
|
59
|
-
createdAt: string;
|
|
60
|
-
contractAddress: `0x${string}`;
|
|
61
|
-
adminAddress: `0x${string}`;
|
|
62
|
-
updatedAt: string;
|
|
63
|
-
}, 200, "json">)>>];
|
|
64
|
-
//# sourceMappingURL=getMarket.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMarket.d.ts","sourceRoot":"","sources":["../../../../../../src/fractions/markets/getMarket/v0/getMarket.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;AAGjD,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAqEjF"}
|
|
@@ -1,63 +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, TmiChainIdSchema } from "../../../../common/index.js";
|
|
8
|
-
import { PlatformSchema, mapToPlatform } from "../../common/platform.js";
|
|
9
|
-
export function createGetMarketV0App(factory, tag) {
|
|
10
|
-
return factory.createHandlers(describeRoute({
|
|
11
|
-
summary: "Get Market",
|
|
12
|
-
description: "Retrieve details of a specified market",
|
|
13
|
-
tags: [tag.tag],
|
|
14
|
-
responses: {
|
|
15
|
-
200: {
|
|
16
|
-
description: "Platform details",
|
|
17
|
-
content: {
|
|
18
|
-
"application/json": {
|
|
19
|
-
schema: resolver(PlatformSchema),
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
404: {
|
|
24
|
-
description: "No platform found",
|
|
25
|
-
content: {
|
|
26
|
-
"application/json": {
|
|
27
|
-
schema: resolver(ErrorSchema),
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
}), validator("query", z.object({
|
|
33
|
-
chainId: TmiChainIdSchema.openapi({
|
|
34
|
-
param: {
|
|
35
|
-
name: "chainId",
|
|
36
|
-
in: "query",
|
|
37
|
-
},
|
|
38
|
-
}),
|
|
39
|
-
address: PlatformContractAddress.openapi({
|
|
40
|
-
param: {
|
|
41
|
-
name: "address",
|
|
42
|
-
in: "query",
|
|
43
|
-
},
|
|
44
|
-
}),
|
|
45
|
-
})), async (c) => {
|
|
46
|
-
const { chainId, address } = c.req.valid("query");
|
|
47
|
-
const [platform] = await indexerClient.db
|
|
48
|
-
.select()
|
|
49
|
-
.from(indexerSchemas.fractions.fractionsMarkets)
|
|
50
|
-
.limit(1)
|
|
51
|
-
.where(and(eq(indexerSchemas.fractions.fractionsMarkets.chainId, Number(chainId)), eq(indexerSchemas.fractions.fractionsMarkets.contractAddress, address)));
|
|
52
|
-
if (!platform) {
|
|
53
|
-
return c.json({
|
|
54
|
-
error: "Platform not found",
|
|
55
|
-
chainId: chainId,
|
|
56
|
-
market: address,
|
|
57
|
-
}, 404);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return c.json(mapToPlatform(platform), 200);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createMarketsApp<E extends Env>(factory: Factory<E>): import("hono/hono-base").HonoBase<E, (import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
4
|
-
"/": {
|
|
5
|
-
$get: {
|
|
6
|
-
input: {
|
|
7
|
-
query: {
|
|
8
|
-
address: string | string[];
|
|
9
|
-
chainId: string | string[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
output: {
|
|
13
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
14
|
-
txHash: `0x${string}`;
|
|
15
|
-
createdAt: string;
|
|
16
|
-
contractAddress: `0x${string}`;
|
|
17
|
-
adminAddress: `0x${string}`;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
};
|
|
20
|
-
outputFormat: "json";
|
|
21
|
-
status: 200;
|
|
22
|
-
} | {
|
|
23
|
-
input: {
|
|
24
|
-
query: {
|
|
25
|
-
address: string | string[];
|
|
26
|
-
chainId: string | string[];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
output: {
|
|
30
|
-
error: string;
|
|
31
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
32
|
-
market: `0x${string}`;
|
|
33
|
-
};
|
|
34
|
-
outputFormat: "json";
|
|
35
|
-
status: 404;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
}, "/get"> | import("hono/types").MergeSchemaPath<{
|
|
39
|
-
"/": {
|
|
40
|
-
$post: {
|
|
41
|
-
input: {
|
|
42
|
-
json: {
|
|
43
|
-
filter: {
|
|
44
|
-
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
45
|
-
owner?: `0x${string}` | undefined;
|
|
46
|
-
};
|
|
47
|
-
page: {
|
|
48
|
-
skip: number;
|
|
49
|
-
limit: number;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
output: {
|
|
54
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
55
|
-
txHash: `0x${string}`;
|
|
56
|
-
createdAt: string;
|
|
57
|
-
contractAddress: `0x${string}`;
|
|
58
|
-
adminAddress: `0x${string}`;
|
|
59
|
-
updatedAt: string;
|
|
60
|
-
}[];
|
|
61
|
-
outputFormat: "json";
|
|
62
|
-
status: 200;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
}, "/search">) & {
|
|
66
|
-
"/deployEvent": {
|
|
67
|
-
$get: {
|
|
68
|
-
input: {
|
|
69
|
-
query: {
|
|
70
|
-
chainId: "11155111" | "31337";
|
|
71
|
-
hash: `0x${string}`;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
output: {
|
|
75
|
-
diamondAddress: `0x${string}`;
|
|
76
|
-
admin: `0x${string}`;
|
|
77
|
-
wrapperAddress: `0x${string}` | null;
|
|
78
|
-
};
|
|
79
|
-
outputFormat: "json";
|
|
80
|
-
status: 200;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
}, "/">;
|
|
84
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/fractions/markets/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAOlE"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createGetMarketApp } from "./getMarket/index.js";
|
|
2
|
-
import { createSearchMarketsApp } from "./searchMarkets/index.js";
|
|
3
|
-
import { createTag } from "../../common/tag.js";
|
|
4
|
-
import { createGetMarketDeployEventRoute } from "./getDeployEvent.js";
|
|
5
|
-
export function createMarketsApp(factory) {
|
|
6
|
-
const tag = createTag("Markets");
|
|
7
|
-
return factory
|
|
8
|
-
.createApp()
|
|
9
|
-
.route("/get", createGetMarketApp(factory, tag))
|
|
10
|
-
.route("/search", createSearchMarketsApp(factory, tag))
|
|
11
|
-
.get("/deployEvent", ...createGetMarketDeployEventRoute(factory));
|
|
12
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
import { ITag } from "../../../common/tag.js";
|
|
4
|
-
export declare function createSearchMarketsApp<E extends Env>(factory: Factory<E>, tag: ITag): import("hono/hono-base").HonoBase<E, {
|
|
5
|
-
"/": {
|
|
6
|
-
$post: {
|
|
7
|
-
input: {
|
|
8
|
-
json: {
|
|
9
|
-
filter: {
|
|
10
|
-
chainId?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | undefined;
|
|
11
|
-
owner?: `0x${string}` | undefined;
|
|
12
|
-
};
|
|
13
|
-
page: {
|
|
14
|
-
skip: number;
|
|
15
|
-
limit: number;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
output: {
|
|
20
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
21
|
-
txHash: `0x${string}`;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
contractAddress: `0x${string}`;
|
|
24
|
-
adminAddress: `0x${string}`;
|
|
25
|
-
updatedAt: string;
|
|
26
|
-
}[];
|
|
27
|
-
outputFormat: "json";
|
|
28
|
-
status: 200;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
}, "/">;
|
|
32
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/markets/searchMarkets/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,sBAAsB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEnF"}
|
|
@@ -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 createSearchMarketsV0App<E extends Env>(factory: Factory<E>, tag: ITag): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
5
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
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?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | 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?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | 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: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
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?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | 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?: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId | 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: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
70
|
-
txHash: `0x${string}`;
|
|
71
|
-
createdAt: string;
|
|
72
|
-
contractAddress: `0x${string}`;
|
|
73
|
-
adminAddress: `0x${string}`;
|
|
74
|
-
updatedAt: string;
|
|
75
|
-
}[], 200, "json">>>];
|
|
76
|
-
//# sourceMappingURL=searchMarkets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchMarkets.d.ts","sourceRoot":"","sources":["../../../../../../src/fractions/markets/searchMarkets/v0/searchMarkets.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,wBAAwB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgDrF"}
|