@evergonlabs/tmi-protocol-api 0.8.0 → 0.9.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 +462 -67
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +591 -180
- package/dist/client.d.ts.map +1 -1
- package/dist/common/blockchain.d.ts +63 -63
- package/dist/common/middleware/indexer.d.ts +1 -1
- package/dist/common/middleware/indexer.d.ts.map +1 -1
- package/dist/common/models/chainId.d.ts +3 -0
- package/dist/common/models/chainId.d.ts.map +1 -1
- package/dist/common/models/chainId.js +10 -16
- package/dist/common/models/platform.d.ts +1 -1
- package/dist/factory.d.ts +1 -3
- package/dist/factory.d.ts.map +1 -1
- package/dist/fractions/fractions/approveWrapper.route.d.ts +3 -3
- package/dist/fractions/fractions/approveWrapper.route.d.ts.map +1 -1
- package/dist/fractions/fractions/index.d.ts +1 -1
- package/dist/fractions/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.d.ts +154 -6
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/markets/getDeployEvent.d.ts +1 -1
- package/dist/fractions/markets/getDeployEvent.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket/getMarket.d.ts +22 -2
- package/dist/fractions/markets/getMarket/getMarket.d.ts.map +1 -1
- package/dist/fractions/markets/getMarket/index.d.ts +22 -2
- package/dist/fractions/markets/getMarket/index.d.ts.map +1 -1
- package/dist/fractions/markets/index.d.ts +43 -3
- package/dist/fractions/markets/index.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/index.d.ts +22 -2
- package/dist/fractions/markets/searchMarkets/index.d.ts.map +1 -1
- package/dist/fractions/markets/searchMarkets/searchMarkets.d.ts +22 -2
- package/dist/fractions/markets/searchMarkets/searchMarkets.d.ts.map +1 -1
- package/dist/fractions/platforms/deployMarket.routes.d.ts +4 -4
- package/dist/fractions/platforms/deployMarket.routes.d.ts.map +1 -1
- package/dist/fractions/platforms/index.d.ts +1 -1
- package/dist/fractions/platforms/index.d.ts.map +1 -1
- package/dist/fractions/platforms/initCompilot.routes.d.ts +1 -1
- package/dist/fractions/platforms/initCompilot.routes.d.ts.map +1 -1
- package/dist/fractions/platforms/initNid.route.d.ts +1 -1
- package/dist/fractions/platforms/initNid.route.d.ts.map +1 -1
- package/dist/fractions/roles/getRoles.d.ts +1 -1
- package/dist/fractions/roles/getRoles.d.ts.map +1 -1
- package/dist/fractions/roles/grantRole.route.d.ts +1 -1
- package/dist/fractions/roles/grantRole.route.d.ts.map +1 -1
- package/dist/fractions/roles/index.d.ts +1 -1
- package/dist/fractions/roles/index.d.ts.map +1 -1
- package/dist/fractions/sales/approveSale.route.d.ts +1 -1
- package/dist/fractions/sales/approveSale.route.d.ts.map +1 -1
- package/dist/fractions/sales/common/fractionsSale.d.ts +1 -1
- package/dist/fractions/sales/completeSale.route.d.ts +1 -1
- package/dist/fractions/sales/completeSale.route.d.ts.map +1 -1
- package/dist/fractions/sales/createFractions.route.d.ts +1 -1
- package/dist/fractions/sales/createFractions.route.d.ts.map +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/getVaultAddress.d.ts +1 -1
- package/dist/fractions/sales/getVaultAddress.d.ts.map +1 -1
- package/dist/fractions/sales/getWithdrawEvent.d.ts +1 -1
- package/dist/fractions/sales/getWithdrawEvent.d.ts.map +1 -1
- package/dist/fractions/sales/index.d.ts +112 -4
- package/dist/fractions/sales/index.d.ts.map +1 -1
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts +1 -1
- package/dist/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -1
- package/dist/fractions/sales/purchase.route.d.ts +1 -1
- package/dist/fractions/sales/purchase.route.d.ts.map +1 -1
- package/dist/fractions/sales/purchaseStatistics.route.d.ts +1 -1
- package/dist/fractions/sales/purchaseStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +2 -2
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +1 -1
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +1 -1
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +1 -1
- package/dist/fractions/sales/recoverFractions.d.ts +1 -1
- package/dist/fractions/sales/recoverFractions.d.ts.map +1 -1
- package/dist/fractions/sales/rejectFractions.d.ts +1 -1
- package/dist/fractions/sales/rejectFractions.d.ts.map +1 -1
- package/dist/fractions/sales/searchActivity.route.d.ts +1 -1
- package/dist/fractions/sales/searchActivity.route.d.ts.map +1 -1
- package/dist/fractions/sales/searchSales/searchSales.d.ts +67 -2
- package/dist/fractions/sales/searchSales/searchSales.d.ts.map +1 -1
- package/dist/fractions/sales/searchWithdrawal.route.d.ts +35 -2
- package/dist/fractions/sales/searchWithdrawal.route.d.ts.map +1 -1
- package/dist/fractions/sales/setFeeCapLimit.d.ts +1 -1
- package/dist/fractions/sales/setFeeCapLimit.d.ts.map +1 -1
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts +1 -1
- package/dist/fractions/sales/unlockWrappedAssets.route.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts +12 -2
- package/dist/fractions/sales/vesting/claimStatistics.route.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts +1 -1
- package/dist/fractions/sales/vesting/claimVestedTokens.route.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/editCliff.route.d.ts +1 -1
- package/dist/fractions/sales/vesting/editCliff.route.d.ts.map +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.d.ts.map +1 -1
- package/dist/fractions/sales/withdraw.route.d.ts +1 -1
- package/dist/fractions/sales/withdraw.route.d.ts.map +1 -1
- package/dist/fractions/sig/getAuthData.d.ts +1 -1
- package/dist/fractions/sig/getAuthData.d.ts.map +1 -1
- package/dist/fractions/sig/getNonce.route.d.ts +1 -1
- package/dist/fractions/sig/getNonce.route.d.ts.map +1 -1
- package/dist/fractions/sig/index.d.ts +1 -1
- package/dist/fractions/sig/index.d.ts.map +1 -1
- package/dist/fractions/statistics/index.d.ts +1 -1
- package/dist/fractions/statistics/index.d.ts.map +1 -1
- package/dist/fractions/statistics/networkStatistics.route.d.ts +4 -4
- package/dist/fractions/statistics/networkStatistics.route.d.ts.map +1 -1
- package/dist/general/estimateGas.d.ts +1 -1
- package/dist/general/estimateGas.d.ts.map +1 -1
- package/dist/general/getBalance.d.ts +1 -1
- package/dist/general/getBalance.d.ts.map +1 -1
- package/dist/general/getBalancesBatch.d.ts +1 -1
- package/dist/general/getBalancesBatch.d.ts.map +1 -1
- package/dist/general/index.d.ts +1 -1
- package/dist/general/index.d.ts.map +1 -1
- package/dist/general/searchBalances.d.ts +1 -1
- package/dist/general/searchBalances.d.ts.map +1 -1
- package/dist/issuance/common/exports.d.ts +1 -1
- package/dist/issuance/common/exports.d.ts.map +1 -1
- package/dist/issuance/common/exports.js +1 -1
- package/dist/issuance/common/factories.base.d.ts +167 -0
- package/dist/issuance/common/factories.base.d.ts.map +1 -0
- package/dist/issuance/common/factories.base.js +15 -0
- package/dist/issuance/common/factories.d.ts +2 -166
- package/dist/issuance/common/factories.d.ts.map +1 -1
- package/dist/issuance/common/factories.js +4 -15
- package/dist/issuance/erc20/approve.d.ts +1 -1
- package/dist/issuance/erc20/approve.d.ts.map +1 -1
- package/dist/issuance/erc20/burn.d.ts +1 -1
- package/dist/issuance/erc20/burn.d.ts.map +1 -1
- package/dist/issuance/erc20/default/deploy.d.ts +38 -0
- package/dist/issuance/erc20/default/deploy.d.ts.map +1 -0
- package/dist/issuance/erc20/default/deploy.js +54 -0
- package/dist/issuance/erc20/default/initialize.d.ts +38 -0
- package/dist/issuance/erc20/default/initialize.d.ts.map +1 -0
- package/dist/issuance/erc20/default/initialize.js +43 -0
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts +23 -0
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc20/default/parseDeployEvent.js +79 -0
- package/dist/issuance/erc20/gated/deploy.d.ts +40 -0
- package/dist/issuance/erc20/gated/deploy.d.ts.map +1 -0
- package/dist/issuance/erc20/gated/deploy.js +60 -0
- package/dist/issuance/erc20/gated/initialize.d.ts +40 -0
- package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -0
- package/dist/issuance/erc20/gated/initialize.js +45 -0
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts +23 -0
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc20/gated/parseDeployEvent.js +79 -0
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts +15 -0
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -0
- package/dist/issuance/erc20/gatedSimple/deploy.js +28 -0
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts +32 -0
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts.map +1 -0
- package/dist/issuance/erc20/gatedSimple/getInitData.js +51 -0
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts +18 -0
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.js +63 -0
- package/dist/issuance/erc20/grantRole.d.ts +1 -1
- package/dist/issuance/erc20/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc20/index.d.ts +126 -30
- package/dist/issuance/erc20/index.d.ts.map +1 -1
- package/dist/issuance/erc20/index.js +21 -7
- package/dist/issuance/erc20/mint.d.ts +1 -1
- package/dist/issuance/erc20/mint.d.ts.map +1 -1
- package/dist/issuance/erc20/parseErc20DeployEvent.js +2 -2
- package/dist/issuance/erc20/recover.d.ts +1 -1
- package/dist/issuance/erc20/recover.d.ts.map +1 -1
- package/dist/issuance/erc20/renounceRole.d.ts +1 -1
- package/dist/issuance/erc20/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc20/revokeRole.d.ts +1 -1
- package/dist/issuance/erc20/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc20/transfer.d.ts +1 -1
- package/dist/issuance/erc20/transfer.d.ts.map +1 -1
- package/dist/issuance/erc20/transferFrom.d.ts +1 -1
- package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc721/approve.d.ts +1 -1
- package/dist/issuance/erc721/approve.d.ts.map +1 -1
- package/dist/issuance/erc721/burn.d.ts +1 -1
- package/dist/issuance/erc721/burn.d.ts.map +1 -1
- package/dist/issuance/erc721/default/deploy.d.ts +38 -0
- package/dist/issuance/erc721/default/deploy.d.ts.map +1 -0
- package/dist/issuance/erc721/default/deploy.js +53 -0
- package/dist/issuance/erc721/default/initialize.d.ts +38 -0
- package/dist/issuance/erc721/default/initialize.d.ts.map +1 -0
- package/dist/issuance/erc721/default/initialize.js +40 -0
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts +23 -0
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc721/default/parseDeployEvent.js +78 -0
- package/dist/issuance/erc721/gated/deploy.d.ts +40 -0
- package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -0
- package/dist/issuance/erc721/gated/deploy.js +60 -0
- package/dist/issuance/erc721/gated/initialize.d.ts +40 -0
- package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -0
- package/dist/issuance/erc721/gated/initialize.js +44 -0
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts +23 -0
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc721/gated/parseDeployEvent.js +78 -0
- package/dist/issuance/erc721/grantRole.d.ts +1 -1
- package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc721/index.d.ts +78 -29
- package/dist/issuance/erc721/index.d.ts.map +1 -1
- package/dist/issuance/erc721/index.js +14 -7
- package/dist/issuance/erc721/mint.d.ts +1 -1
- package/dist/issuance/erc721/mint.d.ts.map +1 -1
- package/dist/issuance/erc721/parseErc721DeployEvent.js +2 -2
- package/dist/issuance/erc721/recover.d.ts +1 -1
- package/dist/issuance/erc721/recover.d.ts.map +1 -1
- package/dist/issuance/erc721/renounceRole.d.ts +1 -1
- package/dist/issuance/erc721/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc721/revokeRole.d.ts +1 -1
- package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc721/setBaseURI.d.ts +1 -1
- package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setTokenURI.d.ts +1 -1
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc721/transferFrom.d.ts +1 -1
- package/dist/issuance/erc721/transferFrom.d.ts.map +1 -1
- package/dist/issuance/index.d.ts +186 -41
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/proxy/deploy.d.ts +2 -2
- package/dist/issuance/proxy/deploy.d.ts.map +1 -1
- package/dist/issuance/proxy/index.d.ts +1 -1
- package/dist/issuance/proxy/index.d.ts.map +1 -1
- package/dist/issuance/proxy/upgrade.d.ts +1 -1
- package/dist/issuance/proxy/upgrade.d.ts.map +1 -1
- package/dist/next/fractions/index.d.ts +1 -1
- package/dist/next/fractions/index.d.ts.map +1 -1
- package/dist/next/fractions/lending/buyback/buyback.routes.d.ts +1 -1
- package/dist/next/fractions/lending/buyback/buyback.routes.d.ts.map +1 -1
- package/dist/next/fractions/lending/createLendingSale.d.ts +1 -1
- package/dist/next/fractions/lending/createLendingSale.d.ts.map +1 -1
- package/dist/next/fractions/lending/deployMarket/lending.routes.d.ts +1 -1
- package/dist/next/fractions/lending/deployMarket/lending.routes.d.ts.map +1 -1
- package/dist/next/fractions/lending/index.d.ts +1 -1
- package/dist/next/fractions/lending/index.d.ts.map +1 -1
- package/dist/next/fractions/lending/purchase/directPurchase.route.d.ts +1 -1
- package/dist/next/fractions/lending/purchase/directPurchase.route.d.ts.map +1 -1
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +1 -1
- package/dist/next/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts.map +1 -1
- package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.d.ts +1 -1
- package/dist/next/fractions/platforms/deployNftFractionsMarket.routes.d.ts.map +1 -1
- package/dist/next/fractions/platforms/index.d.ts +1 -1
- package/dist/next/fractions/platforms/index.d.ts.map +1 -1
- package/dist/next/fractions/sales/createNftFractions.routes.d.ts +1 -1
- package/dist/next/fractions/sales/createNftFractions.routes.d.ts.map +1 -1
- package/dist/next/fractions/sales/index.d.ts +1 -1
- package/dist/next/fractions/sales/index.d.ts.map +1 -1
- package/dist/staking/index.d.ts +76 -8
- package/dist/staking/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/index.d.ts +1 -1
- package/dist/staking/platforms/getPlatform/index.d.ts.map +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts +1 -1
- package/dist/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +1 -1
- package/dist/staking/platforms/index.d.ts +1 -1
- package/dist/staking/platforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/index.d.ts +1 -1
- package/dist/staking/platforms/searchPlatforms/index.d.ts.map +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +1 -1
- package/dist/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +1 -1
- package/dist/staking/pools/getPool/index.d.ts +10 -2
- package/dist/staking/pools/getPool/index.d.ts.map +1 -1
- package/dist/staking/pools/getPool/v0/getPool.d.ts +11 -2
- package/dist/staking/pools/getPool/v0/getPool.d.ts.map +1 -1
- package/dist/staking/pools/index.d.ts +19 -3
- package/dist/staking/pools/index.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/index.d.ts +10 -2
- package/dist/staking/pools/searchPools/index.d.ts.map +1 -1
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts +11 -2
- package/dist/staking/pools/searchPools/v0/searchPools.d.ts.map +1 -1
- package/dist/staking/roles/getRoles/index.d.ts +1 -1
- package/dist/staking/roles/getRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts +1 -1
- package/dist/staking/roles/getRoles/v0/getRoles.d.ts.map +1 -1
- package/dist/staking/roles/grantRole/index.d.ts +1 -1
- package/dist/staking/roles/grantRole/index.d.ts.map +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts +1 -1
- package/dist/staking/roles/grantRole/v0/grantRole.d.ts.map +1 -1
- package/dist/staking/roles/index.d.ts +20 -3
- package/dist/staking/roles/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/index.d.ts +11 -2
- package/dist/staking/roles/searchRoleEvents/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +11 -2
- package/dist/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/index.d.ts +10 -2
- package/dist/staking/roles/searchRoles/index.d.ts.map +1 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts +11 -2
- package/dist/staking/roles/searchRoles/v0/searchRoles.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/index.d.ts +15 -2
- package/dist/staking/stakes/getStake/index.d.ts.map +1 -1
- package/dist/staking/stakes/getStake/v0/getStake.d.ts +15 -2
- package/dist/staking/stakes/getStake/v0/getStake.d.ts.map +1 -1
- package/dist/staking/stakes/index.d.ts +39 -4
- package/dist/staking/stakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/index.d.ts +11 -2
- package/dist/staking/stakes/searchStakeEvents/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +12 -2
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/index.d.ts +15 -2
- package/dist/staking/stakes/searchStakes/index.d.ts.map +1 -1
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts +15 -2
- package/dist/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +1 -1
- package/dist/stakingTemplates/index.d.ts +43 -7
- package/dist/stakingTemplates/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts +6 -2
- package/dist/stakingTemplates/templates/common/getCreatePoolEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts +1 -1
- package/dist/stakingTemplates/templates/common/getPlatformDeployEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getReward.d.ts +1 -1
- package/dist/stakingTemplates/templates/common/getReward.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts +10 -2
- package/dist/stakingTemplates/templates/common/getStakeEvent.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts +1 -1
- package/dist/stakingTemplates/templates/common/partialUnstake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/common/unstake.d.ts +1 -1
- package/dist/stakingTemplates/templates/common/unstake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/index.d.ts +15 -3
- package/dist/stakingTemplates/templates/reputation/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPlatform.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/createPool.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts +15 -3
- package/dist/stakingTemplates/templates/reputation/v0/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/restake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputation/v0/stake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts +15 -3
- package/dist/stakingTemplates/templates/reputationLock/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPlatform.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/createPool.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts +15 -3
- package/dist/stakingTemplates/templates/reputationLock/v0/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/restake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts +1 -1
- package/dist/stakingTemplates/templates/reputationLock/v0/stake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/index.d.ts +15 -3
- package/dist/stakingTemplates/templates/rwa/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPlatform.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/createPool.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/distributeRewards.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts +15 -3
- package/dist/stakingTemplates/templates/rwa/v0/index.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/restake.d.ts.map +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts +1 -1
- package/dist/stakingTemplates/templates/rwa/v0/stake.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -25,7 +25,7 @@ export declare const GetHoldersV0: import("../../common/controller.js").IControl
|
|
|
25
25
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
}, "/">>;
|
|
28
|
+
}, "/", "/">>;
|
|
29
29
|
/**
|
|
30
30
|
* Get the number of successful (finalized) fraction sales
|
|
31
31
|
*/
|
|
@@ -51,7 +51,7 @@ export declare const GetSalesStatisticsV0: import("../../common/controller.js").
|
|
|
51
51
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
|
-
}, "/">>;
|
|
54
|
+
}, "/", "/">>;
|
|
55
55
|
/**
|
|
56
56
|
* Get the Total Tokenized Value (TTV) - sum of all amounts raised by successful sales in USDC
|
|
57
57
|
*/
|
|
@@ -77,7 +77,7 @@ export declare const GetTtvV0: import("../../common/controller.js").IController<
|
|
|
77
77
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
}, "/">>;
|
|
80
|
+
}, "/", "/">>;
|
|
81
81
|
export declare const GetNetworkStatisticsV0: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<AppContext, {
|
|
82
82
|
"/": {
|
|
83
83
|
$post: {
|
|
@@ -117,5 +117,5 @@ export declare const GetNetworkStatisticsV0: import("../../common/controller.js"
|
|
|
117
117
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
118
118
|
};
|
|
119
119
|
};
|
|
120
|
-
}, "/">>;
|
|
120
|
+
}, "/", "/">>;
|
|
121
121
|
//# sourceMappingURL=networkStatistics.route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkStatistics.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/statistics/networkStatistics.route.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAuIrD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"networkStatistics.route.d.ts","sourceRoot":"","sources":["../../../src/fractions/statistics/networkStatistics.route.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAuIrD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;aA8BvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;aA8B/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;aA8BnB,CAAC;AA2BH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAkCjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimateGas.d.ts","sourceRoot":"","sources":["../../src/general/estimateGas.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA8BpD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"estimateGas.d.ts","sourceRoot":"","sources":["../../src/general/estimateGas.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA8BpD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;aAoCxB,CAAC;AAEH,qBAAa,sBAAuB,SAAQ,SAAS,CAAC,GAAG,CAAC;gBAC5C,KAAK,EAAE,OAAO;CAM3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../src/general/getBalance.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../src/general/getBalance.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;aA2BvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBalancesBatch.d.ts","sourceRoot":"","sources":["../../src/general/getBalancesBatch.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getBalancesBatch.d.ts","sourceRoot":"","sources":["../../src/general/getBalancesBatch.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;aAyB7B,CAAC"}
|
package/dist/general/index.d.ts
CHANGED
|
@@ -84,5 +84,5 @@ export declare const GeneralApi: import("../common/controller.js").IApi<import("
|
|
|
84
84
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
-
}, "/searchBalances">, "/">>;
|
|
87
|
+
}, "/searchBalances">, "/", "/">>;
|
|
88
88
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/general/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/general/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAUrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchBalances.d.ts","sourceRoot":"","sources":["../../src/general/searchBalances.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"searchBalances.d.ts","sourceRoot":"","sources":["../../src/general/searchBalances.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;aAkC3B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { FactoryChainId, type IFactoryChainId } from "./factories.js";
|
|
1
|
+
export { FactoryChainId, type IFactoryChainId } from "./factories.base.js";
|
|
2
2
|
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FactoryChainId } from "./factories.js";
|
|
1
|
+
export { FactoryChainId } from "./factories.base.js";
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
export declare const FactoryChainId: {
|
|
2
|
+
Schema: import("zod").ZodUnion<[import("zod").ZodLiteral<11155111 | 72080>, import("zod").ZodLiteral<11155111 | 72080>, ...import("zod").ZodLiteral<11155111 | 72080>[]]>;
|
|
3
|
+
chains: ({
|
|
4
|
+
blockExplorers: {
|
|
5
|
+
readonly default: {
|
|
6
|
+
readonly name: "Etherscan";
|
|
7
|
+
readonly url: "https://sepolia.etherscan.io";
|
|
8
|
+
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
contracts: {
|
|
12
|
+
readonly multicall3: {
|
|
13
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
14
|
+
readonly blockCreated: 751532;
|
|
15
|
+
};
|
|
16
|
+
readonly ensRegistry: {
|
|
17
|
+
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
18
|
+
};
|
|
19
|
+
readonly ensUniversalResolver: {
|
|
20
|
+
readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
|
|
21
|
+
readonly blockCreated: 5317080;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
id: 11155111;
|
|
25
|
+
name: "Sepolia";
|
|
26
|
+
nativeCurrency: {
|
|
27
|
+
readonly name: "Sepolia Ether";
|
|
28
|
+
readonly symbol: "ETH";
|
|
29
|
+
readonly decimals: 18;
|
|
30
|
+
};
|
|
31
|
+
rpcUrls: {
|
|
32
|
+
readonly default: {
|
|
33
|
+
readonly http: readonly ["https://sepolia.drpc.org"];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
sourceId?: number | undefined;
|
|
37
|
+
testnet: true;
|
|
38
|
+
custom?: Record<string, unknown> | undefined;
|
|
39
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
40
|
+
formatters?: undefined;
|
|
41
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
blockExplorers: {
|
|
44
|
+
readonly default: {
|
|
45
|
+
readonly name: "Nexera Blockscout";
|
|
46
|
+
readonly url: "https://explorer.testnet.nexera.network/";
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
contracts: {};
|
|
50
|
+
id: 72080;
|
|
51
|
+
name: "Nexera Testnet";
|
|
52
|
+
nativeCurrency: {
|
|
53
|
+
readonly decimals: 18;
|
|
54
|
+
readonly name: "Nexera";
|
|
55
|
+
readonly symbol: "tNXRA";
|
|
56
|
+
};
|
|
57
|
+
rpcUrls: {
|
|
58
|
+
readonly default: {
|
|
59
|
+
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
60
|
+
};
|
|
61
|
+
readonly public: {
|
|
62
|
+
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
sourceId?: number | undefined | undefined;
|
|
66
|
+
testnet?: boolean | undefined | undefined;
|
|
67
|
+
custom?: Record<string, unknown> | undefined;
|
|
68
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
69
|
+
formatters?: undefined;
|
|
70
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
71
|
+
})[];
|
|
72
|
+
chainIds: (11155111 | 72080)[];
|
|
73
|
+
isSupported: (chainId: number) => chainId is 11155111 | 72080;
|
|
74
|
+
get: <T extends 11155111 | 72080>(chainId: T) => Extract<{
|
|
75
|
+
blockExplorers: {
|
|
76
|
+
readonly default: {
|
|
77
|
+
readonly name: "Etherscan";
|
|
78
|
+
readonly url: "https://sepolia.etherscan.io";
|
|
79
|
+
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
contracts: {
|
|
83
|
+
readonly multicall3: {
|
|
84
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
85
|
+
readonly blockCreated: 751532;
|
|
86
|
+
};
|
|
87
|
+
readonly ensRegistry: {
|
|
88
|
+
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
89
|
+
};
|
|
90
|
+
readonly ensUniversalResolver: {
|
|
91
|
+
readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
|
|
92
|
+
readonly blockCreated: 5317080;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
id: 11155111;
|
|
96
|
+
name: "Sepolia";
|
|
97
|
+
nativeCurrency: {
|
|
98
|
+
readonly name: "Sepolia Ether";
|
|
99
|
+
readonly symbol: "ETH";
|
|
100
|
+
readonly decimals: 18;
|
|
101
|
+
};
|
|
102
|
+
rpcUrls: {
|
|
103
|
+
readonly default: {
|
|
104
|
+
readonly http: readonly ["https://sepolia.drpc.org"];
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
sourceId?: number | undefined;
|
|
108
|
+
testnet: true;
|
|
109
|
+
custom?: Record<string, unknown> | undefined;
|
|
110
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
111
|
+
formatters?: undefined;
|
|
112
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
id: T;
|
|
115
|
+
}> | Extract<{
|
|
116
|
+
blockExplorers: {
|
|
117
|
+
readonly default: {
|
|
118
|
+
readonly name: "Nexera Blockscout";
|
|
119
|
+
readonly url: "https://explorer.testnet.nexera.network/";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
contracts: {};
|
|
123
|
+
id: 72080;
|
|
124
|
+
name: "Nexera Testnet";
|
|
125
|
+
nativeCurrency: {
|
|
126
|
+
readonly decimals: 18;
|
|
127
|
+
readonly name: "Nexera";
|
|
128
|
+
readonly symbol: "tNXRA";
|
|
129
|
+
};
|
|
130
|
+
rpcUrls: {
|
|
131
|
+
readonly default: {
|
|
132
|
+
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
133
|
+
};
|
|
134
|
+
readonly public: {
|
|
135
|
+
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
sourceId?: number | undefined | undefined;
|
|
139
|
+
testnet?: boolean | undefined | undefined;
|
|
140
|
+
custom?: Record<string, unknown> | undefined;
|
|
141
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
142
|
+
formatters?: undefined;
|
|
143
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
id: T;
|
|
146
|
+
}>;
|
|
147
|
+
};
|
|
148
|
+
export declare const factoryChainIds: (11155111 | 72080)[];
|
|
149
|
+
export type IFactoryChainId = (typeof factoryChainIds)[number];
|
|
150
|
+
export declare function getFactories<T extends IFactoryChainId>(id: T): {
|
|
151
|
+
readonly DiamondFactory: "0x4be118d8a3a6f1490162e134E7419284827dbdBb";
|
|
152
|
+
readonly ERC1155GatedPausableRecoverableFactory: "0xe6727c1489F20a0b6d72A8D077BF14c7Ec495a94";
|
|
153
|
+
readonly ERC1155PausableRecoverableFactory: "0x14c2373FdE3a3dE21855376aF6420275cEB42320";
|
|
154
|
+
readonly ERC20GatedPausableRecoverableFactory: "0xee78B77c389770133573413A1606cA6db3941016";
|
|
155
|
+
readonly ERC20PausableRecoverableFactory: "0x2C81bb09947C16879f2a1C9380693FA628124515";
|
|
156
|
+
readonly ERC721GatedPausableRecoverableFactory: "0x04728c4C6130AB25844822F0ad940313daA5FF14";
|
|
157
|
+
readonly ERC721PausableRecoverableFactory: "0xA5048d05d8613db40C4eC0cFa08f9f1dCf916dDe";
|
|
158
|
+
} | {
|
|
159
|
+
readonly DiamondFactory: "0x141c8f5BC8f7895E800518dc799f3D6e419b30Ac";
|
|
160
|
+
readonly ERC1155GatedPausableRecoverableFactory: "0xD21c194D6ac21A199223Aaa5d2b241a6f74117F0";
|
|
161
|
+
readonly ERC1155PausableRecoverableFactory: "0x5A981Bc93Bc434906C5DfbBb4B3fB7D0b8763854";
|
|
162
|
+
readonly ERC20GatedPausableRecoverableFactory: "0x12B91A2B8e99bf04C05885d71EB17d934d8c779d";
|
|
163
|
+
readonly ERC20PausableRecoverableFactory: "0xa66f033EB5C6D054cab1a2A41b39a1bDD9db2c16";
|
|
164
|
+
readonly ERC721GatedPausableRecoverableFactory: "0xd3b4B5f94f9E715987b5060a56C2575a56f5Bb08";
|
|
165
|
+
readonly ERC721PausableRecoverableFactory: "0xce97D17948bE18ef92490Da8AeB85c7ebC3c8694";
|
|
166
|
+
};
|
|
167
|
+
//# sourceMappingURL=factories.base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factories.base.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/factories.base.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAayS,MAAgB;;6BAAyF,MAAgB,qCAAqC,MAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA9K,MAAgB;;6BAAyF,MAAgB,qCAAqC,MAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAbra,CAAC;AAE9E,eAAO,MAAM,eAAe,sBAAmF,CAAC;AAChH,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,wBAAgB,YAAY,CAAC,CAAC,SAAS,eAAe,EAAE,EAAE,EAAE,CAAC;;;;;;;;;;;;;;;;EAO5D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { sepolia } from "viem/chains";
|
|
2
|
+
import { constants } from "@evergonlabs/tmi-factories-sdk";
|
|
3
|
+
import { nexeraTestnet } from "@evergonlabs/tmi-protocol-types/evm";
|
|
4
|
+
import { createSupportedChains } from "@evergonlabs/tmi-utils/models";
|
|
5
|
+
import { HttpError } from "../../common/http-error.js";
|
|
6
|
+
export const FactoryChainId = createSupportedChains([sepolia, nexeraTestnet]);
|
|
7
|
+
export const factoryChainIds = FactoryChainId.chainIds;
|
|
8
|
+
export function getFactories(id) {
|
|
9
|
+
if (id in constants.factoryAddresses) {
|
|
10
|
+
return constants.factoryAddresses[id];
|
|
11
|
+
}
|
|
12
|
+
throw new HttpError(400, {
|
|
13
|
+
message: "This chain id is not supported yet",
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -1,167 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
chains: ({
|
|
4
|
-
blockExplorers: {
|
|
5
|
-
readonly default: {
|
|
6
|
-
readonly name: "Etherscan";
|
|
7
|
-
readonly url: "https://sepolia.etherscan.io";
|
|
8
|
-
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
contracts: {
|
|
12
|
-
readonly multicall3: {
|
|
13
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
14
|
-
readonly blockCreated: 751532;
|
|
15
|
-
};
|
|
16
|
-
readonly ensRegistry: {
|
|
17
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
18
|
-
};
|
|
19
|
-
readonly ensUniversalResolver: {
|
|
20
|
-
readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
|
|
21
|
-
readonly blockCreated: 5317080;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
id: 11155111;
|
|
25
|
-
name: "Sepolia";
|
|
26
|
-
nativeCurrency: {
|
|
27
|
-
readonly name: "Sepolia Ether";
|
|
28
|
-
readonly symbol: "ETH";
|
|
29
|
-
readonly decimals: 18;
|
|
30
|
-
};
|
|
31
|
-
rpcUrls: {
|
|
32
|
-
readonly default: {
|
|
33
|
-
readonly http: readonly ["https://sepolia.drpc.org"];
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
sourceId?: number | undefined;
|
|
37
|
-
testnet: true;
|
|
38
|
-
custom?: Record<string, unknown> | undefined;
|
|
39
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
40
|
-
formatters?: undefined;
|
|
41
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
42
|
-
} | {
|
|
43
|
-
blockExplorers: {
|
|
44
|
-
readonly default: {
|
|
45
|
-
readonly name: "Nexera Blockscout";
|
|
46
|
-
readonly url: "https://explorer.testnet.nexera.network/";
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
contracts: {};
|
|
50
|
-
id: 72080;
|
|
51
|
-
name: "Nexera Testnet";
|
|
52
|
-
nativeCurrency: {
|
|
53
|
-
readonly decimals: 18;
|
|
54
|
-
readonly name: "Nexera";
|
|
55
|
-
readonly symbol: "tNXRA";
|
|
56
|
-
};
|
|
57
|
-
rpcUrls: {
|
|
58
|
-
readonly default: {
|
|
59
|
-
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
60
|
-
};
|
|
61
|
-
readonly public: {
|
|
62
|
-
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
sourceId?: number | undefined | undefined;
|
|
66
|
-
testnet?: boolean | undefined | undefined;
|
|
67
|
-
custom?: Record<string, unknown> | undefined;
|
|
68
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
69
|
-
formatters?: undefined;
|
|
70
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
71
|
-
})[];
|
|
72
|
-
chainIds: (11155111 | 72080)[];
|
|
73
|
-
isSupported: (chainId: number) => chainId is 11155111 | 72080;
|
|
74
|
-
get: <T extends 11155111 | 72080>(chainId: T) => Extract<{
|
|
75
|
-
blockExplorers: {
|
|
76
|
-
readonly default: {
|
|
77
|
-
readonly name: "Etherscan";
|
|
78
|
-
readonly url: "https://sepolia.etherscan.io";
|
|
79
|
-
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
contracts: {
|
|
83
|
-
readonly multicall3: {
|
|
84
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
85
|
-
readonly blockCreated: 751532;
|
|
86
|
-
};
|
|
87
|
-
readonly ensRegistry: {
|
|
88
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
89
|
-
};
|
|
90
|
-
readonly ensUniversalResolver: {
|
|
91
|
-
readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
|
|
92
|
-
readonly blockCreated: 5317080;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
id: 11155111;
|
|
96
|
-
name: "Sepolia";
|
|
97
|
-
nativeCurrency: {
|
|
98
|
-
readonly name: "Sepolia Ether";
|
|
99
|
-
readonly symbol: "ETH";
|
|
100
|
-
readonly decimals: 18;
|
|
101
|
-
};
|
|
102
|
-
rpcUrls: {
|
|
103
|
-
readonly default: {
|
|
104
|
-
readonly http: readonly ["https://sepolia.drpc.org"];
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
sourceId?: number | undefined;
|
|
108
|
-
testnet: true;
|
|
109
|
-
custom?: Record<string, unknown> | undefined;
|
|
110
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
111
|
-
formatters?: undefined;
|
|
112
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
id: T;
|
|
115
|
-
}> | Extract<{
|
|
116
|
-
blockExplorers: {
|
|
117
|
-
readonly default: {
|
|
118
|
-
readonly name: "Nexera Blockscout";
|
|
119
|
-
readonly url: "https://explorer.testnet.nexera.network/";
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
contracts: {};
|
|
123
|
-
id: 72080;
|
|
124
|
-
name: "Nexera Testnet";
|
|
125
|
-
nativeCurrency: {
|
|
126
|
-
readonly decimals: 18;
|
|
127
|
-
readonly name: "Nexera";
|
|
128
|
-
readonly symbol: "tNXRA";
|
|
129
|
-
};
|
|
130
|
-
rpcUrls: {
|
|
131
|
-
readonly default: {
|
|
132
|
-
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
133
|
-
};
|
|
134
|
-
readonly public: {
|
|
135
|
-
readonly http: readonly ["https://rpc.testnet.nexera.network"];
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
sourceId?: number | undefined | undefined;
|
|
139
|
-
testnet?: boolean | undefined | undefined;
|
|
140
|
-
custom?: Record<string, unknown> | undefined;
|
|
141
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
142
|
-
formatters?: undefined;
|
|
143
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
id: T;
|
|
146
|
-
}>;
|
|
147
|
-
};
|
|
148
|
-
export declare const factoryChainIds: (11155111 | 72080)[];
|
|
149
|
-
export type IFactoryChainId = (typeof factoryChainIds)[number];
|
|
150
|
-
export declare function getFactories<T extends IFactoryChainId>(id: T): {
|
|
151
|
-
readonly DiamondFactory: "0x4be118d8a3a6f1490162e134E7419284827dbdBb";
|
|
152
|
-
readonly ERC1155GatedPausableRecoverableFactory: "0xe6727c1489F20a0b6d72A8D077BF14c7Ec495a94";
|
|
153
|
-
readonly ERC1155PausableRecoverableFactory: "0x14c2373FdE3a3dE21855376aF6420275cEB42320";
|
|
154
|
-
readonly ERC20GatedPausableRecoverableFactory: "0xee78B77c389770133573413A1606cA6db3941016";
|
|
155
|
-
readonly ERC20PausableRecoverableFactory: "0x2C81bb09947C16879f2a1C9380693FA628124515";
|
|
156
|
-
readonly ERC721GatedPausableRecoverableFactory: "0x04728c4C6130AB25844822F0ad940313daA5FF14";
|
|
157
|
-
readonly ERC721PausableRecoverableFactory: "0xA5048d05d8613db40C4eC0cFa08f9f1dCf916dDe";
|
|
158
|
-
} | {
|
|
159
|
-
readonly DiamondFactory: "0x141c8f5BC8f7895E800518dc799f3D6e419b30Ac";
|
|
160
|
-
readonly ERC1155GatedPausableRecoverableFactory: "0xD21c194D6ac21A199223Aaa5d2b241a6f74117F0";
|
|
161
|
-
readonly ERC1155PausableRecoverableFactory: "0x5A981Bc93Bc434906C5DfbBb4B3fB7D0b8763854";
|
|
162
|
-
readonly ERC20GatedPausableRecoverableFactory: "0x12B91A2B8e99bf04C05885d71EB17d934d8c779d";
|
|
163
|
-
readonly ERC20PausableRecoverableFactory: "0xa66f033EB5C6D054cab1a2A41b39a1bDD9db2c16";
|
|
164
|
-
readonly ERC721GatedPausableRecoverableFactory: "0xd3b4B5f94f9E715987b5060a56C2575a56f5Bb08";
|
|
165
|
-
readonly ERC721PausableRecoverableFactory: "0xce97D17948bE18ef92490Da8AeB85c7ebC3c8694";
|
|
166
|
-
};
|
|
1
|
+
export { FactoryChainId, factoryChainIds, getFactories, type IFactoryChainId } from "./factories.base.js";
|
|
2
|
+
export declare const FactoryChainIdQuery: import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodUnion<[import("zod").ZodLiteral<11155111 | 72080>, import("zod").ZodLiteral<11155111 | 72080>, ...import("zod").ZodLiteral<11155111 | 72080>[]]>>;
|
|
167
3
|
//# sourceMappingURL=factories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/factories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"factories.d.ts","sourceRoot":"","sources":["../../../src/issuance/common/factories.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE1G,eAAO,MAAM,mBAAmB,wOAAsC,CAAC"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { HttpError } from "../../common/http-error.js";
|
|
6
|
-
export const FactoryChainId = createSupportedChains([sepolia, nexeraTestnet]);
|
|
7
|
-
export const factoryChainIds = FactoryChainId.chainIds;
|
|
8
|
-
export function getFactories(id) {
|
|
9
|
-
if (id in constants.factoryAddresses) {
|
|
10
|
-
return constants.factoryAddresses[id];
|
|
11
|
-
}
|
|
12
|
-
throw new HttpError(400, {
|
|
13
|
-
message: "This chain id is not supported yet",
|
|
14
|
-
});
|
|
15
|
-
}
|
|
1
|
+
import { createChainIdSchema } from "../../common/models/chainId.js";
|
|
2
|
+
import { FactoryChainId } from "./factories.base.js";
|
|
3
|
+
export { FactoryChainId, factoryChainIds, getFactories } from "./factories.base.js";
|
|
4
|
+
export const FactoryChainIdQuery = createChainIdSchema(FactoryChainId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/approve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAkBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"approve.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/approve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAkBH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;aAc5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"burn.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/burn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"burn.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc20/burn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAkBH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;aAczB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DeployErc20RequestSchema: z.ZodObject<{
|
|
3
|
+
chainId: z.ZodUnion<[z.ZodLiteral<11155111 | 72080>, z.ZodLiteral<11155111 | 72080>, ...z.ZodLiteral<11155111 | 72080>[]]>;
|
|
4
|
+
tokenName: z.ZodString;
|
|
5
|
+
tokenSymbol: z.ZodString;
|
|
6
|
+
supplyCap: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
7
|
+
defaultTokenAdmin: 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
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const CreateErc20Token: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, {
|
|
11
|
+
"/": {
|
|
12
|
+
$post: {
|
|
13
|
+
input: {
|
|
14
|
+
json: {
|
|
15
|
+
chainId: 11155111 | 72080;
|
|
16
|
+
tokenName: string;
|
|
17
|
+
tokenSymbol: string;
|
|
18
|
+
supplyCap: string;
|
|
19
|
+
defaultTokenAdmin: string;
|
|
20
|
+
minter: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
output: {
|
|
24
|
+
data: `0x${string}`;
|
|
25
|
+
to: `0x${string}`;
|
|
26
|
+
details: {
|
|
27
|
+
functionName: string;
|
|
28
|
+
address: `0x${string}`;
|
|
29
|
+
abi: any[];
|
|
30
|
+
args: any[];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
outputFormat: "json";
|
|
34
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}, "/", "/">>;
|
|
38
|
+
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../src/issuance/erc20/default/deploy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AA6BH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;aAe3B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { FactoryChainId, getFactories } from "../../common/factories.js";
|
|
9
|
+
export const DeployErc20RequestSchema = z.object({
|
|
10
|
+
chainId: FactoryChainId.Schema,
|
|
11
|
+
tokenName: z.string().nonempty().openapi({ description: "Name of the ERC20 token" }),
|
|
12
|
+
tokenSymbol: z.string().nonempty().openapi({ description: "Symbol of the ERC20 token" }),
|
|
13
|
+
supplyCap: Int256BigInt(z.bigint().nonnegative()),
|
|
14
|
+
defaultTokenAdmin: AddressSchema.openapi({ description: "Address to receive DEFAULT_ADMIN_ROLE" }),
|
|
15
|
+
minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
|
|
16
|
+
});
|
|
17
|
+
const deployErc20Route = describeRoute({
|
|
18
|
+
summary: "Deploy ERC20 via Factory",
|
|
19
|
+
description: `Returns transaction data for deploying a new ERC20 token via the factory contract.
|
|
20
|
+
|
|
21
|
+
**Note: This contract is not audited.**
|
|
22
|
+
|
|
23
|
+
Calls deployAndInitializeProxy on the ERC20PausableRecoverableFactory to atomically deploy and initialize a new token proxy.
|
|
24
|
+
|
|
25
|
+
The deployed token supports:
|
|
26
|
+
- mint(to, amount) - Mint tokens (MINTER_ROLE gated)
|
|
27
|
+
- burn(amount) - Burn tokens
|
|
28
|
+
- burnFrom(account, amount) - Burn from account (with allowance)
|
|
29
|
+
- pause() / unpause() - Pause/unpause transfers (PAUSER_ROLE gated)
|
|
30
|
+
- recover(token, to, amount) - Recover tokens (RECOVER_ROLE gated)`,
|
|
31
|
+
tags: ["Issuance"],
|
|
32
|
+
responses: {
|
|
33
|
+
200: {
|
|
34
|
+
description: "Returns transaction data for deploying an ERC20 token via factory",
|
|
35
|
+
content: {
|
|
36
|
+
"application/json": {
|
|
37
|
+
schema: resolver(TransactionSchema),
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
export const CreateErc20Token = createController({
|
|
44
|
+
build: (factory) => factory.createApp().post("/", deployErc20Route, validator("json", DeployErc20RequestSchema), async (c) => {
|
|
45
|
+
const { chainId, tokenName, tokenSymbol, supplyCap, defaultTokenAdmin, minter } = c.req.valid("json");
|
|
46
|
+
const factory = getFactories(chainId);
|
|
47
|
+
return c.json(toTransaction({
|
|
48
|
+
address: factory.ERC20PausableRecoverableFactory,
|
|
49
|
+
abi: abis.erc20PausableRecoverableFactoryAbi,
|
|
50
|
+
functionName: "deployAndInitializeProxy",
|
|
51
|
+
args: [tokenName, tokenSymbol, BigInt(supplyCap), defaultTokenAdmin, minter],
|
|
52
|
+
}));
|
|
53
|
+
}),
|
|
54
|
+
});
|