@mysten/kiosk 0.8.0 → 0.8.1
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 +8 -0
- package/dist/cjs/bcs.js +1 -1
- package/dist/cjs/bcs.js.map +1 -1
- package/dist/cjs/client/kiosk-client.d.ts +8 -7
- package/dist/cjs/client/kiosk-client.js +4 -4
- package/dist/cjs/client/kiosk-client.js.map +2 -2
- package/dist/cjs/client/kiosk-transaction.d.ts +3 -3
- package/dist/cjs/client/kiosk-transaction.js +4 -4
- package/dist/cjs/client/kiosk-transaction.js.map +1 -1
- package/dist/cjs/client/tp-transaction.d.ts +3 -3
- package/dist/cjs/client/tp-transaction.js +2 -2
- package/dist/cjs/client/tp-transaction.js.map +1 -1
- package/dist/cjs/constants.d.ts +2 -1
- package/dist/cjs/constants.js +2 -2
- package/dist/cjs/constants.js.map +2 -2
- package/dist/cjs/index.d.ts +6 -6
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/query/kiosk.d.ts +2 -2
- package/dist/cjs/query/kiosk.js +2 -2
- package/dist/cjs/query/kiosk.js.map +2 -2
- package/dist/cjs/query/transfer-policy.d.ts +2 -2
- package/dist/cjs/query/transfer-policy.js +3 -3
- package/dist/cjs/query/transfer-policy.js.map +2 -2
- package/dist/cjs/tx/kiosk.d.ts +2 -2
- package/dist/cjs/tx/kiosk.js +1 -1
- package/dist/cjs/tx/kiosk.js.map +2 -2
- package/dist/cjs/tx/personal-kiosk.d.ts +2 -2
- package/dist/cjs/tx/personal-kiosk.js.map +1 -1
- package/dist/cjs/tx/rules/attach.d.ts +2 -2
- package/dist/cjs/tx/rules/attach.js.map +1 -1
- package/dist/cjs/tx/rules/resolve.d.ts +1 -1
- package/dist/cjs/tx/rules/resolve.js +1 -1
- package/dist/cjs/tx/rules/resolve.js.map +1 -1
- package/dist/cjs/tx/transfer-policy.d.ts +2 -2
- package/dist/cjs/tx/transfer-policy.js +1 -1
- package/dist/cjs/tx/transfer-policy.js.map +2 -2
- package/dist/cjs/types/index.d.ts +5 -5
- package/dist/cjs/types/index.js +2 -2
- package/dist/cjs/types/index.js.map +2 -2
- package/dist/cjs/types/kiosk.d.ts +3 -3
- package/dist/cjs/types/kiosk.js.map +1 -1
- package/dist/cjs/types/transfer-policy.d.ts +3 -3
- package/dist/cjs/types/transfer-policy.js.map +1 -1
- package/dist/cjs/utils.d.ts +2 -2
- package/dist/cjs/utils.js +2 -2
- package/dist/cjs/utils.js.map +2 -2
- package/dist/esm/bcs.js +1 -1
- package/dist/esm/bcs.js.map +1 -1
- package/dist/esm/client/kiosk-client.d.ts +8 -7
- package/dist/esm/client/kiosk-client.js +4 -6
- package/dist/esm/client/kiosk-client.js.map +2 -2
- package/dist/esm/client/kiosk-transaction.d.ts +3 -3
- package/dist/esm/client/kiosk-transaction.js +4 -4
- package/dist/esm/client/kiosk-transaction.js.map +1 -1
- package/dist/esm/client/tp-transaction.d.ts +3 -3
- package/dist/esm/client/tp-transaction.js +2 -2
- package/dist/esm/client/tp-transaction.js.map +1 -1
- package/dist/esm/constants.d.ts +2 -1
- package/dist/esm/constants.js +2 -2
- package/dist/esm/constants.js.map +2 -2
- package/dist/esm/index.d.ts +6 -6
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/query/kiosk.d.ts +2 -2
- package/dist/esm/query/kiosk.js +2 -4
- package/dist/esm/query/kiosk.js.map +2 -2
- package/dist/esm/query/transfer-policy.d.ts +2 -2
- package/dist/esm/query/transfer-policy.js +3 -3
- package/dist/esm/query/transfer-policy.js.map +2 -2
- package/dist/esm/tx/kiosk.d.ts +2 -2
- package/dist/esm/tx/kiosk.js +1 -1
- package/dist/esm/tx/kiosk.js.map +2 -2
- package/dist/esm/tx/personal-kiosk.d.ts +2 -2
- package/dist/esm/tx/personal-kiosk.js.map +1 -1
- package/dist/esm/tx/rules/attach.d.ts +2 -2
- package/dist/esm/tx/rules/attach.js.map +1 -1
- package/dist/esm/tx/rules/resolve.d.ts +1 -1
- package/dist/esm/tx/rules/resolve.js +1 -1
- package/dist/esm/tx/rules/resolve.js.map +1 -1
- package/dist/esm/tx/transfer-policy.d.ts +2 -2
- package/dist/esm/tx/transfer-policy.js +1 -1
- package/dist/esm/tx/transfer-policy.js.map +2 -2
- package/dist/esm/types/index.d.ts +5 -5
- package/dist/esm/types/index.js +2 -2
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/kiosk.d.ts +3 -3
- package/dist/esm/types/kiosk.js.map +1 -1
- package/dist/esm/types/transfer-policy.d.ts +3 -3
- package/dist/esm/types/transfer-policy.js.map +1 -1
- package/dist/esm/utils.d.ts +2 -2
- package/dist/esm/utils.js +2 -5
- package/dist/esm/utils.js.map +2 -2
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/bcs.ts +1 -1
- package/src/client/kiosk-client.ts +12 -13
- package/src/client/kiosk-transaction.ts +10 -10
- package/src/client/tp-transaction.ts +5 -5
- package/src/constants.ts +4 -2
- package/src/index.ts +6 -6
- package/src/query/kiosk.ts +5 -5
- package/src/query/transfer-policy.ts +5 -6
- package/src/tx/kiosk.ts +3 -2
- package/src/tx/personal-kiosk.ts +2 -2
- package/src/tx/rules/attach.ts +2 -2
- package/src/tx/rules/resolve.ts +2 -2
- package/src/tx/transfer-policy.ts +3 -2
- package/src/types/index.ts +5 -5
- package/src/types/kiosk.ts +3 -3
- package/src/types/transfer-policy.ts +3 -3
- package/src/utils.ts +5 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/tx/personal-kiosk.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { TransactionBlock, TransactionObjectArgument } from '@mysten/sui.js/transactions';\n\nimport { ObjectArgument } from '../types';\n\nexport function convertToPersonalTx(\n\ttx: TransactionBlock,\n\tkiosk: ObjectArgument,\n\tkioskOwnerCap: ObjectArgument,\n\tpackageId: string,\n): TransactionObjectArgument {\n\tconst personalKioskCap = tx.moveCall({\n\t\ttarget: `${packageId}::personal_kiosk::new`,\n\t\targuments: [tx.object(kiosk), tx.object(kioskOwnerCap)],\n\t});\n\n\treturn personalKioskCap;\n}\n\n/**\n * Transfers the personal kiosk Cap to the sender.\n */\nexport function transferPersonalCapTx(\n\ttx: TransactionBlock,\n\tpersonalKioskCap: TransactionObjectArgument,\n\tpackageId: string,\n) {\n\ttx.moveCall({\n\t\ttarget: `${packageId}::personal_kiosk::transfer_to_sender`,\n\t\targuments: [personalKioskCap],\n\t});\n}\n"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { TransactionBlock, TransactionObjectArgument } from '@mysten/sui.js/transactions';\n\nimport type { ObjectArgument } from '../types/index.js';\n\nexport function convertToPersonalTx(\n\ttx: TransactionBlock,\n\tkiosk: ObjectArgument,\n\tkioskOwnerCap: ObjectArgument,\n\tpackageId: string,\n): TransactionObjectArgument {\n\tconst personalKioskCap = tx.moveCall({\n\t\ttarget: `${packageId}::personal_kiosk::new`,\n\t\targuments: [tx.object(kiosk), tx.object(kioskOwnerCap)],\n\t});\n\n\treturn personalKioskCap;\n}\n\n/**\n * Transfers the personal kiosk Cap to the sender.\n */\nexport function transferPersonalCapTx(\n\ttx: TransactionBlock,\n\tpersonalKioskCap: TransactionObjectArgument,\n\tpackageId: string,\n) {\n\ttx.moveCall({\n\t\ttarget: `${packageId}::personal_kiosk::transfer_to_sender`,\n\t\targuments: [personalKioskCap],\n\t});\n}\n"],
|
|
5
5
|
"mappings": "AAOO,SAAS,oBACf,IACA,OACA,eACA,WAC4B;AAC5B,QAAM,mBAAmB,GAAG,SAAS;AAAA,IACpC,QAAQ,GAAG;AAAA,IACX,WAAW,CAAC,GAAG,OAAO,KAAK,GAAG,GAAG,OAAO,aAAa,CAAC;AAAA,EACvD,CAAC;AAED,SAAO;AACR;AAKO,SAAS,sBACf,IACA,kBACA,WACC;AACD,KAAG,SAAS;AAAA,IACX,QAAQ,GAAG;AAAA,IACX,WAAW,CAAC,gBAAgB;AAAA,EAC7B,CAAC;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { TransactionBlock } from '@mysten/sui.js/transactions';
|
|
2
|
+
import type { ObjectArgument } from '../../types/index.js';
|
|
3
3
|
export declare function attachKioskLockRuleTx(tx: TransactionBlock, type: string, policy: ObjectArgument, policyCap: ObjectArgument, packageId: string): void;
|
|
4
4
|
export declare function attachRoyaltyRuleTx(tx: TransactionBlock, type: string, policy: ObjectArgument, policyCap: ObjectArgument, percentageBps: number | string, // this is in basis points.
|
|
5
5
|
minAmount: number | string, packageId: string): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/tx/rules/attach.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { TransactionBlock } from '@mysten/sui.js/transactions';\n\nimport type { ObjectArgument } from '../../types/index.js';\n\nexport function attachKioskLockRuleTx(\n\ttx: TransactionBlock,\n\ttype: string,\n\tpolicy: ObjectArgument,\n\tpolicyCap: ObjectArgument,\n\tpackageId: string,\n) {\n\ttx.moveCall({\n\t\ttarget: `${packageId}::kiosk_lock_rule::add`,\n\t\ttypeArguments: [type],\n\t\targuments: [tx.object(policy), tx.object(policyCap)],\n\t});\n}\n\nexport function attachRoyaltyRuleTx(\n\ttx: TransactionBlock,\n\ttype: string,\n\tpolicy: ObjectArgument,\n\tpolicyCap: ObjectArgument,\n\tpercentageBps: number | string, // this is in basis points.\n\tminAmount: number | string,\n\tpackageId: string,\n) {\n\tif (Number(percentageBps) < 0 || Number(percentageBps) > 10_000)\n\t\tthrow new Error('Invalid basis point percentage. Use a value between [0,10000].');\n\n\ttx.moveCall({\n\t\ttarget: `${packageId}::royalty_rule::add`,\n\t\ttypeArguments: [type],\n\t\targuments: [\n\t\t\ttx.object(policy),\n\t\t\ttx.object(policyCap),\n\t\t\ttx.pure.u16(Number(percentageBps)),\n\t\t\ttx.pure.u64(minAmount),\n\t\t],\n\t});\n}\n\nexport function attachPersonalKioskRuleTx(\n\ttx: TransactionBlock,\n\ttype: string,\n\tpolicy: ObjectArgument,\n\tpolicyCap: ObjectArgument,\n\tpackageId: string,\n) {\n\ttx.moveCall({\n\t\ttarget: `${packageId}::personal_kiosk_rule::add`,\n\t\ttypeArguments: [type],\n\t\targuments: [tx.object(policy), tx.object(policyCap)],\n\t});\n}\n\nexport function attachFloorPriceRuleTx(\n\ttx: TransactionBlock,\n\ttype: string,\n\tpolicy: ObjectArgument,\n\tpolicyCap: ObjectArgument,\n\tminPrice: string | bigint,\n\tpackageId: string,\n) {\n\ttx.moveCall({\n\t\ttarget: `${packageId}::floor_price_rule::add`,\n\t\ttypeArguments: [type],\n\t\targuments: [tx.object(policy), tx.object(policyCap), tx.pure.u64(minPrice)],\n\t});\n}\n"],
|
|
5
5
|
"mappings": "AAOO,SAAS,sBACf,IACA,MACA,QACA,WACA,WACC;AACD,KAAG,SAAS;AAAA,IACX,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,IAAI;AAAA,IACpB,WAAW,CAAC,GAAG,OAAO,MAAM,GAAG,GAAG,OAAO,SAAS,CAAC;AAAA,EACpD,CAAC;AACF;AAEO,SAAS,oBACf,IACA,MACA,QACA,WACA,eACA,WACA,WACC;AACD,MAAI,OAAO,aAAa,IAAI,KAAK,OAAO,aAAa,IAAI;AACxD,UAAM,IAAI,MAAM,gEAAgE;AAEjF,KAAG,SAAS;AAAA,IACX,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,IAAI;AAAA,IACpB,WAAW;AAAA,MACV,GAAG,OAAO,MAAM;AAAA,MAChB,GAAG,OAAO,SAAS;AAAA,MACnB,GAAG,KAAK,IAAI,OAAO,aAAa,CAAC;AAAA,MACjC,GAAG,KAAK,IAAI,SAAS;AAAA,IACtB;AAAA,EACD,CAAC;AACF;AAEO,SAAS,0BACf,IACA,MACA,QACA,WACA,WACC;AACD,KAAG,SAAS;AAAA,IACX,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,IAAI;AAAA,IACpB,WAAW,CAAC,GAAG,OAAO,MAAM,GAAG,GAAG,OAAO,SAAS,CAAC;AAAA,EACpD,CAAC;AACF;AAEO,SAAS,uBACf,IACA,MACA,QACA,WACA,UACA,WACC;AACD,KAAG,SAAS;AAAA,IACX,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,IAAI;AAAA,IACpB,WAAW,CAAC,GAAG,OAAO,MAAM,GAAG,GAAG,OAAO,SAAS,GAAG,GAAG,KAAK,IAAI,QAAQ,CAAC;AAAA,EAC3E,CAAC;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/tx/rules/resolve.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { RuleResolvingParams } from '../../types/index.js';\nimport { lock } from '../kiosk.js';\n\n/**\n * A helper to resolve the royalty rule.\n */\nexport function resolveRoyaltyRule(params: RuleResolvingParams) {\n\tconst { transactionBlock: txb, itemType, price, packageId, transferRequest, policyId } = params;\n\n\tconst policyObj = txb.object(policyId);\n\n\t// calculates the amount\n\tconst [amount] = txb.moveCall({\n\t\ttarget: `${packageId}::royalty_rule::fee_amount`,\n\t\ttypeArguments: [itemType],\n\t\targuments: [policyObj, txb.pure.u64(price || '0')],\n\t});\n\n\t// splits the coin.\n\tconst feeCoin = txb.splitCoins(txb.gas, [amount]);\n\n\t// pays the policy\n\ttxb.moveCall({\n\t\ttarget: `${packageId}::royalty_rule::pay`,\n\t\ttypeArguments: [itemType],\n\t\targuments: [policyObj, transferRequest, feeCoin],\n\t});\n}\n\nexport function resolveKioskLockRule(params: RuleResolvingParams) {\n\tconst {\n\t\ttransactionBlock: txb,\n\t\tpackageId,\n\t\titemType,\n\t\tkiosk,\n\t\tkioskCap,\n\t\tpolicyId,\n\t\tpurchasedItem,\n\t\ttransferRequest,\n\t} = params;\n\n\tif (!kiosk || !kioskCap) throw new Error('Missing Owned Kiosk or Owned Kiosk Cap');\n\n\tlock(txb, itemType, kiosk, kioskCap, policyId, purchasedItem);\n\n\t// proves that the item is locked in the kiosk to the TP.\n\ttxb.moveCall({\n\t\ttarget: `${packageId}::kiosk_lock_rule::prove`,\n\t\ttypeArguments: [itemType],\n\t\targuments: [transferRequest, txb.object(kiosk)],\n\t});\n}\n\n/**\n * A helper to resolve the personalKioskRule.\n * @param params\n */\nexport function resolvePersonalKioskRule(params: RuleResolvingParams) {\n\tconst { transactionBlock: txb, packageId, itemType, kiosk, transferRequest } = params;\n\n\tif (!kiosk) throw new Error('Missing owned Kiosk.');\n\n\t// proves that the destination kiosk is personal.\n\ttxb.moveCall({\n\t\ttarget: `${packageId}::personal_kiosk_rule::prove`,\n\t\ttypeArguments: [itemType],\n\t\targuments: [txb.object(kiosk), transferRequest],\n\t});\n}\n\n/**\n * Resolves the floor price rule.\n */\nexport function resolveFloorPriceRule(params: RuleResolvingParams) {\n\tconst { transactionBlock: txb, packageId, itemType, policyId, transferRequest } = params;\n\n\t// proves that the destination kiosk is personal\n\ttxb.moveCall({\n\t\ttarget: `${packageId}::floor_price_rule::prove`,\n\t\ttypeArguments: [itemType],\n\t\targuments: [txb.object(policyId), transferRequest],\n\t});\n}\n"],
|
|
5
5
|
"mappings": "AAIA,SAAS,YAAY;AAKd,SAAS,mBAAmB,QAA6B;AAC/D,QAAM,EAAE,kBAAkB,KAAK,UAAU,OAAO,WAAW,iBAAiB,SAAS,IAAI;AAEzF,QAAM,YAAY,IAAI,OAAO,QAAQ;AAGrC,QAAM,CAAC,MAAM,IAAI,IAAI,SAAS;AAAA,IAC7B,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,QAAQ;AAAA,IACxB,WAAW,CAAC,WAAW,IAAI,KAAK,IAAI,SAAS,GAAG,CAAC;AAAA,EAClD,CAAC;AAGD,QAAM,UAAU,IAAI,WAAW,IAAI,KAAK,CAAC,MAAM,CAAC;AAGhD,MAAI,SAAS;AAAA,IACZ,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,QAAQ;AAAA,IACxB,WAAW,CAAC,WAAW,iBAAiB,OAAO;AAAA,EAChD,CAAC;AACF;AAEO,SAAS,qBAAqB,QAA6B;AACjE,QAAM;AAAA,IACL,kBAAkB;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,IAAI;AAEJ,MAAI,CAAC,SAAS,CAAC;AAAU,UAAM,IAAI,MAAM,wCAAwC;AAEjF,OAAK,KAAK,UAAU,OAAO,UAAU,UAAU,aAAa;AAG5D,MAAI,SAAS;AAAA,IACZ,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,QAAQ;AAAA,IACxB,WAAW,CAAC,iBAAiB,IAAI,OAAO,KAAK,CAAC;AAAA,EAC/C,CAAC;AACF;AAMO,SAAS,yBAAyB,QAA6B;AACrE,QAAM,EAAE,kBAAkB,KAAK,WAAW,UAAU,OAAO,gBAAgB,IAAI;AAE/E,MAAI,CAAC;AAAO,UAAM,IAAI,MAAM,sBAAsB;AAGlD,MAAI,SAAS;AAAA,IACZ,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,QAAQ;AAAA,IACxB,WAAW,CAAC,IAAI,OAAO,KAAK,GAAG,eAAe;AAAA,EAC/C,CAAC;AACF;AAKO,SAAS,sBAAsB,QAA6B;AAClE,QAAM,EAAE,kBAAkB,KAAK,WAAW,UAAU,UAAU,gBAAgB,IAAI;AAGlF,MAAI,SAAS;AAAA,IACZ,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,QAAQ;AAAA,IACxB,WAAW,CAAC,IAAI,OAAO,QAAQ,GAAG,eAAe;AAAA,EAClD,CAAC;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TransactionArgument, TransactionBlock, TransactionObjectArgument } from '@mysten/sui.js/transactions';
|
|
2
|
-
import { ObjectArgument } from '../types';
|
|
1
|
+
import type { TransactionArgument, TransactionBlock, TransactionObjectArgument } from '@mysten/sui.js/transactions';
|
|
2
|
+
import type { ObjectArgument } from '../types/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Call the `transfer_policy::new` function to create a new transfer policy.
|
|
5
5
|
* Returns `transferPolicyCap`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bcs } from "@mysten/sui.js/bcs";
|
|
2
|
-
import { TRANSFER_POLICY_MODULE, TRANSFER_POLICY_TYPE } from "../types";
|
|
2
|
+
import { TRANSFER_POLICY_MODULE, TRANSFER_POLICY_TYPE } from "../types/index.js";
|
|
3
3
|
function createTransferPolicy(tx, itemType, publisher) {
|
|
4
4
|
const [transferPolicy, transferPolicyCap] = createTransferPolicyWithoutSharing(
|
|
5
5
|
tx,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/tx/transfer-policy.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { bcs } from '@mysten/sui.js/bcs';\nimport {\n\tTransactionArgument,\n\tTransactionBlock,\n\tTransactionObjectArgument,\n} from '@mysten/sui.js/transactions';\n\nimport { ObjectArgument
|
|
5
|
-
"mappings": "AAGA,SAAS,WAAW;
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { bcs } from '@mysten/sui.js/bcs';\nimport type {\n\tTransactionArgument,\n\tTransactionBlock,\n\tTransactionObjectArgument,\n} from '@mysten/sui.js/transactions';\n\nimport type { ObjectArgument } from '../types/index.js';\nimport { TRANSFER_POLICY_MODULE, TRANSFER_POLICY_TYPE } from '../types/index.js';\n\n/**\n * Call the `transfer_policy::new` function to create a new transfer policy.\n * Returns `transferPolicyCap`\n */\nexport function createTransferPolicy(\n\ttx: TransactionBlock,\n\titemType: string,\n\tpublisher: ObjectArgument,\n): TransactionObjectArgument {\n\tconst [transferPolicy, transferPolicyCap] = createTransferPolicyWithoutSharing(\n\t\ttx,\n\t\titemType,\n\t\tpublisher,\n\t);\n\n\tshareTransferPolicy(tx, itemType, transferPolicy);\n\n\treturn transferPolicyCap;\n}\n\n/**\n * Creates a transfer Policy and returns both the Policy and the Cap.\n * Used if we want to use the policy before making it a shared object.\n */\nexport function createTransferPolicyWithoutSharing(\n\ttx: TransactionBlock,\n\titemType: string,\n\tpublisher: ObjectArgument,\n): [TransactionObjectArgument, TransactionObjectArgument] {\n\tconst [transferPolicy, transferPolicyCap] = tx.moveCall({\n\t\ttarget: `${TRANSFER_POLICY_MODULE}::new`,\n\t\ttypeArguments: [itemType],\n\t\targuments: [tx.object(publisher)],\n\t});\n\n\treturn [transferPolicy, transferPolicyCap];\n}\n/**\n * Converts Transfer Policy to a shared object.\n */\nexport function shareTransferPolicy(\n\ttx: TransactionBlock,\n\titemType: string,\n\ttransferPolicy: TransactionObjectArgument,\n) {\n\ttx.moveCall({\n\t\ttarget: `0x2::transfer::public_share_object`,\n\t\ttypeArguments: [`${TRANSFER_POLICY_TYPE}<${itemType}>`],\n\t\targuments: [transferPolicy],\n\t});\n}\n\n/**\n * Call the `transfer_policy::withdraw` function to withdraw profits from a transfer policy.\n */\nexport function withdrawFromPolicy(\n\ttx: TransactionBlock,\n\titemType: string,\n\tpolicy: ObjectArgument,\n\tpolicyCap: ObjectArgument,\n\tamount?: string | bigint | null,\n): TransactionObjectArgument {\n\tconst amountArg = bcs.option(bcs.u64()).serialize(amount);\n\n\tconst [profits] = tx.moveCall({\n\t\ttarget: `${TRANSFER_POLICY_MODULE}::withdraw`,\n\t\ttypeArguments: [itemType],\n\t\targuments: [tx.object(policy), tx.object(policyCap), amountArg],\n\t});\n\n\treturn profits;\n}\n\n/**\n * Call the `transfer_policy::confirm_request` function to unblock the\n * transaction.\n */\nexport function confirmRequest(\n\ttx: TransactionBlock,\n\titemType: string,\n\tpolicy: ObjectArgument,\n\trequest: TransactionArgument,\n): void {\n\ttx.moveCall({\n\t\ttarget: `${TRANSFER_POLICY_MODULE}::confirm_request`,\n\t\ttypeArguments: [itemType],\n\t\targuments: [tx.object(policy), request],\n\t});\n}\n\n/**\n * Calls the `transfer_policy::remove_rule` function to remove a Rule from the transfer policy's ruleset.\n */\nexport function removeTransferPolicyRule(\n\ttx: TransactionBlock,\n\titemType: string,\n\truleType: string,\n\tconfigType: string,\n\tpolicy: ObjectArgument,\n\tpolicyCap: ObjectArgument,\n): void {\n\ttx.moveCall({\n\t\ttarget: `${TRANSFER_POLICY_MODULE}::remove_rule`,\n\t\ttypeArguments: [itemType, ruleType, configType],\n\t\targuments: [tx.object(policy), tx.object(policyCap)],\n\t});\n}\n"],
|
|
5
|
+
"mappings": "AAGA,SAAS,WAAW;AAQpB,SAAS,wBAAwB,4BAA4B;AAMtD,SAAS,qBACf,IACA,UACA,WAC4B;AAC5B,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC3C;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAEA,sBAAoB,IAAI,UAAU,cAAc;AAEhD,SAAO;AACR;AAMO,SAAS,mCACf,IACA,UACA,WACyD;AACzD,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,GAAG,SAAS;AAAA,IACvD,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,QAAQ;AAAA,IACxB,WAAW,CAAC,GAAG,OAAO,SAAS,CAAC;AAAA,EACjC,CAAC;AAED,SAAO,CAAC,gBAAgB,iBAAiB;AAC1C;AAIO,SAAS,oBACf,IACA,UACA,gBACC;AACD,KAAG,SAAS;AAAA,IACX,QAAQ;AAAA,IACR,eAAe,CAAC,GAAG,wBAAwB,WAAW;AAAA,IACtD,WAAW,CAAC,cAAc;AAAA,EAC3B,CAAC;AACF;AAKO,SAAS,mBACf,IACA,UACA,QACA,WACA,QAC4B;AAC5B,QAAM,YAAY,IAAI,OAAO,IAAI,IAAI,CAAC,EAAE,UAAU,MAAM;AAExD,QAAM,CAAC,OAAO,IAAI,GAAG,SAAS;AAAA,IAC7B,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,QAAQ;AAAA,IACxB,WAAW,CAAC,GAAG,OAAO,MAAM,GAAG,GAAG,OAAO,SAAS,GAAG,SAAS;AAAA,EAC/D,CAAC;AAED,SAAO;AACR;AAMO,SAAS,eACf,IACA,UACA,QACA,SACO;AACP,KAAG,SAAS;AAAA,IACX,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,QAAQ;AAAA,IACxB,WAAW,CAAC,GAAG,OAAO,MAAM,GAAG,OAAO;AAAA,EACvC,CAAC;AACF;AAKO,SAAS,yBACf,IACA,UACA,UACA,YACA,QACA,WACO;AACP,KAAG,SAAS;AAAA,IACX,QAAQ,GAAG;AAAA,IACX,eAAe,CAAC,UAAU,UAAU,UAAU;AAAA,IAC9C,WAAW,CAAC,GAAG,OAAO,MAAM,GAAG,GAAG,OAAO,SAAS,CAAC;AAAA,EACpD,CAAC;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TransactionObjectArgument } from '@mysten/sui.js/transactions';
|
|
3
|
-
import { BaseRulePackageIds } from '../constants';
|
|
4
|
-
export * from './kiosk';
|
|
5
|
-
export * from './transfer-policy';
|
|
1
|
+
import type { SuiClient } from '@mysten/sui.js/client';
|
|
2
|
+
import type { TransactionObjectArgument } from '@mysten/sui.js/transactions';
|
|
3
|
+
import type { BaseRulePackageIds } from '../constants.js';
|
|
4
|
+
export * from './kiosk.js';
|
|
5
|
+
export * from './transfer-policy.js';
|
|
6
6
|
/**
|
|
7
7
|
* A valid argument for any of the Kiosk functions.
|
|
8
8
|
*/
|
package/dist/esm/types/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/types/index.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { SuiClient } from '@mysten/sui.js/client';\nimport type { TransactionObjectArgument } from '@mysten/sui.js/transactions';\n\nimport type { BaseRulePackageIds } from '../constants.js';\n\nexport * from './kiosk.js';\nexport * from './transfer-policy.js';\n\n/**\n * A valid argument for any of the Kiosk functions.\n */\nexport type ObjectArgument = string | TransactionObjectArgument;\n\n/**\n * A Network selector.\n * Kiosk SDK supports mainnet & testnet.\n * Pass `custom` for any other network (devnet, localnet).\n */\nexport enum Network {\n\tMAINNET = 'mainnet',\n\tTESTNET = 'testnet',\n\tCUSTOM = 'custom',\n}\n\n/**\n * The Client Options for Both KioskClient & TransferPolicyManager.\n */\nexport type KioskClientOptions = {\n\tclient: SuiClient;\n\tnetwork: Network;\n\tpackageIds?: BaseRulePackageIds;\n};\n"],
|
|
5
5
|
"mappings": "AAQA,cAAc;AACd,cAAc;AAYP,IAAK,UAAL,kBAAKA,aAAL;AACN,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,aAAU;AACV,EAAAA,SAAA,YAAS;AAHE,SAAAA;AAAA,GAAA;",
|
|
6
6
|
"names": ["Network"]
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PaginatedObjectsResponse, SuiObjectData, SuiObjectDataOptions } from '@mysten/sui.js/client';
|
|
2
|
-
import { TransactionArgument } from '@mysten/sui.js/transactions';
|
|
3
|
-
import { ObjectArgument } from '.';
|
|
1
|
+
import type { PaginatedObjectsResponse, SuiObjectData, SuiObjectDataOptions } from '@mysten/sui.js/client';
|
|
2
|
+
import type { TransactionArgument } from '@mysten/sui.js/transactions';
|
|
3
|
+
import type { ObjectArgument } from './index.js';
|
|
4
4
|
/** The Kiosk module. */
|
|
5
5
|
export declare const KIOSK_MODULE = "0x2::kiosk";
|
|
6
6
|
/** The Kiosk type. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/types/kiosk.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n\tPaginatedObjectsResponse,\n\tSuiObjectData,\n\tSuiObjectDataOptions,\n} from '@mysten/sui.js/client';\nimport { TransactionArgument } from '@mysten/sui.js/transactions';\n\nimport { ObjectArgument } from '.';\n\n/** The Kiosk module. */\nexport const KIOSK_MODULE = '0x2::kiosk';\n\n/** The Kiosk type. */\nexport const KIOSK_TYPE = `${KIOSK_MODULE}::Kiosk`;\n\n/** The Kiosk Owner Cap Type */\nexport const KIOSK_OWNER_CAP = `${KIOSK_MODULE}::KioskOwnerCap`;\n\n/** The Kiosk Item Type */\nexport const KIOSK_ITEM = `${KIOSK_MODULE}::Item`;\n\n/** The Kiosk Listing Type */\nexport const KIOSK_LISTING = `${KIOSK_MODULE}::Listing`;\n\n/** The Kiosk Lock Type */\nexport const KIOSK_LOCK = `${KIOSK_MODULE}::Lock`;\n\n/** The Kiosk PurchaseCap type */\nexport const KIOSK_PURCHASE_CAP = `${KIOSK_MODULE}::PurchaseCap`;\n\n/**\n * The Kiosk object fields (for BCS queries).\n */\nexport type Kiosk = {\n\tid: string;\n\tprofits: string;\n\towner: string;\n\titemCount: number;\n\tallowExtensions: boolean;\n};\n\n/**\n * PurchaseCap object fields (for BCS queries).\n */\nexport type PurchaseCap = {\n\tid: string;\n\tkioskId: string;\n\titemId: string;\n\tminPrice: string;\n};\n\n/**\n * The response type of a successful purchase flow.\n * Returns the item, and a `canTransfer` param.\n */\nexport type PurchaseAndResolvePoliciesResponse = {\n\titem: TransactionArgument;\n\tcanTransfer: boolean;\n};\n\n/**\n * Optional parameters for `purchaseAndResolvePolicies` flow.\n * This gives us the chance to extend the function in further releases\n * without introducing more breaking changes.\n */\nexport type PurchaseOptionalParams = {\n\townedKiosk?: ObjectArgument;\n\townedKioskCap?: ObjectArgument;\n};\n\n/**\n * A dynamic field `Listing { ID, isExclusive }` attached to the Kiosk.\n * Holds a `u64` value - the price of the item.\n */\nexport type KioskListing = {\n\t/** The ID of the Item */\n\tobjectId: string;\n\t/**\n\t * Whether or not there's a `PurchaseCap` issued. `true` means that\n\t * the listing is controlled by some logic and can't be purchased directly.\n\t *\n\t * TODO: consider renaming the field for better indication.\n\t */\n\tisExclusive: boolean;\n\t/** The ID of the listing */\n\tlistingId: string;\n\tprice?: string;\n};\n\n/**\n * A dynamic field `Item { ID }` attached to the Kiosk.\n * Holds an Item `T`. The type of the item is known upfront.\n */\nexport type KioskItem = {\n\t/** The ID of the Item */\n\tobjectId: string;\n\t/** The type of the Item */\n\ttype: string;\n\t/** Whether the item is Locked (there must be a `Lock` Dynamic Field) */\n\tisLocked: boolean;\n\t/** Optional listing */\n\tlisting?: KioskListing;\n\t/** The ID of the kiosk the item is placed in */\n\tkioskId: string;\n\t/** Optional Kiosk Data */\n\tdata?: SuiObjectData;\n};\n\n/** The overview type returned from `getKiosk` */\nexport type KioskExtensionOverview = {\n\t/** The ID of the extension's DF */\n\tobjectId: string;\n\t/** The inner type of the Extension */\n\ttype: string;\n};\n/**\n * Hold the KioskExtension data\n */\nexport type KioskExtension = KioskExtensionOverview & {\n\t/** These fields are only there if we have `withExtensions` flag */\n\tisEnabled: boolean;\n\tpermissions: string;\n\tstorageId: string;\n\tstorageSize: number;\n};\n\n/**\n * Aggregated data from the Kiosk.\n */\nexport type KioskData = {\n\titems: KioskItem[];\n\titemIds: string[];\n\tlistingIds: string[];\n\tkiosk?: Kiosk;\n\textensions: KioskExtensionOverview[]; // type will be defined on later versions of the SDK.\n};\n\nexport type PagedKioskData = {\n\tdata: KioskData;\n\tnextCursor: string | null | undefined;\n\thasNextPage: boolean;\n};\n\nexport type FetchKioskOptions = {\n\t/** Include the base kiosk object, which includes the profits, the owner and the base fields. */\n\twithKioskFields?: boolean;\n\t/** Include the listing prices. */\n\twithListingPrices?: boolean;\n\t/** Include the objects for the Items in the kiosk. Defaults to `display` only. */\n\twithObjects?: boolean;\n\t/** Pass the data options for the objects, when fetching, in case you want to query other details. */\n\tobjectOptions?: SuiObjectDataOptions;\n};\n\nexport type OwnedKiosks = {\n\tkioskOwnerCaps: KioskOwnerCap[];\n\tkioskIds: string[];\n} & Omit<PaginatedObjectsResponse, 'data'>;\n\nexport type KioskOwnerCap = {\n\tisPersonal?: boolean;\n\tobjectId: string;\n\tkioskId: string;\n\tdigest: string;\n\tversion: string;\n};\n\nexport type PurchaseOptions = {\n\textraArgs?: Record<string, any>;\n};\n\nexport type ItemId = { itemType: string; itemId: string };\nexport type ItemReference = { itemType: string; item: ObjectArgument };\nexport type ItemValue = { itemType: string; item: TransactionArgument };\nexport type Price = { price: string | bigint };\n"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tPaginatedObjectsResponse,\n\tSuiObjectData,\n\tSuiObjectDataOptions,\n} from '@mysten/sui.js/client';\nimport type { TransactionArgument } from '@mysten/sui.js/transactions';\n\nimport type { ObjectArgument } from './index.js';\n\n/** The Kiosk module. */\nexport const KIOSK_MODULE = '0x2::kiosk';\n\n/** The Kiosk type. */\nexport const KIOSK_TYPE = `${KIOSK_MODULE}::Kiosk`;\n\n/** The Kiosk Owner Cap Type */\nexport const KIOSK_OWNER_CAP = `${KIOSK_MODULE}::KioskOwnerCap`;\n\n/** The Kiosk Item Type */\nexport const KIOSK_ITEM = `${KIOSK_MODULE}::Item`;\n\n/** The Kiosk Listing Type */\nexport const KIOSK_LISTING = `${KIOSK_MODULE}::Listing`;\n\n/** The Kiosk Lock Type */\nexport const KIOSK_LOCK = `${KIOSK_MODULE}::Lock`;\n\n/** The Kiosk PurchaseCap type */\nexport const KIOSK_PURCHASE_CAP = `${KIOSK_MODULE}::PurchaseCap`;\n\n/**\n * The Kiosk object fields (for BCS queries).\n */\nexport type Kiosk = {\n\tid: string;\n\tprofits: string;\n\towner: string;\n\titemCount: number;\n\tallowExtensions: boolean;\n};\n\n/**\n * PurchaseCap object fields (for BCS queries).\n */\nexport type PurchaseCap = {\n\tid: string;\n\tkioskId: string;\n\titemId: string;\n\tminPrice: string;\n};\n\n/**\n * The response type of a successful purchase flow.\n * Returns the item, and a `canTransfer` param.\n */\nexport type PurchaseAndResolvePoliciesResponse = {\n\titem: TransactionArgument;\n\tcanTransfer: boolean;\n};\n\n/**\n * Optional parameters for `purchaseAndResolvePolicies` flow.\n * This gives us the chance to extend the function in further releases\n * without introducing more breaking changes.\n */\nexport type PurchaseOptionalParams = {\n\townedKiosk?: ObjectArgument;\n\townedKioskCap?: ObjectArgument;\n};\n\n/**\n * A dynamic field `Listing { ID, isExclusive }` attached to the Kiosk.\n * Holds a `u64` value - the price of the item.\n */\nexport type KioskListing = {\n\t/** The ID of the Item */\n\tobjectId: string;\n\t/**\n\t * Whether or not there's a `PurchaseCap` issued. `true` means that\n\t * the listing is controlled by some logic and can't be purchased directly.\n\t *\n\t * TODO: consider renaming the field for better indication.\n\t */\n\tisExclusive: boolean;\n\t/** The ID of the listing */\n\tlistingId: string;\n\tprice?: string;\n};\n\n/**\n * A dynamic field `Item { ID }` attached to the Kiosk.\n * Holds an Item `T`. The type of the item is known upfront.\n */\nexport type KioskItem = {\n\t/** The ID of the Item */\n\tobjectId: string;\n\t/** The type of the Item */\n\ttype: string;\n\t/** Whether the item is Locked (there must be a `Lock` Dynamic Field) */\n\tisLocked: boolean;\n\t/** Optional listing */\n\tlisting?: KioskListing;\n\t/** The ID of the kiosk the item is placed in */\n\tkioskId: string;\n\t/** Optional Kiosk Data */\n\tdata?: SuiObjectData;\n};\n\n/** The overview type returned from `getKiosk` */\nexport type KioskExtensionOverview = {\n\t/** The ID of the extension's DF */\n\tobjectId: string;\n\t/** The inner type of the Extension */\n\ttype: string;\n};\n/**\n * Hold the KioskExtension data\n */\nexport type KioskExtension = KioskExtensionOverview & {\n\t/** These fields are only there if we have `withExtensions` flag */\n\tisEnabled: boolean;\n\tpermissions: string;\n\tstorageId: string;\n\tstorageSize: number;\n};\n\n/**\n * Aggregated data from the Kiosk.\n */\nexport type KioskData = {\n\titems: KioskItem[];\n\titemIds: string[];\n\tlistingIds: string[];\n\tkiosk?: Kiosk;\n\textensions: KioskExtensionOverview[]; // type will be defined on later versions of the SDK.\n};\n\nexport type PagedKioskData = {\n\tdata: KioskData;\n\tnextCursor: string | null | undefined;\n\thasNextPage: boolean;\n};\n\nexport type FetchKioskOptions = {\n\t/** Include the base kiosk object, which includes the profits, the owner and the base fields. */\n\twithKioskFields?: boolean;\n\t/** Include the listing prices. */\n\twithListingPrices?: boolean;\n\t/** Include the objects for the Items in the kiosk. Defaults to `display` only. */\n\twithObjects?: boolean;\n\t/** Pass the data options for the objects, when fetching, in case you want to query other details. */\n\tobjectOptions?: SuiObjectDataOptions;\n};\n\nexport type OwnedKiosks = {\n\tkioskOwnerCaps: KioskOwnerCap[];\n\tkioskIds: string[];\n} & Omit<PaginatedObjectsResponse, 'data'>;\n\nexport type KioskOwnerCap = {\n\tisPersonal?: boolean;\n\tobjectId: string;\n\tkioskId: string;\n\tdigest: string;\n\tversion: string;\n};\n\nexport type PurchaseOptions = {\n\textraArgs?: Record<string, any>;\n};\n\nexport type ItemId = { itemType: string; itemId: string };\nexport type ItemReference = { itemType: string; item: ObjectArgument };\nexport type ItemValue = { itemType: string; item: TransactionArgument };\nexport type Price = { price: string | bigint };\n"],
|
|
5
5
|
"mappings": "AAaO,MAAM,eAAe;AAGrB,MAAM,aAAa,GAAG;AAGtB,MAAM,kBAAkB,GAAG;AAG3B,MAAM,aAAa,GAAG;AAGtB,MAAM,gBAAgB,GAAG;AAGzB,MAAM,aAAa,GAAG;AAGtB,MAAM,qBAAqB,GAAG;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ObjectArgument } from '.';
|
|
1
|
+
import type { ObjectOwner } from '@mysten/sui.js/client';
|
|
2
|
+
import type { TransactionBlock, TransactionObjectArgument } from '@mysten/sui.js/transactions';
|
|
3
|
+
import type { ObjectArgument } from './index.js';
|
|
4
4
|
/** The Transfer Policy module. */
|
|
5
5
|
export declare const TRANSFER_POLICY_MODULE = "0x2::transfer_policy";
|
|
6
6
|
/** Name of the event emitted when a TransferPolicy for T is created. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/types/transfer-policy.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ObjectOwner } from '@mysten/sui.js/client';\nimport type { TransactionBlock, TransactionObjectArgument } from '@mysten/sui.js/transactions';\n\nimport type { ObjectArgument } from './index.js';\n\n/** The Transfer Policy module. */\nexport const TRANSFER_POLICY_MODULE = '0x2::transfer_policy';\n\n/** Name of the event emitted when a TransferPolicy for T is created. */\nexport const TRANSFER_POLICY_CREATED_EVENT = `${TRANSFER_POLICY_MODULE}::TransferPolicyCreated`;\n\n/** The Transfer Policy Type */\nexport const TRANSFER_POLICY_TYPE = `${TRANSFER_POLICY_MODULE}::TransferPolicy`;\n\n/** The Transfer Policy Cap Type */\nexport const TRANSFER_POLICY_CAP_TYPE = `${TRANSFER_POLICY_MODULE}::TransferPolicyCap`;\n\n/** The Kiosk Lock Rule */\nexport const KIOSK_LOCK_RULE = 'kiosk_lock_rule::Rule';\n\n/** The Royalty rule */\nexport const ROYALTY_RULE = 'royalty_rule::Rule';\n\n/**\n * The Transfer Policy Cap in a consumable way.\n */\nexport type TransferPolicyCap = {\n\tpolicyId: string;\n\tpolicyCapId: string;\n\ttype: string;\n};\n\n/** The `TransferPolicy` object */\nexport type TransferPolicy = {\n\tid: string;\n\ttype: string;\n\tbalance: string;\n\trules: string[];\n\towner: ObjectOwner;\n};\n\n/** Event emitted when a TransferPolicy is created. */\nexport type TransferPolicyCreated = {\n\tid: string;\n};\n\n// The object a Rule resolving function accepts\n// It can accept a set of fixed fields, that are part of every purchase flow as well any extra arguments to resolve custom policies!\n// Each rule resolving function should check that the key it's seeking is in the object\n// e.g. `if(!'my_key' in ruleParams!) throw new Error(\"Can't resolve that rule!\")`\nexport type RuleResolvingParams = {\n\ttransactionBlock: TransactionBlock;\n\titemType: string;\n\titemId: string;\n\tprice: string;\n\tpolicyId: ObjectArgument;\n\tsellerKiosk: ObjectArgument;\n\tkiosk: ObjectArgument;\n\tkioskCap: ObjectArgument;\n\ttransferRequest: TransactionObjectArgument;\n\tpurchasedItem: TransactionObjectArgument;\n\tpackageId: string;\n\textraArgs: Record<string, any>; // extraParams contains more possible {key, values} to pass for custom rules.\n};\n"],
|
|
5
5
|
"mappings": "AASO,MAAM,yBAAyB;AAG/B,MAAM,gCAAgC,GAAG;AAGzC,MAAM,uBAAuB,GAAG;AAGhC,MAAM,2BAA2B,GAAG;AAGpC,MAAM,kBAAkB;AAGxB,MAAM,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PaginationArguments, SuiClient, SuiObjectData, SuiObjectDataFilter, SuiObjectDataOptions, SuiObjectResponse
|
|
2
|
-
import { Kiosk, KioskData, KioskListing, TransferPolicyCap } from './types';
|
|
1
|
+
import type { DynamicFieldInfo, PaginationArguments, SuiClient, SuiObjectData, SuiObjectDataFilter, SuiObjectDataOptions, SuiObjectResponse } from '@mysten/sui.js/client';
|
|
2
|
+
import type { Kiosk, KioskData, KioskListing, TransferPolicyCap } from './types/index.js';
|
|
3
3
|
export declare function getKioskObject(client: SuiClient, id: string): Promise<Kiosk>;
|
|
4
4
|
export declare function extractKioskData(data: DynamicFieldInfo[], listings: KioskListing[], lockedItemIds: string[], kioskId: string): KioskData;
|
|
5
5
|
/**
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { normalizeStructTag, normalizeSuiAddress, parseStructTag } from "@mysten/sui.js/utils";
|
|
2
|
-
import { bcs } from "./bcs";
|
|
3
|
-
import {
|
|
4
|
-
KIOSK_TYPE,
|
|
5
|
-
TRANSFER_POLICY_CAP_TYPE
|
|
6
|
-
} from "./types";
|
|
2
|
+
import { bcs } from "./bcs.js";
|
|
3
|
+
import { KIOSK_TYPE, TRANSFER_POLICY_CAP_TYPE } from "./types/index.js";
|
|
7
4
|
const DEFAULT_QUERY_LIMIT = 50;
|
|
8
5
|
async function getKioskObject(client, id) {
|
|
9
6
|
const queryRes = await client.getObject({ id, options: { showBcs: true } });
|
package/dist/esm/utils.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/utils.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n\tPaginationArguments,\n\tSuiClient,\n\tSuiObjectData,\n\tSuiObjectDataFilter,\n\tSuiObjectDataOptions,\n\tSuiObjectResponse,\n
|
|
5
|
-
"mappings": "AAYA,SAAS,oBAAoB,qBAAqB,sBAAsB;AAExE,SAAS,WAAW;
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n\tDynamicFieldInfo,\n\tPaginationArguments,\n\tSuiClient,\n\tSuiObjectData,\n\tSuiObjectDataFilter,\n\tSuiObjectDataOptions,\n\tSuiObjectResponse,\n} from '@mysten/sui.js/client';\nimport { normalizeStructTag, normalizeSuiAddress, parseStructTag } from '@mysten/sui.js/utils';\n\nimport { bcs } from './bcs.js';\nimport type { Kiosk, KioskData, KioskListing, TransferPolicyCap } from './types/index.js';\nimport { KIOSK_TYPE, TRANSFER_POLICY_CAP_TYPE } from './types/index.js';\n\nconst DEFAULT_QUERY_LIMIT = 50;\n\nexport async function getKioskObject(client: SuiClient, id: string): Promise<Kiosk> {\n\tconst queryRes = await client.getObject({ id, options: { showBcs: true } });\n\n\tif (!queryRes || queryRes.error || !queryRes.data) {\n\t\tthrow new Error(`Kiosk ${id} not found; ${queryRes.error}`);\n\t}\n\n\tif (!queryRes.data.bcs || !('bcsBytes' in queryRes.data.bcs)) {\n\t\tthrow new Error(`Invalid kiosk query: ${id}, expected object, got package`);\n\t}\n\n\treturn bcs.de(KIOSK_TYPE, queryRes.data.bcs!.bcsBytes, 'base64');\n}\n\n// helper to extract kiosk data from dynamic fields.\nexport function extractKioskData(\n\tdata: DynamicFieldInfo[],\n\tlistings: KioskListing[],\n\tlockedItemIds: string[],\n\tkioskId: string,\n): KioskData {\n\treturn data.reduce<KioskData>(\n\t\t(acc: KioskData, val: DynamicFieldInfo) => {\n\t\t\tconst type = val.name.type;\n\n\t\t\tif (type.startsWith('0x2::kiosk::Item')) {\n\t\t\t\tacc.itemIds.push(val.objectId);\n\t\t\t\tacc.items.push({\n\t\t\t\t\tobjectId: val.objectId,\n\t\t\t\t\ttype: val.objectType,\n\t\t\t\t\tisLocked: false,\n\t\t\t\t\tkioskId,\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (type.startsWith('0x2::kiosk::Listing')) {\n\t\t\t\tacc.listingIds.push(val.objectId);\n\t\t\t\tlistings.push({\n\t\t\t\t\tobjectId: (val.name.value as { id: string }).id,\n\t\t\t\t\tlistingId: val.objectId,\n\t\t\t\t\tisExclusive: (val.name.value as { is_exclusive: boolean }).is_exclusive,\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (type.startsWith('0x2::kiosk::Lock')) {\n\t\t\t\tlockedItemIds?.push((val.name.value as { id: string }).id);\n\t\t\t}\n\n\t\t\tif (type.startsWith('0x2::kiosk_extension::ExtensionKey')) {\n\t\t\t\tacc.extensions.push({\n\t\t\t\t\tobjectId: val.objectId,\n\t\t\t\t\ttype: normalizeStructTag(parseStructTag(val.name.type).typeParams[0]),\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn acc;\n\t\t},\n\t\t{ items: [], itemIds: [], listingIds: [], extensions: [] },\n\t);\n}\n\n/**\n * A helper that attaches the listing prices to kiosk listings.\n */\nexport function attachListingsAndPrices(\n\tkioskData: KioskData,\n\tlistings: KioskListing[],\n\tlistingObjects: SuiObjectResponse[],\n) {\n\t// map item listings as {item_id: KioskListing}\n\t// for easier mapping on the nex\n\tconst itemListings = listings.reduce<Record<string, KioskListing>>(\n\t\t(acc: Record<string, KioskListing>, item, idx) => {\n\t\t\tacc[item.objectId] = { ...item };\n\n\t\t\t// return in case we don't have any listing objects.\n\t\t\t// that's the case when we don't have the `listingPrices` included.\n\t\t\tif (listingObjects.length === 0) return acc;\n\n\t\t\tconst content = listingObjects[idx].data?.content;\n\t\t\tconst data = content?.dataType === 'moveObject' ? content?.fields : null;\n\n\t\t\tif (!data) return acc;\n\n\t\t\tacc[item.objectId].price = (data as { value: string }).value;\n\t\t\treturn acc;\n\t\t},\n\t\t{},\n\t);\n\n\tkioskData.items.forEach((item) => {\n\t\titem.listing = itemListings[item.objectId] || undefined;\n\t});\n}\n\n/**\n * A helper that attaches the listing prices to kiosk listings.\n */\nexport function attachObjects(kioskData: KioskData, objects: SuiObjectData[]) {\n\tconst mapping = objects.reduce<Record<string, SuiObjectData>>(\n\t\t(acc: Record<string, SuiObjectData>, obj) => {\n\t\t\tacc[obj.objectId] = obj;\n\t\t\treturn acc;\n\t\t},\n\t\t{},\n\t);\n\n\tkioskData.items.forEach((item) => {\n\t\titem.data = mapping[item.objectId] || undefined;\n\t});\n}\n\n/**\n * A Helper to attach locked state to items in Kiosk Data.\n */\nexport function attachLockedItems(kioskData: KioskData, lockedItemIds: string[]) {\n\t// map lock status in an array of type { item_id: true }\n\tconst lockedStatuses = lockedItemIds.reduce<Record<string, boolean>>(\n\t\t(acc: Record<string, boolean>, item: string) => {\n\t\t\tacc[item] = true;\n\t\t\treturn acc;\n\t\t},\n\t\t{},\n\t);\n\n\t// parse lockedItemIds and attach their locked status.\n\tkioskData.items.forEach((item) => {\n\t\titem.isLocked = lockedStatuses[item.objectId] || false;\n\t});\n}\n\n/**\n * A helper to fetch all DF pages.\n * We need that to fetch the kiosk DFs consistently, until we have\n * RPC calls that allow filtering of Type / batch fetching of spec\n */\nexport async function getAllDynamicFields(\n\tclient: SuiClient,\n\tparentId: string,\n\tpagination: PaginationArguments<string>,\n) {\n\tlet hasNextPage = true;\n\tlet cursor = undefined;\n\tconst data: DynamicFieldInfo[] = [];\n\n\twhile (hasNextPage) {\n\t\tconst result = await client.getDynamicFields({\n\t\t\tparentId,\n\t\t\tlimit: pagination.limit || undefined,\n\t\t\tcursor,\n\t\t});\n\t\tdata.push(...result.data);\n\t\thasNextPage = result.hasNextPage;\n\t\tcursor = result.nextCursor;\n\t}\n\n\treturn data;\n}\n\n/**\n * A helper to fetch all objects that works with pagination.\n * It will fetch all objects in the array, and limit it to 50/request.\n * Requests are sent using `Promise.all`.\n */\nexport async function getAllObjects(\n\tclient: SuiClient,\n\tids: string[],\n\toptions: SuiObjectDataOptions,\n\tlimit: number = DEFAULT_QUERY_LIMIT,\n) {\n\tconst chunks = Array.from({ length: Math.ceil(ids.length / limit) }, (_, index) =>\n\t\tids.slice(index * limit, index * limit + limit),\n\t);\n\n\tconst results = await Promise.all(\n\t\tchunks.map((chunk) => {\n\t\t\treturn client.multiGetObjects({\n\t\t\t\tids: chunk,\n\t\t\t\toptions,\n\t\t\t});\n\t\t}),\n\t);\n\n\treturn results.flat();\n}\n\n/**\n * A helper to return all owned objects, with an optional filter.\n * It parses all the pages and returns the data.\n */\nexport async function getAllOwnedObjects({\n\tclient,\n\towner,\n\tfilter,\n\tlimit = DEFAULT_QUERY_LIMIT,\n\toptions = { showType: true, showContent: true },\n}: {\n\tclient: SuiClient;\n\towner: string;\n\tfilter?: SuiObjectDataFilter;\n\toptions?: SuiObjectDataOptions;\n\tlimit?: number;\n}) {\n\tlet hasNextPage = true;\n\tlet cursor = undefined;\n\tconst data: SuiObjectResponse[] = [];\n\n\twhile (hasNextPage) {\n\t\tconst result = await client.getOwnedObjects({\n\t\t\towner,\n\t\t\tfilter,\n\t\t\tlimit,\n\t\t\tcursor,\n\t\t\toptions,\n\t\t});\n\t\tdata.push(...result.data);\n\t\thasNextPage = result.hasNextPage;\n\t\tcursor = result.nextCursor;\n\t}\n\n\treturn data;\n}\n\n/**\n * Converts a number to basis points.\n * Supports up to 2 decimal points.\n * E.g 9.95 -> 995\n * @param percentage A percentage amount in the range [0, 100] including decimals.\n */\nexport function percentageToBasisPoints(percentage: number) {\n\tif (percentage < 0 || percentage > 100)\n\t\tthrow new Error('Percentage needs to be in the [0,100] range.');\n\treturn Math.ceil(percentage * 100);\n}\n\n/**\n * A helper to parse a transfer policy Cap into a usable object.\n */\nexport function parseTransferPolicyCapObject(\n\titem: SuiObjectResponse,\n): TransferPolicyCap | undefined {\n\tconst type = (item?.data?.content as { type: string })?.type;\n\n\t//@ts-ignore-next-line\n\tconst policy = item?.data?.content?.fields?.policy_id as string;\n\n\tif (!type.includes(TRANSFER_POLICY_CAP_TYPE)) return undefined;\n\n\t// Transform 0x2::transfer_policy::TransferPolicyCap<itemType> -> itemType\n\tconst objectType = type.replace(TRANSFER_POLICY_CAP_TYPE + '<', '').slice(0, -1);\n\n\treturn {\n\t\tpolicyId: policy,\n\t\tpolicyCapId: item.data?.objectId!,\n\t\ttype: objectType,\n\t};\n}\n\n// Normalizes the packageId part of a rule's type.\nexport function getNormalizedRuleType(rule: string) {\n\tconst normalizedRuleAddress = rule.split('::');\n\tnormalizedRuleAddress[0] = normalizeSuiAddress(normalizedRuleAddress[0]);\n\treturn normalizedRuleAddress.join('::');\n}\n"],
|
|
5
|
+
"mappings": "AAYA,SAAS,oBAAoB,qBAAqB,sBAAsB;AAExE,SAAS,WAAW;AAEpB,SAAS,YAAY,gCAAgC;AAErD,MAAM,sBAAsB;AAE5B,eAAsB,eAAe,QAAmB,IAA4B;AACnF,QAAM,WAAW,MAAM,OAAO,UAAU,EAAE,IAAI,SAAS,EAAE,SAAS,KAAK,EAAE,CAAC;AAE1E,MAAI,CAAC,YAAY,SAAS,SAAS,CAAC,SAAS,MAAM;AAClD,UAAM,IAAI,MAAM,SAAS,iBAAiB,SAAS,OAAO;AAAA,EAC3D;AAEA,MAAI,CAAC,SAAS,KAAK,OAAO,EAAE,cAAc,SAAS,KAAK,MAAM;AAC7D,UAAM,IAAI,MAAM,wBAAwB,kCAAkC;AAAA,EAC3E;AAEA,SAAO,IAAI,GAAG,YAAY,SAAS,KAAK,IAAK,UAAU,QAAQ;AAChE;AAGO,SAAS,iBACf,MACA,UACA,eACA,SACY;AACZ,SAAO,KAAK;AAAA,IACX,CAAC,KAAgB,QAA0B;AAC1C,YAAM,OAAO,IAAI,KAAK;AAEtB,UAAI,KAAK,WAAW,kBAAkB,GAAG;AACxC,YAAI,QAAQ,KAAK,IAAI,QAAQ;AAC7B,YAAI,MAAM,KAAK;AAAA,UACd,UAAU,IAAI;AAAA,UACd,MAAM,IAAI;AAAA,UACV,UAAU;AAAA,UACV;AAAA,QACD,CAAC;AAAA,MACF;AACA,UAAI,KAAK,WAAW,qBAAqB,GAAG;AAC3C,YAAI,WAAW,KAAK,IAAI,QAAQ;AAChC,iBAAS,KAAK;AAAA,UACb,UAAW,IAAI,KAAK,MAAyB;AAAA,UAC7C,WAAW,IAAI;AAAA,UACf,aAAc,IAAI,KAAK,MAAoC;AAAA,QAC5D,CAAC;AAAA,MACF;AACA,UAAI,KAAK,WAAW,kBAAkB,GAAG;AACxC,uBAAe,KAAM,IAAI,KAAK,MAAyB,EAAE;AAAA,MAC1D;AAEA,UAAI,KAAK,WAAW,oCAAoC,GAAG;AAC1D,YAAI,WAAW,KAAK;AAAA,UACnB,UAAU,IAAI;AAAA,UACd,MAAM,mBAAmB,eAAe,IAAI,KAAK,IAAI,EAAE,WAAW,CAAC,CAAC;AAAA,QACrE,CAAC;AAAA,MACF;AAEA,aAAO;AAAA,IACR;AAAA,IACA,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,GAAG,YAAY,CAAC,GAAG,YAAY,CAAC,EAAE;AAAA,EAC1D;AACD;AAKO,SAAS,wBACf,WACA,UACA,gBACC;AAGD,QAAM,eAAe,SAAS;AAAA,IAC7B,CAAC,KAAmC,MAAM,QAAQ;AACjD,UAAI,KAAK,QAAQ,IAAI,EAAE,GAAG,KAAK;AAI/B,UAAI,eAAe,WAAW;AAAG,eAAO;AAExC,YAAM,UAAU,eAAe,GAAG,EAAE,MAAM;AAC1C,YAAM,OAAO,SAAS,aAAa,eAAe,SAAS,SAAS;AAEpE,UAAI,CAAC;AAAM,eAAO;AAElB,UAAI,KAAK,QAAQ,EAAE,QAAS,KAA2B;AACvD,aAAO;AAAA,IACR;AAAA,IACA,CAAC;AAAA,EACF;AAEA,YAAU,MAAM,QAAQ,CAAC,SAAS;AACjC,SAAK,UAAU,aAAa,KAAK,QAAQ,KAAK;AAAA,EAC/C,CAAC;AACF;AAKO,SAAS,cAAc,WAAsB,SAA0B;AAC7E,QAAM,UAAU,QAAQ;AAAA,IACvB,CAAC,KAAoC,QAAQ;AAC5C,UAAI,IAAI,QAAQ,IAAI;AACpB,aAAO;AAAA,IACR;AAAA,IACA,CAAC;AAAA,EACF;AAEA,YAAU,MAAM,QAAQ,CAAC,SAAS;AACjC,SAAK,OAAO,QAAQ,KAAK,QAAQ,KAAK;AAAA,EACvC,CAAC;AACF;AAKO,SAAS,kBAAkB,WAAsB,eAAyB;AAEhF,QAAM,iBAAiB,cAAc;AAAA,IACpC,CAAC,KAA8B,SAAiB;AAC/C,UAAI,IAAI,IAAI;AACZ,aAAO;AAAA,IACR;AAAA,IACA,CAAC;AAAA,EACF;AAGA,YAAU,MAAM,QAAQ,CAAC,SAAS;AACjC,SAAK,WAAW,eAAe,KAAK,QAAQ,KAAK;AAAA,EAClD,CAAC;AACF;AAOA,eAAsB,oBACrB,QACA,UACA,YACC;AACD,MAAI,cAAc;AAClB,MAAI,SAAS;AACb,QAAM,OAA2B,CAAC;AAElC,SAAO,aAAa;AACnB,UAAM,SAAS,MAAM,OAAO,iBAAiB;AAAA,MAC5C;AAAA,MACA,OAAO,WAAW,SAAS;AAAA,MAC3B;AAAA,IACD,CAAC;AACD,SAAK,KAAK,GAAG,OAAO,IAAI;AACxB,kBAAc,OAAO;AACrB,aAAS,OAAO;AAAA,EACjB;AAEA,SAAO;AACR;AAOA,eAAsB,cACrB,QACA,KACA,SACA,QAAgB,qBACf;AACD,QAAM,SAAS,MAAM;AAAA,IAAK,EAAE,QAAQ,KAAK,KAAK,IAAI,SAAS,KAAK,EAAE;AAAA,IAAG,CAAC,GAAG,UACxE,IAAI,MAAM,QAAQ,OAAO,QAAQ,QAAQ,KAAK;AAAA,EAC/C;AAEA,QAAM,UAAU,MAAM,QAAQ;AAAA,IAC7B,OAAO,IAAI,CAAC,UAAU;AACrB,aAAO,OAAO,gBAAgB;AAAA,QAC7B,KAAK;AAAA,QACL;AAAA,MACD,CAAC;AAAA,IACF,CAAC;AAAA,EACF;AAEA,SAAO,QAAQ,KAAK;AACrB;AAMA,eAAsB,mBAAmB;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,UAAU,EAAE,UAAU,MAAM,aAAa,KAAK;AAC/C,GAMG;AACF,MAAI,cAAc;AAClB,MAAI,SAAS;AACb,QAAM,OAA4B,CAAC;AAEnC,SAAO,aAAa;AACnB,UAAM,SAAS,MAAM,OAAO,gBAAgB;AAAA,MAC3C;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACD,CAAC;AACD,SAAK,KAAK,GAAG,OAAO,IAAI;AACxB,kBAAc,OAAO;AACrB,aAAS,OAAO;AAAA,EACjB;AAEA,SAAO;AACR;AAQO,SAAS,wBAAwB,YAAoB;AAC3D,MAAI,aAAa,KAAK,aAAa;AAClC,UAAM,IAAI,MAAM,8CAA8C;AAC/D,SAAO,KAAK,KAAK,aAAa,GAAG;AAClC;AAKO,SAAS,6BACf,MACgC;AAChC,QAAM,OAAQ,MAAM,MAAM,SAA8B;AAGxD,QAAM,SAAS,MAAM,MAAM,SAAS,QAAQ;AAE5C,MAAI,CAAC,KAAK,SAAS,wBAAwB;AAAG,WAAO;AAGrD,QAAM,aAAa,KAAK,QAAQ,2BAA2B,KAAK,EAAE,EAAE,MAAM,GAAG,EAAE;AAE/E,SAAO;AAAA,IACN,UAAU;AAAA,IACV,aAAa,KAAK,MAAM;AAAA,IACxB,MAAM;AAAA,EACP;AACD;AAGO,SAAS,sBAAsB,MAAc;AACnD,QAAM,wBAAwB,KAAK,MAAM,IAAI;AAC7C,wBAAsB,CAAC,IAAI,oBAAoB,sBAAsB,CAAC,CAAC;AACvE,SAAO,sBAAsB,KAAK,IAAI;AACvC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../bcs/dist/cjs/b58.d.ts","../../bcs/dist/cjs/b64.d.ts","../../bcs/dist/cjs/reader.d.ts","../../bcs/dist/cjs/types.d.ts","../../bcs/dist/cjs/writer.d.ts","../../bcs/dist/cjs/bcs-type.d.ts","../../bcs/dist/cjs/bcs.d.ts","../../bcs/dist/cjs/hex.d.ts","../../bcs/dist/cjs/utils.d.ts","../../bcs/dist/cjs/legacy-registry.d.ts","../../bcs/dist/cjs/index.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/error.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/utils.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/struct.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/structs/coercions.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/structs/refinements.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/structs/types.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/structs/utilities.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/index.d.ts","../../typescript/dist/cjs/types/common.d.ts","../../typescript/dist/cjs/types/objects.d.ts","../../typescript/dist/cjs/bcs/type-tag-serializer.d.ts","../../typescript/dist/cjs/bcs/index.d.ts","../../typescript/dist/cjs/client/rpc-websocket-client.d.ts","../../typescript/dist/cjs/client/http-transport.d.ts","../../typescript/dist/cjs/client/network.d.ts","../../typescript/dist/cjs/client/types/generated.d.ts","../../typescript/dist/cjs/client/types/chain.d.ts","../../typescript/dist/cjs/client/types/coins.d.ts","../../typescript/dist/cjs/client/types/common.d.ts","../../typescript/dist/cjs/client/types/changes.d.ts","../../typescript/dist/cjs/cryptography/intent.d.ts","../../typescript/dist/cjs/cryptography/publickey.d.ts","../../typescript/dist/cjs/cryptography/signature-scheme.d.ts","../../typescript/dist/cjs/multisig/publickey.d.ts","../../typescript/dist/cjs/cryptography/signature.d.ts","../../typescript/dist/cjs/cryptography/mnemonics.d.ts","../../typescript/dist/cjs/cryptography/keypair.d.ts","../../typescript/dist/cjs/cryptography/index.d.ts","../../typescript/dist/cjs/types/normalized.d.ts","../../typescript/dist/cjs/types/index.d.ts","../../typescript/dist/cjs/builder/Inputs.d.ts","../../typescript/dist/cjs/builder/Transactions.d.ts","../../typescript/dist/cjs/builder/pure.d.ts","../../typescript/dist/cjs/builder/TransactionBlockData.d.ts","../../typescript/dist/cjs/builder/TransactionBlock.d.ts","../../typescript/dist/cjs/builder/serializer.d.ts","../../typescript/dist/cjs/builder/bcs.d.ts","../../typescript/dist/cjs/builder/index.d.ts","../../typescript/dist/cjs/client/types/params.d.ts","../../typescript/dist/cjs/client/types/index.d.ts","../../typescript/dist/cjs/client/client.d.ts","../../typescript/dist/cjs/client/errors.d.ts","../../typescript/dist/cjs/client/index.d.ts","../../typescript/dist/cjs/builder/export.d.ts","../src/tx/kiosk.ts","../src/tx/rules/resolve.ts","../src/constants.ts","../src/types/kiosk.ts","../src/types/transfer-policy.ts","../src/types/index.ts","../src/bcs.ts","../../typescript/dist/cjs/utils/format.d.ts","../../typescript/dist/cjs/utils/sui-types.d.ts","../../typescript/dist/cjs/utils/index.d.ts","../src/utils.ts","../src/query/kiosk.ts","../src/query/transfer-policy.ts","../src/client/kiosk-client.ts","../src/tx/rules/attach.ts","../src/tx/transfer-policy.ts","../src/client/tp-transaction.ts","../src/tx/personal-kiosk.ts","../src/client/kiosk-transaction.ts","../src/index.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20","eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"25de46552b782d43cb7284df22fe2a265de387cf0248b747a7a1b647d81861f6","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"b304a0dbc45734f46afbc75f40510b68f8c8575ef0b5cb8cd3e9b1e91bf1e169","5354a072b3ac903eb7fd90335dc277df9c1f41c650ddb495e7d3837870ce8f37","ec95aac5334a7f581ca3703334d605fd099255c4e7ae6cc0f758a8a61bd2583d","2cc5e1c8901515cf4fb3f4ef036205974f824df13c74fbce059bedcb336531b7","a9e43a636c5d3ec6cf9aef6c69abc96dea6e4a230bebb0edded819469c61034e","712a26c4cae75433b6ee53852c9e8baaa21e2cc67af9c1e4ad149e6ab195058e","deec3f1497da498b3bfb87d3a97dfc591c8d96380150a278cedbe9590d9cfb81","da0d6e82a836d320b4aedffcdbeda8444263533483ec4fc36a188da9995beee8","92d529dd25855211a88f63193f9e4f3d946d249ea412c40d28ff940cdb867886","20d8f560787d21eeb217ee5f815572a57049fdd61b0477cbb092a45f64b4ad41","4890caf58d1f93e654be40d2fd5c86df6a7281ee4a23e35f46ae5d67d57a29a5","5041d1e151f77eb97f762c51fade8d268f271de2f8b165b050e7caa4b7f8c4bd","0296071bdd869379505de371c04065cc68ddfb9564d6b75cda2373b0130bf57f","00cac821c5c6466146321dc8192f48c84d9f7c321f862b9a4a01a6a832ce6a2f","c6eff85f66b05eba0a5af516cfa2e7ce0c6d2a2cc71bc4c543915c823cea9ce8","434272013d17121b677ec280c2309b16442cd47060af926d1deba5a00fa26856","b55144428bf4cdc9d7f5027035b45e165feb6064538a06339aa3d7186aead0fb","0c7192e40da80243d167d93fd23c11d2efba22dc27fda3602d99889ed02ade86","0706139fea91b191554d605cc00192d295832707c54782c14b2e770f84786576","7a66b004fbf03f4388a4b1cab9c56e8d7783cde6dffe11740b4d4a5fd8ea2962","40f629bb8dbdcca0d098f515980fe12d8c3d8016e5f171f5974dc3a365d124dc","a7ac1b038e5708a8146a6a033a325f578c579e4a9ca33ea370dc71f08e4cf412","617149ab95b9af0071b7f97d6eab5a329818c2e00c27f07819ec4d07be9eff05","6d68d23b4426718f335edcb10a26ffa873d155a4d6678f3660f36f4df5ea5a73","672f2984ea0180d19d72c3b49cd90a4a4f0f98e511f6aa01248168217c8add1d","3ac7c43ef8ba2fbcaade1891039ed9b74cb3f40219360495b939c868f93db28d","a295bd6c1e044b63f35bd1c2a0bd6311712fb88d1107a1fc3e0695279dacf022","964bd6aefed84b3c9fb3b69a48dee86b7700dc79a6976db75e38ebdcb71a34e4","7142789577fd90bacde1a3d92ed9da5c86c25b2d5deace47e0ebfb32eaa4e5de","17e850a4aa91db529a27a63ab8c1060c1dc2bab9e59c2e15f92b27b23222a370","e07d4eac48bb68fe5fa8dc50136d2c0e494302f1d514e9bc8bbb49d676536f5d","8e92292bc3805f96d1988c3548dab65d3b941e7c975b4cdb76c8b50eef815152","4f77dc3fb5c167d70a3381ed6f0460e225cdcd1e92e57cf0561c1dbbf4b1d06b","85f34d2bd3cf830bd6eaf365f00a87399c63e056ea887d10a13fe2a426174c1b","6e2b929b96c3c3b9085dd03a1cb48b820d5cddd7d533e12c167d5efdcd3ecb94","3751bfdb6089fc635ac6670517387aaf0049f99c9b9bbb1cda7722a5ada6c126","eb3671ec7a51c0e20962ba24be3fd7a41919455739c123e774d5dd5f125eec25","fa4db2dc803d0eb7e08346318c9a7d21677f8cf98d462cfd0a6a12c8cfb31c92","6673741ec24a5e5dacd4e34642fd04246521b85ad5816447a359f941a3868337","4f32a56579111f4bae35cd512deb712e6c7e54d6166419efd950f906cfbb3bb9","4c91be8d873064981e9f0a16a4e30c54292cddf9c13cb71eed6e0d76eb8b75b4","d4a4aaaa115b2ff81485fd51383254e9726a9aed3032af71f6eae0cbb0b1d7ea","90342db9643b8f88b334cd9ce8ad8b952dd7c947162940c54baac6581db62fbf","9a1da17eba055daf804d9bc61805961f6cbd6265a10ab33d53293415462464a6","09848148e7d9056992861396dfd15807e66f62196483a85640141157f87e3e62","b1a0fcbf76ed96379e3757a44eec4f2de164e7018085933d14924e8c6de13df2","5f9226e66cd6358f5a9f82cb46ec091bacdd535d220e50e6af0f800e1dd0d2b8","143d16563c5b476d29ad8429d9cc65290bb20244bbe5fad6803252cfd36fa1cb","4d9edaa343cccb6138f68fe1ea88d6bb8915473442ed14dd3ac209260c8337b0","0770502837dc34fc1da48dab57a6bff1f3fcf97576990a7f58f49a359d6c57b5","1cc19398cebbcda80c612f0989bd1dc124097914402fa315fd2e2595b69812d9","2a4bf44344fddabb3095ca3a57582209fa7cb6cc7486f7ec8fe09008c1cc576b","fef1dcd2d08e4fa2d4617499beb25162894ecebf9032ea2037a7e4e33d896eb9","5d6243442242f523d700101991a98c94b97a82f5ea7cfea4506881eeae5712ed","a92eb3a0db5b455d6350b2fb6f23593721ebe6af71f7f442d0b2b0e8f36830ae",{"version":"6fa098feec951656acd8daedb37cdf80199048f5d24acddb9739a96db6f5a341","signature":"d2fd2321a65b25ff6f5360d9dbd76eae7e91f178d99a2690e260e8e1b04607b8"},{"version":"534ebf0acdd0c994c3f5db21f05f824a7354ec85d25fb2cb927633e5794b9c58","signature":"f914619b394e0b38d7e69aef4085637806c1be9a824831ffda7594455e221c07"},{"version":"38d0e37d8da17f6ad1486617659f1c1504afe9a835f66232b14831204d74514d","signature":"882a9dbe28e5a4a60d8500dcfb16ba0fe7840448ddc6c3af1c2ad835f3fd0e4c"},{"version":"77e02c0be0649196b0fe071be87f2e86938f2a7c891a32542ee6b36ce6f81504","signature":"44175415dc00d57cd91cb106ad23618cc71e979b9dccb84938964b36474393c9"},{"version":"40edf3eac6d1a8415472264bb26ee7b973a8e7d38e873a4a7a599d8fd8376d75","signature":"e74b9fa174980983b1d1399965c95623980fbd2c994835398c29c5e824f94bcd"},{"version":"7881fa34753234316b8c77d4548c78b3bbdc9277b0530be67d7b816c670ac234","signature":"fb45224f6f36f58a37542deb7f91a6522fafde7944581f350ca97fa389df6e77"},{"version":"e7465bd84ba490aa7ca6a3443cf6bef16309e7990e11f986bf683af256a8faaa","signature":"f8c195f36b2651e649c0bc45c77128026bde3233001c53bda8a201439630f742"},"ddc8c232a5b14c7cb91899a5c5fc74b798a441de0d6816eca6ef622f4100460c","8f57cd17e3be015f1ec2ee98b7573c1befea707f730d5601fac4c4b3ceec0ff3","4333858c2567f4031499dffa613ba53dcf8b0588cc5df9776bc494fe01773276",{"version":"11d25f72033685c5f0d36412b6c64d52123f987875872f49aff4e1faf6b2a68c","signature":"e4d566a597cc91976ab203aa132736dd7b92505c490e3ea16a6b5598b01955d9"},{"version":"2faaee9cb47b6314160552f9a05322fa06e0f31af24fd7b7831e31c9cf01f89c","signature":"ce99a527afc43f70256bc5e32c96d3ee9c5b7c4a182f938e723ea2755574ddc9"},{"version":"d67465244fd54a5a615e216caa239a00d1c5725b5087849622e115fd13cb1bbc","signature":"0eee752ae7e78ed2f386c674926c1935f8c4c82511a8d99cc87a3b08899c1f21"},{"version":"158d76069681c79272c96b37ff1304fe645201912d526151ec4f81c54fc66412","signature":"f2b5d1057eaf214d6c08770334121d2d3fc236233e7565eff342c58cd205fcc1"},{"version":"58818ccda01aca5c367b8d60380c1d128412351504d9b2e1fb2d538c0364ecbf","signature":"83fe03c6e4ee326e73c761d562e40c9b3a53f5dea0579ea6317d3713377027de"},{"version":"3a3c6f83e96d623c65cb0591f2fd19c7a0ceed3fd74baf5760047bc57f7e0dbe","signature":"f28e0654046e06b5377a13fa590e134edbd2047df1ac704c4c89fbae9bb52e48"},{"version":"51d3d61f05430635567305b6cc664ea3aa5b514710ad7d2712b223cdc06940cf","signature":"be9b5e6f6809c63e023d64629a8a9519db2a8a816ed35531eadda049304fd8ea"},{"version":"70e0016dc5072dc5db35b40fd7eab9dc6c12548d2a438881164ac70c6825dcc4","signature":"91c9e04fa28949dc302720b93e865d5a20dcea94e877d43394fabf574994ef05"},{"version":"9578500ad6be4894a5ec4f783567ba461effacbf31e19950e4a7b3c3ae4157f0","signature":"c3d1790623413ce6904cd6c7d8f6172bf64ad3d3546168f6e67679c2bd7cad30"},{"version":"a5f178c31ae7b192a0265bb32a8e43e62d3bf07caab22537bbfa55347bb13f43","signature":"4a30d2e9b906429c8fe54b5b90c8eaae1dc53fbe7215bb576811da51719ed855"}],"root":[[116,122],[126,135]],"options":{"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":2,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./esm","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"fileIdsList":[[72,74,75,76,77,78],[72,73],[74],[73,74],[72,74],[63,65],[64,66],[61,62,63,64,65,66,67,68,69,70],[63,64,65,66],[66],[64],[83,121],[114,118,121,127,128],[115,116,121,126,129,131,133],[115,121,129,130,131],[117,121],[118,121,126,129,132,134],[114,121,125,126],[114,121,122,125,126],[83,115,121],[115,121],[116,121],[114,115,118,119,120],[114,115,121],[114,121,122,125],[64,71,81,82],[83],[71,79,83,101],[71,83,99,101,102,103,104,105,114],[79,83,103],[79,83],[71],[102,103,106,107],[102,103,106,107,108],[71,103],[114],[85,99,109,111],[84],[85,86,111,112,113],[87],[87,88,89,90,91,110],[87,109],[92,93,94,96,97,98],[92,93,94,96],[92,99],[93,94,95],[93,94,96],[81,100],[79],[79,80],[71,79,123,124],[114,118,121],[115,121,129],[121],[114,121]],"referencedMap":[[79,1],[74,2],[75,3],[76,3],[77,4],[78,4],[73,5],[66,6],[67,7],[71,8],[70,9],[64,10],[69,11],[65,11],[122,12],[129,13],[134,14],[132,15],[118,16],[135,17],[127,18],[128,19],[116,20],[133,21],[130,21],[117,22],[131,20],[121,23],[119,24],[120,24],[126,25],[83,26],[82,27],[102,28],[106,29],[105,30],[103,31],[108,32],[115,33],[109,34],[104,35],[107,36],[112,37],[85,38],[114,39],[88,40],[91,40],[90,27],[111,41],[110,42],[99,43],[98,44],[93,45],[96,46],[95,47],[80,31],[101,48],[100,49],[81,50],[125,51]],"exportedModulesMap":[[79,1],[74,2],[75,3],[76,3],[77,4],[78,4],[73,5],[66,6],[67,7],[71,8],[70,9],[64,10],[69,11],[65,11],[122,27],[129,52],[134,53],[132,53],[118,54],[135,17],[127,55],[128,55],[116,21],[133,21],[130,21],[117,54],[131,21],[121,23],[119,24],[120,24],[126,55],[83,26],[82,27],[102,28],[106,29],[105,30],[103,31],[108,32],[115,33],[109,34],[104,35],[107,36],[112,37],[85,38],[114,39],[88,40],[91,40],[90,27],[111,41],[110,42],[99,43],[98,44],[93,45],[96,46],[95,47],[80,31],[101,48],[100,49],[81,50],[125,51]],"semanticDiagnosticsPerFile":[72,79,74,75,76,77,78,73,59,60,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,56,54,55,57,10,1,11,58,61,62,66,67,68,71,70,63,64,69,65,122,129,134,132,118,135,127,128,116,133,130,117,131,121,119,120,126,83,82,102,106,105,103,108,115,109,104,107,112,113,85,114,86,84,88,91,89,90,87,111,110,99,92,98,97,93,94,96,95,80,101,100,81,123,125,124],"latestChangedDtsFile":"./esm/index.d.ts"},"version":"5.1.6"}
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.1.6/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../bcs/dist/cjs/b58.d.ts","../../bcs/dist/cjs/b64.d.ts","../../bcs/dist/cjs/reader.d.ts","../../bcs/dist/cjs/types.d.ts","../../bcs/dist/cjs/writer.d.ts","../../bcs/dist/cjs/bcs-type.d.ts","../../bcs/dist/cjs/bcs.d.ts","../../bcs/dist/cjs/hex.d.ts","../../bcs/dist/cjs/utils.d.ts","../../bcs/dist/cjs/legacy-registry.d.ts","../../bcs/dist/cjs/index.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/error.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/utils.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/struct.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/structs/coercions.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/structs/refinements.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/structs/types.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/structs/utilities.d.ts","../../../node_modules/.pnpm/superstruct@1.0.3/node_modules/superstruct/dist/index.d.ts","../../typescript/dist/cjs/types/common.d.ts","../../typescript/dist/cjs/types/objects.d.ts","../../typescript/dist/cjs/bcs/type-tag-serializer.d.ts","../../typescript/dist/cjs/bcs/index.d.ts","../../typescript/dist/cjs/client/rpc-websocket-client.d.ts","../../typescript/dist/cjs/client/http-transport.d.ts","../../typescript/dist/cjs/client/network.d.ts","../../typescript/dist/cjs/client/types/generated.d.ts","../../typescript/dist/cjs/client/types/chain.d.ts","../../typescript/dist/cjs/client/types/coins.d.ts","../../typescript/dist/cjs/client/types/common.d.ts","../../typescript/dist/cjs/client/types/changes.d.ts","../../typescript/dist/cjs/cryptography/intent.d.ts","../../typescript/dist/cjs/cryptography/publickey.d.ts","../../typescript/dist/cjs/cryptography/signature-scheme.d.ts","../../typescript/dist/cjs/multisig/publickey.d.ts","../../typescript/dist/cjs/cryptography/signature.d.ts","../../typescript/dist/cjs/cryptography/mnemonics.d.ts","../../typescript/dist/cjs/cryptography/keypair.d.ts","../../typescript/dist/cjs/cryptography/index.d.ts","../../typescript/dist/cjs/types/normalized.d.ts","../../typescript/dist/cjs/types/index.d.ts","../../typescript/dist/cjs/builder/Inputs.d.ts","../../typescript/dist/cjs/builder/Transactions.d.ts","../../typescript/dist/cjs/builder/pure.d.ts","../../typescript/dist/cjs/builder/TransactionBlockData.d.ts","../../typescript/dist/cjs/builder/TransactionBlock.d.ts","../../typescript/dist/cjs/builder/serializer.d.ts","../../typescript/dist/cjs/builder/bcs.d.ts","../../typescript/dist/cjs/builder/index.d.ts","../../typescript/dist/cjs/client/types/params.d.ts","../../typescript/dist/cjs/client/types/index.d.ts","../../typescript/dist/cjs/client/client.d.ts","../../typescript/dist/cjs/client/errors.d.ts","../../typescript/dist/cjs/client/index.d.ts","../../typescript/dist/cjs/builder/export.d.ts","../src/tx/kiosk.ts","../src/tx/rules/resolve.ts","../src/constants.ts","../src/types/kiosk.ts","../src/types/transfer-policy.ts","../src/types/index.ts","../src/bcs.ts","../../typescript/dist/cjs/utils/format.d.ts","../../typescript/dist/cjs/utils/sui-types.d.ts","../../typescript/dist/cjs/utils/index.d.ts","../src/utils.ts","../src/query/kiosk.ts","../src/query/transfer-policy.ts","../src/client/kiosk-client.ts","../src/tx/rules/attach.ts","../src/tx/transfer-policy.ts","../src/client/tp-transaction.ts","../src/tx/personal-kiosk.ts","../src/client/kiosk-transaction.ts","../src/index.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20","eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"25de46552b782d43cb7284df22fe2a265de387cf0248b747a7a1b647d81861f6","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"b304a0dbc45734f46afbc75f40510b68f8c8575ef0b5cb8cd3e9b1e91bf1e169","5354a072b3ac903eb7fd90335dc277df9c1f41c650ddb495e7d3837870ce8f37","ec95aac5334a7f581ca3703334d605fd099255c4e7ae6cc0f758a8a61bd2583d","d312a279203f83e7dc60d23135820fd4c3b93a6f5b7f4aba6780c3e99e02dcc1","763bfc2a8911c4b6e4b81bf60b129d194d5db024609bf8f26b65e163e9e1552b","279945d96a86deee3252f9587af1013eca5027d6989c11da3e0e109f73b7064d","860ce8146a712fc5d88bfc6c3a2b8f6b835238a8009941b306871663ee920ebe","da0d6e82a836d320b4aedffcdbeda8444263533483ec4fc36a188da9995beee8","877a5f022af5433e1e2d9aeecfb92e35d10635812cec615c4b64fc16234201c7","15d652995d4fc8b2b019cdf0c14f424a536cfba2acedceed14bceab4c46ddc9f","1047322d9c62521bf58c817ad4579730e394f284e848d7e7e52199a2fc057920","5041d1e151f77eb97f762c51fade8d268f271de2f8b165b050e7caa4b7f8c4bd","0296071bdd869379505de371c04065cc68ddfb9564d6b75cda2373b0130bf57f","00cac821c5c6466146321dc8192f48c84d9f7c321f862b9a4a01a6a832ce6a2f","c6eff85f66b05eba0a5af516cfa2e7ce0c6d2a2cc71bc4c543915c823cea9ce8","434272013d17121b677ec280c2309b16442cd47060af926d1deba5a00fa26856","b55144428bf4cdc9d7f5027035b45e165feb6064538a06339aa3d7186aead0fb","0c7192e40da80243d167d93fd23c11d2efba22dc27fda3602d99889ed02ade86","0706139fea91b191554d605cc00192d295832707c54782c14b2e770f84786576","7a66b004fbf03f4388a4b1cab9c56e8d7783cde6dffe11740b4d4a5fd8ea2962","40f629bb8dbdcca0d098f515980fe12d8c3d8016e5f171f5974dc3a365d124dc","a7ac1b038e5708a8146a6a033a325f578c579e4a9ca33ea370dc71f08e4cf412","617149ab95b9af0071b7f97d6eab5a329818c2e00c27f07819ec4d07be9eff05","6d68d23b4426718f335edcb10a26ffa873d155a4d6678f3660f36f4df5ea5a73","672f2984ea0180d19d72c3b49cd90a4a4f0f98e511f6aa01248168217c8add1d","3ac7c43ef8ba2fbcaade1891039ed9b74cb3f40219360495b939c868f93db28d","a295bd6c1e044b63f35bd1c2a0bd6311712fb88d1107a1fc3e0695279dacf022","964bd6aefed84b3c9fb3b69a48dee86b7700dc79a6976db75e38ebdcb71a34e4","7142789577fd90bacde1a3d92ed9da5c86c25b2d5deace47e0ebfb32eaa4e5de","17e850a4aa91db529a27a63ab8c1060c1dc2bab9e59c2e15f92b27b23222a370","e07d4eac48bb68fe5fa8dc50136d2c0e494302f1d514e9bc8bbb49d676536f5d","8e92292bc3805f96d1988c3548dab65d3b941e7c975b4cdb76c8b50eef815152","4f77dc3fb5c167d70a3381ed6f0460e225cdcd1e92e57cf0561c1dbbf4b1d06b","85f34d2bd3cf830bd6eaf365f00a87399c63e056ea887d10a13fe2a426174c1b","6e2b929b96c3c3b9085dd03a1cb48b820d5cddd7d533e12c167d5efdcd3ecb94","3751bfdb6089fc635ac6670517387aaf0049f99c9b9bbb1cda7722a5ada6c126","eb3671ec7a51c0e20962ba24be3fd7a41919455739c123e774d5dd5f125eec25","fa4db2dc803d0eb7e08346318c9a7d21677f8cf98d462cfd0a6a12c8cfb31c92","6673741ec24a5e5dacd4e34642fd04246521b85ad5816447a359f941a3868337","4f32a56579111f4bae35cd512deb712e6c7e54d6166419efd950f906cfbb3bb9","4c91be8d873064981e9f0a16a4e30c54292cddf9c13cb71eed6e0d76eb8b75b4","d4a4aaaa115b2ff81485fd51383254e9726a9aed3032af71f6eae0cbb0b1d7ea","90342db9643b8f88b334cd9ce8ad8b952dd7c947162940c54baac6581db62fbf","9a1da17eba055daf804d9bc61805961f6cbd6265a10ab33d53293415462464a6","09848148e7d9056992861396dfd15807e66f62196483a85640141157f87e3e62","b1a0fcbf76ed96379e3757a44eec4f2de164e7018085933d14924e8c6de13df2","5f9226e66cd6358f5a9f82cb46ec091bacdd535d220e50e6af0f800e1dd0d2b8","143d16563c5b476d29ad8429d9cc65290bb20244bbe5fad6803252cfd36fa1cb","4d9edaa343cccb6138f68fe1ea88d6bb8915473442ed14dd3ac209260c8337b0","0770502837dc34fc1da48dab57a6bff1f3fcf97576990a7f58f49a359d6c57b5","1cc19398cebbcda80c612f0989bd1dc124097914402fa315fd2e2595b69812d9","2a4bf44344fddabb3095ca3a57582209fa7cb6cc7486f7ec8fe09008c1cc576b","fef1dcd2d08e4fa2d4617499beb25162894ecebf9032ea2037a7e4e33d896eb9","5d6243442242f523d700101991a98c94b97a82f5ea7cfea4506881eeae5712ed","a92eb3a0db5b455d6350b2fb6f23593721ebe6af71f7f442d0b2b0e8f36830ae",{"version":"b2456beac00d2e3270ec892a3205358a07b3219a6368ed7c5da2c02c3325c2f4","signature":"7181fe29fa26260e4b32fcb9663df64499302c52153ffd448e224f1becb84521"},{"version":"dee0e9c574a1ec00681eb5c0e9aee2364cb8f177a74e6148e48556d46b46fa6f","signature":"11eb9418df601a8fdc8c8dbd61290c6bd95d6fb6fcbef4d47cb6b391103e8267"},{"version":"a11de17a9d374b0692ba4e5213a188047ec315e5d8a936b4b67c1af70ecf794a","signature":"a06f84567ded23e0b70480e61559acddb6ba32aab20c3fa5b549415a049df701"},{"version":"b1ac353ea3e3384975f528e964792bff9df1de29350764739b7bd83f4c559e1a","signature":"07b032114c6aef058c3267e82e5d4678c9ab1dbff743f1d3375baff2aa7d0248"},{"version":"cba4eed95ee9fa85ba0e0cdc7534569db7941f5d6f8198600395e02da9a73345","signature":"bf8987544198b8d44386c5af2720e16f2f590ca2330ac5e25d177c7004a9e1d2"},{"version":"17a906aa9cdea01ce158d87e8f191f28392daf1eb7f5a957906e92171c4e877f","signature":"b33851ce6a5d8ea09c539babd3b74bc3899a1d614d023505217b345a208bb81d"},{"version":"ed303ce7224a274b11cc03f557ad71e9292c10ba81786e4f0134d43d7dfbfe2b","signature":"f8c195f36b2651e649c0bc45c77128026bde3233001c53bda8a201439630f742"},"ddc8c232a5b14c7cb91899a5c5fc74b798a441de0d6816eca6ef622f4100460c","8f57cd17e3be015f1ec2ee98b7573c1befea707f730d5601fac4c4b3ceec0ff3","4333858c2567f4031499dffa613ba53dcf8b0588cc5df9776bc494fe01773276",{"version":"9df7f206246aa6aa16b603452bf85fb76fe5c08f3e88c44011d5a4368cd251d7","signature":"e4d8351aaad89913ae180018e99593588e526f58f741c6963da2f4b92299512e"},{"version":"eddaa909a3b790c1a5cb2cf0e1d8f7135af2a3fe7e1749980ce9efb07750a5ba","signature":"92a2680ff92291f4a2f93fcd68acb7409c8d0947d9f7ef17c002e9c7aa264ca6"},{"version":"8348706b60fc71b1a0da5023469b12a5484d143f1e4b683f5e01c745d1161881","signature":"0bcdc67f527270f768c98165753510f358c2a01d0f736a2cd8170f812a8782d7"},{"version":"1abfb2eb04fdc8f1067ef47160703e053b42780e0146b311f4464a113bf891c2","signature":"d2dd7368a1ed745a8b762aa16c1dea8deb2bfbab4c6bcea8ee036103ae787af2"},{"version":"dc529ede1fd7017889041ef23b309ac3714648a051b7b5232d25254497a5996e","signature":"a340ea35c84fd6a151c7477853d040da3116aab52d5043a2291d7f5f630f4831"},{"version":"2efae43d083c4617ae8f9c3b02a568ed7e12e9edcf8593cfe1cda8e15b8dba7f","signature":"2b61452148dad69c51800c1422bc30a447d37bfdde5658f24072ee5ad97a5926"},{"version":"bca253c1c50ff881d0895236ac8272769a3afe08de57eb6e0d5b89f1539ae39a","signature":"c8d57022572064609db955efc3893a29571e8bad04a0e7b94ed860f13c051839"},{"version":"97daab1b71f6cb50f7503cc2afe0660018d6b66ff4877ba769b60dee4761b8c8","signature":"d919ac8928be2c448de8e20a5dc89fc2aca06a42f1c35d68446ed7189801408e"},{"version":"0a52a549b661cae9cab25c11b59051f05578a8c9fa036fbe53d4dedf979192c2","signature":"c65cc07d2303719d2e22ec74a5025448f28cb82aa7718a0330586f413b3bbcb6"},{"version":"5d41a3ea79cc33b761340019fa537f1a8ccc7f62ad12612570f16069f4dd21c4","signature":"6ea60168b0cbacd112c0b64be4589e4491593dbacb6f5319b900cf94aa5ea9b2"}],"root":[[116,122],[126,135]],"options":{"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":2,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./esm","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"fileIdsList":[[72,74,75,76,77,78],[72,73],[74],[73,74],[72,74],[63,65],[64,66],[61,62,63,64,65,66,67,68,69,70],[63,64,65,66],[66],[64],[83,121],[114,118,121,127,128],[115,116,121,126,129,131,133],[115,121,129,130,131],[117,121],[118,121,126,129,132,134],[114,121,125,126],[114,121,122,125,126],[83,115,121],[115,121],[116,121],[114,115,118,119,120],[114,115,121],[114,121,122,125],[64,71,81,82],[83],[71,79,83,101],[71,83,99,101,102,103,104,105,114],[79,83,103],[79,83],[71],[102,103,106,107],[102,103,106,107,108],[71,103],[114],[85,99,109,111],[84],[85,86,111,112,113],[87],[87,88,89,90,91,110],[87,109],[92,93,94,96,97,98],[92,93,94,96],[92,99],[93,94,95],[93,94,96],[81,100],[79],[79,80],[71,79,123,124],[114,118,119,120,121],[115,121,129],[121],[114,121]],"referencedMap":[[79,1],[74,2],[75,3],[76,3],[77,4],[78,4],[73,5],[66,6],[67,7],[71,8],[70,9],[64,10],[69,11],[65,11],[122,12],[129,13],[134,14],[132,15],[118,16],[135,17],[127,18],[128,19],[116,20],[133,21],[130,21],[117,22],[131,20],[121,23],[119,24],[120,24],[126,25],[83,26],[82,27],[102,28],[106,29],[105,30],[103,31],[108,32],[115,33],[109,34],[104,35],[107,36],[112,37],[85,38],[114,39],[88,40],[91,40],[90,27],[111,41],[110,42],[99,43],[98,44],[93,45],[96,46],[95,47],[80,31],[101,48],[100,49],[81,50],[125,51]],"exportedModulesMap":[[79,1],[74,2],[75,3],[76,3],[77,4],[78,4],[73,5],[66,6],[67,7],[71,8],[70,9],[64,10],[69,11],[65,11],[122,27],[129,52],[134,53],[132,53],[118,54],[135,17],[127,55],[128,55],[116,21],[133,21],[130,21],[117,54],[131,21],[121,23],[119,24],[120,24],[126,55],[83,26],[82,27],[102,28],[106,29],[105,30],[103,31],[108,32],[115,33],[109,34],[104,35],[107,36],[112,37],[85,38],[114,39],[88,40],[91,40],[90,27],[111,41],[110,42],[99,43],[98,44],[93,45],[96,46],[95,47],[80,31],[101,48],[100,49],[81,50],[125,51]],"semanticDiagnosticsPerFile":[72,79,74,75,76,77,78,73,59,60,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,56,54,55,57,10,1,11,58,61,62,66,67,68,71,70,63,64,69,65,122,129,134,132,118,135,127,128,116,133,130,117,131,121,119,120,126,83,82,102,106,105,103,108,115,109,104,107,112,113,85,114,86,84,88,91,89,90,87,111,110,99,92,98,97,93,94,96,95,80,101,100,81,123,125,124],"latestChangedDtsFile":"./esm/index.d.ts"},"version":"5.1.6"}
|