@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,51 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi";
|
|
3
|
-
import { encodeFunctionData } from "viem";
|
|
4
|
-
import z from "zod";
|
|
5
|
-
import { managedErc721Abi } from "@evergonlabs/tmi-protocol-contracts/managedErc721";
|
|
6
|
-
import { AddressSchema, HexStringSchema } from "../../common/index.js";
|
|
7
|
-
export const Erc721InitDataResponse = z
|
|
8
|
-
.object({
|
|
9
|
-
data: HexStringSchema.openapi("Init function call data in hex format"),
|
|
10
|
-
})
|
|
11
|
-
.openapi("Erc721InitDataResponse");
|
|
12
|
-
export const Erc721InitDataParams = z
|
|
13
|
-
.object({
|
|
14
|
-
tokenName: z.string().nonempty().openapi({ description: "Name of the NFT collection" }),
|
|
15
|
-
tokenSymbol: z.string().nonempty().openapi({ description: "Symbol of the NFT collection" }),
|
|
16
|
-
admin: AddressSchema.openapi({
|
|
17
|
-
description: "Address to receive DEFAULT_ADMIN_ROLE, MINTER_ROLE, and URI_SETTER_ROLE",
|
|
18
|
-
}),
|
|
19
|
-
})
|
|
20
|
-
.openapi("ERC721InitDataParams");
|
|
21
|
-
const getErc721InitDataRoute = describeRoute({
|
|
22
|
-
summary: "Get ERC721 Init Data",
|
|
23
|
-
description: `Returns initialize function call data in hex format for ManagedERC721Upgradeable.
|
|
24
|
-
|
|
25
|
-
This is useful for providing initData when deploying a TransparentUpgradeableProxy.
|
|
26
|
-
The admin address receives DEFAULT_ADMIN_ROLE, MINTER_ROLE, and URI_SETTER_ROLE.`,
|
|
27
|
-
tags: ["Issuance"],
|
|
28
|
-
responses: {
|
|
29
|
-
200: {
|
|
30
|
-
description: "Init function call data in hex format",
|
|
31
|
-
content: {
|
|
32
|
-
"application/json": {
|
|
33
|
-
schema: resolver(Erc721InitDataResponse),
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
export function createGetErc721InitData(factory) {
|
|
40
|
-
return factory.createHandlers(getErc721InitDataRoute, validator("json", Erc721InitDataParams), async (c) => {
|
|
41
|
-
const data = c.req.valid("json");
|
|
42
|
-
const initData = encodeFunctionData({
|
|
43
|
-
abi: managedErc721Abi,
|
|
44
|
-
functionName: "initialize",
|
|
45
|
-
args: [data.tokenName, data.tokenSymbol, data.admin],
|
|
46
|
-
});
|
|
47
|
-
return c.json({
|
|
48
|
-
data: initData,
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const InitializeErc721RequestSchema: z.ZodObject<{
|
|
3
|
-
tokenAddress: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
symbol: z.ZodString;
|
|
6
|
-
baseURI: z.ZodString;
|
|
7
|
-
defaultAdmin: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
8
|
-
minter: z.ZodPipe<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>, z.ZodTransform<`0x${string}`, `0x${string}`>>;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export declare const InitializeErc721: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
11
|
-
"/": {
|
|
12
|
-
$post: {
|
|
13
|
-
input: {
|
|
14
|
-
json: {
|
|
15
|
-
tokenAddress: string;
|
|
16
|
-
name: string;
|
|
17
|
-
symbol: string;
|
|
18
|
-
baseURI: string;
|
|
19
|
-
defaultAdmin: string;
|
|
20
|
-
minter: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
output: {
|
|
24
|
-
data: `0x${string}`;
|
|
25
|
-
to: `0x${string}`;
|
|
26
|
-
details: {
|
|
27
|
-
functionName: string;
|
|
28
|
-
address: `0x${string}`;
|
|
29
|
-
abi: any[];
|
|
30
|
-
args: any[];
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
outputFormat: "json";
|
|
34
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
}, "/">>;
|
|
38
|
-
//# sourceMappingURL=initialize.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc721/initialize.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,6BAA6B;;;;;;;iBAOxC,CAAC;AAkBH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;QAc3B,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
import { abis } from "@evergonlabs/tmi-factories-sdk";
|
|
5
|
-
import { createController } from "../../common/controller.js";
|
|
6
|
-
import { AddressSchema, toTransaction, TransactionSchema } from "../../common/index.js";
|
|
7
|
-
export const InitializeErc721RequestSchema = z.object({
|
|
8
|
-
tokenAddress: AddressSchema,
|
|
9
|
-
name: z.string().nonempty().openapi({ description: "Name of the NFT collection" }),
|
|
10
|
-
symbol: z.string().nonempty().openapi({ description: "Symbol of the NFT collection" }),
|
|
11
|
-
baseURI: z.string().openapi({ description: "Base URI for token metadata" }),
|
|
12
|
-
defaultAdmin: AddressSchema.openapi({ description: "Address to receive DEFAULT_ADMIN_ROLE" }),
|
|
13
|
-
minter: AddressSchema.openapi({ description: "Address to receive MINTER_ROLE" }),
|
|
14
|
-
});
|
|
15
|
-
const initializeRoute = describeRoute({
|
|
16
|
-
summary: "Initialize ERC721",
|
|
17
|
-
description: "Returns transaction data for initializing an ERC721 token proxy contract",
|
|
18
|
-
tags: ["Issuance"],
|
|
19
|
-
responses: {
|
|
20
|
-
200: {
|
|
21
|
-
description: "Returns transaction data for initializing an ERC721 token",
|
|
22
|
-
content: {
|
|
23
|
-
"application/json": {
|
|
24
|
-
schema: resolver(TransactionSchema),
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
export const InitializeErc721 = createController({
|
|
31
|
-
build: (factory) => factory.createApp().post("/", initializeRoute, validator("json", InitializeErc721RequestSchema), async (c) => {
|
|
32
|
-
const { tokenAddress, name, symbol, baseURI, defaultAdmin, minter } = c.req.valid("json");
|
|
33
|
-
return c.json(toTransaction({
|
|
34
|
-
address: tokenAddress,
|
|
35
|
-
abi: abis.erc721PausableRecoverableUpgradeableAbi,
|
|
36
|
-
functionName: "initialize",
|
|
37
|
-
args: [name, symbol, baseURI, defaultAdmin, minter],
|
|
38
|
-
}));
|
|
39
|
-
}),
|
|
40
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const ParseErc721DeployEvent: import("../../common/controller.js").IController<import("hono/hono-base").HonoBase<import("../../common/context.js").AppContext, {
|
|
2
|
-
"/": {
|
|
3
|
-
$get: {
|
|
4
|
-
input: {
|
|
5
|
-
query: {
|
|
6
|
-
chainId: string | string[];
|
|
7
|
-
hash: string | string[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
output: {
|
|
11
|
-
proxy: `0x${string}`;
|
|
12
|
-
admin: `0x${string}`;
|
|
13
|
-
minter: `0x${string}`;
|
|
14
|
-
name: string;
|
|
15
|
-
symbol: string;
|
|
16
|
-
baseURI: string;
|
|
17
|
-
};
|
|
18
|
-
outputFormat: "json";
|
|
19
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}, "/">>;
|
|
23
|
-
//# sourceMappingURL=parseErc721DeployEvent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parseErc721DeployEvent.d.ts","sourceRoot":"","sources":["../../../src/issuance/erc721/parseErc721DeployEvent.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;QAoDjC,CAAC"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { describeRoute } from "hono-openapi";
|
|
2
|
-
import { resolver, validator } from "hono-openapi";
|
|
3
|
-
import { parseEventLogs } from "viem";
|
|
4
|
-
import { waitForTransactionReceipt } from "viem/actions";
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
import { abis } from "@evergonlabs/tmi-factories-sdk";
|
|
7
|
-
import { getPublicClient } from "../../common/blockchain.js";
|
|
8
|
-
import { createController } from "../../common/controller.js";
|
|
9
|
-
import { HttpError } from "../../common/http-error.js";
|
|
10
|
-
import { AddressSchema, HashSchema } from "../../common/index.js";
|
|
11
|
-
import { FactoryChainIdQuery } from "../common/factories.js";
|
|
12
|
-
const QuerySchema = z.object({
|
|
13
|
-
chainId: FactoryChainIdQuery.openapi({
|
|
14
|
-
param: {
|
|
15
|
-
name: "chainId",
|
|
16
|
-
in: "query",
|
|
17
|
-
},
|
|
18
|
-
}),
|
|
19
|
-
hash: HashSchema.openapi({
|
|
20
|
-
param: {
|
|
21
|
-
name: "hash",
|
|
22
|
-
in: "query",
|
|
23
|
-
},
|
|
24
|
-
}),
|
|
25
|
-
});
|
|
26
|
-
export const ParseErc721DeployEvent = createController({
|
|
27
|
-
build: (factory) => factory.createApp().get("/", describeRoute({
|
|
28
|
-
summary: "Get ERC721 TokenProxyConfigured Event",
|
|
29
|
-
description: `Gets the transaction by hash and parses emitted logs.\n\nProvided transaction must be a transaction emitted by the ERC721 factory \`deployAndInitializeProxy\` action`,
|
|
30
|
-
tags: ["Issuance"],
|
|
31
|
-
responses: {
|
|
32
|
-
200: {
|
|
33
|
-
description: "Returns parsed event log",
|
|
34
|
-
content: {
|
|
35
|
-
"application/json": {
|
|
36
|
-
schema: resolver(z.object({
|
|
37
|
-
proxy: AddressSchema,
|
|
38
|
-
admin: AddressSchema,
|
|
39
|
-
minter: AddressSchema,
|
|
40
|
-
name: z.string(),
|
|
41
|
-
symbol: z.string(),
|
|
42
|
-
baseURI: z.string(),
|
|
43
|
-
})),
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
}), validator("query", QuerySchema), async (c) => {
|
|
49
|
-
const params = c.req.valid("query");
|
|
50
|
-
const receipt = await waitForTransactionReceipt(getPublicClient(params.chainId, c.env.config), {
|
|
51
|
-
hash: params.hash,
|
|
52
|
-
});
|
|
53
|
-
const [event] = parseEventLogs({
|
|
54
|
-
abi: abis.erc721GatedPausableRecoverableFactoryAbi,
|
|
55
|
-
eventName: "TokenProxyConfigured",
|
|
56
|
-
logs: receipt.logs,
|
|
57
|
-
});
|
|
58
|
-
if (!event) {
|
|
59
|
-
throw new UnableParseErc721DeployEvent();
|
|
60
|
-
}
|
|
61
|
-
return c.json({
|
|
62
|
-
proxy: event.args.proxy,
|
|
63
|
-
admin: event.args.admin,
|
|
64
|
-
minter: event.args.minter,
|
|
65
|
-
name: event.args.name,
|
|
66
|
-
symbol: event.args.symbol,
|
|
67
|
-
baseURI: event.args.baseURI,
|
|
68
|
-
});
|
|
69
|
-
}),
|
|
70
|
-
});
|
|
71
|
-
class UnableParseErc721DeployEvent extends HttpError {
|
|
72
|
-
constructor() {
|
|
73
|
-
super(500, {
|
|
74
|
-
message: `Can't parse TokenProxyConfigured event. Make sure you're passing a transaction generated by the ERC721 factory \`deployAndInitializeProxy\` action`,
|
|
75
|
-
name: "UnableParseErc721DeployEvent",
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { Env } from "hono";
|
|
3
|
-
import { Factory } from "hono/factory";
|
|
4
|
-
export declare const Erc20InitDataResponse: z.ZodObject<{
|
|
5
|
-
data: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
data: `0x${string}`;
|
|
8
|
-
}, {
|
|
9
|
-
data: `0x${string}`;
|
|
10
|
-
}>;
|
|
11
|
-
export declare const Erc20InitDataParams: z.ZodObject<{
|
|
12
|
-
tokenName: z.ZodString;
|
|
13
|
-
tokenSymbol: z.ZodString;
|
|
14
|
-
cap: z.ZodPipeline<z.ZodString, z.ZodBigInt>;
|
|
15
|
-
defaultAdmin: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
16
|
-
minter: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
cap: bigint;
|
|
19
|
-
tokenName: string;
|
|
20
|
-
tokenSymbol: string;
|
|
21
|
-
defaultAdmin: `0x${string}`;
|
|
22
|
-
minter: `0x${string}`;
|
|
23
|
-
}, {
|
|
24
|
-
cap: string;
|
|
25
|
-
tokenName: string;
|
|
26
|
-
tokenSymbol: string;
|
|
27
|
-
defaultAdmin: `0x${string}`;
|
|
28
|
-
minter: `0x${string}`;
|
|
29
|
-
}>;
|
|
30
|
-
export declare function createGetErc20InitData<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
31
|
-
data: `0x${string}`;
|
|
32
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
33
|
-
in: {
|
|
34
|
-
json: {
|
|
35
|
-
cap: string;
|
|
36
|
-
tokenName: string;
|
|
37
|
-
tokenSymbol: string;
|
|
38
|
-
defaultAdmin: `0x${string}`;
|
|
39
|
-
minter: `0x${string}`;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
out: {
|
|
43
|
-
json: {
|
|
44
|
-
cap: bigint;
|
|
45
|
-
tokenName: string;
|
|
46
|
-
tokenSymbol: string;
|
|
47
|
-
defaultAdmin: `0x${string}`;
|
|
48
|
-
minter: `0x${string}`;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
52
|
-
data: `0x${string}`;
|
|
53
|
-
}, 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, {
|
|
54
|
-
in: {
|
|
55
|
-
json: {
|
|
56
|
-
cap: string;
|
|
57
|
-
tokenName: string;
|
|
58
|
-
tokenSymbol: string;
|
|
59
|
-
defaultAdmin: `0x${string}`;
|
|
60
|
-
minter: `0x${string}`;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
out: {
|
|
64
|
-
json: {
|
|
65
|
-
cap: bigint;
|
|
66
|
-
tokenName: string;
|
|
67
|
-
tokenSymbol: string;
|
|
68
|
-
defaultAdmin: `0x${string}`;
|
|
69
|
-
minter: `0x${string}`;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
73
|
-
data: `0x${string}`;
|
|
74
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
75
|
-
export declare const Erc721InitDataResponse: z.ZodObject<{
|
|
76
|
-
data: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
77
|
-
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
data: `0x${string}`;
|
|
79
|
-
}, {
|
|
80
|
-
data: `0x${string}`;
|
|
81
|
-
}>;
|
|
82
|
-
export declare const Erc721InitDataParams: z.ZodObject<{
|
|
83
|
-
tokenName: z.ZodString;
|
|
84
|
-
tokenSymbol: z.ZodString;
|
|
85
|
-
admin: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
86
|
-
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
admin: `0x${string}`;
|
|
88
|
-
tokenName: string;
|
|
89
|
-
tokenSymbol: string;
|
|
90
|
-
}, {
|
|
91
|
-
admin: `0x${string}`;
|
|
92
|
-
tokenName: string;
|
|
93
|
-
tokenSymbol: string;
|
|
94
|
-
}>;
|
|
95
|
-
export declare function createGetErc721InitData<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
96
|
-
data: `0x${string}`;
|
|
97
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
98
|
-
in: {
|
|
99
|
-
json: {
|
|
100
|
-
admin: `0x${string}`;
|
|
101
|
-
tokenName: string;
|
|
102
|
-
tokenSymbol: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
out: {
|
|
106
|
-
json: {
|
|
107
|
-
admin: `0x${string}`;
|
|
108
|
-
tokenName: string;
|
|
109
|
-
tokenSymbol: string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
113
|
-
data: `0x${string}`;
|
|
114
|
-
}, 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, {
|
|
115
|
-
in: {
|
|
116
|
-
json: {
|
|
117
|
-
admin: `0x${string}`;
|
|
118
|
-
tokenName: string;
|
|
119
|
-
tokenSymbol: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
out: {
|
|
123
|
-
json: {
|
|
124
|
-
admin: `0x${string}`;
|
|
125
|
-
tokenName: string;
|
|
126
|
-
tokenSymbol: string;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
130
|
-
data: `0x${string}`;
|
|
131
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
132
|
-
//# sourceMappingURL=getInitData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getInitData.d.ts","sourceRoot":"","sources":["../../src/issuance/getInitData.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAQvC,eAAO,MAAM,qBAAqB;;;;;;EAM9B,CAAC;AAEL,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAU5B,CAAC;AAkBL,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAaxE;AAID,eAAO,MAAM,sBAAsB;;;;;;EAM/B,CAAC;AAEL,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAU7B,CAAC;AAqBL,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAazE"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import z from "zod";
|
|
2
|
-
import { describeRoute } from "hono-openapi";
|
|
3
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
4
|
-
import { encodeFunctionData } from "viem";
|
|
5
|
-
import { erc20GatedAbi } from "@evergonlabs/tmi-protocol-contracts/erc20Gated";
|
|
6
|
-
import { managedErc721Abi } from "@evergonlabs/tmi-protocol-contracts/managedErc721";
|
|
7
|
-
import { AddressSchema, HexStringSchema } from "../common/index.js";
|
|
8
|
-
import { GATING_SIGNER_ADDRESS } from "./common.js";
|
|
9
|
-
export const Erc20InitDataResponse = z
|
|
10
|
-
.object({
|
|
11
|
-
data: HexStringSchema.openapi("Init function call data in hex format"),
|
|
12
|
-
})
|
|
13
|
-
.openapi({
|
|
14
|
-
ref: "Erc20InitDataResponse",
|
|
15
|
-
});
|
|
16
|
-
export const Erc20InitDataParams = z
|
|
17
|
-
.object({
|
|
18
|
-
tokenName: z.string().nonempty(),
|
|
19
|
-
tokenSymbol: z.string().nonempty(),
|
|
20
|
-
cap: z.string().pipe(z.coerce.bigint().nonnegative()).openapi("Max. token supply"),
|
|
21
|
-
defaultAdmin: AddressSchema,
|
|
22
|
-
minter: AddressSchema,
|
|
23
|
-
})
|
|
24
|
-
.openapi({
|
|
25
|
-
ref: "ERC20InitDataParams",
|
|
26
|
-
});
|
|
27
|
-
const getErc20InitDataRoute = describeRoute({
|
|
28
|
-
summary: "Get ERC20 Init Data",
|
|
29
|
-
description: `Returns init function call data in hex format. This is useful for using as initData in TransparentUpgradeableProxy`,
|
|
30
|
-
tags: ["Issuance"],
|
|
31
|
-
responses: {
|
|
32
|
-
200: {
|
|
33
|
-
description: "Init function call data in hex format",
|
|
34
|
-
content: {
|
|
35
|
-
"application/json": {
|
|
36
|
-
schema: resolver(Erc20InitDataResponse),
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
export function createGetErc20InitData(factory) {
|
|
43
|
-
return factory.createHandlers(getErc20InitDataRoute, validator("json", Erc20InitDataParams), async (c) => {
|
|
44
|
-
const data = c.req.valid("json");
|
|
45
|
-
const initData = encodeFunctionData({
|
|
46
|
-
abi: erc20GatedAbi,
|
|
47
|
-
functionName: "init",
|
|
48
|
-
args: [data.tokenName, data.tokenSymbol, data.cap, data.defaultAdmin, data.minter, GATING_SIGNER_ADDRESS],
|
|
49
|
-
});
|
|
50
|
-
return c.json({
|
|
51
|
-
data: initData,
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
// ERC721 Init Data
|
|
56
|
-
export const Erc721InitDataResponse = z
|
|
57
|
-
.object({
|
|
58
|
-
data: HexStringSchema.openapi("Init function call data in hex format"),
|
|
59
|
-
})
|
|
60
|
-
.openapi({
|
|
61
|
-
ref: "Erc721InitDataResponse",
|
|
62
|
-
});
|
|
63
|
-
export const Erc721InitDataParams = z
|
|
64
|
-
.object({
|
|
65
|
-
tokenName: z.string().nonempty().openapi({ description: "Name of the NFT collection" }),
|
|
66
|
-
tokenSymbol: z.string().nonempty().openapi({ description: "Symbol of the NFT collection" }),
|
|
67
|
-
admin: AddressSchema.openapi({
|
|
68
|
-
description: "Address to receive DEFAULT_ADMIN_ROLE, MINTER_ROLE, and URI_SETTER_ROLE",
|
|
69
|
-
}),
|
|
70
|
-
})
|
|
71
|
-
.openapi({
|
|
72
|
-
ref: "ERC721InitDataParams",
|
|
73
|
-
});
|
|
74
|
-
const getErc721InitDataRoute = describeRoute({
|
|
75
|
-
summary: "Get ERC721 Init Data",
|
|
76
|
-
description: `Returns initialize function call data in hex format for ManagedERC721Upgradeable.
|
|
77
|
-
|
|
78
|
-
This is useful for providing initData when deploying a TransparentUpgradeableProxy.
|
|
79
|
-
The admin address receives DEFAULT_ADMIN_ROLE, MINTER_ROLE, and URI_SETTER_ROLE.`,
|
|
80
|
-
tags: ["Issuance"],
|
|
81
|
-
responses: {
|
|
82
|
-
200: {
|
|
83
|
-
description: "Init function call data in hex format",
|
|
84
|
-
content: {
|
|
85
|
-
"application/json": {
|
|
86
|
-
schema: resolver(Erc721InitDataResponse),
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
});
|
|
92
|
-
export function createGetErc721InitData(factory) {
|
|
93
|
-
return factory.createHandlers(getErc721InitDataRoute, validator("json", Erc721InitDataParams), async (c) => {
|
|
94
|
-
const data = c.req.valid("json");
|
|
95
|
-
const initData = encodeFunctionData({
|
|
96
|
-
abi: managedErc721Abi,
|
|
97
|
-
functionName: "initialize",
|
|
98
|
-
args: [data.tokenName, data.tokenSymbol, data.admin],
|
|
99
|
-
});
|
|
100
|
-
return c.json({
|
|
101
|
-
data: initData,
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { Env } from "hono";
|
|
3
|
-
import { Factory } from "hono/factory";
|
|
4
|
-
import { Erc20GatedRole } from "../common/roles/erc20-gated-roles.js";
|
|
5
|
-
export declare const GrantRoleSchema: z.ZodObject<{
|
|
6
|
-
role: z.ZodNativeEnum<typeof Erc20GatedRole>;
|
|
7
|
-
address: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
8
|
-
tokenAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
address: `0x${string}`;
|
|
11
|
-
tokenAddress: `0x${string}`;
|
|
12
|
-
role: Erc20GatedRole;
|
|
13
|
-
}, {
|
|
14
|
-
address: `0x${string}`;
|
|
15
|
-
tokenAddress: `0x${string}`;
|
|
16
|
-
role: Erc20GatedRole;
|
|
17
|
-
}>;
|
|
18
|
-
export declare function createGrantRole<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
19
|
-
data: `0x${string}`;
|
|
20
|
-
to: `0x${string}`;
|
|
21
|
-
details: {
|
|
22
|
-
address: `0x${string}`;
|
|
23
|
-
functionName: string;
|
|
24
|
-
abi: any[];
|
|
25
|
-
args: any[];
|
|
26
|
-
};
|
|
27
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
28
|
-
in: {
|
|
29
|
-
json: {
|
|
30
|
-
address: `0x${string}`;
|
|
31
|
-
tokenAddress: `0x${string}`;
|
|
32
|
-
role: Erc20GatedRole;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
out: {
|
|
36
|
-
json: {
|
|
37
|
-
address: `0x${string}`;
|
|
38
|
-
tokenAddress: `0x${string}`;
|
|
39
|
-
role: Erc20GatedRole;
|
|
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
|
-
json: {
|
|
54
|
-
address: `0x${string}`;
|
|
55
|
-
tokenAddress: `0x${string}`;
|
|
56
|
-
role: Erc20GatedRole;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
out: {
|
|
60
|
-
json: {
|
|
61
|
-
address: `0x${string}`;
|
|
62
|
-
tokenAddress: `0x${string}`;
|
|
63
|
-
role: Erc20GatedRole;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
67
|
-
data: `0x${string}`;
|
|
68
|
-
to: `0x${string}`;
|
|
69
|
-
details: {
|
|
70
|
-
address: `0x${string}`;
|
|
71
|
-
functionName: string;
|
|
72
|
-
abi: any[];
|
|
73
|
-
args: any[];
|
|
74
|
-
};
|
|
75
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
76
|
-
//# sourceMappingURL=grantRole.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grantRole.d.ts","sourceRoot":"","sources":["../../src/issuance/grantRole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,EAAqB,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGzF,eAAO,MAAM,eAAe;;;;;;;;;;;;EAO1B,CAAC;AAkBH,wBAAgB,eAAe,CAAC,CAAC,SAAS,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAejE"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { describeRoute } from "hono-openapi";
|
|
3
|
-
import { resolver, validator } from "hono-openapi/zod";
|
|
4
|
-
import { AddressSchema, toTransaction, TransactionSchema } from "../common/index.js";
|
|
5
|
-
import { erc20GatedAbi } from "@evergonlabs/tmi-protocol-contracts/erc20Gated";
|
|
6
|
-
import { convertRoleToHash, Erc20GatedRole } from "../common/roles/erc20-gated-roles.js";
|
|
7
|
-
// Define the schema for the grant role request
|
|
8
|
-
export const GrantRoleSchema = z.object({
|
|
9
|
-
role: z.nativeEnum(Erc20GatedRole).openapi({
|
|
10
|
-
description: "The role to grant to the address",
|
|
11
|
-
example: Erc20GatedRole.WHITELISTED_SPENDER_ROLE,
|
|
12
|
-
}),
|
|
13
|
-
address: AddressSchema.openapi("The address to grant the role to"),
|
|
14
|
-
tokenAddress: AddressSchema.openapi("The address of the ERC20 token contract"),
|
|
15
|
-
});
|
|
16
|
-
const grantRoleRoute = describeRoute({
|
|
17
|
-
summary: "Grant Role to Address",
|
|
18
|
-
description: "Returns transaction data for granting a role to an address",
|
|
19
|
-
tags: ["Issuance"],
|
|
20
|
-
responses: {
|
|
21
|
-
200: {
|
|
22
|
-
description: "Returns transaction data for granting a role",
|
|
23
|
-
content: {
|
|
24
|
-
"application/json": {
|
|
25
|
-
schema: resolver(TransactionSchema),
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
export function createGrantRole(factory) {
|
|
32
|
-
return factory.createHandlers(grantRoleRoute, validator("json", GrantRoleSchema), async (c) => {
|
|
33
|
-
const { role, address, tokenAddress } = c.req.valid("json");
|
|
34
|
-
const roleHash = convertRoleToHash(role);
|
|
35
|
-
return c.json(toTransaction({
|
|
36
|
-
address: tokenAddress,
|
|
37
|
-
abi: erc20GatedAbi,
|
|
38
|
-
functionName: "grantRole",
|
|
39
|
-
args: [roleHash, address],
|
|
40
|
-
}));
|
|
41
|
-
});
|
|
42
|
-
}
|
package/dist/issuance/mint.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { Env } from "hono";
|
|
3
|
-
import { Factory } from "hono/factory";
|
|
4
|
-
export declare const MintErc20RequestSchema: z.ZodObject<{
|
|
5
|
-
tokenAddress: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
6
|
-
amount: z.ZodBigInt;
|
|
7
|
-
mintTo: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
tokenAddress: `0x${string}`;
|
|
10
|
-
amount: bigint;
|
|
11
|
-
mintTo: `0x${string}`;
|
|
12
|
-
}, {
|
|
13
|
-
tokenAddress: `0x${string}`;
|
|
14
|
-
amount: bigint;
|
|
15
|
-
mintTo: `0x${string}`;
|
|
16
|
-
}>;
|
|
17
|
-
export declare function mintErc20Token<E extends Env>(factory: Factory<E>): [import("hono/types").H<any, string, {}, Promise<Response & import("hono").TypedResponse<{
|
|
18
|
-
data: `0x${string}`;
|
|
19
|
-
to: `0x${string}`;
|
|
20
|
-
details: {
|
|
21
|
-
address: `0x${string}`;
|
|
22
|
-
functionName: string;
|
|
23
|
-
abi: any[];
|
|
24
|
-
args: any[];
|
|
25
|
-
};
|
|
26
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>, import("hono/types").H<Env, string, {
|
|
27
|
-
in: {
|
|
28
|
-
json: {
|
|
29
|
-
tokenAddress: `0x${string}`;
|
|
30
|
-
amount: bigint;
|
|
31
|
-
mintTo: `0x${string}`;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
out: {
|
|
35
|
-
json: {
|
|
36
|
-
tokenAddress: `0x${string}`;
|
|
37
|
-
amount: bigint;
|
|
38
|
-
mintTo: `0x${string}`;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
42
|
-
data: `0x${string}`;
|
|
43
|
-
to: `0x${string}`;
|
|
44
|
-
details: {
|
|
45
|
-
address: `0x${string}`;
|
|
46
|
-
functionName: string;
|
|
47
|
-
abi: any[];
|
|
48
|
-
args: any[];
|
|
49
|
-
};
|
|
50
|
-
}, 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, {
|
|
51
|
-
in: {
|
|
52
|
-
json: {
|
|
53
|
-
tokenAddress: `0x${string}`;
|
|
54
|
-
amount: bigint;
|
|
55
|
-
mintTo: `0x${string}`;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
out: {
|
|
59
|
-
json: {
|
|
60
|
-
tokenAddress: `0x${string}`;
|
|
61
|
-
amount: bigint;
|
|
62
|
-
mintTo: `0x${string}`;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
}, Promise<Response & import("hono").TypedResponse<{
|
|
66
|
-
data: `0x${string}`;
|
|
67
|
-
to: `0x${string}`;
|
|
68
|
-
details: {
|
|
69
|
-
address: `0x${string}`;
|
|
70
|
-
functionName: string;
|
|
71
|
-
abi: any[];
|
|
72
|
-
args: any[];
|
|
73
|
-
};
|
|
74
|
-
}, import("hono/utils/http-status").ContentfulStatusCode, "json">>>];
|
|
75
|
-
//# sourceMappingURL=mint.d.ts.map
|