@evergonlabs/tmi-protocol-api 0.5.0 → 0.8.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/README.md +169 -0
- package/dist/app.d.ts +3301 -2851
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +36 -23
- package/dist/apps.d.ts +30 -0
- package/dist/apps.d.ts.map +1 -0
- package/dist/apps.js +16 -0
- package/dist/client.d.ts +2170 -1996
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +23 -2
- package/dist/common/blockchain.d.ts +26 -26
- package/dist/common/blockchain.d.ts.map +1 -1
- package/dist/common/blockchain.js +6 -10
- package/dist/common/config.d.ts +6 -27
- package/dist/common/config.d.ts.map +1 -1
- package/dist/common/config.js +2 -11
- package/dist/common/context.d.ts +2 -2
- package/dist/common/context.d.ts.map +1 -1
- package/dist/common/controller.d.ts +12 -0
- package/dist/common/controller.d.ts.map +1 -0
- package/dist/common/controller.js +6 -0
- package/dist/common/exports.d.ts +3 -0
- package/dist/common/exports.d.ts.map +1 -0
- package/dist/common/exports.js +2 -0
- package/dist/common/http-error.d.ts +1 -1
- package/dist/common/http-error.d.ts.map +1 -1
- package/dist/common/indexer/client.d.ts +138 -2
- package/dist/common/indexer/client.d.ts.map +1 -1
- package/dist/common/indexer/schemas.d.ts +69 -1
- package/dist/common/indexer/schemas.d.ts.map +1 -1
- package/dist/common/indexer/schemas.js +1 -1
- package/dist/common/int256.d.ts +3 -0
- package/dist/common/int256.d.ts.map +1 -0
- package/dist/common/int256.js +12 -0
- package/dist/common/models/asset.d.ts +5 -23
- package/dist/common/models/asset.d.ts.map +1 -1
- package/dist/common/models/asset.js +4 -6
- package/dist/common/models/base/chainId.d.ts +8 -0
- package/dist/common/models/base/chainId.d.ts.map +1 -0
- package/dist/common/models/base/chainId.js +11 -0
- package/dist/common/models/base/deployTransaction.d.ts +8 -0
- package/dist/common/models/base/deployTransaction.d.ts.map +1 -0
- package/dist/common/models/base/deployTransaction.js +7 -0
- package/dist/common/models/base/page.d.ts +7 -0
- package/dist/common/models/base/page.d.ts.map +1 -0
- package/dist/common/models/base/page.js +5 -0
- package/dist/common/models/base/transaction.d.ts +13 -0
- package/dist/common/models/base/transaction.d.ts.map +1 -0
- package/dist/common/models/base/transaction.js +12 -0
- package/dist/common/models/base/viem.d.ts +6 -0
- package/dist/common/models/base/viem.d.ts.map +1 -0
- package/dist/common/models/base/viem.js +5 -0
- package/dist/common/models/chainId.d.ts +7 -7
- package/dist/common/models/chainId.d.ts.map +1 -1
- package/dist/common/models/chainId.js +27 -12
- package/dist/common/models/compilot.d.ts +3 -0
- package/dist/common/models/compilot.d.ts.map +1 -0
- package/dist/common/models/compilot.js +1 -0
- package/dist/common/models/date.d.ts +5 -2
- package/dist/common/models/date.d.ts.map +1 -1
- package/dist/common/models/date.js +13 -5
- package/dist/common/models/deployTransaction.d.ts +8 -0
- package/dist/common/models/deployTransaction.d.ts.map +1 -0
- package/dist/common/models/deployTransaction.js +12 -0
- package/dist/common/models/erc721.d.ts +3 -11
- package/dist/common/models/erc721.d.ts.map +1 -1
- package/dist/common/models/erc721.js +2 -4
- package/dist/common/models/exports.d.ts +5 -0
- package/dist/common/models/exports.d.ts.map +1 -0
- package/dist/common/models/exports.js +4 -0
- package/dist/common/models/index.d.ts +7 -4
- package/dist/common/models/index.d.ts.map +1 -1
- package/dist/common/models/index.js +7 -4
- package/dist/common/models/page.d.ts +3 -8
- package/dist/common/models/page.d.ts.map +1 -1
- package/dist/common/models/page.js +2 -5
- package/dist/common/models/platform.d.ts +19 -6
- package/dist/common/models/platform.d.ts.map +1 -1
- package/dist/common/models/platform.js +6 -6
- package/dist/common/models/routes.d.ts +2 -10
- package/dist/common/models/routes.d.ts.map +1 -1
- package/dist/common/models/routes.js +1 -1
- package/dist/common/models/saleId.d.ts +3 -9
- package/dist/common/models/saleId.d.ts.map +1 -1
- package/dist/common/models/saleId.js +2 -1
- package/dist/common/models/transaction.d.ts +20 -81
- package/dist/common/models/transaction.d.ts.map +1 -1
- package/dist/common/models/transaction.js +13 -21
- package/dist/common/models/viem.d.ts +5 -3
- package/dist/common/models/viem.d.ts.map +1 -1
- package/dist/common/models/viem.js +6 -1
- package/dist/common/roles/erc20-gated-roles.d.ts +4 -2
- package/dist/common/roles/erc20-gated-roles.d.ts.map +1 -1
- package/dist/common/roles/erc20-gated-roles.js +3 -1
- package/dist/common/roles/erc721-factory-roles.d.ts +8 -0
- package/dist/common/roles/erc721-factory-roles.d.ts.map +1 -0
- package/dist/common/roles/erc721-factory-roles.js +13 -0
- package/dist/common/roles/exports.d.ts +3 -0
- package/dist/common/roles/exports.d.ts.map +1 -0
- package/dist/common/roles/exports.js +2 -0
- package/dist/factory.d.ts +11 -0
- package/dist/factory.d.ts.map +1 -0
- package/dist/factory.js +19 -0
- package/dist/fractions/activity/searchActivity.route.d.ts +7 -7
- package/dist/fractions/activity/searchActivity.route.js +2 -2
- package/dist/fractions/activity/utils.d.ts +3 -3
- package/dist/fractions/activity/utils.js +2 -2
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts +4 -4
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts.map +1 -1
- package/dist/fractions/createFractions/v0/createFractions.route.js +3 -16
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts +14 -3
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts.map +1 -1
- package/dist/fractions/createFractions/v0/createFractions.schema.js +13 -2
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +2 -2
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts +36 -22
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +1 -1
- package/dist/fractions/deployMarket/v0/deployMarket.routes.js +30 -32
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts +6 -3
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +1 -1
- package/dist/fractions/deployMarket/v0/deployMarket.schema.js +5 -2
- package/dist/fractions/fractions/approveWrapper.route.d.ts +88 -0
- package/dist/fractions/fractions/approveWrapper.route.d.ts.map +1 -0
- package/dist/fractions/fractions/approveWrapper.route.js +92 -0
- package/dist/fractions/fractions/index.d.ts +72 -0
- package/dist/fractions/fractions/index.d.ts.map +1 -0
- package/dist/fractions/fractions/index.js +9 -0
- package/dist/fractions/gating/v0/getAuthData.d.ts +7 -7
- package/dist/fractions/gating/v0/getAuthData.js +2 -2
- package/dist/fractions/gating/v0/getNonce.route.d.ts +7 -7
- package/dist/fractions/gating/v0/getNonce.route.js +2 -2
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts +4 -4
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts +3 -3
- package/dist/fractions/grantRole/v0/grantRole.schema.js +2 -2
- package/dist/fractions/index.d.ts +1106 -1148
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +20 -105
- package/dist/fractions/markets/common/platform.d.ts +23 -75
- package/dist/fractions/markets/common/platform.d.ts.map +1 -1
- package/dist/fractions/markets/common/platform.js +11 -13
- package/dist/fractions/markets/getDeployEvent.d.ts +17 -39
- package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -1
- package/dist/fractions/markets/getDeployEvent.js +10 -9
- package/dist/fractions/markets/getMarket/getMarket.d.ts +30 -0
- package/dist/fractions/markets/getMarket/getMarket.d.ts.map +1 -0
- package/dist/fractions/markets/getMarket/getMarket.js +65 -0
- package/dist/fractions/markets/getMarket/index.d.ts +4 -27
- package/dist/fractions/markets/getMarket/index.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket/index.js +5 -4
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts +14 -14
- package/dist/fractions/markets/getMarket/v0/getMarket.js +2 -2
- package/dist/fractions/markets/index.d.ts +12 -54
- package/dist/fractions/markets/index.d.ts.map +1 -1
- package/dist/fractions/markets/index.js +10 -11
- package/dist/fractions/markets/searchMarkets/index.d.ts +7 -30
- package/dist/fractions/markets/searchMarkets/index.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/index.js +5 -4
- package/dist/fractions/markets/searchMarkets/searchMarkets.d.ts +22 -0
- package/dist/fractions/markets/searchMarkets/searchMarkets.d.ts.map +1 -0
- package/dist/fractions/markets/searchMarkets/searchMarkets.js +45 -0
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +13 -13
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.js +2 -2
- package/dist/fractions/nftfractions/index.d.ts +6 -0
- package/dist/fractions/nftfractions/index.d.ts.map +1 -0
- package/dist/fractions/nftfractions/index.js +5 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.d.ts +192 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.js +58 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.d.ts +245 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.js +65 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.d.ts +96 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.js +52 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.d.ts +70 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.js +28 -0
- package/dist/fractions/nftfractions/v0/initCompilot.routes.d.ts +74 -0
- package/dist/fractions/nftfractions/v0/initCompilot.routes.d.ts.map +1 -0
- package/dist/fractions/nftfractions/v0/initCompilot.routes.js +41 -0
- package/dist/fractions/platforms/deployMarket.routes.d.ts +158 -0
- package/dist/fractions/platforms/deployMarket.routes.d.ts.map +1 -0
- package/dist/fractions/platforms/deployMarket.routes.js +131 -0
- package/dist/fractions/platforms/deployMarket.schema.d.ts +33 -0
- package/dist/fractions/platforms/deployMarket.schema.d.ts.map +1 -0
- package/dist/fractions/platforms/deployMarket.schema.js +28 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.d.ts +96 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.js +52 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.schema.d.ts +30 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/fractions/platforms/deployNftFractionsMarket.schema.js +29 -0
- package/dist/fractions/platforms/index.d.ts +196 -0
- package/dist/fractions/platforms/index.d.ts.map +1 -0
- package/dist/fractions/platforms/index.js +15 -0
- package/dist/fractions/platforms/initCompilot.routes.d.ts +36 -0
- package/dist/fractions/platforms/initCompilot.routes.d.ts.map +1 -0
- package/dist/fractions/platforms/initCompilot.routes.js +40 -0
- package/dist/fractions/platforms/initNid.route.d.ts +28 -0
- package/dist/fractions/platforms/initNid.route.d.ts.map +1 -0
- package/dist/fractions/platforms/initNid.route.js +32 -0
- package/dist/fractions/purchase/v0/purchase.route.d.ts +7 -7
- package/dist/fractions/purchase/v0/purchase.route.js +2 -2
- package/dist/fractions/purchase/v0/statistics.route.d.ts +7 -7
- package/dist/fractions/purchase/v0/statistics.route.js +2 -2
- package/dist/fractions/roles/getRoles.d.ts +23 -0
- package/dist/fractions/roles/getRoles.d.ts.map +1 -0
- package/dist/fractions/roles/getRoles.js +42 -0
- package/dist/fractions/roles/grantRole.route.d.ts +27 -0
- package/dist/fractions/roles/grantRole.route.d.ts.map +1 -0
- package/dist/fractions/roles/grantRole.route.js +34 -0
- package/dist/fractions/roles/grantRole.schema.d.ts +16 -0
- package/dist/fractions/roles/grantRole.schema.d.ts.map +1 -0
- package/dist/fractions/roles/grantRole.schema.js +14 -0
- package/dist/fractions/roles/index.d.ts +48 -0
- package/dist/fractions/roles/index.d.ts.map +1 -0
- package/dist/fractions/roles/index.js +9 -0
- package/dist/fractions/sales/activityUtils.d.ts +49 -0
- package/dist/fractions/sales/activityUtils.d.ts.map +1 -0
- package/dist/fractions/sales/activityUtils.js +68 -0
- package/dist/fractions/sales/approveSale.route.d.ts +30 -0
- package/dist/fractions/sales/approveSale.route.d.ts.map +1 -0
- package/dist/fractions/sales/approveSale.route.js +35 -0
- package/dist/fractions/sales/common/fractionsSale.d.ts +50 -326
- package/dist/fractions/sales/common/fractionsSale.d.ts.map +1 -1
- package/dist/fractions/sales/common/fractionsSale.js +64 -79
- package/dist/fractions/sales/completeSale.route.d.ts +30 -0
- package/dist/fractions/sales/completeSale.route.d.ts.map +1 -0
- package/dist/fractions/sales/completeSale.route.js +35 -0
- package/dist/fractions/sales/createFractions.route.d.ts +71 -0
- package/dist/fractions/sales/createFractions.route.d.ts.map +1 -0
- package/dist/fractions/sales/createFractions.route.js +51 -0
- package/dist/fractions/sales/createFractions.schema.d.ts +123 -0
- package/dist/fractions/sales/createFractions.schema.d.ts.map +1 -0
- package/dist/fractions/sales/createFractions.schema.js +80 -0
- package/dist/fractions/sales/createNftFractions.routes.d.ts +180 -0
- package/dist/fractions/sales/createNftFractions.routes.d.ts.map +1 -0
- package/dist/fractions/sales/createNftFractions.routes.js +58 -0
- package/dist/fractions/sales/createNftFractions.schema.d.ts +85 -0
- package/dist/fractions/sales/createNftFractions.schema.d.ts.map +1 -0
- package/dist/fractions/sales/createNftFractions.schema.js +67 -0
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +31 -92
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.js +12 -13
- package/dist/fractions/sales/getVaultAddress.d.ts +31 -49
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
- package/dist/fractions/sales/getVaultAddress.js +11 -10
- package/dist/fractions/sales/getWithdrawEvent.d.ts +17 -39
- package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -1
- package/dist/fractions/sales/getWithdrawEvent.js +13 -11
- package/dist/fractions/sales/index.d.ts +760 -0
- package/dist/fractions/sales/index.d.ts.map +1 -0
- package/dist/fractions/sales/index.js +52 -0
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts +23 -0
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/fractions/sales/parseFractionsCreatedEvent.js +59 -0
- package/dist/fractions/sales/purchase.route.d.ts +36 -0
- package/dist/fractions/sales/purchase.route.d.ts.map +1 -0
- package/dist/fractions/sales/purchase.route.js +42 -0
- package/dist/fractions/sales/purchaseStatistics.route.d.ts +27 -0
- package/dist/fractions/sales/purchaseStatistics.route.d.ts.map +1 -0
- package/dist/fractions/sales/purchaseStatistics.route.js +53 -0
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +56 -140
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -1
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.js +19 -15
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +22 -54
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -1
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +6 -5
- package/dist/fractions/sales/recoverFractions.d.ts +65 -103
- package/dist/fractions/sales/recoverFractions.d.ts.map +1 -1
- package/dist/fractions/sales/recoverFractions.js +13 -11
- package/dist/fractions/sales/rejectFractions.d.ts +49 -75
- package/dist/fractions/sales/rejectFractions.d.ts.map +1 -1
- package/dist/fractions/sales/rejectFractions.js +12 -8
- package/dist/fractions/sales/searchActivity.route.d.ts +67 -86
- package/dist/fractions/sales/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/sales/searchActivity.route.js +27 -37
- package/dist/fractions/sales/searchSales/searchSales.d.ts +24 -0
- package/dist/fractions/sales/searchSales/searchSales.d.ts.map +1 -0
- package/dist/fractions/sales/searchSales/searchSales.js +50 -0
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts +16 -16
- package/dist/fractions/sales/searchSales/v0/searchSales.js +2 -2
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +20 -55
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +1 -1
- package/dist/fractions/sales/searchWithdrawal.route.js +10 -9
- package/dist/fractions/sales/setFeeCapLimit.d.ts +27 -70
- package/dist/fractions/sales/setFeeCapLimit.d.ts.map +1 -1
- package/dist/fractions/sales/setFeeCapLimit.js +12 -8
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts +26 -65
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -1
- package/dist/fractions/sales/unlockWrappedAssets.route.js +10 -11
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts +36 -0
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/claimStatistics.route.js +87 -0
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts +62 -0
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/claimVestedTokens.route.js +45 -0
- package/dist/fractions/sales/vesting/editCliff.route.d.ts +58 -0
- package/dist/fractions/sales/vesting/editCliff.route.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/editCliff.route.js +45 -0
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts +22 -0
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts.map +1 -0
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +58 -0
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts +10 -10
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.js +3 -3
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +2 -2
- package/dist/fractions/sales/withdraw.route.d.ts +29 -0
- package/dist/fractions/sales/withdraw.route.d.ts.map +1 -0
- package/dist/fractions/sales/withdraw.route.js +30 -0
- package/dist/fractions/sig/getAuthData.d.ts +40 -0
- package/dist/fractions/sig/getAuthData.d.ts.map +1 -0
- package/dist/fractions/sig/getAuthData.js +52 -0
- package/dist/fractions/sig/getNonce.route.d.ts +25 -0
- package/dist/fractions/sig/getNonce.route.d.ts.map +1 -0
- package/dist/fractions/sig/getNonce.route.js +43 -0
- package/dist/fractions/sig/index.d.ts +40 -0
- package/dist/fractions/sig/index.d.ts.map +1 -0
- package/dist/fractions/sig/index.js +6 -0
- package/dist/fractions/statistics/index.d.ts +107 -0
- package/dist/fractions/statistics/index.d.ts.map +1 -0
- package/dist/fractions/statistics/index.js +10 -0
- package/dist/fractions/statistics/networkStatistics.route.d.ts +121 -0
- package/dist/fractions/statistics/networkStatistics.route.d.ts.map +1 -0
- package/dist/fractions/statistics/networkStatistics.route.js +222 -0
- package/dist/general/balanceClient.d.ts +19 -58
- package/dist/general/balanceClient.d.ts.map +1 -1
- package/dist/general/balanceClient.js +3 -3
- package/dist/general/common.d.ts +11 -74
- package/dist/general/common.d.ts.map +1 -1
- package/dist/general/common.js +7 -11
- package/dist/general/estimateGas.d.ts +18 -45
- package/dist/general/estimateGas.d.ts.map +1 -1
- package/dist/general/estimateGas.js +32 -30
- package/dist/general/getBalance.d.ts +16 -37
- package/dist/general/getBalance.d.ts.map +1 -1
- package/dist/general/getBalance.js +30 -26
- package/dist/general/getBalancesBatch.d.ts +22 -56
- package/dist/general/getBalancesBatch.d.ts.map +1 -1
- package/dist/general/getBalancesBatch.js +24 -20
- package/dist/general/index.d.ts +74 -83
- package/dist/general/index.d.ts.map +1 -1
- package/dist/general/index.js +14 -19
- package/dist/general/searchBalances.d.ts +27 -67
- package/dist/general/searchBalances.d.ts.map +1 -1
- package/dist/general/searchBalances.js +25 -21
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts +17 -33
- package/dist/general/utils/tokenBalance/tokenBalance.d.ts.map +1 -1
- package/dist/general/utils/tokenBalance/tokenBalance.js +5 -5
- package/dist/issuance/approve.js +1 -1
- package/dist/issuance/burn.js +1 -1
- package/dist/issuance/common/exports.d.ts +2 -0
- package/dist/issuance/common/exports.d.ts.map +1 -0
- package/dist/issuance/common/exports.js +1 -0
- package/dist/issuance/common/factories.d.ts +167 -0
- package/dist/issuance/common/factories.d.ts.map +1 -0
- package/dist/issuance/common/factories.js +15 -0
- package/dist/issuance/deploy.d.ts +12 -12
- package/dist/issuance/deploy.d.ts.map +1 -1
- package/dist/issuance/deploy.js +21 -8
- package/dist/issuance/erc20/approve.d.ts +32 -0
- package/dist/issuance/erc20/approve.d.ts.map +1 -0
- package/dist/issuance/erc20/approve.js +38 -0
- package/dist/issuance/erc20/burn.d.ts +32 -0
- package/dist/issuance/erc20/burn.d.ts.map +1 -0
- package/dist/issuance/erc20/burn.js +38 -0
- package/dist/issuance/erc20/deploy.d.ts +38 -0
- package/dist/issuance/erc20/deploy.d.ts.map +1 -0
- package/dist/issuance/erc20/deploy.js +52 -0
- package/dist/issuance/erc20/deployGated.d.ts +40 -0
- package/dist/issuance/erc20/deployGated.d.ts.map +1 -0
- package/dist/issuance/erc20/deployGated.js +58 -0
- package/dist/issuance/erc20/getInitData.d.ts +59 -0
- package/dist/issuance/erc20/getInitData.d.ts.map +1 -0
- package/dist/issuance/erc20/getInitData.js +49 -0
- package/dist/issuance/erc20/grantRole.d.ts +33 -0
- package/dist/issuance/erc20/grantRole.d.ts.map +1 -0
- package/dist/issuance/erc20/grantRole.js +41 -0
- package/dist/issuance/erc20/index.d.ts +324 -0
- package/dist/issuance/erc20/index.d.ts.map +1 -0
- package/dist/issuance/erc20/index.js +31 -0
- package/dist/issuance/erc20/initialize.d.ts +40 -0
- package/dist/issuance/erc20/initialize.d.ts.map +1 -0
- package/dist/issuance/erc20/initialize.js +45 -0
- package/dist/issuance/erc20/mint.d.ts +32 -0
- package/dist/issuance/erc20/mint.d.ts.map +1 -0
- package/dist/issuance/erc20/mint.js +38 -0
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts +23 -0
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc20/parseErc20DeployEvent.js +79 -0
- package/dist/issuance/erc20/recover.d.ts +34 -0
- package/dist/issuance/erc20/recover.d.ts.map +1 -0
- package/dist/issuance/erc20/recover.js +39 -0
- package/dist/issuance/erc20/renounceRole.d.ts +33 -0
- package/dist/issuance/erc20/renounceRole.d.ts.map +1 -0
- package/dist/issuance/erc20/renounceRole.js +41 -0
- package/dist/issuance/erc20/revokeRole.d.ts +33 -0
- package/dist/issuance/erc20/revokeRole.d.ts.map +1 -0
- package/dist/issuance/erc20/revokeRole.js +41 -0
- package/dist/issuance/erc20/transfer.d.ts +32 -0
- package/dist/issuance/erc20/transfer.d.ts.map +1 -0
- package/dist/issuance/erc20/transfer.js +38 -0
- package/dist/issuance/erc20/transferFrom.d.ts +34 -0
- package/dist/issuance/erc20/transferFrom.d.ts.map +1 -0
- package/dist/issuance/erc20/transferFrom.js +39 -0
- package/dist/issuance/erc721/approve.d.ts +32 -0
- package/dist/issuance/erc721/approve.d.ts.map +1 -0
- package/dist/issuance/erc721/approve.js +38 -0
- package/dist/issuance/erc721/burn.d.ts +30 -0
- package/dist/issuance/erc721/burn.d.ts.map +1 -0
- package/dist/issuance/erc721/burn.js +37 -0
- package/dist/issuance/erc721/deploy.d.ts +38 -0
- package/dist/issuance/erc721/deploy.d.ts.map +1 -0
- package/dist/issuance/erc721/deploy.js +51 -0
- package/dist/issuance/erc721/deployGated.d.ts +40 -0
- package/dist/issuance/erc721/deployGated.d.ts.map +1 -0
- package/dist/issuance/erc721/deployGated.js +58 -0
- package/dist/issuance/erc721/getInitData.d.ts +49 -0
- package/dist/issuance/erc721/getInitData.d.ts.map +1 -0
- package/dist/issuance/erc721/getInitData.js +51 -0
- package/dist/issuance/erc721/grantRole.d.ts +33 -0
- package/dist/issuance/erc721/grantRole.d.ts.map +1 -0
- package/dist/issuance/erc721/grantRole.js +41 -0
- package/dist/issuance/erc721/index.d.ts +345 -0
- package/dist/issuance/erc721/index.d.ts.map +1 -0
- package/dist/issuance/erc721/index.js +33 -0
- package/dist/issuance/erc721/initialize.d.ts +38 -0
- package/dist/issuance/erc721/initialize.d.ts.map +1 -0
- package/dist/issuance/erc721/initialize.js +40 -0
- package/dist/issuance/erc721/mint.d.ts +32 -0
- package/dist/issuance/erc721/mint.d.ts.map +1 -0
- package/dist/issuance/erc721/mint.js +38 -0
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts +23 -0
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc721/parseErc721DeployEvent.js +78 -0
- package/dist/issuance/erc721/recover.d.ts +34 -0
- package/dist/issuance/erc721/recover.d.ts.map +1 -0
- package/dist/issuance/erc721/recover.js +39 -0
- package/dist/issuance/erc721/renounceRole.d.ts +33 -0
- package/dist/issuance/erc721/renounceRole.d.ts.map +1 -0
- package/dist/issuance/erc721/renounceRole.js +41 -0
- package/dist/issuance/erc721/revokeRole.d.ts +33 -0
- package/dist/issuance/erc721/revokeRole.d.ts.map +1 -0
- package/dist/issuance/erc721/revokeRole.js +41 -0
- package/dist/issuance/erc721/setBaseURI.d.ts +30 -0
- package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -0
- package/dist/issuance/erc721/setBaseURI.js +36 -0
- package/dist/issuance/erc721/setTokenURI.d.ts +32 -0
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -0
- package/dist/issuance/erc721/setTokenURI.js +38 -0
- package/dist/issuance/erc721/transferFrom.d.ts +34 -0
- package/dist/issuance/erc721/transferFrom.d.ts.map +1 -0
- package/dist/issuance/erc721/transferFrom.js +39 -0
- package/dist/issuance/exports.d.ts +2 -0
- package/dist/issuance/exports.d.ts.map +1 -0
- package/dist/issuance/exports.js +1 -0
- package/dist/issuance/getInitData.d.ts +67 -10
- package/dist/issuance/getInitData.d.ts.map +1 -1
- package/dist/issuance/getInitData.js +52 -1
- package/dist/issuance/grantRole.js +1 -1
- package/dist/issuance/index.d.ts +682 -259
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/index.js +12 -33
- package/dist/issuance/mint.js +1 -1
- package/dist/issuance/proxy/deploy.d.ts +41 -0
- package/dist/issuance/proxy/deploy.d.ts.map +1 -0
- package/dist/issuance/proxy/deploy.js +68 -0
- package/dist/issuance/proxy/index.d.ts +59 -0
- package/dist/issuance/proxy/index.d.ts.map +1 -0
- package/dist/issuance/proxy/index.js +10 -0
- package/dist/issuance/proxy/upgrade.d.ts +34 -0
- package/dist/issuance/proxy/upgrade.d.ts.map +1 -0
- package/dist/issuance/proxy/upgrade.js +46 -0
- package/dist/issuance/recover.js +1 -1
- package/dist/issuance/renounceRole.js +1 -1
- package/dist/issuance/transfer.js +1 -1
- package/dist/next/fractions/index.d.ts +275 -0
- package/dist/next/fractions/index.d.ts.map +1 -0
- package/dist/next/fractions/index.js +13 -0
- package/dist/next/fractions/lending/buyback/buyback.routes.d.ts +27 -0
- package/dist/next/fractions/lending/buyback/buyback.routes.d.ts.map +1 -0
- package/dist/next/fractions/lending/buyback/buyback.routes.js +28 -0
- package/dist/next/fractions/lending/buyback/buyback.schema.d.ts +8 -0
- package/dist/next/fractions/lending/buyback/buyback.schema.d.ts.map +1 -0
- package/dist/next/fractions/lending/buyback/buyback.schema.js +13 -0
- package/dist/next/fractions/lending/createLendingSale.d.ts +130 -0
- package/dist/next/fractions/lending/createLendingSale.d.ts.map +1 -0
- package/dist/next/fractions/lending/createLendingSale.js +82 -0
- package/dist/next/fractions/lending/deployMarket/lending.routes.d.ts +44 -0
- package/dist/next/fractions/lending/deployMarket/lending.routes.d.ts.map +1 -0
- package/dist/next/fractions/lending/deployMarket/lending.routes.js +40 -0
- package/dist/next/fractions/lending/index.d.ts +188 -0
- package/dist/next/fractions/lending/index.d.ts.map +1 -0
- package/dist/next/fractions/lending/index.js +15 -0
- package/dist/next/fractions/lending/purchase/directPurchase.route.d.ts +33 -0
- package/dist/next/fractions/lending/purchase/directPurchase.route.d.ts.map +1 -0
- package/dist/next/fractions/lending/purchase/directPurchase.route.js +34 -0
- package/dist/next/fractions/lending/schemas.d.ts +25 -0
- package/dist/next/fractions/lending/schemas.d.ts.map +1 -0
- package/dist/next/fractions/lending/schemas.js +21 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +26 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts.map +1 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.js +28 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts +7 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts.map +1 -0
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.schema.js +11 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.d.ts +39 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.js +40 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.schema.d.ts +26 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/next/fractions/platforms/deployNftFractionsMarket.schema.js +24 -0
- package/dist/next/fractions/platforms/index.d.ts +36 -0
- package/dist/next/fractions/platforms/index.d.ts.map +1 -0
- package/dist/next/fractions/platforms/index.js +5 -0
- package/dist/next/fractions/sales/createNftFractions.routes.d.ts +58 -0
- package/dist/next/fractions/sales/createNftFractions.routes.d.ts.map +1 -0
- package/dist/next/fractions/sales/createNftFractions.routes.js +59 -0
- package/dist/next/fractions/sales/createNftFractions.schema.d.ts +85 -0
- package/dist/next/fractions/sales/createNftFractions.schema.d.ts.map +1 -0
- package/dist/next/fractions/sales/createNftFractions.schema.js +67 -0
- package/dist/next/fractions/sales/index.d.ts +55 -0
- package/dist/next/fractions/sales/index.d.ts.map +1 -0
- package/dist/next/fractions/sales/index.js +5 -0
- package/dist/staking/index.d.ts +193 -202
- package/dist/staking/index.d.ts.map +1 -1
- package/dist/staking/index.js +14 -19
- package/dist/staking/platforms/common/platform.d.ts +7 -21
- package/dist/staking/platforms/common/platform.d.ts.map +1 -1
- package/dist/staking/platforms/common/platform.js +6 -8
- package/dist/staking/platforms/getPlatform/index.d.ts +9 -12
- package/dist/staking/platforms/getPlatform/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/index.js +5 -4
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +21 -49
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.js +20 -10
- package/dist/staking/platforms/index.d.ts +19 -21
- package/dist/staking/platforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/index.js +8 -9
- package/dist/staking/platforms/searchPlatforms/index.d.ts +11 -14
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/index.js +5 -4
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +27 -73
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.js +12 -9
- package/dist/staking/pools/common/pool.d.ts +9 -25
- package/dist/staking/pools/common/pool.d.ts.map +1 -1
- package/dist/staking/pools/common/pool.js +5 -7
- package/dist/staking/pools/getPool/index.d.ts +4 -7
- package/dist/staking/pools/getPool/index.d.ts.map +1 -1
- package/dist/staking/pools/getPool/index.js +5 -4
- package/dist/staking/pools/getPool/v0/getPool.d.ts +14 -32
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +1 -1
- package/dist/staking/pools/getPool/v0/getPool.js +20 -9
- package/dist/staking/pools/index.d.ts +10 -12
- package/dist/staking/pools/index.d.ts.map +1 -1
- package/dist/staking/pools/index.js +8 -9
- package/dist/staking/pools/searchPools/index.d.ts +7 -10
- package/dist/staking/pools/searchPools/index.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/index.js +5 -4
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +19 -52
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.js +11 -8
- package/dist/staking/roles/common/role.d.ts +4 -10
- package/dist/staking/roles/common/role.d.ts.map +1 -1
- package/dist/staking/roles/common/role.js +2 -4
- package/dist/staking/roles/common/roleAssignment.d.ts +9 -25
- package/dist/staking/roles/common/roleAssignment.d.ts.map +1 -1
- package/dist/staking/roles/common/roleAssignment.js +5 -7
- package/dist/staking/roles/common/roleEvent.d.ts +8 -26
- package/dist/staking/roles/common/roleEvent.d.ts.map +1 -1
- package/dist/staking/roles/common/roleEvent.js +3 -5
- package/dist/staking/roles/getRoles/index.d.ts +3 -6
- package/dist/staking/roles/getRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/getRoles/index.js +5 -4
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts +22 -28
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -1
- package/dist/staking/roles/getRoles/v0/getRoles.js +9 -6
- package/dist/staking/roles/grantRole/index.d.ts +7 -10
- package/dist/staking/roles/grantRole/index.d.ts.map +1 -1
- package/dist/staking/roles/grantRole/index.js +5 -4
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +23 -60
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.js +9 -6
- package/dist/staking/roles/index.d.ts +25 -27
- package/dist/staking/roles/index.d.ts.map +1 -1
- package/dist/staking/roles/index.js +12 -13
- package/dist/staking/roles/searchRoleEvents/index.d.ts +9 -12
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/index.js +5 -4
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +21 -60
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +11 -8
- package/dist/staking/roles/searchRoles/index.d.ts +9 -12
- package/dist/staking/roles/searchRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/index.js +5 -4
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +21 -60
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.js +17 -11
- package/dist/staking/stakes/common/stake.d.ts +14 -40
- package/dist/staking/stakes/common/stake.d.ts.map +1 -1
- package/dist/staking/stakes/common/stake.js +18 -20
- package/dist/staking/stakes/common/stakeEvent.d.ts +9 -27
- package/dist/staking/stakes/common/stakeEvent.d.ts.map +1 -1
- package/dist/staking/stakes/common/stakeEvent.js +4 -6
- package/dist/staking/stakes/getStake/index.d.ts +4 -7
- package/dist/staking/stakes/getStake/index.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/index.js +5 -4
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +14 -32
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.js +19 -9
- package/dist/staking/stakes/index.d.ts +20 -22
- package/dist/staking/stakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/index.js +10 -11
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +9 -12
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/index.js +5 -4
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +21 -60
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +13 -9
- package/dist/staking/stakes/searchStakes/index.d.ts +9 -12
- package/dist/staking/stakes/searchStakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/index.js +5 -4
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +21 -60
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.js +13 -27
- package/dist/staking-templates/index.d.ts +100 -100
- package/dist/staking-templates/index.js +1 -1
- package/dist/staking-templates/templates/common/amount.d.ts +5 -11
- package/dist/staking-templates/templates/common/amount.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/amount.js +6 -8
- package/dist/staking-templates/templates/common/amountMult.d.ts +2 -2
- package/dist/staking-templates/templates/common/amountMult.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/amountMult.js +3 -4
- package/dist/staking-templates/templates/common/erc20Input.d.ts +4 -10
- package/dist/staking-templates/templates/common/erc20Input.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/erc20Input.js +4 -6
- package/dist/staking-templates/templates/common/erc20Reward.d.ts +4 -10
- package/dist/staking-templates/templates/common/erc20Reward.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/erc20Reward.js +4 -7
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts +2 -2
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/getCreatePoolEvent.js +3 -3
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts +2 -2
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.js +4 -4
- package/dist/staking-templates/templates/common/getReward.d.ts +10 -10
- package/dist/staking-templates/templates/common/getReward.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/getReward.js +2 -2
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts +3 -3
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/getStakeEvent.js +4 -4
- package/dist/staking-templates/templates/common/lock.d.ts +4 -10
- package/dist/staking-templates/templates/common/lock.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/lock.js +5 -7
- package/dist/staking-templates/templates/common/lockMult.d.ts +2 -2
- package/dist/staking-templates/templates/common/lockMult.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/lockMult.js +3 -4
- package/dist/staking-templates/templates/common/partialUnstake.d.ts +12 -12
- package/dist/staking-templates/templates/common/partialUnstake.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/partialUnstake.js +4 -4
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts +5 -11
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/rewardDistribution.js +5 -8
- package/dist/staking-templates/templates/common/time.d.ts +1 -1
- package/dist/staking-templates/templates/common/time.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/time.js +2 -2
- package/dist/staking-templates/templates/common/unstake.d.ts +10 -10
- package/dist/staking-templates/templates/common/unstake.d.ts.map +1 -1
- package/dist/staking-templates/templates/common/unstake.js +2 -2
- package/dist/staking-templates/templates/reputation/index.d.ts +30 -30
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts +11 -11
- package/dist/staking-templates/templates/reputation/v0/createPlatform.js +3 -3
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts +24 -24
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts.map +1 -1
- package/dist/staking-templates/templates/reputation/v0/createPool.js +6 -6
- package/dist/staking-templates/templates/reputation/v0/index.d.ts +30 -30
- package/dist/staking-templates/templates/reputation/v0/index.js +5 -5
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts +11 -11
- package/dist/staking-templates/templates/reputation/v0/restake.js +4 -4
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts +12 -12
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts.map +1 -1
- package/dist/staking-templates/templates/reputation/v0/stake.js +5 -5
- package/dist/staking-templates/templates/reputationLock/index.d.ts +37 -37
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +11 -11
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.js +3 -3
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts +36 -36
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +1 -1
- package/dist/staking-templates/templates/reputationLock/v0/createPool.js +7 -7
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts +37 -37
- package/dist/staking-templates/templates/reputationLock/v0/index.js +5 -5
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts +13 -13
- package/dist/staking-templates/templates/reputationLock/v0/restake.js +5 -5
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts +14 -14
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts.map +1 -1
- package/dist/staking-templates/templates/reputationLock/v0/stake.js +5 -5
- package/dist/staking-templates/templates/rwa/index.d.ts +33 -33
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts +11 -11
- package/dist/staking-templates/templates/rwa/v0/createPlatform.js +3 -3
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts +20 -20
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts.map +1 -1
- package/dist/staking-templates/templates/rwa/v0/createPool.js +4 -4
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts +12 -12
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts.map +1 -1
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.js +4 -4
- package/dist/staking-templates/templates/rwa/v0/index.d.ts +33 -33
- package/dist/staking-templates/templates/rwa/v0/index.js +5 -5
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts +11 -11
- package/dist/staking-templates/templates/rwa/v0/restake.js +4 -4
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts +12 -12
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts.map +1 -1
- package/dist/staking-templates/templates/rwa/v0/stake.js +5 -5
- package/dist/stakingTemplates/index.d.ts +723 -0
- package/dist/stakingTemplates/index.d.ts.map +1 -0
- package/dist/stakingTemplates/index.js +13 -0
- package/dist/stakingTemplates/templates/common/amount.d.ts +7 -0
- package/dist/stakingTemplates/templates/common/amount.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/amount.js +15 -0
- package/dist/stakingTemplates/templates/common/amountMult.d.ts +3 -0
- package/dist/stakingTemplates/templates/common/amountMult.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/amountMult.js +24 -0
- package/dist/stakingTemplates/templates/common/erc20Input.d.ts +6 -0
- package/dist/stakingTemplates/templates/common/erc20Input.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/erc20Input.js +16 -0
- package/dist/stakingTemplates/templates/common/erc20Reward.d.ts +6 -0
- package/dist/stakingTemplates/templates/common/erc20Reward.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/erc20Reward.js +15 -0
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts +17 -0
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.js +51 -0
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts +20 -0
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.js +49 -0
- package/dist/stakingTemplates/templates/common/getReward.d.ts +26 -0
- package/dist/stakingTemplates/templates/common/getReward.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/getReward.js +37 -0
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts +17 -0
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/getStakeEvent.js +55 -0
- package/dist/stakingTemplates/templates/common/lock.d.ts +6 -0
- package/dist/stakingTemplates/templates/common/lock.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/lock.js +18 -0
- package/dist/stakingTemplates/templates/common/lockMult.d.ts +3 -0
- package/dist/stakingTemplates/templates/common/lockMult.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/lockMult.js +16 -0
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts +27 -0
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/partialUnstake.js +42 -0
- package/dist/stakingTemplates/templates/common/rewardDistribution.d.ts +7 -0
- package/dist/stakingTemplates/templates/common/rewardDistribution.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/rewardDistribution.js +16 -0
- package/dist/stakingTemplates/templates/common/templates.d.ts +61 -0
- package/dist/stakingTemplates/templates/common/templates.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/templates.js +8 -0
- package/dist/stakingTemplates/templates/common/time.d.ts +2 -0
- package/dist/stakingTemplates/templates/common/time.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/time.js +4 -0
- package/dist/stakingTemplates/templates/common/unstake.d.ts +26 -0
- package/dist/stakingTemplates/templates/common/unstake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/common/unstake.js +37 -0
- package/dist/stakingTemplates/templates/reputation/common.d.ts +23 -0
- package/dist/stakingTemplates/templates/reputation/common.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/common.js +3 -0
- package/dist/stakingTemplates/templates/reputation/index.d.ts +231 -0
- package/dist/stakingTemplates/templates/reputation/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/index.js +5 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts +31 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.js +57 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts +39 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/createPool.js +86 -0
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts +231 -0
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/index.js +26 -0
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts +26 -0
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/restake.js +41 -0
- package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts +26 -0
- package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputation/v0/stake.js +46 -0
- package/dist/stakingTemplates/templates/reputationLock/common.d.ts +23 -0
- package/dist/stakingTemplates/templates/reputationLock/common.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/common.js +3 -0
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts +242 -0
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/index.js +5 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts +31 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.js +57 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts +48 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.js +100 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts +242 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/index.js +26 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts +27 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.js +45 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts +27 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.js +47 -0
- package/dist/stakingTemplates/templates/rwa/common.d.ts +23 -0
- package/dist/stakingTemplates/templates/rwa/common.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/common.js +3 -0
- package/dist/stakingTemplates/templates/rwa/index.d.ts +254 -0
- package/dist/stakingTemplates/templates/rwa/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/index.js +5 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts +31 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.js +57 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts +38 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/createPool.js +80 -0
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts +26 -0
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.js +42 -0
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts +254 -0
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/index.js +28 -0
- package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts +26 -0
- package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/restake.js +41 -0
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts +26 -0
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts.map +1 -0
- package/dist/stakingTemplates/templates/rwa/v0/stake.js +46 -0
- package/dist/v0/fractions/index.d.ts +76 -15
- package/dist/v0/fractions/index.d.ts.map +1 -1
- package/dist/v0/fractions/networkStatistics.route.d.ts +208 -87
- package/dist/v0/fractions/networkStatistics.route.d.ts.map +1 -1
- package/dist/v0/fractions/networkStatistics.route.js +99 -228
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts +17 -17
- package/dist/v1/fractions/lending/buyback/buyback.routes.js +2 -2
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts +5 -16
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts.map +1 -1
- package/dist/v1/fractions/lending/buyback/buyback.schema.js +5 -4
- package/dist/v1/fractions/lending/createLendingSale.d.ts +124 -406
- package/dist/v1/fractions/lending/createLendingSale.d.ts.map +1 -1
- package/dist/v1/fractions/lending/createLendingSale.js +20 -22
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts +37 -41
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts.map +1 -1
- package/dist/v1/fractions/lending/deployMarket/lending.routes.js +13 -7
- package/dist/v1/fractions/lending/index.d.ts +55 -72
- package/dist/v1/fractions/lending/index.d.ts.map +1 -1
- package/dist/v1/fractions/lending/index.js +2 -2
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts +23 -34
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts.map +1 -1
- package/dist/v1/fractions/lending/purchase/directPurchase.route.js +9 -12
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +13 -13
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.js +2 -2
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts +4 -13
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts.map +1 -1
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.js +3 -2
- package/dist/v1/fractions/schemas.d.ts +14 -102
- package/dist/v1/fractions/schemas.d.ts.map +1 -1
- package/dist/v1/fractions/schemas.js +13 -28
- package/package.json +23 -19
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
export declare const Erc20Controller: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
2
|
+
"/": {
|
|
3
|
+
$post: {
|
|
4
|
+
input: {
|
|
5
|
+
json: {
|
|
6
|
+
chainId: 11155111 | 72080;
|
|
7
|
+
tokenName: string;
|
|
8
|
+
tokenSymbol: string;
|
|
9
|
+
supplyCap: string;
|
|
10
|
+
defaultTokenAdmin: string;
|
|
11
|
+
minter: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
output: {
|
|
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
|
+
};
|
|
24
|
+
outputFormat: "json";
|
|
25
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}, "/deploy"> | import("hono/types").MergeSchemaPath<{
|
|
29
|
+
"/": {
|
|
30
|
+
$post: {
|
|
31
|
+
input: {
|
|
32
|
+
json: {
|
|
33
|
+
chainId: 11155111 | 72080;
|
|
34
|
+
tokenName: string;
|
|
35
|
+
tokenSymbol: string;
|
|
36
|
+
supplyCap: string;
|
|
37
|
+
defaultTokenAdmin: string;
|
|
38
|
+
minter: string;
|
|
39
|
+
gatingSigner?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
output: {
|
|
43
|
+
data: `0x${string}`;
|
|
44
|
+
to: `0x${string}`;
|
|
45
|
+
details: {
|
|
46
|
+
functionName: string;
|
|
47
|
+
address: `0x${string}`;
|
|
48
|
+
abi: any[];
|
|
49
|
+
args: any[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
outputFormat: "json";
|
|
53
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}, "/deployGated"> | import("hono/types").MergeSchemaPath<{
|
|
57
|
+
"/": {
|
|
58
|
+
$get: {
|
|
59
|
+
input: {
|
|
60
|
+
query: {
|
|
61
|
+
chainId: string | string[];
|
|
62
|
+
hash: string | string[];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
output: {
|
|
66
|
+
proxy: `0x${string}`;
|
|
67
|
+
admin: `0x${string}`;
|
|
68
|
+
minter: `0x${string}`;
|
|
69
|
+
supplyCap: string;
|
|
70
|
+
name: string;
|
|
71
|
+
symbol: string;
|
|
72
|
+
};
|
|
73
|
+
outputFormat: "json";
|
|
74
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
}, "/getDeployEvent"> | import("hono/types").MergeSchemaPath<{
|
|
78
|
+
"/": {
|
|
79
|
+
$post: {
|
|
80
|
+
input: {
|
|
81
|
+
json: {
|
|
82
|
+
tokenAddress: string;
|
|
83
|
+
spender: string;
|
|
84
|
+
amount: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
output: {
|
|
88
|
+
data: `0x${string}`;
|
|
89
|
+
to: `0x${string}`;
|
|
90
|
+
details: {
|
|
91
|
+
functionName: string;
|
|
92
|
+
address: `0x${string}`;
|
|
93
|
+
abi: any[];
|
|
94
|
+
args: any[];
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
outputFormat: "json";
|
|
98
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}, "/approve"> | import("hono/types").MergeSchemaPath<{
|
|
102
|
+
"/": {
|
|
103
|
+
$post: {
|
|
104
|
+
input: {
|
|
105
|
+
json: {
|
|
106
|
+
tokenAddress: string;
|
|
107
|
+
amount: string;
|
|
108
|
+
burnFrom: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
output: {
|
|
112
|
+
data: `0x${string}`;
|
|
113
|
+
to: `0x${string}`;
|
|
114
|
+
details: {
|
|
115
|
+
functionName: string;
|
|
116
|
+
address: `0x${string}`;
|
|
117
|
+
abi: any[];
|
|
118
|
+
args: any[];
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
outputFormat: "json";
|
|
122
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
}, "/burn"> | import("hono/types").MergeSchemaPath<{
|
|
126
|
+
"/": {
|
|
127
|
+
$post: {
|
|
128
|
+
input: {
|
|
129
|
+
json: {
|
|
130
|
+
tokenAddress: string;
|
|
131
|
+
to: string;
|
|
132
|
+
amount: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
output: {
|
|
136
|
+
data: `0x${string}`;
|
|
137
|
+
to: `0x${string}`;
|
|
138
|
+
details: {
|
|
139
|
+
functionName: string;
|
|
140
|
+
address: `0x${string}`;
|
|
141
|
+
abi: any[];
|
|
142
|
+
args: any[];
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
outputFormat: "json";
|
|
146
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}, "/mint"> | import("hono/types").MergeSchemaPath<{
|
|
150
|
+
"/": {
|
|
151
|
+
$post: {
|
|
152
|
+
input: {
|
|
153
|
+
json: {
|
|
154
|
+
tokenAddress: string;
|
|
155
|
+
to: string;
|
|
156
|
+
amount: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
output: {
|
|
160
|
+
data: `0x${string}`;
|
|
161
|
+
to: `0x${string}`;
|
|
162
|
+
details: {
|
|
163
|
+
functionName: string;
|
|
164
|
+
address: `0x${string}`;
|
|
165
|
+
abi: any[];
|
|
166
|
+
args: any[];
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
outputFormat: "json";
|
|
170
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
}, "/transfer"> | import("hono/types").MergeSchemaPath<{
|
|
174
|
+
"/": {
|
|
175
|
+
$post: {
|
|
176
|
+
input: {
|
|
177
|
+
json: {
|
|
178
|
+
tokenAddress: string;
|
|
179
|
+
from: string;
|
|
180
|
+
to: string;
|
|
181
|
+
amount: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
output: {
|
|
185
|
+
data: `0x${string}`;
|
|
186
|
+
to: `0x${string}`;
|
|
187
|
+
details: {
|
|
188
|
+
functionName: string;
|
|
189
|
+
address: `0x${string}`;
|
|
190
|
+
abi: any[];
|
|
191
|
+
args: any[];
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
outputFormat: "json";
|
|
195
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
}, "/transferFrom"> | import("hono/types").MergeSchemaPath<{
|
|
199
|
+
"/": {
|
|
200
|
+
$post: {
|
|
201
|
+
input: {
|
|
202
|
+
json: {
|
|
203
|
+
tokenAddress: string;
|
|
204
|
+
from: string;
|
|
205
|
+
to: string;
|
|
206
|
+
amount: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
output: {
|
|
210
|
+
data: `0x${string}`;
|
|
211
|
+
to: `0x${string}`;
|
|
212
|
+
details: {
|
|
213
|
+
functionName: string;
|
|
214
|
+
address: `0x${string}`;
|
|
215
|
+
abi: any[];
|
|
216
|
+
args: any[];
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
outputFormat: "json";
|
|
220
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
}, "/recover"> | import("hono/types").MergeSchemaPath<{
|
|
224
|
+
"/": {
|
|
225
|
+
$post: {
|
|
226
|
+
input: {
|
|
227
|
+
json: {
|
|
228
|
+
tokenAddress: string;
|
|
229
|
+
role: import("../../client.js").Erc20GatedRole;
|
|
230
|
+
account: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
output: {
|
|
234
|
+
data: `0x${string}`;
|
|
235
|
+
to: `0x${string}`;
|
|
236
|
+
details: {
|
|
237
|
+
functionName: string;
|
|
238
|
+
address: `0x${string}`;
|
|
239
|
+
abi: any[];
|
|
240
|
+
args: any[];
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
outputFormat: "json";
|
|
244
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
}, "/grantRole"> | import("hono/types").MergeSchemaPath<{
|
|
248
|
+
"/": {
|
|
249
|
+
$post: {
|
|
250
|
+
input: {
|
|
251
|
+
json: {
|
|
252
|
+
tokenAddress: string;
|
|
253
|
+
role: import("../../client.js").Erc20GatedRole;
|
|
254
|
+
account: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
output: {
|
|
258
|
+
data: `0x${string}`;
|
|
259
|
+
to: `0x${string}`;
|
|
260
|
+
details: {
|
|
261
|
+
functionName: string;
|
|
262
|
+
address: `0x${string}`;
|
|
263
|
+
abi: any[];
|
|
264
|
+
args: any[];
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
outputFormat: "json";
|
|
268
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
}, "/revokeRole"> | import("hono/types").MergeSchemaPath<{
|
|
272
|
+
"/": {
|
|
273
|
+
$post: {
|
|
274
|
+
input: {
|
|
275
|
+
json: {
|
|
276
|
+
tokenAddress: string;
|
|
277
|
+
role: import("../../client.js").Erc20GatedRole;
|
|
278
|
+
callerConfirmation: string;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
output: {
|
|
282
|
+
data: `0x${string}`;
|
|
283
|
+
to: `0x${string}`;
|
|
284
|
+
details: {
|
|
285
|
+
functionName: string;
|
|
286
|
+
address: `0x${string}`;
|
|
287
|
+
abi: any[];
|
|
288
|
+
args: any[];
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
outputFormat: "json";
|
|
292
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
}, "/renounceRole"> | import("hono/types").MergeSchemaPath<{
|
|
296
|
+
"/": {
|
|
297
|
+
$post: {
|
|
298
|
+
input: {
|
|
299
|
+
json: {
|
|
300
|
+
tokenAddress: string;
|
|
301
|
+
name: string;
|
|
302
|
+
symbol: string;
|
|
303
|
+
cap: string;
|
|
304
|
+
defaultAdmin: string;
|
|
305
|
+
minter: string;
|
|
306
|
+
gatingSigner?: string | undefined;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
output: {
|
|
310
|
+
data: `0x${string}`;
|
|
311
|
+
to: `0x${string}`;
|
|
312
|
+
details: {
|
|
313
|
+
functionName: string;
|
|
314
|
+
address: `0x${string}`;
|
|
315
|
+
abi: any[];
|
|
316
|
+
args: any[];
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
outputFormat: "json";
|
|
320
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
}, "/initialize">, "/">>;
|
|
324
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiB1B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createController } from "../../common/controller.js";
|
|
2
|
+
import { ApproveErc20Token } from "./approve.js";
|
|
3
|
+
import { BurnErc20Token } from "./burn.js";
|
|
4
|
+
import { CreateErc20Token } from "./deploy.js";
|
|
5
|
+
import { CreateGatedErc20Token } from "./deployGated.js";
|
|
6
|
+
import { GrantRoleErc20 } from "./grantRole.js";
|
|
7
|
+
import { InitializeErc20 } from "./initialize.js";
|
|
8
|
+
import { MintErc20Token } from "./mint.js";
|
|
9
|
+
import { ParseErc20DeployEvent } from "./parseErc20DeployEvent.js";
|
|
10
|
+
import { RecoverErc20 } from "./recover.js";
|
|
11
|
+
import { RenounceRoleErc20 } from "./renounceRole.js";
|
|
12
|
+
import { RevokeRoleErc20 } from "./revokeRole.js";
|
|
13
|
+
import { TransferErc20 } from "./transfer.js";
|
|
14
|
+
import { TransferFromErc20 } from "./transferFrom.js";
|
|
15
|
+
export const Erc20Controller = createController({
|
|
16
|
+
build: (factory) => factory
|
|
17
|
+
.createApp()
|
|
18
|
+
.route("/deploy", CreateErc20Token.build(factory))
|
|
19
|
+
.route("/deployGated", CreateGatedErc20Token.build(factory))
|
|
20
|
+
.route("/getDeployEvent", ParseErc20DeployEvent.build(factory))
|
|
21
|
+
.route("/approve", ApproveErc20Token.build(factory))
|
|
22
|
+
.route("/burn", BurnErc20Token.build(factory))
|
|
23
|
+
.route("/mint", MintErc20Token.build(factory))
|
|
24
|
+
.route("/transfer", TransferErc20.build(factory))
|
|
25
|
+
.route("/transferFrom", TransferFromErc20.build(factory))
|
|
26
|
+
.route("/recover", RecoverErc20.build(factory))
|
|
27
|
+
.route("/grantRole", GrantRoleErc20.build(factory))
|
|
28
|
+
.route("/revokeRole", RevokeRoleErc20.build(factory))
|
|
29
|
+
.route("/renounceRole", RenounceRoleErc20.build(factory))
|
|
30
|
+
.route("/initialize", InitializeErc20.build(factory)),
|
|
31
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const InitializeErc20RequestSchema: z.ZodObject<{
|
|
3
|
+
tokenAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
symbol: z.ZodString;
|
|
6
|
+
cap: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
7
|
+
defaultAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
8
|
+
minter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
9
|
+
gatingSigner: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const InitializeErc20: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
12
|
+
"/": {
|
|
13
|
+
$post: {
|
|
14
|
+
input: {
|
|
15
|
+
json: {
|
|
16
|
+
tokenAddress: string;
|
|
17
|
+
name: string;
|
|
18
|
+
symbol: string;
|
|
19
|
+
cap: string;
|
|
20
|
+
defaultAdmin: string;
|
|
21
|
+
minter: string;
|
|
22
|
+
gatingSigner?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
output: {
|
|
26
|
+
data: `0x${string}`;
|
|
27
|
+
to: `0x${string}`;
|
|
28
|
+
details: {
|
|
29
|
+
functionName: string;
|
|
30
|
+
address: `0x${string}`;
|
|
31
|
+
abi: any[];
|
|
32
|
+
args: any[];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
outputFormat: "json";
|
|
36
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, "/">>;
|
|
40
|
+
//# sourceMappingURL=initialize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,4BAA4B;;;;;;;;iBAUvC,CAAC;AAkBH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAc1B,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { abis } from "@evergonlabs/tmi-factories-sdk";
|
|
5
|
+
import { createController } from "../../common/controller.js";
|
|
6
|
+
import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
|
+
import { Int256BigInt } from "../../common/int256.js";
|
|
8
|
+
import { DEFAULT_COMPILOT_SIGNER } from "../../common/models/compilot.js";
|
|
9
|
+
export const InitializeErc20RequestSchema = z.object({
|
|
10
|
+
tokenAddress: AddressSchema,
|
|
11
|
+
name: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
|
|
12
|
+
symbol: z.string().nonempty().openapi({ description: "Symbol of the ERC20 token" }),
|
|
13
|
+
cap: Int256BigInt(z.bigint().nonnegative()),
|
|
14
|
+
defaultAdmin: AddressSchema.openapi({ description: "Address to receive DEFAULT_ADMIN_ROLE" }),
|
|
15
|
+
minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
|
|
16
|
+
gatingSigner: AddressSchema.optional().openapi({
|
|
17
|
+
description: "Address of the gating signer for whitelist verification. Defaults to the ComPilot signer.",
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
const initializeRoute = describeRoute({
|
|
21
|
+
summary: "Initialize Gated ERC20",
|
|
22
|
+
description: "Returns transaction data for initializing a gated ERC20 token proxy contract",
|
|
23
|
+
tags: ["Issuance"],
|
|
24
|
+
responses: {
|
|
25
|
+
200: {
|
|
26
|
+
description: "Returns transaction data for initializing a gated ERC20",
|
|
27
|
+
content: {
|
|
28
|
+
"application/json": {
|
|
29
|
+
schema: resolver(TransactionSchema),
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
export const InitializeErc20 = createController({
|
|
36
|
+
build: (factory) => factory.createApp().post("/", initializeRoute, validator("json", InitializeErc20RequestSchema), async (c) => {
|
|
37
|
+
const { tokenAddress, name, symbol, cap, defaultAdmin, minter, gatingSigner } = c.req.valid("json");
|
|
38
|
+
return c.json(toTransaction({
|
|
39
|
+
address: tokenAddress,
|
|
40
|
+
abi: abis.erc20WhitelistGatedPausableRecoverableUpgradeableAbi,
|
|
41
|
+
functionName: "initialize",
|
|
42
|
+
args: [name, symbol, BigInt(cap), defaultAdmin, minter, gatingSigner ?? DEFAULT_COMPILOT_SIGNER],
|
|
43
|
+
}));
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const MintErc20RequestSchema: z.ZodObject<{
|
|
3
|
+
tokenAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
+
to: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
5
|
+
amount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const MintErc20Token: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
8
|
+
"/": {
|
|
9
|
+
$post: {
|
|
10
|
+
input: {
|
|
11
|
+
json: {
|
|
12
|
+
tokenAddress: string;
|
|
13
|
+
to: string;
|
|
14
|
+
amount: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
output: {
|
|
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
|
+
};
|
|
27
|
+
outputFormat: "json";
|
|
28
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}, "/">>;
|
|
32
|
+
//# sourceMappingURL=mint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mint.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/mint.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;QAczB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { abis } from "@evergonlabs/tmi-factories-sdk";
|
|
5
|
+
import { createController } from "../../common/controller.js";
|
|
6
|
+
import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
|
+
import { Int256BigInt } from "../../common/int256.js";
|
|
8
|
+
export const MintErc20RequestSchema = z.object({
|
|
9
|
+
tokenAddress: AddressSchema,
|
|
10
|
+
to: AddressSchema.openapi({ description: "Address to mint tokens to" }),
|
|
11
|
+
amount: Int256BigInt(z.bigint().nonnegative()),
|
|
12
|
+
});
|
|
13
|
+
const mintRoute = describeRoute({
|
|
14
|
+
summary: "Mint Gated ERC20",
|
|
15
|
+
description: "Returns transaction data for minting a gated ERC20 (MINTER_ROLE required)",
|
|
16
|
+
tags: ["Issuance"],
|
|
17
|
+
responses: {
|
|
18
|
+
200: {
|
|
19
|
+
description: "Returns transaction data for minting a gated ERC20",
|
|
20
|
+
content: {
|
|
21
|
+
"application/json": {
|
|
22
|
+
schema: resolver(TransactionSchema),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
export const MintErc20Token = createController({
|
|
29
|
+
build: (factory) => factory.createApp().post("/", mintRoute, validator("json", MintErc20RequestSchema), async (c) => {
|
|
30
|
+
const { tokenAddress, to, amount } = c.req.valid("json");
|
|
31
|
+
return c.json(toTransaction({
|
|
32
|
+
address: tokenAddress,
|
|
33
|
+
abi: abis.erc20WhitelistGatedPausableRecoverableUpgradeableAbi,
|
|
34
|
+
functionName: "mint",
|
|
35
|
+
args: [to, BigInt(amount)],
|
|
36
|
+
}));
|
|
37
|
+
}),
|
|
38
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const ParseErc20DeployEvent: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
|
+
"/": {
|
|
3
|
+
$get: {
|
|
4
|
+
input: {
|
|
5
|
+
query: {
|
|
6
|
+
chainId: string | string[];
|
|
7
|
+
hash: string | string[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
output: {
|
|
11
|
+
proxy: `0x${string}`;
|
|
12
|
+
admin: `0x${string}`;
|
|
13
|
+
minter: `0x${string}`;
|
|
14
|
+
supplyCap: string;
|
|
15
|
+
name: string;
|
|
16
|
+
symbol: string;
|
|
17
|
+
};
|
|
18
|
+
outputFormat: "json";
|
|
19
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, "/">>;
|
|
23
|
+
//# sourceMappingURL=parseErc20DeployEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseErc20DeployEvent.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/parseErc20DeployEvent.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;QAoDhC,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi";
|
|
3
|
+
import { parseEventLogs } from "viem";
|
|
4
|
+
import { waitForTransactionReceipt } from "viem/actions";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { abis } from "@evergonlabs/tmi-factories-sdk";
|
|
7
|
+
import { Int256Json } from "@evergonlabs/tmi-utils/models";
|
|
8
|
+
import { getPublicClient } from "../../common/blockchain.js";
|
|
9
|
+
import { createController } from "../../common/controller.js";
|
|
10
|
+
import { HttpError } from "../../common/http-error.js";
|
|
11
|
+
import { AddressSchema, HashSchema } from "../../common/index.js";
|
|
12
|
+
import { FactoryChainId } from "../common/factories.js";
|
|
13
|
+
const QuerySchema = z.object({
|
|
14
|
+
chainId: FactoryChainId.Schema.openapi({
|
|
15
|
+
param: {
|
|
16
|
+
name: "chainId",
|
|
17
|
+
in: "query",
|
|
18
|
+
},
|
|
19
|
+
}),
|
|
20
|
+
hash: HashSchema.openapi({
|
|
21
|
+
param: {
|
|
22
|
+
name: "hash",
|
|
23
|
+
in: "query",
|
|
24
|
+
},
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
27
|
+
export const ParseErc20DeployEvent = createController({
|
|
28
|
+
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
29
|
+
summary: "Get TokenProxyConfigured Event",
|
|
30
|
+
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the ERC20 factory \`deployAndInitializeProxy\` action`,
|
|
31
|
+
tags: ["Issuance"],
|
|
32
|
+
responses: {
|
|
33
|
+
200: {
|
|
34
|
+
description: "Returns parsed event log",
|
|
35
|
+
content: {
|
|
36
|
+
"application/json": {
|
|
37
|
+
schema: resolver(z.object({
|
|
38
|
+
proxy: AddressSchema,
|
|
39
|
+
admin: AddressSchema,
|
|
40
|
+
minter: AddressSchema,
|
|
41
|
+
supplyCap: Int256Json,
|
|
42
|
+
name: z.string(),
|
|
43
|
+
symbol: z.string(),
|
|
44
|
+
})),
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
}), validator("query", QuerySchema), async (c) => {
|
|
50
|
+
const params = c.req.valid("query");
|
|
51
|
+
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
|
|
52
|
+
hash: params.hash,
|
|
53
|
+
});
|
|
54
|
+
const [event] = parseEventLogs({
|
|
55
|
+
abi: abis.erc20GatedPausableRecoverableFactoryAbi,
|
|
56
|
+
eventName: "TokenProxyConfigured",
|
|
57
|
+
logs: receipt.logs,
|
|
58
|
+
});
|
|
59
|
+
if (!event) {
|
|
60
|
+
throw new UnableParseErc20DeployEvent();
|
|
61
|
+
}
|
|
62
|
+
return c.json({
|
|
63
|
+
proxy: event.args.proxy,
|
|
64
|
+
admin: event.args.admin,
|
|
65
|
+
minter: event.args.minter,
|
|
66
|
+
supplyCap: event.args.supplyCap.toString(),
|
|
67
|
+
name: event.args.name,
|
|
68
|
+
symbol: event.args.symbol,
|
|
69
|
+
});
|
|
70
|
+
}),
|
|
71
|
+
});
|
|
72
|
+
class UnableParseErc20DeployEvent extends HttpError {
|
|
73
|
+
constructor() {
|
|
74
|
+
super(500, {
|
|
75
|
+
message: `Can't parse TokenProxyConfigured event. Make sure you're passing a transaction generated by the ERC20 factory \`deployAndInitializeProxy\` action`,
|
|
76
|
+
name: "UnableParseErc20DeployEvent",
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RecoverErc20RequestSchema: z.ZodObject<{
|
|
3
|
+
tokenAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
+
from: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
5
|
+
to: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
6
|
+
amount: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const RecoverErc20: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
9
|
+
"/": {
|
|
10
|
+
$post: {
|
|
11
|
+
input: {
|
|
12
|
+
json: {
|
|
13
|
+
tokenAddress: string;
|
|
14
|
+
from: string;
|
|
15
|
+
to: string;
|
|
16
|
+
amount: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
output: {
|
|
20
|
+
data: `0x${string}`;
|
|
21
|
+
to: `0x${string}`;
|
|
22
|
+
details: {
|
|
23
|
+
functionName: string;
|
|
24
|
+
address: `0x${string}`;
|
|
25
|
+
abi: any[];
|
|
26
|
+
args: any[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
outputFormat: "json";
|
|
30
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}, "/">>;
|
|
34
|
+
//# sourceMappingURL=recover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recover.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/recover.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AAmBH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;QAcvB,CAAC"}
|