@evergonlabs/tmi-protocol-api 0.9.0 → 0.10.0-rc.1
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 +467 -28
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +503 -28
- package/dist/client.d.ts.map +1 -1
- package/dist/common/models/base/date.d.ts +6 -0
- package/dist/common/models/base/date.d.ts.map +1 -0
- package/dist/common/models/base/date.js +13 -0
- package/dist/common/models/date.d.ts +1 -5
- package/dist/common/models/date.d.ts.map +1 -1
- package/dist/common/models/date.js +4 -13
- package/dist/common/models/exports.d.ts +1 -0
- package/dist/common/models/exports.d.ts.map +1 -1
- package/dist/common/models/exports.js +1 -0
- package/dist/common/models/index.d.ts +1 -0
- package/dist/common/models/index.d.ts.map +1 -1
- package/dist/common/models/index.js +1 -0
- package/dist/common/roles/erc1155-token-roles.d.ts +8 -0
- package/dist/common/roles/erc1155-token-roles.d.ts.map +1 -0
- package/dist/common/roles/erc1155-token-roles.js +13 -0
- package/dist/common/roles/exports.d.ts +1 -0
- package/dist/common/roles/exports.d.ts.map +1 -1
- package/dist/common/roles/exports.js +1 -0
- package/dist/fractions/markets/common/platform.d.ts.map +1 -1
- package/dist/fractions/markets/common/platform.js +2 -1
- package/dist/fractions/sales/common/fractionsSale.d.ts.map +1 -1
- package/dist/fractions/sales/common/fractionsSale.js +2 -1
- package/dist/fractions/sales/createFractions.schema.js +1 -1
- package/dist/fractions/sales/vesting/editCliff.route.js +1 -1
- package/dist/issuance/common/factories.base.d.ts +12 -12
- package/dist/issuance/erc1155/burn.d.ts +34 -0
- package/dist/issuance/erc1155/burn.d.ts.map +1 -0
- package/dist/issuance/erc1155/burn.js +39 -0
- package/dist/issuance/{erc721 → erc1155/default}/deploy.d.ts +3 -7
- package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -0
- package/dist/issuance/erc1155/default/deploy.js +53 -0
- package/dist/issuance/{erc721 → erc1155/default}/initialize.d.ts +3 -7
- package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -0
- package/dist/issuance/{erc721 → erc1155/default}/initialize.js +11 -13
- package/dist/issuance/{erc721/parseErc721DeployEvent.d.ts → erc1155/default/parseDeployEvent.d.ts} +3 -5
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/{erc721/parseErc721DeployEvent.js → erc1155/default/parseDeployEvent.js} +13 -17
- package/dist/issuance/{erc721/deployGated.d.ts → erc1155/gated/deploy.d.ts} +4 -8
- package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -0
- package/dist/issuance/erc1155/gated/deploy.js +61 -0
- package/dist/issuance/{erc20 → erc1155/gated}/initialize.d.ts +5 -9
- package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -0
- package/dist/issuance/{erc20 → erc1155/gated}/initialize.js +15 -16
- package/dist/issuance/{erc20/parseErc20DeployEvent.d.ts → erc1155/gated/parseDeployEvent.d.ts} +4 -6
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/{erc20/parseErc20DeployEvent.js → erc1155/gated/parseDeployEvent.js} +15 -20
- package/dist/issuance/erc1155/grantRole.d.ts +33 -0
- package/dist/issuance/erc1155/grantRole.d.ts.map +1 -0
- package/dist/issuance/erc1155/grantRole.js +41 -0
- package/dist/issuance/erc1155/index.d.ts +361 -0
- package/dist/issuance/erc1155/index.d.ts.map +1 -0
- package/dist/issuance/erc1155/index.js +38 -0
- package/dist/issuance/erc1155/mint.d.ts +34 -0
- package/dist/issuance/erc1155/mint.d.ts.map +1 -0
- package/dist/issuance/erc1155/mint.js +39 -0
- package/dist/issuance/erc1155/recover.d.ts +36 -0
- package/dist/issuance/erc1155/recover.d.ts.map +1 -0
- package/dist/issuance/erc1155/recover.js +40 -0
- package/dist/issuance/erc1155/renounceRole.d.ts +33 -0
- package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -0
- package/dist/issuance/erc1155/renounceRole.js +41 -0
- package/dist/issuance/erc1155/revokeRole.d.ts +33 -0
- package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -0
- package/dist/issuance/erc1155/revokeRole.js +41 -0
- package/dist/issuance/erc1155/setApprovalForAll.d.ts +32 -0
- package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -0
- package/dist/issuance/erc1155/setApprovalForAll.js +39 -0
- package/dist/issuance/erc1155/setBaseURI.d.ts +30 -0
- package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -0
- package/dist/issuance/erc1155/setBaseURI.js +36 -0
- package/dist/issuance/erc1155/setTokenURI.d.ts +32 -0
- package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -0
- package/dist/issuance/erc1155/setTokenURI.js +38 -0
- package/dist/issuance/erc721/approve.js +1 -1
- package/dist/issuance/erc721/burn.js +1 -1
- package/dist/issuance/erc721/default/deploy.js +4 -4
- package/dist/issuance/erc721/default/initialize.js +1 -1
- package/dist/issuance/erc721/default/parseDeployEvent.js +1 -1
- package/dist/issuance/erc721/gated/deploy.js +4 -4
- package/dist/issuance/erc721/gated/initialize.js +1 -1
- package/dist/issuance/erc721/gated/parseDeployEvent.js +1 -1
- package/dist/issuance/erc721/grantRole.js +1 -1
- package/dist/issuance/erc721/index.d.ts +0 -1
- package/dist/issuance/erc721/index.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.d.ts +0 -2
- package/dist/issuance/erc721/mint.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.js +4 -6
- package/dist/issuance/erc721/nextTokenId.d.ts +19 -0
- package/dist/issuance/erc721/nextTokenId.d.ts.map +1 -0
- package/dist/issuance/erc721/nextTokenId.js +79 -0
- package/dist/issuance/erc721/recover.js +1 -1
- package/dist/issuance/erc721/renounceRole.js +1 -1
- package/dist/issuance/erc721/revokeRole.js +1 -1
- package/dist/issuance/erc721/setBaseURI.js +1 -1
- package/dist/issuance/erc721/setTokenURI.js +1 -1
- package/dist/issuance/erc721/transferFrom.js +1 -1
- package/dist/issuance/index.d.ts +359 -1
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/index.js +2 -0
- package/dist/next/fractions/index.d.ts +108 -27
- package/dist/next/fractions/index.d.ts.map +1 -1
- package/dist/next/fractions/lending/index.d.ts +26 -25
- package/dist/next/fractions/lending/index.d.ts.map +1 -1
- package/dist/next/fractions/lending/index.js +2 -2
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.routes.d.ts +38 -0
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.routes.js +39 -0
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.schema.d.ts +25 -0
- package/dist/next/fractions/platforms/default/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/{fractions/nftfractions/v0 → next/fractions/platforms/default}/deployNftFractionsMarket.schema.js +7 -12
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.routes.d.ts +39 -0
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.routes.d.ts.map +1 -0
- package/dist/{fractions/platforms → next/fractions/platforms/gated}/deployNftFractionsMarket.routes.js +11 -23
- package/dist/{fractions/platforms → next/fractions/platforms/gated}/deployNftFractionsMarket.schema.d.ts +4 -8
- package/dist/next/fractions/platforms/gated/deployNftFractionsMarket.schema.d.ts.map +1 -0
- package/dist/{fractions/platforms → next/fractions/platforms/gated}/deployNftFractionsMarket.schema.js +6 -11
- package/dist/next/fractions/platforms/index.d.ts +34 -1
- package/dist/next/fractions/platforms/index.d.ts.map +1 -1
- package/dist/next/fractions/platforms/index.js +6 -2
- package/dist/next/fractions/sales/createNftFractions.schema.js +1 -1
- package/dist/next/fractions/sales/index.d.ts +48 -1
- package/dist/next/fractions/sales/index.d.ts.map +1 -1
- package/dist/next/fractions/sales/index.js +7 -1
- package/dist/next/fractions/sales/parseFractionsCreatedEvent.d.ts +23 -0
- package/dist/next/fractions/sales/parseFractionsCreatedEvent.d.ts.map +1 -0
- package/dist/{src/fractions/createFractions/v0 → next/fractions/sales}/parseFractionsCreatedEvent.js +27 -19
- package/dist/next/fractions/sales/purchase.routes.d.ts +27 -0
- package/dist/next/fractions/sales/purchase.routes.d.ts.map +1 -0
- package/dist/next/fractions/sales/purchase.routes.js +37 -0
- package/dist/staking/platforms/common/platform.d.ts.map +1 -1
- package/dist/staking/platforms/common/platform.js +2 -1
- package/dist/staking/pools/common/pool.d.ts.map +1 -1
- package/dist/staking/pools/common/pool.js +2 -1
- package/dist/staking/roles/searchRoles/v0/searchRoles.js +1 -1
- package/dist/staking/stakes/common/stake.d.ts.map +1 -1
- package/dist/staking/stakes/common/stake.js +2 -1
- package/dist/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +1 -1
- package/dist/stakingTemplates/templates/common/time.js +1 -1
- package/package.json +13 -12
- package/dist/common/abis/erc20Whitelisted.d.ts +0 -316
- package/dist/common/abis/erc20Whitelisted.d.ts.map +0 -1
- package/dist/common/abis/erc20Whitelisted.js +0 -1139
- package/dist/common/indexer/index.d.ts +0 -4044
- package/dist/common/indexer/index.d.ts.map +0 -1
- package/dist/common/indexer/index.js +0 -3
- package/dist/common/models/numOrStr.d.ts +0 -7
- package/dist/common/models/numOrStr.d.ts.map +0 -1
- package/dist/common/models/numOrStr.js +0 -11
- package/dist/common/zod.d.ts +0 -3
- package/dist/common/zod.d.ts.map +0 -1
- package/dist/common/zod.js +0 -2
- package/dist/fractions/activity/searchActivity.route.d.ts +0 -198
- package/dist/fractions/activity/searchActivity.route.d.ts.map +0 -1
- package/dist/fractions/activity/searchActivity.route.js +0 -53
- package/dist/fractions/activity/utils.d.ts +0 -228
- package/dist/fractions/activity/utils.d.ts.map +0 -1
- package/dist/fractions/activity/utils.js +0 -68
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts +0 -68
- package/dist/fractions/approveSale/v0/approveSale.route.d.ts.map +0 -1
- package/dist/fractions/approveSale/v0/approveSale.route.js +0 -31
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts +0 -203
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +0 -1
- package/dist/fractions/approveWrapper/v0/approveWrapper.route.js +0 -84
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts +0 -68
- package/dist/fractions/completeSale/v0/completeSale.route.d.ts.map +0 -1
- package/dist/fractions/completeSale/v0/completeSale.route.js +0 -31
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts +0 -305
- package/dist/fractions/createFractions/v0/createFractions.route.d.ts.map +0 -1
- package/dist/fractions/createFractions/v0/createFractions.route.js +0 -48
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts +0 -427
- package/dist/fractions/createFractions/v0/createFractions.schema.d.ts.map +0 -1
- package/dist/fractions/createFractions/v0/createFractions.schema.js +0 -78
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +0 -51
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +0 -1
- package/dist/fractions/createFractions/v0/parseFractionsCreatedEvent.js +0 -58
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts +0 -374
- package/dist/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +0 -1
- package/dist/fractions/deployMarket/v0/deployMarket.routes.js +0 -138
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts +0 -86
- package/dist/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +0 -1
- package/dist/fractions/deployMarket/v0/deployMarket.schema.js +0 -24
- package/dist/fractions/deployMarket/v0/index.d.ts +0 -3
- package/dist/fractions/deployMarket/v0/index.d.ts.map +0 -1
- package/dist/fractions/deployMarket/v0/index.js +0 -2
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts +0 -61
- package/dist/fractions/deployMarket/v0/initNid.route.d.ts.map +0 -1
- package/dist/fractions/deployMarket/v0/initNid.route.js +0 -31
- package/dist/fractions/gating/v0/getAuthData.d.ts +0 -86
- package/dist/fractions/gating/v0/getAuthData.d.ts.map +0 -1
- package/dist/fractions/gating/v0/getAuthData.js +0 -48
- package/dist/fractions/gating/v0/getNonce.route.d.ts +0 -54
- package/dist/fractions/gating/v0/getNonce.route.d.ts.map +0 -1
- package/dist/fractions/gating/v0/getNonce.route.js +0 -40
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts +0 -65
- package/dist/fractions/grantRole/v0/grantRole.route.d.ts.map +0 -1
- package/dist/fractions/grantRole/v0/grantRole.route.js +0 -31
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts +0 -26
- package/dist/fractions/grantRole/v0/grantRole.schema.d.ts.map +0 -1
- package/dist/fractions/grantRole/v0/grantRole.schema.js +0 -14
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts +0 -103
- package/dist/fractions/markets/getMarket/v0/getMarket.d.ts.map +0 -1
- package/dist/fractions/markets/getMarket/v0/getMarket.js +0 -62
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +0 -115
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +0 -1
- package/dist/fractions/markets/searchMarkets/v0/searchMarkets.js +0 -42
- package/dist/fractions/nftfractions/index.d.ts +0 -6
- package/dist/fractions/nftfractions/index.d.ts.map +0 -1
- package/dist/fractions/nftfractions/index.js +0 -5
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.d.ts +0 -192
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/createNftFractions.routes.js +0 -58
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.d.ts +0 -245
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/createNftFractions.schema.js +0 -65
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.d.ts +0 -96
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.routes.js +0 -52
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.d.ts +0 -70
- package/dist/fractions/nftfractions/v0/deployNftFractionsMarket.schema.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/initCompilot.routes.d.ts +0 -74
- package/dist/fractions/nftfractions/v0/initCompilot.routes.d.ts.map +0 -1
- package/dist/fractions/nftfractions/v0/initCompilot.routes.js +0 -41
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.d.ts +0 -96
- package/dist/fractions/platforms/deployNftFractionsMarket.routes.d.ts.map +0 -1
- package/dist/fractions/platforms/deployNftFractionsMarket.schema.d.ts.map +0 -1
- package/dist/fractions/purchase/v0/purchase.route.d.ts +0 -89
- package/dist/fractions/purchase/v0/purchase.route.d.ts.map +0 -1
- package/dist/fractions/purchase/v0/purchase.route.js +0 -41
- package/dist/fractions/purchase/v0/statistics.route.d.ts +0 -65
- package/dist/fractions/purchase/v0/statistics.route.d.ts.map +0 -1
- package/dist/fractions/purchase/v0/statistics.route.js +0 -52
- package/dist/fractions/roles/getRoles/v0/getRoles.d.ts +0 -28
- package/dist/fractions/roles/getRoles/v0/getRoles.d.ts.map +0 -1
- package/dist/fractions/roles/getRoles/v0/getRoles.js +0 -41
- package/dist/fractions/sales/createNftFractions.routes.d.ts +0 -180
- package/dist/fractions/sales/createNftFractions.routes.d.ts.map +0 -1
- package/dist/fractions/sales/createNftFractions.routes.js +0 -58
- package/dist/fractions/sales/createNftFractions.schema.d.ts +0 -85
- package/dist/fractions/sales/createNftFractions.schema.d.ts.map +0 -1
- package/dist/fractions/sales/createNftFractions.schema.js +0 -67
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +0 -89
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +0 -1
- package/dist/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +0 -82
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts +0 -257
- package/dist/fractions/sales/searchSales/v0/searchSales.d.ts.map +0 -1
- package/dist/fractions/sales/searchSales/v0/searchSales.js +0 -49
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts +0 -92
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/v0/claimStatistics.route.js +0 -90
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +0 -94
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/v0/claimVestedTokens.route.js +0 -41
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts +0 -87
- package/dist/fractions/sales/vesting/v0/editCliff.route.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/v0/editCliff.route.js +0 -40
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +0 -48
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +0 -1
- package/dist/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +0 -57
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts +0 -68
- package/dist/fractions/withdraw/v0/withdraw.route.d.ts.map +0 -1
- package/dist/fractions/withdraw/v0/withdraw.route.js +0 -31
- package/dist/general/balance-client.d.ts +0 -13
- package/dist/general/balance-client.d.ts.map +0 -1
- package/dist/general/balance-client.js +0 -26
- package/dist/issuance/approve.d.ts +0 -75
- package/dist/issuance/approve.d.ts.map +0 -1
- package/dist/issuance/approve.js +0 -36
- package/dist/issuance/burn.d.ts +0 -75
- package/dist/issuance/burn.d.ts.map +0 -1
- package/dist/issuance/burn.js +0 -36
- package/dist/issuance/common.d.ts +0 -2
- package/dist/issuance/common.d.ts.map +0 -1
- package/dist/issuance/common.js +0 -1
- package/dist/issuance/deploy.d.ts +0 -158
- package/dist/issuance/deploy.d.ts.map +0 -1
- package/dist/issuance/deploy.js +0 -227
- package/dist/issuance/erc20/deploy.d.ts +0 -38
- package/dist/issuance/erc20/deploy.d.ts.map +0 -1
- package/dist/issuance/erc20/deploy.js +0 -52
- package/dist/issuance/erc20/deployGated.d.ts +0 -40
- package/dist/issuance/erc20/deployGated.d.ts.map +0 -1
- package/dist/issuance/erc20/deployGated.js +0 -58
- package/dist/issuance/erc20/getInitData.d.ts +0 -59
- package/dist/issuance/erc20/getInitData.d.ts.map +0 -1
- package/dist/issuance/erc20/getInitData.js +0 -49
- package/dist/issuance/erc20/initialize.d.ts.map +0 -1
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts.map +0 -1
- package/dist/issuance/erc721/deploy.d.ts.map +0 -1
- package/dist/issuance/erc721/deploy.js +0 -51
- package/dist/issuance/erc721/deployGated.d.ts.map +0 -1
- package/dist/issuance/erc721/deployGated.js +0 -58
- package/dist/issuance/erc721/getInitData.d.ts +0 -49
- package/dist/issuance/erc721/getInitData.d.ts.map +0 -1
- package/dist/issuance/erc721/getInitData.js +0 -51
- package/dist/issuance/erc721/initialize.d.ts.map +0 -1
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts.map +0 -1
- package/dist/issuance/getInitData.d.ts +0 -132
- package/dist/issuance/getInitData.d.ts.map +0 -1
- package/dist/issuance/getInitData.js +0 -104
- package/dist/issuance/grantRole.d.ts +0 -76
- package/dist/issuance/grantRole.d.ts.map +0 -1
- package/dist/issuance/grantRole.js +0 -42
- package/dist/issuance/mint.d.ts +0 -75
- package/dist/issuance/mint.d.ts.map +0 -1
- package/dist/issuance/mint.js +0 -36
- package/dist/issuance/recover.d.ts +0 -82
- package/dist/issuance/recover.d.ts.map +0 -1
- package/dist/issuance/recover.js +0 -38
- package/dist/issuance/renounceRole.d.ts +0 -76
- package/dist/issuance/renounceRole.d.ts.map +0 -1
- package/dist/issuance/renounceRole.js +0 -42
- package/dist/issuance/transfer.d.ts +0 -75
- package/dist/issuance/transfer.d.ts.map +0 -1
- package/dist/issuance/transfer.js +0 -36
- package/dist/issuance/upgrade.d.ts +0 -82
- package/dist/issuance/upgrade.d.ts.map +0 -1
- package/dist/issuance/upgrade.js +0 -45
- package/dist/package.json +0 -78
- package/dist/src/app.d.ts +0 -2194
- package/dist/src/app.d.ts.map +0 -1
- package/dist/src/app.js +0 -18
- package/dist/src/client.d.ts +0 -2690
- package/dist/src/client.d.ts.map +0 -1
- package/dist/src/client.js +0 -4
- package/dist/src/common/abis/erc20Whitelisted.d.ts +0 -4
- package/dist/src/common/abis/erc20Whitelisted.d.ts.map +0 -1
- package/dist/src/common/abis/erc20Whitelisted.js +0 -4
- package/dist/src/common/app.d.ts +0 -9
- package/dist/src/common/app.d.ts.map +0 -1
- package/dist/src/common/app.js +0 -3
- package/dist/src/common/blockchain.d.ts +0 -9528
- package/dist/src/common/blockchain.d.ts.map +0 -1
- package/dist/src/common/blockchain.js +0 -40
- package/dist/src/common/config.d.ts +0 -21
- package/dist/src/common/config.d.ts.map +0 -1
- package/dist/src/common/config.js +0 -33
- package/dist/src/common/http-error.d.ts +0 -7
- package/dist/src/common/http-error.d.ts.map +0 -1
- package/dist/src/common/http-error.js +0 -7
- package/dist/src/common/index.d.ts +0 -2
- package/dist/src/common/index.d.ts.map +0 -1
- package/dist/src/common/index.js +0 -1
- package/dist/src/common/indexer/client.d.ts +0 -1191
- package/dist/src/common/indexer/client.d.ts.map +0 -1
- package/dist/src/common/indexer/client.js +0 -7
- package/dist/src/common/indexer/index.d.ts +0 -1191
- package/dist/src/common/indexer/index.d.ts.map +0 -1
- package/dist/src/common/indexer/index.js +0 -3
- package/dist/src/common/indexer/schemas.d.ts +0 -1191
- package/dist/src/common/indexer/schemas.d.ts.map +0 -1
- package/dist/src/common/indexer/schemas.js +0 -14
- package/dist/src/common/models/chainId.d.ts +0 -5
- package/dist/src/common/models/chainId.d.ts.map +0 -1
- package/dist/src/common/models/chainId.js +0 -23
- package/dist/src/common/models/date.d.ts +0 -3
- package/dist/src/common/models/date.d.ts.map +0 -1
- package/dist/src/common/models/date.js +0 -5
- package/dist/src/common/models/erc721.d.ts +0 -15
- package/dist/src/common/models/erc721.d.ts.map +0 -1
- package/dist/src/common/models/erc721.js +0 -21
- package/dist/src/common/models/index.d.ts +0 -7
- package/dist/src/common/models/index.d.ts.map +0 -1
- package/dist/src/common/models/index.js +0 -6
- package/dist/src/common/models/page.d.ts +0 -12
- package/dist/src/common/models/page.d.ts.map +0 -1
- package/dist/src/common/models/page.js +0 -15
- package/dist/src/common/models/percent.d.ts +0 -3
- package/dist/src/common/models/percent.d.ts.map +0 -1
- package/dist/src/common/models/percent.js +0 -6
- package/dist/src/common/models/platform.d.ts +0 -4
- package/dist/src/common/models/platform.d.ts.map +0 -1
- package/dist/src/common/models/platform.js +0 -13
- package/dist/src/common/models/routes.d.ts +0 -16
- package/dist/src/common/models/routes.d.ts.map +0 -1
- package/dist/src/common/models/routes.js +0 -13
- package/dist/src/common/models/saleId.d.ts +0 -12
- package/dist/src/common/models/saleId.d.ts.map +0 -1
- package/dist/src/common/models/saleId.js +0 -6
- package/dist/src/common/models/transaction.d.ts +0 -90
- package/dist/src/common/models/transaction.d.ts.map +0 -1
- package/dist/src/common/models/transaction.js +0 -57
- package/dist/src/common/models/viem.d.ts +0 -4
- package/dist/src/common/models/viem.d.ts.map +0 -1
- package/dist/src/common/models/viem.js +0 -15
- package/dist/src/common/openapi.d.ts +0 -4
- package/dist/src/common/openapi.d.ts.map +0 -1
- package/dist/src/common/openapi.js +0 -40
- package/dist/src/common/tag.d.ts +0 -7
- package/dist/src/common/tag.d.ts.map +0 -1
- package/dist/src/common/tag.js +0 -5
- package/dist/src/common/version.d.ts +0 -2
- package/dist/src/common/version.d.ts.map +0 -1
- package/dist/src/common/version.js +0 -2
- package/dist/src/common/zod.d.ts +0 -3
- package/dist/src/common/zod.d.ts.map +0 -1
- package/dist/src/common/zod.js +0 -2
- package/dist/src/error.d.ts +0 -3
- package/dist/src/error.d.ts.map +0 -1
- package/dist/src/error.js +0 -16
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts +0 -68
- package/dist/src/fractions/approveSale/v0/approveSale.route.d.ts.map +0 -1
- package/dist/src/fractions/approveSale/v0/approveSale.route.js +0 -31
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts +0 -203
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.d.ts.map +0 -1
- package/dist/src/fractions/approveWrapper/v0/approveWrapper.route.js +0 -84
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts +0 -68
- package/dist/src/fractions/completeSale/v0/completeSale.route.d.ts.map +0 -1
- package/dist/src/fractions/completeSale/v0/completeSale.route.js +0 -31
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts +0 -305
- package/dist/src/fractions/createFractions/v0/createFractions.route.d.ts.map +0 -1
- package/dist/src/fractions/createFractions/v0/createFractions.route.js +0 -61
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts +0 -416
- package/dist/src/fractions/createFractions/v0/createFractions.schema.d.ts.map +0 -1
- package/dist/src/fractions/createFractions/v0/createFractions.schema.js +0 -67
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts +0 -51
- package/dist/src/fractions/createFractions/v0/parseFractionsCreatedEvent.d.ts.map +0 -1
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts +0 -297
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.d.ts.map +0 -1
- package/dist/src/fractions/deployMarket/v0/deployMarket.routes.js +0 -98
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts +0 -96
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.d.ts.map +0 -1
- package/dist/src/fractions/deployMarket/v0/deployMarket.schema.js +0 -21
- package/dist/src/fractions/gating/index.d.ts +0 -2
- package/dist/src/fractions/gating/index.d.ts.map +0 -1
- package/dist/src/fractions/gating/index.js +0 -0
- package/dist/src/fractions/gating/v0/getAuthData.d.ts +0 -86
- package/dist/src/fractions/gating/v0/getAuthData.d.ts.map +0 -1
- package/dist/src/fractions/gating/v0/getAuthData.js +0 -48
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts +0 -54
- package/dist/src/fractions/gating/v0/getNonce.route.d.ts.map +0 -1
- package/dist/src/fractions/gating/v0/getNonce.route.js +0 -40
- package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts +0 -65
- package/dist/src/fractions/grantRole/v0/grantRole.route.d.ts.map +0 -1
- package/dist/src/fractions/grantRole/v0/grantRole.route.js +0 -31
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts +0 -26
- package/dist/src/fractions/grantRole/v0/grantRole.schema.d.ts.map +0 -1
- package/dist/src/fractions/grantRole/v0/grantRole.schema.js +0 -14
- package/dist/src/fractions/index.d.ts +0 -968
- package/dist/src/fractions/index.d.ts.map +0 -1
- package/dist/src/fractions/index.js +0 -91
- package/dist/src/fractions/markets/common/platform.d.ts +0 -26
- package/dist/src/fractions/markets/common/platform.d.ts.map +0 -1
- package/dist/src/fractions/markets/common/platform.js +0 -26
- package/dist/src/fractions/markets/getDeployEvent.d.ts +0 -42
- package/dist/src/fractions/markets/getDeployEvent.d.ts.map +0 -1
- package/dist/src/fractions/markets/getDeployEvent.js +0 -47
- package/dist/src/fractions/markets/getMarket/index.d.ts +0 -40
- package/dist/src/fractions/markets/getMarket/index.d.ts.map +0 -1
- package/dist/src/fractions/markets/getMarket/index.js +0 -4
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts +0 -64
- package/dist/src/fractions/markets/getMarket/v0/getMarket.d.ts.map +0 -1
- package/dist/src/fractions/markets/getMarket/v0/getMarket.js +0 -63
- package/dist/src/fractions/markets/index.d.ts +0 -84
- package/dist/src/fractions/markets/index.d.ts.map +0 -1
- package/dist/src/fractions/markets/index.js +0 -12
- package/dist/src/fractions/markets/searchMarkets/index.d.ts +0 -32
- package/dist/src/fractions/markets/searchMarkets/index.d.ts.map +0 -1
- package/dist/src/fractions/markets/searchMarkets/index.js +0 -4
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts +0 -76
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.d.ts.map +0 -1
- package/dist/src/fractions/markets/searchMarkets/v0/searchMarkets.js +0 -42
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts +0 -89
- package/dist/src/fractions/purchase/v0/purchase.route.d.ts.map +0 -1
- package/dist/src/fractions/purchase/v0/purchase.route.js +0 -41
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts +0 -28
- package/dist/src/fractions/roles/getRoles/v0/getRoles.d.ts.map +0 -1
- package/dist/src/fractions/roles/getRoles/v0/getRoles.js +0 -41
- package/dist/src/fractions/sales/getVaultAddress.d.ts +0 -52
- package/dist/src/fractions/sales/getVaultAddress.d.ts.map +0 -1
- package/dist/src/fractions/sales/getVaultAddress.js +0 -61
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts +0 -42
- package/dist/src/fractions/sales/getWithdrawEvent.d.ts.map +0 -1
- package/dist/src/fractions/sales/getWithdrawEvent.js +0 -52
- package/dist/src/fractions/sales/index.d.ts +0 -10
- package/dist/src/fractions/sales/index.d.ts.map +0 -1
- package/dist/src/fractions/sales/index.js +0 -10
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts +0 -144
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/receiveFundsAfterNonFunded.route.js +0 -59
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts +0 -57
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +0 -27
- package/dist/src/fractions/sales/recoverFractions.d.ts +0 -108
- package/dist/src/fractions/sales/recoverFractions.d.ts.map +0 -1
- package/dist/src/fractions/sales/recoverFractions.js +0 -45
- package/dist/src/fractions/sales/rejectFractions.d.ts +0 -80
- package/dist/src/fractions/sales/rejectFractions.d.ts.map +0 -1
- package/dist/src/fractions/sales/rejectFractions.js +0 -39
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts +0 -2
- package/dist/src/fractions/sales/searchSaleEvents/index.d.ts.map +0 -1
- package/dist/src/fractions/sales/searchSaleEvents/index.js +0 -0
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts +0 -89
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.d.ts.map +0 -1
- package/dist/src/fractions/sales/searchSaleEvents/v0/searchSaleEvents.js +0 -82
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts +0 -75
- package/dist/src/fractions/sales/setFeeCapLimit.d.ts.map +0 -1
- package/dist/src/fractions/sales/setFeeCapLimit.js +0 -32
- package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts +0 -68
- package/dist/src/fractions/sales/unlockWrappedAssets.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/unlockWrappedAssets.route.js +0 -31
- package/dist/src/fractions/sales/vesting/index.d.ts +0 -2
- package/dist/src/fractions/sales/vesting/index.d.ts.map +0 -1
- package/dist/src/fractions/sales/vesting/index.js +0 -0
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts +0 -94
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/vesting/v0/claimVestedTokens.route.js +0 -41
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts +0 -87
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.d.ts.map +0 -1
- package/dist/src/fractions/sales/vesting/v0/editCliff.route.js +0 -40
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts +0 -48
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.d.ts.map +0 -1
- package/dist/src/fractions/sales/vesting/v0/parseClaimVestedTokensEvent.js +0 -58
- package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts +0 -68
- package/dist/src/fractions/withdraw/v0/withdraw.route.d.ts.map +0 -1
- package/dist/src/fractions/withdraw/v0/withdraw.route.js +0 -31
- package/dist/src/general/balance-client.d.ts +0 -13
- package/dist/src/general/balance-client.d.ts.map +0 -1
- package/dist/src/general/balance-client.js +0 -26
- package/dist/src/general/common.d.ts +0 -94
- package/dist/src/general/common.d.ts.map +0 -1
- package/dist/src/general/common.js +0 -35
- package/dist/src/general/estimateGas.d.ts +0 -52
- package/dist/src/general/estimateGas.d.ts.map +0 -1
- package/dist/src/general/estimateGas.js +0 -64
- package/dist/src/general/getBalance.d.ts +0 -44
- package/dist/src/general/getBalance.d.ts.map +0 -1
- package/dist/src/general/getBalance.js +0 -43
- package/dist/src/general/getBalancesBatch.d.ts +0 -59
- package/dist/src/general/getBalancesBatch.d.ts.map +0 -1
- package/dist/src/general/getBalancesBatch.js +0 -34
- package/dist/src/general/index.d.ts +0 -100
- package/dist/src/general/index.d.ts.map +0 -1
- package/dist/src/general/index.js +0 -20
- package/dist/src/general/searchBalances.d.ts +0 -78
- package/dist/src/general/searchBalances.d.ts.map +0 -1
- package/dist/src/general/searchBalances.js +0 -49
- package/dist/src/issuance/approve.d.ts +0 -75
- package/dist/src/issuance/approve.d.ts.map +0 -1
- package/dist/src/issuance/approve.js +0 -36
- package/dist/src/issuance/burn.d.ts +0 -75
- package/dist/src/issuance/burn.d.ts.map +0 -1
- package/dist/src/issuance/burn.js +0 -36
- package/dist/src/issuance/deploy.d.ts +0 -88
- package/dist/src/issuance/deploy.d.ts.map +0 -1
- package/dist/src/issuance/deploy.js +0 -91
- package/dist/src/issuance/grantRole.d.ts +0 -78
- package/dist/src/issuance/grantRole.d.ts.map +0 -1
- package/dist/src/issuance/grantRole.js +0 -50
- package/dist/src/issuance/index.d.ts +0 -165
- package/dist/src/issuance/index.d.ts.map +0 -1
- package/dist/src/issuance/index.js +0 -23
- package/dist/src/issuance/mint.d.ts +0 -75
- package/dist/src/issuance/mint.d.ts.map +0 -1
- package/dist/src/issuance/mint.js +0 -36
- package/dist/src/issuance/transfer.d.ts +0 -75
- package/dist/src/issuance/transfer.d.ts.map +0 -1
- package/dist/src/issuance/transfer.js +0 -36
- package/dist/src/serve.d.ts +0 -2
- package/dist/src/serve.d.ts.map +0 -1
- package/dist/src/serve.js +0 -33
- package/dist/src/staking/index.d.ts +0 -242
- package/dist/src/staking/index.d.ts.map +0 -1
- package/dist/src/staking/index.js +0 -20
- package/dist/src/staking/platforms/common/platform.d.ts +0 -26
- package/dist/src/staking/platforms/common/platform.d.ts.map +0 -1
- package/dist/src/staking/platforms/common/platform.js +0 -26
- package/dist/src/staking/platforms/common/platformNotFound.d.ts +0 -9
- package/dist/src/staking/platforms/common/platformNotFound.d.ts.map +0 -1
- package/dist/src/staking/platforms/common/platformNotFound.js +0 -13
- package/dist/src/staking/platforms/getPlatform/index.d.ts +0 -26
- package/dist/src/staking/platforms/getPlatform/index.d.ts.map +0 -1
- package/dist/src/staking/platforms/getPlatform/index.js +0 -4
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts +0 -52
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.d.ts.map +0 -1
- package/dist/src/staking/platforms/getPlatform/v0/getPlatform.js +0 -58
- package/dist/src/staking/platforms/index.d.ts +0 -52
- package/dist/src/staking/platforms/index.d.ts.map +0 -1
- package/dist/src/staking/platforms/index.js +0 -10
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts +0 -32
- package/dist/src/staking/platforms/searchPlatforms/index.d.ts.map +0 -1
- package/dist/src/staking/platforms/searchPlatforms/index.js +0 -4
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts +0 -76
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.d.ts.map +0 -1
- package/dist/src/staking/platforms/searchPlatforms/v0/searchPlatforms.js +0 -42
- package/dist/src/staking/pools/common/pool.d.ts +0 -29
- package/dist/src/staking/pools/common/pool.d.ts.map +0 -1
- package/dist/src/staking/pools/common/pool.js +0 -28
- package/dist/src/staking/pools/common/poolNotFound.d.ts +0 -10
- package/dist/src/staking/pools/common/poolNotFound.d.ts.map +0 -1
- package/dist/src/staking/pools/common/poolNotFound.js +0 -14
- package/dist/src/staking/pools/getPool/index.d.ts +0 -20
- package/dist/src/staking/pools/getPool/index.d.ts.map +0 -1
- package/dist/src/staking/pools/getPool/index.js +0 -4
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts +0 -35
- package/dist/src/staking/pools/getPool/v0/getPool.d.ts.map +0 -1
- package/dist/src/staking/pools/getPool/v0/getPool.js +0 -64
- package/dist/src/staking/pools/index.d.ts +0 -39
- package/dist/src/staking/pools/index.d.ts.map +0 -1
- package/dist/src/staking/pools/index.js +0 -10
- package/dist/src/staking/pools/searchPools/index.d.ts +0 -25
- package/dist/src/staking/pools/searchPools/index.d.ts.map +0 -1
- package/dist/src/staking/pools/searchPools/index.js +0 -4
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts +0 -55
- package/dist/src/staking/pools/searchPools/v0/searchPools.d.ts.map +0 -1
- package/dist/src/staking/pools/searchPools/v0/searchPools.js +0 -42
- package/dist/src/staking/roles/common/role.d.ts +0 -13
- package/dist/src/staking/roles/common/role.d.ts.map +0 -1
- package/dist/src/staking/roles/common/role.js +0 -18
- package/dist/src/staking/roles/common/roleAssignment.d.ts +0 -27
- package/dist/src/staking/roles/common/roleAssignment.d.ts.map +0 -1
- package/dist/src/staking/roles/common/roleAssignment.js +0 -21
- package/dist/src/staking/roles/common/roleEvent.d.ts +0 -30
- package/dist/src/staking/roles/common/roleEvent.d.ts.map +0 -1
- package/dist/src/staking/roles/common/roleEvent.js +0 -23
- package/dist/src/staking/roles/getRoles/index.d.ts +0 -26
- package/dist/src/staking/roles/getRoles/index.d.ts.map +0 -1
- package/dist/src/staking/roles/getRoles/index.js +0 -4
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts +0 -29
- package/dist/src/staking/roles/getRoles/v0/getRoles.d.ts.map +0 -1
- package/dist/src/staking/roles/getRoles/v0/getRoles.js +0 -41
- package/dist/src/staking/roles/grantRole/index.d.ts +0 -29
- package/dist/src/staking/roles/grantRole/index.d.ts.map +0 -1
- package/dist/src/staking/roles/grantRole/index.js +0 -4
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts +0 -63
- package/dist/src/staking/roles/grantRole/v0/grantRole.d.ts.map +0 -1
- package/dist/src/staking/roles/grantRole/v0/grantRole.js +0 -40
- package/dist/src/staking/roles/index.d.ts +0 -93
- package/dist/src/staking/roles/index.d.ts.map +0 -1
- package/dist/src/staking/roles/index.js +0 -14
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts +0 -27
- package/dist/src/staking/roles/searchRoleEvents/index.d.ts.map +0 -1
- package/dist/src/staking/roles/searchRoleEvents/index.js +0 -4
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts +0 -63
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.d.ts.map +0 -1
- package/dist/src/staking/roles/searchRoleEvents/v0/searchRoleEvents.js +0 -58
- package/dist/src/staking/roles/searchRoles/index.d.ts +0 -27
- package/dist/src/staking/roles/searchRoles/index.d.ts.map +0 -1
- package/dist/src/staking/roles/searchRoles/index.js +0 -4
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts +0 -63
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.d.ts.map +0 -1
- package/dist/src/staking/roles/searchRoles/v0/searchRoles.js +0 -56
- package/dist/src/staking/stakes/common/stake.d.ts +0 -44
- package/dist/src/staking/stakes/common/stake.d.ts.map +0 -1
- package/dist/src/staking/stakes/common/stake.js +0 -45
- package/dist/src/staking/stakes/common/stakeEvent.d.ts +0 -30
- package/dist/src/staking/stakes/common/stakeEvent.d.ts.map +0 -1
- package/dist/src/staking/stakes/common/stakeEvent.js +0 -24
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts +0 -9
- package/dist/src/staking/stakes/common/stakeNotFound.d.ts.map +0 -1
- package/dist/src/staking/stakes/common/stakeNotFound.js +0 -13
- package/dist/src/staking/stakes/getStake/index.d.ts +0 -20
- package/dist/src/staking/stakes/getStake/index.d.ts.map +0 -1
- package/dist/src/staking/stakes/getStake/index.js +0 -4
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts +0 -35
- package/dist/src/staking/stakes/getStake/v0/getStake.d.ts.map +0 -1
- package/dist/src/staking/stakes/getStake/v0/getStake.js +0 -64
- package/dist/src/staking/stakes/index.d.ts +0 -63
- package/dist/src/staking/stakes/index.d.ts.map +0 -1
- package/dist/src/staking/stakes/index.js +0 -12
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts +0 -27
- package/dist/src/staking/stakes/searchStakeEvents/index.d.ts.map +0 -1
- package/dist/src/staking/stakes/searchStakeEvents/index.js +0 -4
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts +0 -63
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.d.ts.map +0 -1
- package/dist/src/staking/stakes/searchStakeEvents/v0/searchStakeEvents.js +0 -59
- package/dist/src/staking/stakes/searchStakes/index.d.ts +0 -27
- package/dist/src/staking/stakes/searchStakes/index.d.ts.map +0 -1
- package/dist/src/staking/stakes/searchStakes/index.js +0 -4
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts +0 -63
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.d.ts.map +0 -1
- package/dist/src/staking/stakes/searchStakes/v0/searchStakes.js +0 -61
- package/dist/src/staking-templates/index.d.ts +0 -732
- package/dist/src/staking-templates/index.d.ts.map +0 -1
- package/dist/src/staking-templates/index.js +0 -18
- package/dist/src/staking-templates/templates/common/amount.d.ts +0 -13
- package/dist/src/staking-templates/templates/common/amount.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/amount.js +0 -17
- package/dist/src/staking-templates/templates/common/amountMult.d.ts +0 -3
- package/dist/src/staking-templates/templates/common/amountMult.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/amountMult.js +0 -23
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts +0 -12
- package/dist/src/staking-templates/templates/common/erc20Input.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/erc20Input.js +0 -16
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts +0 -12
- package/dist/src/staking-templates/templates/common/erc20Reward.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/erc20Reward.js +0 -16
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts +0 -31
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/getCreatePoolEvent.js +0 -47
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts +0 -40
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/getPlatformDeployEvent.js +0 -46
- package/dist/src/staking-templates/templates/common/getReward.d.ts +0 -58
- package/dist/src/staking-templates/templates/common/getReward.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/getReward.js +0 -34
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts +0 -31
- package/dist/src/staking-templates/templates/common/getStakeEvent.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/getStakeEvent.js +0 -51
- package/dist/src/staking-templates/templates/common/lock.d.ts +0 -12
- package/dist/src/staking-templates/templates/common/lock.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/lock.js +0 -20
- package/dist/src/staking-templates/templates/common/lockMult.d.ts +0 -3
- package/dist/src/staking-templates/templates/common/lockMult.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/lockMult.js +0 -15
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts +0 -62
- package/dist/src/staking-templates/templates/common/partialUnstake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/partialUnstake.js +0 -39
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts +0 -13
- package/dist/src/staking-templates/templates/common/rewardDistribution.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/rewardDistribution.js +0 -19
- package/dist/src/staking-templates/templates/common/templates.d.ts +0 -61
- package/dist/src/staking-templates/templates/common/templates.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/templates.js +0 -8
- package/dist/src/staking-templates/templates/common/time.d.ts +0 -2
- package/dist/src/staking-templates/templates/common/time.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/time.js +0 -4
- package/dist/src/staking-templates/templates/common/unstake.d.ts +0 -58
- package/dist/src/staking-templates/templates/common/unstake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/common/unstake.js +0 -34
- package/dist/src/staking-templates/templates/reputation/common.d.ts +0 -23
- package/dist/src/staking-templates/templates/reputation/common.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/common.js +0 -3
- package/dist/src/staking-templates/templates/reputation/index.d.ts +0 -233
- package/dist/src/staking-templates/templates/reputation/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/index.js +0 -4
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts +0 -81
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/createPlatform.js +0 -56
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts +0 -113
- package/dist/src/staking-templates/templates/reputation/v0/createPool.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/createPool.js +0 -85
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts +0 -233
- package/dist/src/staking-templates/templates/reputation/v0/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/index.js +0 -25
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts +0 -61
- package/dist/src/staking-templates/templates/reputation/v0/restake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/restake.js +0 -40
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts +0 -61
- package/dist/src/staking-templates/templates/reputation/v0/stake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputation/v0/stake.js +0 -45
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts +0 -23
- package/dist/src/staking-templates/templates/reputationLock/common.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/common.js +0 -3
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts +0 -244
- package/dist/src/staking-templates/templates/reputationLock/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/index.js +0 -4
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +0 -81
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/createPlatform.js +0 -56
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts +0 -149
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/createPool.js +0 -99
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts +0 -244
- package/dist/src/staking-templates/templates/reputationLock/v0/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/index.js +0 -25
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts +0 -65
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/restake.js +0 -44
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts +0 -65
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/reputationLock/v0/stake.js +0 -46
- package/dist/src/staking-templates/templates/rwa/common.d.ts +0 -23
- package/dist/src/staking-templates/templates/rwa/common.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/common.js +0 -3
- package/dist/src/staking-templates/templates/rwa/index.d.ts +0 -256
- package/dist/src/staking-templates/templates/rwa/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/index.js +0 -4
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts +0 -81
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/createPlatform.js +0 -56
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts +0 -109
- package/dist/src/staking-templates/templates/rwa/v0/createPool.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/createPool.js +0 -79
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts +0 -256
- package/dist/src/staking-templates/templates/rwa/v0/index.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/index.js +0 -27
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts +0 -61
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/notifyRewards.js +0 -41
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts +0 -61
- package/dist/src/staking-templates/templates/rwa/v0/restake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/restake.js +0 -40
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts +0 -61
- package/dist/src/staking-templates/templates/rwa/v0/stake.d.ts.map +0 -1
- package/dist/src/staking-templates/templates/rwa/v0/stake.js +0 -45
- package/dist/staking/platforms/common/platformNotFound.d.ts +0 -9
- package/dist/staking/platforms/common/platformNotFound.d.ts.map +0 -1
- package/dist/staking/platforms/common/platformNotFound.js +0 -13
- package/dist/staking/pools/common/poolNotFound.d.ts +0 -10
- package/dist/staking/pools/common/poolNotFound.d.ts.map +0 -1
- package/dist/staking/pools/common/poolNotFound.js +0 -14
- package/dist/staking/stakes/common/stakeNotFound.d.ts +0 -9
- package/dist/staking/stakes/common/stakeNotFound.d.ts.map +0 -1
- package/dist/staking/stakes/common/stakeNotFound.js +0 -13
- package/dist/staking-templates/index.d.ts +0 -732
- package/dist/staking-templates/index.d.ts.map +0 -1
- package/dist/staking-templates/index.js +0 -18
- package/dist/staking-templates/templates/common/amount.d.ts +0 -7
- package/dist/staking-templates/templates/common/amount.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/amount.js +0 -15
- package/dist/staking-templates/templates/common/amountMult.d.ts +0 -3
- package/dist/staking-templates/templates/common/amountMult.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/amountMult.js +0 -22
- package/dist/staking-templates/templates/common/erc20Input.d.ts +0 -6
- package/dist/staking-templates/templates/common/erc20Input.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/erc20Input.js +0 -14
- package/dist/staking-templates/templates/common/erc20Reward.d.ts +0 -6
- package/dist/staking-templates/templates/common/erc20Reward.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/erc20Reward.js +0 -13
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts +0 -31
- package/dist/staking-templates/templates/common/getCreatePoolEvent.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/getCreatePoolEvent.js +0 -47
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts +0 -40
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/getPlatformDeployEvent.js +0 -46
- package/dist/staking-templates/templates/common/getReward.d.ts +0 -58
- package/dist/staking-templates/templates/common/getReward.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/getReward.js +0 -34
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts +0 -31
- package/dist/staking-templates/templates/common/getStakeEvent.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/getStakeEvent.js +0 -51
- package/dist/staking-templates/templates/common/lock.d.ts +0 -6
- package/dist/staking-templates/templates/common/lock.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/lock.js +0 -18
- package/dist/staking-templates/templates/common/lockMult.d.ts +0 -3
- package/dist/staking-templates/templates/common/lockMult.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/lockMult.js +0 -14
- package/dist/staking-templates/templates/common/partialUnstake.d.ts +0 -62
- package/dist/staking-templates/templates/common/partialUnstake.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/partialUnstake.js +0 -39
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts +0 -7
- package/dist/staking-templates/templates/common/rewardDistribution.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/rewardDistribution.js +0 -16
- package/dist/staking-templates/templates/common/templates.d.ts +0 -61
- package/dist/staking-templates/templates/common/templates.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/templates.js +0 -8
- package/dist/staking-templates/templates/common/time.d.ts +0 -2
- package/dist/staking-templates/templates/common/time.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/time.js +0 -4
- package/dist/staking-templates/templates/common/unstake.d.ts +0 -58
- package/dist/staking-templates/templates/common/unstake.d.ts.map +0 -1
- package/dist/staking-templates/templates/common/unstake.js +0 -34
- package/dist/staking-templates/templates/reputation/common.d.ts +0 -23
- package/dist/staking-templates/templates/reputation/common.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/common.js +0 -3
- package/dist/staking-templates/templates/reputation/index.d.ts +0 -233
- package/dist/staking-templates/templates/reputation/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/index.js +0 -4
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts +0 -81
- package/dist/staking-templates/templates/reputation/v0/createPlatform.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/createPlatform.js +0 -56
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts +0 -113
- package/dist/staking-templates/templates/reputation/v0/createPool.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/createPool.js +0 -85
- package/dist/staking-templates/templates/reputation/v0/index.d.ts +0 -233
- package/dist/staking-templates/templates/reputation/v0/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/index.js +0 -25
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts +0 -61
- package/dist/staking-templates/templates/reputation/v0/restake.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/restake.js +0 -40
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts +0 -61
- package/dist/staking-templates/templates/reputation/v0/stake.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputation/v0/stake.js +0 -45
- package/dist/staking-templates/templates/reputationLock/common.d.ts +0 -23
- package/dist/staking-templates/templates/reputationLock/common.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/common.js +0 -3
- package/dist/staking-templates/templates/reputationLock/index.d.ts +0 -244
- package/dist/staking-templates/templates/reputationLock/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/index.js +0 -4
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts +0 -81
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/createPlatform.js +0 -56
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts +0 -149
- package/dist/staking-templates/templates/reputationLock/v0/createPool.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/createPool.js +0 -99
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts +0 -244
- package/dist/staking-templates/templates/reputationLock/v0/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/index.js +0 -25
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts +0 -65
- package/dist/staking-templates/templates/reputationLock/v0/restake.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/restake.js +0 -44
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts +0 -65
- package/dist/staking-templates/templates/reputationLock/v0/stake.d.ts.map +0 -1
- package/dist/staking-templates/templates/reputationLock/v0/stake.js +0 -46
- package/dist/staking-templates/templates/rwa/common.d.ts +0 -23
- package/dist/staking-templates/templates/rwa/common.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/common.js +0 -3
- package/dist/staking-templates/templates/rwa/index.d.ts +0 -256
- package/dist/staking-templates/templates/rwa/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/index.js +0 -4
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts +0 -81
- package/dist/staking-templates/templates/rwa/v0/createPlatform.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/createPlatform.js +0 -56
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts +0 -109
- package/dist/staking-templates/templates/rwa/v0/createPool.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/createPool.js +0 -79
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts +0 -61
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/distributeRewards.js +0 -41
- package/dist/staking-templates/templates/rwa/v0/index.d.ts +0 -256
- package/dist/staking-templates/templates/rwa/v0/index.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/index.js +0 -27
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.d.ts +0 -61
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/notifyRewards.js +0 -41
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts +0 -61
- package/dist/staking-templates/templates/rwa/v0/restake.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/restake.js +0 -40
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts +0 -61
- package/dist/staking-templates/templates/rwa/v0/stake.d.ts.map +0 -1
- package/dist/staking-templates/templates/rwa/v0/stake.js +0 -45
- package/dist/v0/fractions/index.d.ts +0 -129
- package/dist/v0/fractions/index.d.ts.map +0 -1
- package/dist/v0/fractions/index.js +0 -9
- package/dist/v0/fractions/networkStatistics.route.d.ts +0 -297
- package/dist/v0/fractions/networkStatistics.route.d.ts.map +0 -1
- package/dist/v0/fractions/networkStatistics.route.js +0 -225
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts +0 -65
- package/dist/v1/fractions/lending/buyback/buyback.routes.d.ts.map +0 -1
- package/dist/v1/fractions/lending/buyback/buyback.routes.js +0 -27
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts +0 -8
- package/dist/v1/fractions/lending/buyback/buyback.schema.d.ts.map +0 -1
- package/dist/v1/fractions/lending/buyback/buyback.schema.js +0 -13
- package/dist/v1/fractions/lending/createLendingSale.d.ts +0 -303
- package/dist/v1/fractions/lending/createLendingSale.d.ts.map +0 -1
- package/dist/v1/fractions/lending/createLendingSale.js +0 -79
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts +0 -113
- package/dist/v1/fractions/lending/deployMarket/lending.routes.d.ts.map +0 -1
- package/dist/v1/fractions/lending/deployMarket/lending.routes.js +0 -41
- package/dist/v1/fractions/lending/index.d.ts +0 -192
- package/dist/v1/fractions/lending/index.d.ts.map +0 -1
- package/dist/v1/fractions/lending/index.js +0 -22
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts +0 -71
- package/dist/v1/fractions/lending/purchase/directPurchase.route.d.ts.map +0 -1
- package/dist/v1/fractions/lending/purchase/directPurchase.route.js +0 -31
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts +0 -61
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.d.ts.map +0 -1
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.routes.js +0 -27
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts +0 -7
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.d.ts.map +0 -1
- package/dist/v1/fractions/lending/setCollateralPrice/setCollateralPrice.schema.js +0 -11
- package/dist/v1/fractions/schemas.d.ts +0 -20
- package/dist/v1/fractions/schemas.d.ts.map +0 -1
- package/dist/v1/fractions/schemas.js +0 -20
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { AddressSchema, FractionsChainId } from "../../../common/index.js";
|
|
3
|
-
/**
|
|
4
|
-
* Time boundary schema for sale period
|
|
5
|
-
*/
|
|
6
|
-
export const TimeBoundarySchema = z.object({
|
|
7
|
-
start: z.coerce.date().describe("Sale start date"),
|
|
8
|
-
end: z.coerce.date().describe("Sale end date"),
|
|
9
|
-
});
|
|
10
|
-
/**
|
|
11
|
-
* Capitalization schema for sale limits
|
|
12
|
-
*/
|
|
13
|
-
export const CapitalizationSchema = z.object({
|
|
14
|
-
soft: z.coerce.bigint().positive().describe("Soft cap - minimum funding target"),
|
|
15
|
-
hard: z.coerce.bigint().positive().describe("Hard cap - maximum funding limit"),
|
|
16
|
-
softPerAccount: z.coerce.bigint().positive().optional().describe("Optional soft cap per account"),
|
|
17
|
-
hardPerAccount: z.coerce.bigint().positive().optional().describe("Optional hard cap per account"),
|
|
18
|
-
});
|
|
19
|
-
/**
|
|
20
|
-
* NFT details schema for ERC-721 tokens to be wrapped
|
|
21
|
-
*/
|
|
22
|
-
export const NftDetailsSchema = z.object({
|
|
23
|
-
contractAddress: AddressSchema.describe("ERC-721 contract address"),
|
|
24
|
-
tokenIds: z.array(z.coerce.bigint().nonnegative()).nonempty().describe("Token IDs to wrap"),
|
|
25
|
-
});
|
|
26
|
-
/**
|
|
27
|
-
* Fraction configuration schema
|
|
28
|
-
*/
|
|
29
|
-
export const FractionSchema = z.object({
|
|
30
|
-
name: z.string().min(1).describe("Fraction token name"),
|
|
31
|
-
symbol: z.string().min(1).max(11).describe("Fraction token symbol"),
|
|
32
|
-
amount: z.coerce.bigint().positive().describe("Total supply of fractions to mint"),
|
|
33
|
-
});
|
|
34
|
-
/**
|
|
35
|
-
* Funding configuration schema for payment tokens
|
|
36
|
-
*/
|
|
37
|
-
export const FundingSchema = z.object({
|
|
38
|
-
token: AddressSchema.describe("Payment token address (e.g., USDC)"),
|
|
39
|
-
amountPerPacket: z.coerce.bigint().positive().describe("Amount of payment token per packet"),
|
|
40
|
-
});
|
|
41
|
-
/**
|
|
42
|
-
* Vesting configuration schema
|
|
43
|
-
*/
|
|
44
|
-
export const VestingSchema = z.object({
|
|
45
|
-
cliff: z.coerce.date().describe("Cliff date after which vesting begins"),
|
|
46
|
-
totalVestingPeriod: z.number().positive().describe("Total vesting period in seconds"),
|
|
47
|
-
portionPeriod: z.number().positive().describe("Period between vesting portions in seconds"),
|
|
48
|
-
});
|
|
49
|
-
/**
|
|
50
|
-
* Request schema for creating NFT fractions
|
|
51
|
-
*/
|
|
52
|
-
export const CreateNftFractionsRequestSchema = z
|
|
53
|
-
.object({
|
|
54
|
-
chainId: FractionsChainId.describe("Chain ID where the market is deployed"),
|
|
55
|
-
market: AddressSchema.describe("Address of the NFT Fractions market"),
|
|
56
|
-
nft: NftDetailsSchema.describe("NFT details to wrap"),
|
|
57
|
-
fractions: FractionSchema.describe("Fraction token configuration"),
|
|
58
|
-
timeBoundary: TimeBoundarySchema.describe("Purchase time window"),
|
|
59
|
-
cap: CapitalizationSchema.describe("Capitalization limits"),
|
|
60
|
-
funding: z.array(FundingSchema).nonempty().describe("Payment token configuration"),
|
|
61
|
-
amountOfPacketsPerFraction: z.coerce.bigint().positive().describe("Number of funding packets per fraction"),
|
|
62
|
-
vesting: VestingSchema.optional().describe("Optional vesting configuration"),
|
|
63
|
-
refundAddress: AddressSchema.describe("Address to receive refunds"),
|
|
64
|
-
})
|
|
65
|
-
.openapi({ ref: "CreateNftFractionsRequestSchema" });
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
/**
|
|
4
|
-
* Creates handlers for deploying an NFT Fractions market
|
|
5
|
-
*/
|
|
6
|
-
export declare function createDeployNftFractionsMarketTransactionV0<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
7
|
-
data: `0x${string}`;
|
|
8
|
-
to: `0x${string}`;
|
|
9
|
-
details: {
|
|
10
|
-
address: `0x${string}`;
|
|
11
|
-
functionName: string;
|
|
12
|
-
abi: any[];
|
|
13
|
-
args: any[];
|
|
14
|
-
};
|
|
15
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
16
|
-
in: {
|
|
17
|
-
json: {
|
|
18
|
-
chainId: 31337 | 11155111 | "31337" | "11155111" | 72080 | "72080";
|
|
19
|
-
adminAddress: `0x${string}`;
|
|
20
|
-
acceptedFundingTokens: `0x${string}`[];
|
|
21
|
-
ownerAddress?: `0x${string}` | undefined;
|
|
22
|
-
cap?: {
|
|
23
|
-
maxHardCap: bigint;
|
|
24
|
-
} | undefined;
|
|
25
|
-
compilotSignerAddress?: `0x${string}` | undefined;
|
|
26
|
-
fee?: {
|
|
27
|
-
percent: number;
|
|
28
|
-
} | undefined;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
out: {
|
|
32
|
-
json: {
|
|
33
|
-
chainId: 31337 | 11155111 | 72080;
|
|
34
|
-
adminAddress: `0x${string}`;
|
|
35
|
-
acceptedFundingTokens: `0x${string}`[];
|
|
36
|
-
ownerAddress?: `0x${string}` | undefined;
|
|
37
|
-
cap?: {
|
|
38
|
-
maxHardCap: bigint;
|
|
39
|
-
} | undefined;
|
|
40
|
-
compilotSignerAddress?: `0x${string}` | undefined;
|
|
41
|
-
fee?: {
|
|
42
|
-
percent: number;
|
|
43
|
-
} | undefined;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
47
|
-
data: `0x${string}`;
|
|
48
|
-
to: `0x${string}`;
|
|
49
|
-
details: {
|
|
50
|
-
address: `0x${string}`;
|
|
51
|
-
functionName: string;
|
|
52
|
-
abi: any[];
|
|
53
|
-
args: any[];
|
|
54
|
-
};
|
|
55
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
56
|
-
in: {
|
|
57
|
-
json: {
|
|
58
|
-
chainId: 31337 | 11155111 | "31337" | "11155111" | 72080 | "72080";
|
|
59
|
-
adminAddress: `0x${string}`;
|
|
60
|
-
acceptedFundingTokens: `0x${string}`[];
|
|
61
|
-
ownerAddress?: `0x${string}` | undefined;
|
|
62
|
-
cap?: {
|
|
63
|
-
maxHardCap: bigint;
|
|
64
|
-
} | undefined;
|
|
65
|
-
compilotSignerAddress?: `0x${string}` | undefined;
|
|
66
|
-
fee?: {
|
|
67
|
-
percent: number;
|
|
68
|
-
} | undefined;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
out: {
|
|
72
|
-
json: {
|
|
73
|
-
chainId: 31337 | 11155111 | 72080;
|
|
74
|
-
adminAddress: `0x${string}`;
|
|
75
|
-
acceptedFundingTokens: `0x${string}`[];
|
|
76
|
-
ownerAddress?: `0x${string}` | undefined;
|
|
77
|
-
cap?: {
|
|
78
|
-
maxHardCap: bigint;
|
|
79
|
-
} | undefined;
|
|
80
|
-
compilotSignerAddress?: `0x${string}` | undefined;
|
|
81
|
-
fee?: {
|
|
82
|
-
percent: number;
|
|
83
|
-
} | undefined;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
87
|
-
data: `0x${string}`;
|
|
88
|
-
to: `0x${string}`;
|
|
89
|
-
details: {
|
|
90
|
-
address: `0x${string}`;
|
|
91
|
-
functionName: string;
|
|
92
|
-
abi: any[];
|
|
93
|
-
args: any[];
|
|
94
|
-
};
|
|
95
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
96
|
-
//# sourceMappingURL=deployNftFractionsMarket.routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployNftFractionsMarket.routes.d.ts","sourceRoot":"","sources":["../../../../src/fractions/nftfractions/v0/deployNftFractionsMarket.routes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAyBvC;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAmB7F"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { zeroAddress } from "viem";
|
|
2
|
-
import { getEnv, getEnvNumber } from "@evergonlabs/internal/node/getEnv";
|
|
3
|
-
import { describeRoute } from "hono-openapi";
|
|
4
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
5
|
-
import { createNftFractionsPlatform } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
6
|
-
import { DEFAULT_COMPILOT_SIGNER, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
7
|
-
import { DeployNftFractionsMarketRequestSchema } from "./deployNftFractionsMarket.schema.js";
|
|
8
|
-
const route = describeRoute({
|
|
9
|
-
summary: "Deploy an NFT Fractions market",
|
|
10
|
-
description: "Returns transaction data for deploying an NFT Fractions market with ComPilot gating. " +
|
|
11
|
-
"This market type supports wrapping ERC-721 tokens and fractionalizing them into ERC-20 compatible tokens.",
|
|
12
|
-
tags: ["NFT Fractions"],
|
|
13
|
-
responses: {
|
|
14
|
-
200: {
|
|
15
|
-
description: "Returns transaction data for deploying an NFT Fractions market",
|
|
16
|
-
content: {
|
|
17
|
-
"application/json": {
|
|
18
|
-
schema: resolver(TransactionSchema),
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
/**
|
|
25
|
-
* Creates handlers for deploying an NFT Fractions market
|
|
26
|
-
*/
|
|
27
|
-
export function createDeployNftFractionsMarketTransactionV0(factory) {
|
|
28
|
-
return factory.createHandlers(route, validator("json", DeployNftFractionsMarketRequestSchema), async (c) => {
|
|
29
|
-
const { chainId, adminAddress, ownerAddress, compilotSignerAddress, cap, fee, acceptedFundingTokens } = c.req.valid("json");
|
|
30
|
-
const platformFee = getFeeConfig();
|
|
31
|
-
const tx = createNftFractionsPlatform({
|
|
32
|
-
chainId: chainId,
|
|
33
|
-
adminAddress: adminAddress,
|
|
34
|
-
ownerAddress: ownerAddress ?? adminAddress,
|
|
35
|
-
compilotSignerAddress: compilotSignerAddress ?? DEFAULT_COMPILOT_SIGNER,
|
|
36
|
-
fee: { ...platformFee, ...fee },
|
|
37
|
-
maxHardCap: cap ? cap.maxHardCap : null,
|
|
38
|
-
acceptedFundingTokens: acceptedFundingTokens,
|
|
39
|
-
});
|
|
40
|
-
return c.json(toTransaction(tx));
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Gets the default fee configuration from environment variables
|
|
45
|
-
*/
|
|
46
|
-
function getFeeConfig() {
|
|
47
|
-
return {
|
|
48
|
-
percent: getEnvNumber("PLATFORM_FEE_SIZE_BP", 0),
|
|
49
|
-
collectorAddress: getEnv("PLATFORM_FEE_COLLECTOR_ADDRESS", zeroAddress),
|
|
50
|
-
feeAdmin: getEnv("PLATFORM_FEE_ADMIN", zeroAddress),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Cap configuration schema for market limits
|
|
4
|
-
*/
|
|
5
|
-
export declare const CapConfigSchema: z.ZodObject<{
|
|
6
|
-
maxHardCap: z.ZodBigInt;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
maxHardCap: bigint;
|
|
9
|
-
}, {
|
|
10
|
-
maxHardCap: bigint;
|
|
11
|
-
}>;
|
|
12
|
-
/**
|
|
13
|
-
* Fee configuration schema for market fees
|
|
14
|
-
*/
|
|
15
|
-
export declare const FeeConfigSchema: z.ZodObject<{
|
|
16
|
-
percent: z.ZodNumber;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
percent: number;
|
|
19
|
-
}, {
|
|
20
|
-
percent: number;
|
|
21
|
-
}>;
|
|
22
|
-
/**
|
|
23
|
-
* Request schema for deploying an NFT Fractions market
|
|
24
|
-
*/
|
|
25
|
-
export declare const DeployNftFractionsMarketRequestSchema: z.ZodObject<{
|
|
26
|
-
chainId: z.ZodPipeline<z.ZodEffects<z.ZodType<31337 | 11155111 | "31337" | "11155111" | 72080 | "72080", z.ZodTypeDef, 31337 | 11155111 | "31337" | "11155111" | 72080 | "72080">, 31337 | 11155111 | 72080, 31337 | 11155111 | "31337" | "11155111" | 72080 | "72080">, z.ZodType<31337 | 11155111 | 72080, z.ZodTypeDef, 31337 | 11155111 | 72080>>;
|
|
27
|
-
adminAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
28
|
-
ownerAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
29
|
-
compilotSignerAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
30
|
-
cap: z.ZodOptional<z.ZodObject<{
|
|
31
|
-
maxHardCap: z.ZodBigInt;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
maxHardCap: bigint;
|
|
34
|
-
}, {
|
|
35
|
-
maxHardCap: bigint;
|
|
36
|
-
}>>;
|
|
37
|
-
fee: z.ZodOptional<z.ZodObject<{
|
|
38
|
-
percent: z.ZodNumber;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
percent: number;
|
|
41
|
-
}, {
|
|
42
|
-
percent: number;
|
|
43
|
-
}>>;
|
|
44
|
-
acceptedFundingTokens: z.ZodArray<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, "many">;
|
|
45
|
-
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
chainId: 31337 | 11155111 | 72080;
|
|
47
|
-
adminAddress: `0x${string}`;
|
|
48
|
-
acceptedFundingTokens: `0x${string}`[];
|
|
49
|
-
ownerAddress?: `0x${string}` | undefined;
|
|
50
|
-
cap?: {
|
|
51
|
-
maxHardCap: bigint;
|
|
52
|
-
} | undefined;
|
|
53
|
-
compilotSignerAddress?: `0x${string}` | undefined;
|
|
54
|
-
fee?: {
|
|
55
|
-
percent: number;
|
|
56
|
-
} | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
chainId: 31337 | 11155111 | "31337" | "11155111" | 72080 | "72080";
|
|
59
|
-
adminAddress: `0x${string}`;
|
|
60
|
-
acceptedFundingTokens: `0x${string}`[];
|
|
61
|
-
ownerAddress?: `0x${string}` | undefined;
|
|
62
|
-
cap?: {
|
|
63
|
-
maxHardCap: bigint;
|
|
64
|
-
} | undefined;
|
|
65
|
-
compilotSignerAddress?: `0x${string}` | undefined;
|
|
66
|
-
fee?: {
|
|
67
|
-
percent: number;
|
|
68
|
-
} | undefined;
|
|
69
|
-
}>;
|
|
70
|
-
//# sourceMappingURL=deployNftFractionsMarket.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployNftFractionsMarket.schema.d.ts","sourceRoot":"","sources":["../../../../src/fractions/nftfractions/v0/deployNftFractionsMarket.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;EAE1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;EAE1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcU,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
/**
|
|
5
|
-
* Request schema for initializing ComPilot signer
|
|
6
|
-
*/
|
|
7
|
-
export declare const InitNftFractionsCompilotRequestSchema: z.ZodObject<{
|
|
8
|
-
market: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
|
-
signerAddress: z.ZodOptional<z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
market: `0x${string}`;
|
|
12
|
-
signerAddress?: `0x${string}` | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
market: `0x${string}`;
|
|
15
|
-
signerAddress?: `0x${string}` | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Creates handlers for initializing ComPilot signer on NFT Fractions market
|
|
19
|
-
*/
|
|
20
|
-
export declare function createInitNftFractionsCompilotTransaction<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
21
|
-
data: `0x${string}`;
|
|
22
|
-
to: `0x${string}`;
|
|
23
|
-
details: {
|
|
24
|
-
address: `0x${string}`;
|
|
25
|
-
functionName: string;
|
|
26
|
-
abi: any[];
|
|
27
|
-
args: any[];
|
|
28
|
-
};
|
|
29
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
30
|
-
in: {
|
|
31
|
-
query: {
|
|
32
|
-
market: `0x${string}`;
|
|
33
|
-
signerAddress?: `0x${string}` | undefined;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
out: {
|
|
37
|
-
query: {
|
|
38
|
-
market: `0x${string}`;
|
|
39
|
-
signerAddress?: `0x${string}` | undefined;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
43
|
-
data: `0x${string}`;
|
|
44
|
-
to: `0x${string}`;
|
|
45
|
-
details: {
|
|
46
|
-
address: `0x${string}`;
|
|
47
|
-
functionName: string;
|
|
48
|
-
abi: any[];
|
|
49
|
-
args: any[];
|
|
50
|
-
};
|
|
51
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
52
|
-
in: {
|
|
53
|
-
query: {
|
|
54
|
-
market: `0x${string}`;
|
|
55
|
-
signerAddress?: `0x${string}` | undefined;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
out: {
|
|
59
|
-
query: {
|
|
60
|
-
market: `0x${string}`;
|
|
61
|
-
signerAddress?: `0x${string}` | undefined;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
65
|
-
data: `0x${string}`;
|
|
66
|
-
to: `0x${string}`;
|
|
67
|
-
details: {
|
|
68
|
-
address: `0x${string}`;
|
|
69
|
-
functionName: string;
|
|
70
|
-
abi: any[];
|
|
71
|
-
args: any[];
|
|
72
|
-
};
|
|
73
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
74
|
-
//# sourceMappingURL=initCompilot.routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initCompilot.routes.d.ts","sourceRoot":"","sources":["../../../../src/fractions/nftfractions/v0/initCompilot.routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAOvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;EAGhD,CAAC;AAEH;;GAEG;AACH,wBAAgB,yCAAyC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAW3F"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
3
|
-
import { initCompilotSigner } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
-
import { AddressSchema, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
5
|
-
import { getEnv } from "@evergonlabs/internal/node/getEnv";
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
const route = describeRoute({
|
|
8
|
-
summary: "Initialize ComPilot signer for NFT Fractions market",
|
|
9
|
-
description: "Returns transaction data for initializing the ComPilot signer on an NFT Fractions market. " +
|
|
10
|
-
"This must be called after deploying the market to enable compliance gating.",
|
|
11
|
-
tags: ["NFT Fractions"],
|
|
12
|
-
responses: {
|
|
13
|
-
200: {
|
|
14
|
-
description: "Returns transaction data for initializing ComPilot signer",
|
|
15
|
-
content: {
|
|
16
|
-
"application/json": {
|
|
17
|
-
schema: resolver(TransactionSchema),
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* Request schema for initializing ComPilot signer
|
|
25
|
-
*/
|
|
26
|
-
export const InitNftFractionsCompilotRequestSchema = z.object({
|
|
27
|
-
market: AddressSchema.describe("Address of the NFT Fractions market"),
|
|
28
|
-
signerAddress: AddressSchema.optional().describe("Optional: Override default ComPilot signer address"),
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* Creates handlers for initializing ComPilot signer on NFT Fractions market
|
|
32
|
-
*/
|
|
33
|
-
export function createInitNftFractionsCompilotTransaction(factory) {
|
|
34
|
-
return factory.createHandlers(route, validator("query", InitNftFractionsCompilotRequestSchema), async (c) => {
|
|
35
|
-
const { market, signerAddress } = c.req.valid("query");
|
|
36
|
-
const defaultSigner = getEnv("PLATFORM_COMPILOT_SIGNER", "0x29A75f22AC9A7303Abb86ce521Bb44C4C69028A0");
|
|
37
|
-
const signer = signerAddress ?? defaultSigner;
|
|
38
|
-
const tx = initCompilotSigner(market, signer);
|
|
39
|
-
return c.json(toTransaction(tx));
|
|
40
|
-
});
|
|
41
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
/**
|
|
4
|
-
* Creates handlers for deploying an NFT Fractions market
|
|
5
|
-
*/
|
|
6
|
-
export declare function createDeployNftFractionsMarketTransactionV0<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
7
|
-
data: `0x${string}`;
|
|
8
|
-
to: `0x${string}`;
|
|
9
|
-
details: {
|
|
10
|
-
functionName: string;
|
|
11
|
-
address: `0x${string}`;
|
|
12
|
-
abi: any[];
|
|
13
|
-
args: any[];
|
|
14
|
-
};
|
|
15
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
16
|
-
in: {
|
|
17
|
-
json: {
|
|
18
|
-
chainId: unknown;
|
|
19
|
-
adminAddress: string;
|
|
20
|
-
acceptedFundingTokens: string[];
|
|
21
|
-
ownerAddress?: string | undefined;
|
|
22
|
-
compilotSignerAddress?: string | undefined;
|
|
23
|
-
cap?: {
|
|
24
|
-
maxHardCap: string;
|
|
25
|
-
} | undefined;
|
|
26
|
-
fee?: {
|
|
27
|
-
percent: number;
|
|
28
|
-
} | undefined;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
out: {
|
|
32
|
-
json: {
|
|
33
|
-
chainId: 11155111 | 31337 | 72080;
|
|
34
|
-
adminAddress: `0x${string}`;
|
|
35
|
-
acceptedFundingTokens: `0x${string}`[];
|
|
36
|
-
ownerAddress?: `0x${string}` | undefined;
|
|
37
|
-
compilotSignerAddress?: `0x${string}` | undefined;
|
|
38
|
-
cap?: {
|
|
39
|
-
maxHardCap: bigint;
|
|
40
|
-
} | undefined;
|
|
41
|
-
fee?: {
|
|
42
|
-
percent: number;
|
|
43
|
-
} | undefined;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
47
|
-
data: `0x${string}`;
|
|
48
|
-
to: `0x${string}`;
|
|
49
|
-
details: {
|
|
50
|
-
functionName: string;
|
|
51
|
-
address: `0x${string}`;
|
|
52
|
-
abi: any[];
|
|
53
|
-
args: any[];
|
|
54
|
-
};
|
|
55
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
56
|
-
in: {
|
|
57
|
-
json: {
|
|
58
|
-
chainId: unknown;
|
|
59
|
-
adminAddress: string;
|
|
60
|
-
acceptedFundingTokens: string[];
|
|
61
|
-
ownerAddress?: string | undefined;
|
|
62
|
-
compilotSignerAddress?: string | undefined;
|
|
63
|
-
cap?: {
|
|
64
|
-
maxHardCap: string;
|
|
65
|
-
} | undefined;
|
|
66
|
-
fee?: {
|
|
67
|
-
percent: number;
|
|
68
|
-
} | undefined;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
out: {
|
|
72
|
-
json: {
|
|
73
|
-
chainId: 11155111 | 31337 | 72080;
|
|
74
|
-
adminAddress: `0x${string}`;
|
|
75
|
-
acceptedFundingTokens: `0x${string}`[];
|
|
76
|
-
ownerAddress?: `0x${string}` | undefined;
|
|
77
|
-
compilotSignerAddress?: `0x${string}` | undefined;
|
|
78
|
-
cap?: {
|
|
79
|
-
maxHardCap: bigint;
|
|
80
|
-
} | undefined;
|
|
81
|
-
fee?: {
|
|
82
|
-
percent: number;
|
|
83
|
-
} | undefined;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
87
|
-
data: `0x${string}`;
|
|
88
|
-
to: `0x${string}`;
|
|
89
|
-
details: {
|
|
90
|
-
functionName: string;
|
|
91
|
-
address: `0x${string}`;
|
|
92
|
-
abi: any[];
|
|
93
|
-
args: any[];
|
|
94
|
-
};
|
|
95
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
96
|
-
//# sourceMappingURL=deployNftFractionsMarket.routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployNftFractionsMarket.routes.d.ts","sourceRoot":"","sources":["../../../src/fractions/platforms/deployNftFractionsMarket.routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA2BvC;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAmB7F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployNftFractionsMarket.schema.d.ts","sourceRoot":"","sources":["../../../src/fractions/platforms/deployNftFractionsMarket.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;GAEG;AACH,eAAO,MAAM,eAAe;;iBAE1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;iBAE1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;iBAcC,CAAC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Env } from "hono";
|
|
2
|
-
import { Factory } from "hono/factory";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
export declare const PurchaseRequestSchema: z.ZodObject<{
|
|
5
|
-
chainId: z.ZodPipeline<z.ZodEffects<z.ZodType<1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080", z.ZodTypeDef, 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080">, 1 | 31337 | 11155111 | 72080, 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080">, z.ZodType<1 | 31337 | 11155111 | 72080, z.ZodTypeDef, 1 | 31337 | 11155111 | 72080>>;
|
|
6
|
-
market: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
7
|
-
campaignId: z.ZodBigInt;
|
|
8
|
-
amountToBuy: z.ZodBigInt;
|
|
9
|
-
applyDiscount: z.ZodBoolean;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
chainId: 1 | 31337 | 11155111 | 72080;
|
|
12
|
-
campaignId: bigint;
|
|
13
|
-
market: `0x${string}`;
|
|
14
|
-
amountToBuy: bigint;
|
|
15
|
-
applyDiscount: boolean;
|
|
16
|
-
}, {
|
|
17
|
-
chainId: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080";
|
|
18
|
-
campaignId: bigint;
|
|
19
|
-
market: `0x${string}`;
|
|
20
|
-
amountToBuy: bigint;
|
|
21
|
-
applyDiscount: boolean;
|
|
22
|
-
}>;
|
|
23
|
-
export declare function createPurchaseSalesTransactionV0<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
24
|
-
data: `0x${string}`;
|
|
25
|
-
to: `0x${string}`;
|
|
26
|
-
details: {
|
|
27
|
-
address: `0x${string}`;
|
|
28
|
-
functionName: string;
|
|
29
|
-
abi: any[];
|
|
30
|
-
args: any[];
|
|
31
|
-
};
|
|
32
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
33
|
-
in: {
|
|
34
|
-
json: {
|
|
35
|
-
chainId: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080";
|
|
36
|
-
campaignId: bigint;
|
|
37
|
-
market: `0x${string}`;
|
|
38
|
-
amountToBuy: bigint;
|
|
39
|
-
applyDiscount: boolean;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
out: {
|
|
43
|
-
json: {
|
|
44
|
-
chainId: 1 | 31337 | 11155111 | 72080;
|
|
45
|
-
campaignId: bigint;
|
|
46
|
-
market: `0x${string}`;
|
|
47
|
-
amountToBuy: bigint;
|
|
48
|
-
applyDiscount: boolean;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
52
|
-
data: `0x${string}`;
|
|
53
|
-
to: `0x${string}`;
|
|
54
|
-
details: {
|
|
55
|
-
address: `0x${string}`;
|
|
56
|
-
functionName: string;
|
|
57
|
-
abi: any[];
|
|
58
|
-
args: any[];
|
|
59
|
-
};
|
|
60
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<import("hono/utils/types").IfAnyThenEmptyObject<E extends Env ? Env extends E ? {} : E : E> & {}, string, {
|
|
61
|
-
in: {
|
|
62
|
-
json: {
|
|
63
|
-
chainId: 1 | 31337 | 11155111 | "31337" | "11155111" | "1" | 72080 | "72080";
|
|
64
|
-
campaignId: bigint;
|
|
65
|
-
market: `0x${string}`;
|
|
66
|
-
amountToBuy: bigint;
|
|
67
|
-
applyDiscount: boolean;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
out: {
|
|
71
|
-
json: {
|
|
72
|
-
chainId: 1 | 31337 | 11155111 | 72080;
|
|
73
|
-
campaignId: bigint;
|
|
74
|
-
market: `0x${string}`;
|
|
75
|
-
amountToBuy: bigint;
|
|
76
|
-
applyDiscount: boolean;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
80
|
-
data: `0x${string}`;
|
|
81
|
-
to: `0x${string}`;
|
|
82
|
-
details: {
|
|
83
|
-
address: `0x${string}`;
|
|
84
|
-
functionName: string;
|
|
85
|
-
abi: any[];
|
|
86
|
-
args: any[];
|
|
87
|
-
};
|
|
88
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
89
|
-
//# sourceMappingURL=purchase.route.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purchase.route.d.ts","sourceRoot":"","sources":["../../../../src/fractions/purchase/v0/purchase.route.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAMhC,CAAC;AAkBH,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAiBlF"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
2
|
-
import { describeRoute } from "hono-openapi";
|
|
3
|
-
import { buildPurchaseTx } from "@evergonlabs/tmi-protocol-fractions-sdk";
|
|
4
|
-
import { FractionsChainId, toTransaction, TransactionSchema } from "../../../common/index.js";
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import { AddressSchema } from "@evergonlabs/tmi-protocol-types/evm";
|
|
7
|
-
export const PurchaseRequestSchema = z.object({
|
|
8
|
-
chainId: FractionsChainId,
|
|
9
|
-
market: AddressSchema,
|
|
10
|
-
campaignId: z.coerce.bigint(),
|
|
11
|
-
amountToBuy: z.coerce.bigint(),
|
|
12
|
-
applyDiscount: z.boolean(),
|
|
13
|
-
});
|
|
14
|
-
const route = describeRoute({
|
|
15
|
-
summary: "Make a purchase",
|
|
16
|
-
description: "Returns transaction data for making a purchase",
|
|
17
|
-
tags: ["Fractions"],
|
|
18
|
-
responses: {
|
|
19
|
-
200: {
|
|
20
|
-
description: "Returns transaction data for making a purchase",
|
|
21
|
-
content: {
|
|
22
|
-
"application/json": {
|
|
23
|
-
schema: resolver(TransactionSchema),
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
export function createPurchaseSalesTransactionV0(factory) {
|
|
30
|
-
return factory.createHandlers(route, validator("json", PurchaseRequestSchema.openapi({ ref: "PurchaseRequestSchema" })), async (c) => {
|
|
31
|
-
const { chainId, market, campaignId, amountToBuy, applyDiscount } = c.req.valid("json");
|
|
32
|
-
const tx = buildPurchaseTx(chainId, {
|
|
33
|
-
market: market,
|
|
34
|
-
campaignId: campaignId,
|
|
35
|
-
amountToBuy: amountToBuy,
|
|
36
|
-
//todo burn for discount will be changed when multiple discount options becomes available in smart contract
|
|
37
|
-
discount: applyDiscount ? { burnForDiscount: BigInt(1) } : undefined,
|
|
38
|
-
});
|
|
39
|
-
return c.json(toTransaction(tx));
|
|
40
|
-
});
|
|
41
|
-
}
|