@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,94 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Factory } from "hono/factory";
|
|
3
|
+
import { Env } from "hono";
|
|
4
|
+
export declare const ClaimVestedTokensRequestSchema: z.ZodObject<{
|
|
5
|
+
address: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
+
campaignId: z.ZodBigInt;
|
|
7
|
+
amountOfFractions: z.ZodBigInt;
|
|
8
|
+
itToBurn: z.ZodBigInt;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
address: `0x${string}`;
|
|
11
|
+
campaignId: bigint;
|
|
12
|
+
amountOfFractions: bigint;
|
|
13
|
+
itToBurn: bigint;
|
|
14
|
+
}, {
|
|
15
|
+
address: `0x${string}`;
|
|
16
|
+
campaignId: bigint;
|
|
17
|
+
amountOfFractions: bigint;
|
|
18
|
+
itToBurn: bigint;
|
|
19
|
+
}>;
|
|
20
|
+
export declare function createClaimVestedTokensTransaction<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<(Response & import("hono").TypedResponse<{
|
|
21
|
+
data: `0x${string}`;
|
|
22
|
+
to: `0x${string}`;
|
|
23
|
+
details: {
|
|
24
|
+
functionName: string;
|
|
25
|
+
address: `0x${string}`;
|
|
26
|
+
abi: any[];
|
|
27
|
+
args: any[];
|
|
28
|
+
};
|
|
29
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
30
|
+
error: string;
|
|
31
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
32
|
+
error: string;
|
|
33
|
+
}, 500, "json">)>>, import("hono/types").H<Env, string, {
|
|
34
|
+
in: {
|
|
35
|
+
json: {
|
|
36
|
+
address: `0x${string}`;
|
|
37
|
+
campaignId: bigint;
|
|
38
|
+
amountOfFractions: bigint;
|
|
39
|
+
itToBurn: bigint;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
out: {
|
|
43
|
+
json: {
|
|
44
|
+
address: `0x${string}`;
|
|
45
|
+
campaignId: bigint;
|
|
46
|
+
amountOfFractions: bigint;
|
|
47
|
+
itToBurn: bigint;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}, Promise<(Response & import("hono").TypedResponse<{
|
|
51
|
+
data: `0x${string}`;
|
|
52
|
+
to: `0x${string}`;
|
|
53
|
+
details: {
|
|
54
|
+
functionName: string;
|
|
55
|
+
address: `0x${string}`;
|
|
56
|
+
abi: any[];
|
|
57
|
+
args: any[];
|
|
58
|
+
};
|
|
59
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
60
|
+
error: string;
|
|
61
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
62
|
+
error: string;
|
|
63
|
+
}, 500, "json">)>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
64
|
+
in: {
|
|
65
|
+
json: {
|
|
66
|
+
address: `0x${string}`;
|
|
67
|
+
campaignId: bigint;
|
|
68
|
+
amountOfFractions: bigint;
|
|
69
|
+
itToBurn: bigint;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
out: {
|
|
73
|
+
json: {
|
|
74
|
+
address: `0x${string}`;
|
|
75
|
+
campaignId: bigint;
|
|
76
|
+
amountOfFractions: bigint;
|
|
77
|
+
itToBurn: bigint;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}, Promise<(Response & import("hono").TypedResponse<{
|
|
81
|
+
data: `0x${string}`;
|
|
82
|
+
to: `0x${string}`;
|
|
83
|
+
details: {
|
|
84
|
+
functionName: string;
|
|
85
|
+
address: `0x${string}`;
|
|
86
|
+
abi: any[];
|
|
87
|
+
args: any[];
|
|
88
|
+
};
|
|
89
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
90
|
+
error: string;
|
|
91
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
92
|
+
error: string;
|
|
93
|
+
}, 500, "json">)>>];
|
|
94
|
+
//# sourceMappingURL=claimVestedTokens.route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claimVestedTokens.route.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/sales/vesting/v0/claimVestedTokens.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAG3B,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;EAKzC,CAAC;AAkBH,wBAAgB,kCAAkC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkBpF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AddressSchema, toTransaction, TransactionSchema } from "../../../../common/index.js";
|
|
3
|
+
import { describeRoute } from "hono-openapi";
|
|
4
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
5
|
+
import { claimVestedTokens } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
6
|
+
export const ClaimVestedTokensRequestSchema = z.object({
|
|
7
|
+
address: AddressSchema,
|
|
8
|
+
campaignId: z.coerce.bigint().positive(),
|
|
9
|
+
amountOfFractions: z.coerce.bigint().positive(),
|
|
10
|
+
itToBurn: z.coerce.bigint().nonnegative(),
|
|
11
|
+
});
|
|
12
|
+
const route = describeRoute({
|
|
13
|
+
summary: "Claim vested tokens",
|
|
14
|
+
description: "Returns transaction data for claiming vested tokens from a campaign",
|
|
15
|
+
tags: ["Fractions Vesting"],
|
|
16
|
+
responses: {
|
|
17
|
+
200: {
|
|
18
|
+
description: "Returns transaction data for claiming vested tokens",
|
|
19
|
+
content: {
|
|
20
|
+
"application/json": {
|
|
21
|
+
schema: resolver(TransactionSchema),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
export function createClaimVestedTokensTransaction(factory) {
|
|
28
|
+
return factory.createHandlers(route, validator("json", ClaimVestedTokensRequestSchema.openapi({ ref: "ClaimVestedTokensRequestSchema" })), async (c) => {
|
|
29
|
+
const request = c.req.valid("json");
|
|
30
|
+
try {
|
|
31
|
+
const tx = claimVestedTokens(request);
|
|
32
|
+
return c.json(toTransaction(tx));
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
if (error instanceof Error) {
|
|
36
|
+
return c.json({ error: error.message }, 400);
|
|
37
|
+
}
|
|
38
|
+
return c.json({ error: "An unknown error occurred" }, 500);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Factory } from "hono/factory";
|
|
2
|
+
import { Env } from "hono";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
export declare const EditCliffRequestSchema: z.ZodObject<{
|
|
5
|
+
marketAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
+
saleId: z.ZodBigInt;
|
|
7
|
+
newCliffDate: z.ZodDate;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
saleId: bigint;
|
|
10
|
+
marketAddress: `0x${string}`;
|
|
11
|
+
newCliffDate: Date;
|
|
12
|
+
}, {
|
|
13
|
+
saleId: bigint;
|
|
14
|
+
marketAddress: `0x${string}`;
|
|
15
|
+
newCliffDate: Date;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function createEditCliffTransactionApp<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<(Response & import("hono").TypedResponse<{
|
|
18
|
+
data: `0x${string}`;
|
|
19
|
+
to: `0x${string}`;
|
|
20
|
+
details: {
|
|
21
|
+
functionName: string;
|
|
22
|
+
address: `0x${string}`;
|
|
23
|
+
abi: any[];
|
|
24
|
+
args: any[];
|
|
25
|
+
};
|
|
26
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
27
|
+
error: string;
|
|
28
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
29
|
+
error: string;
|
|
30
|
+
}, 500, "json">)>>, import("hono/types").H<Env, string, {
|
|
31
|
+
in: {
|
|
32
|
+
json: {
|
|
33
|
+
saleId: bigint;
|
|
34
|
+
marketAddress: `0x${string}`;
|
|
35
|
+
newCliffDate: Date;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
out: {
|
|
39
|
+
json: {
|
|
40
|
+
saleId: bigint;
|
|
41
|
+
marketAddress: `0x${string}`;
|
|
42
|
+
newCliffDate: Date;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}, Promise<(Response & import("hono").TypedResponse<{
|
|
46
|
+
data: `0x${string}`;
|
|
47
|
+
to: `0x${string}`;
|
|
48
|
+
details: {
|
|
49
|
+
functionName: string;
|
|
50
|
+
address: `0x${string}`;
|
|
51
|
+
abi: any[];
|
|
52
|
+
args: any[];
|
|
53
|
+
};
|
|
54
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
55
|
+
error: string;
|
|
56
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
57
|
+
error: string;
|
|
58
|
+
}, 500, "json">)>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
59
|
+
in: {
|
|
60
|
+
json: {
|
|
61
|
+
saleId: bigint;
|
|
62
|
+
marketAddress: `0x${string}`;
|
|
63
|
+
newCliffDate: Date;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
out: {
|
|
67
|
+
json: {
|
|
68
|
+
saleId: bigint;
|
|
69
|
+
marketAddress: `0x${string}`;
|
|
70
|
+
newCliffDate: Date;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
}, Promise<(Response & import("hono").TypedResponse<{
|
|
74
|
+
data: `0x${string}`;
|
|
75
|
+
to: `0x${string}`;
|
|
76
|
+
details: {
|
|
77
|
+
functionName: string;
|
|
78
|
+
address: `0x${string}`;
|
|
79
|
+
abi: any[];
|
|
80
|
+
args: any[];
|
|
81
|
+
};
|
|
82
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">) | (Response & import("hono").TypedResponse<{
|
|
83
|
+
error: string;
|
|
84
|
+
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
85
|
+
error: string;
|
|
86
|
+
}, 500, "json">)>>];
|
|
87
|
+
//# sourceMappingURL=editCliff.route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editCliff.route.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/sales/vesting/v0/editCliff.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAG3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAkBH,wBAAgB,6BAA6B,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkB/E"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { buildEditCliffTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { AddressSchema, toTransaction, TransactionSchema } from "../../../../common/index.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
export const EditCliffRequestSchema = z.object({
|
|
7
|
+
marketAddress: AddressSchema,
|
|
8
|
+
saleId: z.coerce.bigint().positive(),
|
|
9
|
+
newCliffDate: z.coerce.date(),
|
|
10
|
+
});
|
|
11
|
+
const route = describeRoute({
|
|
12
|
+
summary: "Edit the cliff of a vesting schedule",
|
|
13
|
+
description: "Returns transaction data for updating the cliff date in a vesting schedule",
|
|
14
|
+
tags: ["Fractions Vesting"],
|
|
15
|
+
responses: {
|
|
16
|
+
200: {
|
|
17
|
+
description: "Returns transaction data for editing the cliff date",
|
|
18
|
+
content: {
|
|
19
|
+
"application/json": {
|
|
20
|
+
schema: resolver(TransactionSchema),
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
export function createEditCliffTransactionApp(factory) {
|
|
27
|
+
return factory.createHandlers(route, validator("json", EditCliffRequestSchema.openapi({ ref: "EditCliffRequestSchema" })), async (c) => {
|
|
28
|
+
const { marketAddress, saleId, newCliffDate } = c.req.valid("json");
|
|
29
|
+
try {
|
|
30
|
+
const tx = buildEditCliffTx(marketAddress, saleId, newCliffDate);
|
|
31
|
+
return c.json(toTransaction(tx));
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
if (error instanceof Error) {
|
|
35
|
+
return c.json({ error: error.message }, 400);
|
|
36
|
+
}
|
|
37
|
+
return c.json({ error: "An unknown error occurred" }, 500);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Env } from "hono";
|
|
2
|
+
import { Factory } from "hono/factory";
|
|
3
|
+
export declare function createGetClaimVestedTokensEventRoute<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
4
|
+
campaignId: string;
|
|
5
|
+
receiver: `0x${string}`;
|
|
6
|
+
burnId: string;
|
|
7
|
+
nextBurnId: string | null;
|
|
8
|
+
amountOfFractionsBurnt: string;
|
|
9
|
+
}, 200, "json">>>, import("hono/types").H<Env, string, {
|
|
10
|
+
in: {
|
|
11
|
+
query: {
|
|
12
|
+
chainId: string | string[];
|
|
13
|
+
hash: string | string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
out: {
|
|
17
|
+
query: {
|
|
18
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
19
|
+
hash: `0x${string}`;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
23
|
+
campaignId: string;
|
|
24
|
+
receiver: `0x${string}`;
|
|
25
|
+
burnId: string;
|
|
26
|
+
nextBurnId: string | null;
|
|
27
|
+
amountOfFractionsBurnt: string;
|
|
28
|
+
}, 200, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
29
|
+
in: {
|
|
30
|
+
query: {
|
|
31
|
+
chainId: string | string[];
|
|
32
|
+
hash: string | string[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
out: {
|
|
36
|
+
query: {
|
|
37
|
+
chainId: import("@evergonlabs/tmi-protocol-fractions-sdk").TmiChainId;
|
|
38
|
+
hash: `0x${string}`;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
42
|
+
campaignId: string;
|
|
43
|
+
receiver: `0x${string}`;
|
|
44
|
+
burnId: string;
|
|
45
|
+
nextBurnId: string | null;
|
|
46
|
+
amountOfFractionsBurnt: string;
|
|
47
|
+
}, 200, "json">>>];
|
|
48
|
+
//# sourceMappingURL=parseClaimVestedTokensEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseClaimVestedTokensEvent.d.ts","sourceRoot":"","sources":["../../../../../src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAWvC,wBAAgB,oCAAoC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgDtF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { waitForTransactionReceipt } from "viem/actions";
|
|
4
|
+
import { AddressSchema, CampaignIdSchema, SentTransactionParamsSchema } from "../../../../common/index.js";
|
|
5
|
+
import { getPublicClient } from "../../../../common/blockchain.js";
|
|
6
|
+
import { HttpError } from "../../../../common/http-error.js";
|
|
7
|
+
import { z } from "../../../../common/zod.js";
|
|
8
|
+
import { Int256Positive } from "@evergonlabs/tmi-utils/models";
|
|
9
|
+
import { parseClaimVestedTokensEvent } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
10
|
+
export function createGetClaimVestedTokensEventRoute(factory) {
|
|
11
|
+
return factory.createHandlers(describeRoute({
|
|
12
|
+
summary: "Get ClaimVestedTokens Event",
|
|
13
|
+
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted with corresponding \`claimVestedTokens\` action`,
|
|
14
|
+
tags: ["Fractions Vesting"],
|
|
15
|
+
responses: {
|
|
16
|
+
200: {
|
|
17
|
+
description: "Returns parsed event log",
|
|
18
|
+
content: {
|
|
19
|
+
"application/json": {
|
|
20
|
+
schema: resolver(z.object({
|
|
21
|
+
campaignId: CampaignIdSchema,
|
|
22
|
+
receiver: AddressSchema,
|
|
23
|
+
burnId: Int256Positive,
|
|
24
|
+
nextBurnId: z.union([Int256Positive, z.null()]),
|
|
25
|
+
amountOfFractionsBurnt: Int256Positive,
|
|
26
|
+
})),
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
}), validator("query", SentTransactionParamsSchema), async (c) => {
|
|
32
|
+
const params = c.req.valid("query");
|
|
33
|
+
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId), {
|
|
34
|
+
hash: params.hash,
|
|
35
|
+
});
|
|
36
|
+
const result = parseClaimVestedTokensEvent(receipt.logs);
|
|
37
|
+
if (!result) {
|
|
38
|
+
throw new UnableParseClaimVestedTokensEvent();
|
|
39
|
+
}
|
|
40
|
+
const { campaignId, receiver, burnId, nextBurnId, amountOfFractionsBurnt } = result;
|
|
41
|
+
return c.json({
|
|
42
|
+
campaignId: campaignId.toString(),
|
|
43
|
+
receiver: receiver,
|
|
44
|
+
burnId: burnId.toString(),
|
|
45
|
+
nextBurnId: nextBurnId !== null ? nextBurnId.toString() : null,
|
|
46
|
+
amountOfFractionsBurnt: amountOfFractionsBurnt.toString(),
|
|
47
|
+
}, 200);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
class UnableParseClaimVestedTokensEvent extends HttpError {
|
|
51
|
+
constructor() {
|
|
52
|
+
super(500, {
|
|
53
|
+
message: `Can't parse ClaimVestedTokens transaction. Make sure you're passing transaction that is generated by \`claimVestedTokens\` action`,
|
|
54
|
+
name: "UnableParseClaimVestedTokensEvent",
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Env } from "hono";
|
|
2
|
+
import { Factory } from "hono/factory";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
export declare const WithdrawRequestSchema: z.ZodObject<{
|
|
5
|
+
market: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
+
campaignId: z.ZodBigInt;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
campaignId: bigint;
|
|
9
|
+
market: `0x${string}`;
|
|
10
|
+
}, {
|
|
11
|
+
campaignId: bigint;
|
|
12
|
+
market: `0x${string}`;
|
|
13
|
+
}>;
|
|
14
|
+
export declare function createWithdrawPaymentFromSaleTransactionV0<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
15
|
+
data: `0x${string}`;
|
|
16
|
+
to: `0x${string}`;
|
|
17
|
+
details: {
|
|
18
|
+
functionName: string;
|
|
19
|
+
address: `0x${string}`;
|
|
20
|
+
abi: any[];
|
|
21
|
+
args: any[];
|
|
22
|
+
};
|
|
23
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
24
|
+
in: {
|
|
25
|
+
json: {
|
|
26
|
+
campaignId: bigint;
|
|
27
|
+
market: `0x${string}`;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
out: {
|
|
31
|
+
json: {
|
|
32
|
+
campaignId: bigint;
|
|
33
|
+
market: `0x${string}`;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
37
|
+
data: `0x${string}`;
|
|
38
|
+
to: `0x${string}`;
|
|
39
|
+
details: {
|
|
40
|
+
functionName: string;
|
|
41
|
+
address: `0x${string}`;
|
|
42
|
+
abi: any[];
|
|
43
|
+
args: any[];
|
|
44
|
+
};
|
|
45
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
46
|
+
in: {
|
|
47
|
+
json: {
|
|
48
|
+
campaignId: bigint;
|
|
49
|
+
market: `0x${string}`;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
out: {
|
|
53
|
+
json: {
|
|
54
|
+
campaignId: bigint;
|
|
55
|
+
market: `0x${string}`;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}, Promise<Response & import("hono").TypedResponse<{
|
|
59
|
+
data: `0x${string}`;
|
|
60
|
+
to: `0x${string}`;
|
|
61
|
+
details: {
|
|
62
|
+
functionName: string;
|
|
63
|
+
address: `0x${string}`;
|
|
64
|
+
abi: any[];
|
|
65
|
+
args: any[];
|
|
66
|
+
};
|
|
67
|
+
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
68
|
+
//# sourceMappingURL=withdraw.route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdraw.route.d.ts","sourceRoot":"","sources":["../../../../src/fractions/withdraw/v0/withdraw.route.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAKvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AAkBH,wBAAgB,0CAA0C,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAU5F"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
+
import { builtWithdrawTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
export const WithdrawRequestSchema = z.object({
|
|
7
|
+
market: AddressSchema,
|
|
8
|
+
campaignId: z.coerce.bigint(),
|
|
9
|
+
});
|
|
10
|
+
const route = describeRoute({
|
|
11
|
+
summary: "Withdraw payment tokens from a sale",
|
|
12
|
+
description: "Returns transaction to withdraw payment tokens from a sale",
|
|
13
|
+
tags: ["Fractions"],
|
|
14
|
+
responses: {
|
|
15
|
+
200: {
|
|
16
|
+
description: "Returns transaction to withdraw payment tokens from a sale",
|
|
17
|
+
content: {
|
|
18
|
+
"application/json": {
|
|
19
|
+
schema: resolver(TransactionSchema),
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
export function createWithdrawPaymentFromSaleTransactionV0(factory) {
|
|
26
|
+
return factory.createHandlers(route, validator("json", WithdrawRequestSchema.openapi({ ref: "WithdrawRequestSchema" })), async (c) => {
|
|
27
|
+
const { market, campaignId } = c.req.valid("json");
|
|
28
|
+
const tx = builtWithdrawTx(market, campaignId);
|
|
29
|
+
return c.json(toTransaction(tx));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Address } from "viem";
|
|
2
|
+
import { TmiChainId } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
3
|
+
export type TokenBalance = {
|
|
4
|
+
balance: bigint;
|
|
5
|
+
contractAddress: Address;
|
|
6
|
+
decimals: number | undefined;
|
|
7
|
+
name: string;
|
|
8
|
+
symbol: string;
|
|
9
|
+
type: "ERC-20" | "ERC-721" | "ERC-1155";
|
|
10
|
+
id: bigint | undefined;
|
|
11
|
+
};
|
|
12
|
+
export declare function getTokenBalance(wallet: Address, chainId: TmiChainId, contracts?: Address[]): Promise<TokenBalance[]>;
|
|
13
|
+
//# sourceMappingURL=balance-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balance-client.d.ts","sourceRoot":"","sources":["../../src/general/balance-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAErE,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;IACxC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB,CAAC;AAQF,wBAAsB,eAAe,CACnC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,EACnB,SAAS,CAAC,EAAE,OAAO,EAAE,GACpB,OAAO,CAAC,YAAY,EAAE,CAAC,CAsBzB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { getBalancesApi } from "../common/blockchain.js";
|
|
2
|
+
import axios from "axios";
|
|
3
|
+
export async function getTokenBalance(wallet, chainId, contracts) {
|
|
4
|
+
const url = getBalancesApi(chainId);
|
|
5
|
+
try {
|
|
6
|
+
const result = await axios.get(url, {
|
|
7
|
+
params: {
|
|
8
|
+
module: "account",
|
|
9
|
+
action: "tokenlist",
|
|
10
|
+
address: wallet,
|
|
11
|
+
},
|
|
12
|
+
});
|
|
13
|
+
if (contracts) {
|
|
14
|
+
return result.data.result.filter((token) => contracts.includes(token.contractAddress));
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return result.data.result;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
if (axios.isAxiosError(error)) {
|
|
22
|
+
throw new Error(`Network error: ${error.message}`);
|
|
23
|
+
}
|
|
24
|
+
throw error;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Core } from "@quicknode/sdk";
|
|
3
|
+
import { TmiChainId } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
+
export declare const TokenBalanceSchema: z.ZodObject<{
|
|
5
|
+
address: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
+
totalBalance: z.ZodString;
|
|
7
|
+
tokenId: z.ZodOptional<z.ZodBigInt>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
symbol: z.ZodNullable<z.ZodString>;
|
|
10
|
+
decimals: z.ZodNullable<z.ZodString>;
|
|
11
|
+
quantityIn: z.ZodString;
|
|
12
|
+
quantityOut: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
symbol: string | null;
|
|
15
|
+
name: string | null;
|
|
16
|
+
address: `0x${string}`;
|
|
17
|
+
decimals: string | null;
|
|
18
|
+
totalBalance: string;
|
|
19
|
+
quantityIn: string;
|
|
20
|
+
quantityOut: string;
|
|
21
|
+
tokenId?: bigint | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
symbol: string | null;
|
|
24
|
+
name: string | null;
|
|
25
|
+
address: `0x${string}`;
|
|
26
|
+
decimals: string | null;
|
|
27
|
+
totalBalance: string;
|
|
28
|
+
quantityIn: string;
|
|
29
|
+
quantityOut: string;
|
|
30
|
+
tokenId?: bigint | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const BalancesResponseSchema: z.ZodObject<{
|
|
33
|
+
balances: z.ZodArray<z.ZodObject<{
|
|
34
|
+
address: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
35
|
+
totalBalance: z.ZodString;
|
|
36
|
+
tokenId: z.ZodOptional<z.ZodBigInt>;
|
|
37
|
+
name: z.ZodNullable<z.ZodString>;
|
|
38
|
+
symbol: z.ZodNullable<z.ZodString>;
|
|
39
|
+
decimals: z.ZodNullable<z.ZodString>;
|
|
40
|
+
quantityIn: z.ZodString;
|
|
41
|
+
quantityOut: z.ZodString;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
symbol: string | null;
|
|
44
|
+
name: string | null;
|
|
45
|
+
address: `0x${string}`;
|
|
46
|
+
decimals: string | null;
|
|
47
|
+
totalBalance: string;
|
|
48
|
+
quantityIn: string;
|
|
49
|
+
quantityOut: string;
|
|
50
|
+
tokenId?: bigint | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
symbol: string | null;
|
|
53
|
+
name: string | null;
|
|
54
|
+
address: `0x${string}`;
|
|
55
|
+
decimals: string | null;
|
|
56
|
+
totalBalance: string;
|
|
57
|
+
quantityIn: string;
|
|
58
|
+
quantityOut: string;
|
|
59
|
+
tokenId?: bigint | undefined;
|
|
60
|
+
}>, "many">;
|
|
61
|
+
totalItems: z.ZodNumber;
|
|
62
|
+
totalPages: z.ZodNumber;
|
|
63
|
+
pageNumber: z.ZodNumber;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
balances: {
|
|
66
|
+
symbol: string | null;
|
|
67
|
+
name: string | null;
|
|
68
|
+
address: `0x${string}`;
|
|
69
|
+
decimals: string | null;
|
|
70
|
+
totalBalance: string;
|
|
71
|
+
quantityIn: string;
|
|
72
|
+
quantityOut: string;
|
|
73
|
+
tokenId?: bigint | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
totalItems: number;
|
|
76
|
+
totalPages: number;
|
|
77
|
+
pageNumber: number;
|
|
78
|
+
}, {
|
|
79
|
+
balances: {
|
|
80
|
+
symbol: string | null;
|
|
81
|
+
name: string | null;
|
|
82
|
+
address: `0x${string}`;
|
|
83
|
+
decimals: string | null;
|
|
84
|
+
totalBalance: string;
|
|
85
|
+
quantityIn: string;
|
|
86
|
+
quantityOut: string;
|
|
87
|
+
tokenId?: bigint | undefined;
|
|
88
|
+
}[];
|
|
89
|
+
totalItems: number;
|
|
90
|
+
totalPages: number;
|
|
91
|
+
pageNumber: number;
|
|
92
|
+
}>;
|
|
93
|
+
export declare function getQuicknode(chainId: TmiChainId): Core;
|
|
94
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/general/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAErE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa3B,CAAC;AAEL,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS/B,CAAC;AAEL,wBAAgB,YAAY,CAAC,OAAO,EAAE,UAAU,QAM/C"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Core } from "@quicknode/sdk";
|
|
3
|
+
import { AddressSchema } from "../common/index.js";
|
|
4
|
+
import { getBalancesRpc } from "../common/blockchain.js";
|
|
5
|
+
export const TokenBalanceSchema = z
|
|
6
|
+
.object({
|
|
7
|
+
address: AddressSchema,
|
|
8
|
+
totalBalance: z.string(),
|
|
9
|
+
tokenId: z.bigint().optional(),
|
|
10
|
+
name: z.string().nullable(),
|
|
11
|
+
symbol: z.string().nullable(),
|
|
12
|
+
decimals: z.string().nullable(),
|
|
13
|
+
quantityIn: z.string(),
|
|
14
|
+
quantityOut: z.string(),
|
|
15
|
+
})
|
|
16
|
+
.openapi({
|
|
17
|
+
ref: "TokenBalanceSchema",
|
|
18
|
+
});
|
|
19
|
+
export const BalancesResponseSchema = z
|
|
20
|
+
.object({
|
|
21
|
+
balances: z.array(TokenBalanceSchema),
|
|
22
|
+
totalItems: z.number(),
|
|
23
|
+
totalPages: z.number(),
|
|
24
|
+
pageNumber: z.number(),
|
|
25
|
+
})
|
|
26
|
+
.openapi({
|
|
27
|
+
ref: "BalancesResponseSchema",
|
|
28
|
+
});
|
|
29
|
+
export function getQuicknode(chainId) {
|
|
30
|
+
const rpc = getBalancesRpc(chainId);
|
|
31
|
+
return new Core({
|
|
32
|
+
endpointUrl: rpc,
|
|
33
|
+
config: { addOns: { nftTokenV2: true } },
|
|
34
|
+
});
|
|
35
|
+
}
|