@evergonlabs/tmi-protocol-api 0.1.3 → 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 +16 -0
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +26 -0
- 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 +16 -0
- 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.map +1 -1
- package/dist/general/balanceClient.js +7 -1
- 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,149 +0,0 @@
|
|
|
1
|
-
import { Factory } from "hono/factory";
|
|
2
|
-
import { Env } from "hono";
|
|
3
|
-
export declare function createCreatePoolRoute<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
|
-
data: `0x${string}`;
|
|
5
|
-
to: `0x${string}`;
|
|
6
|
-
details: {
|
|
7
|
-
functionName: string;
|
|
8
|
-
address: `0x${string}`;
|
|
9
|
-
abi: any[];
|
|
10
|
-
args: any[];
|
|
11
|
-
};
|
|
12
|
-
}, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
13
|
-
in: {
|
|
14
|
-
json: {
|
|
15
|
-
platform: `0x${string}`;
|
|
16
|
-
amount: {
|
|
17
|
-
minAmount: string | number | bigint;
|
|
18
|
-
maxAmount: string | number | bigint;
|
|
19
|
-
};
|
|
20
|
-
startDate: string;
|
|
21
|
-
distribution: {
|
|
22
|
-
duration: string | number | bigint;
|
|
23
|
-
distributor: `0x${string}`;
|
|
24
|
-
};
|
|
25
|
-
amountMult: [string | number | bigint, string | number | bigint][];
|
|
26
|
-
stakingErc20: {
|
|
27
|
-
contract: `0x${string}`;
|
|
28
|
-
amountOfTokensPerPacket: string;
|
|
29
|
-
};
|
|
30
|
-
rewardErc20: {
|
|
31
|
-
contract: `0x${string}`;
|
|
32
|
-
amountOfTokensPerPacket: string | number | bigint;
|
|
33
|
-
};
|
|
34
|
-
rate: string | number | bigint;
|
|
35
|
-
lock: {
|
|
36
|
-
minAcceptedLockPeriod: string | number | bigint;
|
|
37
|
-
maxAcceptedLockPeriod: string | number | bigint;
|
|
38
|
-
};
|
|
39
|
-
lockMult: [string | number | bigint, string | number | bigint][];
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
out: {
|
|
43
|
-
json: {
|
|
44
|
-
platform: `0x${string}`;
|
|
45
|
-
amount: {
|
|
46
|
-
minAmount: bigint;
|
|
47
|
-
maxAmount: bigint;
|
|
48
|
-
};
|
|
49
|
-
startDate: string;
|
|
50
|
-
distribution: {
|
|
51
|
-
duration: bigint;
|
|
52
|
-
distributor: `0x${string}`;
|
|
53
|
-
};
|
|
54
|
-
amountMult: [bigint, bigint][];
|
|
55
|
-
stakingErc20: {
|
|
56
|
-
contract: `0x${string}`;
|
|
57
|
-
amountOfTokensPerPacket: bigint;
|
|
58
|
-
};
|
|
59
|
-
rewardErc20: {
|
|
60
|
-
contract: `0x${string}`;
|
|
61
|
-
amountOfTokensPerPacket: bigint;
|
|
62
|
-
};
|
|
63
|
-
rate: bigint;
|
|
64
|
-
lock: {
|
|
65
|
-
minAcceptedLockPeriod: bigint;
|
|
66
|
-
maxAcceptedLockPeriod: bigint;
|
|
67
|
-
};
|
|
68
|
-
lockMult: [bigint, bigint][];
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
72
|
-
data: `0x${string}`;
|
|
73
|
-
to: `0x${string}`;
|
|
74
|
-
details: {
|
|
75
|
-
functionName: string;
|
|
76
|
-
address: `0x${string}`;
|
|
77
|
-
abi: any[];
|
|
78
|
-
args: any[];
|
|
79
|
-
};
|
|
80
|
-
}, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
81
|
-
in: {
|
|
82
|
-
json: {
|
|
83
|
-
platform: `0x${string}`;
|
|
84
|
-
amount: {
|
|
85
|
-
minAmount: string | number | bigint;
|
|
86
|
-
maxAmount: string | number | bigint;
|
|
87
|
-
};
|
|
88
|
-
startDate: string;
|
|
89
|
-
distribution: {
|
|
90
|
-
duration: string | number | bigint;
|
|
91
|
-
distributor: `0x${string}`;
|
|
92
|
-
};
|
|
93
|
-
amountMult: [string | number | bigint, string | number | bigint][];
|
|
94
|
-
stakingErc20: {
|
|
95
|
-
contract: `0x${string}`;
|
|
96
|
-
amountOfTokensPerPacket: string;
|
|
97
|
-
};
|
|
98
|
-
rewardErc20: {
|
|
99
|
-
contract: `0x${string}`;
|
|
100
|
-
amountOfTokensPerPacket: string | number | bigint;
|
|
101
|
-
};
|
|
102
|
-
rate: string | number | bigint;
|
|
103
|
-
lock: {
|
|
104
|
-
minAcceptedLockPeriod: string | number | bigint;
|
|
105
|
-
maxAcceptedLockPeriod: string | number | bigint;
|
|
106
|
-
};
|
|
107
|
-
lockMult: [string | number | bigint, string | number | bigint][];
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
out: {
|
|
111
|
-
json: {
|
|
112
|
-
platform: `0x${string}`;
|
|
113
|
-
amount: {
|
|
114
|
-
minAmount: bigint;
|
|
115
|
-
maxAmount: bigint;
|
|
116
|
-
};
|
|
117
|
-
startDate: string;
|
|
118
|
-
distribution: {
|
|
119
|
-
duration: bigint;
|
|
120
|
-
distributor: `0x${string}`;
|
|
121
|
-
};
|
|
122
|
-
amountMult: [bigint, bigint][];
|
|
123
|
-
stakingErc20: {
|
|
124
|
-
contract: `0x${string}`;
|
|
125
|
-
amountOfTokensPerPacket: bigint;
|
|
126
|
-
};
|
|
127
|
-
rewardErc20: {
|
|
128
|
-
contract: `0x${string}`;
|
|
129
|
-
amountOfTokensPerPacket: bigint;
|
|
130
|
-
};
|
|
131
|
-
rate: bigint;
|
|
132
|
-
lock: {
|
|
133
|
-
minAcceptedLockPeriod: bigint;
|
|
134
|
-
maxAcceptedLockPeriod: bigint;
|
|
135
|
-
};
|
|
136
|
-
lockMult: [bigint, bigint][];
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
140
|
-
data: `0x${string}`;
|
|
141
|
-
to: `0x${string}`;
|
|
142
|
-
details: {
|
|
143
|
-
functionName: string;
|
|
144
|
-
address: `0x${string}`;
|
|
145
|
-
abi: any[];
|
|
146
|
-
args: any[];
|
|
147
|
-
};
|
|
148
|
-
}, 200, "json">>>];
|
|
149
|
-
//# sourceMappingURL=createPool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createPool.d.ts","sourceRoot":"","sources":["../../../../../../src/staking-templates/templates/reputationLock/v0/createPool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAiB3B,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA2FvE"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
-
import { createPool, FacetOptionEnum, FacetSlot } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
4
|
-
import { toTransaction, TransactionSchema } from "../../../../common/index.js";
|
|
5
|
-
import { PlatformContractAddress } from "../../../../common/models/platform.js";
|
|
6
|
-
import { reputationLock } from "../common.js";
|
|
7
|
-
import { RewardDistributionComplexSchema, RewardRateSchema } from "../../common/rewardDistribution.js";
|
|
8
|
-
import { Erc20InputSchema } from "../../common/erc20Input.js";
|
|
9
|
-
import { Erc20RewardSchema } from "../../common/erc20Reward.js";
|
|
10
|
-
import { AmountTwoBorderSchema } from "../../common/amount.js";
|
|
11
|
-
import { StartTimeSchema } from "../../common/time.js";
|
|
12
|
-
import { AmountMultIntervalSchema } from "../../common/amountMult.js";
|
|
13
|
-
import { LockTwoBorderSchema } from "../../common/lock.js";
|
|
14
|
-
import { LockMultIntervalSchema } from "../../common/lockMult.js";
|
|
15
|
-
import { z } from "../../../../common/zod.js";
|
|
16
|
-
export function createCreatePoolRoute(factory) {
|
|
17
|
-
return factory.createHandlers(describeRoute({
|
|
18
|
-
summary: "Create Pool",
|
|
19
|
-
description: "Generates a transaction for a new Staking Pool within the Platform",
|
|
20
|
-
tags: [reputationLock.tag.tag],
|
|
21
|
-
responses: {
|
|
22
|
-
200: {
|
|
23
|
-
description: "Compiled Create Pool transaction details",
|
|
24
|
-
content: {
|
|
25
|
-
"application/json": {
|
|
26
|
-
schema: resolver(TransactionSchema),
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
}), validator("json", z.object({
|
|
32
|
-
platform: PlatformContractAddress,
|
|
33
|
-
startDate: StartTimeSchema,
|
|
34
|
-
amount: AmountTwoBorderSchema,
|
|
35
|
-
amountMult: AmountMultIntervalSchema,
|
|
36
|
-
distribution: RewardDistributionComplexSchema,
|
|
37
|
-
stakingErc20: Erc20InputSchema,
|
|
38
|
-
rewardErc20: Erc20RewardSchema,
|
|
39
|
-
rate: RewardRateSchema,
|
|
40
|
-
lock: LockTwoBorderSchema,
|
|
41
|
-
lockMult: LockMultIntervalSchema,
|
|
42
|
-
})), async (c) => {
|
|
43
|
-
const { platform, startDate, amountMult, amount, lock, lockMult, rate, stakingErc20, rewardErc20 } = c.req.valid("json");
|
|
44
|
-
const deployed = createPool(reputationLock.template, {
|
|
45
|
-
platform: platform,
|
|
46
|
-
data: {
|
|
47
|
-
[FacetSlot.Time]: {
|
|
48
|
-
type: FacetOptionEnum.TimeOnlyStarting,
|
|
49
|
-
startDate: new Date(startDate),
|
|
50
|
-
},
|
|
51
|
-
[FacetSlot.AmountMult]: {
|
|
52
|
-
type: FacetOptionEnum.AmountMultInterval,
|
|
53
|
-
packetsAndMultipliers: amountMult,
|
|
54
|
-
},
|
|
55
|
-
[FacetSlot.Amount]: {
|
|
56
|
-
type: FacetOptionEnum.AmountTwoBorder,
|
|
57
|
-
minAmount: amount.minAmount,
|
|
58
|
-
maxAmount: amount.maxAmount,
|
|
59
|
-
},
|
|
60
|
-
[FacetSlot.StakersEligibility]: {
|
|
61
|
-
type: FacetOptionEnum.StakersEligibilityDefault,
|
|
62
|
-
isCampaignScoped: false,
|
|
63
|
-
},
|
|
64
|
-
[FacetSlot.RewardsDistribution]: {
|
|
65
|
-
type: FacetOptionEnum.RewardDistributionRateBasedLock,
|
|
66
|
-
campaignRate: rate,
|
|
67
|
-
},
|
|
68
|
-
[FacetSlot.Lock]: {
|
|
69
|
-
type: FacetOptionEnum.LockTwoBorder,
|
|
70
|
-
minAcceptedLockPeriod: lock.minAcceptedLockPeriod,
|
|
71
|
-
maxAcceptedLockPeriod: lock.maxAcceptedLockPeriod,
|
|
72
|
-
},
|
|
73
|
-
[FacetSlot.LockMult]: {
|
|
74
|
-
type: FacetOptionEnum.LockMultInterval,
|
|
75
|
-
lockPeriods: lockMult,
|
|
76
|
-
},
|
|
77
|
-
[FacetSlot.Input]: {
|
|
78
|
-
type: FacetOptionEnum.InputErc20,
|
|
79
|
-
entries: [
|
|
80
|
-
{
|
|
81
|
-
tokenAddress: stakingErc20.contract,
|
|
82
|
-
amountOfTokensPerPacket: stakingErc20.amountOfTokensPerPacket,
|
|
83
|
-
},
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
[FacetSlot.Reward]: {
|
|
87
|
-
type: FacetOptionEnum.RewardErc20Minter,
|
|
88
|
-
entries: [
|
|
89
|
-
{
|
|
90
|
-
tokenAddress: rewardErc20.contract,
|
|
91
|
-
amountOfTokensPerPacket: rewardErc20.amountOfTokensPerPacket,
|
|
92
|
-
},
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
});
|
|
97
|
-
return c.json(toTransaction(deployed), 200);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createReputationLockTemplateV0App<E extends Env>(factory: Factory<E>): import("hono/hono-base").HonoBase<E, {
|
|
4
|
-
"/getPlatformDeployEvent": {
|
|
5
|
-
$get: {
|
|
6
|
-
input: {
|
|
7
|
-
query: {
|
|
8
|
-
chainId: "11155111" | "31337";
|
|
9
|
-
hash: `0x${string}`;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
output: {
|
|
13
|
-
diamondAddress: `0x${string}`;
|
|
14
|
-
admin: `0x${string}`;
|
|
15
|
-
};
|
|
16
|
-
outputFormat: "json";
|
|
17
|
-
status: 200;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
} & {
|
|
21
|
-
"/getStakeEvent": {
|
|
22
|
-
$get: {
|
|
23
|
-
input: {
|
|
24
|
-
query: {
|
|
25
|
-
chainId: "11155111" | "31337";
|
|
26
|
-
hash: `0x${string}`;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
output: never;
|
|
30
|
-
outputFormat: "json";
|
|
31
|
-
status: 200;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
} & {
|
|
35
|
-
"/getCreatePoolEvent": {
|
|
36
|
-
$get: {
|
|
37
|
-
input: {
|
|
38
|
-
query: {
|
|
39
|
-
chainId: "11155111" | "31337";
|
|
40
|
-
hash: `0x${string}`;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
output: never;
|
|
44
|
-
outputFormat: "json";
|
|
45
|
-
status: 200;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
} & {
|
|
49
|
-
"/getReward": {
|
|
50
|
-
$post: {
|
|
51
|
-
input: {
|
|
52
|
-
json: {
|
|
53
|
-
platform: `0x${string}`;
|
|
54
|
-
stakeId: string | number | bigint;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
output: {
|
|
58
|
-
data: `0x${string}`;
|
|
59
|
-
to: `0x${string}`;
|
|
60
|
-
details: {
|
|
61
|
-
functionName: string;
|
|
62
|
-
address: `0x${string}`;
|
|
63
|
-
abi: any[];
|
|
64
|
-
args: any[];
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
outputFormat: "json";
|
|
68
|
-
status: 200;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
} & {
|
|
72
|
-
"/partialUnstake": {
|
|
73
|
-
$post: {
|
|
74
|
-
input: {
|
|
75
|
-
json: {
|
|
76
|
-
platform: `0x${string}`;
|
|
77
|
-
stakeId: string | number | bigint;
|
|
78
|
-
amount: string | number | bigint;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
output: {
|
|
82
|
-
data: `0x${string}`;
|
|
83
|
-
to: `0x${string}`;
|
|
84
|
-
details: {
|
|
85
|
-
functionName: string;
|
|
86
|
-
address: `0x${string}`;
|
|
87
|
-
abi: any[];
|
|
88
|
-
args: any[];
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
outputFormat: "json";
|
|
92
|
-
status: 200;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
} & {
|
|
96
|
-
"/restake": {
|
|
97
|
-
$post: {
|
|
98
|
-
input: {
|
|
99
|
-
json: {
|
|
100
|
-
platform: `0x${string}`;
|
|
101
|
-
poolId: string | number | bigint;
|
|
102
|
-
amount: string | number | bigint;
|
|
103
|
-
lockPeriod: string | number | bigint;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
output: {
|
|
107
|
-
data: `0x${string}`;
|
|
108
|
-
to: `0x${string}`;
|
|
109
|
-
details: {
|
|
110
|
-
functionName: string;
|
|
111
|
-
address: `0x${string}`;
|
|
112
|
-
abi: any[];
|
|
113
|
-
args: any[];
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
outputFormat: "json";
|
|
117
|
-
status: 200;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
} & {
|
|
121
|
-
"/stake": {
|
|
122
|
-
$post: {
|
|
123
|
-
input: {
|
|
124
|
-
json: {
|
|
125
|
-
platform: `0x${string}`;
|
|
126
|
-
poolId: string | number | bigint;
|
|
127
|
-
amount: string | number | bigint;
|
|
128
|
-
lockPeriod: string | number | bigint;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
output: {
|
|
132
|
-
data: `0x${string}`;
|
|
133
|
-
to: `0x${string}`;
|
|
134
|
-
details: {
|
|
135
|
-
functionName: string;
|
|
136
|
-
address: `0x${string}`;
|
|
137
|
-
abi: any[];
|
|
138
|
-
args: any[];
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
outputFormat: "json";
|
|
142
|
-
status: 200;
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
} & {
|
|
146
|
-
"/unstake": {
|
|
147
|
-
$post: {
|
|
148
|
-
input: {
|
|
149
|
-
json: {
|
|
150
|
-
platform: `0x${string}`;
|
|
151
|
-
stakeId: string | number | bigint;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
output: {
|
|
155
|
-
data: `0x${string}`;
|
|
156
|
-
to: `0x${string}`;
|
|
157
|
-
details: {
|
|
158
|
-
functionName: string;
|
|
159
|
-
address: `0x${string}`;
|
|
160
|
-
abi: any[];
|
|
161
|
-
args: any[];
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
outputFormat: "json";
|
|
165
|
-
status: 200;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
} & {
|
|
169
|
-
"/createPool": {
|
|
170
|
-
$post: {
|
|
171
|
-
input: {
|
|
172
|
-
json: {
|
|
173
|
-
platform: `0x${string}`;
|
|
174
|
-
amount: {
|
|
175
|
-
minAmount: string | number | bigint;
|
|
176
|
-
maxAmount: string | number | bigint;
|
|
177
|
-
};
|
|
178
|
-
startDate: string;
|
|
179
|
-
distribution: {
|
|
180
|
-
duration: string | number | bigint;
|
|
181
|
-
distributor: `0x${string}`;
|
|
182
|
-
};
|
|
183
|
-
amountMult: [string | number | bigint, string | number | bigint][];
|
|
184
|
-
stakingErc20: {
|
|
185
|
-
contract: `0x${string}`;
|
|
186
|
-
amountOfTokensPerPacket: string;
|
|
187
|
-
};
|
|
188
|
-
rewardErc20: {
|
|
189
|
-
contract: `0x${string}`;
|
|
190
|
-
amountOfTokensPerPacket: string | number | bigint;
|
|
191
|
-
};
|
|
192
|
-
rate: string | number | bigint;
|
|
193
|
-
lock: {
|
|
194
|
-
minAcceptedLockPeriod: string | number | bigint;
|
|
195
|
-
maxAcceptedLockPeriod: string | number | bigint;
|
|
196
|
-
};
|
|
197
|
-
lockMult: [string | number | bigint, string | number | bigint][];
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
output: {
|
|
201
|
-
data: `0x${string}`;
|
|
202
|
-
to: `0x${string}`;
|
|
203
|
-
details: {
|
|
204
|
-
functionName: string;
|
|
205
|
-
address: `0x${string}`;
|
|
206
|
-
abi: any[];
|
|
207
|
-
args: any[];
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
outputFormat: "json";
|
|
211
|
-
status: 200;
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
} & {
|
|
215
|
-
"/createPlatform": {
|
|
216
|
-
$post: {
|
|
217
|
-
input: {
|
|
218
|
-
json: {
|
|
219
|
-
chainId: "11155111" | "31337";
|
|
220
|
-
adminAddress: `0x${string}`;
|
|
221
|
-
erc721: {
|
|
222
|
-
symbol: string;
|
|
223
|
-
name: string;
|
|
224
|
-
baseUri: string;
|
|
225
|
-
};
|
|
226
|
-
isSoulbound: boolean;
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
output: {
|
|
230
|
-
data: `0x${string}`;
|
|
231
|
-
to: `0x${string}`;
|
|
232
|
-
details: {
|
|
233
|
-
functionName: string;
|
|
234
|
-
address: `0x${string}`;
|
|
235
|
-
abi: any[];
|
|
236
|
-
args: any[];
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
outputFormat: "json";
|
|
240
|
-
status: 200;
|
|
241
|
-
};
|
|
242
|
-
};
|
|
243
|
-
}, "/">;
|
|
244
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/staking-templates/templates/reputationLock/v0/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAavC,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAanF"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createGetPlatformDeployEventRoute } from "../../common/getPlatformDeployEvent.js";
|
|
2
|
-
import { createGetRewardRoute } from "../../common/getReward.js";
|
|
3
|
-
import { createStakeEventRoute } from "../../common/getStakeEvent.js";
|
|
4
|
-
import { createPartialUnstakeRoute } from "../../common/partialUnstake.js";
|
|
5
|
-
import { createRestakeRoute } from "./restake.js";
|
|
6
|
-
import { createStakeRoute } from "./stake.js";
|
|
7
|
-
import { reputationLock } from "../common.js";
|
|
8
|
-
import { createUnstakeRoute } from "../../common/unstake.js";
|
|
9
|
-
import { createGetCreatePoolEventRoute } from "../../common/getCreatePoolEvent.js";
|
|
10
|
-
import { createCreatePoolRoute } from "./createPool.js";
|
|
11
|
-
import { createCreatePlatformRoute } from "./createPlatform.js";
|
|
12
|
-
export function createReputationLockTemplateV0App(factory) {
|
|
13
|
-
return factory
|
|
14
|
-
.createApp()
|
|
15
|
-
.get("/getPlatformDeployEvent", ...createGetPlatformDeployEventRoute(factory, reputationLock))
|
|
16
|
-
.get("/getStakeEvent", ...createStakeEventRoute(factory, reputationLock))
|
|
17
|
-
.get("/getCreatePoolEvent", ...createGetCreatePoolEventRoute(factory, reputationLock))
|
|
18
|
-
.post("/getReward", ...createGetRewardRoute(factory, reputationLock))
|
|
19
|
-
.post("/partialUnstake", ...createPartialUnstakeRoute(factory, reputationLock))
|
|
20
|
-
.post("/restake", ...createRestakeRoute(factory))
|
|
21
|
-
.post("/stake", ...createStakeRoute(factory))
|
|
22
|
-
.post("/unstake", ...createUnstakeRoute(factory, reputationLock))
|
|
23
|
-
.post("/createPool", ...createCreatePoolRoute(factory))
|
|
24
|
-
.post("/createPlatform", ...createCreatePlatformRoute(factory));
|
|
25
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
export declare function createRestakeRoute<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
|
-
data: `0x${string}`;
|
|
5
|
-
to: `0x${string}`;
|
|
6
|
-
details: {
|
|
7
|
-
functionName: string;
|
|
8
|
-
address: `0x${string}`;
|
|
9
|
-
abi: any[];
|
|
10
|
-
args: any[];
|
|
11
|
-
};
|
|
12
|
-
}, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
13
|
-
in: {
|
|
14
|
-
json: {
|
|
15
|
-
platform: `0x${string}`;
|
|
16
|
-
poolId: string | number | bigint;
|
|
17
|
-
amount: string | number | bigint;
|
|
18
|
-
lockPeriod: string | number | bigint;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
out: {
|
|
22
|
-
json: {
|
|
23
|
-
platform: `0x${string}`;
|
|
24
|
-
poolId: bigint;
|
|
25
|
-
amount: bigint;
|
|
26
|
-
lockPeriod: bigint;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
30
|
-
data: `0x${string}`;
|
|
31
|
-
to: `0x${string}`;
|
|
32
|
-
details: {
|
|
33
|
-
functionName: string;
|
|
34
|
-
address: `0x${string}`;
|
|
35
|
-
abi: any[];
|
|
36
|
-
args: any[];
|
|
37
|
-
};
|
|
38
|
-
}, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
39
|
-
in: {
|
|
40
|
-
json: {
|
|
41
|
-
platform: `0x${string}`;
|
|
42
|
-
poolId: string | number | bigint;
|
|
43
|
-
amount: string | number | bigint;
|
|
44
|
-
lockPeriod: string | number | bigint;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
out: {
|
|
48
|
-
json: {
|
|
49
|
-
platform: `0x${string}`;
|
|
50
|
-
poolId: bigint;
|
|
51
|
-
amount: bigint;
|
|
52
|
-
lockPeriod: bigint;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
56
|
-
data: `0x${string}`;
|
|
57
|
-
to: `0x${string}`;
|
|
58
|
-
details: {
|
|
59
|
-
functionName: string;
|
|
60
|
-
address: `0x${string}`;
|
|
61
|
-
abi: any[];
|
|
62
|
-
args: any[];
|
|
63
|
-
};
|
|
64
|
-
}, 200, "json">>>];
|
|
65
|
-
//# sourceMappingURL=restake.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restake.d.ts","sourceRoot":"","sources":["../../../../../../src/staking-templates/templates/reputationLock/v0/restake.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AASvC,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA2CpE"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
-
import { stake } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
4
|
-
import { z } from "../../../../common/zod.js";
|
|
5
|
-
import { PlatformContractAddress, PoolIdSchema, toTransaction, TransactionSchema } from "../../../../common/index.js";
|
|
6
|
-
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
7
|
-
import { reputationLock } from "../common.js";
|
|
8
|
-
export function createRestakeRoute(factory) {
|
|
9
|
-
return factory.createHandlers(describeRoute({
|
|
10
|
-
summary: "Restake",
|
|
11
|
-
description: "Generates a transaction for updating staking position",
|
|
12
|
-
tags: [reputationLock.tag.tag],
|
|
13
|
-
responses: {
|
|
14
|
-
200: {
|
|
15
|
-
description: "Get the Stake transaction details",
|
|
16
|
-
content: {
|
|
17
|
-
"application/json": {
|
|
18
|
-
schema: resolver(TransactionSchema),
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
}), validator("json", z.object({
|
|
24
|
-
platform: PlatformContractAddress,
|
|
25
|
-
poolId: PoolIdSchema,
|
|
26
|
-
amount: Int256Positive.openapi({
|
|
27
|
-
description: `Number of Packets to be stacked. Each underlying asset must be approved to Staking Platform contract instance`,
|
|
28
|
-
}),
|
|
29
|
-
lockPeriod: Int256Positive.openapi({
|
|
30
|
-
description: "The duration, in seconds, during which the position's staked Packets will be locked.",
|
|
31
|
-
}),
|
|
32
|
-
})), async (c) => {
|
|
33
|
-
const { platform, poolId, amount, lockPeriod } = c.req.valid("json");
|
|
34
|
-
const deployed = stake(reputationLock.template, {
|
|
35
|
-
platform: platform,
|
|
36
|
-
data: {
|
|
37
|
-
poolId: poolId,
|
|
38
|
-
packets: amount,
|
|
39
|
-
lockPeriod: lockPeriod,
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
return c.json(toTransaction(deployed), 200);
|
|
43
|
-
});
|
|
44
|
-
}
|