@xoxno/sdk-js 0.1.281 → 0.1.283

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.
Files changed (111) hide show
  1. package/dist/interactor.cjs.js +1 -1
  2. package/dist/interactor.esm.js +1 -1
  3. package/package.json +2 -20
  4. package/dist/848.cjs.js +0 -2
  5. package/dist/848.cjs.js.LICENSE.txt +0 -29
  6. package/dist/848.esm.js +0 -2
  7. package/dist/848.esm.js.LICENSE.txt +0 -29
  8. package/dist/dist/email.esm.d.ts +0 -27
  9. package/dist/dist/email.esm.d.ts.map +0 -1
  10. package/dist/email/approval-accepted-email.d.ts +0 -21
  11. package/dist/email/approval-accepted-email.d.ts.map +0 -1
  12. package/dist/email/approval-pending-email.d.ts +0 -21
  13. package/dist/email/approval-pending-email.d.ts.map +0 -1
  14. package/dist/email/approval-rejected-email.d.ts +0 -21
  15. package/dist/email/approval-rejected-email.d.ts.map +0 -1
  16. package/dist/email/checkedin-email.d.ts +0 -23
  17. package/dist/email/checkedin-email.d.ts.map +0 -1
  18. package/dist/email/email.d.ts +0 -36
  19. package/dist/email/email.d.ts.map +0 -1
  20. package/dist/email/event-email.d.ts +0 -24
  21. package/dist/email/event-email.d.ts.map +0 -1
  22. package/dist/email/invite-email.d.ts +0 -25
  23. package/dist/email/invite-email.d.ts.map +0 -1
  24. package/dist/email/types.d.ts +0 -63
  25. package/dist/email/types.d.ts.map +0 -1
  26. package/dist/email/utils.d.ts +0 -95
  27. package/dist/email/utils.d.ts.map +0 -1
  28. package/dist/email.cjs.js +0 -1854
  29. package/dist/email.cjs.js.LICENSE.txt +0 -82
  30. package/dist/email.d.ts +0 -10
  31. package/dist/email.d.ts.map +0 -1
  32. package/dist/email.esm.js +0 -1854
  33. package/dist/email.esm.js.LICENSE.txt +0 -82
  34. package/dist/scripts/renderEmail.d.ts +0 -2
  35. package/dist/scripts/renderEmail.d.ts.map +0 -1
  36. package/dist/src/collection/index.d.ts +0 -301
  37. package/dist/src/collection/index.d.ts.map +0 -1
  38. package/dist/src/common/index.d.ts +0 -72
  39. package/dist/src/common/index.d.ts.map +0 -1
  40. package/dist/src/email/approval-accepted-email.d.ts +0 -21
  41. package/dist/src/email/approval-accepted-email.d.ts.map +0 -1
  42. package/dist/src/email/approval-pending-email.d.ts +0 -21
  43. package/dist/src/email/approval-pending-email.d.ts.map +0 -1
  44. package/dist/src/email/approval-rejected-email.d.ts +0 -21
  45. package/dist/src/email/approval-rejected-email.d.ts.map +0 -1
  46. package/dist/src/email/checkedin-email.d.ts +0 -23
  47. package/dist/src/email/checkedin-email.d.ts.map +0 -1
  48. package/dist/src/email/email.d.ts +0 -36
  49. package/dist/src/email/email.d.ts.map +0 -1
  50. package/dist/src/email/event-email.d.ts +0 -24
  51. package/dist/src/email/event-email.d.ts.map +0 -1
  52. package/dist/src/email/invite-email.d.ts +0 -25
  53. package/dist/src/email/invite-email.d.ts.map +0 -1
  54. package/dist/src/email/types.d.ts +0 -63
  55. package/dist/src/email/types.d.ts.map +0 -1
  56. package/dist/src/email/utils.d.ts +0 -95
  57. package/dist/src/email/utils.d.ts.map +0 -1
  58. package/dist/src/email.d.ts +0 -10
  59. package/dist/src/email.d.ts.map +0 -1
  60. package/dist/src/index.d.ts +0 -10
  61. package/dist/src/index.d.ts.map +0 -1
  62. package/dist/src/interactions/index.d.ts +0 -256
  63. package/dist/src/interactions/index.d.ts.map +0 -1
  64. package/dist/src/interactor.d.ts +0 -6
  65. package/dist/src/interactor.d.ts.map +0 -1
  66. package/dist/src/launchpad/index.d.ts +0 -79
  67. package/dist/src/launchpad/index.d.ts.map +0 -1
  68. package/dist/src/nft/index.d.ts +0 -69
  69. package/dist/src/nft/index.d.ts.map +0 -1
  70. package/dist/src/scripts/renderEmail.d.ts +0 -2
  71. package/dist/src/scripts/renderEmail.d.ts.map +0 -1
  72. package/dist/src/staking/index.d.ts +0 -12
  73. package/dist/src/staking/index.d.ts.map +0 -1
  74. package/dist/src/types/collection.d.ts +0 -856
  75. package/dist/src/types/collection.d.ts.map +0 -1
  76. package/dist/src/types/common.d.ts +0 -72
  77. package/dist/src/types/common.d.ts.map +0 -1
  78. package/dist/src/types/event.d.ts +0 -125
  79. package/dist/src/types/event.d.ts.map +0 -1
  80. package/dist/src/types/index.d.ts +0 -9
  81. package/dist/src/types/index.d.ts.map +0 -1
  82. package/dist/src/types/interactions.d.ts +0 -98
  83. package/dist/src/types/interactions.d.ts.map +0 -1
  84. package/dist/src/types/nft.d.ts +0 -122
  85. package/dist/src/types/nft.d.ts.map +0 -1
  86. package/dist/src/types/staking.d.ts +0 -68
  87. package/dist/src/types/staking.d.ts.map +0 -1
  88. package/dist/src/types/trading.d.ts +0 -115
  89. package/dist/src/types/trading.d.ts.map +0 -1
  90. package/dist/src/types/user.d.ts +0 -303
  91. package/dist/src/types/user.d.ts.map +0 -1
  92. package/dist/src/users/index.d.ts +0 -208
  93. package/dist/src/users/index.d.ts.map +0 -1
  94. package/dist/src/utils/SmartContractAbis.d.ts +0 -16
  95. package/dist/src/utils/SmartContractAbis.d.ts.map +0 -1
  96. package/dist/src/utils/SmartContractService.d.ts +0 -4
  97. package/dist/src/utils/SmartContractService.d.ts.map +0 -1
  98. package/dist/src/utils/api.d.ts +0 -31
  99. package/dist/src/utils/api.d.ts.map +0 -1
  100. package/dist/src/utils/const.d.ts +0 -14
  101. package/dist/src/utils/const.d.ts.map +0 -1
  102. package/dist/src/utils/getActivity.d.ts +0 -11
  103. package/dist/src/utils/getActivity.d.ts.map +0 -1
  104. package/dist/src/utils/helpers.d.ts +0 -4
  105. package/dist/src/utils/helpers.d.ts.map +0 -1
  106. package/dist/src/utils/regex.d.ts +0 -3
  107. package/dist/src/utils/regex.d.ts.map +0 -1
  108. package/dist/src/utils/scCalls.d.ts +0 -10
  109. package/dist/src/utils/scCalls.d.ts.map +0 -1
  110. package/dist/src/utils.d.ts +0 -28
  111. package/dist/src/utils.d.ts.map +0 -1
