@mysten/kiosk
Advanced tools
Comparing version 0.0.0-experimental-20230925133202 to 0.0.0-experimental-20230925181324
@@ -86,2 +86,5 @@ "use strict"; | ||
// src/utils.ts | ||
var import_utils = require("@mysten/sui.js/utils"); | ||
// src/bcs.ts | ||
@@ -139,3 +142,2 @@ var import_bcs = require("@mysten/sui.js/bcs"); | ||
// src/utils.ts | ||
var import_utils = require("@mysten/sui.js/utils"); | ||
var DEFAULT_QUERY_LIMIT = 50; | ||
@@ -142,0 +144,0 @@ function objArg(txb, arg) { |
# @mysten/kiosk | ||
## 0.0.0-experimental-20230925133202 | ||
## 0.0.0-experimental-20230925181324 | ||
@@ -5,0 +5,0 @@ ### Minor Changes |
import { type SuiClient } from '@mysten/sui.js/client'; | ||
import { type FetchKioskOptions, type KioskData, type OwnedKiosks, Network, type KioskClientOptions } from '../types'; | ||
import { type TransferPolicyRule, type BaseRulePackageIds } from '../constants'; | ||
import { type BaseRulePackageIds, type TransferPolicyRule } from '../constants'; | ||
import { Network, type FetchKioskOptions, type KioskClientOptions, type KioskData, type OwnedKiosks } from '../types'; | ||
/** | ||
@@ -5,0 +5,0 @@ * A Client that allows you to interact with kiosk. |
import { type TransactionArgument, type TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { ItemId, ItemReference, ItemValue, KioskOwnerCap, ObjectArgument, Price, PurchaseOptions } from '../types'; | ||
import { type KioskClient } from './kiosk-client'; | ||
import { ItemId, ItemReference, ItemValue, KioskOwnerCap, ObjectArgument, Price, PurchaseOptions } from '../types'; | ||
export type KioskTransactionParams = { | ||
@@ -5,0 +5,0 @@ /** The TransactionBlock for this run */ |
import { type TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { type ObjectArgument, TransferPolicyCap } from '../types'; | ||
import { TransferPolicyCap, type ObjectArgument } from '../types'; | ||
import { KioskClient } from './kiosk-client'; | ||
@@ -4,0 +4,0 @@ export type TransferPolicyBaseParams = { |
@@ -86,2 +86,5 @@ "use strict"; | ||
// src/utils.ts | ||
var import_utils = require("@mysten/sui.js/utils"); | ||
// src/bcs.ts | ||
@@ -139,3 +142,2 @@ var import_bcs = require("@mysten/sui.js/bcs"); | ||
// src/utils.ts | ||
var import_utils = require("@mysten/sui.js/utils"); | ||
var DEFAULT_QUERY_LIMIT = 50; | ||
@@ -142,0 +144,0 @@ function objArg(txb, arg) { |
@@ -0,3 +1,3 @@ | ||
import { PaginationArguments, SuiClient } from '@mysten/sui.js/client'; | ||
import { FetchKioskOptions, OwnedKiosks, PagedKioskData } from '../types'; | ||
import { SuiClient, PaginationArguments } from '@mysten/sui.js/client'; | ||
export declare function fetchKiosk(client: SuiClient, kioskId: string, pagination: PaginationArguments<string>, options: FetchKioskOptions): Promise<PagedKioskData>; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { TransactionBlock, TransactionArgument } from '@mysten/sui.js/transactions'; | ||
import { TransactionArgument, TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { ObjectArgument } from '../types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { TransactionBlock, TransactionArgument } from '@mysten/sui.js/transactions'; | ||
import { TransactionArgument, TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { ObjectArgument } from '../types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -0,3 +1,3 @@ | ||
import { type ObjectOwner } from '@mysten/sui.js/client'; | ||
import { TransactionArgument, type TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { type ObjectOwner } from '@mysten/sui.js/client'; | ||
import { ObjectArgument } from '.'; | ||
@@ -4,0 +4,0 @@ /** The Transfer Policy module. */ |
import { SharedObjectRef } from '@mysten/sui.js/bcs'; | ||
import { SuiObjectData, SuiObjectDataFilter, SuiObjectDataOptions, SuiObjectRef, SuiObjectResponse } from '@mysten/sui.js/client'; | ||
import { TransactionBlock, TransactionArgument } from '@mysten/sui.js/transactions'; | ||
import { type DynamicFieldInfo } from '@mysten/sui.js/client'; | ||
import { PaginationArguments, SuiClient, SuiObjectData, SuiObjectDataFilter, SuiObjectDataOptions, SuiObjectRef, SuiObjectResponse, type DynamicFieldInfo } from '@mysten/sui.js/client'; | ||
import { TransactionArgument, TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { Kiosk, KioskData, KioskListing, TransferPolicyCap } from './types'; | ||
import { SuiClient, PaginationArguments } from '@mysten/sui.js/client'; | ||
/** | ||
@@ -8,0 +6,0 @@ * Convert any valid input into a TransactionArgument. |
@@ -5,3 +5,3 @@ { | ||
"description": "Sui Kiosk library", | ||
"version": "0.0.0-experimental-20230925133202", | ||
"version": "0.0.0-experimental-20230925181324", | ||
"license": "Apache-2.0", | ||
@@ -8,0 +8,0 @@ "main": "./dist/index.js", |
@@ -5,2 +5,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { bcs } from '@mysten/sui.js/bcs'; | ||
import { | ||
@@ -7,0 +8,0 @@ KIOSK_PURCHASE_CAP, |
@@ -5,20 +5,14 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { type SuiClient } from '@mysten/sui.js/client'; | ||
import { fetchKiosk, getOwnedKiosks } from '../query/kiosk'; | ||
import { | ||
type FetchKioskOptions, | ||
type KioskData, | ||
type OwnedKiosks, | ||
Network, | ||
type KioskClientOptions, | ||
} from '../types'; | ||
import { | ||
type TransferPolicyRule, | ||
type BaseRulePackageIds, | ||
FLOOR_PRICE_RULE_ADDRESS, | ||
getBaseRules, | ||
KIOSK_LOCK_RULE_ADDRESS, | ||
PERSONAL_KIOSK_RULE_ADDRESS, | ||
ROYALTY_RULE_ADDRESS, | ||
rules, | ||
getBaseRules, | ||
ROYALTY_RULE_ADDRESS, | ||
KIOSK_LOCK_RULE_ADDRESS, | ||
FLOOR_PRICE_RULE_ADDRESS, | ||
type BaseRulePackageIds, | ||
type TransferPolicyRule, | ||
} from '../constants'; | ||
import { fetchKiosk, getOwnedKiosks } from '../query/kiosk'; | ||
import { | ||
@@ -29,2 +23,9 @@ queryOwnedTransferPolicies, | ||
} from '../query/transfer-policy'; | ||
import { | ||
Network, | ||
type FetchKioskOptions, | ||
type KioskClientOptions, | ||
type KioskData, | ||
type OwnedKiosks, | ||
} from '../types'; | ||
@@ -31,0 +32,0 @@ /** |
@@ -5,3 +5,6 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { type TransactionArgument, type TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { type KioskClient } from './kiosk-client'; | ||
import * as kioskTx from '../tx/kiosk'; | ||
import { convertToPersonalTx, transferPersonalCapTx } from '../tx/personal-kiosk'; | ||
import { confirmRequest } from '../tx/transfer-policy'; | ||
import { | ||
@@ -17,5 +20,3 @@ ItemId, | ||
import { getNormalizedRuleType, objArg } from '../utils'; | ||
import * as kioskTx from '../tx/kiosk'; | ||
import { confirmRequest } from '../tx/transfer-policy'; | ||
import { convertToPersonalTx, transferPersonalCapTx } from '../tx/personal-kiosk'; | ||
import { type KioskClient } from './kiosk-client'; | ||
@@ -22,0 +23,0 @@ export type KioskTransactionParams = { |
@@ -5,2 +5,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { TransactionArgument, type TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { | ||
@@ -19,3 +20,3 @@ attachFloorPriceRuleTx, | ||
} from '../tx/transfer-policy'; | ||
import { type ObjectArgument, TransferPolicyCap } from '../types'; | ||
import { TransferPolicyCap, type ObjectArgument } from '../types'; | ||
import { KioskClient } from './kiosk-client'; | ||
@@ -22,0 +23,0 @@ |
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { SuiObjectData, SuiObjectDataFilter, SuiObjectResponse } from '@mysten/sui.js/client'; | ||
import { | ||
PaginationArguments, | ||
SuiClient, | ||
SuiObjectData, | ||
SuiObjectDataFilter, | ||
SuiObjectResponse, | ||
} from '@mysten/sui.js/client'; | ||
import { isValidSuiAddress } from '@mysten/sui.js/utils'; | ||
import { | ||
FetchKioskOptions, | ||
KIOSK_OWNER_CAP, | ||
KioskListing, | ||
OwnedKiosks, | ||
PagedKioskData, | ||
} from '../types'; | ||
import { | ||
attachListingsAndPrices, | ||
@@ -15,10 +29,2 @@ attachLockedItems, | ||
} from '../utils'; | ||
import { | ||
FetchKioskOptions, | ||
KIOSK_OWNER_CAP, | ||
KioskListing, | ||
OwnedKiosks, | ||
PagedKioskData, | ||
} from '../types'; | ||
import { SuiClient, PaginationArguments } from '@mysten/sui.js/client'; | ||
@@ -25,0 +31,0 @@ export async function fetchKiosk( |
@@ -5,2 +5,4 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { SuiClient } from '@mysten/sui.js/client'; | ||
import { isValidSuiAddress } from '@mysten/sui.js/utils'; | ||
import { bcs } from '../bcs'; | ||
@@ -14,3 +16,2 @@ import { | ||
} from '../types'; | ||
import { isValidSuiAddress } from '@mysten/sui.js/utils'; | ||
import { getAllOwnedObjects, parseTransferPolicyCapObject } from '../utils'; | ||
@@ -17,0 +18,0 @@ |
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { TransactionBlock, TransactionArgument } from '@mysten/sui.js/transactions'; | ||
import { TransactionArgument, TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { KIOSK_MODULE, KIOSK_TYPE, ObjectArgument } from '../types'; | ||
import { objArg } from '../utils'; | ||
import { KIOSK_MODULE, KIOSK_TYPE, ObjectArgument } from '../types'; | ||
@@ -9,0 +9,0 @@ /** |
@@ -5,2 +5,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { TransactionArgument, TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { ObjectArgument } from '../types'; | ||
@@ -7,0 +8,0 @@ import { objArg } from '../utils'; |
@@ -5,2 +5,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { type TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { type ObjectArgument } from '../../types'; | ||
@@ -7,0 +8,0 @@ import { objArg } from '../../utils'; |
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { type RuleResolvingParams } from '../../types'; | ||
import { objArg } from '../../utils'; | ||
import { lock } from '../kiosk'; | ||
import { type RuleResolvingParams } from '../../types'; | ||
@@ -8,0 +8,0 @@ /** |
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { TransactionBlock, TransactionArgument } from '@mysten/sui.js/transactions'; | ||
import { TransactionArgument, TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { ObjectArgument, TRANSFER_POLICY_MODULE, TRANSFER_POLICY_TYPE } from '../types'; | ||
import { objArg } from '../utils'; | ||
import { ObjectArgument, TRANSFER_POLICY_MODULE, TRANSFER_POLICY_TYPE } from '../types'; | ||
@@ -8,0 +9,0 @@ /** |
@@ -7,2 +7,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { type TransactionArgument } from '@mysten/sui.js/transactions'; | ||
import { BaseRulePackageIds } from '../constants'; | ||
@@ -9,0 +10,0 @@ |
@@ -10,2 +10,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { TransactionArgument } from '@mysten/sui.js/transactions'; | ||
import { ObjectArgument } from '.'; | ||
@@ -12,0 +13,0 @@ |
// Copyright (c) Mysten Labs, Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { type ObjectOwner } from '@mysten/sui.js/client'; | ||
import { TransactionArgument, type TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { type ObjectOwner } from '@mysten/sui.js/client'; | ||
import { ObjectArgument } from '.'; | ||
@@ -7,0 +8,0 @@ |
@@ -6,2 +6,4 @@ // Copyright (c) Mysten Labs, Inc. | ||
import { | ||
PaginationArguments, | ||
SuiClient, | ||
SuiObjectData, | ||
@@ -12,9 +14,11 @@ SuiObjectDataFilter, | ||
SuiObjectResponse, | ||
type DynamicFieldInfo, | ||
} from '@mysten/sui.js/client'; | ||
import { TransactionBlock, TransactionArgument } from '@mysten/sui.js/transactions'; | ||
import { type DynamicFieldInfo } from '@mysten/sui.js/client'; | ||
import { TransactionArgument, TransactionBlock } from '@mysten/sui.js/transactions'; | ||
import { normalizeSuiAddress } from '@mysten/sui.js/utils'; | ||
import { bcs } from './bcs'; | ||
import { | ||
Kiosk, | ||
KIOSK_TYPE, | ||
Kiosk, | ||
KioskData, | ||
@@ -25,4 +29,2 @@ KioskListing, | ||
} from './types'; | ||
import { SuiClient, PaginationArguments } from '@mysten/sui.js/client'; | ||
import { normalizeSuiAddress } from '@mysten/sui.js/utils'; | ||
@@ -29,0 +31,0 @@ const DEFAULT_QUERY_LIMIT = 50; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7934
0
505464