@tradeport/sui-trading-sdk 0.0.6 → 0.0.8
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 +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +609 -660
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +609 -660
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/src/SuiTradingClient.ts +7 -7
- package/src/apiClients/suiClient.ts +1 -1
- package/src/helpers/addOneDollarFee.ts +6 -6
- package/src/helpers/addThirdPartyTxFee.ts +7 -7
- package/src/helpers/destroyZeroCoin.ts +6 -6
- package/src/helpers/kiosk/kioskTxWrapper.ts +9 -9
- package/src/helpers/kiosk/resolveFloorPriceRule.ts +10 -14
- package/src/helpers/kiosk/resolveKioskLockRule.ts +16 -18
- package/src/helpers/kiosk/resolvePersonalKioskRule.ts +11 -14
- package/src/helpers/kiosk/resolveRoyaltyRule.ts +16 -13
- package/src/helpers/kiosk/resolveTransferPolicies.ts +21 -17
- package/src/helpers/originByte/confirmOBTranfer.ts +9 -9
- package/src/helpers/originByte/createOBKiosk.ts +3 -3
- package/src/helpers/originByte/depositNftIntoOBKiosk.ts +6 -4
- package/src/helpers/originByte/getOrCreateOBKiosk.ts +3 -3
- package/src/helpers/originByte/shareOriginByteKiosk.ts +5 -5
- package/src/helpers/splitCoins.ts +4 -4
- package/src/methods/acceptCollectionBid/acceptCollectionBid.ts +6 -6
- package/src/methods/acceptCollectionBid/addAcceptCollectionBIdTxs.ts +66 -71
- package/src/methods/acceptNftBids/acceptNftBids.ts +6 -6
- package/src/methods/acceptNftBids/addAcceptNftBidTxs.ts +48 -52
- package/src/methods/buyListings/addBuyListingTxs.ts +121 -124
- package/src/methods/buyListings/buyListings.ts +8 -8
- package/src/methods/claimNfts/addClaimNftsTxs.ts +25 -25
- package/src/methods/claimNfts/claimNfts.ts +14 -17
- package/src/methods/listNfts/addListTxs.ts +34 -34
- package/src/methods/listNfts/addRelistTxs.ts +17 -17
- package/src/methods/listNfts/listNfts.ts +8 -9
- package/src/methods/placeCollectionBids/addPlaceCollectionBidTxs.ts +34 -34
- package/src/methods/placeCollectionBids/placeCollectionBids.ts +8 -8
- package/src/methods/placeNftBids/addPlaceNftBidTxs.ts +35 -35
- package/src/methods/placeNftBids/placeNftBids.ts +6 -9
- package/src/methods/relistNft/relistNft.ts +6 -6
- package/src/methods/removeCollectionBid/addRemoveCollectionBidTxs.ts +14 -21
- package/src/methods/removeCollectionBid/removeCollectionBid.ts +6 -8
- package/src/methods/removeNftBids/addRemoveNftBidTxs.ts +19 -24
- package/src/methods/removeNftBids/removeNftBids.ts +6 -6
- package/src/methods/transferNfts/addTransferNftTx.ts +17 -21
- package/src/methods/transferNfts/transferNfts.ts +12 -12
- package/src/methods/unlistListings/addUnlistListingTxs.ts +50 -50
- package/src/methods/unlistListings/unlistListings.ts +6 -6
- package/src/methods/withdrawKioskProfits/withdrawKioskProfits.ts +6 -6
- package/src/tests/SuiWallet.ts +4 -4
- package/src/utils/printTxBlockTxs.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tradeport/sui-trading-sdk
|
|
2
2
|
|
|
3
|
+
## 0.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6fbc348: Switching back to @mysten/sui.js instead of @mysten/sui
|
|
8
|
+
|
|
9
|
+
## 0.0.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- b9a9e83: Migrated to use @mysten/sui instead of @mysten/sui.js to be compabile with @mysten/dapp-kit
|
|
14
|
+
|
|
3
15
|
## 0.0.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Transaction } from '@mysten/sui/transactions';
|
|
2
2
|
|
|
3
3
|
type AcceptCollectionBid = {
|
|
4
4
|
bidId: string;
|
|
@@ -73,18 +73,18 @@ type ApiConfig = {
|
|
|
73
73
|
};
|
|
74
74
|
declare class SuiTradingClient {
|
|
75
75
|
constructor({ apiUser, apiKey }: ApiConfig);
|
|
76
|
-
buyListings({ listingIds, walletAddress }: BuyListings): Promise<
|
|
77
|
-
listNfts({ nfts, walletAddress }: ListNfts): Promise<
|
|
78
|
-
unlistListings({ listingIds, walletAddress }: UnlistListings): Promise<
|
|
79
|
-
placeNftBids({ nfts, walletAddress }: PlaceNftBids): Promise<
|
|
80
|
-
removeNftBids({ bidIds }: RemoveNftBids): Promise<
|
|
81
|
-
acceptNftBids({ bidIds }: AcceptNftBids): Promise<
|
|
82
|
-
placeCollectionBid({ collectionId, bidAmountInMist, numOfBids, walletAddress, }: PlaceCollectionBid): Promise<
|
|
83
|
-
acceptCollectionBid({ bidId, nftId, walletAddress }: AcceptCollectionBid): Promise<
|
|
84
|
-
removeCollectionBid({ bidId }: RemoveCollectionBid): Promise<
|
|
85
|
-
transferNfts({ nftIds, recipientAddress, walletAddress }: TransferNfts): Promise<
|
|
86
|
-
claimNfts({ nftIds, walletAddress }: ClaimNfts): Promise<
|
|
87
|
-
withdrawKioskProfits({ amount, walletAddress }: WithdrawKioskProfits): Promise<
|
|
76
|
+
buyListings({ listingIds, walletAddress }: BuyListings): Promise<Transaction>;
|
|
77
|
+
listNfts({ nfts, walletAddress }: ListNfts): Promise<Transaction>;
|
|
78
|
+
unlistListings({ listingIds, walletAddress }: UnlistListings): Promise<Transaction>;
|
|
79
|
+
placeNftBids({ nfts, walletAddress }: PlaceNftBids): Promise<Transaction>;
|
|
80
|
+
removeNftBids({ bidIds }: RemoveNftBids): Promise<Transaction>;
|
|
81
|
+
acceptNftBids({ bidIds }: AcceptNftBids): Promise<Transaction>;
|
|
82
|
+
placeCollectionBid({ collectionId, bidAmountInMist, numOfBids, walletAddress, }: PlaceCollectionBid): Promise<Transaction>;
|
|
83
|
+
acceptCollectionBid({ bidId, nftId, walletAddress }: AcceptCollectionBid): Promise<Transaction>;
|
|
84
|
+
removeCollectionBid({ bidId }: RemoveCollectionBid): Promise<Transaction>;
|
|
85
|
+
transferNfts({ nftIds, recipientAddress, walletAddress }: TransferNfts): Promise<Transaction>;
|
|
86
|
+
claimNfts({ nftIds, walletAddress }: ClaimNfts): Promise<Transaction>;
|
|
87
|
+
withdrawKioskProfits({ amount, walletAddress }: WithdrawKioskProfits): Promise<Transaction>;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export { SuiTradingClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Transaction } from '@mysten/sui/transactions';
|
|
2
2
|
|
|
3
3
|
type AcceptCollectionBid = {
|
|
4
4
|
bidId: string;
|
|
@@ -73,18 +73,18 @@ type ApiConfig = {
|
|
|
73
73
|
};
|
|
74
74
|
declare class SuiTradingClient {
|
|
75
75
|
constructor({ apiUser, apiKey }: ApiConfig);
|
|
76
|
-
buyListings({ listingIds, walletAddress }: BuyListings): Promise<
|
|
77
|
-
listNfts({ nfts, walletAddress }: ListNfts): Promise<
|
|
78
|
-
unlistListings({ listingIds, walletAddress }: UnlistListings): Promise<
|
|
79
|
-
placeNftBids({ nfts, walletAddress }: PlaceNftBids): Promise<
|
|
80
|
-
removeNftBids({ bidIds }: RemoveNftBids): Promise<
|
|
81
|
-
acceptNftBids({ bidIds }: AcceptNftBids): Promise<
|
|
82
|
-
placeCollectionBid({ collectionId, bidAmountInMist, numOfBids, walletAddress, }: PlaceCollectionBid): Promise<
|
|
83
|
-
acceptCollectionBid({ bidId, nftId, walletAddress }: AcceptCollectionBid): Promise<
|
|
84
|
-
removeCollectionBid({ bidId }: RemoveCollectionBid): Promise<
|
|
85
|
-
transferNfts({ nftIds, recipientAddress, walletAddress }: TransferNfts): Promise<
|
|
86
|
-
claimNfts({ nftIds, walletAddress }: ClaimNfts): Promise<
|
|
87
|
-
withdrawKioskProfits({ amount, walletAddress }: WithdrawKioskProfits): Promise<
|
|
76
|
+
buyListings({ listingIds, walletAddress }: BuyListings): Promise<Transaction>;
|
|
77
|
+
listNfts({ nfts, walletAddress }: ListNfts): Promise<Transaction>;
|
|
78
|
+
unlistListings({ listingIds, walletAddress }: UnlistListings): Promise<Transaction>;
|
|
79
|
+
placeNftBids({ nfts, walletAddress }: PlaceNftBids): Promise<Transaction>;
|
|
80
|
+
removeNftBids({ bidIds }: RemoveNftBids): Promise<Transaction>;
|
|
81
|
+
acceptNftBids({ bidIds }: AcceptNftBids): Promise<Transaction>;
|
|
82
|
+
placeCollectionBid({ collectionId, bidAmountInMist, numOfBids, walletAddress, }: PlaceCollectionBid): Promise<Transaction>;
|
|
83
|
+
acceptCollectionBid({ bidId, nftId, walletAddress }: AcceptCollectionBid): Promise<Transaction>;
|
|
84
|
+
removeCollectionBid({ bidId }: RemoveCollectionBid): Promise<Transaction>;
|
|
85
|
+
transferNfts({ nftIds, recipientAddress, walletAddress }: TransferNfts): Promise<Transaction>;
|
|
86
|
+
claimNfts({ nftIds, walletAddress }: ClaimNfts): Promise<Transaction>;
|
|
87
|
+
withdrawKioskProfits({ amount, walletAddress }: WithdrawKioskProfits): Promise<Transaction>;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
export { SuiTradingClient };
|