@evergonlabs/tmi-protocol-api 0.10.0-rc.0 → 0.10.0-rc.2
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 +430 -72
- package/dist/app.d.ts.map +1 -1
- package/dist/client.d.ts +465 -77
- package/dist/client.d.ts.map +1 -1
- package/dist/common/roles/erc1155-token-roles.d.ts +8 -0
- package/dist/common/roles/erc1155-token-roles.d.ts.map +1 -0
- package/dist/common/roles/erc1155-token-roles.js +13 -0
- package/dist/common/roles/exports.d.ts +1 -0
- package/dist/common/roles/exports.d.ts.map +1 -1
- package/dist/common/roles/exports.js +1 -0
- package/dist/fractions/index.d.ts +71 -71
- package/dist/fractions/index.d.ts.map +1 -1
- package/dist/fractions/index.js +0 -2
- package/dist/fractions/platforms/deployMarket.routes.js +4 -4
- package/dist/fractions/platforms/initCompilot.routes.js +1 -1
- package/dist/fractions/platforms/initNid.route.js +1 -1
- package/dist/fractions/sales/approveSale.route.js +1 -1
- package/dist/fractions/sales/approveWrapper.route.d.ts +88 -0
- package/dist/fractions/sales/approveWrapper.route.d.ts.map +1 -0
- package/dist/fractions/sales/approveWrapper.route.js +92 -0
- package/dist/fractions/sales/completeSale.route.js +1 -1
- package/dist/fractions/sales/createFractions.route.js +1 -1
- package/dist/fractions/sales/getFractionSaleStatistics.route.js +1 -1
- package/dist/fractions/sales/getVaultAddress.js +1 -1
- package/dist/fractions/sales/getWithdrawEvent.js +1 -1
- package/dist/fractions/sales/index.d.ts +71 -1
- package/dist/fractions/sales/index.d.ts.map +1 -1
- package/dist/fractions/sales/index.js +5 -1
- package/dist/fractions/sales/parseFractionsCreatedEvent.js +1 -1
- package/dist/fractions/sales/purchase.route.js +1 -1
- package/dist/fractions/sales/purchaseStatistics.route.js +1 -1
- package/dist/fractions/sales/receiveFundsAfterNonFunded.route.js +2 -2
- package/dist/fractions/sales/receiveNonPurchasedWrappedAssets.route.js +1 -1
- package/dist/fractions/sales/recoverFractions.js +1 -1
- package/dist/fractions/sales/rejectFractions.js +1 -1
- package/dist/fractions/sales/searchActivity.route.js +1 -1
- package/dist/fractions/sales/searchSales/searchSales.js +1 -1
- package/dist/fractions/sales/searchWithdrawal.route.js +1 -1
- package/dist/fractions/sales/setFeeCapLimit.js +1 -1
- package/dist/fractions/sales/unlockWrappedAssets.route.js +1 -1
- package/dist/fractions/sales/vesting/claimStatistics.route.js +1 -1
- package/dist/fractions/sales/vesting/claimVestedTokens.route.js +1 -1
- package/dist/fractions/sales/vesting/editCliff.route.js +1 -1
- package/dist/fractions/sales/vesting/parseClaimVestedTokensEvent.js +1 -1
- package/dist/fractions/sales/withdraw.route.js +1 -1
- package/dist/fractions/statistics/networkStatistics.route.js +4 -4
- package/dist/issuance/common/factories.base.d.ts +12 -12
- package/dist/issuance/erc1155/burn.d.ts +34 -0
- package/dist/issuance/erc1155/burn.d.ts.map +1 -0
- package/dist/issuance/erc1155/burn.js +40 -0
- package/dist/issuance/erc1155/default/deploy.d.ts +34 -0
- package/dist/issuance/erc1155/default/deploy.d.ts.map +1 -0
- package/dist/issuance/erc1155/default/deploy.js +54 -0
- package/dist/issuance/erc1155/default/initialize.d.ts +34 -0
- package/dist/issuance/erc1155/default/initialize.d.ts.map +1 -0
- package/dist/issuance/erc1155/default/initialize.js +39 -0
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts +21 -0
- package/dist/issuance/erc1155/default/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc1155/default/parseDeployEvent.js +75 -0
- package/dist/issuance/erc1155/gated/deploy.d.ts +36 -0
- package/dist/issuance/erc1155/gated/deploy.d.ts.map +1 -0
- package/dist/issuance/erc1155/gated/deploy.js +62 -0
- package/dist/issuance/erc1155/gated/initialize.d.ts +36 -0
- package/dist/issuance/erc1155/gated/initialize.d.ts.map +1 -0
- package/dist/issuance/erc1155/gated/initialize.js +45 -0
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts +21 -0
- package/dist/issuance/erc1155/gated/parseDeployEvent.d.ts.map +1 -0
- package/dist/issuance/erc1155/gated/parseDeployEvent.js +75 -0
- package/dist/issuance/erc1155/grantRole.d.ts +33 -0
- package/dist/issuance/erc1155/grantRole.d.ts.map +1 -0
- package/dist/issuance/erc1155/grantRole.js +42 -0
- package/dist/issuance/erc1155/index.d.ts +361 -0
- package/dist/issuance/erc1155/index.d.ts.map +1 -0
- package/dist/issuance/erc1155/index.js +38 -0
- package/dist/issuance/erc1155/mint.d.ts +34 -0
- package/dist/issuance/erc1155/mint.d.ts.map +1 -0
- package/dist/issuance/erc1155/mint.js +40 -0
- package/dist/issuance/erc1155/recover.d.ts +36 -0
- package/dist/issuance/erc1155/recover.d.ts.map +1 -0
- package/dist/issuance/erc1155/recover.js +41 -0
- package/dist/issuance/erc1155/renounceRole.d.ts +33 -0
- package/dist/issuance/erc1155/renounceRole.d.ts.map +1 -0
- package/dist/issuance/erc1155/renounceRole.js +42 -0
- package/dist/issuance/erc1155/revokeRole.d.ts +33 -0
- package/dist/issuance/erc1155/revokeRole.d.ts.map +1 -0
- package/dist/issuance/erc1155/revokeRole.js +42 -0
- package/dist/issuance/erc1155/setApprovalForAll.d.ts +32 -0
- package/dist/issuance/erc1155/setApprovalForAll.d.ts.map +1 -0
- package/dist/issuance/erc1155/setApprovalForAll.js +40 -0
- package/dist/issuance/erc1155/setBaseURI.d.ts +30 -0
- package/dist/issuance/erc1155/setBaseURI.d.ts.map +1 -0
- package/dist/issuance/erc1155/setBaseURI.js +37 -0
- package/dist/issuance/erc1155/setTokenURI.d.ts +32 -0
- package/dist/issuance/erc1155/setTokenURI.d.ts.map +1 -0
- package/dist/issuance/erc1155/setTokenURI.js +39 -0
- package/dist/issuance/erc1155/tag.d.ts +4 -0
- package/dist/issuance/erc1155/tag.d.ts.map +1 -0
- package/dist/issuance/erc1155/tag.js +2 -0
- package/dist/issuance/erc20/approve.d.ts.map +1 -1
- package/dist/issuance/erc20/approve.js +2 -1
- package/dist/issuance/erc20/burn.d.ts.map +1 -1
- package/dist/issuance/erc20/burn.js +2 -1
- package/dist/issuance/erc20/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/default/deploy.js +2 -1
- package/dist/issuance/erc20/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/default/initialize.js +2 -1
- package/dist/issuance/erc20/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/default/parseDeployEvent.js +2 -1
- package/dist/issuance/erc20/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/deploy.js +2 -1
- package/dist/issuance/erc20/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/initialize.js +2 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gated/parseDeployEvent.js +2 -1
- package/dist/issuance/erc20/gatedSimple/deploy.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/deploy.js +2 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/getInitData.js +2 -1
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc20/gatedSimple/parseDeployEvent.js +2 -1
- package/dist/issuance/erc20/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc20/grantRole.js +2 -1
- package/dist/issuance/erc20/mint.d.ts.map +1 -1
- package/dist/issuance/erc20/mint.js +2 -1
- package/dist/issuance/erc20/recover.d.ts.map +1 -1
- package/dist/issuance/erc20/recover.js +2 -1
- package/dist/issuance/erc20/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc20/renounceRole.js +2 -1
- package/dist/issuance/erc20/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc20/revokeRole.js +2 -1
- package/dist/issuance/erc20/tag.d.ts +4 -0
- package/dist/issuance/erc20/tag.d.ts.map +1 -0
- package/dist/issuance/erc20/tag.js +2 -0
- package/dist/issuance/erc20/transfer.d.ts.map +1 -1
- package/dist/issuance/erc20/transfer.js +2 -1
- package/dist/issuance/erc20/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc20/transferFrom.js +2 -1
- package/dist/issuance/erc721/approve.d.ts.map +1 -1
- package/dist/issuance/erc721/approve.js +3 -2
- package/dist/issuance/erc721/burn.d.ts.map +1 -1
- package/dist/issuance/erc721/burn.js +3 -2
- package/dist/issuance/erc721/default/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/default/deploy.js +6 -5
- package/dist/issuance/erc721/default/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/default/initialize.js +3 -2
- package/dist/issuance/erc721/default/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/default/parseDeployEvent.js +3 -2
- package/dist/issuance/erc721/gated/deploy.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/deploy.js +6 -5
- package/dist/issuance/erc721/gated/initialize.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/initialize.js +3 -2
- package/dist/issuance/erc721/gated/parseDeployEvent.d.ts.map +1 -1
- package/dist/issuance/erc721/gated/parseDeployEvent.js +3 -2
- package/dist/issuance/erc721/grantRole.d.ts.map +1 -1
- package/dist/issuance/erc721/grantRole.js +3 -2
- package/dist/issuance/erc721/index.d.ts +0 -1
- package/dist/issuance/erc721/index.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.d.ts +0 -2
- package/dist/issuance/erc721/mint.d.ts.map +1 -1
- package/dist/issuance/erc721/mint.js +6 -7
- package/dist/issuance/erc721/nextTokenId.d.ts +19 -0
- package/dist/issuance/erc721/nextTokenId.d.ts.map +1 -0
- package/dist/issuance/erc721/nextTokenId.js +79 -0
- package/dist/issuance/erc721/recover.d.ts.map +1 -1
- package/dist/issuance/erc721/recover.js +3 -2
- package/dist/issuance/erc721/renounceRole.d.ts.map +1 -1
- package/dist/issuance/erc721/renounceRole.js +3 -2
- package/dist/issuance/erc721/revokeRole.d.ts.map +1 -1
- package/dist/issuance/erc721/revokeRole.js +3 -2
- package/dist/issuance/erc721/setBaseURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setBaseURI.js +3 -2
- package/dist/issuance/erc721/setTokenURI.d.ts.map +1 -1
- package/dist/issuance/erc721/setTokenURI.js +3 -2
- package/dist/issuance/erc721/tag.d.ts +4 -0
- package/dist/issuance/erc721/tag.d.ts.map +1 -0
- package/dist/issuance/erc721/tag.js +2 -0
- package/dist/issuance/erc721/transferFrom.d.ts.map +1 -1
- package/dist/issuance/erc721/transferFrom.js +3 -2
- package/dist/issuance/index.d.ts +359 -1
- package/dist/issuance/index.d.ts.map +1 -1
- package/dist/issuance/index.js +2 -0
- package/dist/issuance/proxy/deploy.d.ts.map +1 -1
- package/dist/issuance/proxy/deploy.js +3 -2
- package/dist/issuance/proxy/tag.d.ts +4 -0
- package/dist/issuance/proxy/tag.d.ts.map +1 -0
- package/dist/issuance/proxy/tag.js +2 -0
- package/dist/issuance/proxy/upgrade.d.ts.map +1 -1
- package/dist/issuance/proxy/upgrade.js +2 -1
- package/package.json +16 -14
package/dist/client.d.ts
CHANGED
|
@@ -1543,82 +1543,6 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
|
|
|
1543
1543
|
};
|
|
1544
1544
|
}>;
|
|
1545
1545
|
};
|
|
1546
|
-
} & {
|
|
1547
|
-
fractions: {
|
|
1548
|
-
approveWrapper: import("hono/client").ClientRequest<string, "/fractions/approveWrapper", {
|
|
1549
|
-
$post: {
|
|
1550
|
-
input: {
|
|
1551
|
-
json: {
|
|
1552
|
-
marketAddress: string;
|
|
1553
|
-
wrapperAddress: string;
|
|
1554
|
-
};
|
|
1555
|
-
};
|
|
1556
|
-
output: {
|
|
1557
|
-
data: `0x${string}`;
|
|
1558
|
-
to: `0x${string}`;
|
|
1559
|
-
details: {
|
|
1560
|
-
functionName: string;
|
|
1561
|
-
address: `0x${string}`;
|
|
1562
|
-
abi: any[];
|
|
1563
|
-
args: any[];
|
|
1564
|
-
};
|
|
1565
|
-
};
|
|
1566
|
-
outputFormat: "json";
|
|
1567
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1568
|
-
};
|
|
1569
|
-
}>;
|
|
1570
|
-
};
|
|
1571
|
-
} & {
|
|
1572
|
-
fractions: {
|
|
1573
|
-
approveWrapperAsErc20Spender: import("hono/client").ClientRequest<string, "/fractions/approveWrapperAsErc20Spender", {
|
|
1574
|
-
$post: {
|
|
1575
|
-
input: {
|
|
1576
|
-
json: {
|
|
1577
|
-
wrapperAddress: string;
|
|
1578
|
-
erc20Address: string;
|
|
1579
|
-
amount: string;
|
|
1580
|
-
};
|
|
1581
|
-
};
|
|
1582
|
-
output: {
|
|
1583
|
-
data: `0x${string}`;
|
|
1584
|
-
to: `0x${string}`;
|
|
1585
|
-
details: {
|
|
1586
|
-
functionName: string;
|
|
1587
|
-
address: `0x${string}`;
|
|
1588
|
-
abi: any[];
|
|
1589
|
-
args: any[];
|
|
1590
|
-
};
|
|
1591
|
-
};
|
|
1592
|
-
outputFormat: "json";
|
|
1593
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1594
|
-
};
|
|
1595
|
-
}>;
|
|
1596
|
-
};
|
|
1597
|
-
} & {
|
|
1598
|
-
fractions: {
|
|
1599
|
-
approveWrapperAsErc721Spender: import("hono/client").ClientRequest<string, "/fractions/approveWrapperAsErc721Spender", {
|
|
1600
|
-
$post: {
|
|
1601
|
-
input: {
|
|
1602
|
-
json: {
|
|
1603
|
-
wrapperAddress: string;
|
|
1604
|
-
erc721Address: string;
|
|
1605
|
-
};
|
|
1606
|
-
};
|
|
1607
|
-
output: {
|
|
1608
|
-
data: `0x${string}`;
|
|
1609
|
-
to: `0x${string}`;
|
|
1610
|
-
details: {
|
|
1611
|
-
functionName: string;
|
|
1612
|
-
address: `0x${string}`;
|
|
1613
|
-
abi: any[];
|
|
1614
|
-
args: any[];
|
|
1615
|
-
};
|
|
1616
|
-
};
|
|
1617
|
-
outputFormat: "json";
|
|
1618
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1619
|
-
};
|
|
1620
|
-
}>;
|
|
1621
|
-
};
|
|
1622
1546
|
} & {
|
|
1623
1547
|
roles: import("hono/client").ClientRequest<string, "/roles", {
|
|
1624
1548
|
$get: {
|
|
@@ -2595,6 +2519,82 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
|
|
|
2595
2519
|
};
|
|
2596
2520
|
}>;
|
|
2597
2521
|
};
|
|
2522
|
+
} & {
|
|
2523
|
+
sales: {
|
|
2524
|
+
approveWrapper: import("hono/client").ClientRequest<string, "/sales/approveWrapper", {
|
|
2525
|
+
$post: {
|
|
2526
|
+
input: {
|
|
2527
|
+
json: {
|
|
2528
|
+
marketAddress: string;
|
|
2529
|
+
wrapperAddress: string;
|
|
2530
|
+
};
|
|
2531
|
+
};
|
|
2532
|
+
output: {
|
|
2533
|
+
data: `0x${string}`;
|
|
2534
|
+
to: `0x${string}`;
|
|
2535
|
+
details: {
|
|
2536
|
+
functionName: string;
|
|
2537
|
+
address: `0x${string}`;
|
|
2538
|
+
abi: any[];
|
|
2539
|
+
args: any[];
|
|
2540
|
+
};
|
|
2541
|
+
};
|
|
2542
|
+
outputFormat: "json";
|
|
2543
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2544
|
+
};
|
|
2545
|
+
}>;
|
|
2546
|
+
};
|
|
2547
|
+
} & {
|
|
2548
|
+
sales: {
|
|
2549
|
+
approveWrapperAsErc20Spender: import("hono/client").ClientRequest<string, "/sales/approveWrapperAsErc20Spender", {
|
|
2550
|
+
$post: {
|
|
2551
|
+
input: {
|
|
2552
|
+
json: {
|
|
2553
|
+
wrapperAddress: string;
|
|
2554
|
+
erc20Address: string;
|
|
2555
|
+
amount: string;
|
|
2556
|
+
};
|
|
2557
|
+
};
|
|
2558
|
+
output: {
|
|
2559
|
+
data: `0x${string}`;
|
|
2560
|
+
to: `0x${string}`;
|
|
2561
|
+
details: {
|
|
2562
|
+
functionName: string;
|
|
2563
|
+
address: `0x${string}`;
|
|
2564
|
+
abi: any[];
|
|
2565
|
+
args: any[];
|
|
2566
|
+
};
|
|
2567
|
+
};
|
|
2568
|
+
outputFormat: "json";
|
|
2569
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2570
|
+
};
|
|
2571
|
+
}>;
|
|
2572
|
+
};
|
|
2573
|
+
} & {
|
|
2574
|
+
sales: {
|
|
2575
|
+
approveWrapperAsErc721Spender: import("hono/client").ClientRequest<string, "/sales/approveWrapperAsErc721Spender", {
|
|
2576
|
+
$post: {
|
|
2577
|
+
input: {
|
|
2578
|
+
json: {
|
|
2579
|
+
wrapperAddress: string;
|
|
2580
|
+
erc721Address: string;
|
|
2581
|
+
};
|
|
2582
|
+
};
|
|
2583
|
+
output: {
|
|
2584
|
+
data: `0x${string}`;
|
|
2585
|
+
to: `0x${string}`;
|
|
2586
|
+
details: {
|
|
2587
|
+
functionName: string;
|
|
2588
|
+
address: `0x${string}`;
|
|
2589
|
+
abi: any[];
|
|
2590
|
+
args: any[];
|
|
2591
|
+
};
|
|
2592
|
+
};
|
|
2593
|
+
outputFormat: "json";
|
|
2594
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
2595
|
+
};
|
|
2596
|
+
}>;
|
|
2597
|
+
};
|
|
2598
2598
|
} & {
|
|
2599
2599
|
sig: {
|
|
2600
2600
|
nonce: import("hono/client").ClientRequest<string, "/sig/nonce", {
|
|
@@ -3513,7 +3513,6 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
|
|
|
3513
3513
|
json: {
|
|
3514
3514
|
tokenAddress: string;
|
|
3515
3515
|
to: string;
|
|
3516
|
-
tokenId: string;
|
|
3517
3516
|
};
|
|
3518
3517
|
};
|
|
3519
3518
|
output: {
|
|
@@ -3714,6 +3713,395 @@ export declare function buildClients(basePath: string, options?: ClientRequestOp
|
|
|
3714
3713
|
};
|
|
3715
3714
|
}>;
|
|
3716
3715
|
};
|
|
3716
|
+
} & {
|
|
3717
|
+
erc1155: {
|
|
3718
|
+
deploy: import("hono/client").ClientRequest<string, "/erc1155/deploy", {
|
|
3719
|
+
$post: {
|
|
3720
|
+
input: {
|
|
3721
|
+
json: {
|
|
3722
|
+
chainId: 11155111 | 72080;
|
|
3723
|
+
baseURI: string;
|
|
3724
|
+
defaultTokenAdmin: string;
|
|
3725
|
+
minter: string;
|
|
3726
|
+
};
|
|
3727
|
+
};
|
|
3728
|
+
output: {
|
|
3729
|
+
data: `0x${string}`;
|
|
3730
|
+
to: `0x${string}`;
|
|
3731
|
+
details: {
|
|
3732
|
+
functionName: string;
|
|
3733
|
+
address: `0x${string}`;
|
|
3734
|
+
abi: any[];
|
|
3735
|
+
args: any[];
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3738
|
+
outputFormat: "json";
|
|
3739
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3740
|
+
};
|
|
3741
|
+
}>;
|
|
3742
|
+
};
|
|
3743
|
+
} & {
|
|
3744
|
+
erc1155: {
|
|
3745
|
+
initialize: import("hono/client").ClientRequest<string, "/erc1155/initialize", {
|
|
3746
|
+
$post: {
|
|
3747
|
+
input: {
|
|
3748
|
+
json: {
|
|
3749
|
+
tokenAddress: string;
|
|
3750
|
+
baseURI: string;
|
|
3751
|
+
defaultAdmin: string;
|
|
3752
|
+
minter: string;
|
|
3753
|
+
};
|
|
3754
|
+
};
|
|
3755
|
+
output: {
|
|
3756
|
+
data: `0x${string}`;
|
|
3757
|
+
to: `0x${string}`;
|
|
3758
|
+
details: {
|
|
3759
|
+
functionName: string;
|
|
3760
|
+
address: `0x${string}`;
|
|
3761
|
+
abi: any[];
|
|
3762
|
+
args: any[];
|
|
3763
|
+
};
|
|
3764
|
+
};
|
|
3765
|
+
outputFormat: "json";
|
|
3766
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3767
|
+
};
|
|
3768
|
+
}>;
|
|
3769
|
+
};
|
|
3770
|
+
} & {
|
|
3771
|
+
erc1155: {
|
|
3772
|
+
getDeployEvent: import("hono/client").ClientRequest<string, "/erc1155/getDeployEvent", {
|
|
3773
|
+
$get: {
|
|
3774
|
+
input: {
|
|
3775
|
+
query: {
|
|
3776
|
+
chainId: string | string[];
|
|
3777
|
+
hash: string | string[];
|
|
3778
|
+
};
|
|
3779
|
+
};
|
|
3780
|
+
output: {
|
|
3781
|
+
proxy: `0x${string}`;
|
|
3782
|
+
admin: `0x${string}`;
|
|
3783
|
+
minter: `0x${string}`;
|
|
3784
|
+
baseURI: string;
|
|
3785
|
+
};
|
|
3786
|
+
outputFormat: "json";
|
|
3787
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3788
|
+
};
|
|
3789
|
+
}>;
|
|
3790
|
+
};
|
|
3791
|
+
} & {
|
|
3792
|
+
erc1155: {
|
|
3793
|
+
deployGated: import("hono/client").ClientRequest<string, "/erc1155/deployGated", {
|
|
3794
|
+
$post: {
|
|
3795
|
+
input: {
|
|
3796
|
+
json: {
|
|
3797
|
+
chainId: 11155111 | 72080;
|
|
3798
|
+
baseURI: string;
|
|
3799
|
+
defaultTokenAdmin: string;
|
|
3800
|
+
minter: string;
|
|
3801
|
+
gatingSigner?: string | undefined;
|
|
3802
|
+
};
|
|
3803
|
+
};
|
|
3804
|
+
output: {
|
|
3805
|
+
data: `0x${string}`;
|
|
3806
|
+
to: `0x${string}`;
|
|
3807
|
+
details: {
|
|
3808
|
+
functionName: string;
|
|
3809
|
+
address: `0x${string}`;
|
|
3810
|
+
abi: any[];
|
|
3811
|
+
args: any[];
|
|
3812
|
+
};
|
|
3813
|
+
};
|
|
3814
|
+
outputFormat: "json";
|
|
3815
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3816
|
+
};
|
|
3817
|
+
}>;
|
|
3818
|
+
};
|
|
3819
|
+
} & {
|
|
3820
|
+
erc1155: {
|
|
3821
|
+
initializeGated: import("hono/client").ClientRequest<string, "/erc1155/initializeGated", {
|
|
3822
|
+
$post: {
|
|
3823
|
+
input: {
|
|
3824
|
+
json: {
|
|
3825
|
+
tokenAddress: string;
|
|
3826
|
+
baseURI: string;
|
|
3827
|
+
defaultAdmin: string;
|
|
3828
|
+
minter: string;
|
|
3829
|
+
gatingSigner?: string | undefined;
|
|
3830
|
+
};
|
|
3831
|
+
};
|
|
3832
|
+
output: {
|
|
3833
|
+
data: `0x${string}`;
|
|
3834
|
+
to: `0x${string}`;
|
|
3835
|
+
details: {
|
|
3836
|
+
functionName: string;
|
|
3837
|
+
address: `0x${string}`;
|
|
3838
|
+
abi: any[];
|
|
3839
|
+
args: any[];
|
|
3840
|
+
};
|
|
3841
|
+
};
|
|
3842
|
+
outputFormat: "json";
|
|
3843
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3844
|
+
};
|
|
3845
|
+
}>;
|
|
3846
|
+
};
|
|
3847
|
+
} & {
|
|
3848
|
+
erc1155: {
|
|
3849
|
+
getDeployEventGated: import("hono/client").ClientRequest<string, "/erc1155/getDeployEventGated", {
|
|
3850
|
+
$get: {
|
|
3851
|
+
input: {
|
|
3852
|
+
query: {
|
|
3853
|
+
chainId: string | string[];
|
|
3854
|
+
hash: string | string[];
|
|
3855
|
+
};
|
|
3856
|
+
};
|
|
3857
|
+
output: {
|
|
3858
|
+
proxy: `0x${string}`;
|
|
3859
|
+
admin: `0x${string}`;
|
|
3860
|
+
minter: `0x${string}`;
|
|
3861
|
+
baseURI: string;
|
|
3862
|
+
};
|
|
3863
|
+
outputFormat: "json";
|
|
3864
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3865
|
+
};
|
|
3866
|
+
}>;
|
|
3867
|
+
};
|
|
3868
|
+
} & {
|
|
3869
|
+
erc1155: {
|
|
3870
|
+
mint: import("hono/client").ClientRequest<string, "/erc1155/mint", {
|
|
3871
|
+
$post: {
|
|
3872
|
+
input: {
|
|
3873
|
+
json: {
|
|
3874
|
+
tokenAddress: string;
|
|
3875
|
+
to: string;
|
|
3876
|
+
amount: string;
|
|
3877
|
+
data?: string | undefined;
|
|
3878
|
+
};
|
|
3879
|
+
};
|
|
3880
|
+
output: {
|
|
3881
|
+
data: `0x${string}`;
|
|
3882
|
+
to: `0x${string}`;
|
|
3883
|
+
details: {
|
|
3884
|
+
functionName: string;
|
|
3885
|
+
address: `0x${string}`;
|
|
3886
|
+
abi: any[];
|
|
3887
|
+
args: any[];
|
|
3888
|
+
};
|
|
3889
|
+
};
|
|
3890
|
+
outputFormat: "json";
|
|
3891
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3892
|
+
};
|
|
3893
|
+
}>;
|
|
3894
|
+
};
|
|
3895
|
+
} & {
|
|
3896
|
+
erc1155: {
|
|
3897
|
+
burn: import("hono/client").ClientRequest<string, "/erc1155/burn", {
|
|
3898
|
+
$post: {
|
|
3899
|
+
input: {
|
|
3900
|
+
json: {
|
|
3901
|
+
tokenAddress: string;
|
|
3902
|
+
account: string;
|
|
3903
|
+
id: string;
|
|
3904
|
+
amount: string;
|
|
3905
|
+
};
|
|
3906
|
+
};
|
|
3907
|
+
output: {
|
|
3908
|
+
data: `0x${string}`;
|
|
3909
|
+
to: `0x${string}`;
|
|
3910
|
+
details: {
|
|
3911
|
+
functionName: string;
|
|
3912
|
+
address: `0x${string}`;
|
|
3913
|
+
abi: any[];
|
|
3914
|
+
args: any[];
|
|
3915
|
+
};
|
|
3916
|
+
};
|
|
3917
|
+
outputFormat: "json";
|
|
3918
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3919
|
+
};
|
|
3920
|
+
}>;
|
|
3921
|
+
};
|
|
3922
|
+
} & {
|
|
3923
|
+
erc1155: {
|
|
3924
|
+
setApprovalForAll: import("hono/client").ClientRequest<string, "/erc1155/setApprovalForAll", {
|
|
3925
|
+
$post: {
|
|
3926
|
+
input: {
|
|
3927
|
+
json: {
|
|
3928
|
+
tokenAddress: string;
|
|
3929
|
+
operator: string;
|
|
3930
|
+
approved: boolean;
|
|
3931
|
+
};
|
|
3932
|
+
};
|
|
3933
|
+
output: {
|
|
3934
|
+
data: `0x${string}`;
|
|
3935
|
+
to: `0x${string}`;
|
|
3936
|
+
details: {
|
|
3937
|
+
functionName: string;
|
|
3938
|
+
address: `0x${string}`;
|
|
3939
|
+
abi: any[];
|
|
3940
|
+
args: any[];
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3943
|
+
outputFormat: "json";
|
|
3944
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3945
|
+
};
|
|
3946
|
+
}>;
|
|
3947
|
+
};
|
|
3948
|
+
} & {
|
|
3949
|
+
erc1155: {
|
|
3950
|
+
setBaseURI: import("hono/client").ClientRequest<string, "/erc1155/setBaseURI", {
|
|
3951
|
+
$post: {
|
|
3952
|
+
input: {
|
|
3953
|
+
json: {
|
|
3954
|
+
tokenAddress: string;
|
|
3955
|
+
baseURI: string;
|
|
3956
|
+
};
|
|
3957
|
+
};
|
|
3958
|
+
output: {
|
|
3959
|
+
data: `0x${string}`;
|
|
3960
|
+
to: `0x${string}`;
|
|
3961
|
+
details: {
|
|
3962
|
+
functionName: string;
|
|
3963
|
+
address: `0x${string}`;
|
|
3964
|
+
abi: any[];
|
|
3965
|
+
args: any[];
|
|
3966
|
+
};
|
|
3967
|
+
};
|
|
3968
|
+
outputFormat: "json";
|
|
3969
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3970
|
+
};
|
|
3971
|
+
}>;
|
|
3972
|
+
};
|
|
3973
|
+
} & {
|
|
3974
|
+
erc1155: {
|
|
3975
|
+
setTokenURI: import("hono/client").ClientRequest<string, "/erc1155/setTokenURI", {
|
|
3976
|
+
$post: {
|
|
3977
|
+
input: {
|
|
3978
|
+
json: {
|
|
3979
|
+
tokenAddress: string;
|
|
3980
|
+
id: string;
|
|
3981
|
+
tokenURI: string;
|
|
3982
|
+
};
|
|
3983
|
+
};
|
|
3984
|
+
output: {
|
|
3985
|
+
data: `0x${string}`;
|
|
3986
|
+
to: `0x${string}`;
|
|
3987
|
+
details: {
|
|
3988
|
+
functionName: string;
|
|
3989
|
+
address: `0x${string}`;
|
|
3990
|
+
abi: any[];
|
|
3991
|
+
args: any[];
|
|
3992
|
+
};
|
|
3993
|
+
};
|
|
3994
|
+
outputFormat: "json";
|
|
3995
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
3996
|
+
};
|
|
3997
|
+
}>;
|
|
3998
|
+
};
|
|
3999
|
+
} & {
|
|
4000
|
+
erc1155: {
|
|
4001
|
+
recover: import("hono/client").ClientRequest<string, "/erc1155/recover", {
|
|
4002
|
+
$post: {
|
|
4003
|
+
input: {
|
|
4004
|
+
json: {
|
|
4005
|
+
tokenAddress: string;
|
|
4006
|
+
from: string;
|
|
4007
|
+
to: string;
|
|
4008
|
+
id: string;
|
|
4009
|
+
amount: string;
|
|
4010
|
+
};
|
|
4011
|
+
};
|
|
4012
|
+
output: {
|
|
4013
|
+
data: `0x${string}`;
|
|
4014
|
+
to: `0x${string}`;
|
|
4015
|
+
details: {
|
|
4016
|
+
functionName: string;
|
|
4017
|
+
address: `0x${string}`;
|
|
4018
|
+
abi: any[];
|
|
4019
|
+
args: any[];
|
|
4020
|
+
};
|
|
4021
|
+
};
|
|
4022
|
+
outputFormat: "json";
|
|
4023
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4024
|
+
};
|
|
4025
|
+
}>;
|
|
4026
|
+
};
|
|
4027
|
+
} & {
|
|
4028
|
+
erc1155: {
|
|
4029
|
+
grantRole: import("hono/client").ClientRequest<string, "/erc1155/grantRole", {
|
|
4030
|
+
$post: {
|
|
4031
|
+
input: {
|
|
4032
|
+
json: {
|
|
4033
|
+
tokenAddress: string;
|
|
4034
|
+
role: import("./client.js").Erc1155TokenRole;
|
|
4035
|
+
account: string;
|
|
4036
|
+
};
|
|
4037
|
+
};
|
|
4038
|
+
output: {
|
|
4039
|
+
data: `0x${string}`;
|
|
4040
|
+
to: `0x${string}`;
|
|
4041
|
+
details: {
|
|
4042
|
+
functionName: string;
|
|
4043
|
+
address: `0x${string}`;
|
|
4044
|
+
abi: any[];
|
|
4045
|
+
args: any[];
|
|
4046
|
+
};
|
|
4047
|
+
};
|
|
4048
|
+
outputFormat: "json";
|
|
4049
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4050
|
+
};
|
|
4051
|
+
}>;
|
|
4052
|
+
};
|
|
4053
|
+
} & {
|
|
4054
|
+
erc1155: {
|
|
4055
|
+
revokeRole: import("hono/client").ClientRequest<string, "/erc1155/revokeRole", {
|
|
4056
|
+
$post: {
|
|
4057
|
+
input: {
|
|
4058
|
+
json: {
|
|
4059
|
+
tokenAddress: string;
|
|
4060
|
+
role: import("./client.js").Erc1155TokenRole;
|
|
4061
|
+
account: string;
|
|
4062
|
+
};
|
|
4063
|
+
};
|
|
4064
|
+
output: {
|
|
4065
|
+
data: `0x${string}`;
|
|
4066
|
+
to: `0x${string}`;
|
|
4067
|
+
details: {
|
|
4068
|
+
functionName: string;
|
|
4069
|
+
address: `0x${string}`;
|
|
4070
|
+
abi: any[];
|
|
4071
|
+
args: any[];
|
|
4072
|
+
};
|
|
4073
|
+
};
|
|
4074
|
+
outputFormat: "json";
|
|
4075
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4076
|
+
};
|
|
4077
|
+
}>;
|
|
4078
|
+
};
|
|
4079
|
+
} & {
|
|
4080
|
+
erc1155: {
|
|
4081
|
+
renounceRole: import("hono/client").ClientRequest<string, "/erc1155/renounceRole", {
|
|
4082
|
+
$post: {
|
|
4083
|
+
input: {
|
|
4084
|
+
json: {
|
|
4085
|
+
tokenAddress: string;
|
|
4086
|
+
role: import("./client.js").Erc1155TokenRole;
|
|
4087
|
+
callerConfirmation: string;
|
|
4088
|
+
};
|
|
4089
|
+
};
|
|
4090
|
+
output: {
|
|
4091
|
+
data: `0x${string}`;
|
|
4092
|
+
to: `0x${string}`;
|
|
4093
|
+
details: {
|
|
4094
|
+
functionName: string;
|
|
4095
|
+
address: `0x${string}`;
|
|
4096
|
+
abi: any[];
|
|
4097
|
+
args: any[];
|
|
4098
|
+
};
|
|
4099
|
+
};
|
|
4100
|
+
outputFormat: "json";
|
|
4101
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
4102
|
+
};
|
|
4103
|
+
}>;
|
|
4104
|
+
};
|
|
3717
4105
|
} & {
|
|
3718
4106
|
proxy: {
|
|
3719
4107
|
deployProxyAdmin: import("hono/client").ClientRequest<string, "/proxy/deployProxyAdmin", {
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAM,MAAM,aAAa,CAAC;AAMvD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAM,MAAM,aAAa,CAAC;AAMvD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhF;AAED,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAU3D,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum Erc1155TokenRole {
|
|
2
|
+
DEFAULT_ADMIN_ROLE = "DEFAULT_ADMIN_ROLE",
|
|
3
|
+
MINTER_ROLE = "MINTER_ROLE",
|
|
4
|
+
PAUSER_ROLE = "PAUSER_ROLE",
|
|
5
|
+
RECOVER_ROLE = "RECOVER_ROLE"
|
|
6
|
+
}
|
|
7
|
+
export declare function convertErc1155TokenRoleToHash(role: Erc1155TokenRole): `0x${string}`;
|
|
8
|
+
//# sourceMappingURL=erc1155-token-roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc1155-token-roles.d.ts","sourceRoot":"","sources":["../../../src/common/roles/erc1155-token-roles.ts"],"names":[],"mappings":"AAEA,oBAAY,gBAAgB;IAC1B,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;CAC9B;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,gBAAgB,GAAG,KAAK,MAAM,EAAE,CAGnF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { keccak256, toHex } from "viem";
|
|
2
|
+
export var Erc1155TokenRole;
|
|
3
|
+
(function (Erc1155TokenRole) {
|
|
4
|
+
Erc1155TokenRole["DEFAULT_ADMIN_ROLE"] = "DEFAULT_ADMIN_ROLE";
|
|
5
|
+
Erc1155TokenRole["MINTER_ROLE"] = "MINTER_ROLE";
|
|
6
|
+
Erc1155TokenRole["PAUSER_ROLE"] = "PAUSER_ROLE";
|
|
7
|
+
Erc1155TokenRole["RECOVER_ROLE"] = "RECOVER_ROLE";
|
|
8
|
+
})(Erc1155TokenRole || (Erc1155TokenRole = {}));
|
|
9
|
+
export function convertErc1155TokenRoleToHash(role) {
|
|
10
|
+
if (role === Erc1155TokenRole.DEFAULT_ADMIN_ROLE)
|
|
11
|
+
return toHex(0, { size: 32 });
|
|
12
|
+
return keccak256(toHex(role));
|
|
13
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/common/roles/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/common/roles/exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|