@@ -1,25 +0,0 @@
1
- import React, { type ComponentProps } from 'react';
2
- import { EventUserRoles } from '../types';
3
- import { IEmailConfig } from '../utils';
4
- import { IEvent } from './types';
5
- import type { WithUnsubscribeToken } from './utils';
6
- type IProps = {
7
- host?: IEmailConfig;
8
- name: string;
9
- event: Pick<IEvent, 'name' | 'backgroundImage' | 'eventId'> & {
10
- inviteId: string;
11
- role: EventUserRoles[];
12
- };
13
- style?: {
14
- background: string;
15
- backgroundColor: string;
16
- };
17
- };
18
- declare const InviteEmail: ({ host, event, name, style, unsubscribeToken, }: IProps & WithUnsubscribeToken) => React.JSX.Element;
19
- export declare const renderInviteEmail: (props: ComponentProps<typeof InviteEmail>) => Promise<{
20
- html: string;
21
- plainText: string;
22
- subject: string;
23
- }>;
24
- export {};
25
- //# sourceMappingURL=invite-email.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invite-email.d.ts","sourceRoot":"","sources":["../../../src/email/invite-email.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,KAAK,cAAc,EAAE,MAAM,OAAO,CAAA;AAKjE,OAAO,EAAc,cAAc,EAAE,MAAM,UAAU,CAAA;AACrD,OAAO,EAAe,YAAY,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,EAAgB,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAgDjE,KAAK,MAAM,GAAG;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC,GAAG;QAC5D,QAAQ,EAAE,MAAM,CAAA;QAChB,IAAI,EAAE,cAAc,EAAE,CAAA;KACvB,CAAA;IACD,KAAK,CAAC,EAAE;QACN,UAAU,EAAE,MAAM,CAAA;QAClB,eAAe,EAAE,MAAM,CAAA;KACxB,CAAA;CACF,CAAA;AAID,QAAA,MAAM,WAAW,oDAMd,MAAM,GAAG,oBAAoB,sBAqG/B,CAAA;AAED,eAAO,MAAM,iBAAiB,UACrB,cAAc,CAAC,OAAO,WAAW,CAAC;;;;EAK1C,CAAA"}
@@ -1,63 +0,0 @@
1
- import type { IEventDoc } from '../types';
2
- import { NftActivityType } from '../types';
3
- export declare const offerTradeTypes: readonly [NftActivityType.OFFER_TRADE, NftActivityType.GLOBAL_OFFER_TRADE];
4
- export declare const tradeTypes: readonly [NftActivityType.TRADE, NftActivityType.BULK_TRADE, NftActivityType.OTHER_TRADE];
5
- export declare const offerTypes: readonly [NftActivityType.OFFER_CREATE, NftActivityType.OFFER_REJECT];
6
- export declare const bidTypes: readonly [NftActivityType.AUCTION_BID, NftActivityType.AUCTION_OUT_BID];
7
- export declare const depositTypes: readonly ["deposit", "withdrawDeposit"];
8
- export declare const verifyEmailTypes: readonly ["verifyEmail"];
9
- export type IOfferTradeTypes = (typeof offerTradeTypes)[number];
10
- export type ITradeTypes = (typeof tradeTypes)[number];
11
- export type IDepositTypes = (typeof depositTypes)[number];
12
- export type IBidTypes = (typeof bidTypes)[number];
13
- export type IOfferTypes = (typeof offerTypes)[number];
14
- export type IVerifyEmailTypes = (typeof verifyEmailTypes)[number];
15
- declare const emailActivityTypes: readonly [NftActivityType.OFFER_TRADE, NftActivityType.GLOBAL_OFFER_TRADE, NftActivityType.TRADE, NftActivityType.BULK_TRADE, NftActivityType.OTHER_TRADE, NftActivityType.OFFER_CREATE, NftActivityType.OFFER_REJECT, "deposit", "withdrawDeposit", NftActivityType.AUCTION_BID, NftActivityType.AUCTION_OUT_BID, "verifyEmail"];
16
- export type IEmailActivityType = (typeof emailActivityTypes)[number];
17
- export declare enum NotificationAssetType {
18
- NFT = "nft",
19
- USER = "user",
20
- CHAT = "chat"
21
- }
22
- export interface IBaseNotification {
23
- id: string;
24
- isRead: boolean;
25
- txHash: string;
26
- source: string;
27
- activityType: IEmailActivityType | '';
28
- message?: string;
29
- asset: {
30
- type: NotificationAssetType;
31
- collection?: string;
32
- identifier?: string;
33
- address?: string;
34
- name?: string;
35
- url?: string;
36
- };
37
- activity: {
38
- price?: number;
39
- paymentToken?: string;
40
- quantity?: number;
41
- buyer?: string;
42
- seller?: string;
43
- previousBidder?: string;
44
- deadline?: number;
45
- unreadCount?: number;
46
- };
47
- owner: string;
48
- timestamp: number;
49
- }
50
- export interface INotification extends Omit<IBaseNotification, 'asset'> {
51
- asset: Omit<IBaseNotification['asset'], 'url'> & {
52
- url: string[];
53
- };
54
- }
55
- export interface IEvent {
56
- name: string;
57
- backgroundImage: string;
58
- time: string;
59
- location: IEventDoc['location'];
60
- eventId: string;
61
- }
62
- export {};
63
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/email/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,eAAO,MAAM,eAAe,4EAGlB,CAAA;AAEV,eAAO,MAAM,UAAU,2FAIb,CAAA;AAEV,eAAO,MAAM,UAAU,uEAGb,CAAA;AAEV,eAAO,MAAM,QAAQ,yEAGX,CAAA;AAEV,eAAO,MAAM,YAAY,yCAA0C,CAAA;AAEnE,eAAO,MAAM,gBAAgB,0BAA2B,CAAA;AAExD,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAE/D,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAErD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAA;AAEzD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,UAAU,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rE,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CACnE;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,MAAM,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IAC/B,OAAO,EAAE,MAAM,CAAA;CAChB"}
@@ -1,95 +0,0 @@
1
- import type { ComponentProps, ReactNode } from 'react';
2
- import React, { type PropsWithChildren, type ReactElement } from 'react';
3
- import { Button, Heading, Link, Text } from '@react-email/components';
4
- export declare const MEDIA = "https://media.xoxno.com";
5
- export type WithUnsubscribeToken = {
6
- unsubscribeToken: string;
7
- };
8
- export declare const defaultBodyStyle: {
9
- background: string;
10
- backgroundColor: string;
11
- };
12
- export declare const GeneralEmail: ({ title, children, HOST, unsubscribeToken, }: {
13
- title: string;
14
- HOST: string;
15
- } & WithUnsubscribeToken & {
16
- children: ({ unsubscribeSection, }: {
17
- unsubscribeSection: ReactNode;
18
- }) => ReactNode;
19
- }) => React.JSX.Element;
20
- export declare const headingStyle: {
21
- color: "#FFF";
22
- fontFamily: "Heading, Verdana";
23
- textAlign: "center";
24
- fontSize: string;
25
- fontStyle: "normal";
26
- fontWeight: "600";
27
- lineHeight: string;
28
- };
29
- export declare const smallHeadingStyle: {
30
- color: "#FFF";
31
- fontFamily: "Button, Verdana";
32
- textAlign: "center";
33
- fontSize: string;
34
- fontStyle: "normal";
35
- fontWeight: "500";
36
- lineHeight: string;
37
- };
38
- export declare const bodyStyle: {
39
- color: "#D0D0D0";
40
- textAlign: "center";
41
- fontFamily: "Body, Verdana";
42
- fontSize: string;
43
- fontStyle: "normal";
44
- fontWeight: "400";
45
- lineHeight: string;
46
- };
47
- export declare const hintStyle: {
48
- color: "#D0D0D0";
49
- textAlign: "center";
50
- fontFamily: "Body, Verdana";
51
- fontSize: string;
52
- fontStyle: "normal";
53
- fontWeight: "300";
54
- lineHeight: string;
55
- };
56
- export declare const highlightStyle: {
57
- color: "#FFF";
58
- fontFamily: "Body, Verdana";
59
- fontSize: string;
60
- fontStyle: "normal";
61
- fontWeight: "500";
62
- lineHeight: string;
63
- };
64
- declare const locales: readonly ["en", "de"];
65
- type ILocale = (typeof locales)[number];
66
- export type Translations<T = object> = {
67
- namespace: string;
68
- translations: {
69
- en: T;
70
- } & Partial<{
71
- [key in Exclude<ILocale, 'en'>]: Partial<T>;
72
- }>;
73
- };
74
- export declare function renderGenericEmail(Email: ReactElement): Promise<{
75
- html: string;
76
- plainText: string;
77
- subject: string;
78
- }>;
79
- export declare function FixedHeading({ children, ...props }: ComponentProps<typeof Heading>): React.JSX.Element;
80
- export declare function FixedText({ children, ...props }: ComponentProps<typeof Text>): React.JSX.Element;
81
- export declare function FixedLink({ children, disableFix, ...props }: ComponentProps<typeof Link> & {
82
- disableFix?: boolean;
83
- }): React.JSX.Element;
84
- export declare function FixedButton({ children, ...props }: ComponentProps<typeof Button>): React.JSX.Element;
85
- export declare function Center({ children }: PropsWithChildren): React.JSX.Element;
86
- export declare function MsFix({ backgroundColor, backgroundImage, }: {
87
- backgroundColor: string;
88
- backgroundImage?: string;
89
- }): React.JSX.Element;
90
- export declare function ThankYou({ text, isThankYou, }: {
91
- text: ReactNode;
92
- isThankYou?: boolean;
93
- }): React.JSX.Element;
94
- export {};
95
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/email/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtD,OAAO,KAAK,EAAE,EAEZ,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,OAAO,CAAA;AAEd,OAAO,EACL,MAAM,EAEN,OAAO,EAEP,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,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,qBAQ5E;AAED,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,UAAU,EACV,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,qBAYxD;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,MAAM,CAAC,qBAQ/B;AAED,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,qBAQrD;AAED,wBAAgB,KAAK,CAAC,EACpB,eAAe,EACf,eAAe,GAChB,EAAE;IACD,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,qBAYA;AAED,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,UAAiB,GAClB,EAAE;IACD,IAAI,EAAE,SAAS,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,qBAiCA"}
@@ -1,10 +0,0 @@
1
- export * from './email/email';
2
- export * from './email/event-email';
3
- export * from './email/invite-email';
4
- export * from './email/approval-pending-email';
5
- export * from './email/approval-accepted-email';
6
- export * from './email/approval-rejected-email';
7
- export * from './email/checkedin-email';
8
- export * from './email/types';
9
- export { renderGenericEmail, GeneralEmail, MEDIA, Center, ThankYou, MsFix, FixedLink, FixedHeading, FixedText, bodyStyle, defaultBodyStyle, type WithUnsubscribeToken, } from './email/utils';
10
- //# sourceMappingURL=email.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../src/email.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,yBAAyB,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,KAAK,EACL,MAAM,EACN,QAAQ,EACR,KAAK,EACL,SAAS,EACT,YAAY,EACZ,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAA"}
@@ -1,10 +0,0 @@
1
- export * from './types';
2
- export * from './collection';
3
- export * from './nft';
4
- export * from './users';
5
- export * from './staking';
6
- export * from './utils/api';
7
- export * from './utils/regex';
8
- export * from './common';
9
- export * from './utils';
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA"}
@@ -1,256 +0,0 @@
1
- import type { IPlainTransactionObject } from '@multiversx/sdk-core/out/interface';
2
- import type { NftData } from '..';
3
- import type { GlobalOffer } from '../types/collection';
4
- import type { AcceptGlobalOffer, Auction, ChangeListing, NewListingArgs, Payment, SendCustomOffer, SendGlobalOffer, WithSenderAndNonce } from '../types/interactions';
5
- export declare class SCInteraction {
6
- private xo;
7
- private call;
8
- private api;
9
- private config;
10
- private factory;
11
- private constructor();
12
- static init(): Promise<SCInteraction>;
13
- private getResult;
14
- /**
15
- * Gets the percentage of each transaction that will be paid to the marketplace.
16
- *
17
- * @returns The percentage of each transaction that will be paid to the marketplace.
18
- */
19
- getMarketplaceFees: () => Promise<number>;
20
- /**
21
- * Retrieves the list of accepted payment tokens.
22
- * @returns {string[]} A list of accepted payment tokens.
23
- */
24
- getAcceptedPaymentTokens: () => Promise<string[]>;
25
- /**
26
- * This function returns a list of IDs of global offers.
27
- * @returns {number[]} a list of IDs of global offers.
28
- */
29
- getGlobalOfferIDs: () => Promise<number[]>;
30
- /**
31
- * Gets the balance of a user in a token of a specific pool.
32
- * @param address The address of the user.
33
- * @param token The token address.
34
- * @param nonce The nonce of the pool.
35
- * @returns {number} The balance of the user in the token of the pool.
36
- */
37
- getUserPoolBalance(address: string, token: string, nonce: number): Promise<number>;
38
- private isOfferActive;
39
- /**
40
- * Returns the global offer data for the offer with the given id.
41
- *
42
- * @param global_offer_id The id of the global offer for which to return the data.
43
- *
44
- * @returns An object containing the global offer data for the offer with the given id. If the global offer id is invalid, the return value will be null.
45
- */
46
- getGlobalOfferData: (global_offer_id: number) => Promise<GlobalOffer>;
47
- /**
48
- * Returns the auction struct for the given id.
49
- *
50
- * @param auctionID The id of the auction for which to return the data.
51
- *
52
- * @returns {Auction} An object containing the auction data for the given id. If the auction id is invalid, the return value will be null.
53
- */
54
- getAuctionInfo: (auctionID: number) => Promise<Auction | null>;
55
- /** Gets the number of listings.
56
- * @returns {number} The number of listings.
57
- * */
58
- getListingsCount(): Promise<number>;
59
- /** Gets the number of custom offers.
60
- * @returns {number} The number of custom offers.
61
- * */
62
- getOffersCount(): Promise<number>;
63
- /** Gets the number of global offers.
64
- * @returns {number} The number of global offers.
65
- * */
66
- getGlobalOffersCount(): Promise<number>;
67
- /** Gets the number of collections listed.
68
- * @returns {number} The number of collections listed.
69
- * */
70
- getCollectionsCount(): Promise<number>;
71
- /**
72
- * Checks whether a collection is listed with at least 1 NFT.
73
- *
74
- * @param collection name of the collection
75
- * @return true if the collection is listed, false otherwise
76
- */
77
- isCollectionListed(collection: string): Promise<boolean>;
78
- /** Gets the on sale NFT count of the collection.
79
- *
80
- * @param collection The collection identifier for which one wants to get the on sale NFT count.
81
- *
82
- * @returns {number} The on sale NFT count of the collection.
83
- * */
84
- getCollectionNFTsOnSaleCount(collection: string): Promise<number>;
85
- /** Gets the active unique auction IDs of collection.
86
- *
87
- * @param collection The collection identifier for which one wants to get the active unique auction IDs.
88
- *
89
- * @returns {number[]} The active unique auction IDs of collection.
90
- * */
91
- getAuctionIDsForCollection(collection: string): Promise<number[]>;
92
- /**
93
- * Withdraw auctions from the smart contract.
94
- *
95
- * @param auctionIDs The IDs of the auctions to withdraw from
96
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
97
- */
98
- withdrawAuctions({ auctionIDs, sender, market, signature, }: {
99
- auctionIDs: number[];
100
- sender: WithSenderAndNonce;
101
- signature?: string;
102
- market?: string;
103
- }): IPlainTransactionObject[];
104
- /**
105
- * Withdraw global offer from the smart contract.
106
- *
107
- * @param auctionIDs The IDs of the global offer to withdraw
108
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
109
- */
110
- withdrawGlobalOffer(offerID: number, market: string | undefined, senderNonce: WithSenderAndNonce): IPlainTransactionObject;
111
- /**
112
- * Accept a global offer
113
- *
114
- * @param offerID The offer ID
115
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
116
- */
117
- acceptGlobalOffer({ signature, offer_id, auction_ids_opt, market, nfts, address, nonce, }: AcceptGlobalOffer & WithSenderAndNonce): IPlainTransactionObject;
118
- /**
119
- * Send a global offer
120
- * @param payment_token The token used for payment
121
- * @param payment_nonce The nonce of the payment token
122
- * @param price The price of the offer
123
- * @param collection The collection of the NFT
124
- * @param attributes The attributes of the NFT
125
- * @param depositAmount The deposit amount
126
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
127
- * */
128
- sendGlobalOffer({ payment_token, payment_nonce, price, collection, quantity, attributes, depositAmount, address, nonce, }: SendGlobalOffer & WithSenderAndNonce): IPlainTransactionObject;
129
- /**
130
- * Send a custom offer
131
- * @param payment_token The token used for payment
132
- * @param payment_nonce The nonce of the payment token
133
- * @param price The price of the offer
134
- * @param deadline The deadline of the offer
135
- * @param nft The NFT to be sold
136
- * @param depositAmount The deposit amount
137
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
138
- * */
139
- sendCustomOffer({ payment_token, payment_nonce, price, deadline, nft, depositAmount, address, nonce, }: SendCustomOffer & WithSenderAndNonce): IPlainTransactionObject;
140
- /**
141
- * Withdraws a custom offer
142
- *
143
- * @param offerID The offer ID
144
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
145
- */
146
- withdrawCustomOffer(offerID: number, senderNonce: WithSenderAndNonce, market: string): IPlainTransactionObject;
147
- /**
148
- * Decline a custom offer
149
- *
150
- * @param offerID The offer ID
151
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
152
- */
153
- declineCustomOffer(offerID: number, sender: WithSenderAndNonce, nft: NftData, market: string): IPlainTransactionObject;
154
- /**
155
- * Accept a custom offer
156
- *
157
- * @param offerID The offer ID
158
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
159
- */
160
- acceptCustomOffer(offerID: number, sender: WithSenderAndNonce, nft: NftData, market: string): IPlainTransactionObject;
161
- /**
162
- * @public
163
- * @function endAuction
164
- * @param {number} auctionID - The unique identifier of the auction.
165
- * @returns {IPlainTransactionObject} The resulting interaction with the specified chainID and gas limit.
166
- *
167
- * This function allows ending an auction by its auctionID. It takes the following parameter:
168
- * - auctionID (number): The unique identifier of the auction.
169
- *
170
- * The function calls the `endAuction` method on the smart contract with the provided auctionID.
171
- * Finally, it returns the resulting interaction with the specified chainID and gas limit.
172
- */
173
- endAuction(auctionID: number, sender: WithSenderAndNonce, market?: string): IPlainTransactionObject;
174
- /**
175
- * Bid on an auction
176
- *
177
- * @param auctionID The auction ID
178
- * @param collection The NFT Collection
179
- * @param nonce The NFT nonce
180
- * @param payment The payment object
181
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
182
- */
183
- bidOnAuctionId(auctionID: number, collection: string, nonce: number, payment: Payment, sender: WithSenderAndNonce): IPlainTransactionObject;
184
- /**
185
- * Bulk buy auctions
186
- *
187
- * @param auctionIDs The auction IDs
188
- * @param payment The payment object
189
- * @returns {IPlainTransactionObject} The interaction object of the smart contract
190
- */
191
- bulkBuy(auctionIDs: number[], payment: Payment, sender: WithSenderAndNonce): IPlainTransactionObject;
192
- /**
193
- * @public
194
- * @async
195
- * @function buyAuctionById
196
- * @param {Object} options - An object containing the necessary parameters to buy an auction.
197
- * @param {number} options.auctionID - The unique identifier of the auction.
198
- * @param {string} [options.collection] - The collection the auctioned token belongs to (optional).
199
- * @param {number} [options.nonce] - The nonce of the auctioned token (optional).
200
- * @param {number} [options.quantity=1] - The quantity of tokens to buy (default is 1).
201
- * @param {string} [options.token='EGLD'] - The payment token (default is 'EGLD').
202
- * @param {number} [options.paymentAmount] - The payment amount for the auction (optional).
203
- * @param {boolean} [options.withCheck=true] - Whether to check the auction information (default is true).
204
- * @param {boolean} [options.isBigUintPayment=false] - Whether the payment amount is a big integer (default is false).
205
- * @returns {Promise<IPlainTransactionObject>} The resulting interaction with the specified chainID and gas limit.
206
- *
207
- * This function allows a user to buy an auction by its auctionID. It takes an object with the following properties:
208
- * - auctionID (number): The unique identifier of the auction.
209
- * - collection (string, optional): The collection the auctioned token belongs to.
210
- * - nonce (number, optional): The nonce of the auctioned token.
211
- * - quantity (number, optional): The quantity of tokens to buy (default is 1).
212
- * - token (string, optional): The payment token (default is 'EGLD').
213
- * - paymentAmount (number, optional): The payment amount for the auction.
214
- * - withCheck (boolean, optional): Whether to check the auction information (default is true).
215
- * - isBigUintPayment (boolean, optional): Whether the payment amount is a big integer (default is false).
216
- *
217
- * The function first checks if the auction exists and if its type is NFT or SftOnePerPayment. If not, an error is thrown.
218
- * Then, it calculates the payment amount and calls the `buy` method on the smart contract with the provided parameters.
219
- * Finally, the function returns the resulting interaction with the specified chainID and gas limit.
220
- */
221
- buyAuctionById({ auctionID, collection, nonce, paymentAmount, quantity, token, withCheck, isBigUintPayment, isBid, decimals, market, sender, }: {
222
- auctionID: number;
223
- collection?: string;
224
- nonce?: number;
225
- quantity?: number;
226
- token?: string;
227
- paymentAmount?: string;
228
- withCheck?: boolean;
229
- isBigUintPayment?: boolean;
230
- isBid?: boolean;
231
- market?: string;
232
- decimals?: number;
233
- sender: WithSenderAndNonce;
234
- }): Promise<IPlainTransactionObject>;
235
- /**
236
- * @docutype
237
- * @public
238
- * @async
239
- * @function changeListing
240
- * @param {ChangeListing[]} listings - An array of objects containing the information needed to change a listing.
241
- * @returns {IPlainTransactionObject} The resulting interaction with the specified chainID and gas limit.
242
- *
243
- * This function takes an array of `ChangeListing` objects and constructs `Struct` instances using the provided
244
- * information. Each `ChangeListing` object should have the following properties:
245
- * - paymentToken (string): The identifier of the payment token type.
246
- * - price (BigInt): The new price for the listing.
247
- * - auctionID (number): The unique identifier of the auction.
248
- * - deadline (number): The deadline (in Unix time) for the listing.
249
- *
250
- * The function then calls the `changeListing` method on the smart contract and returns the resulting interaction
251
- * with the specified chainID and gas limit.
252
- */
253
- changeListing(listings: ChangeListing[], sender: WithSenderAndNonce, marketplace: string): Promise<IPlainTransactionObject>;
254
- listNFTs(listings: NewListingArgs[], sender: WithSenderAndNonce): Promise<IPlainTransactionObject>;
255
- }
256
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interactions/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AA8BjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,IAAI,CAAA;AAEjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EACV,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,cAAc,EACd,OAAO,EACP,eAAe,EACf,eAAe,EACf,kBAAkB,EACnB,MAAM,uBAAuB,CAAA;AAO9B,qBAAa,aAAa;IACxB,OAAO,CAAC,EAAE,CAAe;IACzB,OAAO,CAAC,IAAI,CAAqB;IACjC,OAAO,CAAC,GAAG,CAAa;IACxB,OAA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B,CAAC;IAyCtB,QAAQ,CACnB,QAAQ,EAAE,cAAc,EAAE,EAC1B,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,uBAAuB,CAAC;CA+EpC"}
@@ -1,6 +0,0 @@
1
- export * from './interactions';
2
- export * from './launchpad';
3
- export * from './types/interactions';
4
- export * from './types';
5
- export * from './utils/api';
6
- //# sourceMappingURL=interactor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interactor.d.ts","sourceRoot":"","sources":["../../src/interactor.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA"}
@@ -1,79 +0,0 @@
1
- import type { SmartContract } from '@multiversx/sdk-core/out/smartcontracts/smartContract';
2
- /**
3
- * LaunchpadModule provides methods to interact with the minter smart contract.
4
- * @class
5
- */
6
- export declare class LaunchpadModule {
7
- private minter;
8
- private call;
9
- /**
10
- * @constructor
11
- * @param {SmartContract} minterAbiXOXNO - The minter smart contract instance.
12
- */
13
- constructor(minterAbiXOXNO: SmartContract);
14
- /**
15
- * Executes the provided interaction and returns the result.
16
- * @private
17
- * @param {Interaction} interaction - The smart contract interaction.
18
- * @returns {Promise<any>} The result of the interaction.
19
- */
20
- private getResult;
21
- /**
22
- * Initializes the LaunchpadModule with a minter smart contract instance.
23
- * @static
24
- * @param {string} minterSC - The minter smart contract address.
25
- * @returns {Promise<LaunchpadModule>} A new instance of LaunchpadModule.
26
- */
27
- static init(minterSC: string): Promise<LaunchpadModule>;
28
- /**
29
- * Fetches all unique tags from the minter smart contract.
30
- * @public
31
- * @returns {Promise<string[]>} An array of unique tags.
32
- */
33
- getAllUniqueTags: () => Promise<string[]>;
34
- /**
35
- * Fetches the global buy count for a user and tag.
36
- * @public
37
- * @param {string} user - The user's address.
38
- * @param {string} tag - The tag.
39
- * @returns {Promise<number>} The global buy count.
40
- */
41
- getWalletGlobalBuyCount: (user: string, tag: string) => Promise<number>;
42
- /**
43
- * Fetches the stage buy count for a user, tag, and stage.
44
- * @public
45
- * @param {string} user - The user's address.
46
- * @param {string} tag - The tag.
47
- * @param {string} stage - The stage.
48
- * @returns {Promise<number>} The stage buy count.
49
- */
50
- getWalletStageBuyCount: (user: string, tag: string, stage: string) => Promise<number>;
51
- /**
52
- * Fetches the local owner's address from the minter smart contract.
53
- * @public
54
- * @returns {Promise<string>} The local owner's address.
55
- */
56
- getLocalOwner: () => Promise<string>;
57
- /**
58
- * Fetches the launchpad cut fee percentage from the minter smart contract.
59
- * @public
60
- * @returns {Promise<number>} The launchpad cut fee percentage.
61
- */
62
- getLaunchpadCutFee: () => Promise<number>;
63
- /**
64
- * Fetches the stage whitelist of wallets for a tag and stage.
65
- * @public
66
- * @param {string} tag - The tag.
67
- * @param {string} stage - The stage.
68
- * @returns {Promise<string[]>} An array of whitelisted wallet addresses.
69
- */
70
- getStageWhitelist: (tag: string, stage: string) => Promise<string[]>;
71
- /**
72
- * Fetches the list of stages for a tag.
73
- * @public
74
- * @param {string} tag - The tag.
75
- * @returns {Promise<string[]>} An array of stages.
76
- */
77
- getStages: (tag: string) => Promise<string[]>;
78
- }
79
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/launchpad/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAA;AAM1F;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,IAAI,CAAqB;IACjC;;;OAGG;gBACS,cAAc,EAAE,aAAa;IAKzC;;;;;OAKG;YACW,SAAS;IAIvB;;;;;OAKG;WACU,IAAI,CAAC,QAAQ,EAAE,MAAM;IAMlC;;;;OAIG;IACI,gBAAgB,QAAa,OAAO,CAAC,MAAM,EAAE,CAAC,CAIpD;IAED;;;;;;OAMG;IACI,uBAAuB,SACtB,MAAM,OACP,MAAM,KACV,OAAO,CAAC,MAAM,CAAC,CAIjB;IAED;;;;;;;OAOG;IACI,sBAAsB,SACrB,MAAM,OACP,MAAM,SACJ,MAAM,KACZ,OAAO,CAAC,MAAM,CAAC,CAQjB;IAED;;;;OAIG;IACI,aAAa,QAAa,OAAO,CAAC,MAAM,CAAC,CAI/C;IAED;;;;OAIG;IAEI,kBAAkB,QAAa,OAAO,CAAC,MAAM,CAAC,CAIpD;IAED;;;;;;OAMG;IACI,iBAAiB,QACjB,MAAM,SACJ,MAAM,KACZ,OAAO,CAAC,MAAM,EAAE,CAAC,CAInB;IAED;;;;;OAKG;IACI,SAAS,QAAe,MAAM,KAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAuBxD;CACF"}
@@ -1,69 +0,0 @@
1
- import type { NftData } from '../types/nft';
2
- import type { TradincActivityArgs, TradingActivityResponse } from '../types/trading';
3
- import type { UserOffers } from '../types/user';
4
- /**
5
- * NFTModule provides a set of methods to interact with single NFTs.
6
- * It includes methods for getting single NFT information, and searching NFTs by collection and nonce.
7
- *
8
- * @example
9
- * const nftModule = new NFTModule();
10
- */
11
- export declare class NFTModule {
12
- private api;
13
- constructor();
14
- /**
15
- * @public
16
- * @async
17
- * @function getNFTByIdentifier
18
- * @param {string} identifier - The identifier of the NFT to fetch data for.
19
- * @returns {Promise<NftData>} A promise that resolves to the fetched NFT data.
20
- *
21
- * This function fetches data for a given NFT by its identifier. It takes the following parameter:
22
- * - identifier (string): The identifier of the NFT to fetch data for.
23
- *
24
- * The function first validates the input identifier and checks if it is a valid NFT identifier.
25
- * If it is valid, the function fetches the NFT data using the API.
26
- * Finally, it returns a promise that resolves to the fetched NFT data.
27
- */
28
- getNFTByIdentifier: (identifier: string, extra?: RequestInit) => Promise<NftData>;
29
- /**
30
- * @public
31
- * @async
32
- * @function getNFTByIdentifier
33
- * @param {string} identifier - The identifier of the NFT to fetch data for.
34
- * @returns {Promise<NftData>} A promise that resolves to the fetched NFT data.
35
- *
36
- * This function fetches data for a given NFT by its identifier. It takes the following parameter:
37
- * - identifier (string): The identifier of the NFT to fetch data for.
38
- *
39
- * The function first validates the input identifier and checks if it is a valid NFT identifier.
40
- * If it is valid, the function fetches the NFT data using the API.
41
- * Finally, it returns a promise that resolves to the fetched NFT data.
42
- */
43
- getNFTsOffers: (identifier: string, skip?: number, top?: number) => Promise<UserOffers>;
44
- /**
45
- * Gets an NFT by collection and nonce.
46
- * @param collection The collection ticker.
47
- * @param nonce The nonce of the NFT.
48
- * @returns {Promise<NftData>} The NFT data.
49
- * @throws Throws an error when the collection ticker is invalid.
50
- */
51
- getNFTByCollectionAndNonce: (collection: string, nonce: number) => Promise<NftData>;
52
- /**
53
- * Get NFT by collection and nonce hex
54
- *
55
- * @param collection - collection ticker
56
- * @param nonceHex - nonce hex
57
- * @return {Promise<NftData>} NFT data
58
- */
59
- getNFTByCollectionAndNonceHex: (collection: string, nonceHex: string) => Promise<NftData>;
60
- /**
61
- * Retrieves trading history based on the provided arguments.
62
- *
63
- * @param {TradincActivityArgs} args - The arguments for filtering the trading activity.
64
- * @returns {Promise<TradingActivityResponse>} A promise resolving to a TradingActivityResponse object containing the activity.
65
- * @throws {Error} Throws an error if the 'top' argument is greater than 100.
66
- */
67
- getTradingActivity: (args: TradincActivityArgs) => Promise<TradingActivityResponse>;
68
- }
69
- //# sourceMappingURL=index.d.ts.map