@tradeport/sui-trading-sdk 0.1.100 → 0.1.102
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 +6 -0
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1009 -66
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1009 -66
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SuiTradingClient.ts +9 -3
- package/src/apiClients/graphqlClient.ts +6 -2
- package/src/constants.ts +905 -0
- package/src/graphql/gqlChainRequest.ts +2 -2
- package/src/methods/acceptCollectionBid/acceptCollectionBid.ts +8 -0
- package/src/methods/acceptCollectionBid/addAcceptCollectionBIdTxs.ts +1 -1
- package/src/methods/acceptNftBids/acceptNftBids.ts +8 -0
- package/src/methods/buyListings/buyListings.ts +8 -0
- package/src/methods/cancelNftTransfers/cancelNftTransfers.ts +8 -0
- package/src/methods/claimNfts/claimNfts.ts +9 -1
- package/src/methods/listNfts/listNfts.ts +8 -0
- package/src/methods/migrateNftsFromUnsharedToSharedKiosks/migrateNftsFromUnsharedToSharedKiosks.ts +1 -0
- package/src/methods/placeNftBids/placeNftBids.ts +8 -0
- package/src/methods/removeCollectionBid/removeCollectionBid.ts +8 -0
- package/src/methods/removeNftBids/removeNftBids.ts +8 -0
- package/src/methods/transferNfts/transferNfts.ts +8 -0
- package/src/methods/unlistListings/unlistListings.ts +8 -0
- package/src/tests/SuiWallet.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Transaction } from '@mysten/sui/transactions';
|
|
2
2
|
import { KioskTransaction } from '@mysten/kiosk';
|
|
3
|
+
import { GraphQLClient } from 'graphql-request';
|
|
3
4
|
|
|
4
5
|
type AcceptCollectionBid = {
|
|
5
6
|
bidId: string;
|
|
@@ -152,6 +153,7 @@ type ApiConfig = {
|
|
|
152
153
|
apiUser: string;
|
|
153
154
|
apiKey: string;
|
|
154
155
|
suiNodeUrl?: string;
|
|
156
|
+
graphQLClient?: GraphQLClient;
|
|
155
157
|
};
|
|
156
158
|
declare class SuiTradingClient {
|
|
157
159
|
private readonly apiUser;
|
|
@@ -159,7 +161,7 @@ declare class SuiTradingClient {
|
|
|
159
161
|
private readonly suiClient;
|
|
160
162
|
private readonly kioskClient;
|
|
161
163
|
private readonly allowedApiUsersForUnsharedKiosksMigration;
|
|
162
|
-
constructor({ apiUser, apiKey, suiNodeUrl }: ApiConfig);
|
|
164
|
+
constructor({ apiUser, apiKey, suiNodeUrl, graphQLClient }: ApiConfig);
|
|
163
165
|
buyListings({ listingIds, walletAddress, tx }: BuyListings): Promise<Transaction>;
|
|
164
166
|
listNfts({ nfts, walletAddress }: ListNfts): Promise<Transaction>;
|
|
165
167
|
unlistListings({ listingIds, walletAddress }: UnlistListings): Promise<Transaction>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Transaction } from '@mysten/sui/transactions';
|
|
2
2
|
import { KioskTransaction } from '@mysten/kiosk';
|
|
3
|
+
import { GraphQLClient } from 'graphql-request';
|
|
3
4
|
|
|
4
5
|
type AcceptCollectionBid = {
|
|
5
6
|
bidId: string;
|
|
@@ -152,6 +153,7 @@ type ApiConfig = {
|
|
|
152
153
|
apiUser: string;
|
|
153
154
|
apiKey: string;
|
|
154
155
|
suiNodeUrl?: string;
|
|
156
|
+
graphQLClient?: GraphQLClient;
|
|
155
157
|
};
|
|
156
158
|
declare class SuiTradingClient {
|
|
157
159
|
private readonly apiUser;
|
|
@@ -159,7 +161,7 @@ declare class SuiTradingClient {
|
|
|
159
161
|
private readonly suiClient;
|
|
160
162
|
private readonly kioskClient;
|
|
161
163
|
private readonly allowedApiUsersForUnsharedKiosksMigration;
|
|
162
|
-
constructor({ apiUser, apiKey, suiNodeUrl }: ApiConfig);
|
|
164
|
+
constructor({ apiUser, apiKey, suiNodeUrl, graphQLClient }: ApiConfig);
|
|
163
165
|
buyListings({ listingIds, walletAddress, tx }: BuyListings): Promise<Transaction>;
|
|
164
166
|
listNfts({ nfts, walletAddress }: ListNfts): Promise<Transaction>;
|
|
165
167
|
unlistListings({ listingIds, walletAddress }: UnlistListings): Promise<Transaction>;
|