@evergonlabs/tmi-protocol-api 0.9.0 → 0.10.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +108 -27
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +114 -27
- 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/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/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 +0 -40
- package/dist/issuance/erc20/initialize.d.ts.map +0 -1
- package/dist/issuance/erc20/initialize.js +0 -45
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts +0 -23
- package/dist/issuance/erc20/parseErc20DeployEvent.d.ts.map +0 -1
- package/dist/issuance/erc20/parseErc20DeployEvent.js +0 -79
- package/dist/issuance/erc721/deploy.d.ts +0 -38
- 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 +0 -40
- 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 +0 -38
- package/dist/issuance/erc721/initialize.d.ts.map +0 -1
- package/dist/issuance/erc721/initialize.js +0 -40
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts +0 -23
- package/dist/issuance/erc721/parseErc721DeployEvent.d.ts.map +0 -1
- package/dist/issuance/erc721/parseErc721DeployEvent.js +0 -78
- 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,4 +1,37 @@
|
|
|
1
1
|
export declare const NextFractionsApi: import("../../common/controller.js").IApi<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
2
|
+
"/": {
|
|
3
|
+
$post: {
|
|
4
|
+
input: {
|
|
5
|
+
json: {
|
|
6
|
+
chainId: unknown;
|
|
7
|
+
adminAddress: string;
|
|
8
|
+
acceptedFundingTokens: string[];
|
|
9
|
+
ownerAddress?: string | undefined;
|
|
10
|
+
cap?: {
|
|
11
|
+
maxHardCap: string;
|
|
12
|
+
} | undefined;
|
|
13
|
+
fee?: {
|
|
14
|
+
percent: number;
|
|
15
|
+
collectorAddress: string;
|
|
16
|
+
feeAdmin: string;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
output: {
|
|
21
|
+
data: `0x${string}`;
|
|
22
|
+
to: `0x${string}`;
|
|
23
|
+
details: {
|
|
24
|
+
functionName: string;
|
|
25
|
+
address: `0x${string}`;
|
|
26
|
+
abi: any[];
|
|
27
|
+
args: any[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
outputFormat: "json";
|
|
31
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}, "/deployNftFractions"> | import("hono/types").MergeSchemaPath<{
|
|
2
35
|
"/": {
|
|
3
36
|
$post: {
|
|
4
37
|
input: {
|
|
@@ -32,7 +65,33 @@ export declare const NextFractionsApi: import("../../common/controller.js").IApi
|
|
|
32
65
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
33
66
|
};
|
|
34
67
|
};
|
|
35
|
-
}, "/
|
|
68
|
+
}, "/deployNftFractionsGated">, "/platforms"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
69
|
+
"/": {
|
|
70
|
+
$post: {
|
|
71
|
+
input: {
|
|
72
|
+
json: {
|
|
73
|
+
market: string;
|
|
74
|
+
campaignId: string;
|
|
75
|
+
chainId: unknown;
|
|
76
|
+
amountToBuy: string;
|
|
77
|
+
applyDiscount: boolean;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
output: {
|
|
81
|
+
data: `0x${string}`;
|
|
82
|
+
to: `0x${string}`;
|
|
83
|
+
details: {
|
|
84
|
+
functionName: string;
|
|
85
|
+
address: `0x${string}`;
|
|
86
|
+
abi: any[];
|
|
87
|
+
args: any[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
outputFormat: "json";
|
|
91
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}, "/purchase"> | import("hono/types").MergeSchemaPath<{
|
|
36
95
|
"/": {
|
|
37
96
|
$post: {
|
|
38
97
|
input: {
|
|
@@ -85,7 +144,54 @@ export declare const NextFractionsApi: import("../../common/controller.js").IApi
|
|
|
85
144
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
86
145
|
};
|
|
87
146
|
};
|
|
88
|
-
}, "/nftFractions"
|
|
147
|
+
}, "/nftFractions"> | import("hono/types").MergeSchemaPath<{
|
|
148
|
+
"/": {
|
|
149
|
+
$get: {
|
|
150
|
+
input: {
|
|
151
|
+
query: {
|
|
152
|
+
chainId: string | string[];
|
|
153
|
+
hash: string | string[];
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
output: {
|
|
157
|
+
campaignId: string;
|
|
158
|
+
creator: `0x${string}`;
|
|
159
|
+
nftId: string;
|
|
160
|
+
fractionsCreated: string;
|
|
161
|
+
fractionsAddress: `0x${string}`;
|
|
162
|
+
vaultAddress: `0x${string}` | undefined;
|
|
163
|
+
};
|
|
164
|
+
outputFormat: "json";
|
|
165
|
+
status: 200;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}, "/getFractionsCreatedEvent">, "/sales"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
169
|
+
"/": {
|
|
170
|
+
$post: {
|
|
171
|
+
input: {
|
|
172
|
+
json: {
|
|
173
|
+
market: string;
|
|
174
|
+
campaignId: string;
|
|
175
|
+
chainId: unknown;
|
|
176
|
+
amountToBuy: string;
|
|
177
|
+
applyDiscount: boolean;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
output: {
|
|
181
|
+
data: `0x${string}`;
|
|
182
|
+
to: `0x${string}`;
|
|
183
|
+
details: {
|
|
184
|
+
functionName: string;
|
|
185
|
+
address: `0x${string}`;
|
|
186
|
+
abi: any[];
|
|
187
|
+
args: any[];
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
outputFormat: "json";
|
|
191
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
}, "/purchase"> | import("hono/types").MergeSchemaPath<{
|
|
89
195
|
"/": {
|
|
90
196
|
$post: {
|
|
91
197
|
input: {
|
|
@@ -198,31 +304,6 @@ export declare const NextFractionsApi: import("../../common/controller.js").IApi
|
|
|
198
304
|
};
|
|
199
305
|
};
|
|
200
306
|
}, "/createSale"> | import("hono/types").MergeSchemaPath<{
|
|
201
|
-
"/": {
|
|
202
|
-
$post: {
|
|
203
|
-
input: {
|
|
204
|
-
json: {
|
|
205
|
-
market: string;
|
|
206
|
-
campaignId: string;
|
|
207
|
-
chainId: unknown;
|
|
208
|
-
amountToBuy: string;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
output: {
|
|
212
|
-
data: `0x${string}`;
|
|
213
|
-
to: `0x${string}`;
|
|
214
|
-
details: {
|
|
215
|
-
functionName: string;
|
|
216
|
-
address: `0x${string}`;
|
|
217
|
-
abi: any[];
|
|
218
|
-
args: any[];
|
|
219
|
-
};
|
|
220
|
-
};
|
|
221
|
-
outputFormat: "json";
|
|
222
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
}, "/purchase"> | import("hono/types").MergeSchemaPath<{
|
|
226
307
|
"/": {
|
|
227
308
|
$post: {
|
|
228
309
|
input: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/next/fractions/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/next/fractions/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAS3B,CAAC"}
|
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
export declare const LendingController: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
2
|
+
"/": {
|
|
3
|
+
$post: {
|
|
4
|
+
input: {
|
|
5
|
+
json: {
|
|
6
|
+
market: string;
|
|
7
|
+
campaignId: string;
|
|
8
|
+
chainId: unknown;
|
|
9
|
+
amountToBuy: string;
|
|
10
|
+
applyDiscount: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
output: {
|
|
14
|
+
data: `0x${string}`;
|
|
15
|
+
to: `0x${string}`;
|
|
16
|
+
details: {
|
|
17
|
+
functionName: string;
|
|
18
|
+
address: `0x${string}`;
|
|
19
|
+
abi: any[];
|
|
20
|
+
args: any[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
outputFormat: "json";
|
|
24
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, "/purchase"> | import("hono/types").MergeSchemaPath<{
|
|
2
28
|
"/": {
|
|
3
29
|
$post: {
|
|
4
30
|
input: {
|
|
@@ -111,31 +137,6 @@ export declare const LendingController: import("../../../common/controller.js").
|
|
|
111
137
|
};
|
|
112
138
|
};
|
|
113
139
|
}, "/createSale"> | import("hono/types").MergeSchemaPath<{
|
|
114
|
-
"/": {
|
|
115
|
-
$post: {
|
|
116
|
-
input: {
|
|
117
|
-
json: {
|
|
118
|
-
market: string;
|
|
119
|
-
campaignId: string;
|
|
120
|
-
chainId: unknown;
|
|
121
|
-
amountToBuy: string;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
output: {
|
|
125
|
-
data: `0x${string}`;
|
|
126
|
-
to: `0x${string}`;
|
|
127
|
-
details: {
|
|
128
|
-
functionName: string;
|
|
129
|
-
address: `0x${string}`;
|
|
130
|
-
abi: any[];
|
|
131
|
-
args: any[];
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
outputFormat: "json";
|
|
135
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
}, "/purchase"> | import("hono/types").MergeSchemaPath<{
|
|
139
140
|
"/": {
|
|
140
141
|
$post: {
|
|
141
142
|
input: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/lending/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/lending/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAS5B,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createController } from "../../../common/controller.js";
|
|
2
|
+
import { PurchaseV0 } from "../../../fractions/sales/purchase.route.js";
|
|
2
3
|
import { BuybackV0 } from "./buyback/buyback.routes.js";
|
|
3
4
|
import { DeployLendingMarketV0 } from "./deployMarket/lending.routes.js";
|
|
4
|
-
import { DirectPurchaseV0 } from "./purchase/directPurchase.route.js";
|
|
5
5
|
import { SetCollateralPriceV0 } from "./setCollateralPrice/setCollateralPrice.routes.js";
|
|
6
6
|
import { CreateLendingSaleController } from "./createLendingSale.js";
|
|
7
7
|
export const LendingController = createController({
|
|
@@ -9,7 +9,7 @@ export const LendingController = createController({
|
|
|
9
9
|
.createApp()
|
|
10
10
|
.route("/deploy", DeployLendingMarketV0.build(factory))
|
|
11
11
|
.route("/createSale", CreateLendingSaleController.build(factory))
|
|
12
|
-
.route("/purchase",
|
|
12
|
+
.route("/purchase", PurchaseV0.build(factory))
|
|
13
13
|
.route("/setCollateralPrice", SetCollateralPriceV0.build(factory))
|
|
14
14
|
.route("/buyback", BuybackV0.build(factory)),
|
|
15
15
|
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Controller for deploying an NFT Fractions market (non-gated)
|
|
3
|
+
*/
|
|
4
|
+
export declare const DeployNftFractionsMarketDefaultV0: import("../../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../../common/context.js").AppContext, {
|
|
5
|
+
"/": {
|
|
6
|
+
$post: {
|
|
7
|
+
input: {
|
|
8
|
+
json: {
|
|
9
|
+
chainId: unknown;
|
|
10
|
+
adminAddress: string;
|
|
11
|
+
acceptedFundingTokens: string[];
|
|
12
|
+
ownerAddress?: string | undefined;
|
|
13
|
+
cap?: {
|
|
14
|
+
maxHardCap: string;
|
|
15
|
+
} | undefined;
|
|
16
|
+
fee?: {
|
|
17
|
+
percent: number;
|
|
18
|
+
collectorAddress: string;
|
|
19
|
+
feeAdmin: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
output: {
|
|
24
|
+
data: `0x${string}`;
|
|
25
|
+
to: `0x${string}`;
|
|
26
|
+
details: {
|
|
27
|
+
functionName: string;
|
|
28
|
+
address: `0x${string}`;
|
|
29
|
+
abi: any[];
|
|
30
|
+
args: any[];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
outputFormat: "json";
|
|
34
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}, "/", "/">>;
|
|
38
|
+
//# sourceMappingURL=deployNftFractionsMarket.routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployNftFractionsMarket.routes.d.ts","sourceRoot":"","sources":["../../../../../src/next/fractions/platforms/default/deployNftFractionsMarket.routes.ts"],"names":[],"mappings":"AAyBA;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAgB5C,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { describeRoute } from "hono-openapi";
|
|
2
|
+
import { resolver, validator } from "hono-openapi";
|
|
3
|
+
import { createNftFractionsPlatformNoNid } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
4
|
+
import { createController } from "../../../../common/controller.js";
|
|
5
|
+
import { toTransaction, TransactionSchema } from "../../../../common/index.js";
|
|
6
|
+
import { DeployNftFractionsMarketDefaultRequestSchema } from "./deployNftFractionsMarket.schema.js";
|
|
7
|
+
const route = describeRoute({
|
|
8
|
+
summary: "Deploy an NFT Fractions market",
|
|
9
|
+
description: "Returns transaction data for deploying an NFT Fractions market (non-gated). " +
|
|
10
|
+
"This market type supports wrapping ERC-721 tokens and fractionalizing them into ERC-20 compatible tokens.",
|
|
11
|
+
tags: ["NFT Fractions"],
|
|
12
|
+
responses: {
|
|
13
|
+
200: {
|
|
14
|
+
description: "Returns transaction data for deploying an NFT Fractions market",
|
|
15
|
+
content: {
|
|
16
|
+
"application/json": {
|
|
17
|
+
schema: resolver(TransactionSchema),
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Controller for deploying an NFT Fractions market (non-gated)
|
|
25
|
+
*/
|
|
26
|
+
export const DeployNftFractionsMarketDefaultV0 = createController({
|
|
27
|
+
build: (factory) => factory.createApp().post("/", route, validator("json", DeployNftFractionsMarketDefaultRequestSchema), async (c) => {
|
|
28
|
+
const { chainId, adminAddress, ownerAddress, cap, fee, acceptedFundingTokens } = c.req.valid("json");
|
|
29
|
+
const tx = createNftFractionsPlatformNoNid({
|
|
30
|
+
chainId: chainId,
|
|
31
|
+
adminAddress: adminAddress,
|
|
32
|
+
ownerAddress: ownerAddress ?? adminAddress,
|
|
33
|
+
fee: fee ?? undefined,
|
|
34
|
+
maxHardCap: cap ? cap.maxHardCap : null,
|
|
35
|
+
acceptedFundingTokens: acceptedFundingTokens,
|
|
36
|
+
});
|
|
37
|
+
return c.json(toTransaction(tx));
|
|
38
|
+
}),
|
|
39
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Cap configuration schema for market limits
|
|
4
|
+
*/
|
|
5
|
+
export declare const CapConfigSchema: z.ZodObject<{
|
|
6
|
+
maxHardCap: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
/**
|
|
9
|
+
* Request schema for deploying an NFT Fractions market (non-gated)
|
|
10
|
+
*/
|
|
11
|
+
export declare const DeployNftFractionsMarketDefaultRequestSchema: z.ZodObject<{
|
|
12
|
+
chainId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<[z.ZodLiteral<11155111 | 31337 | 72080>, z.ZodLiteral<11155111 | 31337 | 72080>, ...z.ZodLiteral<11155111 | 31337 | 72080>[]]>>;
|
|
13
|
+
adminAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
14
|
+
ownerAddress: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
|
|
15
|
+
cap: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
maxHardCap: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
percent: z.ZodNumber;
|
|
20
|
+
collectorAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
21
|
+
feeAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
acceptedFundingTokens: z.ZodArray<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
//# sourceMappingURL=deployNftFractionsMarket.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployNftFractionsMarket.schema.d.ts","sourceRoot":"","sources":["../../../../../src/next/fractions/platforms/default/deployNftFractionsMarket.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,eAAO,MAAM,eAAe;;iBAE1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;iBAWC,CAAC"}
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { AddressSchema, NextFractionsChainId
|
|
2
|
+
import { AddressSchema, NextFractionsChainId } from "../../../../common/index.js";
|
|
3
|
+
import { Int256BigInt } from "../../../../common/int256.js";
|
|
4
|
+
import { FeeConfigSchema } from "../../../../fractions/platforms/deployMarket.schema.js";
|
|
3
5
|
/**
|
|
4
6
|
* Cap configuration schema for market limits
|
|
5
7
|
*/
|
|
6
8
|
export const CapConfigSchema = z.object({
|
|
7
|
-
maxHardCap: z.
|
|
9
|
+
maxHardCap: Int256BigInt(z.bigint().min(BigInt(1))).describe("Maximum hard cap for the market"),
|
|
8
10
|
});
|
|
9
11
|
/**
|
|
10
|
-
*
|
|
12
|
+
* Request schema for deploying an NFT Fractions market (non-gated)
|
|
11
13
|
*/
|
|
12
|
-
export const
|
|
13
|
-
percent: PercentageSchema.describe("Fee percentage in basis points"),
|
|
14
|
-
});
|
|
15
|
-
/**
|
|
16
|
-
* Request schema for deploying an NFT Fractions market
|
|
17
|
-
*/
|
|
18
|
-
export const DeployNftFractionsMarketRequestSchema = z
|
|
14
|
+
export const DeployNftFractionsMarketDefaultRequestSchema = z
|
|
19
15
|
.object({
|
|
20
16
|
chainId: NextFractionsChainId.describe("Chain ID where the market will be deployed"),
|
|
21
17
|
adminAddress: AddressSchema.describe("Address of the market administrator"),
|
|
22
18
|
ownerAddress: AddressSchema.optional().describe("Address of the market owner. Defaults to adminAddress if not provided"),
|
|
23
|
-
compilotSignerAddress: AddressSchema.optional().describe("ComPilot signer address. Uses platform default if not provided"),
|
|
24
19
|
cap: CapConfigSchema.optional().describe("Optional cap configuration"),
|
|
25
20
|
fee: FeeConfigSchema.optional().describe("Optional fee configuration"),
|
|
26
21
|
acceptedFundingTokens: z.array(AddressSchema).describe("Accepted funding token addresses"),
|
|
27
22
|
})
|
|
28
|
-
.openapi(
|
|
23
|
+
.openapi("DeployNftFractionsMarketDefaultRequestSchema");
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Controller for deploying a gated NFT Fractions market (with ComPilot gating)
|
|
3
|
+
*/
|
|
4
|
+
export declare const DeployNftFractionsMarketGatedV0: import("../../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../../common/context.js").AppContext, {
|
|
5
|
+
"/": {
|
|
6
|
+
$post: {
|
|
7
|
+
input: {
|
|
8
|
+
json: {
|
|
9
|
+
chainId: unknown;
|
|
10
|
+
adminAddress: string;
|
|
11
|
+
acceptedFundingTokens: string[];
|
|
12
|
+
ownerAddress?: string | undefined;
|
|
13
|
+
compilotSignerAddress?: string | undefined;
|
|
14
|
+
cap?: {
|
|
15
|
+
maxHardCap: string;
|
|
16
|
+
} | undefined;
|
|
17
|
+
fee?: {
|
|
18
|
+
percent: number;
|
|
19
|
+
collectorAddress: string;
|
|
20
|
+
feeAdmin: string;
|
|
21
|
+
} | undefined;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
output: {
|
|
25
|
+
data: `0x${string}`;
|
|
26
|
+
to: `0x${string}`;
|
|
27
|
+
details: {
|
|
28
|
+
functionName: string;
|
|
29
|
+
address: `0x${string}`;
|
|
30
|
+
abi: any[];
|
|
31
|
+
args: any[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
outputFormat: "json";
|
|
35
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}, "/", "/">>;
|
|
39
|
+
//# sourceMappingURL=deployNftFractionsMarket.routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployNftFractionsMarket.routes.d.ts","sourceRoot":"","sources":["../../../../../src/next/fractions/platforms/gated/deployNftFractionsMarket.routes.ts"],"names":[],"mappings":"AAyBA;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAkB1C,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { describeRoute } from "hono-openapi";
|
|
2
2
|
import { resolver, validator } from "hono-openapi";
|
|
3
|
-
import { zeroAddress } from "viem";
|
|
4
|
-
import { getEnv, getEnvNumber } from "@evergonlabs/internal/node/getEnv";
|
|
5
3
|
import { createNftFractionsPlatform } from "@evergonlabs/tmi-protocol-fractions-sdk/next";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { createController } from "../../../../common/controller.js";
|
|
5
|
+
import { DEFAULT_COMPILOT_SIGNER, toTransaction, TransactionSchema } from "../../../../common/index.js";
|
|
6
|
+
import { DeployNftFractionsMarketGatedRequestSchema } from "./deployNftFractionsMarket.schema.js";
|
|
8
7
|
const route = describeRoute({
|
|
9
|
-
summary: "Deploy
|
|
8
|
+
summary: "Deploy a gated NFT Fractions market",
|
|
10
9
|
description: "Returns transaction data for deploying an NFT Fractions market with ComPilot gating. " +
|
|
11
10
|
"This market type supports wrapping ERC-721 tokens and fractionalizing them into ERC-20 compatible tokens.",
|
|
12
11
|
tags: ["NFT Fractions"],
|
|
13
12
|
responses: {
|
|
14
13
|
200: {
|
|
15
|
-
description: "Returns transaction data for deploying
|
|
14
|
+
description: "Returns transaction data for deploying a gated NFT Fractions market",
|
|
16
15
|
content: {
|
|
17
16
|
"application/json": {
|
|
18
17
|
schema: resolver(TransactionSchema),
|
|
@@ -22,31 +21,20 @@ const route = describeRoute({
|
|
|
22
21
|
},
|
|
23
22
|
});
|
|
24
23
|
/**
|
|
25
|
-
*
|
|
24
|
+
* Controller for deploying a gated NFT Fractions market (with ComPilot gating)
|
|
26
25
|
*/
|
|
27
|
-
export
|
|
28
|
-
|
|
26
|
+
export const DeployNftFractionsMarketGatedV0 = createController({
|
|
27
|
+
build: (factory) => factory.createApp().post("/", route, validator("json", DeployNftFractionsMarketGatedRequestSchema), async (c) => {
|
|
29
28
|
const { chainId, adminAddress, ownerAddress, compilotSignerAddress, cap, fee, acceptedFundingTokens } = c.req.valid("json");
|
|
30
|
-
const platformFee = getFeeConfig();
|
|
31
29
|
const tx = createNftFractionsPlatform({
|
|
32
30
|
chainId: chainId,
|
|
33
31
|
adminAddress: adminAddress,
|
|
34
32
|
ownerAddress: ownerAddress ?? adminAddress,
|
|
35
33
|
compilotSignerAddress: compilotSignerAddress ?? DEFAULT_COMPILOT_SIGNER,
|
|
36
|
-
fee:
|
|
34
|
+
fee: fee ?? null,
|
|
37
35
|
maxHardCap: cap ? cap.maxHardCap : null,
|
|
38
36
|
acceptedFundingTokens: acceptedFundingTokens,
|
|
39
37
|
});
|
|
40
38
|
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
|
-
}
|
|
39
|
+
}),
|
|
40
|
+
});
|
|
@@ -6,15 +6,9 @@ export declare const CapConfigSchema: z.ZodObject<{
|
|
|
6
6
|
maxHardCap: z.ZodPipe<z.core.$ZodBranded<z.ZodString, "Int256", "out">, z.ZodTransform<bigint, string & z.core.$brand<"Int256">>>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Request schema for deploying a gated NFT Fractions market (with ComPilot gating)
|
|
10
10
|
*/
|
|
11
|
-
export declare const
|
|
12
|
-
percent: z.ZodNumber;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
/**
|
|
15
|
-
* Request schema for deploying an NFT Fractions market
|
|
16
|
-
*/
|
|
17
|
-
export declare const DeployNftFractionsMarketRequestSchema: z.ZodObject<{
|
|
11
|
+
export declare const DeployNftFractionsMarketGatedRequestSchema: z.ZodObject<{
|
|
18
12
|
chainId: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodUnion<[z.ZodLiteral<11155111 | 31337 | 72080>, z.ZodLiteral<11155111 | 31337 | 72080>, ...z.ZodLiteral<11155111 | 31337 | 72080>[]]>>;
|
|
19
13
|
adminAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
20
14
|
ownerAddress: z.ZodOptional<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
|
|
@@ -24,6 +18,8 @@ export declare const DeployNftFractionsMarketRequestSchema: z.ZodObject<{
|
|
|
24
18
|
}, z.core.$strip>>;
|
|
25
19
|
fee: z.ZodOptional<z.ZodObject<{
|
|
26
20
|
percent: z.ZodNumber;
|
|
21
|
+
collectorAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
22
|
+
feeAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
27
23
|
}, z.core.$strip>>;
|
|
28
24
|
acceptedFundingTokens: z.ZodArray<z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>>;
|
|
29
25
|
}, z.core.$strip>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployNftFractionsMarket.schema.d.ts","sourceRoot":"","sources":["../../../../../src/next/fractions/platforms/gated/deployNftFractionsMarket.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,eAAO,MAAM,eAAe;;iBAE1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;iBAcC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { AddressSchema, NextFractionsChainId
|
|
3
|
-
import { Int256BigInt } from "
|
|
2
|
+
import { AddressSchema, NextFractionsChainId } from "../../../../common/index.js";
|
|
3
|
+
import { Int256BigInt } from "../../../../common/int256.js";
|
|
4
|
+
import { FeeConfigSchema } from "../../../../fractions/platforms/deployMarket.schema.js";
|
|
4
5
|
/**
|
|
5
6
|
* Cap configuration schema for market limits
|
|
6
7
|
*/
|
|
@@ -8,15 +9,9 @@ export const CapConfigSchema = z.object({
|
|
|
8
9
|
maxHardCap: Int256BigInt(z.bigint().min(BigInt(1))).describe("Maximum hard cap for the market"),
|
|
9
10
|
});
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Request schema for deploying a gated NFT Fractions market (with ComPilot gating)
|
|
12
13
|
*/
|
|
13
|
-
export const
|
|
14
|
-
percent: PercentageSchema.describe("Fee percentage in basis points"),
|
|
15
|
-
});
|
|
16
|
-
/**
|
|
17
|
-
* Request schema for deploying an NFT Fractions market
|
|
18
|
-
*/
|
|
19
|
-
export const DeployNftFractionsMarketRequestSchema = z
|
|
14
|
+
export const DeployNftFractionsMarketGatedRequestSchema = z
|
|
20
15
|
.object({
|
|
21
16
|
chainId: NextFractionsChainId.describe("Chain ID where the market will be deployed"),
|
|
22
17
|
adminAddress: AddressSchema.describe("Address of the market administrator"),
|
|
@@ -26,4 +21,4 @@ export const DeployNftFractionsMarketRequestSchema = z
|
|
|
26
21
|
fee: FeeConfigSchema.optional().describe("Optional fee configuration"),
|
|
27
22
|
acceptedFundingTokens: z.array(AddressSchema).describe("Accepted funding token addresses"),
|
|
28
23
|
})
|
|
29
|
-
.openapi("
|
|
24
|
+
.openapi("DeployNftFractionsMarketGatedRequestSchema");
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
export declare const PlatformsController: import("../../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../../common/context.js").AppContext, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
2
|
+
"/": {
|
|
3
|
+
$post: {
|
|
4
|
+
input: {
|
|
5
|
+
json: {
|
|
6
|
+
chainId: unknown;
|
|
7
|
+
adminAddress: string;
|
|
8
|
+
acceptedFundingTokens: string[];
|
|
9
|
+
ownerAddress?: string | undefined;
|
|
10
|
+
cap?: {
|
|
11
|
+
maxHardCap: string;
|
|
12
|
+
} | undefined;
|
|
13
|
+
fee?: {
|
|
14
|
+
percent: number;
|
|
15
|
+
collectorAddress: string;
|
|
16
|
+
feeAdmin: string;
|
|
17
|
+
} | undefined;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
output: {
|
|
21
|
+
data: `0x${string}`;
|
|
22
|
+
to: `0x${string}`;
|
|
23
|
+
details: {
|
|
24
|
+
functionName: string;
|
|
25
|
+
address: `0x${string}`;
|
|
26
|
+
abi: any[];
|
|
27
|
+
args: any[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
outputFormat: "json";
|
|
31
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}, "/deployNftFractions"> | import("hono/types").MergeSchemaPath<{
|
|
2
35
|
"/": {
|
|
3
36
|
$post: {
|
|
4
37
|
input: {
|
|
@@ -32,5 +65,5 @@ export declare const PlatformsController: import("../../../common/controller.js"
|
|
|
32
65
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
33
66
|
};
|
|
34
67
|
};
|
|
35
|
-
}, "/
|
|
68
|
+
}, "/deployNftFractionsGated">, "/", "/">>;
|
|
36
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/platforms/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/next/fractions/platforms/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0CAM9B,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { createController } from "../../../common/controller.js";
|
|
2
|
-
import {
|
|
2
|
+
import { DeployNftFractionsMarketDefaultV0 } from "./default/deployNftFractionsMarket.routes.js";
|
|
3
|
+
import { DeployNftFractionsMarketGatedV0 } from "./gated/deployNftFractionsMarket.routes.js";
|
|
3
4
|
export const PlatformsController = createController({
|
|
4
|
-
build: (factory) => factory
|
|
5
|
+
build: (factory) => factory
|
|
6
|
+
.createApp()
|
|
7
|
+
.route("/deployNftFractions", DeployNftFractionsMarketDefaultV0.build(factory))
|
|
8
|
+
.route("/deployNftFractionsGated", DeployNftFractionsMarketGatedV0.build(factory)),
|
|
5
9
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AddressSchema, FractionsChainId } from "../../../common/index.js";
|
|
3
3
|
import { Int256BigInt } from "../../../common/int256.js";
|
|
4
|
-
import { ISODate } from "../../../common/models/date.js";
|
|
4
|
+
import { ISODate } from "../../../common/models/base/date.js";
|
|
5
5
|
/**
|
|
6
6
|
* Time boundary schema for sale period
|
|
7
7
|
*/
|