@evergonlabs/tmi-protocol-api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +2457 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +23 -0
- package/dist/client.d.ts +2985 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +4 -0
- package/dist/common/abis/erc20Whitelisted.d.ts +4 -0
- package/dist/common/abis/erc20Whitelisted.d.ts.map +1 -0
- package/dist/common/abis/erc20Whitelisted.js +4 -0
- package/dist/common/app.d.ts +9 -0
- package/dist/common/app.d.ts.map +1 -0
- package/dist/common/app.js +3 -0
- package/dist/common/blockchain.d.ts +10465 -0
- package/dist/common/blockchain.d.ts.map +1 -0
- package/dist/common/blockchain.js +44 -0
- package/dist/common/config.d.ts +24 -0
- package/dist/common/config.d.ts.map +1 -0
- package/dist/common/config.js +36 -0
- package/dist/common/http-error.d.ts +7 -0
- package/dist/common/http-error.d.ts.map +1 -0
- package/dist/common/http-error.js +7 -0
- package/dist/common/index.d.ts +2 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +1 -0
- package/dist/common/indexer/client.d.ts +3904 -0
- package/dist/common/indexer/client.d.ts.map +1 -0
- package/dist/common/indexer/client.js +7 -0
- package/dist/common/indexer/index.d.ts +3904 -0
- package/dist/common/indexer/index.d.ts.map +1 -0
- package/dist/common/indexer/index.js +3 -0
- package/dist/common/indexer/schemas.d.ts +2511 -0
- package/dist/common/indexer/schemas.d.ts.map +1 -0
- package/dist/common/indexer/schemas.js +29 -0
- package/dist/common/models/asset.d.ts +30 -0
- package/dist/common/models/asset.d.ts.map +1 -0
- package/dist/common/models/asset.js +21 -0
- package/dist/common/models/chainId.d.ts +5 -0
- package/dist/common/models/chainId.d.ts.map +1 -0
- package/dist/common/models/chainId.js +23 -0
- package/dist/common/models/date.d.ts +3 -0
- package/dist/common/models/date.d.ts.map +1 -0
- package/dist/common/models/date.js +5 -0
- package/dist/common/models/erc721.d.ts +15 -0
- package/dist/common/models/erc721.d.ts.map +1 -0
- package/dist/common/models/erc721.js +21 -0
- package/dist/common/models/index.d.ts +8 -0
- package/dist/common/models/index.d.ts.map +1 -0
- package/dist/common/models/index.js +7 -0
- package/dist/common/models/page.d.ts +12 -0
- package/dist/common/models/page.d.ts.map +1 -0
- package/dist/common/models/page.js +15 -0
- package/dist/common/models/percent.d.ts +3 -0
- package/dist/common/models/percent.d.ts.map +1 -0
- package/dist/common/models/percent.js +6 -0
- package/dist/common/models/platform.d.ts +8 -0
- package/dist/common/models/platform.d.ts.map +1 -0
- package/dist/common/models/platform.js +28 -0
- package/dist/common/models/routes.d.ts +16 -0
- package/dist/common/models/routes.d.ts.map +1 -0
- package/dist/common/models/routes.js +13 -0
- package/dist/common/models/saleId.d.ts +12 -0
- package/dist/common/models/saleId.d.ts.map +1 -0
- package/dist/common/models/saleId.js +6 -0
- package/dist/common/models/transaction.d.ts +90 -0
- package/dist/common/models/transaction.d.ts.map +1 -0
- package/dist/common/models/transaction.js +57 -0
- package/dist/common/models/viem.d.ts +4 -0
- package/dist/common/models/viem.d.ts.map +1 -0
- package/dist/common/models/viem.js +17 -0
- package/dist/common/roles/erc20-gated-roles.d.ts +7 -0
- package/dist/common/roles/erc20-gated-roles.d.ts.map +1 -0
- package/dist/common/roles/erc20-gated-roles.js +13 -0
- package/dist/common/tag.d.ts +7 -0
- package/dist/common/tag.d.ts.map +1 -0
- package/dist/common/tag.js +5 -0
- package/dist/common/zod.d.ts +3 -0
- package/dist/common/zod.d.ts.map +1 -0
- package/dist/common/zod.js +2 -0
- package/dist/error.d.ts +3 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +16 -0
- package/dist/fractions/activity/searchActivity.route.d.ts +162 -0
- package/dist/fractions/activity/searchActivity.route.d.ts.map +1 -0
- package/dist/fractions/activity/searchActivity.route.js +56 -0
- package/dist/fractions/activity/utils.d.ts +152 -0
- package/dist/fractions/activity/utils.d.ts.map +1 -0
- package/dist/fractions/activity/utils.js +59 -0
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts +68 -0
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts.map +1 -0
- package/dist/fractions/approveSale/v0/approveSale.route.js +31 -0
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts +203 -0
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +1 -0
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.js +84 -0
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts +68 -0
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts.map +1 -0
- package/dist/fractions/completeSale/v0/completeSale.route.js +31 -0
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts +305 -0
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts.map +1 -0
- package/dist/fractions/createFractions/v0/createFractions.route.js +61 -0
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts +416 -0
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts.map +1 -0
- package/dist/fractions/createFractions/v0/createFractions.schema.js +67 -0
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +51 -0
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.js +58 -0
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts +347 -0
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -0
- package/dist/fractions/deployMarket/v0/deployMarket.routes.js +139 -0
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts +83 -0
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +1 -0
- package/dist/fractions/deployMarket/v0/deployMarket.schema.js +21 -0
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts +61 -0
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts.map +1 -0
- package/dist/fractions/deployMarket/v0/initNid.route.js +31 -0
- package/dist/fractions/gating/v0/getAuthData.d.ts +86 -0
- package/dist/fractions/gating/v0/getAuthData.d.ts.map +1 -0
- package/dist/fractions/gating/v0/getAuthData.js +48 -0
- package/dist/fractions/gating/v0/getNonce.route.d.ts +54 -0
- package/dist/fractions/gating/v0/getNonce.route.d.ts.map +1 -0
- package/dist/fractions/gating/v0/getNonce.route.js +40 -0
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts +65 -0
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts.map +1 -0
- package/dist/fractions/grantRole/v0/grantRole.route.js +31 -0
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts +26 -0
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts.map +1 -0
- package/dist/fractions/grantRole/v0/grantRole.schema.js +14 -0
- package/dist/fractions/index.d.ts +1203 -0
- package/dist/fractions/index.d.ts.map +1 -0
- package/dist/fractions/index.js +100 -0
- package/dist/fractions/markets/common/platform.d.ts +84 -0
- package/dist/fractions/markets/common/platform.d.ts.map +1 -0
- package/dist/fractions/markets/common/platform.js +33 -0
- package/dist/fractions/markets/getDeployEvent.d.ts +42 -0
- package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -0
- package/dist/fractions/markets/getDeployEvent.js +47 -0
- package/dist/fractions/markets/getMarket/index.d.ts +53 -0
- package/dist/fractions/markets/getMarket/index.d.ts.map +1 -0
- package/dist/fractions/markets/getMarket/index.js +4 -0
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts +103 -0
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts.map +1 -0
- package/dist/fractions/markets/getMarket/v0/getMarket.js +63 -0
- package/dist/fractions/markets/index.d.ts +110 -0
- package/dist/fractions/markets/index.d.ts.map +1 -0
- package/dist/fractions/markets/index.js +12 -0
- package/dist/fractions/markets/searchMarkets/index.d.ts +45 -0
- package/dist/fractions/markets/searchMarkets/index.d.ts.map +1 -0
- package/dist/fractions/markets/searchMarkets/index.js +4 -0
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +115 -0
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +1 -0
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.js +43 -0
- package/dist/fractions/purchase/v0/purchase.route.d.ts +89 -0
- package/dist/fractions/purchase/v0/purchase.route.d.ts.map +1 -0
- package/dist/fractions/purchase/v0/purchase.route.js +41 -0
- package/dist/fractions/roles/getRoles/v0/getRoles.d.ts +28 -0
- package/dist/fractions/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/fractions/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/fractions/sales/common/fractionsSale.d.ts +352 -0
- package/dist/fractions/sales/common/fractionsSale.d.ts.map +1 -0
- package/dist/fractions/sales/common/fractionsSale.js +123 -0
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +98 -0
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +1 -0
- package/dist/fractions/sales/getFractionSaleStatistics.route.js +64 -0
- package/dist/fractions/sales/getVaultAddress.d.ts +52 -0
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -0
- package/dist/fractions/sales/getVaultAddress.js +60 -0
- package/dist/fractions/sales/getWithdrawEvent.d.ts +42 -0
- package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -0
- package/dist/fractions/sales/getWithdrawEvent.js +51 -0
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +144 -0
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -0
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.js +59 -0
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +57 -0
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -0
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +27 -0
- package/dist/fractions/sales/recoverFractions.d.ts +108 -0
- package/dist/fractions/sales/recoverFractions.d.ts.map +1 -0
- package/dist/fractions/sales/recoverFractions.js +45 -0
- package/dist/fractions/sales/rejectFractions.d.ts +80 -0
- package/dist/fractions/sales/rejectFractions.d.ts.map +1 -0
- package/dist/fractions/sales/rejectFractions.js +39 -0
- package/dist/fractions/sales/searchActivity.route.d.ts +90 -0
- package/dist/fractions/sales/searchActivity.route.d.ts.map +1 -0
- package/dist/fractions/sales/searchActivity.route.js +67 -0
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +89 -0
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +1 -0
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +82 -0
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts +257 -0
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts.map +1 -0
- package/dist/fractions/sales/searchSales/v0/searchSales.js +50 -0
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +58 -0
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +1 -0
- package/dist/fractions/sales/searchWithdrawal.route.js +48 -0
- package/dist/fractions/sales/setFeeCapLimit.d.ts +75 -0
- package/dist/fractions/sales/setFeeCapLimit.d.ts.map +1 -0
- package/dist/fractions/sales/setFeeCapLimit.js +32 -0
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts +68 -0
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -0
- package/dist/fractions/sales/unlockWrappedAssets.route.js +31 -0
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +94 -0
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.js +41 -0
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts +87 -0
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/v0/editCliff.route.js +40 -0
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +48 -0
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +57 -0
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts +68 -0
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts.map +1 -0
- package/dist/fractions/withdraw/v0/withdraw.route.js +31 -0
- package/dist/general/balance-client.d.ts +13 -0
- package/dist/general/balance-client.d.ts.map +1 -0
- package/dist/general/balance-client.js +26 -0
- package/dist/general/common.d.ts +94 -0
- package/dist/general/common.d.ts.map +1 -0
- package/dist/general/common.js +35 -0
- package/dist/general/estimateGas.d.ts +52 -0
- package/dist/general/estimateGas.d.ts.map +1 -0
- package/dist/general/estimateGas.js +64 -0
- package/dist/general/getBalance.d.ts +44 -0
- package/dist/general/getBalance.d.ts.map +1 -0
- package/dist/general/getBalance.js +43 -0
- package/dist/general/getBalancesBatch.d.ts +59 -0
- package/dist/general/getBalancesBatch.d.ts.map +1 -0
- package/dist/general/getBalancesBatch.js +34 -0
- package/dist/general/index.d.ts +100 -0
- package/dist/general/index.d.ts.map +1 -0
- package/dist/general/index.js +20 -0
- package/dist/general/searchBalances.d.ts +78 -0
- package/dist/general/searchBalances.d.ts.map +1 -0
- package/dist/general/searchBalances.js +49 -0
- package/dist/issuance/approve.d.ts +75 -0
- package/dist/issuance/approve.d.ts.map +1 -0
- package/dist/issuance/approve.js +36 -0
- package/dist/issuance/burn.d.ts +75 -0
- package/dist/issuance/burn.d.ts.map +1 -0
- package/dist/issuance/burn.js +36 -0
- package/dist/issuance/deploy.d.ts +88 -0
- package/dist/issuance/deploy.d.ts.map +1 -0
- package/dist/issuance/deploy.js +91 -0
- package/dist/issuance/grantRole.d.ts +76 -0
- package/dist/issuance/grantRole.d.ts.map +1 -0
- package/dist/issuance/grantRole.js +42 -0
- package/dist/issuance/index.d.ts +189 -0
- package/dist/issuance/index.d.ts.map +1 -0
- package/dist/issuance/index.js +25 -0
- package/dist/issuance/mint.d.ts +75 -0
- package/dist/issuance/mint.d.ts.map +1 -0
- package/dist/issuance/mint.js +36 -0
- package/dist/issuance/renounceRole.d.ts +76 -0
- package/dist/issuance/renounceRole.d.ts.map +1 -0
- package/dist/issuance/renounceRole.js +42 -0
- package/dist/issuance/transfer.d.ts +75 -0
- package/dist/issuance/transfer.d.ts.map +1 -0
- package/dist/issuance/transfer.js +36 -0
- package/dist/package.json +78 -0
- package/dist/src/app.d.ts +2194 -0
- package/dist/src/app.d.ts.map +1 -0
- package/dist/src/app.js +18 -0
- package/dist/src/client.d.ts +2690 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +4 -0
- package/dist/src/common/abis/erc20Whitelisted.d.ts +4 -0
- package/dist/src/common/abis/erc20Whitelisted.d.ts.map +1 -0
- package/dist/src/common/abis/erc20Whitelisted.js +4 -0
- package/dist/src/common/app.d.ts +9 -0
- package/dist/src/common/app.d.ts.map +1 -0
- package/dist/src/common/app.js +3 -0
- package/dist/src/common/blockchain.d.ts +9528 -0
- package/dist/src/common/blockchain.d.ts.map +1 -0
- package/dist/src/common/blockchain.js +40 -0
- package/dist/src/common/config.d.ts +21 -0
- package/dist/src/common/config.d.ts.map +1 -0
- package/dist/src/common/config.js +33 -0
- package/dist/src/common/http-error.d.ts +7 -0
- package/dist/src/common/http-error.d.ts.map +1 -0
- package/dist/src/common/http-error.js +7 -0
- package/dist/src/common/index.d.ts +2 -0
- package/dist/src/common/index.d.ts.map +1 -0
- package/dist/src/common/index.js +1 -0
- package/dist/src/common/indexer/client.d.ts +1191 -0
- package/dist/src/common/indexer/client.d.ts.map +1 -0
- package/dist/src/common/indexer/client.js +7 -0
- package/dist/src/common/indexer/index.d.ts +1191 -0
- package/dist/src/common/indexer/index.d.ts.map +1 -0
- package/dist/src/common/indexer/index.js +3 -0
- package/dist/src/common/indexer/schemas.d.ts +1191 -0
- package/dist/src/common/indexer/schemas.d.ts.map +1 -0
- package/dist/src/common/indexer/schemas.js +14 -0
- package/dist/src/common/models/chainId.d.ts +5 -0
- package/dist/src/common/models/chainId.d.ts.map +1 -0
- package/dist/src/common/models/chainId.js +23 -0
- package/dist/src/common/models/date.d.ts +3 -0
- package/dist/src/common/models/date.d.ts.map +1 -0
- package/dist/src/common/models/date.js +5 -0
- package/dist/src/common/models/erc721.d.ts +15 -0
- package/dist/src/common/models/erc721.d.ts.map +1 -0
- package/dist/src/common/models/erc721.js +21 -0
- package/dist/src/common/models/index.d.ts +7 -0
- package/dist/src/common/models/index.d.ts.map +1 -0
- package/dist/src/common/models/index.js +6 -0
- package/dist/src/common/models/page.d.ts +12 -0
- package/dist/src/common/models/page.d.ts.map +1 -0
- package/dist/src/common/models/page.js +15 -0
- package/dist/src/common/models/percent.d.ts +3 -0
- package/dist/src/common/models/percent.d.ts.map +1 -0
- package/dist/src/common/models/percent.js +6 -0
- package/dist/src/common/models/platform.d.ts +4 -0
- package/dist/src/common/models/platform.d.ts.map +1 -0
- package/dist/src/common/models/platform.js +13 -0
- package/dist/src/common/models/routes.d.ts +16 -0
- package/dist/src/common/models/routes.d.ts.map +1 -0
- package/dist/src/common/models/routes.js +13 -0
- package/dist/src/common/models/saleId.d.ts +12 -0
- package/dist/src/common/models/saleId.d.ts.map +1 -0
- package/dist/src/common/models/saleId.js +6 -0
- package/dist/src/common/models/transaction.d.ts +90 -0
- package/dist/src/common/models/transaction.d.ts.map +1 -0
- package/dist/src/common/models/transaction.js +57 -0
- package/dist/src/common/models/viem.d.ts +4 -0
- package/dist/src/common/models/viem.d.ts.map +1 -0
- package/dist/src/common/models/viem.js +15 -0
- package/dist/src/common/openapi.d.ts +4 -0
- package/dist/src/common/openapi.d.ts.map +1 -0
- package/dist/src/common/openapi.js +40 -0
- package/dist/src/common/tag.d.ts +7 -0
- package/dist/src/common/tag.d.ts.map +1 -0
- package/dist/src/common/tag.js +5 -0
- package/dist/src/common/version.d.ts +2 -0
- package/dist/src/common/version.d.ts.map +1 -0
- package/dist/src/common/version.js +2 -0
- package/dist/src/common/zod.d.ts +3 -0
- package/dist/src/common/zod.d.ts.map +1 -0
- package/dist/src/common/zod.js +2 -0
- package/dist/src/error.d.ts +3 -0
- package/dist/src/error.d.ts.map +1 -0
- package/dist/src/error.js +16 -0
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts +68 -0
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts.map +1 -0
- package/dist/src/fractions/approveSale/v0/approveSale.route.js +31 -0
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts +203 -0
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +1 -0
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.js +84 -0
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts +68 -0
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts.map +1 -0
- package/dist/src/fractions/completeSale/v0/completeSale.route.js +31 -0
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts +305 -0
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts.map +1 -0
- package/dist/src/fractions/createFractions/v0/createFractions.route.js +61 -0
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts +416 -0
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts.map +1 -0
- package/dist/src/fractions/createFractions/v0/createFractions.schema.js +67 -0
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +51 -0
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.js +59 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts +297 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.js +98 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts +96 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +1 -0
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.js +21 -0
- package/dist/src/fractions/gating/index.d.ts +2 -0
- package/dist/src/fractions/gating/index.d.ts.map +1 -0
- package/dist/src/fractions/gating/index.js +0 -0
- package/dist/src/fractions/gating/v0/getAuthData.d.ts +86 -0
- package/dist/src/fractions/gating/v0/getAuthData.d.ts.map +1 -0
- package/dist/src/fractions/gating/v0/getAuthData.js +48 -0
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts +54 -0
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts.map +1 -0
- package/dist/src/fractions/gating/v0/getNonce.route.js +40 -0
- package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts +65 -0
- package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts.map +1 -0
- package/dist/src/fractions/grantRole/v0/grantRole.route.js +31 -0
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts +26 -0
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts.map +1 -0
- package/dist/src/fractions/grantRole/v0/grantRole.schema.js +14 -0
- package/dist/src/fractions/index.d.ts +968 -0
- package/dist/src/fractions/index.d.ts.map +1 -0
- package/dist/src/fractions/index.js +91 -0
- package/dist/src/fractions/markets/common/platform.d.ts +26 -0
- package/dist/src/fractions/markets/common/platform.d.ts.map +1 -0
- package/dist/src/fractions/markets/common/platform.js +26 -0
- package/dist/src/fractions/markets/getDeployEvent.d.ts +42 -0
- package/dist/src/fractions/markets/getDeployEvent.d.ts.map +1 -0
- package/dist/src/fractions/markets/getDeployEvent.js +47 -0
- package/dist/src/fractions/markets/getMarket/index.d.ts +40 -0
- package/dist/src/fractions/markets/getMarket/index.d.ts.map +1 -0
- package/dist/src/fractions/markets/getMarket/index.js +4 -0
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts +64 -0
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts.map +1 -0
- package/dist/src/fractions/markets/getMarket/v0/getMarket.js +63 -0
- package/dist/src/fractions/markets/index.d.ts +84 -0
- package/dist/src/fractions/markets/index.d.ts.map +1 -0
- package/dist/src/fractions/markets/index.js +12 -0
- package/dist/src/fractions/markets/searchMarkets/index.d.ts +32 -0
- package/dist/src/fractions/markets/searchMarkets/index.d.ts.map +1 -0
- package/dist/src/fractions/markets/searchMarkets/index.js +4 -0
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +76 -0
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +1 -0
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.js +42 -0
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts +89 -0
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts.map +1 -0
- package/dist/src/fractions/purchase/v0/purchase.route.js +41 -0
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts +28 -0
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/src/fractions/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/src/fractions/sales/getVaultAddress.d.ts +52 -0
- package/dist/src/fractions/sales/getVaultAddress.d.ts.map +1 -0
- package/dist/src/fractions/sales/getVaultAddress.js +61 -0
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts +42 -0
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts.map +1 -0
- package/dist/src/fractions/sales/getWithdrawEvent.js +52 -0
- package/dist/src/fractions/sales/index.d.ts +10 -0
- package/dist/src/fractions/sales/index.d.ts.map +1 -0
- package/dist/src/fractions/sales/index.js +10 -0
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +144 -0
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.js +59 -0
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +57 -0
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +27 -0
- package/dist/src/fractions/sales/recoverFractions.d.ts +108 -0
- package/dist/src/fractions/sales/recoverFractions.d.ts.map +1 -0
- package/dist/src/fractions/sales/recoverFractions.js +45 -0
- package/dist/src/fractions/sales/rejectFractions.d.ts +80 -0
- package/dist/src/fractions/sales/rejectFractions.d.ts.map +1 -0
- package/dist/src/fractions/sales/rejectFractions.js +39 -0
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts +2 -0
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts.map +1 -0
- package/dist/src/fractions/sales/searchSaleEvents/index.js +0 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +89 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +1 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +82 -0
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts +75 -0
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts.map +1 -0
- package/dist/src/fractions/sales/setFeeCapLimit.js +32 -0
- package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts +68 -0
- package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/unlockWrappedAssets.route.js +31 -0
- package/dist/src/fractions/sales/vesting/index.d.ts +2 -0
- package/dist/src/fractions/sales/vesting/index.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/index.js +0 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +94 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.js +41 -0
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts +87 -0
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.js +40 -0
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +48 -0
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +1 -0
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +58 -0
- package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts +68 -0
- package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts.map +1 -0
- package/dist/src/fractions/withdraw/v0/withdraw.route.js +31 -0
- package/dist/src/general/balance-client.d.ts +13 -0
- package/dist/src/general/balance-client.d.ts.map +1 -0
- package/dist/src/general/balance-client.js +26 -0
- package/dist/src/general/common.d.ts +94 -0
- package/dist/src/general/common.d.ts.map +1 -0
- package/dist/src/general/common.js +35 -0
- package/dist/src/general/estimateGas.d.ts +52 -0
- package/dist/src/general/estimateGas.d.ts.map +1 -0
- package/dist/src/general/estimateGas.js +64 -0
- package/dist/src/general/getBalance.d.ts +44 -0
- package/dist/src/general/getBalance.d.ts.map +1 -0
- package/dist/src/general/getBalance.js +43 -0
- package/dist/src/general/getBalancesBatch.d.ts +59 -0
- package/dist/src/general/getBalancesBatch.d.ts.map +1 -0
- package/dist/src/general/getBalancesBatch.js +34 -0
- package/dist/src/general/index.d.ts +100 -0
- package/dist/src/general/index.d.ts.map +1 -0
- package/dist/src/general/index.js +20 -0
- package/dist/src/general/searchBalances.d.ts +78 -0
- package/dist/src/general/searchBalances.d.ts.map +1 -0
- package/dist/src/general/searchBalances.js +49 -0
- package/dist/src/issuance/approve.d.ts +75 -0
- package/dist/src/issuance/approve.d.ts.map +1 -0
- package/dist/src/issuance/approve.js +36 -0
- package/dist/src/issuance/burn.d.ts +75 -0
- package/dist/src/issuance/burn.d.ts.map +1 -0
- package/dist/src/issuance/burn.js +36 -0
- package/dist/src/issuance/deploy.d.ts +88 -0
- package/dist/src/issuance/deploy.d.ts.map +1 -0
- package/dist/src/issuance/deploy.js +91 -0
- package/dist/src/issuance/grantRole.d.ts +78 -0
- package/dist/src/issuance/grantRole.d.ts.map +1 -0
- package/dist/src/issuance/grantRole.js +50 -0
- package/dist/src/issuance/index.d.ts +165 -0
- package/dist/src/issuance/index.d.ts.map +1 -0
- package/dist/src/issuance/index.js +23 -0
- package/dist/src/issuance/mint.d.ts +75 -0
- package/dist/src/issuance/mint.d.ts.map +1 -0
- package/dist/src/issuance/mint.js +36 -0
- package/dist/src/issuance/transfer.d.ts +75 -0
- package/dist/src/issuance/transfer.d.ts.map +1 -0
- package/dist/src/issuance/transfer.js +36 -0
- package/dist/src/serve.d.ts +2 -0
- package/dist/src/serve.d.ts.map +1 -0
- package/dist/src/serve.js +33 -0
- package/dist/src/staking/index.d.ts +242 -0
- package/dist/src/staking/index.d.ts.map +1 -0
- package/dist/src/staking/index.js +20 -0
- package/dist/src/staking/platforms/common/platform.d.ts +26 -0
- package/dist/src/staking/platforms/common/platform.d.ts.map +1 -0
- package/dist/src/staking/platforms/common/platform.js +26 -0
- package/dist/src/staking/platforms/common/platformNotFound.d.ts +9 -0
- package/dist/src/staking/platforms/common/platformNotFound.d.ts.map +1 -0
- package/dist/src/staking/platforms/common/platformNotFound.js +13 -0
- package/dist/src/staking/platforms/getPlatform/index.d.ts +26 -0
- package/dist/src/staking/platforms/getPlatform/index.d.ts.map +1 -0
- package/dist/src/staking/platforms/getPlatform/index.js +4 -0
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts +52 -0
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -0
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.js +58 -0
- package/dist/src/staking/platforms/index.d.ts +52 -0
- package/dist/src/staking/platforms/index.d.ts.map +1 -0
- package/dist/src/staking/platforms/index.js +10 -0
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts +32 -0
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts.map +1 -0
- package/dist/src/staking/platforms/searchPlatforms/index.js +4 -0
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +76 -0
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -0
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.js +42 -0
- package/dist/src/staking/pools/common/pool.d.ts +29 -0
- package/dist/src/staking/pools/common/pool.d.ts.map +1 -0
- package/dist/src/staking/pools/common/pool.js +28 -0
- package/dist/src/staking/pools/common/poolNotFound.d.ts +10 -0
- package/dist/src/staking/pools/common/poolNotFound.d.ts.map +1 -0
- package/dist/src/staking/pools/common/poolNotFound.js +14 -0
- package/dist/src/staking/pools/getPool/index.d.ts +20 -0
- package/dist/src/staking/pools/getPool/index.d.ts.map +1 -0
- package/dist/src/staking/pools/getPool/index.js +4 -0
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts +35 -0
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts.map +1 -0
- package/dist/src/staking/pools/getPool/v0/getPool.js +64 -0
- package/dist/src/staking/pools/index.d.ts +39 -0
- package/dist/src/staking/pools/index.d.ts.map +1 -0
- package/dist/src/staking/pools/index.js +10 -0
- package/dist/src/staking/pools/searchPools/index.d.ts +25 -0
- package/dist/src/staking/pools/searchPools/index.d.ts.map +1 -0
- package/dist/src/staking/pools/searchPools/index.js +4 -0
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts +55 -0
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -0
- package/dist/src/staking/pools/searchPools/v0/searchPools.js +42 -0
- package/dist/src/staking/roles/common/role.d.ts +13 -0
- package/dist/src/staking/roles/common/role.d.ts.map +1 -0
- package/dist/src/staking/roles/common/role.js +18 -0
- package/dist/src/staking/roles/common/roleAssignment.d.ts +27 -0
- package/dist/src/staking/roles/common/roleAssignment.d.ts.map +1 -0
- package/dist/src/staking/roles/common/roleAssignment.js +21 -0
- package/dist/src/staking/roles/common/roleEvent.d.ts +30 -0
- package/dist/src/staking/roles/common/roleEvent.d.ts.map +1 -0
- package/dist/src/staking/roles/common/roleEvent.js +23 -0
- package/dist/src/staking/roles/getRoles/index.d.ts +26 -0
- package/dist/src/staking/roles/getRoles/index.d.ts.map +1 -0
- package/dist/src/staking/roles/getRoles/index.js +4 -0
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts +29 -0
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/src/staking/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/src/staking/roles/grantRole/index.d.ts +29 -0
- package/dist/src/staking/roles/grantRole/index.d.ts.map +1 -0
- package/dist/src/staking/roles/grantRole/index.js +4 -0
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts +63 -0
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -0
- package/dist/src/staking/roles/grantRole/v0/grantRole.js +40 -0
- package/dist/src/staking/roles/index.d.ts +93 -0
- package/dist/src/staking/roles/index.d.ts.map +1 -0
- package/dist/src/staking/roles/index.js +14 -0
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts +27 -0
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoleEvents/index.js +4 -0
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +63 -0
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +58 -0
- package/dist/src/staking/roles/searchRoles/index.d.ts +27 -0
- package/dist/src/staking/roles/searchRoles/index.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoles/index.js +4 -0
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts +63 -0
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -0
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.js +56 -0
- package/dist/src/staking/stakes/common/stake.d.ts +44 -0
- package/dist/src/staking/stakes/common/stake.d.ts.map +1 -0
- package/dist/src/staking/stakes/common/stake.js +45 -0
- package/dist/src/staking/stakes/common/stakeEvent.d.ts +30 -0
- package/dist/src/staking/stakes/common/stakeEvent.d.ts.map +1 -0
- package/dist/src/staking/stakes/common/stakeEvent.js +24 -0
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts +9 -0
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts.map +1 -0
- package/dist/src/staking/stakes/common/stakeNotFound.js +13 -0
- package/dist/src/staking/stakes/getStake/index.d.ts +20 -0
- package/dist/src/staking/stakes/getStake/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/getStake/index.js +4 -0
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts +35 -0
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts.map +1 -0
- package/dist/src/staking/stakes/getStake/v0/getStake.js +64 -0
- package/dist/src/staking/stakes/index.d.ts +63 -0
- package/dist/src/staking/stakes/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/index.js +12 -0
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts +27 -0
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakeEvents/index.js +4 -0
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +63 -0
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +59 -0
- package/dist/src/staking/stakes/searchStakes/index.d.ts +27 -0
- package/dist/src/staking/stakes/searchStakes/index.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakes/index.js +4 -0
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts +63 -0
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -0
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.js +61 -0
- package/dist/src/staking-templates/index.d.ts +732 -0
- package/dist/src/staking-templates/index.d.ts.map +1 -0
- package/dist/src/staking-templates/index.js +18 -0
- package/dist/src/staking-templates/templates/common/amount.d.ts +13 -0
- package/dist/src/staking-templates/templates/common/amount.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/amount.js +17 -0
- package/dist/src/staking-templates/templates/common/amountMult.d.ts +3 -0
- package/dist/src/staking-templates/templates/common/amountMult.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/amountMult.js +23 -0
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts +12 -0
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/erc20Input.js +16 -0
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts +12 -0
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/erc20Reward.js +16 -0
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts +31 -0
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.js +47 -0
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts +40 -0
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.js +46 -0
- package/dist/src/staking-templates/templates/common/getReward.d.ts +58 -0
- package/dist/src/staking-templates/templates/common/getReward.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getReward.js +34 -0
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts +31 -0
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/getStakeEvent.js +51 -0
- package/dist/src/staking-templates/templates/common/lock.d.ts +12 -0
- package/dist/src/staking-templates/templates/common/lock.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/lock.js +20 -0
- package/dist/src/staking-templates/templates/common/lockMult.d.ts +3 -0
- package/dist/src/staking-templates/templates/common/lockMult.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/lockMult.js +15 -0
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts +62 -0
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/partialUnstake.js +39 -0
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts +13 -0
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/rewardDistribution.js +19 -0
- package/dist/src/staking-templates/templates/common/templates.d.ts +61 -0
- package/dist/src/staking-templates/templates/common/templates.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/templates.js +8 -0
- package/dist/src/staking-templates/templates/common/time.d.ts +2 -0
- package/dist/src/staking-templates/templates/common/time.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/time.js +4 -0
- package/dist/src/staking-templates/templates/common/unstake.d.ts +58 -0
- package/dist/src/staking-templates/templates/common/unstake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/common/unstake.js +34 -0
- package/dist/src/staking-templates/templates/reputation/common.d.ts +23 -0
- package/dist/src/staking-templates/templates/reputation/common.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/common.js +3 -0
- package/dist/src/staking-templates/templates/reputation/index.d.ts +233 -0
- package/dist/src/staking-templates/templates/reputation/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/index.js +4 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts +81 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.js +56 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts +113 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/createPool.js +85 -0
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts +233 -0
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/index.js +25 -0
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts +61 -0
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/restake.js +40 -0
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts +61 -0
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputation/v0/stake.js +45 -0
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts +23 -0
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/common.js +3 -0
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts +244 -0
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/index.js +4 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +81 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.js +56 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts +149 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.js +99 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts +244 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/index.js +25 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts +65 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.js +44 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts +65 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.js +46 -0
- package/dist/src/staking-templates/templates/rwa/common.d.ts +23 -0
- package/dist/src/staking-templates/templates/rwa/common.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/common.js +3 -0
- package/dist/src/staking-templates/templates/rwa/index.d.ts +256 -0
- package/dist/src/staking-templates/templates/rwa/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/index.js +4 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts +81 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.js +56 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts +109 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/createPool.js +79 -0
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts +256 -0
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/index.js +27 -0
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts +61 -0
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.js +41 -0
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts +61 -0
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/restake.js +40 -0
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts +61 -0
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts.map +1 -0
- package/dist/src/staking-templates/templates/rwa/v0/stake.js +45 -0
- package/dist/staking/index.d.ts +242 -0
- package/dist/staking/index.d.ts.map +1 -0
- package/dist/staking/index.js +20 -0
- package/dist/staking/platforms/common/platform.d.ts +26 -0
- package/dist/staking/platforms/common/platform.d.ts.map +1 -0
- package/dist/staking/platforms/common/platform.js +26 -0
- package/dist/staking/platforms/common/platformNotFound.d.ts +9 -0
- package/dist/staking/platforms/common/platformNotFound.d.ts.map +1 -0
- package/dist/staking/platforms/common/platformNotFound.js +13 -0
- package/dist/staking/platforms/getPlatform/index.d.ts +26 -0
- package/dist/staking/platforms/getPlatform/index.d.ts.map +1 -0
- package/dist/staking/platforms/getPlatform/index.js +4 -0
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +52 -0
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -0
- package/dist/staking/platforms/getPlatform/v0/getPlatform.js +58 -0
- package/dist/staking/platforms/index.d.ts +52 -0
- package/dist/staking/platforms/index.d.ts.map +1 -0
- package/dist/staking/platforms/index.js +10 -0
- package/dist/staking/platforms/searchPlatforms/index.d.ts +32 -0
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +1 -0
- package/dist/staking/platforms/searchPlatforms/index.js +4 -0
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +76 -0
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -0
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +42 -0
- package/dist/staking/pools/common/pool.d.ts +29 -0
- package/dist/staking/pools/common/pool.d.ts.map +1 -0
- package/dist/staking/pools/common/pool.js +28 -0
- package/dist/staking/pools/common/poolNotFound.d.ts +10 -0
- package/dist/staking/pools/common/poolNotFound.d.ts.map +1 -0
- package/dist/staking/pools/common/poolNotFound.js +14 -0
- package/dist/staking/pools/getPool/index.d.ts +20 -0
- package/dist/staking/pools/getPool/index.d.ts.map +1 -0
- package/dist/staking/pools/getPool/index.js +4 -0
- package/dist/staking/pools/getPool/v0/getPool.d.ts +35 -0
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +1 -0
- package/dist/staking/pools/getPool/v0/getPool.js +64 -0
- package/dist/staking/pools/index.d.ts +39 -0
- package/dist/staking/pools/index.d.ts.map +1 -0
- package/dist/staking/pools/index.js +10 -0
- package/dist/staking/pools/searchPools/index.d.ts +25 -0
- package/dist/staking/pools/searchPools/index.d.ts.map +1 -0
- package/dist/staking/pools/searchPools/index.js +4 -0
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +55 -0
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -0
- package/dist/staking/pools/searchPools/v0/searchPools.js +42 -0
- package/dist/staking/roles/common/role.d.ts +13 -0
- package/dist/staking/roles/common/role.d.ts.map +1 -0
- package/dist/staking/roles/common/role.js +18 -0
- package/dist/staking/roles/common/roleAssignment.d.ts +27 -0
- package/dist/staking/roles/common/roleAssignment.d.ts.map +1 -0
- package/dist/staking/roles/common/roleAssignment.js +21 -0
- package/dist/staking/roles/common/roleEvent.d.ts +30 -0
- package/dist/staking/roles/common/roleEvent.d.ts.map +1 -0
- package/dist/staking/roles/common/roleEvent.js +23 -0
- package/dist/staking/roles/getRoles/index.d.ts +26 -0
- package/dist/staking/roles/getRoles/index.d.ts.map +1 -0
- package/dist/staking/roles/getRoles/index.js +4 -0
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts +29 -0
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -0
- package/dist/staking/roles/getRoles/v0/getRoles.js +41 -0
- package/dist/staking/roles/grantRole/index.d.ts +29 -0
- package/dist/staking/roles/grantRole/index.d.ts.map +1 -0
- package/dist/staking/roles/grantRole/index.js +4 -0
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +63 -0
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -0
- package/dist/staking/roles/grantRole/v0/grantRole.js +40 -0
- package/dist/staking/roles/index.d.ts +93 -0
- package/dist/staking/roles/index.d.ts.map +1 -0
- package/dist/staking/roles/index.js +14 -0
- package/dist/staking/roles/searchRoleEvents/index.d.ts +27 -0
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +1 -0
- package/dist/staking/roles/searchRoleEvents/index.js +4 -0
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +63 -0
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -0
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +58 -0
- package/dist/staking/roles/searchRoles/index.d.ts +27 -0
- package/dist/staking/roles/searchRoles/index.d.ts.map +1 -0
- package/dist/staking/roles/searchRoles/index.js +4 -0
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +63 -0
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -0
- package/dist/staking/roles/searchRoles/v0/searchRoles.js +56 -0
- package/dist/staking/stakes/common/stake.d.ts +44 -0
- package/dist/staking/stakes/common/stake.d.ts.map +1 -0
- package/dist/staking/stakes/common/stake.js +45 -0
- package/dist/staking/stakes/common/stakeEvent.d.ts +30 -0
- package/dist/staking/stakes/common/stakeEvent.d.ts.map +1 -0
- package/dist/staking/stakes/common/stakeEvent.js +24 -0
- package/dist/staking/stakes/common/stakeNotFound.d.ts +9 -0
- package/dist/staking/stakes/common/stakeNotFound.d.ts.map +1 -0
- package/dist/staking/stakes/common/stakeNotFound.js +13 -0
- package/dist/staking/stakes/getStake/index.d.ts +20 -0
- package/dist/staking/stakes/getStake/index.d.ts.map +1 -0
- package/dist/staking/stakes/getStake/index.js +4 -0
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +35 -0
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +1 -0
- package/dist/staking/stakes/getStake/v0/getStake.js +64 -0
- package/dist/staking/stakes/index.d.ts +63 -0
- package/dist/staking/stakes/index.d.ts.map +1 -0
- package/dist/staking/stakes/index.js +12 -0
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +27 -0
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakeEvents/index.js +4 -0
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +63 -0
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +59 -0
- package/dist/staking/stakes/searchStakes/index.d.ts +27 -0
- package/dist/staking/stakes/searchStakes/index.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakes/index.js +4 -0
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +63 -0
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -0
- package/dist/staking/stakes/searchStakes/v0/searchStakes.js +61 -0
- package/dist/staking-templates/index.d.ts +732 -0
- package/dist/staking-templates/index.d.ts.map +1 -0
- package/dist/staking-templates/index.js +18 -0
- package/dist/staking-templates/templates/common/amount.d.ts +13 -0
- package/dist/staking-templates/templates/common/amount.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/amount.js +17 -0
- package/dist/staking-templates/templates/common/amountMult.d.ts +3 -0
- package/dist/staking-templates/templates/common/amountMult.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/amountMult.js +23 -0
- package/dist/staking-templates/templates/common/erc20Input.d.ts +12 -0
- package/dist/staking-templates/templates/common/erc20Input.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/erc20Input.js +16 -0
- package/dist/staking-templates/templates/common/erc20Reward.d.ts +12 -0
- package/dist/staking-templates/templates/common/erc20Reward.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/erc20Reward.js +16 -0
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts +31 -0
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/getCreatePoolEvent.js +47 -0
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts +40 -0
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.js +46 -0
- package/dist/staking-templates/templates/common/getReward.d.ts +58 -0
- package/dist/staking-templates/templates/common/getReward.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/getReward.js +34 -0
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts +31 -0
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/getStakeEvent.js +51 -0
- package/dist/staking-templates/templates/common/lock.d.ts +12 -0
- package/dist/staking-templates/templates/common/lock.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/lock.js +20 -0
- package/dist/staking-templates/templates/common/lockMult.d.ts +3 -0
- package/dist/staking-templates/templates/common/lockMult.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/lockMult.js +15 -0
- package/dist/staking-templates/templates/common/partialUnstake.d.ts +62 -0
- package/dist/staking-templates/templates/common/partialUnstake.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/partialUnstake.js +39 -0
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts +13 -0
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/rewardDistribution.js +19 -0
- package/dist/staking-templates/templates/common/templates.d.ts +61 -0
- package/dist/staking-templates/templates/common/templates.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/templates.js +8 -0
- package/dist/staking-templates/templates/common/time.d.ts +2 -0
- package/dist/staking-templates/templates/common/time.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/time.js +4 -0
- package/dist/staking-templates/templates/common/unstake.d.ts +58 -0
- package/dist/staking-templates/templates/common/unstake.d.ts.map +1 -0
- package/dist/staking-templates/templates/common/unstake.js +34 -0
- package/dist/staking-templates/templates/reputation/common.d.ts +23 -0
- package/dist/staking-templates/templates/reputation/common.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/common.js +3 -0
- package/dist/staking-templates/templates/reputation/index.d.ts +233 -0
- package/dist/staking-templates/templates/reputation/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/index.js +4 -0
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts +81 -0
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/createPlatform.js +56 -0
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts +113 -0
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/createPool.js +85 -0
- package/dist/staking-templates/templates/reputation/v0/index.d.ts +233 -0
- package/dist/staking-templates/templates/reputation/v0/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/index.js +25 -0
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts +61 -0
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/restake.js +40 -0
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts +61 -0
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputation/v0/stake.js +45 -0
- package/dist/staking-templates/templates/reputationLock/common.d.ts +23 -0
- package/dist/staking-templates/templates/reputationLock/common.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/common.js +3 -0
- package/dist/staking-templates/templates/reputationLock/index.d.ts +244 -0
- package/dist/staking-templates/templates/reputationLock/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/index.js +4 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +81 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.js +56 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts +149 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/createPool.js +99 -0
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts +244 -0
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/index.js +25 -0
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts +65 -0
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/restake.js +44 -0
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts +65 -0
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts.map +1 -0
- package/dist/staking-templates/templates/reputationLock/v0/stake.js +46 -0
- package/dist/staking-templates/templates/rwa/common.d.ts +23 -0
- package/dist/staking-templates/templates/rwa/common.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/common.js +3 -0
- package/dist/staking-templates/templates/rwa/index.d.ts +256 -0
- package/dist/staking-templates/templates/rwa/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/index.js +4 -0
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts +81 -0
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/createPlatform.js +56 -0
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts +109 -0
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/createPool.js +79 -0
- package/dist/staking-templates/templates/rwa/v0/index.d.ts +256 -0
- package/dist/staking-templates/templates/rwa/v0/index.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/index.js +27 -0
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.d.ts +61 -0
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.js +41 -0
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts +61 -0
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/restake.js +40 -0
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts +61 -0
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts.map +1 -0
- package/dist/staking-templates/templates/rwa/v0/stake.js +45 -0
- package/package.json +82 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/staking-templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAMvC,eAAO,MAAM,mBAAmB;;gBAElB,CAAC,SAAS,GAAG,WAAW,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe/C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createApiConfig } from "../common/app.js";
|
|
2
|
+
import { createRWATemplateApp } from "./templates/rwa/index.js";
|
|
3
|
+
import { createReputationTemplateApp } from "./templates/reputation/index.js";
|
|
4
|
+
import { createReputationLockTemplateApp } from "./templates/reputationLock/index.js";
|
|
5
|
+
export const stakingTemplatesApi = {
|
|
6
|
+
name: "Staking Templates",
|
|
7
|
+
createApp: (factory) => factory
|
|
8
|
+
.createApp()
|
|
9
|
+
.route("/stakingTemplates", factory
|
|
10
|
+
.createApp()
|
|
11
|
+
.route("/reputation", createReputationTemplateApp(factory))
|
|
12
|
+
.route("/reputationLock", createReputationLockTemplateApp(factory))
|
|
13
|
+
.route("/rwa", createRWATemplateApp(factory))),
|
|
14
|
+
config: createApiConfig({
|
|
15
|
+
title: "Staking Templates API",
|
|
16
|
+
description: "Staking Templates API for Decentralized finance",
|
|
17
|
+
}),
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
export declare const AmountHardCapSchema: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
3
|
+
export declare const AmountTwoBorderSchema: z.ZodObject<{
|
|
4
|
+
minAmount: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
5
|
+
maxAmount: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
minAmount: bigint;
|
|
8
|
+
maxAmount: bigint;
|
|
9
|
+
}, {
|
|
10
|
+
minAmount: string | number | bigint;
|
|
11
|
+
maxAmount: string | number | bigint;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=amount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amount.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/amount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,iFAE9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;EAa9B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
2
|
+
import { z } from "../../../common/zod.js";
|
|
3
|
+
export const AmountHardCapSchema = Int256Positive.openapi({
|
|
4
|
+
description: `The maximum number (uint256) of input Packets that can be allocated to the campaign.\n\nIf 0, then no upper limit is enforced on the specified campaign.`,
|
|
5
|
+
});
|
|
6
|
+
export const AmountTwoBorderSchema = z
|
|
7
|
+
.object({
|
|
8
|
+
minAmount: Int256Positive.openapi({
|
|
9
|
+
description: "The minimum number (uint256) of input packets required to create and maintain a position within the campaign must be less than or equal to maxAmount.",
|
|
10
|
+
}),
|
|
11
|
+
maxAmount: Int256Positive.openapi({
|
|
12
|
+
description: "The maximum number (uint256) of input packets that a position can support within the campaign. must be strictly greater than 0 (if no upper limit is required, use safe uint256 value.",
|
|
13
|
+
}),
|
|
14
|
+
})
|
|
15
|
+
.openapi({
|
|
16
|
+
ref: "AmountTwoBorder",
|
|
17
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
export declare const AmountMultIntervalSchema: z.ZodArray<z.ZodTuple<[z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>, z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>], null>, "many">;
|
|
3
|
+
//# sourceMappingURL=amountMult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amountMult.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/amountMult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,eAAO,MAAM,wBAAwB,0MAoBnC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
3
|
+
export const AmountMultIntervalSchema = z.array(z.tuple([Int256Positive, Int256Positive])).openapi({
|
|
4
|
+
ref: "AmountMultInterval",
|
|
5
|
+
description: `An array of tuples where:
|
|
6
|
+
1st element: An amount of Packets defining thresholds for amount-based multipliers.
|
|
7
|
+
2nd element: A respective multiplier values for each threshold.
|
|
8
|
+
|
|
9
|
+
Example of an interval-based schema configuration: If packetsAndMultipliers = \`[[100, 2], [300, 4]]\`:
|
|
10
|
+
A position with less than 100 staked packets will receive an amount multiplier of 1 (no multiplier).
|
|
11
|
+
A position with staked packets between 100 and 299 will receive an amount multiplier of 2.
|
|
12
|
+
A position with staked packets 300 or more will receive an amount multiplier of 4.
|
|
13
|
+
|
|
14
|
+
In addition to amount-wise scaling of rewards, staking campaigns may also scale
|
|
15
|
+
rewards based on the lock period (i.e., lock multipliers).
|
|
16
|
+
|
|
17
|
+
This implementation focuses solely on staked amount scaling, ensuring that
|
|
18
|
+
positions receive rewards according to the interval-based amount multiplier
|
|
19
|
+
schema defined by the associated campaign.
|
|
20
|
+
|
|
21
|
+
IMPORTANT: \`All values must be in strictly increasing order\`
|
|
22
|
+
`,
|
|
23
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
export declare const Erc20InputSchema: z.ZodObject<{
|
|
3
|
+
contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
4
|
+
amountOfTokensPerPacket: z.ZodPipeline<z.ZodString, z.ZodBigInt>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
contract: `0x${string}`;
|
|
7
|
+
amountOfTokensPerPacket: bigint;
|
|
8
|
+
}, {
|
|
9
|
+
contract: `0x${string}`;
|
|
10
|
+
amountOfTokensPerPacket: string;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=erc20Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc20Input.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/erc20Input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,eAAO,MAAM,gBAAgB;;;;;;;;;EAazB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
import { AddressSchema } from "../../../common/index.js";
|
|
3
|
+
export const Erc20InputSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
contract: AddressSchema.openapi({
|
|
6
|
+
description: "An address of the ERC20 token encapsulated by the Input Packet.",
|
|
7
|
+
}),
|
|
8
|
+
amountOfTokensPerPacket: z.string().pipe(z.coerce.bigint()).openapi({
|
|
9
|
+
type: "string",
|
|
10
|
+
description: "Amount of tokens per Packet (using Wei)",
|
|
11
|
+
}),
|
|
12
|
+
})
|
|
13
|
+
.openapi({
|
|
14
|
+
ref: "Erc20Input",
|
|
15
|
+
description: "Address and amount of tokens per Packet to be used as an Input for a Staking Pool",
|
|
16
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
export declare const Erc20RewardSchema: z.ZodObject<{
|
|
3
|
+
contract: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
4
|
+
amountOfTokensPerPacket: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
contract: `0x${string}`;
|
|
7
|
+
amountOfTokensPerPacket: bigint;
|
|
8
|
+
}, {
|
|
9
|
+
contract: `0x${string}`;
|
|
10
|
+
amountOfTokensPerPacket: string | number | bigint;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=erc20Reward.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc20Reward.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/erc20Reward.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAI3C,eAAO,MAAM,iBAAiB;;;;;;;;;EAY1B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
import { AddressSchema } from "../../../common/index.js";
|
|
3
|
+
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
4
|
+
export const Erc20RewardSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
contract: AddressSchema.openapi({
|
|
7
|
+
description: `An address of the ERC20 token encapsulated by the reward Packet.`,
|
|
8
|
+
}),
|
|
9
|
+
amountOfTokensPerPacket: Int256Positive.openapi({
|
|
10
|
+
description: `Amount of tokens per Packet \n\nIMPORTANT: should be parsed with each token's decimal precision (using wei values)`,
|
|
11
|
+
}),
|
|
12
|
+
})
|
|
13
|
+
.openapi({
|
|
14
|
+
ref: "Erc20Reward",
|
|
15
|
+
description: "Address and amount of tokens per Packet to be used as a Reward for a staking Pool",
|
|
16
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Env } from "hono";
|
|
2
|
+
import { Factory } from "hono/factory";
|
|
3
|
+
import { ITemplateHelper } from "./templates.js";
|
|
4
|
+
export declare function createGetCreatePoolEventRoute<E extends Env>(factory: Factory<E>, template: ITemplateHelper): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
5
|
+
in: {
|
|
6
|
+
query: {
|
|
7
|
+
chainId: string | string[];
|
|
8
|
+
hash: string | string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
out: {
|
|
12
|
+
query: {
|
|
13
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
14
|
+
hash: `0x${string}`;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
18
|
+
in: {
|
|
19
|
+
query: {
|
|
20
|
+
chainId: string | string[];
|
|
21
|
+
hash: string | string[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
out: {
|
|
25
|
+
query: {
|
|
26
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
27
|
+
hash: `0x${string}`;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>];
|
|
31
|
+
//# sourceMappingURL=getCreatePoolEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCreatePoolEvent.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/getCreatePoolEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;0EAoC1G"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { waitForTransactionReceipt } from "viem/actions";
|
|
4
|
+
import { parseAssetManagersDeployEvent } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
5
|
+
import { AddressSchema, PoolIdSchema, SentTransactionParamsSchema } from "../../../common/index.js";
|
|
6
|
+
import { getPublicClient } from "../../../common/blockchain.js";
|
|
7
|
+
import { HttpError } from "../../../common/http-error.js";
|
|
8
|
+
import { z } from "../../../common/zod.js";
|
|
9
|
+
export function createGetCreatePoolEventRoute(factory, template) {
|
|
10
|
+
return factory.createHandlers(describeRoute({
|
|
11
|
+
summary: "Get Pool Create Event",
|
|
12
|
+
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted with corresponding \`createPool\` action`,
|
|
13
|
+
tags: [template.tag.tag],
|
|
14
|
+
responses: {
|
|
15
|
+
200: {
|
|
16
|
+
description: "Details of the created pool",
|
|
17
|
+
content: {
|
|
18
|
+
"application/json": {
|
|
19
|
+
schema: resolver(z.object({
|
|
20
|
+
poolId: PoolIdSchema,
|
|
21
|
+
rewardAssetHandler: AddressSchema,
|
|
22
|
+
inputAssetKeeper: AddressSchema,
|
|
23
|
+
})),
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
}), validator("query", SentTransactionParamsSchema), async (c) => {
|
|
29
|
+
const params = c.req.valid("query");
|
|
30
|
+
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId), {
|
|
31
|
+
hash: params.hash,
|
|
32
|
+
});
|
|
33
|
+
const result = parseAssetManagersDeployEvent(template.template, receipt.logs);
|
|
34
|
+
if (!result) {
|
|
35
|
+
throw new UnableParseCreatePoolEvent();
|
|
36
|
+
}
|
|
37
|
+
return c.json(result, 200);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
class UnableParseCreatePoolEvent extends HttpError {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(500, {
|
|
43
|
+
message: `Can't parse pool create transaction. Make sure you're passing transaction that is generated by \`createPool\` action`,
|
|
44
|
+
name: "UnableParseCreatePoolEvent",
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Env } from "hono";
|
|
2
|
+
import { Factory } from "hono/factory";
|
|
3
|
+
import { ITemplateHelper } from "./templates.js";
|
|
4
|
+
export declare function createGetPlatformDeployEventRoute<E extends Env>(factory: Factory<E>, template: ITemplateHelper): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
5
|
+
diamondAddress: `0x${string}`;
|
|
6
|
+
admin: `0x${string}`;
|
|
7
|
+
}, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
8
|
+
in: {
|
|
9
|
+
query: {
|
|
10
|
+
chainId: string | string[];
|
|
11
|
+
hash: string | string[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
out: {
|
|
15
|
+
query: {
|
|
16
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
17
|
+
hash: `0x${string}`;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
21
|
+
diamondAddress: `0x${string}`;
|
|
22
|
+
admin: `0x${string}`;
|
|
23
|
+
}, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
24
|
+
in: {
|
|
25
|
+
query: {
|
|
26
|
+
chainId: string | string[];
|
|
27
|
+
hash: string | string[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
out: {
|
|
31
|
+
query: {
|
|
32
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
33
|
+
hash: `0x${string}`;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
37
|
+
diamondAddress: `0x${string}`;
|
|
38
|
+
admin: `0x${string}`;
|
|
39
|
+
}, 200, "json">>>];
|
|
40
|
+
//# sourceMappingURL=getPlatformDeployEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPlatformDeployEvent.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/getPlatformDeployEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AASvC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,wBAAgB,iCAAiC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAmC9G"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { parseDeployDiamondEvent } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
4
|
+
import { waitForTransactionReceipt } from "viem/actions";
|
|
5
|
+
import { AddressSchema, SentTransactionParamsSchema } from "../../../common/index.js";
|
|
6
|
+
import { getPublicClient } from "../../../common/blockchain.js";
|
|
7
|
+
import { HttpError } from "../../../common/http-error.js";
|
|
8
|
+
import { z } from "../../../common/zod.js";
|
|
9
|
+
export function createGetPlatformDeployEventRoute(factory, template) {
|
|
10
|
+
return factory.createHandlers(describeRoute({
|
|
11
|
+
summary: "Get Platform Deploy Event",
|
|
12
|
+
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted with corresponding \`createPlatform\` action`,
|
|
13
|
+
tags: [template.tag.tag],
|
|
14
|
+
responses: {
|
|
15
|
+
200: {
|
|
16
|
+
description: "Returns estimated gas or estimation error",
|
|
17
|
+
content: {
|
|
18
|
+
"application/json": {
|
|
19
|
+
schema: resolver(z.object({
|
|
20
|
+
diamondAddress: AddressSchema,
|
|
21
|
+
admin: AddressSchema,
|
|
22
|
+
})),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
}), validator("query", SentTransactionParamsSchema), async (c) => {
|
|
28
|
+
const params = c.req.valid("query");
|
|
29
|
+
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId), {
|
|
30
|
+
hash: params.hash,
|
|
31
|
+
});
|
|
32
|
+
const result = parseDeployDiamondEvent(receipt.logs);
|
|
33
|
+
if (!result) {
|
|
34
|
+
throw new UnableParsePlatformDeployEvent();
|
|
35
|
+
}
|
|
36
|
+
return c.json(result, 200);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
class UnableParsePlatformDeployEvent extends HttpError {
|
|
40
|
+
constructor() {
|
|
41
|
+
super(500, {
|
|
42
|
+
message: `Can't parse platform deployment transaction. Make sure you're passing transaction that is generated by \`createPlatform\` action`,
|
|
43
|
+
name: "UnableParsePlatformDeployEvent",
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Factory } from "hono/factory";
|
|
2
|
+
import { Env } from "hono";
|
|
3
|
+
import { ITemplateHelper } from "./templates.js";
|
|
4
|
+
export declare function createGetRewardRoute<E extends Env>(factory: Factory<E>, template: ITemplateHelper): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
5
|
+
data: `0x${string}`;
|
|
6
|
+
to: `0x${string}`;
|
|
7
|
+
details: {
|
|
8
|
+
functionName: string;
|
|
9
|
+
address: `0x${string}`;
|
|
10
|
+
abi: any[];
|
|
11
|
+
args: any[];
|
|
12
|
+
};
|
|
13
|
+
}, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
14
|
+
in: {
|
|
15
|
+
json: {
|
|
16
|
+
platform: `0x${string}`;
|
|
17
|
+
stakeId: string | number | bigint;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
out: {
|
|
21
|
+
json: {
|
|
22
|
+
platform: `0x${string}`;
|
|
23
|
+
stakeId: bigint;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
27
|
+
data: `0x${string}`;
|
|
28
|
+
to: `0x${string}`;
|
|
29
|
+
details: {
|
|
30
|
+
functionName: string;
|
|
31
|
+
address: `0x${string}`;
|
|
32
|
+
abi: any[];
|
|
33
|
+
args: any[];
|
|
34
|
+
};
|
|
35
|
+
}, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
36
|
+
in: {
|
|
37
|
+
json: {
|
|
38
|
+
platform: `0x${string}`;
|
|
39
|
+
stakeId: string | number | bigint;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
out: {
|
|
43
|
+
json: {
|
|
44
|
+
platform: `0x${string}`;
|
|
45
|
+
stakeId: bigint;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
49
|
+
data: `0x${string}`;
|
|
50
|
+
to: `0x${string}`;
|
|
51
|
+
details: {
|
|
52
|
+
functionName: string;
|
|
53
|
+
address: `0x${string}`;
|
|
54
|
+
abi: any[];
|
|
55
|
+
args: any[];
|
|
56
|
+
};
|
|
57
|
+
}, 200, "json">>>];
|
|
58
|
+
//# sourceMappingURL=getReward.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getReward.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/getReward.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAM3B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAmCjG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { z } from "../../../common/zod.js";
|
|
4
|
+
import { getReward } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
5
|
+
import { PlatformContractAddress, StakeIdSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
6
|
+
export function createGetRewardRoute(factory, template) {
|
|
7
|
+
return factory.createHandlers(describeRoute({
|
|
8
|
+
summary: "Get Reward",
|
|
9
|
+
description: "Generates a transaction for claiming all accumulated Rewards",
|
|
10
|
+
tags: [template.tag.tag],
|
|
11
|
+
responses: {
|
|
12
|
+
200: {
|
|
13
|
+
description: "Compiled Get Rewards transaction details",
|
|
14
|
+
content: {
|
|
15
|
+
"application/json": {
|
|
16
|
+
schema: resolver(TransactionSchema),
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
}), validator("json", z.object({
|
|
22
|
+
platform: PlatformContractAddress,
|
|
23
|
+
stakeId: StakeIdSchema,
|
|
24
|
+
})), async (c) => {
|
|
25
|
+
const { platform, stakeId } = c.req.valid("json");
|
|
26
|
+
const deployed = getReward(template.template, {
|
|
27
|
+
platform: platform,
|
|
28
|
+
data: {
|
|
29
|
+
stakeId: stakeId,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
return c.json(toTransaction(deployed), 200);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Factory } from "hono/factory";
|
|
2
|
+
import { Env } from "hono";
|
|
3
|
+
import { ITemplateHelper } from "./templates.js";
|
|
4
|
+
export declare function createStakeEventRoute<E extends Env>(factory: Factory<E>, template: ITemplateHelper): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
5
|
+
in: {
|
|
6
|
+
query: {
|
|
7
|
+
chainId: string | string[];
|
|
8
|
+
hash: string | string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
out: {
|
|
12
|
+
query: {
|
|
13
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
14
|
+
hash: `0x${string}`;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
18
|
+
in: {
|
|
19
|
+
query: {
|
|
20
|
+
chainId: string | string[];
|
|
21
|
+
hash: string | string[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
out: {
|
|
25
|
+
query: {
|
|
26
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
27
|
+
hash: `0x${string}`;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}, Promise<Response & import("hono").TypedResponse<never, 200, "json">>>];
|
|
31
|
+
//# sourceMappingURL=getStakeEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStakeEvent.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/getStakeEvent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAM3B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;0EAwClG"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { parseStakeEvent } from "@evergonlabs/tmi-protocol-staking-sdk";
|
|
4
|
+
import { AddressSchema, PoolIdSchema, SentTransactionParamsSchema, StakeIdSchema } from "../../../common/index.js";
|
|
5
|
+
import { z } from "../../../common/zod.js";
|
|
6
|
+
import { getPublicClient } from "../../../common/blockchain.js";
|
|
7
|
+
import { HttpError } from "../../../common/http-error.js";
|
|
8
|
+
import { waitForTransactionReceipt } from "viem/actions";
|
|
9
|
+
export function createStakeEventRoute(factory, template) {
|
|
10
|
+
return factory.createHandlers(describeRoute({
|
|
11
|
+
summary: "Get Stake Event",
|
|
12
|
+
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted with corresponding \`stake\` action`,
|
|
13
|
+
tags: [template.tag.tag],
|
|
14
|
+
responses: {
|
|
15
|
+
200: {
|
|
16
|
+
description: "Details of the created stake position",
|
|
17
|
+
content: {
|
|
18
|
+
"application/json": {
|
|
19
|
+
schema: resolver(z.object({
|
|
20
|
+
poolId: PoolIdSchema,
|
|
21
|
+
stakeId: StakeIdSchema,
|
|
22
|
+
operator: AddressSchema,
|
|
23
|
+
owner: AddressSchema,
|
|
24
|
+
// inputPacketsStaked: result.args.inputPacketsStaked,
|
|
25
|
+
// stakeStartActiveTimestamp: result.args.stakeStartActiveTimestamp,
|
|
26
|
+
// unlockTimestamp: result.args.unlockTimestamp,
|
|
27
|
+
})),
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
}), validator("query", SentTransactionParamsSchema), async (c) => {
|
|
33
|
+
const params = c.req.valid("query");
|
|
34
|
+
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId), {
|
|
35
|
+
hash: params.hash,
|
|
36
|
+
});
|
|
37
|
+
const result = parseStakeEvent(template.template, receipt.logs);
|
|
38
|
+
if (!result) {
|
|
39
|
+
throw new UnableParseStakeEvent();
|
|
40
|
+
}
|
|
41
|
+
return c.json(result, 200);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
class UnableParseStakeEvent extends HttpError {
|
|
45
|
+
constructor() {
|
|
46
|
+
super(500, {
|
|
47
|
+
message: `Can't parse stake transaction. Make sure you're passing transaction that is generated by \`stake\` action`,
|
|
48
|
+
name: "UnableParseStakeEvent",
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
export declare const LockTwoBorderSchema: z.ZodObject<{
|
|
3
|
+
minAcceptedLockPeriod: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
4
|
+
maxAcceptedLockPeriod: z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
minAcceptedLockPeriod: bigint;
|
|
7
|
+
maxAcceptedLockPeriod: bigint;
|
|
8
|
+
}, {
|
|
9
|
+
minAcceptedLockPeriod: string | number | bigint;
|
|
10
|
+
maxAcceptedLockPeriod: string | number | bigint;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=lock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/lock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,eAAO,MAAM,mBAAmB;;;;;;;;;EAiB5B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
3
|
+
export const LockTwoBorderSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
minAcceptedLockPeriod: Int256Positive.openapi({
|
|
6
|
+
description: `The minimum required time duration (in seconds), that staked assets must
|
|
7
|
+
be locked when the positions are either created (stake) or increased (restake).
|
|
8
|
+
\n\n
|
|
9
|
+
Note: Must be less than or equal to maxAcceptedLockPeriod.`,
|
|
10
|
+
}),
|
|
11
|
+
maxAcceptedLockPeriod: Int256Positive.openapi({
|
|
12
|
+
description: `The maximum allowed time duration (in seconds), that staked assets can be
|
|
13
|
+
locked when the positions are either created (stake) or increased (restake).
|
|
14
|
+
\n\n
|
|
15
|
+
Note: Must be greater than 0 (if no upper limit is required, use max int 256).`,
|
|
16
|
+
}),
|
|
17
|
+
})
|
|
18
|
+
.openapi({
|
|
19
|
+
ref: "LockTwoBorder",
|
|
20
|
+
});
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
export declare const LockMultIntervalSchema: z.ZodArray<z.ZodTuple<[z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>, z.ZodPipeline<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBigInt]>, z.ZodBigInt>], null>, "many">;
|
|
3
|
+
//# sourceMappingURL=lockMult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockMult.d.ts","sourceRoot":"","sources":["../../../../src/staking-templates/templates/common/lockMult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAG3C,eAAO,MAAM,sBAAsB,0MAYjC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "../../../common/zod.js";
|
|
2
|
+
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
3
|
+
export const LockMultIntervalSchema = z.array(z.tuple([Int256Positive, Int256Positive])).openapi({
|
|
4
|
+
ref: "LockMultInterval",
|
|
5
|
+
description: `An array of tuples where:
|
|
6
|
+
|
|
7
|
+
1st element: A time duration (in seconds) defining lock duration thresholds for lock-based multipliers.
|
|
8
|
+
2nd element: A respective multiplier values for each threshold.
|
|
9
|
+
Example: If lockPeriods = [[100, 2], [300, 4]]
|
|
10
|
+
|
|
11
|
+
A position with lock duration less than 100 seconds will receive a lock multiplier of 1 (no multiplier).
|
|
12
|
+
A position with lock duration between 100 and 299 seconds will receive a lock multiplier of 2.
|
|
13
|
+
A position with lock duration 300 seconds or more will receive a lock multiplier of 4.
|
|
14
|
+
`,
|
|
15
|
+
});
|