@0xsequence/marketplace-sdk 0.8.1 → 0.8.3
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/.changeset/flat-parks-clean.md +8 -0
- package/.changeset/red-buckets-deny.md +6 -0
- package/CHANGELOG.md +17 -0
- package/dist/{builder-types-QlHwc9bI.d.ts → builder-types-BY6eD6vD.d.ts} +1 -1
- package/dist/{chunk-IZ44XPBH.js → chunk-25CAMYCG.js} +2 -2
- package/dist/{chunk-ABSYNRT5.js → chunk-5ATGT5S4.js} +3 -11
- package/dist/chunk-5ATGT5S4.js.map +1 -0
- package/dist/{chunk-BNAUZXPV.js → chunk-ALICO7NG.js} +3 -3
- package/dist/chunk-ALICO7NG.js.map +1 -0
- package/dist/{chunk-Q5RKAMYF.js → chunk-BGY4WXER.js} +43 -1
- package/dist/chunk-BGY4WXER.js.map +1 -0
- package/dist/{chunk-X3QNSQER.js → chunk-DFI52A2E.js} +56 -86
- package/dist/chunk-DFI52A2E.js.map +1 -0
- package/dist/{chunk-A5ACY5YV.js → chunk-FH4TZRDV.js} +2 -2
- package/dist/{chunk-3JU7SQVE.js → chunk-FSJKN4YN.js} +61 -24
- package/dist/chunk-FSJKN4YN.js.map +1 -0
- package/dist/{chunk-3II5GLHE.js → chunk-HGKWWZWY.js} +2 -2
- package/dist/{chunk-BN36GABQ.js → chunk-QTV77W42.js} +89 -65
- package/dist/chunk-QTV77W42.js.map +1 -0
- package/dist/{chunk-BCO4CYE4.js → chunk-SJU6QZHM.js} +2 -2
- package/dist/{chunk-2VHHJNXY.js → chunk-WXKV5N4T.js} +3 -3
- package/dist/{chunk-GBQVYNCD.js → chunk-XUNDLCEH.js} +3 -3
- package/dist/{create-config-ClkUr27C.d.ts → create-config-qDML4ZNn.d.ts} +1 -1
- package/dist/{index-CnaFSNE9.d.ts → index-DtWR0b_l.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +12 -10
- package/dist/{listCollectibles-B0tbqnRd.d.ts → lowestListing-DUZ_nYml.d.ts} +49 -42
- package/dist/{marketplace.gen-BTHxxhG2.d.ts → marketplace.gen-DS-MmGEB.d.ts} +35 -4
- package/dist/react/_internal/api/index.d.ts +2 -2
- package/dist/react/_internal/api/index.js +1 -1
- package/dist/react/_internal/databeat/index.d.ts +1 -1
- package/dist/react/_internal/databeat/index.js +10 -10
- package/dist/react/_internal/index.d.ts +5 -5
- package/dist/react/_internal/index.js +2 -2
- package/dist/react/_internal/wagmi/index.d.ts +3 -3
- package/dist/react/_internal/wagmi/index.js +2 -2
- package/dist/react/hooks/index.d.ts +68 -183
- package/dist/react/hooks/index.js +11 -13
- package/dist/react/hooks/options/index.d.ts +3 -3
- package/dist/react/hooks/options/index.js +4 -4
- package/dist/react/index.d.ts +8 -8
- package/dist/react/index.js +15 -17
- package/dist/react/queries/index.d.ts +2 -2
- package/dist/react/queries/index.js +11 -28
- package/dist/react/queries/index.js.map +1 -1
- package/dist/react/ssr/index.d.ts +2 -2
- package/dist/react/ssr/index.js +3 -3
- package/dist/react/ui/components/collectible-card/index.d.ts +1 -1
- package/dist/react/ui/components/collectible-card/index.js +13 -13
- package/dist/react/ui/icons/index.js +6 -6
- package/dist/react/ui/index.d.ts +1 -1
- package/dist/react/ui/index.js +13 -13
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +10 -10
- package/dist/{services-ybGoDJd9.d.ts → services-BOX67E7W.d.ts} +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +2 -4
- package/dist/{types-o_pKUpQG.d.ts → types-CJLhc2VZ.d.ts} +2 -2
- package/dist/utils/abi/index.js +5 -5
- package/dist/utils/index.d.ts +54 -2
- package/dist/utils/index.js +12 -8
- package/package.json +4 -2
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +5 -2
- package/src/react/_internal/api/marketplace.gen.ts +39 -6
- package/src/react/_internal/api/zod-schema.ts +7 -18
- package/src/react/hooks/__tests__/useGenerateListingTransaction.test.tsx +10 -2
- package/src/react/hooks/__tests__/useGenerateOfferTransaction.test.tsx +10 -2
- package/src/react/hooks/__tests__/useGenerateSellTransaction.test.tsx +5 -1
- package/src/react/hooks/__tests__/useHighestOffer.test.tsx +7 -8
- package/src/react/hooks/__tests__/useLowestListing.test.tsx +4 -5
- package/src/react/hooks/useCancelTransactionSteps.tsx +2 -2
- package/src/react/hooks/useHighestOffer.tsx +1 -39
- package/src/react/hooks/useLowestListing.tsx +4 -51
- package/src/react/queries/highestOffer.ts +25 -30
- package/src/react/queries/index.ts +1 -0
- package/src/react/queries/lowestListing.ts +52 -0
- package/src/react/ui/modals/BuyModal/ERC1155QuantityModal.tsx +6 -9
- package/src/react/ui/modals/BuyModal/Modal.tsx +26 -8
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +6 -2
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +2 -2
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +4 -4
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +2 -2
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +2 -2
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +1 -5
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +4 -4
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +18 -14
- package/src/types/api-types.ts +1 -2
- package/src/types/types.ts +5 -0
- package/src/utils/price.ts +103 -0
- package/dist/chunk-3JU7SQVE.js.map +0 -1
- package/dist/chunk-ABSYNRT5.js.map +0 -1
- package/dist/chunk-BN36GABQ.js.map +0 -1
- package/dist/chunk-BNAUZXPV.js.map +0 -1
- package/dist/chunk-Q5RKAMYF.js.map +0 -1
- package/dist/chunk-X3QNSQER.js.map +0 -1
- /package/dist/{chunk-IZ44XPBH.js.map → chunk-25CAMYCG.js.map} +0 -0
- /package/dist/{chunk-A5ACY5YV.js.map → chunk-FH4TZRDV.js.map} +0 -0
- /package/dist/{chunk-3II5GLHE.js.map → chunk-HGKWWZWY.js.map} +0 -0
- /package/dist/{chunk-BCO4CYE4.js.map → chunk-SJU6QZHM.js.map} +0 -0
- /package/dist/{chunk-2VHHJNXY.js.map → chunk-WXKV5N4T.js.map} +0 -0
- /package/dist/{chunk-GBQVYNCD.js.map → chunk-XUNDLCEH.js.map} +0 -0
|
@@ -4,45 +4,28 @@ import {
|
|
|
4
4
|
fetchBalances,
|
|
5
5
|
fetchCollectibles,
|
|
6
6
|
fetchHighestOffer,
|
|
7
|
+
fetchLowestListing,
|
|
8
|
+
getTokenSupplies,
|
|
9
|
+
getTokenSuppliesOptions,
|
|
7
10
|
highestOfferOptions,
|
|
8
11
|
listBalancesOptions,
|
|
9
|
-
listCollectiblesOptions
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
getIndexerClient
|
|
15
|
-
} from "../../chunk-BNAUZXPV.js";
|
|
16
|
-
|
|
17
|
-
// src/react/queries/getTokenSupplies.ts
|
|
18
|
-
import { queryOptions } from "@tanstack/react-query";
|
|
19
|
-
async function getTokenSupplies(args, config) {
|
|
20
|
-
if (args.isLaos721) {
|
|
21
|
-
const laosApi = new LaosAPI();
|
|
22
|
-
return laosApi.getTokenSupplies({
|
|
23
|
-
chainId: args.chainId.toString(),
|
|
24
|
-
contractAddress: args.contractAddress
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
const indexerClient = getIndexerClient(args.chainId, config);
|
|
28
|
-
return await indexerClient.getTokenSupplies(args);
|
|
29
|
-
}
|
|
30
|
-
function getTokenSuppliesOptions(args, config) {
|
|
31
|
-
return queryOptions({
|
|
32
|
-
queryKey: ["getTokenSupplies", args],
|
|
33
|
-
queryFn: () => getTokenSupplies(args, config)
|
|
34
|
-
});
|
|
35
|
-
}
|
|
12
|
+
listCollectiblesOptions,
|
|
13
|
+
lowestListingOptions
|
|
14
|
+
} from "../../chunk-FSJKN4YN.js";
|
|
15
|
+
import "../../chunk-25CAMYCG.js";
|
|
16
|
+
import "../../chunk-ALICO7NG.js";
|
|
36
17
|
export {
|
|
37
18
|
balanceOfCollectibleOptions,
|
|
38
19
|
fetchBalanceOfCollectible,
|
|
39
20
|
fetchBalances,
|
|
40
21
|
fetchCollectibles,
|
|
41
22
|
fetchHighestOffer,
|
|
23
|
+
fetchLowestListing,
|
|
42
24
|
getTokenSupplies,
|
|
43
25
|
getTokenSuppliesOptions,
|
|
44
26
|
highestOfferOptions,
|
|
45
27
|
listBalancesOptions,
|
|
46
|
-
listCollectiblesOptions
|
|
28
|
+
listCollectiblesOptions,
|
|
29
|
+
lowestListingOptions
|
|
47
30
|
};
|
|
48
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { QueryClient } from '@tanstack/react-query';
|
|
2
2
|
import { S as SdkConfig } from '../../sdk-config-DIzJk_tI.js';
|
|
3
3
|
import { State } from 'wagmi';
|
|
4
|
-
import { g as MarketplaceConfig } from '../../builder-types-
|
|
5
|
-
import '../../marketplace.gen-
|
|
4
|
+
import { g as MarketplaceConfig } from '../../builder-types-BY6eD6vD.js';
|
|
5
|
+
import '../../marketplace.gen-DS-MmGEB.js';
|
|
6
6
|
|
|
7
7
|
type InitSSRClientArgs = {
|
|
8
8
|
cookie: string;
|
package/dist/react/ssr/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
marketplaceConfigOptions
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-HGKWWZWY.js";
|
|
4
4
|
import {
|
|
5
5
|
createWagmiConfig
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
} from "../../chunk-25CAMYCG.js";
|
|
7
|
+
import "../../chunk-ALICO7NG.js";
|
|
8
8
|
|
|
9
9
|
// src/react/ssr/create-ssr-client.ts
|
|
10
10
|
import { cookieToInitialState } from "wagmi";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Hex } from 'viem';
|
|
3
|
-
import { O as OrderbookKind, C as ContractType, o as CollectibleOrder,
|
|
3
|
+
import { O as OrderbookKind, C as ContractType, o as CollectibleOrder, k as Order } from '../../../../marketplace.gen-DS-MmGEB.js';
|
|
4
4
|
|
|
5
5
|
declare enum CollectibleCardAction {
|
|
6
6
|
BUY = "Buy",
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CollectibleCard
|
|
3
|
-
} from "../../../../chunk-
|
|
4
|
-
import "../../../../chunk-
|
|
5
|
-
import "../../../../chunk-
|
|
3
|
+
} from "../../../../chunk-QTV77W42.js";
|
|
4
|
+
import "../../../../chunk-5ATGT5S4.js";
|
|
5
|
+
import "../../../../chunk-FH4TZRDV.js";
|
|
6
6
|
import "../../../../chunk-JKCF7HEA.js";
|
|
7
|
-
import "../../../../chunk-
|
|
8
|
-
import "../../../../chunk-
|
|
9
|
-
import "../../../../chunk-
|
|
10
|
-
import "../../../../chunk-
|
|
11
|
-
import "../../../../chunk-BCO4CYE4.js";
|
|
7
|
+
import "../../../../chunk-WXKV5N4T.js";
|
|
8
|
+
import "../../../../chunk-DFI52A2E.js";
|
|
9
|
+
import "../../../../chunk-XUNDLCEH.js";
|
|
10
|
+
import "../../../../chunk-SJU6QZHM.js";
|
|
12
11
|
import "../../../../chunk-Y63BOO6M.js";
|
|
13
|
-
import "../../../../chunk-
|
|
12
|
+
import "../../../../chunk-BGY4WXER.js";
|
|
14
13
|
import "../../../../chunk-FMEEJFAF.js";
|
|
15
14
|
import "../../../../chunk-UISBTKFF.js";
|
|
16
|
-
import "../../../../chunk-XX4EVWBF.js";
|
|
17
15
|
import "../../../../chunk-FUM4OGOQ.js";
|
|
18
|
-
import "../../../../chunk-
|
|
19
|
-
import "../../../../chunk-
|
|
20
|
-
import "../../../../chunk-
|
|
16
|
+
import "../../../../chunk-XX4EVWBF.js";
|
|
17
|
+
import "../../../../chunk-FSJKN4YN.js";
|
|
18
|
+
import "../../../../chunk-HGKWWZWY.js";
|
|
19
|
+
import "../../../../chunk-25CAMYCG.js";
|
|
20
|
+
import "../../../../chunk-ALICO7NG.js";
|
|
21
21
|
export {
|
|
22
22
|
CollectibleCard
|
|
23
23
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../../chunk-
|
|
2
|
-
import "../../../chunk-
|
|
3
|
-
import "../../../chunk-
|
|
1
|
+
import "../../../chunk-WXKV5N4T.js";
|
|
2
|
+
import "../../../chunk-SJU6QZHM.js";
|
|
3
|
+
import "../../../chunk-BGY4WXER.js";
|
|
4
4
|
import "../../../chunk-FMEEJFAF.js";
|
|
5
5
|
import "../../../chunk-UISBTKFF.js";
|
|
6
|
-
import "../../../chunk-XX4EVWBF.js";
|
|
7
6
|
import "../../../chunk-FUM4OGOQ.js";
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
7
|
+
import "../../../chunk-XX4EVWBF.js";
|
|
8
|
+
import "../../../chunk-25CAMYCG.js";
|
|
9
|
+
import "../../../chunk-ALICO7NG.js";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/react/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Hash, Hex, Address } from 'viem';
|
|
3
|
-
import { O as OrderbookKind, h as TokenMetadata,
|
|
3
|
+
import { O as OrderbookKind, h as TokenMetadata, k as Order, M as MarketplaceKind, z as Step } from '../../marketplace.gen-DS-MmGEB.js';
|
|
4
4
|
import { IconProps } from '@0xsequence/design-system';
|
|
5
5
|
import { ComponentType } from 'react';
|
|
6
6
|
export { CollectibleCard } from './components/collectible-card/index.js';
|
package/dist/react/ui/index.js
CHANGED
|
@@ -7,24 +7,24 @@ import {
|
|
|
7
7
|
useSellModal,
|
|
8
8
|
useSuccessfulPurchaseModal,
|
|
9
9
|
useTransferModal
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-QTV77W42.js";
|
|
11
|
+
import "../../chunk-5ATGT5S4.js";
|
|
12
|
+
import "../../chunk-FH4TZRDV.js";
|
|
13
13
|
import "../../chunk-JKCF7HEA.js";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-BCO4CYE4.js";
|
|
14
|
+
import "../../chunk-WXKV5N4T.js";
|
|
15
|
+
import "../../chunk-DFI52A2E.js";
|
|
16
|
+
import "../../chunk-XUNDLCEH.js";
|
|
17
|
+
import "../../chunk-SJU6QZHM.js";
|
|
19
18
|
import "../../chunk-Y63BOO6M.js";
|
|
20
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-BGY4WXER.js";
|
|
21
20
|
import "../../chunk-FMEEJFAF.js";
|
|
22
21
|
import "../../chunk-UISBTKFF.js";
|
|
23
|
-
import "../../chunk-XX4EVWBF.js";
|
|
24
22
|
import "../../chunk-FUM4OGOQ.js";
|
|
25
|
-
import "../../chunk-
|
|
26
|
-
import "../../chunk-
|
|
27
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-XX4EVWBF.js";
|
|
24
|
+
import "../../chunk-FSJKN4YN.js";
|
|
25
|
+
import "../../chunk-HGKWWZWY.js";
|
|
26
|
+
import "../../chunk-25CAMYCG.js";
|
|
27
|
+
import "../../chunk-ALICO7NG.js";
|
|
28
28
|
export {
|
|
29
29
|
CollectibleCard,
|
|
30
30
|
ModalProvider,
|
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
closeModal,
|
|
4
4
|
createActionModalStore,
|
|
5
5
|
openModal
|
|
6
|
-
} from "../../../../../../chunk-
|
|
7
|
-
import "../../../../../../chunk-
|
|
8
|
-
import "../../../../../../chunk-
|
|
9
|
-
import "../../../../../../chunk-
|
|
10
|
-
import "../../../../../../chunk-BCO4CYE4.js";
|
|
6
|
+
} from "../../../../../../chunk-5ATGT5S4.js";
|
|
7
|
+
import "../../../../../../chunk-DFI52A2E.js";
|
|
8
|
+
import "../../../../../../chunk-XUNDLCEH.js";
|
|
9
|
+
import "../../../../../../chunk-SJU6QZHM.js";
|
|
11
10
|
import "../../../../../../chunk-Y63BOO6M.js";
|
|
12
|
-
import "../../../../../../chunk-
|
|
11
|
+
import "../../../../../../chunk-BGY4WXER.js";
|
|
13
12
|
import "../../../../../../chunk-FMEEJFAF.js";
|
|
14
13
|
import "../../../../../../chunk-UISBTKFF.js";
|
|
15
|
-
import "../../../../../../chunk-XX4EVWBF.js";
|
|
16
14
|
import "../../../../../../chunk-FUM4OGOQ.js";
|
|
17
|
-
import "../../../../../../chunk-
|
|
18
|
-
import "../../../../../../chunk-
|
|
19
|
-
import "../../../../../../chunk-
|
|
15
|
+
import "../../../../../../chunk-XX4EVWBF.js";
|
|
16
|
+
import "../../../../../../chunk-FSJKN4YN.js";
|
|
17
|
+
import "../../../../../../chunk-HGKWWZWY.js";
|
|
18
|
+
import "../../../../../../chunk-25CAMYCG.js";
|
|
19
|
+
import "../../../../../../chunk-ALICO7NG.js";
|
|
20
20
|
export {
|
|
21
21
|
ActionModal,
|
|
22
22
|
closeModal,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SequenceIndexer } from '@0xsequence/indexer';
|
|
2
2
|
import { SequenceMetadata } from '@0xsequence/metadata';
|
|
3
3
|
import { S as SdkConfig, E as Env } from './sdk-config-DIzJk_tI.js';
|
|
4
|
-
import { ap as Marketplace } from './marketplace.gen-
|
|
4
|
+
import { ap as Marketplace } from './marketplace.gen-DS-MmGEB.js';
|
|
5
5
|
|
|
6
6
|
declare class SequenceMarketplace extends Marketplace {
|
|
7
7
|
projectAccessKey: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { E as Env, S as SdkConfig } from '../sdk-config-DIzJk_tI.js';
|
|
2
|
-
import { w as Currency } from '../marketplace.gen-
|
|
3
|
-
export { q as Activity, y as AdditionalFee, A as Asset,
|
|
4
|
-
export { C as CollectionFilterSettings, E as EcosystemWalletSettings, F as FilterCondition, d as MarketplaceCollection, g as MarketplaceConfig, f as MarketplaceSettings, e as MarketplaceSocials, a as MarketplaceType, M as MarketplaceWallet, b as MarketplaceWalletOptions, c as MetadataFilterRule } from '../builder-types-
|
|
2
|
+
import { w as Currency } from '../marketplace.gen-DS-MmGEB.js';
|
|
3
|
+
export { q as Activity, y as AdditionalFee, A as Asset, K as CheckoutOptions, J as CheckoutOptionsItem, I as CheckoutOptionsMarketplaceOrder, v as Collectible, o as CollectibleOrder, f as CollectibleStatus, m as CollectiblesFilter, r as Collection, s as CollectionConfig, t as CollectionLastSynced, d as CollectionStatus, C as ContractType, D as CreateReq, H as Domain, n as FeeBreakdown, F as Filter, G as GetOrdersInput, M as MarketplaceKind, k as Order, x as OrderData, p as OrderFilter, b as OrderSide, c as OrderStatus, O as OrderbookKind, i as Page, B as PostRequest, u as Project, e as ProjectStatus, l as PropertyFilter, P as PropertyType, E as Signature, j as SortBy, S as SortOrder, a as SourceKind, z as Step, g as StepType, h as TokenMetadata, T as TransactionCrypto, W as WalletKind } from '../marketplace.gen-DS-MmGEB.js';
|
|
4
|
+
export { C as CollectionFilterSettings, E as EcosystemWalletSettings, F as FilterCondition, d as MarketplaceCollection, g as MarketplaceConfig, f as MarketplaceSettings, e as MarketplaceSocials, a as MarketplaceType, M as MarketplaceWallet, b as MarketplaceWalletOptions, c as MetadataFilterRule } from '../builder-types-BY6eD6vD.js';
|
|
5
5
|
|
|
6
6
|
type Price = {
|
|
7
7
|
amountRaw: string;
|
package/dist/types/index.js
CHANGED
|
@@ -2,12 +2,11 @@ import {
|
|
|
2
2
|
FilterCondition,
|
|
3
3
|
MarketplaceType,
|
|
4
4
|
MarketplaceWallet
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-25CAMYCG.js";
|
|
6
6
|
import {
|
|
7
7
|
CollectibleStatus,
|
|
8
8
|
CollectionStatus,
|
|
9
9
|
ContractType,
|
|
10
|
-
ExecuteType,
|
|
11
10
|
MarketplaceKind,
|
|
12
11
|
OrderSide,
|
|
13
12
|
OrderStatus,
|
|
@@ -19,12 +18,11 @@ import {
|
|
|
19
18
|
StepType,
|
|
20
19
|
TransactionCrypto,
|
|
21
20
|
WalletKind
|
|
22
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-ALICO7NG.js";
|
|
23
22
|
export {
|
|
24
23
|
CollectibleStatus,
|
|
25
24
|
CollectionStatus,
|
|
26
25
|
ContractType,
|
|
27
|
-
ExecuteType,
|
|
28
26
|
FilterCondition,
|
|
29
27
|
MarketplaceKind,
|
|
30
28
|
MarketplaceType,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Chain } from 'viem';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ContractType, O as OrderbookKind, M as MarketplaceKind, D as CreateReq } from './marketplace.gen-
|
|
3
|
+
import { C as ContractType, O as OrderbookKind, M as MarketplaceKind, D as CreateReq } from './marketplace.gen-DS-MmGEB.js';
|
|
4
4
|
import { S as SdkConfig } from './sdk-config-DIzJk_tI.js';
|
|
5
|
-
import { g as MarketplaceConfig } from './builder-types-
|
|
5
|
+
import { g as MarketplaceConfig } from './builder-types-BY6eD6vD.js';
|
|
6
6
|
|
|
7
7
|
declare const QueryArgSchema: z.ZodOptional<z.ZodObject<{
|
|
8
8
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
package/dist/utils/abi/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../chunk-UISBTKFF.js";
|
|
2
|
-
import {
|
|
3
|
-
EIP2981_ABI,
|
|
4
|
-
SequenceMarketplaceV1_ABI,
|
|
5
|
-
SequenceMarketplaceV2_ABI
|
|
6
|
-
} from "../../chunk-XX4EVWBF.js";
|
|
7
2
|
import {
|
|
8
3
|
ERC1155_ABI,
|
|
9
4
|
ERC20_ABI,
|
|
10
5
|
ERC721_ABI
|
|
11
6
|
} from "../../chunk-FUM4OGOQ.js";
|
|
7
|
+
import {
|
|
8
|
+
EIP2981_ABI,
|
|
9
|
+
SequenceMarketplaceV1_ABI,
|
|
10
|
+
SequenceMarketplaceV2_ABI
|
|
11
|
+
} from "../../chunk-XX4EVWBF.js";
|
|
12
12
|
export {
|
|
13
13
|
EIP2981_ABI,
|
|
14
14
|
ERC1155_ABI,
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { EIP2981_ABI, SequenceMarketplaceV1_ABI, SequenceMarketplaceV2_ABI } fro
|
|
|
2
2
|
export { ERC1155_ABI, ERC20_ABI, ERC721_ABI } from './abi/token/index.js';
|
|
3
3
|
import { Image } from '@0xsequence/design-system';
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
|
-
import { M as MarketplaceKind } from '../marketplace.gen-
|
|
5
|
+
import { M as MarketplaceKind } from '../marketplace.gen-DS-MmGEB.js';
|
|
6
6
|
import { NetworkConfig } from '@0xsequence/network';
|
|
7
7
|
import { Chain } from 'viem';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
@@ -18,8 +18,60 @@ type CalculatePriceDifferencePercentageArgs = {
|
|
|
18
18
|
basePriceRaw: bigint;
|
|
19
19
|
decimals: number;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Calculates the percentage difference between two prices
|
|
23
|
+
* @param args - Object containing input price, base price, and decimals
|
|
24
|
+
* @returns The percentage difference as a string with 2 decimal places
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const diff = calculatePriceDifferencePercentage({
|
|
28
|
+
* inputPriceRaw: 1000000n,
|
|
29
|
+
* basePriceRaw: 900000n,
|
|
30
|
+
* decimals: 6
|
|
31
|
+
* }); // Returns "11.11"
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
21
34
|
declare const calculatePriceDifferencePercentage: ({ inputPriceRaw, basePriceRaw, decimals, }: CalculatePriceDifferencePercentageArgs) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Formats a raw price amount with the specified number of decimal places
|
|
37
|
+
* @param amount - The raw price amount as a bigint
|
|
38
|
+
* @param decimals - Number of decimal places to format to
|
|
39
|
+
* @returns Formatted price string with proper decimal and thousands separators
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const formatted = formatPrice(1000000n, 6); // Returns "1.000000"
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
22
45
|
declare const formatPrice: (amount: bigint, decimals: number) => string;
|
|
46
|
+
/**
|
|
47
|
+
* Calculates the final earnings amount after applying multiple fee percentages
|
|
48
|
+
* @param amount - The raw amount as a bigint (e.g., from a blockchain transaction)
|
|
49
|
+
* @param decimals - The number of decimal places for the currency (e.g., 18 for ETH, 6 for USDC)
|
|
50
|
+
* @param fees - Array of fee percentages to apply (e.g., [2.5, 1.0] for 2.5% and 1% fees)
|
|
51
|
+
* @returns Formatted string representing the final earnings after all fees are applied
|
|
52
|
+
* @throws Will return '0' if there's an error in calculation
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const earnings = calculateEarningsAfterFees(
|
|
56
|
+
* 1000000000000000000n, // 1 ETH
|
|
57
|
+
* 18, // ETH decimals
|
|
58
|
+
* [2.5, 1.0] // 2.5% and 1% fees
|
|
59
|
+
* ); // Returns "0.96525" (1 ETH after 2.5% and 1% fees)
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
declare const calculateEarningsAfterFees: (amount: bigint, decimals: number, fees: number[]) => string;
|
|
63
|
+
/**
|
|
64
|
+
* Formats a price amount with fee applied
|
|
65
|
+
* @param amount - The raw price amount as a bigint
|
|
66
|
+
* @param decimals - Number of decimal places for the currency
|
|
67
|
+
* @param feePercentage - Fee percentage to apply (e.g., 3.5 for 3.5%)
|
|
68
|
+
* @returns Formatted price string with fee applied and proper decimal/thousands separators
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const priceWithFee = formatPriceWithFee(1000000n, 6, 3.5); // Returns "1.035"
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
declare const formatPriceWithFee: (amount: bigint, decimals: number, feePercentage: number) => string;
|
|
23
75
|
|
|
24
76
|
interface Marketplace {
|
|
25
77
|
logo: ComponentType<React.ComponentProps<typeof Image>>;
|
|
@@ -35,4 +87,4 @@ declare const networkToWagmiChain: (network: NetworkConfig) => Chain;
|
|
|
35
87
|
|
|
36
88
|
declare function cn(...inputs: ClassValue[]): string;
|
|
37
89
|
|
|
38
|
-
export { calculatePriceDifferencePercentage, cn, compareAddress, formatPrice, getMarketplaceDetails, getPresentableChainName, networkToWagmiChain, truncateEnd, truncateMiddle };
|
|
90
|
+
export { calculateEarningsAfterFees, calculatePriceDifferencePercentage, cn, compareAddress, formatPrice, formatPriceWithFee, getMarketplaceDetails, getPresentableChainName, networkToWagmiChain, truncateEnd, truncateMiddle };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
+
calculateEarningsAfterFees,
|
|
2
3
|
calculatePriceDifferencePercentage,
|
|
3
4
|
cn,
|
|
4
5
|
compareAddress,
|
|
5
6
|
formatPrice,
|
|
7
|
+
formatPriceWithFee,
|
|
6
8
|
getMarketplaceDetails,
|
|
7
9
|
getPresentableChainName,
|
|
8
10
|
networkToWagmiChain,
|
|
9
11
|
truncateEnd,
|
|
10
12
|
truncateMiddle
|
|
11
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-BGY4WXER.js";
|
|
12
14
|
import "../chunk-FMEEJFAF.js";
|
|
13
15
|
import "../chunk-UISBTKFF.js";
|
|
14
|
-
import {
|
|
15
|
-
EIP2981_ABI,
|
|
16
|
-
SequenceMarketplaceV1_ABI,
|
|
17
|
-
SequenceMarketplaceV2_ABI
|
|
18
|
-
} from "../chunk-XX4EVWBF.js";
|
|
19
16
|
import {
|
|
20
17
|
ERC1155_ABI,
|
|
21
18
|
ERC20_ABI,
|
|
22
19
|
ERC721_ABI
|
|
23
20
|
} from "../chunk-FUM4OGOQ.js";
|
|
24
|
-
import
|
|
25
|
-
|
|
21
|
+
import {
|
|
22
|
+
EIP2981_ABI,
|
|
23
|
+
SequenceMarketplaceV1_ABI,
|
|
24
|
+
SequenceMarketplaceV2_ABI
|
|
25
|
+
} from "../chunk-XX4EVWBF.js";
|
|
26
|
+
import "../chunk-25CAMYCG.js";
|
|
27
|
+
import "../chunk-ALICO7NG.js";
|
|
26
28
|
export {
|
|
27
29
|
EIP2981_ABI,
|
|
28
30
|
ERC1155_ABI,
|
|
@@ -30,10 +32,12 @@ export {
|
|
|
30
32
|
ERC721_ABI,
|
|
31
33
|
SequenceMarketplaceV1_ABI,
|
|
32
34
|
SequenceMarketplaceV2_ABI,
|
|
35
|
+
calculateEarningsAfterFees,
|
|
33
36
|
calculatePriceDifferencePercentage,
|
|
34
37
|
cn,
|
|
35
38
|
compareAddress,
|
|
36
39
|
formatPrice,
|
|
40
|
+
formatPriceWithFee,
|
|
37
41
|
getMarketplaceDetails,
|
|
38
42
|
getPresentableChainName,
|
|
39
43
|
networkToWagmiChain,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xsequence/marketplace-sdk",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.css"
|
|
@@ -107,6 +107,8 @@
|
|
|
107
107
|
"test:update": "vitest --update",
|
|
108
108
|
"coverage": "vitest run --coverage",
|
|
109
109
|
"eslint": "eslint .",
|
|
110
|
-
"eslint:fix": "eslint --fix ."
|
|
110
|
+
"eslint:fix": "eslint --fix .",
|
|
111
|
+
"changeset": "changeset",
|
|
112
|
+
"version": "changeset version"
|
|
111
113
|
}
|
|
112
114
|
}
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
ContractType,
|
|
12
12
|
type Currency,
|
|
13
13
|
CurrencyStatus,
|
|
14
|
-
ExecuteType,
|
|
15
14
|
type Marketplace,
|
|
16
15
|
MarketplaceKind,
|
|
17
16
|
type Order,
|
|
@@ -149,7 +148,11 @@ export const mockSteps: Step[] = [
|
|
|
149
148
|
to: '0x1234567890123456789012345678901234567890',
|
|
150
149
|
value: '0',
|
|
151
150
|
price: '0',
|
|
152
|
-
|
|
151
|
+
post: {
|
|
152
|
+
method: 'POST',
|
|
153
|
+
endpoint: '/api/order',
|
|
154
|
+
body: {},
|
|
155
|
+
},
|
|
153
156
|
},
|
|
154
157
|
];
|
|
155
158
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// marketplace-api
|
|
2
|
+
// marketplace-api 7ab3354385f317680dd861e82a18aa351d8579d5
|
|
3
3
|
// --
|
|
4
|
-
// Code generated by webrpc-gen@v0.
|
|
4
|
+
// Code generated by webrpc-gen@v0.25.1 with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
6
6
|
// webrpc-gen -schema=marketplace.ridl -target=typescript -client -out=./clients/marketplace.gen.ts
|
|
7
7
|
|
|
8
8
|
export const WebrpcHeader = "Webrpc"
|
|
9
9
|
|
|
10
|
-
export const WebrpcHeaderValue = "webrpc@v0.
|
|
10
|
+
export const WebrpcHeaderValue = "webrpc@v0.25.1;gen-typescript@v0.17.0;marketplace-api@v0.0.0-7ab3354385f317680dd861e82a18aa351d8579d5"
|
|
11
11
|
|
|
12
12
|
// WebRPC description and code-gen version
|
|
13
13
|
export const WebRPCVersion = "v1"
|
|
@@ -16,7 +16,7 @@ export const WebRPCVersion = "v1"
|
|
|
16
16
|
export const WebRPCSchemaVersion = ""
|
|
17
17
|
|
|
18
18
|
// Schema hash generated from your RIDL schema
|
|
19
|
-
export const WebRPCSchemaHash = "
|
|
19
|
+
export const WebRPCSchemaHash = "7ab3354385f317680dd861e82a18aa351d8579d5"
|
|
20
20
|
|
|
21
21
|
type WebrpcGenVersions = {
|
|
22
22
|
webrpcGenVersion: string;
|
|
@@ -526,6 +526,9 @@ export interface Admin {
|
|
|
526
526
|
updateCollection(args: UpdateCollectionArgs, headers?: object, signal?: AbortSignal): Promise<UpdateCollectionReturn>
|
|
527
527
|
listCollections(args: ListCollectionsArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectionsReturn>
|
|
528
528
|
deleteCollection(args: DeleteCollectionArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCollectionReturn>
|
|
529
|
+
/**
|
|
530
|
+
* determine what should happen here
|
|
531
|
+
*/
|
|
529
532
|
syncCollection(args: SyncCollectionArgs, headers?: object, signal?: AbortSignal): Promise<SyncCollectionReturn>
|
|
530
533
|
createCurrency(args: CreateCurrencyArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrencyReturn>
|
|
531
534
|
createCurrencies(args: CreateCurrenciesArgs, headers?: object, signal?: AbortSignal): Promise<CreateCurrenciesReturn>
|
|
@@ -630,18 +633,45 @@ export interface Marketplace {
|
|
|
630
633
|
listOffersForCollectible(args: ListOffersForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<ListOffersForCollectibleReturn>
|
|
631
634
|
getCountOfListingsForCollectible(args: GetCountOfListingsForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfListingsForCollectibleReturn>
|
|
632
635
|
getCountOfOffersForCollectible(args: GetCountOfOffersForCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfOffersForCollectibleReturn>
|
|
636
|
+
/**
|
|
637
|
+
* @deprecated Please use GetLowestPriceOfferForCollectible instead.
|
|
638
|
+
*/
|
|
633
639
|
getCollectibleLowestOffer(args: GetCollectibleLowestOfferArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleLowestOfferReturn>
|
|
640
|
+
/**
|
|
641
|
+
* @deprecated Please use GetHighestPriceOfferForCollectible instead.
|
|
642
|
+
*/
|
|
634
643
|
getCollectibleHighestOffer(args: GetCollectibleHighestOfferArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleHighestOfferReturn>
|
|
644
|
+
/**
|
|
645
|
+
* @deprecated Please use GetLowestPriceListingForCollectible instead.
|
|
646
|
+
*/
|
|
635
647
|
getCollectibleLowestListing(args: GetCollectibleLowestListingArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleLowestListingReturn>
|
|
648
|
+
/**
|
|
649
|
+
* @deprecated Please use GetHighestPriceListingForCollectible instead.
|
|
650
|
+
*/
|
|
636
651
|
getCollectibleHighestListing(args: GetCollectibleHighestListingArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleHighestListingReturn>
|
|
652
|
+
/**
|
|
653
|
+
* @deprecated Please use ListListingsForCollectible instead.
|
|
654
|
+
*/
|
|
637
655
|
listCollectibleListings(args: ListCollectibleListingsArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectibleListingsReturn>
|
|
656
|
+
/**
|
|
657
|
+
* @deprecated Please use ListOffersForCollectible instead.
|
|
658
|
+
*/
|
|
638
659
|
listCollectibleOffers(args: ListCollectibleOffersArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectibleOffersReturn>
|
|
660
|
+
/**
|
|
661
|
+
* checkout process
|
|
662
|
+
*/
|
|
639
663
|
generateBuyTransaction(args: GenerateBuyTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateBuyTransactionReturn>
|
|
640
664
|
generateSellTransaction(args: GenerateSellTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateSellTransactionReturn>
|
|
641
665
|
generateListingTransaction(args: GenerateListingTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateListingTransactionReturn>
|
|
642
666
|
generateOfferTransaction(args: GenerateOfferTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateOfferTransactionReturn>
|
|
643
667
|
generateCancelTransaction(args: GenerateCancelTransactionArgs, headers?: object, signal?: AbortSignal): Promise<GenerateCancelTransactionReturn>
|
|
668
|
+
/**
|
|
669
|
+
* only used in a case of external transactions ( when we create off-chain transactions ) for instance opensea market
|
|
670
|
+
*/
|
|
644
671
|
execute(args: ExecuteArgs, headers?: object, signal?: AbortSignal): Promise<ExecuteReturn>
|
|
672
|
+
/**
|
|
673
|
+
* list of collectibles with best order for each collectible, by default this only returns collectibles with an order
|
|
674
|
+
*/
|
|
645
675
|
listCollectibles(args: ListCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<ListCollectiblesReturn>
|
|
646
676
|
getCountOfAllCollectibles(args: GetCountOfAllCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfAllCollectiblesReturn>
|
|
647
677
|
getCountOfFilteredCollectibles(args: GetCountOfFilteredCollectiblesArgs, headers?: object, signal?: AbortSignal): Promise<GetCountOfFilteredCollectiblesReturn>
|
|
@@ -871,8 +901,10 @@ export interface GenerateCancelTransactionReturn {
|
|
|
871
901
|
steps: Array<Step>
|
|
872
902
|
}
|
|
873
903
|
export interface ExecuteArgs {
|
|
874
|
-
signature: string
|
|
875
|
-
executeType: ExecuteType
|
|
904
|
+
signature: string
|
|
905
|
+
//executeType: ExecuteType is deprecated, but we cant hide it in webrpc for now
|
|
906
|
+
method: string
|
|
907
|
+
endpoint: string
|
|
876
908
|
body: any
|
|
877
909
|
}
|
|
878
910
|
|
|
@@ -2146,3 +2178,4 @@ export const webrpcErrorByCode: { [code: number]: any } = {
|
|
|
2146
2178
|
}
|
|
2147
2179
|
|
|
2148
2180
|
export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>
|
|
2181
|
+
|
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
CollectibleStatus,
|
|
9
9
|
CollectionStatus,
|
|
10
10
|
ContractType,
|
|
11
|
-
ExecuteType,
|
|
12
11
|
MarketplaceKind,
|
|
13
12
|
OrderSide,
|
|
14
13
|
OrderStatus,
|
|
@@ -79,8 +78,6 @@ export const transactionSwapProviderSchema = z.nativeEnum(
|
|
|
79
78
|
TransactionSwapProvider,
|
|
80
79
|
);
|
|
81
80
|
|
|
82
|
-
export const executeTypeSchema = z.nativeEnum(ExecuteType);
|
|
83
|
-
|
|
84
81
|
export const sortBySchema = z.object({
|
|
85
82
|
column: z.string(),
|
|
86
83
|
order: sortOrderSchema,
|
|
@@ -307,16 +304,6 @@ export const generateOfferTransactionArgsSchema = z.object({
|
|
|
307
304
|
walletType: walletKindSchema.optional(),
|
|
308
305
|
});
|
|
309
306
|
|
|
310
|
-
export const executeArgsSchema = z.object({
|
|
311
|
-
signature: z.string(),
|
|
312
|
-
executeType: executeTypeSchema,
|
|
313
|
-
body: z.any(),
|
|
314
|
-
});
|
|
315
|
-
|
|
316
|
-
export const executeReturnSchema = z.object({
|
|
317
|
-
orderId: z.string(),
|
|
318
|
-
});
|
|
319
|
-
|
|
320
307
|
export const getCountOfAllCollectiblesArgsSchema = z.object({
|
|
321
308
|
contractAddress: z.string(),
|
|
322
309
|
});
|
|
@@ -663,13 +650,15 @@ export const collectionSchema = z.object({
|
|
|
663
650
|
});
|
|
664
651
|
|
|
665
652
|
export const stepSchema = z.object({
|
|
666
|
-
id:
|
|
667
|
-
data: z.string(),
|
|
668
|
-
to: z.string(),
|
|
669
|
-
value: z.string(),
|
|
653
|
+
id: z.nativeEnum(StepType),
|
|
654
|
+
data: z.string().optional(),
|
|
655
|
+
to: z.string().optional(),
|
|
656
|
+
value: z.string().optional(),
|
|
657
|
+
price: z.string().optional(),
|
|
670
658
|
signature: signatureSchema.optional(),
|
|
671
659
|
post: postRequestSchema.optional(),
|
|
672
|
-
|
|
660
|
+
method: z.string().optional(),
|
|
661
|
+
endpoint: z.string().optional(),
|
|
673
662
|
});
|
|
674
663
|
|
|
675
664
|
export const generateBuyTransactionReturnSchema = z.object({
|