@evergonlabs/tmi-protocol-api 0.1.3 → 0.1.5
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 +31 -3
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +41 -3
- 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 +45 -9
- package/dist/fractions/activity/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/activity/searchActivity.route.js +1 -3
- package/dist/fractions/activity/utils.d.ts +91 -15
- package/dist/fractions/activity/utils.d.ts.map +1 -1
- package/dist/fractions/activity/utils.js +12 -3
- package/dist/fractions/index.d.ts +31 -3
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +2 -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 +21 -5
- package/dist/general/balanceClient.d.ts.map +1 -1
- package/dist/general/balanceClient.js +7 -1
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts +19 -3
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts.map +1 -1
- package/dist/general/utils/tokenBalance/tokenBalance.js +8 -3
- package/package.json +7 -7
- 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":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/common/indexer/schemas.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { diamonds, fractionEvents, fractionsMarkets, pools, poolsRelations, roleEvents, roles, stakeEvents, stakes, } from "@evergonlabs/tmi-protocol-indexer/schema";
|
|
2
|
-
export const indexerSchemas = {
|
|
3
|
-
pools: pools,
|
|
4
|
-
poolsRelations: poolsRelations,
|
|
5
|
-
diamonds: diamonds,
|
|
6
|
-
roles: roles,
|
|
7
|
-
roleEvents: roleEvents,
|
|
8
|
-
stakes: stakes,
|
|
9
|
-
stakeEvents: stakeEvents,
|
|
10
|
-
fractions: {
|
|
11
|
-
fractionsMarkets: fractionsMarkets,
|
|
12
|
-
fractionEvents: fractionEvents,
|
|
13
|
-
},
|
|
14
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { z } from "../zod.js";
|
|
2
|
-
import { TmiChainId } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
3
|
-
export declare const StakingChainId: z.ZodType<"11155111" | "31337", z.ZodTypeDef, "11155111" | "31337">;
|
|
4
|
-
export declare const TmiChainIdSchema: z.ZodType<TmiChainId, z.ZodTypeDef, TmiChainId>;
|
|
5
|
-
//# sourceMappingURL=chainId.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chainId.d.ts","sourceRoot":"","sources":["../../../../src/common/models/chainId.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAC9B,OAAO,EAAE,UAAU,EAA6B,MAAM,yCAAyC,CAAC;AAEhG,eAAO,MAAM,cAAc,qEASvB,CAAC;AAEL,eAAO,MAAM,gBAAgB,iDASzB,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { isSupportedChainId, supportedChains } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
2
|
-
import { z } from "../zod.js";
|
|
3
|
-
import { isTmiChainId, tmiChainIds } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
-
export const StakingChainId = z
|
|
5
|
-
.custom((x) => isSupportedChainId(x), {
|
|
6
|
-
message: "Unsupported chain id",
|
|
7
|
-
})
|
|
8
|
-
.openapi({
|
|
9
|
-
type: "string",
|
|
10
|
-
enum: supportedChains.map((x) => x.toString()),
|
|
11
|
-
description: "Supported chain id",
|
|
12
|
-
example: "11155111",
|
|
13
|
-
});
|
|
14
|
-
export const TmiChainIdSchema = z
|
|
15
|
-
.custom((x) => isTmiChainId(x), {
|
|
16
|
-
message: "Unsupported chain id",
|
|
17
|
-
})
|
|
18
|
-
.openapi({
|
|
19
|
-
type: "string",
|
|
20
|
-
enum: tmiChainIds.map((x) => BigInt(x).toString()),
|
|
21
|
-
description: "Supported chain id",
|
|
22
|
-
example: 11155111,
|
|
23
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../src/common/models/date.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,eAAO,MAAM,SAAS,aAGpB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from "../zod.js";
|
|
2
|
-
export declare const Erc721Schema: z.ZodObject<{
|
|
3
|
-
symbol: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
baseUri: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, string, string>]>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
symbol: string;
|
|
8
|
-
name: string;
|
|
9
|
-
baseUri: string;
|
|
10
|
-
}, {
|
|
11
|
-
symbol: string;
|
|
12
|
-
name: string;
|
|
13
|
-
baseUri: string;
|
|
14
|
-
}>;
|
|
15
|
-
//# sourceMappingURL=erc721.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"erc721.d.ts","sourceRoot":"","sources":["../../../../src/common/models/erc721.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,eAAO,MAAM,YAAY;;;;;;;;;;;;EAkBrB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { HttpsUrlSchema, IpfsUrlSchema } from "@evergonlabs/tmi-utils/models";
|
|
2
|
-
import { z } from "../zod.js";
|
|
3
|
-
export const Erc721Schema = z
|
|
4
|
-
.object({
|
|
5
|
-
symbol: z.string().openapi({
|
|
6
|
-
example: "TOKEN",
|
|
7
|
-
description: "Symbol for ERC721 that is going to be used on-chain",
|
|
8
|
-
}),
|
|
9
|
-
name: z.string().openapi({
|
|
10
|
-
example: "My Staking Platform",
|
|
11
|
-
description: "Name for ERC721 that is going to be used on-chain",
|
|
12
|
-
}),
|
|
13
|
-
baseUri: z.union([IpfsUrlSchema, HttpsUrlSchema]).openapi({
|
|
14
|
-
example: "ipfs://",
|
|
15
|
-
type: "string",
|
|
16
|
-
description: `Use ipfs base uri to maintain decentralized accessibility of metadata.\n\nYou may also specify https but it's not recommended`,
|
|
17
|
-
}),
|
|
18
|
-
})
|
|
19
|
-
.openapi({
|
|
20
|
-
ref: "Erc721Meta",
|
|
21
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from "../zod.js";
|
|
2
|
-
export declare const PageSchema: z.ZodObject<{
|
|
3
|
-
skip: z.ZodNumber;
|
|
4
|
-
limit: z.ZodNumber;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
skip: number;
|
|
7
|
-
limit: number;
|
|
8
|
-
}, {
|
|
9
|
-
skip: number;
|
|
10
|
-
limit: number;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=page.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/common/models/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,eAAO,MAAM,UAAU;;;;;;;;;EAanB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from "../zod.js";
|
|
2
|
-
export const PageSchema = z
|
|
3
|
-
.object({
|
|
4
|
-
skip: z.number().min(0).openapi({
|
|
5
|
-
description: "How many entries to skip from the start",
|
|
6
|
-
}),
|
|
7
|
-
limit: z.number().min(0).max(50).openapi({
|
|
8
|
-
description: "How many items per page should be retrieved",
|
|
9
|
-
maximum: 50,
|
|
10
|
-
}),
|
|
11
|
-
})
|
|
12
|
-
.openapi({
|
|
13
|
-
ref: "PageRequest",
|
|
14
|
-
description: "Provide page details in order to implement pagination",
|
|
15
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"percent.d.ts","sourceRoot":"","sources":["../../../../src/common/models/percent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,aAIiD,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const PlatformContractAddress: import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>;
|
|
2
|
-
export declare const StakeIdSchema: import("zod").ZodPipeline<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBigInt]>, import("zod").ZodBigInt>;
|
|
3
|
-
export declare const PoolIdSchema: import("zod").ZodPipeline<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBigInt]>, import("zod").ZodBigInt>;
|
|
4
|
-
//# sourceMappingURL=platform.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../src/common/models/platform.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,+EAElC,CAAC;AAEH,eAAO,MAAM,aAAa,yJAGxB,CAAC;AAEH,eAAO,MAAM,YAAY,yJAGvB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
2
|
-
import { AddressSchema } from "./viem.js";
|
|
3
|
-
export const PlatformContractAddress = AddressSchema.openapi({
|
|
4
|
-
description: "Address of deployed Platform contract",
|
|
5
|
-
});
|
|
6
|
-
export const StakeIdSchema = Int256Positive.openapi({
|
|
7
|
-
description: "Id of a Stake position (NFT Id)",
|
|
8
|
-
example: "1",
|
|
9
|
-
});
|
|
10
|
-
export const PoolIdSchema = Int256Positive.openapi({
|
|
11
|
-
description: "Id of a Pool",
|
|
12
|
-
example: "1",
|
|
13
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { z } from "../zod.js";
|
|
2
|
-
export declare const ErrorSchema: z.ZodObject<{
|
|
3
|
-
success: z.ZodLiteral<false>;
|
|
4
|
-
message: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
success: false;
|
|
8
|
-
message: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}, {
|
|
11
|
-
success: false;
|
|
12
|
-
message: string;
|
|
13
|
-
name: string;
|
|
14
|
-
}>;
|
|
15
|
-
export declare function toError(error: Error): z.output<typeof ErrorSchema>;
|
|
16
|
-
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../src/common/models/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,eAAO,MAAM,WAAW;;;;;;;;;;;;EAItB,CAAC;AAEH,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAMlE"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from "../zod.js";
|
|
2
|
-
export const ErrorSchema = z.object({
|
|
3
|
-
success: z.literal(false),
|
|
4
|
-
message: z.string(),
|
|
5
|
-
name: z.string(),
|
|
6
|
-
});
|
|
7
|
-
export function toError(error) {
|
|
8
|
-
return {
|
|
9
|
-
success: false,
|
|
10
|
-
message: error.message,
|
|
11
|
-
name: error.name,
|
|
12
|
-
};
|
|
13
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const SaleIdSchema: z.ZodObject<{
|
|
3
|
-
market: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
4
|
-
campaignId: z.ZodBigInt;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
campaignId: bigint;
|
|
7
|
-
market: `0x${string}`;
|
|
8
|
-
}, {
|
|
9
|
-
campaignId: bigint;
|
|
10
|
-
market: `0x${string}`;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=saleId.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"saleId.d.ts","sourceRoot":"","sources":["../../../../src/common/models/saleId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,YAAY;;;;;;;;;EAGvB,CAAC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { ITransaction } from "@evergonlabs/tmi-protocol-types/evm";
|
|
2
|
-
import { z } from "../zod.js";
|
|
3
|
-
export declare const TransactionSchema: z.ZodObject<{
|
|
4
|
-
data: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
5
|
-
to: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
-
details: z.ZodObject<{
|
|
7
|
-
functionName: z.ZodString;
|
|
8
|
-
address: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
|
-
abi: z.ZodArray<z.ZodAny, "many">;
|
|
10
|
-
args: z.ZodArray<z.ZodAny, "many">;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
functionName: string;
|
|
13
|
-
address: `0x${string}`;
|
|
14
|
-
abi: any[];
|
|
15
|
-
args: any[];
|
|
16
|
-
}, {
|
|
17
|
-
functionName: string;
|
|
18
|
-
address: `0x${string}`;
|
|
19
|
-
abi: any[];
|
|
20
|
-
args: any[];
|
|
21
|
-
}>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
data: `0x${string}`;
|
|
24
|
-
to: `0x${string}`;
|
|
25
|
-
details: {
|
|
26
|
-
functionName: string;
|
|
27
|
-
address: `0x${string}`;
|
|
28
|
-
abi: any[];
|
|
29
|
-
args: any[];
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
data: `0x${string}`;
|
|
33
|
-
to: `0x${string}`;
|
|
34
|
-
details: {
|
|
35
|
-
functionName: string;
|
|
36
|
-
address: `0x${string}`;
|
|
37
|
-
abi: any[];
|
|
38
|
-
args: any[];
|
|
39
|
-
};
|
|
40
|
-
}>;
|
|
41
|
-
export declare const GatedTransactionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
42
|
-
data: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
43
|
-
to: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
44
|
-
details: z.ZodObject<{
|
|
45
|
-
functionName: z.ZodString;
|
|
46
|
-
address: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
47
|
-
abi: z.ZodArray<z.ZodAny, "many">;
|
|
48
|
-
args: z.ZodArray<z.ZodAny, "many">;
|
|
49
|
-
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
functionName: string;
|
|
51
|
-
address: `0x${string}`;
|
|
52
|
-
abi: any[];
|
|
53
|
-
args: any[];
|
|
54
|
-
}, {
|
|
55
|
-
functionName: string;
|
|
56
|
-
address: `0x${string}`;
|
|
57
|
-
abi: any[];
|
|
58
|
-
args: any[];
|
|
59
|
-
}>;
|
|
60
|
-
}, {}>, "strip", z.ZodTypeAny, {
|
|
61
|
-
data: `0x${string}`;
|
|
62
|
-
to: `0x${string}`;
|
|
63
|
-
details: {
|
|
64
|
-
functionName: string;
|
|
65
|
-
address: `0x${string}`;
|
|
66
|
-
abi: any[];
|
|
67
|
-
args: any[];
|
|
68
|
-
};
|
|
69
|
-
}, {
|
|
70
|
-
data: `0x${string}`;
|
|
71
|
-
to: `0x${string}`;
|
|
72
|
-
details: {
|
|
73
|
-
functionName: string;
|
|
74
|
-
address: `0x${string}`;
|
|
75
|
-
abi: any[];
|
|
76
|
-
args: any[];
|
|
77
|
-
};
|
|
78
|
-
}>;
|
|
79
|
-
export declare function toTransaction(tx: ITransaction): z.infer<typeof TransactionSchema>;
|
|
80
|
-
export declare const SentTransactionParamsSchema: z.ZodObject<{
|
|
81
|
-
chainId: z.ZodType<"11155111" | "31337", z.ZodTypeDef, "11155111" | "31337">;
|
|
82
|
-
hash: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
chainId: "11155111" | "31337";
|
|
85
|
-
hash: `0x${string}`;
|
|
86
|
-
}, {
|
|
87
|
-
chainId: "11155111" | "31337";
|
|
88
|
-
hash: `0x${string}`;
|
|
89
|
-
}>;
|
|
90
|
-
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../src/common/models/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAInE,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoB1B,CAAC;AAEL,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+B,CAAC;AAEnE,wBAAgB,aAAa,CAAC,EAAE,EAAE,YAAY,GAavC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CACvC;AAED,eAAO,MAAM,2BAA2B;;;;;;;;;EAetC,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { encodeFunctionData } from "viem";
|
|
2
|
-
import { AddressSchema, HashSchema, HexStringSchema } from "./viem.js";
|
|
3
|
-
import { StakingChainId } from "./chainId.js";
|
|
4
|
-
import { z } from "../zod.js";
|
|
5
|
-
export const TransactionSchema = z
|
|
6
|
-
.object({
|
|
7
|
-
data: HexStringSchema.openapi({ description: "Encoded contract execution data" }),
|
|
8
|
-
to: AddressSchema.openapi({ description: "Address of a contract to interact with" }),
|
|
9
|
-
details: z.object({
|
|
10
|
-
functionName: z.string().openapi({ description: "Function name" }),
|
|
11
|
-
address: AddressSchema.openapi({ description: "Address of a contract to interact with" }),
|
|
12
|
-
abi: z.array(z.any()).openapi({
|
|
13
|
-
description: "ABI of a contract. Can be used for error and data decoding",
|
|
14
|
-
type: "array",
|
|
15
|
-
}),
|
|
16
|
-
args: z.array(z.any()).openapi({
|
|
17
|
-
description: "Decoded arguments",
|
|
18
|
-
type: "array",
|
|
19
|
-
}),
|
|
20
|
-
}),
|
|
21
|
-
})
|
|
22
|
-
.openapi({
|
|
23
|
-
ref: "Transaction",
|
|
24
|
-
description: "Details of a transaction that can be sent to the blockchain",
|
|
25
|
-
});
|
|
26
|
-
export const GatedTransactionSchema = TransactionSchema.extend({});
|
|
27
|
-
export function toTransaction(tx) {
|
|
28
|
-
return {
|
|
29
|
-
to: tx.address,
|
|
30
|
-
data: encodeFunctionData({
|
|
31
|
-
abi: tx.abi,
|
|
32
|
-
args: tx.args,
|
|
33
|
-
functionName: tx.functionName,
|
|
34
|
-
}),
|
|
35
|
-
details: {
|
|
36
|
-
abi: tx.abi,
|
|
37
|
-
args: tx.args,
|
|
38
|
-
functionName: tx.functionName,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export const SentTransactionParamsSchema = z.object({
|
|
43
|
-
chainId: StakingChainId.openapi({
|
|
44
|
-
param: {
|
|
45
|
-
name: "chainId",
|
|
46
|
-
in: "query",
|
|
47
|
-
},
|
|
48
|
-
example: "11155111",
|
|
49
|
-
}),
|
|
50
|
-
hash: HashSchema.openapi({
|
|
51
|
-
param: {
|
|
52
|
-
name: "hash",
|
|
53
|
-
in: "query",
|
|
54
|
-
},
|
|
55
|
-
example: "0x",
|
|
56
|
-
}),
|
|
57
|
-
});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const HexStringSchema: import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>;
|
|
2
|
-
export declare const AddressSchema: import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>;
|
|
3
|
-
export declare const HashSchema: import("zod").ZodType<`0x${string}`, import("zod").ZodTypeDef, `0x${string}`>;
|
|
4
|
-
//# sourceMappingURL=viem.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viem.d.ts","sourceRoot":"","sources":["../../../../src/common/models/viem.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,+EAG1B,CAAC;AAEH,eAAO,MAAM,aAAa,+EAGxB,CAAC;AAEH,eAAO,MAAM,UAAU,+EAIrB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { HexStringSchema as _HexStringSchema, AddressSchema as _AddressSchema } from "@evergonlabs/tmi-utils/models";
|
|
2
|
-
import { zeroAddress } from "viem";
|
|
3
|
-
export const HexStringSchema = _HexStringSchema.openapi({
|
|
4
|
-
type: "string",
|
|
5
|
-
example: "0x",
|
|
6
|
-
});
|
|
7
|
-
export const AddressSchema = _AddressSchema.openapi({
|
|
8
|
-
type: "string",
|
|
9
|
-
example: zeroAddress,
|
|
10
|
-
});
|
|
11
|
-
export const HashSchema = _HexStringSchema.openapi({
|
|
12
|
-
type: "string",
|
|
13
|
-
example: "0x",
|
|
14
|
-
description: "Transaction hash",
|
|
15
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../../src/common/openapi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAInD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAqB9C,wBAAgB,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,mBAAmB,CAmBvF"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { resolver } from "hono-openapi/zod";
|
|
2
|
-
import { version } from "../common/version.js";
|
|
3
|
-
import { z } from "../common/zod.js";
|
|
4
|
-
const ZodErrorSchema = z
|
|
5
|
-
.object({
|
|
6
|
-
status: z.literal(400),
|
|
7
|
-
message: z.string(),
|
|
8
|
-
})
|
|
9
|
-
.openapi({
|
|
10
|
-
ref: "ZodError",
|
|
11
|
-
description: "Validation error",
|
|
12
|
-
});
|
|
13
|
-
const ZodResponse = {
|
|
14
|
-
description: "Zod Error",
|
|
15
|
-
content: {
|
|
16
|
-
"application/json": {
|
|
17
|
-
schema: resolver(ZodErrorSchema),
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
export function getOpenApiSpec(config, baseUrl) {
|
|
22
|
-
return {
|
|
23
|
-
documentation: {
|
|
24
|
-
info: {
|
|
25
|
-
title: config.title,
|
|
26
|
-
version: version,
|
|
27
|
-
description: config.description,
|
|
28
|
-
},
|
|
29
|
-
servers: [
|
|
30
|
-
{
|
|
31
|
-
url: baseUrl,
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
defaultOptions: {
|
|
36
|
-
GET: { responses: { 400: ZodResponse } },
|
|
37
|
-
POST: { responses: { 400: ZodResponse } },
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
}
|
package/dist/src/common/tag.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/common/tag.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC5C,GAAG,EAAE,CAAC,CAAC;CACR,CAAC;AAEF,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC;;EAIjD"}
|
package/dist/src/common/tag.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/common/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,QAAc,CAAC"}
|
package/dist/src/common/zod.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../src/common/zod.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,cAAc,KAAK,CAAC"}
|
package/dist/src/common/zod.js
DELETED
package/dist/src/error.d.ts
DELETED
package/dist/src/error.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAGzC,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,GAAG,KAAK,YAAY,CAAC,CAAC,CAAC,CAYnE"}
|
package/dist/src/error.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export function createErrorHandler() {
|
|
2
|
-
return (err, c) => {
|
|
3
|
-
console.log(err);
|
|
4
|
-
return c.json({
|
|
5
|
-
success: false,
|
|
6
|
-
message: err.message || "Unexpected Error",
|
|
7
|
-
name: err.name || "UnknownError",
|
|
8
|
-
}, extractCode(err));
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function extractCode(err) {
|
|
12
|
-
if ("code" in err && typeof err.code === "number") {
|
|
13
|
-
return err.code;
|
|
14
|
-
}
|
|
15
|
-
return 500;
|
|
16
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Factory } from "hono/factory";
|
|
2
|
-
import { Env } from "hono";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
export declare const ApproveSaleRequestSchema: z.ZodObject<{
|
|
5
|
-
marketAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
-
campaignId: z.ZodBigInt;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
campaignId: bigint;
|
|
9
|
-
marketAddress: `0x${string}`;
|
|
10
|
-
}, {
|
|
11
|
-
campaignId: bigint;
|
|
12
|
-
marketAddress: `0x${string}`;
|
|
13
|
-
}>;
|
|
14
|
-
export declare function createApproveSalesTransactionV0<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
15
|
-
data: `0x${string}`;
|
|
16
|
-
to: `0x${string}`;
|
|
17
|
-
details: {
|
|
18
|
-
functionName: string;
|
|
19
|
-
address: `0x${string}`;
|
|
20
|
-
abi: any[];
|
|
21
|
-
args: any[];
|
|
22
|
-
};
|
|
23
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
24
|
-
in: {
|
|
25
|
-
json: {
|
|
26
|
-
campaignId: bigint;
|
|
27
|
-
marketAddress: `0x${string}`;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
out: {
|
|
31
|
-
json: {
|
|
32
|
-
campaignId: bigint;
|
|
33
|
-
marketAddress: `0x${string}`;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
37
|
-
data: `0x${string}`;
|
|
38
|
-
to: `0x${string}`;
|
|
39
|
-
details: {
|
|
40
|
-
functionName: string;
|
|
41
|
-
address: `0x${string}`;
|
|
42
|
-
abi: any[];
|
|
43
|
-
args: any[];
|
|
44
|
-
};
|
|
45
|
-
}, 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, {
|
|
46
|
-
in: {
|
|
47
|
-
json: {
|
|
48
|
-
campaignId: bigint;
|
|
49
|
-
marketAddress: `0x${string}`;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
out: {
|
|
53
|
-
json: {
|
|
54
|
-
campaignId: bigint;
|
|
55
|
-
marketAddress: `0x${string}`;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
59
|
-
data: `0x${string}`;
|
|
60
|
-
to: `0x${string}`;
|
|
61
|
-
details: {
|
|
62
|
-
functionName: string;
|
|
63
|
-
address: `0x${string}`;
|
|
64
|
-
abi: any[];
|
|
65
|
-
args: any[];
|
|
66
|
-
};
|
|
67
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
68
|
-
//# sourceMappingURL=approveSale.route.d.ts.map
|