@tradeport/sui-trading-sdk 0.2.0 → 0.2.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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -42
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SuiTradingClient.ts +2 -2
- package/src/methods/transferNfts/transferNfts.ts +4 -4
package/package.json
CHANGED
package/src/SuiTradingClient.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { getFullnodeUrl } from '@mysten/sui/client';
|
|
2
2
|
import { type Transaction } from '@mysten/sui/transactions';
|
|
3
|
+
import { type GraphQLClient } from 'graphql-request';
|
|
3
4
|
import createKioskClient from './apiClients/createKioskClient';
|
|
4
5
|
import createSuiClient from './apiClients/createSuiClient';
|
|
5
6
|
import { getGraphqlClient, setGraphqlClient } from './apiClients/graphqlClient';
|
|
@@ -62,7 +63,6 @@ import {
|
|
|
62
63
|
type WithdrawProfitsFromKiosks,
|
|
63
64
|
} from './methods/withdrawProfitsFromKiosks/withdrawProfitsFromKiosks';
|
|
64
65
|
import { addLeadingZerosAfter0x } from './utils/addLeadingZerosAfter0x';
|
|
65
|
-
import { type GraphQLClient } from 'graphql-request';
|
|
66
66
|
|
|
67
67
|
type ApiConfig = {
|
|
68
68
|
apiUser: string;
|
|
@@ -82,7 +82,7 @@ class SuiTradingClient {
|
|
|
82
82
|
private readonly apiKey: string;
|
|
83
83
|
private readonly suiClient: ReturnType<typeof createSuiClient>;
|
|
84
84
|
private readonly kioskClient: ReturnType<typeof createKioskClient>;
|
|
85
|
-
private readonly allowedApiUsersForUnsharedKiosksMigration = ['tradeport.xyz'];
|
|
85
|
+
private readonly allowedApiUsersForUnsharedKiosksMigration = ['tradeport.xyz', 'mercato.xyz'];
|
|
86
86
|
|
|
87
87
|
constructor({ apiUser, apiKey, suiNodeUrl, graphQLClient }: ApiConfig) {
|
|
88
88
|
this.apiUser = apiUser;
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
} from '../../constants';
|
|
8
8
|
import { gqlChainRequest } from '../../graphql/gqlChainRequest';
|
|
9
9
|
import { fetchNftsById } from '../../graphql/queries/fetchNftsById';
|
|
10
|
-
import { addOneDollarFee } from '../../helpers/addOneDollarFee';
|
|
11
10
|
import { getNftType } from '../../helpers/getNftType';
|
|
12
11
|
import { getSharedObjects } from '../../helpers/getSharedObjects';
|
|
13
12
|
import { kioskTxWrapper } from '../../helpers/kiosk/kioskTxWrapper';
|
|
@@ -134,9 +133,10 @@ export const transferNfts = async (
|
|
|
134
133
|
});
|
|
135
134
|
}
|
|
136
135
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
// currently turned off $1 bulk transfer fee
|
|
137
|
+
// if (res?.nfts?.length > 1) {
|
|
138
|
+
// await addOneDollarFee(tx);
|
|
139
|
+
// }
|
|
140
140
|
|
|
141
141
|
// if (process.env.ENABLE_SEGMENT_TRACKING === 'true' && nftsForTracking.length > 0) {
|
|
142
142
|
// trackMethodCall({
|