@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,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, TmiChainIdSchema } from "../../../../common/index.js";
|
|
8
|
-
import { z } from "../../../../common/zod.js";
|
|
9
|
-
import { PlatformSchema, mapToPlatform } from "../../common/platform.js";
|
|
10
|
-
export function createSearchMarketsV0App(factory, tag) {
|
|
11
|
-
return factory.createHandlers(describeRoute({
|
|
12
|
-
summary: "Search Markets",
|
|
13
|
-
description: "Retrieve a list of markets 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: TmiChainIdSchema.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.fractions.fractionsMarkets)
|
|
36
|
-
.limit(page.limit)
|
|
37
|
-
.offset(page.skip)
|
|
38
|
-
.orderBy(indexerSchemas.fractions.fractionsMarkets.createdAt)
|
|
39
|
-
.where(and(filter.chainId ? eq(indexerSchemas.fractions.fractionsMarkets.chainId, Number(filter.chainId)) : undefined, filter.owner ? eq(indexerSchemas.fractions.fractionsMarkets.adminAddress, filter.owner) : undefined));
|
|
40
|
-
return c.json(result.map((x) => mapToPlatform(x)), 200);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
export declare const PurchaseRequestSchema: z.ZodObject<{
|
|
5
|
-
chainId: z.ZodType<import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId, z.ZodTypeDef, import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId>;
|
|
6
|
-
market: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
7
|
-
campaignId: z.ZodBigInt;
|
|
8
|
-
amountToBuy: z.ZodBigInt;
|
|
9
|
-
applyDiscount: z.ZodBoolean;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
12
|
-
campaignId: bigint;
|
|
13
|
-
market: `0x${string}`;
|
|
14
|
-
amountToBuy: bigint;
|
|
15
|
-
applyDiscount: boolean;
|
|
16
|
-
}, {
|
|
17
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
18
|
-
campaignId: bigint;
|
|
19
|
-
market: `0x${string}`;
|
|
20
|
-
amountToBuy: bigint;
|
|
21
|
-
applyDiscount: boolean;
|
|
22
|
-
}>;
|
|
23
|
-
export declare function createPurchaseSalesTransactionV0<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
24
|
-
data: `0x${string}`;
|
|
25
|
-
to: `0x${string}`;
|
|
26
|
-
details: {
|
|
27
|
-
functionName: string;
|
|
28
|
-
address: `0x${string}`;
|
|
29
|
-
abi: any[];
|
|
30
|
-
args: any[];
|
|
31
|
-
};
|
|
32
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
33
|
-
in: {
|
|
34
|
-
json: {
|
|
35
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
36
|
-
campaignId: bigint;
|
|
37
|
-
market: `0x${string}`;
|
|
38
|
-
amountToBuy: bigint;
|
|
39
|
-
applyDiscount: boolean;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
out: {
|
|
43
|
-
json: {
|
|
44
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
45
|
-
campaignId: bigint;
|
|
46
|
-
market: `0x${string}`;
|
|
47
|
-
amountToBuy: bigint;
|
|
48
|
-
applyDiscount: boolean;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
52
|
-
data: `0x${string}`;
|
|
53
|
-
to: `0x${string}`;
|
|
54
|
-
details: {
|
|
55
|
-
functionName: string;
|
|
56
|
-
address: `0x${string}`;
|
|
57
|
-
abi: any[];
|
|
58
|
-
args: any[];
|
|
59
|
-
};
|
|
60
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
61
|
-
in: {
|
|
62
|
-
json: {
|
|
63
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
64
|
-
campaignId: bigint;
|
|
65
|
-
market: `0x${string}`;
|
|
66
|
-
amountToBuy: bigint;
|
|
67
|
-
applyDiscount: boolean;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
out: {
|
|
71
|
-
json: {
|
|
72
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
73
|
-
campaignId: bigint;
|
|
74
|
-
market: `0x${string}`;
|
|
75
|
-
amountToBuy: bigint;
|
|
76
|
-
applyDiscount: boolean;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
80
|
-
data: `0x${string}`;
|
|
81
|
-
to: `0x${string}`;
|
|
82
|
-
details: {
|
|
83
|
-
functionName: string;
|
|
84
|
-
address: `0x${string}`;
|
|
85
|
-
abi: any[];
|
|
86
|
-
args: any[];
|
|
87
|
-
};
|
|
88
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
89
|
-
//# sourceMappingURL=purchase.route.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.route.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/purchase/v0/purchase.route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAMhC,CAAC;AAkBH,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAiBlF"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
2
|
-
import { describeRoute } from "hono-openapi";
|
|
3
|
-
import { buildPurchaseTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
-
import { TmiChainIdSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import { AddressSchema } from "@evergonlabs/tmi-protocol-types/evm";
|
|
7
|
-
export const PurchaseRequestSchema = z.object({
|
|
8
|
-
chainId: TmiChainIdSchema,
|
|
9
|
-
market: AddressSchema,
|
|
10
|
-
campaignId: z.coerce.bigint(),
|
|
11
|
-
amountToBuy: z.coerce.bigint(),
|
|
12
|
-
applyDiscount: z.boolean(),
|
|
13
|
-
});
|
|
14
|
-
const route = describeRoute({
|
|
15
|
-
summary: "Make a purchase",
|
|
16
|
-
description: "Returns transaction data for making a purchase",
|
|
17
|
-
tags: ["Fractions"],
|
|
18
|
-
responses: {
|
|
19
|
-
200: {
|
|
20
|
-
description: "Returns transaction data for making a purchase",
|
|
21
|
-
content: {
|
|
22
|
-
"application/json": {
|
|
23
|
-
schema: resolver(TransactionSchema),
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
export function createPurchaseSalesTransactionV0(factory) {
|
|
30
|
-
return factory.createHandlers(route, validator("json", PurchaseRequestSchema.openapi({ ref: "PurchaseRequestSchema" })), async (c) => {
|
|
31
|
-
const { chainId, market, campaignId, amountToBuy, applyDiscount } = c.req.valid("json");
|
|
32
|
-
const tx = buildPurchaseTx(chainId, {
|
|
33
|
-
market: market,
|
|
34
|
-
campaignId: campaignId,
|
|
35
|
-
amountToBuy: amountToBuy,
|
|
36
|
-
//todo burn for discount will be changed when multiple discount options becomes available in smart contract
|
|
37
|
-
discount: applyDiscount ? { burnForDiscount: BigInt(1) } : undefined,
|
|
38
|
-
});
|
|
39
|
-
return c.json(toTransaction(tx));
|
|
40
|
-
});
|
|
41
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createGetRolesV0App<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Response & import("hono").TypedResponse<({
|
|
4
|
-
name: string;
|
|
5
|
-
value: `0x${string}`;
|
|
6
|
-
} | {
|
|
7
|
-
name: string;
|
|
8
|
-
value: `0x${string}`;
|
|
9
|
-
} | {
|
|
10
|
-
name: string;
|
|
11
|
-
value: `0x${string}`;
|
|
12
|
-
} | {
|
|
13
|
-
name: string;
|
|
14
|
-
value: `0x${string}`;
|
|
15
|
-
})[], 200, "json">>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {}, Response & import("hono").TypedResponse<({
|
|
16
|
-
name: string;
|
|
17
|
-
value: `0x${string}`;
|
|
18
|
-
} | {
|
|
19
|
-
name: string;
|
|
20
|
-
value: `0x${string}`;
|
|
21
|
-
} | {
|
|
22
|
-
name: string;
|
|
23
|
-
value: `0x${string}`;
|
|
24
|
-
} | {
|
|
25
|
-
name: string;
|
|
26
|
-
value: `0x${string}`;
|
|
27
|
-
})[], 200, "json">>];
|
|
28
|
-
//# sourceMappingURL=getRoles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRoles.d.ts","sourceRoot":"","sources":["../../../../../../src/fractions/roles/getRoles/v0/getRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;qBAmBrE"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver } from "hono-openapi/zod";
|
|
3
|
-
import { z } from "../../../../common/zod.js";
|
|
4
|
-
import { RoleSchema } from "../../../../staking/roles/common/role.js";
|
|
5
|
-
import { FractionsRole, getFractionsRole } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
6
|
-
export function createGetRolesV0App(factory) {
|
|
7
|
-
return factory.createHandlers(describeRoute({
|
|
8
|
-
summary: "Get roles",
|
|
9
|
-
description: "Retrieve all available (pre-defined) roles",
|
|
10
|
-
tags: ["Roles"],
|
|
11
|
-
responses: {
|
|
12
|
-
200: {
|
|
13
|
-
description: "List of available roles",
|
|
14
|
-
content: {
|
|
15
|
-
"application/json": {
|
|
16
|
-
schema: resolver(z.array(RoleSchema)),
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
}), (c) => c.json(allRoles, 200));
|
|
22
|
-
}
|
|
23
|
-
const roleByRole = {
|
|
24
|
-
[FractionsRole.Admin]: {
|
|
25
|
-
name: "Admin",
|
|
26
|
-
value: getFractionsRole(FractionsRole.Admin),
|
|
27
|
-
},
|
|
28
|
-
[FractionsRole.Open]: {
|
|
29
|
-
name: "Open",
|
|
30
|
-
value: getFractionsRole(FractionsRole.Open),
|
|
31
|
-
},
|
|
32
|
-
[FractionsRole.Issuer]: {
|
|
33
|
-
name: "Issuer",
|
|
34
|
-
value: getFractionsRole(FractionsRole.Issuer),
|
|
35
|
-
},
|
|
36
|
-
[FractionsRole.Buyer]: {
|
|
37
|
-
name: "Buyer",
|
|
38
|
-
value: getFractionsRole(FractionsRole.Buyer),
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const allRoles = Object.values(roleByRole);
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createGetVaultAddressRoute<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<(Response & import("hono").TypedResponse<{
|
|
4
|
-
error: string;
|
|
5
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
6
|
-
market: `0x${string}`;
|
|
7
|
-
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
8
|
-
vaultAddress: `0x${string}`;
|
|
9
|
-
}, 200, "json">)>>, import("hono/types").H<Env, string, {
|
|
10
|
-
in: {
|
|
11
|
-
query: {
|
|
12
|
-
chainId: string | string[];
|
|
13
|
-
platform: string | string[];
|
|
14
|
-
campaign: string | string[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
out: {
|
|
18
|
-
query: {
|
|
19
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
20
|
-
platform: `0x${string}`;
|
|
21
|
-
campaign: bigint;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}, Promise<(Response & import("hono").TypedResponse<{
|
|
25
|
-
error: string;
|
|
26
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
27
|
-
market: `0x${string}`;
|
|
28
|
-
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
29
|
-
vaultAddress: `0x${string}`;
|
|
30
|
-
}, 200, "json">)>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
31
|
-
in: {
|
|
32
|
-
query: {
|
|
33
|
-
chainId: string | string[];
|
|
34
|
-
platform: string | string[];
|
|
35
|
-
campaign: string | string[];
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
out: {
|
|
39
|
-
query: {
|
|
40
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
41
|
-
platform: `0x${string}`;
|
|
42
|
-
campaign: bigint;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
}, Promise<(Response & import("hono").TypedResponse<{
|
|
46
|
-
error: string;
|
|
47
|
-
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
48
|
-
market: `0x${string}`;
|
|
49
|
-
}, 404, "json">) | (Response & import("hono").TypedResponse<{
|
|
50
|
-
vaultAddress: `0x${string}`;
|
|
51
|
-
}, 200, "json">)>>];
|
|
52
|
-
//# sourceMappingURL=getVaultAddress.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getVaultAddress.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/getVaultAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAavC,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAsE5E"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { and, eq } from "@ponder/client";
|
|
2
|
-
import { ABIS } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
3
|
-
import { describeRoute } from "hono-openapi";
|
|
4
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
5
|
-
import { readContract } from "viem/actions";
|
|
6
|
-
import { AddressSchema, PlatformContractAddress, TmiChainIdSchema } from "../../common/index.js";
|
|
7
|
-
import { getPublicClient } from "../../common/blockchain.js";
|
|
8
|
-
import { CampaignIdSchema } from "./searchSaleEvents/v0/searchSaleEvents.js";
|
|
9
|
-
import { indexerClient } from "../../common/indexer/index.js";
|
|
10
|
-
import { indexerSchemas } from "../../common/indexer/schemas.js";
|
|
11
|
-
import { z } from "../../common/zod.js";
|
|
12
|
-
export function createGetVaultAddressRoute(factory) {
|
|
13
|
-
return factory.createHandlers(describeRoute({
|
|
14
|
-
summary: "Get Vault address",
|
|
15
|
-
description: "Returns address of sale's vault",
|
|
16
|
-
tags: ["Fractions"],
|
|
17
|
-
responses: {
|
|
18
|
-
200: {
|
|
19
|
-
description: "Returns address of vault",
|
|
20
|
-
content: {
|
|
21
|
-
"application/json": {
|
|
22
|
-
schema: resolver(z.object({ vault: AddressSchema })),
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
}), validator("query", z.object({
|
|
28
|
-
chainId: TmiChainIdSchema,
|
|
29
|
-
platform: PlatformContractAddress,
|
|
30
|
-
campaign: CampaignIdSchema,
|
|
31
|
-
})), async (c) => {
|
|
32
|
-
const params = c.req.valid("query");
|
|
33
|
-
const publicClient = getPublicClient(params.chainId);
|
|
34
|
-
const [platform] = await indexerClient.db
|
|
35
|
-
.select()
|
|
36
|
-
.from(indexerSchemas.fractions.fractionsMarkets)
|
|
37
|
-
.limit(1)
|
|
38
|
-
.where(and(eq(indexerSchemas.fractions.fractionsMarkets.chainId, params.chainId), eq(indexerSchemas.fractions.fractionsMarkets.contractAddress, params.platform)));
|
|
39
|
-
if (!platform) {
|
|
40
|
-
return c.json({
|
|
41
|
-
error: "Platform not found",
|
|
42
|
-
chainId: params.chainId,
|
|
43
|
-
market: params.platform,
|
|
44
|
-
}, 404);
|
|
45
|
-
}
|
|
46
|
-
if (!platform.wrapperAddress) {
|
|
47
|
-
return c.json({
|
|
48
|
-
error: "Platform has no wrapper address",
|
|
49
|
-
chainId: params.chainId,
|
|
50
|
-
market: params.platform,
|
|
51
|
-
}, 404);
|
|
52
|
-
}
|
|
53
|
-
const address = await readContract(publicClient, {
|
|
54
|
-
abi: ABIS.wrapperAbi,
|
|
55
|
-
functionName: "vaults",
|
|
56
|
-
args: [params.campaign],
|
|
57
|
-
address: platform.wrapperAddress,
|
|
58
|
-
});
|
|
59
|
-
return c.json({ vaultAddress: address }, 200);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createGetWithdrawEventRoute<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
|
-
campaignId: string;
|
|
5
|
-
receiver: `0x${string}`;
|
|
6
|
-
packetsReceived: string;
|
|
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
|
-
campaignId: string;
|
|
22
|
-
receiver: `0x${string}`;
|
|
23
|
-
packetsReceived: string;
|
|
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
|
-
campaignId: string;
|
|
39
|
-
receiver: `0x${string}`;
|
|
40
|
-
packetsReceived: string;
|
|
41
|
-
}, 200, "json">>>];
|
|
42
|
-
//# sourceMappingURL=getWithdrawEvent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getWithdrawEvent.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/getWithdrawEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAWvC,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA4C7E"}
|
|
@@ -1,52 +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 { parseWithdrawEvent } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
9
|
-
import { CampaignIdSchema } from "./searchSaleEvents/v0/searchSaleEvents.js";
|
|
10
|
-
export function createGetWithdrawEventRoute(factory) {
|
|
11
|
-
return factory.createHandlers(describeRoute({
|
|
12
|
-
summary: "Get Withdraw Event",
|
|
13
|
-
description: `Gets the transaction by hash and parses emitted logs.`,
|
|
14
|
-
tags: ["Fractions"],
|
|
15
|
-
responses: {
|
|
16
|
-
200: {
|
|
17
|
-
description: "Returns parsed event log",
|
|
18
|
-
content: {
|
|
19
|
-
"application/json": {
|
|
20
|
-
schema: resolver(z.object({
|
|
21
|
-
campaignId: CampaignIdSchema,
|
|
22
|
-
receiver: AddressSchema,
|
|
23
|
-
packetsReceived: z.coerce.bigint(),
|
|
24
|
-
})),
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
}), validator("query", SentTransactionParamsSchema), async (c) => {
|
|
30
|
-
const params = c.req.valid("query");
|
|
31
|
-
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId), {
|
|
32
|
-
hash: params.hash,
|
|
33
|
-
});
|
|
34
|
-
const result = parseWithdrawEvent(receipt.logs);
|
|
35
|
-
if (!result) {
|
|
36
|
-
throw new UnableParseWithdrawEvent();
|
|
37
|
-
}
|
|
38
|
-
return c.json({
|
|
39
|
-
campaignId: result.campaignId.toString(),
|
|
40
|
-
receiver: result.receiver,
|
|
41
|
-
packetsReceived: result.packetsReceived.toString(),
|
|
42
|
-
}, 200);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
class UnableParseWithdrawEvent extends HttpError {
|
|
46
|
-
constructor() {
|
|
47
|
-
super(500, {
|
|
48
|
-
message: `Can't parse withdraw transaction.`,
|
|
49
|
-
name: "UnableParseWithdrawEvent",
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./searchSaleEvents/index.js";
|
|
2
|
-
export * from "./getWithdrawEvent.js";
|
|
3
|
-
export * from "./recoverFractions.js";
|
|
4
|
-
export * from "./rejectFractions.js";
|
|
5
|
-
export * from "./setFeeCapLimit.js";
|
|
6
|
-
export * from "./unlockWrappedAssets.route.js";
|
|
7
|
-
export * from "./receiveNonPurchasedWrappedAssets.route.js";
|
|
8
|
-
export * from "./vesting/index.js";
|
|
9
|
-
export * from "./getVaultAddress.js";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/index.ts"],"names":[],"mappings":"AACA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//export * from "./getSale/index.js";
|
|
2
|
-
export * from "./searchSaleEvents/index.js";
|
|
3
|
-
export * from "./getWithdrawEvent.js";
|
|
4
|
-
export * from "./recoverFractions.js";
|
|
5
|
-
export * from "./rejectFractions.js";
|
|
6
|
-
export * from "./setFeeCapLimit.js";
|
|
7
|
-
export * from "./unlockWrappedAssets.route.js";
|
|
8
|
-
export * from "./receiveNonPurchasedWrappedAssets.route.js";
|
|
9
|
-
export * from "./vesting/index.js";
|
|
10
|
-
export * from "./getVaultAddress.js";
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
export declare const ReceiveFundsAfterNonFundedRequestSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
5
|
-
upperGenesisId: z.ZodOptional<z.ZodBigInt>;
|
|
6
|
-
amountOfFractions: z.ZodBigInt;
|
|
7
|
-
isDiscounted: z.ZodBoolean;
|
|
8
|
-
}, {
|
|
9
|
-
market: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
10
|
-
campaignId: z.ZodBigInt;
|
|
11
|
-
}>, "strip", z.ZodTypeAny, {
|
|
12
|
-
campaignId: bigint;
|
|
13
|
-
market: `0x${string}`;
|
|
14
|
-
amountOfFractions: bigint;
|
|
15
|
-
isDiscounted: boolean;
|
|
16
|
-
upperGenesisId?: bigint | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
campaignId: bigint;
|
|
19
|
-
market: `0x${string}`;
|
|
20
|
-
amountOfFractions: bigint;
|
|
21
|
-
isDiscounted: boolean;
|
|
22
|
-
upperGenesisId?: bigint | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export declare function createReceiveFundsAfterNonFundedTransaction<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
25
|
-
data: `0x${string}`;
|
|
26
|
-
to: `0x${string}`;
|
|
27
|
-
details: {
|
|
28
|
-
functionName: string;
|
|
29
|
-
address: `0x${string}`;
|
|
30
|
-
abi: any[];
|
|
31
|
-
args: any[];
|
|
32
|
-
};
|
|
33
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
34
|
-
in: {
|
|
35
|
-
json: {
|
|
36
|
-
campaignId: bigint;
|
|
37
|
-
market: `0x${string}`;
|
|
38
|
-
amountOfFractions: bigint;
|
|
39
|
-
isDiscounted: boolean;
|
|
40
|
-
upperGenesisId?: bigint | undefined;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
out: {
|
|
44
|
-
json: {
|
|
45
|
-
campaignId: bigint;
|
|
46
|
-
market: `0x${string}`;
|
|
47
|
-
amountOfFractions: bigint;
|
|
48
|
-
isDiscounted: boolean;
|
|
49
|
-
upperGenesisId?: bigint | undefined;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
53
|
-
data: `0x${string}`;
|
|
54
|
-
to: `0x${string}`;
|
|
55
|
-
details: {
|
|
56
|
-
functionName: string;
|
|
57
|
-
address: `0x${string}`;
|
|
58
|
-
abi: any[];
|
|
59
|
-
args: any[];
|
|
60
|
-
};
|
|
61
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
62
|
-
in: {
|
|
63
|
-
json: {
|
|
64
|
-
campaignId: bigint;
|
|
65
|
-
market: `0x${string}`;
|
|
66
|
-
amountOfFractions: bigint;
|
|
67
|
-
isDiscounted: boolean;
|
|
68
|
-
upperGenesisId?: bigint | undefined;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
out: {
|
|
72
|
-
json: {
|
|
73
|
-
campaignId: bigint;
|
|
74
|
-
market: `0x${string}`;
|
|
75
|
-
amountOfFractions: bigint;
|
|
76
|
-
isDiscounted: boolean;
|
|
77
|
-
upperGenesisId?: bigint | undefined;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
81
|
-
data: `0x${string}`;
|
|
82
|
-
to: `0x${string}`;
|
|
83
|
-
details: {
|
|
84
|
-
functionName: string;
|
|
85
|
-
address: `0x${string}`;
|
|
86
|
-
abi: any[];
|
|
87
|
-
args: any[];
|
|
88
|
-
};
|
|
89
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
90
|
-
export declare function createCheckAndJumpToNonFundedTransaction<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
91
|
-
data: `0x${string}`;
|
|
92
|
-
to: `0x${string}`;
|
|
93
|
-
details: {
|
|
94
|
-
functionName: string;
|
|
95
|
-
address: `0x${string}`;
|
|
96
|
-
abi: any[];
|
|
97
|
-
args: any[];
|
|
98
|
-
};
|
|
99
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
100
|
-
in: {
|
|
101
|
-
json: {
|
|
102
|
-
campaignId: bigint;
|
|
103
|
-
market: `0x${string}`;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
out: {
|
|
107
|
-
json: {
|
|
108
|
-
campaignId: bigint;
|
|
109
|
-
market: `0x${string}`;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
113
|
-
data: `0x${string}`;
|
|
114
|
-
to: `0x${string}`;
|
|
115
|
-
details: {
|
|
116
|
-
functionName: string;
|
|
117
|
-
address: `0x${string}`;
|
|
118
|
-
abi: any[];
|
|
119
|
-
args: any[];
|
|
120
|
-
};
|
|
121
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
122
|
-
in: {
|
|
123
|
-
json: {
|
|
124
|
-
campaignId: bigint;
|
|
125
|
-
market: `0x${string}`;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
out: {
|
|
129
|
-
json: {
|
|
130
|
-
campaignId: bigint;
|
|
131
|
-
market: `0x${string}`;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
135
|
-
data: `0x${string}`;
|
|
136
|
-
to: `0x${string}`;
|
|
137
|
-
details: {
|
|
138
|
-
functionName: string;
|
|
139
|
-
address: `0x${string}`;
|
|
140
|
-
abi: any[];
|
|
141
|
-
args: any[];
|
|
142
|
-
};
|
|
143
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
144
|
-
//# sourceMappingURL=receiveFundsAfterNonFunded.route.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"receiveFundsAfterNonFunded.route.d.ts","sourceRoot":"","sources":["../../../../src/fractions/sales/receiveFundsAfterNonFunded.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AASvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;EAMvB,CAAC;AAkB9B,wBAAgB,2CAA2C,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAe7F;AAkBD,wBAAgB,wCAAwC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAM1F"}
|