@iota/kiosk 0.4.4 → 0.4.6
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 +27 -0
- package/README.md +3 -3
- package/dist/cjs/client/kiosk-client.d.ts +2 -2
- package/dist/cjs/client/kiosk-client.js +2 -2
- package/dist/cjs/client/kiosk-client.js.map +1 -1
- package/dist/cjs/query/transfer-policy.js +1 -1
- package/dist/cjs/query/transfer-policy.js.map +2 -2
- package/dist/cjs/utils.js +1 -1
- package/dist/cjs/utils.js.map +2 -2
- package/dist/esm/client/kiosk-client.d.ts +2 -2
- package/dist/esm/client/kiosk-client.js +2 -2
- package/dist/esm/client/kiosk-client.js.map +1 -1
- package/dist/esm/query/transfer-policy.js +2 -2
- package/dist/esm/query/transfer-policy.js.map +2 -2
- package/dist/esm/utils.js +2 -2
- 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/client/kiosk-client.ts +2 -2
- package/src/query/transfer-policy.ts +2 -2
- package/src/utils.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @iota/kiosk
|
|
2
2
|
|
|
3
|
+
## 0.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3c1d088: Fix doc comment on `getKiosk` command
|
|
8
|
+
- Updated dependencies [40576ed]
|
|
9
|
+
- Updated dependencies [61b0944]
|
|
10
|
+
- Updated dependencies [966f83c]
|
|
11
|
+
- Updated dependencies [f008db3]
|
|
12
|
+
- Updated dependencies [733df30]
|
|
13
|
+
- Updated dependencies [13ca264]
|
|
14
|
+
- Updated dependencies [5bbafa8]
|
|
15
|
+
- Updated dependencies [28ce666]
|
|
16
|
+
- Updated dependencies [c855f8c]
|
|
17
|
+
- Updated dependencies [f008db3]
|
|
18
|
+
- Updated dependencies [464c15a]
|
|
19
|
+
- @iota/iota-sdk@1.5.0
|
|
20
|
+
|
|
21
|
+
## 0.4.5
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [f04033d]
|
|
26
|
+
- Updated dependencies [59342b2]
|
|
27
|
+
- Updated dependencies [ecea738]
|
|
28
|
+
- @iota/iota-sdk@1.4.0
|
|
29
|
+
|
|
3
30
|
## 0.4.4
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
This Kiosk SDK library provides different utilities to interact/create/manage a
|
|
6
6
|
[Kiosk](https://github.com/iotaledger/iota/tree/develop/kiosk).
|
|
7
7
|
|
|
8
|
-
[You can read the documentation and see examples by clicking here.](https://docs.iota.org/ts-sdk/kiosk)
|
|
8
|
+
[You can read the documentation and see examples by clicking here.](https://docs.iota.org/developer/ts-sdk/kiosk)
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ To use the Kiosk SDK in your project, run the following command in your project
|
|
|
15
15
|
npm i @iota/kiosk @iota/iota-sdk
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
To use the Kiosk SDK, you must create a [KioskClient](https://docs.iota.org/ts-sdk/kiosk/kiosk-client/introduction) instance.
|
|
18
|
+
To use the Kiosk SDK, you must create a [KioskClient](https://docs.iota.org/developer/ts-sdk/kiosk/kiosk-client/introduction) instance.
|
|
19
19
|
|
|
20
20
|
## Setup
|
|
21
21
|
|
|
@@ -36,4 +36,4 @@ const kioskClient = new KioskClient({
|
|
|
36
36
|
});
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
You can read the KioskClient documentation to query kiosk data [here](https://docs.iota.org/ts-sdk/kiosk/kiosk-client/querying).
|
|
39
|
+
You can read the KioskClient documentation to query kiosk data [here](https://docs.iota.org/developer/ts-sdk/kiosk/kiosk-client/querying).
|
|
@@ -26,8 +26,8 @@ export declare class KioskClient {
|
|
|
26
26
|
}): Promise<OwnedKiosks>;
|
|
27
27
|
/**
|
|
28
28
|
* Fetches the kiosk contents.
|
|
29
|
-
* @param
|
|
30
|
-
* @param options
|
|
29
|
+
* @param id The ID of the kiosk to fetch.
|
|
30
|
+
* @param options Optional to control the fetch behavior.
|
|
31
31
|
* @returns
|
|
32
32
|
*/
|
|
33
33
|
getKiosk({ id, options, }: {
|
|
@@ -52,8 +52,8 @@ class KioskClient {
|
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Fetches the kiosk contents.
|
|
55
|
-
* @param
|
|
56
|
-
* @param options
|
|
55
|
+
* @param id The ID of the kiosk to fetch.
|
|
56
|
+
* @param options Optional to control the fetch behavior.
|
|
57
57
|
* @returns
|
|
58
58
|
*/
|
|
59
59
|
async getKiosk({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/client/kiosk-client.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { NetworkId } from '@iota/iota-sdk/client';\nimport { getNetwork } from '@iota/iota-sdk/client';\nimport type { PaginationArguments, IotaClient } from '@iota/iota-sdk/client';\n\nimport { getBaseRules, rules } from '../constants.js';\nimport type { BaseRulePackageIds, TransferPolicyRule } from '../constants.js';\nimport { fetchKiosk, fetchKioskExtension, getOwnedKiosks } from '../query/kiosk.js';\nimport {\n queryOwnedTransferPolicies,\n queryTransferPolicy,\n queryTransferPolicyCapsByType,\n} from '../query/transfer-policy.js';\nimport type {\n FetchKioskOptions,\n KioskClientOptions,\n KioskData,\n OwnedKiosks,\n} from '../types/index.js';\n\n/**\n * A Client that allows you to interact with kiosk.\n * Offers utilities to query kiosk, craft transactions to edit your own kiosk,\n * purchase, manage transfer policies, create new kiosks etc.\n * If you pass packageIds, all functionality will be managed using these packages.\n */\nexport class KioskClient {\n client: IotaClient;\n network: NetworkId;\n rules: TransferPolicyRule[];\n packageIds?: BaseRulePackageIds;\n\n constructor(options: KioskClientOptions) {\n this.client = options.client;\n this.network = options.network;\n this.rules = rules; // add all the default rules.\n this.packageIds = options.packageIds;\n\n // Add the custom Package Ids too on the rule list.\n // Only adds the rules that are passed in the packageId object.\n if (options.packageIds) this.rules.push(...getBaseRules(options.packageIds));\n }\n\n /// Querying\n\n /**\n * Get an addresses's owned kiosks.\n * @param address The address for which we want to retrieve the kiosks.\n * @param pagination Optional pagination arguments.\n * @returns An Object containing all the `kioskOwnerCap` objects as well as the kioskIds.\n */\n async getOwnedKiosks({\n address,\n pagination,\n }: {\n address: string;\n pagination?: PaginationArguments<string>;\n }): Promise<OwnedKiosks> {\n const personalPackageId =\n this.packageIds?.personalKioskRulePackageId ||\n getNetwork(this.network).kiosk?.personalKioskRulePackageId ||\n '';\n\n return getOwnedKiosks(this.client, address, {\n pagination,\n personalKioskType: personalPackageId\n ? `${personalPackageId}::personal_kiosk::PersonalKioskCap`\n : '',\n });\n }\n\n /**\n * Fetches the kiosk contents.\n * @param
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { NetworkId } from '@iota/iota-sdk/client';\nimport { getNetwork } from '@iota/iota-sdk/client';\nimport type { PaginationArguments, IotaClient } from '@iota/iota-sdk/client';\n\nimport { getBaseRules, rules } from '../constants.js';\nimport type { BaseRulePackageIds, TransferPolicyRule } from '../constants.js';\nimport { fetchKiosk, fetchKioskExtension, getOwnedKiosks } from '../query/kiosk.js';\nimport {\n queryOwnedTransferPolicies,\n queryTransferPolicy,\n queryTransferPolicyCapsByType,\n} from '../query/transfer-policy.js';\nimport type {\n FetchKioskOptions,\n KioskClientOptions,\n KioskData,\n OwnedKiosks,\n} from '../types/index.js';\n\n/**\n * A Client that allows you to interact with kiosk.\n * Offers utilities to query kiosk, craft transactions to edit your own kiosk,\n * purchase, manage transfer policies, create new kiosks etc.\n * If you pass packageIds, all functionality will be managed using these packages.\n */\nexport class KioskClient {\n client: IotaClient;\n network: NetworkId;\n rules: TransferPolicyRule[];\n packageIds?: BaseRulePackageIds;\n\n constructor(options: KioskClientOptions) {\n this.client = options.client;\n this.network = options.network;\n this.rules = rules; // add all the default rules.\n this.packageIds = options.packageIds;\n\n // Add the custom Package Ids too on the rule list.\n // Only adds the rules that are passed in the packageId object.\n if (options.packageIds) this.rules.push(...getBaseRules(options.packageIds));\n }\n\n /// Querying\n\n /**\n * Get an addresses's owned kiosks.\n * @param address The address for which we want to retrieve the kiosks.\n * @param pagination Optional pagination arguments.\n * @returns An Object containing all the `kioskOwnerCap` objects as well as the kioskIds.\n */\n async getOwnedKiosks({\n address,\n pagination,\n }: {\n address: string;\n pagination?: PaginationArguments<string>;\n }): Promise<OwnedKiosks> {\n const personalPackageId =\n this.packageIds?.personalKioskRulePackageId ||\n getNetwork(this.network).kiosk?.personalKioskRulePackageId ||\n '';\n\n return getOwnedKiosks(this.client, address, {\n pagination,\n personalKioskType: personalPackageId\n ? `${personalPackageId}::personal_kiosk::PersonalKioskCap`\n : '',\n });\n }\n\n /**\n * Fetches the kiosk contents.\n * @param id The ID of the kiosk to fetch.\n * @param options Optional to control the fetch behavior.\n * @returns\n */\n async getKiosk({\n id,\n options,\n }: {\n id: string;\n options?: FetchKioskOptions;\n }): Promise<KioskData> {\n return (\n await fetchKiosk(\n this.client,\n id,\n {\n limit: 1000,\n },\n options || {},\n )\n ).data;\n }\n\n /**\n * Fetch the extension data (if any) for a kiosk, by type\n * @param kioskId The ID of the kiosk to lookup\n * @param extensionType The Type of the extension (can be used from by using the type returned by `getKiosk()`)\n */\n async getKioskExtension({ kioskId, type }: { kioskId: string; type: string }) {\n return fetchKioskExtension(this.client, kioskId, type);\n }\n\n /**\n * Query the Transfer Policy(ies) for type `T`.\n * @param type The Type we're querying for (E.g `0xMyAddress::hero::Hero`)\n */\n async getTransferPolicies({ type }: { type: string }) {\n return queryTransferPolicy(this.client, type);\n }\n\n /**\n * Query all the owned transfer policies for an address.\n * Returns `TransferPolicyCap` which uncludes `policyId, policyCapId, type`.\n * @param address The address we're searching the owned transfer policies for.\n */\n async getOwnedTransferPolicies({ address }: { address: string }) {\n return queryOwnedTransferPolicies(this.client, address);\n }\n\n /**\n * Query the Transfer Policy Cap for type `T`, owned by `address`\n * @param type The Type `T` for the object\n * @param address The address that owns the cap.\n */\n async getOwnedTransferPoliciesByType({ type, address }: { type: string; address: string }) {\n return queryTransferPolicyCapsByType(this.client, address, type);\n }\n\n // Someone would just have to create a `kiosk-client.ts` file in their project, initialize a KioskClient\n // and call the `addRuleResolver` function. Each rule has a `resolve` function.\n // The resolve function is automatically called on `purchaseAndResolve` function call.\n addRuleResolver(rule: TransferPolicyRule) {\n if (this.rules.find((x) => x.rule === rule.rule))\n throw new Error(`Rule ${rule.rule} resolver already exists.`);\n this.rules.push(rule);\n }\n\n /**\n * A convenient helper to get the packageIds for our supported ruleset,\n * based on `kioskClient` configuration.\n */\n getRulePackageId(\n rule:\n | 'kioskLockRulePackageId'\n | 'royaltyRulePackageId'\n | 'personalKioskRulePackageId'\n | 'floorPriceRulePackageId',\n ) {\n const rules = this.packageIds || {};\n const network = this.network;\n\n const networkKiosk = getNetwork(network).kiosk;\n\n const rulePackageId = rules[rule] || networkKiosk?.[rule];\n\n /// Check existence of rule throw an error if it's not found.\n if (!rulePackageId) {\n throw new Error(`Missing packageId for rule ${rule}`);\n }\n\n return rulePackageId;\n }\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAA2B;AAG3B,uBAAoC;AAEpC,mBAAgE;AAChE,6BAIO;AAcA,MAAM,YAAY;AAAA,EAMrB,YAAY,SAA6B;AACrC,SAAK,SAAS,QAAQ;AACtB,SAAK,UAAU,QAAQ;AACv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,EAKA,gBAAgB,MAA0B;AACtC,QAAI,KAAK,MAAM,KAAK,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI;AAC3C,YAAM,IAAI,MAAM,QAAQ,KAAK,IAAI,2BAA2B;AAChE,SAAK,MAAM,KAAK,IAAI;AAAA,EACxB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,iBACI,MAKF;AACE,UAAMA,SAAQ,KAAK,cAAc,CAAC;AAClC,UAAM,UAAU,KAAK;AAErB,UAAM,mBAAe,0BAAW,OAAO,EAAE;AAEzC,UAAM,gBAAgBA,OAAM,IAAI,KAAK,eAAe,IAAI;AAGxD,QAAI,CAAC,eAAe;AAChB,YAAM,IAAI,MAAM,8BAA8B,IAAI,EAAE;AAAA,IACxD;AAEA,WAAO;AAAA,EACX;AACJ;",
|
|
6
6
|
"names": ["rules"]
|
|
7
7
|
}
|
|
@@ -45,7 +45,7 @@ async function queryTransferPolicy(client, type) {
|
|
|
45
45
|
`Invalid policy: ${policy?.objectId}, expected object, got package`
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
|
-
const parsed = import_bcs2.TransferPolicyType.parse((0, import_utils.
|
|
48
|
+
const parsed = import_bcs2.TransferPolicyType.parse((0, import_utils.fromBase64)(policy.bcs.bcsBytes));
|
|
49
49
|
return {
|
|
50
50
|
id: policy?.objectId,
|
|
51
51
|
type: `${import_types.TRANSFER_POLICY_TYPE}<${type}>`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/query/transfer-policy.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IotaClient } from '@iota/iota-sdk/client';\nimport {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IotaClient } from '@iota/iota-sdk/client';\nimport { fromBase64, isValidIotaAddress } from '@iota/iota-sdk/utils';\n\nimport '../bcs.js';\n\nimport { TransferPolicyType } from '../bcs.js';\nimport type { TransferPolicy, TransferPolicyCap } from '../types/index.js';\nimport {\n TRANSFER_POLICY_CAP_TYPE,\n TRANSFER_POLICY_CREATED_EVENT,\n TRANSFER_POLICY_TYPE,\n} from '../types/index.js';\nimport { getAllOwnedObjects, parseTransferPolicyCapObject } from '../utils.js';\n\n/**\n * Searches the `TransferPolicy`-s for the given type. The search is performed via\n * the `TransferPolicyCreated` event. The policy can either be owned or shared,\n * and the caller needs to filter the results accordingly (ie single owner can not\n * be accessed by anyone but the owner).\n *\n * @param provider\n * @param type\n */\nexport async function queryTransferPolicy(\n client: IotaClient,\n type: string,\n): Promise<TransferPolicy[]> {\n // console.log('event type: %s', `${TRANSFER_POLICY_CREATED_EVENT}<${type}>`);\n const { data } = await client.queryEvents({\n query: {\n MoveEventType: `${TRANSFER_POLICY_CREATED_EVENT}<${type}>`,\n },\n });\n\n const search = data.map((event) => event.parsedJson as { id: string });\n const policies = await client.multiGetObjects({\n ids: search.map((policy) => policy.id),\n options: { showBcs: true, showOwner: true },\n });\n\n return policies\n .filter((policy) => !!policy && 'data' in policy)\n .map(({ data: policy }) => {\n // should never happen; policies are objects and fetched via an event.\n // policies are filtered for null and undefined above.\n if (!policy || !policy.bcs || !('bcsBytes' in policy.bcs)) {\n throw new Error(\n `Invalid policy: ${policy?.objectId}, expected object, got package`,\n );\n }\n\n const parsed = TransferPolicyType.parse(fromBase64(policy.bcs.bcsBytes));\n\n return {\n id: policy?.objectId,\n type: `${TRANSFER_POLICY_TYPE}<${type}>`,\n owner: policy?.owner,\n rules: parsed.rules,\n balance: parsed.balance,\n } as TransferPolicy;\n });\n}\n\n/**\n * A function to fetch all the user's kiosk Caps\n * And a list of the kiosk address ids.\n * Returns a list of `kioskOwnerCapIds` and `kioskIds`.\n * Extra options allow pagination.\n * @returns TransferPolicyCap Object ID | undefined if not found.\n */\nexport async function queryTransferPolicyCapsByType(\n client: IotaClient,\n address: string,\n type: string,\n): Promise<TransferPolicyCap[]> {\n if (!isValidIotaAddress(address)) return [];\n\n const filter = {\n MatchAll: [\n {\n StructType: `${TRANSFER_POLICY_CAP_TYPE}<${type}>`,\n },\n ],\n };\n\n // fetch owned kiosk caps, paginated.\n const data = await getAllOwnedObjects({\n client,\n filter,\n owner: address,\n });\n\n return data\n .map((item) => parseTransferPolicyCapObject(item))\n .filter((item) => !!item) as TransferPolicyCap[];\n}\n\n/**\n * A function to fetch all the user's kiosk Caps\n * And a list of the kiosk address ids.\n * Returns a list of `kioskOwnerCapIds` and `kioskIds`.\n * Extra options allow pagination.\n * @returns TransferPolicyCap Object ID | undefined if not found.\n */\nexport async function queryOwnedTransferPolicies(\n client: IotaClient,\n address: string,\n): Promise<TransferPolicyCap[] | undefined> {\n if (!isValidIotaAddress(address)) return;\n\n const filter = {\n MatchAll: [\n {\n MoveModule: {\n module: 'transfer_policy',\n package: '0x2',\n },\n },\n ],\n };\n\n // fetch all owned kiosk caps, paginated.\n const data = await getAllOwnedObjects({ client, owner: address, filter });\n\n const policies: TransferPolicyCap[] = [];\n\n for (const item of data) {\n const data = parseTransferPolicyCapObject(item);\n if (data) policies.push(data);\n }\n\n return policies;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,mBAA+C;AAE/C,iBAAO;AAEP,IAAAA,cAAmC;AAEnC,mBAIO;AACP,IAAAC,gBAAiE;AAWjE,eAAsB,oBAClB,QACA,MACyB;AAEzB,QAAM,EAAE,KAAK,IAAI,MAAM,OAAO,YAAY;AAAA,IACtC,OAAO;AAAA,MACH,eAAe,GAAG,0CAA6B,IAAI,IA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,QAAM,SAAS;AAAA,IACX,UAAU;AAAA,MACN;AAAA,QACI,YAAY;AAAA,UACR,QAAQ;AAAA,UACR,SAAS;AAAA,QACb;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ;AAGA,QAAM,OAAO,UAAM,kCAAmB,EAAE,QAAQ,OAAO,SAAS,OAAO,CAAC;AAExE,QAAM,WAAgC,CAAC;AAEvC,aAAW,QAAQ,MAAM;AACrB,UAAMC,YAAO,4CAA6B,IAAI;AAC9C,QAAIA,MAAM,UAAS,KAAKA,KAAI;AAAA,EAChC;AAEA,SAAO;AACX;",
|
|
6
6
|
"names": ["import_bcs", "import_utils", "data"]
|
|
7
7
|
}
|
package/dist/cjs/utils.js
CHANGED
|
@@ -43,7 +43,7 @@ async function getKioskObject(client, id) {
|
|
|
43
43
|
if (!queryRes.data.bcs || !("bcsBytes" in queryRes.data.bcs)) {
|
|
44
44
|
throw new Error(`Invalid kiosk query: ${id}, expected object, got package`);
|
|
45
45
|
}
|
|
46
|
-
return import_bcs.KioskType.parse((0, import_utils.
|
|
46
|
+
return import_bcs.KioskType.parse((0, import_utils.fromBase64)(queryRes.data.bcs.bcsBytes));
|
|
47
47
|
}
|
|
48
48
|
function extractKioskData(data, listings, lockedItemIds, kioskId) {
|
|
49
49
|
return data.reduce(
|
package/dist/cjs/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// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n DynamicFieldInfo,\n PaginationArguments,\n IotaClient,\n IotaObjectData,\n IotaObjectDataFilter,\n IotaObjectDataOptions,\n IotaObjectResponse,\n} from '@iota/iota-sdk/client';\nimport {\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaA,mBAKO;AAEP,iBAA0B;AAE1B,mBAAyC;AAEzC,MAAM,sBAAsB;AAE5B,eAAsB,eAAe,QAAoB,IAA4B;AACjF,QAAM,WAAW,MAAM,OAAO,UAAU,EAAE,IAAI,SAAS,EAAE,SAAS,KAAK,EAAE,CAAC;AAE1E,MAAI,CAAC,YAAY,SAAS,SAAS,CAAC,SAAS,MAAM;AAC/C,UAAM,IAAI,MAAM,SAAS,EAAE,eAAe,SAAS,KAAK,EAAE;AAAA,EAC9D;AAEA,MAAI,CAAC,SAAS,KAAK,OAAO,EAAE,cAAc,SAAS,KAAK,MAAM;AAC1D,UAAM,IAAI,MAAM,wBAAwB,EAAE,gCAAgC;AAAA,EAC9E;AAEA,SAAO,qBAAU,UAAM,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n DynamicFieldInfo,\n PaginationArguments,\n IotaClient,\n IotaObjectData,\n IotaObjectDataFilter,\n IotaObjectDataOptions,\n IotaObjectResponse,\n} from '@iota/iota-sdk/client';\nimport {\n fromBase64,\n normalizeStructTag,\n normalizeIotaAddress,\n parseStructTag,\n} from '@iota/iota-sdk/utils';\n\nimport { KioskType } from './bcs.js';\nimport type { Kiosk, KioskData, KioskListing, TransferPolicyCap } from './types/index.js';\nimport { TRANSFER_POLICY_CAP_TYPE } from './types/index.js';\n\nconst DEFAULT_QUERY_LIMIT = 50;\n\nexport async function getKioskObject(client: IotaClient, id: string): Promise<Kiosk> {\n const queryRes = await client.getObject({ id, options: { showBcs: true } });\n\n if (!queryRes || queryRes.error || !queryRes.data) {\n throw new Error(`Kiosk ${id} not found; ${queryRes.error}`);\n }\n\n if (!queryRes.data.bcs || !('bcsBytes' in queryRes.data.bcs)) {\n throw new Error(`Invalid kiosk query: ${id}, expected object, got package`);\n }\n\n return KioskType.parse(fromBase64(queryRes.data.bcs!.bcsBytes));\n}\n\n// helper to extract kiosk data from dynamic fields.\nexport function extractKioskData(\n data: DynamicFieldInfo[],\n listings: KioskListing[],\n lockedItemIds: string[],\n kioskId: string,\n): KioskData {\n return data.reduce<KioskData>(\n (acc: KioskData, val: DynamicFieldInfo) => {\n const type = val.name.type;\n\n if (type.startsWith('0x2::kiosk::Item')) {\n acc.itemIds.push(val.objectId);\n acc.items.push({\n objectId: val.objectId,\n type: val.objectType,\n isLocked: false,\n kioskId,\n });\n }\n if (type.startsWith('0x2::kiosk::Listing')) {\n acc.listingIds.push(val.objectId);\n listings.push({\n objectId: (val.name.value as { id: string }).id,\n listingId: val.objectId,\n isExclusive: (val.name.value as { is_exclusive: boolean }).is_exclusive,\n });\n }\n if (type.startsWith('0x2::kiosk::Lock')) {\n lockedItemIds?.push((val.name.value as { id: string }).id);\n }\n\n if (type.startsWith('0x2::kiosk_extension::ExtensionKey')) {\n acc.extensions.push({\n objectId: val.objectId,\n type: normalizeStructTag(parseStructTag(val.name.type).typeParams[0]),\n });\n }\n\n return acc;\n },\n { items: [], itemIds: [], listingIds: [], extensions: [] },\n );\n}\n\n/**\n * A helper that attaches the listing prices to kiosk listings.\n */\nexport function attachListingsAndPrices(\n kioskData: KioskData,\n listings: KioskListing[],\n listingObjects: IotaObjectResponse[],\n) {\n // map item listings as {item_id: KioskListing}\n // for easier mapping on the nex\n const itemListings = listings.reduce<Record<string, KioskListing>>(\n (acc: Record<string, KioskListing>, item, idx) => {\n acc[item.objectId] = { ...item };\n\n // return in case we don't have any listing objects.\n // that's the case when we don't have the `listingPrices` included.\n if (listingObjects.length === 0) return acc;\n\n const content = listingObjects[idx].data?.content;\n const data = content?.dataType === 'moveObject' ? content?.fields : null;\n\n if (!data) return acc;\n\n acc[item.objectId].price = (data as { value: string }).value;\n return acc;\n },\n {},\n );\n\n kioskData.items.forEach((item) => {\n item.listing = itemListings[item.objectId] || undefined;\n });\n}\n\n/**\n * A helper that attaches the listing prices to kiosk listings.\n */\nexport function attachObjects(kioskData: KioskData, objects: IotaObjectData[]) {\n const mapping = objects.reduce<Record<string, IotaObjectData>>(\n (acc: Record<string, IotaObjectData>, obj) => {\n acc[obj.objectId] = obj;\n return acc;\n },\n {},\n );\n\n kioskData.items.forEach((item) => {\n item.data = mapping[item.objectId] || undefined;\n });\n}\n\n/**\n * A Helper to attach locked state to items in Kiosk Data.\n */\nexport function attachLockedItems(kioskData: KioskData, lockedItemIds: string[]) {\n // map lock status in an array of type { item_id: true }\n const lockedStatuses = lockedItemIds.reduce<Record<string, boolean>>(\n (acc: Record<string, boolean>, item: string) => {\n acc[item] = true;\n return acc;\n },\n {},\n );\n\n // parse lockedItemIds and attach their locked status.\n kioskData.items.forEach((item) => {\n item.isLocked = lockedStatuses[item.objectId] || false;\n });\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 client: IotaClient,\n parentId: string,\n pagination: PaginationArguments<string>,\n) {\n let hasNextPage = true;\n let cursor = undefined;\n const data: DynamicFieldInfo[] = [];\n\n while (hasNextPage) {\n const result = await client.getDynamicFields({\n parentId,\n limit: pagination.limit || undefined,\n cursor,\n });\n data.push(...result.data);\n hasNextPage = result.hasNextPage;\n cursor = result.nextCursor;\n }\n\n return 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 client: IotaClient,\n ids: string[],\n options: IotaObjectDataOptions,\n limit: number = DEFAULT_QUERY_LIMIT,\n) {\n const chunks = Array.from({ length: Math.ceil(ids.length / limit) }, (_, index) =>\n ids.slice(index * limit, index * limit + limit),\n );\n\n const results = await Promise.all(\n chunks.map((chunk) => {\n return client.multiGetObjects({\n ids: chunk,\n options,\n });\n }),\n );\n\n return 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 client,\n owner,\n filter,\n limit = DEFAULT_QUERY_LIMIT,\n options = { showType: true, showContent: true },\n}: {\n client: IotaClient;\n owner: string;\n filter?: IotaObjectDataFilter;\n options?: IotaObjectDataOptions;\n limit?: number;\n}) {\n let hasNextPage = true;\n let cursor = undefined;\n const data: IotaObjectResponse[] = [];\n\n while (hasNextPage) {\n const result = await client.getOwnedObjects({\n owner,\n filter,\n limit,\n cursor,\n options,\n });\n data.push(...result.data);\n hasNextPage = result.hasNextPage;\n cursor = result.nextCursor;\n }\n\n return 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 if (percentage < 0 || percentage > 100)\n throw new Error('Percentage needs to be in the [0,100] range.');\n return 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 item: IotaObjectResponse,\n): TransferPolicyCap | undefined {\n const type = (item?.data?.content as { type: string })?.type;\n\n //@ts-expect-error Silencing error here\n const policy = item?.data?.content?.fields?.policy_id as string;\n\n if (!type.includes(TRANSFER_POLICY_CAP_TYPE)) return undefined;\n\n // Transform 0x2::transfer_policy::TransferPolicyCap<itemType> -> itemType\n const objectType = type.replace(TRANSFER_POLICY_CAP_TYPE + '<', '').slice(0, -1);\n\n return {\n policyId: policy,\n // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain\n policyCapId: item.data?.objectId!,\n type: objectType,\n };\n}\n\n// Normalizes the packageId part of a rule's type.\nexport function getNormalizedRuleType(rule: string) {\n const normalizedRuleAddress = rule.split('::');\n normalizedRuleAddress[0] = normalizeIotaAddress(normalizedRuleAddress[0]);\n return normalizedRuleAddress.join('::');\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;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IACJ,CAAC;AACD,SAAK,KAAK,GAAG,OAAO,IAAI;AACxB,kBAAc,OAAO;AACrB,aAAS,OAAO;AAAA,EACpB;AAEA,SAAO;AACX;AAQO,SAAS,wBAAwB,YAAoB;AACxD,MAAI,aAAa,KAAK,aAAa;AAC/B,UAAM,IAAI,MAAM,8CAA8C;AAClE,SAAO,KAAK,KAAK,aAAa,GAAG;AACrC;AAKO,SAAS,6BACZ,MAC6B;AAC7B,QAAM,OAAQ,MAAM,MAAM,SAA8B;AAGxD,QAAM,SAAS,MAAM,MAAM,SAAS,QAAQ;AAE5C,MAAI,CAAC,KAAK,SAAS,qCAAwB,EAAG,QAAO;AAGrD,QAAM,aAAa,KAAK,QAAQ,wCAA2B,KAAK,EAAE,EAAE,MAAM,GAAG,EAAE;AAE/E,SAAO;AAAA,IACH,UAAU;AAAA;AAAA,IAEV,aAAa,KAAK,MAAM;AAAA,IACxB,MAAM;AAAA,EACV;AACJ;AAGO,SAAS,sBAAsB,MAAc;AAChD,QAAM,wBAAwB,KAAK,MAAM,IAAI;AAC7C,wBAAsB,CAAC,QAAI,mCAAqB,sBAAsB,CAAC,CAAC;AACxE,SAAO,sBAAsB,KAAK,IAAI;AAC1C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -26,8 +26,8 @@ export declare class KioskClient {
|
|
|
26
26
|
}): Promise<OwnedKiosks>;
|
|
27
27
|
/**
|
|
28
28
|
* Fetches the kiosk contents.
|
|
29
|
-
* @param
|
|
30
|
-
* @param options
|
|
29
|
+
* @param id The ID of the kiosk to fetch.
|
|
30
|
+
* @param options Optional to control the fetch behavior.
|
|
31
31
|
* @returns
|
|
32
32
|
*/
|
|
33
33
|
getKiosk({ id, options, }: {
|
|
@@ -33,8 +33,8 @@ class KioskClient {
|
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Fetches the kiosk contents.
|
|
36
|
-
* @param
|
|
37
|
-
* @param options
|
|
36
|
+
* @param id The ID of the kiosk to fetch.
|
|
37
|
+
* @param options Optional to control the fetch behavior.
|
|
38
38
|
* @returns
|
|
39
39
|
*/
|
|
40
40
|
async getKiosk({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/client/kiosk-client.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { NetworkId } from '@iota/iota-sdk/client';\nimport { getNetwork } from '@iota/iota-sdk/client';\nimport type { PaginationArguments, IotaClient } from '@iota/iota-sdk/client';\n\nimport { getBaseRules, rules } from '../constants.js';\nimport type { BaseRulePackageIds, TransferPolicyRule } from '../constants.js';\nimport { fetchKiosk, fetchKioskExtension, getOwnedKiosks } from '../query/kiosk.js';\nimport {\n queryOwnedTransferPolicies,\n queryTransferPolicy,\n queryTransferPolicyCapsByType,\n} from '../query/transfer-policy.js';\nimport type {\n FetchKioskOptions,\n KioskClientOptions,\n KioskData,\n OwnedKiosks,\n} from '../types/index.js';\n\n/**\n * A Client that allows you to interact with kiosk.\n * Offers utilities to query kiosk, craft transactions to edit your own kiosk,\n * purchase, manage transfer policies, create new kiosks etc.\n * If you pass packageIds, all functionality will be managed using these packages.\n */\nexport class KioskClient {\n client: IotaClient;\n network: NetworkId;\n rules: TransferPolicyRule[];\n packageIds?: BaseRulePackageIds;\n\n constructor(options: KioskClientOptions) {\n this.client = options.client;\n this.network = options.network;\n this.rules = rules; // add all the default rules.\n this.packageIds = options.packageIds;\n\n // Add the custom Package Ids too on the rule list.\n // Only adds the rules that are passed in the packageId object.\n if (options.packageIds) this.rules.push(...getBaseRules(options.packageIds));\n }\n\n /// Querying\n\n /**\n * Get an addresses's owned kiosks.\n * @param address The address for which we want to retrieve the kiosks.\n * @param pagination Optional pagination arguments.\n * @returns An Object containing all the `kioskOwnerCap` objects as well as the kioskIds.\n */\n async getOwnedKiosks({\n address,\n pagination,\n }: {\n address: string;\n pagination?: PaginationArguments<string>;\n }): Promise<OwnedKiosks> {\n const personalPackageId =\n this.packageIds?.personalKioskRulePackageId ||\n getNetwork(this.network).kiosk?.personalKioskRulePackageId ||\n '';\n\n return getOwnedKiosks(this.client, address, {\n pagination,\n personalKioskType: personalPackageId\n ? `${personalPackageId}::personal_kiosk::PersonalKioskCap`\n : '',\n });\n }\n\n /**\n * Fetches the kiosk contents.\n * @param
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { NetworkId } from '@iota/iota-sdk/client';\nimport { getNetwork } from '@iota/iota-sdk/client';\nimport type { PaginationArguments, IotaClient } from '@iota/iota-sdk/client';\n\nimport { getBaseRules, rules } from '../constants.js';\nimport type { BaseRulePackageIds, TransferPolicyRule } from '../constants.js';\nimport { fetchKiosk, fetchKioskExtension, getOwnedKiosks } from '../query/kiosk.js';\nimport {\n queryOwnedTransferPolicies,\n queryTransferPolicy,\n queryTransferPolicyCapsByType,\n} from '../query/transfer-policy.js';\nimport type {\n FetchKioskOptions,\n KioskClientOptions,\n KioskData,\n OwnedKiosks,\n} from '../types/index.js';\n\n/**\n * A Client that allows you to interact with kiosk.\n * Offers utilities to query kiosk, craft transactions to edit your own kiosk,\n * purchase, manage transfer policies, create new kiosks etc.\n * If you pass packageIds, all functionality will be managed using these packages.\n */\nexport class KioskClient {\n client: IotaClient;\n network: NetworkId;\n rules: TransferPolicyRule[];\n packageIds?: BaseRulePackageIds;\n\n constructor(options: KioskClientOptions) {\n this.client = options.client;\n this.network = options.network;\n this.rules = rules; // add all the default rules.\n this.packageIds = options.packageIds;\n\n // Add the custom Package Ids too on the rule list.\n // Only adds the rules that are passed in the packageId object.\n if (options.packageIds) this.rules.push(...getBaseRules(options.packageIds));\n }\n\n /// Querying\n\n /**\n * Get an addresses's owned kiosks.\n * @param address The address for which we want to retrieve the kiosks.\n * @param pagination Optional pagination arguments.\n * @returns An Object containing all the `kioskOwnerCap` objects as well as the kioskIds.\n */\n async getOwnedKiosks({\n address,\n pagination,\n }: {\n address: string;\n pagination?: PaginationArguments<string>;\n }): Promise<OwnedKiosks> {\n const personalPackageId =\n this.packageIds?.personalKioskRulePackageId ||\n getNetwork(this.network).kiosk?.personalKioskRulePackageId ||\n '';\n\n return getOwnedKiosks(this.client, address, {\n pagination,\n personalKioskType: personalPackageId\n ? `${personalPackageId}::personal_kiosk::PersonalKioskCap`\n : '',\n });\n }\n\n /**\n * Fetches the kiosk contents.\n * @param id The ID of the kiosk to fetch.\n * @param options Optional to control the fetch behavior.\n * @returns\n */\n async getKiosk({\n id,\n options,\n }: {\n id: string;\n options?: FetchKioskOptions;\n }): Promise<KioskData> {\n return (\n await fetchKiosk(\n this.client,\n id,\n {\n limit: 1000,\n },\n options || {},\n )\n ).data;\n }\n\n /**\n * Fetch the extension data (if any) for a kiosk, by type\n * @param kioskId The ID of the kiosk to lookup\n * @param extensionType The Type of the extension (can be used from by using the type returned by `getKiosk()`)\n */\n async getKioskExtension({ kioskId, type }: { kioskId: string; type: string }) {\n return fetchKioskExtension(this.client, kioskId, type);\n }\n\n /**\n * Query the Transfer Policy(ies) for type `T`.\n * @param type The Type we're querying for (E.g `0xMyAddress::hero::Hero`)\n */\n async getTransferPolicies({ type }: { type: string }) {\n return queryTransferPolicy(this.client, type);\n }\n\n /**\n * Query all the owned transfer policies for an address.\n * Returns `TransferPolicyCap` which uncludes `policyId, policyCapId, type`.\n * @param address The address we're searching the owned transfer policies for.\n */\n async getOwnedTransferPolicies({ address }: { address: string }) {\n return queryOwnedTransferPolicies(this.client, address);\n }\n\n /**\n * Query the Transfer Policy Cap for type `T`, owned by `address`\n * @param type The Type `T` for the object\n * @param address The address that owns the cap.\n */\n async getOwnedTransferPoliciesByType({ type, address }: { type: string; address: string }) {\n return queryTransferPolicyCapsByType(this.client, address, type);\n }\n\n // Someone would just have to create a `kiosk-client.ts` file in their project, initialize a KioskClient\n // and call the `addRuleResolver` function. Each rule has a `resolve` function.\n // The resolve function is automatically called on `purchaseAndResolve` function call.\n addRuleResolver(rule: TransferPolicyRule) {\n if (this.rules.find((x) => x.rule === rule.rule))\n throw new Error(`Rule ${rule.rule} resolver already exists.`);\n this.rules.push(rule);\n }\n\n /**\n * A convenient helper to get the packageIds for our supported ruleset,\n * based on `kioskClient` configuration.\n */\n getRulePackageId(\n rule:\n | 'kioskLockRulePackageId'\n | 'royaltyRulePackageId'\n | 'personalKioskRulePackageId'\n | 'floorPriceRulePackageId',\n ) {\n const rules = this.packageIds || {};\n const network = this.network;\n\n const networkKiosk = getNetwork(network).kiosk;\n\n const rulePackageId = rules[rule] || networkKiosk?.[rule];\n\n /// Check existence of rule throw an error if it's not found.\n if (!rulePackageId) {\n throw new Error(`Missing packageId for rule ${rule}`);\n }\n\n return rulePackageId;\n }\n}\n"],
|
|
5
5
|
"mappings": "AAKA,SAAS,kBAAkB;AAG3B,SAAS,cAAc,aAAa;AAEpC,SAAS,YAAY,qBAAqB,sBAAsB;AAChE;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,OACG;AAcA,MAAM,YAAY;AAAA,EAMrB,YAAY,SAA6B;AACrC,SAAK,SAAS,QAAQ;AACtB,SAAK,UAAU,QAAQ;AACvB,SAAK,QAAQ;AACb,SAAK,aAAa,QAAQ;AAI1B,QAAI,QAAQ,WAAY,MAAK,MAAM,KAAK,GAAG,aAAa,QAAQ,UAAU,CAAC;AAAA,EAC/E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,MAAM,eAAe;AAAA,IACjB;AAAA,IACA;AAAA,EACJ,GAGyB;AACrB,UAAM,oBACF,KAAK,YAAY,8BACjB,WAAW,KAAK,OAAO,EAAE,OAAO,8BAChC;AAEJ,WAAO,eAAe,KAAK,QAAQ,SAAS;AAAA,MACxC;AAAA,MACA,mBAAmB,oBACb,GAAG,iBAAiB,uCACpB;AAA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AM,IAAI,MAAM,8BAA8B,IAAI,EAAE;AAAA,IACxD;AAEA,WAAO;AAAA,EACX;AACJ;",
|
|
6
6
|
"names": ["rules"]
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { fromBase64, isValidIotaAddress } from "@iota/iota-sdk/utils";
|
|
2
2
|
import "../bcs.js";
|
|
3
3
|
import { TransferPolicyType } from "../bcs.js";
|
|
4
4
|
import {
|
|
@@ -24,7 +24,7 @@ async function queryTransferPolicy(client, type) {
|
|
|
24
24
|
`Invalid policy: ${policy?.objectId}, expected object, got package`
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
|
-
const parsed = TransferPolicyType.parse(
|
|
27
|
+
const parsed = TransferPolicyType.parse(fromBase64(policy.bcs.bcsBytes));
|
|
28
28
|
return {
|
|
29
29
|
id: policy?.objectId,
|
|
30
30
|
type: `${TRANSFER_POLICY_TYPE}<${type}>`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/query/transfer-policy.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IotaClient } from '@iota/iota-sdk/client';\nimport {
|
|
5
|
-
"mappings": "AAKA,SAAS,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { IotaClient } from '@iota/iota-sdk/client';\nimport { fromBase64, isValidIotaAddress } from '@iota/iota-sdk/utils';\n\nimport '../bcs.js';\n\nimport { TransferPolicyType } from '../bcs.js';\nimport type { TransferPolicy, TransferPolicyCap } from '../types/index.js';\nimport {\n TRANSFER_POLICY_CAP_TYPE,\n TRANSFER_POLICY_CREATED_EVENT,\n TRANSFER_POLICY_TYPE,\n} from '../types/index.js';\nimport { getAllOwnedObjects, parseTransferPolicyCapObject } from '../utils.js';\n\n/**\n * Searches the `TransferPolicy`-s for the given type. The search is performed via\n * the `TransferPolicyCreated` event. The policy can either be owned or shared,\n * and the caller needs to filter the results accordingly (ie single owner can not\n * be accessed by anyone but the owner).\n *\n * @param provider\n * @param type\n */\nexport async function queryTransferPolicy(\n client: IotaClient,\n type: string,\n): Promise<TransferPolicy[]> {\n // console.log('event type: %s', `${TRANSFER_POLICY_CREATED_EVENT}<${type}>`);\n const { data } = await client.queryEvents({\n query: {\n MoveEventType: `${TRANSFER_POLICY_CREATED_EVENT}<${type}>`,\n },\n });\n\n const search = data.map((event) => event.parsedJson as { id: string });\n const policies = await client.multiGetObjects({\n ids: search.map((policy) => policy.id),\n options: { showBcs: true, showOwner: true },\n });\n\n return policies\n .filter((policy) => !!policy && 'data' in policy)\n .map(({ data: policy }) => {\n // should never happen; policies are objects and fetched via an event.\n // policies are filtered for null and undefined above.\n if (!policy || !policy.bcs || !('bcsBytes' in policy.bcs)) {\n throw new Error(\n `Invalid policy: ${policy?.objectId}, expected object, got package`,\n );\n }\n\n const parsed = TransferPolicyType.parse(fromBase64(policy.bcs.bcsBytes));\n\n return {\n id: policy?.objectId,\n type: `${TRANSFER_POLICY_TYPE}<${type}>`,\n owner: policy?.owner,\n rules: parsed.rules,\n balance: parsed.balance,\n } as TransferPolicy;\n });\n}\n\n/**\n * A function to fetch all the user's kiosk Caps\n * And a list of the kiosk address ids.\n * Returns a list of `kioskOwnerCapIds` and `kioskIds`.\n * Extra options allow pagination.\n * @returns TransferPolicyCap Object ID | undefined if not found.\n */\nexport async function queryTransferPolicyCapsByType(\n client: IotaClient,\n address: string,\n type: string,\n): Promise<TransferPolicyCap[]> {\n if (!isValidIotaAddress(address)) return [];\n\n const filter = {\n MatchAll: [\n {\n StructType: `${TRANSFER_POLICY_CAP_TYPE}<${type}>`,\n },\n ],\n };\n\n // fetch owned kiosk caps, paginated.\n const data = await getAllOwnedObjects({\n client,\n filter,\n owner: address,\n });\n\n return data\n .map((item) => parseTransferPolicyCapObject(item))\n .filter((item) => !!item) as TransferPolicyCap[];\n}\n\n/**\n * A function to fetch all the user's kiosk Caps\n * And a list of the kiosk address ids.\n * Returns a list of `kioskOwnerCapIds` and `kioskIds`.\n * Extra options allow pagination.\n * @returns TransferPolicyCap Object ID | undefined if not found.\n */\nexport async function queryOwnedTransferPolicies(\n client: IotaClient,\n address: string,\n): Promise<TransferPolicyCap[] | undefined> {\n if (!isValidIotaAddress(address)) return;\n\n const filter = {\n MatchAll: [\n {\n MoveModule: {\n module: 'transfer_policy',\n package: '0x2',\n },\n },\n ],\n };\n\n // fetch all owned kiosk caps, paginated.\n const data = await getAllOwnedObjects({ client, owner: address, filter });\n\n const policies: TransferPolicyCap[] = [];\n\n for (const item of data) {\n const data = parseTransferPolicyCapObject(item);\n if (data) policies.push(data);\n }\n\n return policies;\n}\n"],
|
|
5
|
+
"mappings": "AAKA,SAAS,YAAY,0BAA0B;AAE/C,OAAO;AAEP,SAAS,0BAA0B;AAEnC;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,OACG;AACP,SAAS,oBAAoB,oCAAoC;AAWjE,eAAsB,oBAClB,QACA,MACyB;AAEzB,QAAM,EAAE,KAAK,IAAI,MAAM,OAAO,YAAY;AAAA,IACtC,OAAO;AAAA,MACH,eAAe,GAAG,6BAA6B,IAAI,IAAI;AAAA,IAC3D;AAAA,EACJ,CAAC;AAED,QAAM,SAAS,KAAK,IAAI,CAAC,UAAU,MAAM,UAA4B;AACrE,QAAM,WAAW,MAAM,OAAO,gBAAgB;AAAA,IAC1C,KAAK,OAAO,IAAI,CAAC,WAAW,OAAO,EAAE;AAAA,IACrC,SAAS,EAAE,SAAS,MAAM,WAAW,KAAK;AAAA,EAC9C,CAAC;AAED,SAAO,SACF,OAAO,CAAC,WAAW,CAAC,CAAC,UAAU,UAAU,MAAM,EAC/C,IAAI,CAAC,EAAE,MAAM,OAAO,M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AAO;AACX;",
|
|
6
6
|
"names": ["data"]
|
|
7
7
|
}
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
fromBase64,
|
|
3
3
|
normalizeStructTag,
|
|
4
4
|
normalizeIotaAddress,
|
|
5
5
|
parseStructTag
|
|
@@ -15,7 +15,7 @@ async function getKioskObject(client, id) {
|
|
|
15
15
|
if (!queryRes.data.bcs || !("bcsBytes" in queryRes.data.bcs)) {
|
|
16
16
|
throw new Error(`Invalid kiosk query: ${id}, expected object, got package`);
|
|
17
17
|
}
|
|
18
|
-
return KioskType.parse(
|
|
18
|
+
return KioskType.parse(fromBase64(queryRes.data.bcs.bcsBytes));
|
|
19
19
|
}
|
|
20
20
|
function extractKioskData(data, listings, lockedItemIds, kioskId) {
|
|
21
21
|
return data.reduce(
|
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// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n DynamicFieldInfo,\n PaginationArguments,\n IotaClient,\n IotaObjectData,\n IotaObjectDataFilter,\n IotaObjectDataOptions,\n IotaObjectResponse,\n} from '@iota/iota-sdk/client';\nimport {\n
|
|
5
|
-
"mappings": "AAaA;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AAEP,SAAS,iBAAiB;AAE1B,SAAS,gCAAgC;AAEzC,MAAM,sBAAsB;AAE5B,eAAsB,eAAe,QAAoB,IAA4B;AACjF,QAAM,WAAW,MAAM,OAAO,UAAU,EAAE,IAAI,SAAS,EAAE,SAAS,KAAK,EAAE,CAAC;AAE1E,MAAI,CAAC,YAAY,SAAS,SAAS,CAAC,SAAS,MAAM;AAC/C,UAAM,IAAI,MAAM,SAAS,EAAE,eAAe,SAAS,KAAK,EAAE;AAAA,EAC9D;AAEA,MAAI,CAAC,SAAS,KAAK,OAAO,EAAE,cAAc,SAAS,KAAK,MAAM;AAC1D,UAAM,IAAI,MAAM,wBAAwB,EAAE,gCAAgC;AAAA,EAC9E;AAEA,SAAO,UAAU,MAAM,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Mysten Labs, Inc.\n// Modifications Copyright (c) 2024 IOTA Stiftung\n// SPDX-License-Identifier: Apache-2.0\n\nimport type {\n DynamicFieldInfo,\n PaginationArguments,\n IotaClient,\n IotaObjectData,\n IotaObjectDataFilter,\n IotaObjectDataOptions,\n IotaObjectResponse,\n} from '@iota/iota-sdk/client';\nimport {\n fromBase64,\n normalizeStructTag,\n normalizeIotaAddress,\n parseStructTag,\n} from '@iota/iota-sdk/utils';\n\nimport { KioskType } from './bcs.js';\nimport type { Kiosk, KioskData, KioskListing, TransferPolicyCap } from './types/index.js';\nimport { TRANSFER_POLICY_CAP_TYPE } from './types/index.js';\n\nconst DEFAULT_QUERY_LIMIT = 50;\n\nexport async function getKioskObject(client: IotaClient, id: string): Promise<Kiosk> {\n const queryRes = await client.getObject({ id, options: { showBcs: true } });\n\n if (!queryRes || queryRes.error || !queryRes.data) {\n throw new Error(`Kiosk ${id} not found; ${queryRes.error}`);\n }\n\n if (!queryRes.data.bcs || !('bcsBytes' in queryRes.data.bcs)) {\n throw new Error(`Invalid kiosk query: ${id}, expected object, got package`);\n }\n\n return KioskType.parse(fromBase64(queryRes.data.bcs!.bcsBytes));\n}\n\n// helper to extract kiosk data from dynamic fields.\nexport function extractKioskData(\n data: DynamicFieldInfo[],\n listings: KioskListing[],\n lockedItemIds: string[],\n kioskId: string,\n): KioskData {\n return data.reduce<KioskData>(\n (acc: KioskData, val: DynamicFieldInfo) => {\n const type = val.name.type;\n\n if (type.startsWith('0x2::kiosk::Item')) {\n acc.itemIds.push(val.objectId);\n acc.items.push({\n objectId: val.objectId,\n type: val.objectType,\n isLocked: false,\n kioskId,\n });\n }\n if (type.startsWith('0x2::kiosk::Listing')) {\n acc.listingIds.push(val.objectId);\n listings.push({\n objectId: (val.name.value as { id: string }).id,\n listingId: val.objectId,\n isExclusive: (val.name.value as { is_exclusive: boolean }).is_exclusive,\n });\n }\n if (type.startsWith('0x2::kiosk::Lock')) {\n lockedItemIds?.push((val.name.value as { id: string }).id);\n }\n\n if (type.startsWith('0x2::kiosk_extension::ExtensionKey')) {\n acc.extensions.push({\n objectId: val.objectId,\n type: normalizeStructTag(parseStructTag(val.name.type).typeParams[0]),\n });\n }\n\n return acc;\n },\n { items: [], itemIds: [], listingIds: [], extensions: [] },\n );\n}\n\n/**\n * A helper that attaches the listing prices to kiosk listings.\n */\nexport function attachListingsAndPrices(\n kioskData: KioskData,\n listings: KioskListing[],\n listingObjects: IotaObjectResponse[],\n) {\n // map item listings as {item_id: KioskListing}\n // for easier mapping on the nex\n const itemListings = listings.reduce<Record<string, KioskListing>>(\n (acc: Record<string, KioskListing>, item, idx) => {\n acc[item.objectId] = { ...item };\n\n // return in case we don't have any listing objects.\n // that's the case when we don't have the `listingPrices` included.\n if (listingObjects.length === 0) return acc;\n\n const content = listingObjects[idx].data?.content;\n const data = content?.dataType === 'moveObject' ? content?.fields : null;\n\n if (!data) return acc;\n\n acc[item.objectId].price = (data as { value: string }).value;\n return acc;\n },\n {},\n );\n\n kioskData.items.forEach((item) => {\n item.listing = itemListings[item.objectId] || undefined;\n });\n}\n\n/**\n * A helper that attaches the listing prices to kiosk listings.\n */\nexport function attachObjects(kioskData: KioskData, objects: IotaObjectData[]) {\n const mapping = objects.reduce<Record<string, IotaObjectData>>(\n (acc: Record<string, IotaObjectData>, obj) => {\n acc[obj.objectId] = obj;\n return acc;\n },\n {},\n );\n\n kioskData.items.forEach((item) => {\n item.data = mapping[item.objectId] || undefined;\n });\n}\n\n/**\n * A Helper to attach locked state to items in Kiosk Data.\n */\nexport function attachLockedItems(kioskData: KioskData, lockedItemIds: string[]) {\n // map lock status in an array of type { item_id: true }\n const lockedStatuses = lockedItemIds.reduce<Record<string, boolean>>(\n (acc: Record<string, boolean>, item: string) => {\n acc[item] = true;\n return acc;\n },\n {},\n );\n\n // parse lockedItemIds and attach their locked status.\n kioskData.items.forEach((item) => {\n item.isLocked = lockedStatuses[item.objectId] || false;\n });\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 client: IotaClient,\n parentId: string,\n pagination: PaginationArguments<string>,\n) {\n let hasNextPage = true;\n let cursor = undefined;\n const data: DynamicFieldInfo[] = [];\n\n while (hasNextPage) {\n const result = await client.getDynamicFields({\n parentId,\n limit: pagination.limit || undefined,\n cursor,\n });\n data.push(...result.data);\n hasNextPage = result.hasNextPage;\n cursor = result.nextCursor;\n }\n\n return 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 client: IotaClient,\n ids: string[],\n options: IotaObjectDataOptions,\n limit: number = DEFAULT_QUERY_LIMIT,\n) {\n const chunks = Array.from({ length: Math.ceil(ids.length / limit) }, (_, index) =>\n ids.slice(index * limit, index * limit + limit),\n );\n\n const results = await Promise.all(\n chunks.map((chunk) => {\n return client.multiGetObjects({\n ids: chunk,\n options,\n });\n }),\n );\n\n return 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 client,\n owner,\n filter,\n limit = DEFAULT_QUERY_LIMIT,\n options = { showType: true, showContent: true },\n}: {\n client: IotaClient;\n owner: string;\n filter?: IotaObjectDataFilter;\n options?: IotaObjectDataOptions;\n limit?: number;\n}) {\n let hasNextPage = true;\n let cursor = undefined;\n const data: IotaObjectResponse[] = [];\n\n while (hasNextPage) {\n const result = await client.getOwnedObjects({\n owner,\n filter,\n limit,\n cursor,\n options,\n });\n data.push(...result.data);\n hasNextPage = result.hasNextPage;\n cursor = result.nextCursor;\n }\n\n return 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 if (percentage < 0 || percentage > 100)\n throw new Error('Percentage needs to be in the [0,100] range.');\n return 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 item: IotaObjectResponse,\n): TransferPolicyCap | undefined {\n const type = (item?.data?.content as { type: string })?.type;\n\n //@ts-expect-error Silencing error here\n const policy = item?.data?.content?.fields?.policy_id as string;\n\n if (!type.includes(TRANSFER_POLICY_CAP_TYPE)) return undefined;\n\n // Transform 0x2::transfer_policy::TransferPolicyCap<itemType> -> itemType\n const objectType = type.replace(TRANSFER_POLICY_CAP_TYPE + '<', '').slice(0, -1);\n\n return {\n policyId: policy,\n // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain\n policyCapId: item.data?.objectId!,\n type: objectType,\n };\n}\n\n// Normalizes the packageId part of a rule's type.\nexport function getNormalizedRuleType(rule: string) {\n const normalizedRuleAddress = rule.split('::');\n normalizedRuleAddress[0] = normalizeIotaAddress(normalizedRuleAddress[0]);\n return normalizedRuleAddress.join('::');\n}\n"],
|
|
5
|
+
"mappings": "AAaA;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACG;AAEP,SAAS,iBAAiB;AAE1B,SAAS,gCAAgC;AAEzC,MAAM,sBAAsB;AAE5B,eAAsB,eAAe,QAAoB,IAA4B;AACjF,QAAM,WAAW,MAAM,OAAO,UAAU,EAAE,IAAI,SAAS,EAAE,SAAS,KAAK,EAAE,CAAC;AAE1E,MAAI,CAAC,YAAY,SAAS,SAAS,CAAC,SAAS,MAAM;AAC/C,UAAM,IAAI,MAAM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,CAAC,KAAK,SAAS,wBAAwB,EAAG,QAAO;AAGrD,QAAM,aAAa,KAAK,QAAQ,2BAA2B,KAAK,EAAE,EAAE,MAAM,GAAG,EAAE;AAE/E,SAAO;AAAA,IACH,UAAU;AAAA;AAAA,IAEV,aAAa,KAAK,MAAM;AAAA,IACxB,MAAM;AAAA,EACV;AACJ;AAGO,SAAS,sBAAsB,MAAc;AAChD,QAAM,wBAAwB,KAAK,MAAM,IAAI;AAC7C,wBAAsB,CAAC,IAAI,qBAAqB,sBAAsB,CAAC,CAAC;AACxE,SAAO,sBAAsB,KAAK,IAAI;AAC1C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/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/index.d.ts","../../typescript/dist/cjs/bcs/types.d.ts","../../typescript/dist/cjs/bcs/bcs.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","../../../node_modules/.pnpm/valibot@0.36.0/node_modules/valibot/dist/index.d.ts","../../typescript/dist/cjs/transactions/data/internal.d.ts","../../typescript/dist/cjs/transactions/serializer.d.ts","../../typescript/dist/cjs/transactions/Inputs.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/cryptography/keypair.d.ts","../../typescript/dist/cjs/multisig/signer.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/index.d.ts","../../typescript/dist/cjs/client/client.d.ts","../../typescript/dist/cjs/transactions/data/v1.d.ts","../../typescript/dist/cjs/transactions/data/v2.d.ts","../../typescript/dist/cjs/transactions/TransactionData.d.ts","../../typescript/dist/cjs/transactions/json-rpc-resolver.d.ts","../../typescript/dist/cjs/transactions/pure.d.ts","../../typescript/dist/cjs/transactions/Transaction.d.ts","../../typescript/dist/cjs/transactions/Commands.d.ts","../../typescript/dist/cjs/transactions/ObjectCache.d.ts","../../typescript/dist/cjs/transactions/executor/serial.d.ts","../../typescript/dist/cjs/transactions/executor/parallel.d.ts","../../typescript/dist/cjs/transactions/intents/CoinWithBalance.d.ts","../../typescript/dist/cjs/transactions/Arguments.d.ts","../../typescript/dist/cjs/transactions/index.d.ts","../../typescript/dist/cjs/client/types/params.d.ts","../../typescript/dist/cjs/client/types/index.d.ts","../../typescript/dist/cjs/client/errors.d.ts","../../typescript/dist/cjs/client/apps-backend.d.ts","../../typescript/dist/cjs/client/index.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/iota-types.d.ts","../../typescript/dist/cjs/utils/constants.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"],"fileIdsList":[[76,78],[77,79],[74,75,76,77,78,79,80,81,82],[79],[77],[87,133],[127,130,133,140,141],[122,128,133,139,142,144,146],[122,133,142,143,144],[127,129,133],[130,133,139,142,145,147],[127,133,138,139],[127,133,134,138,139],[87,122,133],[122,133],[128,133],[122,127,130,131,132],[122,127,133],[127,133,134,138],[83,84],[83,84,85,86],[84],[89,108,122,124],[88],[89,90,109,124,125,126],[91],[91,92,93,94,95,123],[91,122],[100,101,102,103,106,107],[87],[100,101,102],[100],[101,102,105],[101,102,103,104],[105,108],[83,114,115],[96,97,115],[83,97],[87,97,113],[83,84,96,97,99,108,113,114,116,127],[96,97,110,111],[83,96],[83,84,96,97],[108,115,117,127],[87,103,115,117,127],[97,98,99,110,111,112,113,115,116,117,118,119,120,121],[115],[109,112],[83,97,127],[83,135,136,137]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"b304a0dbc45734f46afbc75f40510b68f8c8575ef0b5cb8cd3e9b1e91bf1e169","b0968fa9dabd4a0a1dd69a53f2c3f5a458d71e6374bd80139c3616d839171c65","ec95aac5334a7f581ca3703334d605fd099255c4e7ae6cc0f758a8a61bd2583d","d61c470a7d25c7a76a24efa4a807cd97ce79ae96914ce714ccb344be42b863b0","74827b76ab292352d93bff9779c439544b506f788313a6ba42a8073855f423ba","26ce678dd4402fe0fa7c330d55133bf28a3486c33acd09d7e6be1356f384ac69","7db9cc70159ae1bc91216702cfd5c88d568d64a2e346467ce414b54d90685d9b","da0d6e82a836d320b4aedffcdbeda8444263533483ec4fc36a188da9995beee8","877a5f022af5433e1e2d9aeecfb92e35d10635812cec615c4b64fc16234201c7","786050b4d927585ecd2eee27d200fecfd7c3292575789b2abbac66b89f5c0d7c","9bc7ff1f617ad7438b9ec0cd3eed65b3f9f65e6bf6853fa62d1a5eb5b850ceba","a1b105aca255cc6a4116f01b011dd22cc22b9fc7e6bbb36f05bea47cf33c55f9","a973fbd4daab0a1653b96ffa382f8660554fc39178bd6f95bf36aa2a73da5291","b32d90b631b548832e7d359a461a1500c84fc96b20b4987208e119be07c2ecc3","067fdccc90918e623bab5feb6ebb137c82b228d3456a71d3d0abdbffc49500bb","58f3fe894565fce95cfc8fde600ab757f7d2c032b05b2050c082c4952b503da4","a6d106fcc2d2f9ff62f5b57668941cba94f5894d9dc35397852aedc637432e64","158c610c9f66e94439c50da2fdf32ff8d501d73b6d4ab239e2460dfb3e1d0928","16d78a79b39377d0b6779b1720427719413e985e2991fbe324bad147eb0e3cf9","e6a91af495ad69b06d4145fb4da0f917bf30a4f8f4e3bd26344a5d0b31cd5078","aefe5f5213976a6e1a954303ac2dd0d4da22a71534866b33b74b36648895c674","5c0b9fdcacbc5f6c7e42adacce6e7c857337ec5f04ec568fbc17abe1245d4212",{"version":"cc9dcad02ec8f84b2cdc7715e6caac16f5c1b18dc920c6d7126f9a03f6e62ce5","impliedFormat":99},"955feb842e5b466bcef37243968ba4317e84e615f64830bfed622ca054f866c2","70852390a03c6ad3c49dcfb64b5f30d15698515e7bea80203ea6e6571192571d","9f7d9ec09b982998c5c78f5e1112643c1109b9451f8cf2b9784d52621893d96b","dfec7cae1a6834401e513581eb88f656c5ca355a17c47eb7a2cea68465ae7b31","307c55320f1600db2eead8b4d678b838e86c4dafc2dbc648dab19850e44d15e4","9fa19adab483010cfa528b3c3f8edac84cde237fd655c02daad650c8e0a2eb73","a8705208ff20b4384245f5deab90aa925f5e6a465ce7cac3cdba61532031f81c","648c21d3954a054f58d006d5bd6c25abee93a57f9e3497e7085cb62bd86adb36","c06eb297d35accf37d71724f79d9cc20d581cd8fd4023640b486f9758fbcb80e","f792b33fd9dd58f4f2b3e735f4a95ab7a4d6e0c2d3a86c9b398638f30bbc84e6","05e9ec113665fe20c8b902ae2e9a8de9d1ee93381a4fc38271088621fdd52ecc","821b193c87a5a070878676cd2f53a24eab383af9b71e56f1c2d0792ff695623b","cf5b7d760347c819ee81ec6e02984b49704f8f9029c776b24f4927514c8f46f0","46bbd2c38b4b1c0af87b9768fd2d8bba068c03d0cc6b8b7cdf838e4710269cfa","00527c3be5d58354b73ed7ca2095d3f4ecc878fbf600679b0970de3dfcd42b5e","0d52928728f0b63b2a6d031253f7374ad28e0c6f8fcf3d6da232242823d22db4","7712e74444087dd09a7062a6989a8021e2d31eef45b2021287a5bc934b75de0b","f0fce3b31b05ce4a0174c1da66eef03040b4bd612b8eac5def88c99d6e429756","dd27a91ad2fec2571fa511435347045a47f3e17c65a4cbf799690ae8745e203c","7ff873a20934964b9301dbe2603fc2927f3a55ce5e06095dfe678eb807c12b5e","1d7510c5aa7897fc21f5b27108e1b22f4915595d49ceeded10af253bdc2065ac","60e67ffb009ba60e55c5ba318ebac4fdbc94b707e3b8086b7b31009bc15fc3af","54c890130a8ef9dc2cc6f97c5b50c53dd519bdfcd3181f13c7bc1dec77eb43a1","6b77047764cfbcb71427be450a142e4cfb9f75de73ac500f7e58f226d4d77cba","5f36bec69b18dd6bde6805a16479f847764b6e1d1d379acc1f2b427b3a939961","331fb509f7e3a78c3162e0c34153de12112e641f6117dfad68679ba74053847f","e6b0eba6408d31545024d37536d30f8032387305899637baad2b29e003a494d5","1cc19398cebbcda80c612f0989bd1dc124097914402fa315fd2e2595b69812d9","a2ad16cf579b2774dcdd946e6d2209abfb7e7b364c0040cfaa4dd254941464c7","ea678ea24c9140df53b5cdbef2263ab66404adc008445ca32ad042eec50b5c3a","7ec4884c1e3741a96ef04f296cfe685804b190dd67291ecc8e2e2f83c51e5353",{"version":"ca7238105e4c59f69c399229432e9954ea683d21c49e12a4e7324c24d8ab0439","signature":"a3e57b806b658085c5486de104af51c9c66ae7cfa17058d9226ffc45919e1f5c"},{"version":"8f93b67cd47b7b4364eb949d710c57511a6405394b7e8677e36f4183a2c5594f","signature":"11eb9418df601a8fdc8c8dbd61290c6bd95d6fb6fcbef4d47cb6b391103e8267"},{"version":"c6488899c240575a2e198d3a38a88007dde7d27c7f81fe019a05d9669ba0778b","signature":"929d1d089bcd8836f690d1bf01f628e0d046ddecfd6b86fd3831777c140a3f6a"},{"version":"98d253793734bce8152bf1821b1c06639ad1f67b150c3f19661fb4513bed21c1","signature":"3dc9f1f2ba0bbee0214868ec48b7384bea79c8bfe933c0f6eecc5eba6e731d8d"},{"version":"d1eb3ed96a321360782e0bcda421f2b33b2fd8aab39b2ade3dc4c0f190d41eb2","signature":"ececeebfe140a9b3d24b277202de06a23139a8c966746b32969c1c7f657ee1fc"},{"version":"91a15d75f3c0ce9e0ff54d659e430e8dfb53ec8aaa3a63d3570d2435716ac2c7","signature":"defff9461fd8f4fc95856e13adc3c4b2e71c3aa3024941a9247ea3ec37b9a224"},{"version":"54421e49b8a474de50bcc741d8d6d4b51ea4534bfa5d43acde4b08107bbf5a84","signature":"3aae238cf7a3de572b35d098a2d123901a4a036a7dd7abde653b9e0c27a8e266"},"a1ff5d9dc80b3a93ff42e9964991218df28d2320ab19be6540b280fb7a8daba5","f9fd48a4839e5ca39fb1f7ba852dc47b30137355f4beed85d6c31f5d2b950640","67d1c6798e047203b36d17aadf8bb068765d6f1405f4283f5b417208e94a9031","648728127fac19d2a78dc9630a89c9681782c137a37a982625bf552464e699c7",{"version":"62eebae66936f2ffdf6c25ca32f5261ea8aee34b23158d83bb8470abd36698b3","signature":"d7799769a51e005e45a5aaa7264990b39f99f984a9290d63fc9a2d5abd86a507"},{"version":"b84ca472fd5a1df9b2d6ba777c173f7e3a4a4f568853c31392cea429f21cfd4a","signature":"733c413235a136bd9dc2144d94b8aaee525137338b3d9c79e07306beaa8f7c3c"},{"version":"af982bf143888967f7a77a243d2fcd66b5e720d24ec79f06f4abc401056de4a9","signature":"0d6eba96a0fe7cc03f6588142a7b17ff1d2e5dfc9304e09785d99347067c3cfa"},{"version":"a58d9acaaf9f8e0c92546ade0028b82d7c60ecf5a543880feb8d79a28bc70047","signature":"3e25a0faf5463bd14430c3fa9757d0cc846b9c65438823485a098209e9d2cd3c"},{"version":"0fe6f7036b78d110de24daa86da6465eeb42175fa885c5b734cf8bd0cae65166","signature":"d14b517c466f15d69f37007a1d5d85b1b00d84fb6919bcded74d5357f66015f7"},{"version":"e81bfbc3929ad0efe8d63a3669709ca75c1caa40ab7ad5f2a26739c1b4ac1e30","signature":"dafd6781dfa01b5455836291323c58acc9db543605b87b593348973d1f220745"},{"version":"69f984851e3631d493e4646afa518ed6de32ed4181d6e38eca205fbe06cbcd0a","signature":"bae403c3ec372d22e441a7114a84484665ee7f32ce150fb8a5f217591feae063"},{"version":"d499912d83e8f458b2ddbd62129f630f12e32f7b151f913192b6f66fc84b39ba","signature":"744f10cb9cc4221488ceeff87e5b2d13e940a1d033fdba139dc8d5b7feb25935"},{"version":"d6bf5e51f0d00c82b0cfcf5f7670388f06742e3d0ef77d198a8a3257f6f2d4d0","signature":"b701c6d8746fdbdec777b76d1dd6d7348c058608175746b4d1039aa37597b0e2"},{"version":"bed842d2b4a1e707f7b5f60a47c0517b6ce9c58b052a8f93c178becd854cc90c","signature":"6ea60168b0cbacd112c0b64be4589e4491593dbacb6f5319b900cf94aa5ea9b2"}],"root":[[128,134],[139,148]],"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},"referencedMap":[[79,1],[80,2],[83,3],[77,4],[82,5],[78,5],[134,6],[142,7],[147,8],[145,9],[130,10],[148,11],[140,12],[141,13],[128,14],[146,15],[143,15],[129,16],[144,14],[133,17],[131,18],[132,18],[139,19],[85,20],[87,21],[86,22],[109,23],[89,24],[127,25],[92,26],[95,26],[124,27],[123,28],[108,29],[100,30],[103,31],[101,32],[106,33],[105,34],[104,35],[121,36],[116,37],[99,38],[117,39],[115,40],[112,41],[97,42],[110,43],[111,42],[119,44],[118,45],[122,46],[120,47],[113,48],[114,38],[98,49],[138,50]],"latestChangedDtsFile":"./esm/index.d.ts","version":"5.6.2"}
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/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/index.d.ts","../../typescript/dist/cjs/bcs/types.d.ts","../../typescript/dist/cjs/bcs/bcs.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","../../../node_modules/.pnpm/valibot@0.36.0/node_modules/valibot/dist/index.d.ts","../../typescript/dist/cjs/transactions/data/internal.d.ts","../../typescript/dist/cjs/transactions/serializer.d.ts","../../typescript/dist/cjs/transactions/Inputs.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/cryptography/keypair.d.ts","../../typescript/dist/cjs/multisig/signer.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/index.d.ts","../../typescript/dist/cjs/client/client.d.ts","../../typescript/dist/cjs/transactions/data/v1.d.ts","../../typescript/dist/cjs/transactions/data/v2.d.ts","../../typescript/dist/cjs/transactions/TransactionData.d.ts","../../typescript/dist/cjs/transactions/json-rpc-resolver.d.ts","../../typescript/dist/cjs/transactions/pure.d.ts","../../typescript/dist/cjs/transactions/Transaction.d.ts","../../typescript/dist/cjs/transactions/Commands.d.ts","../../typescript/dist/cjs/transactions/ObjectCache.d.ts","../../typescript/dist/cjs/transactions/executor/serial.d.ts","../../typescript/dist/cjs/transactions/executor/parallel.d.ts","../../typescript/dist/cjs/transactions/intents/CoinWithBalance.d.ts","../../typescript/dist/cjs/transactions/Arguments.d.ts","../../typescript/dist/cjs/transactions/index.d.ts","../../typescript/dist/cjs/client/types/params.d.ts","../../typescript/dist/cjs/client/types/index.d.ts","../../typescript/dist/cjs/client/errors.d.ts","../../typescript/dist/cjs/client/apps-backend.d.ts","../../typescript/dist/cjs/client/index.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","../../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.d.ts","../../typescript/dist/cjs/utils/formatBalance.d.ts","../../typescript/dist/cjs/utils/iota-types.d.ts","../../typescript/dist/cjs/utils/constants.d.ts","../../typescript/dist/cjs/utils/dynamic-fields.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"],"fileIdsList":[[76,78],[77,79],[74,75,76,77,78,79,80,81,82],[79],[77],[87,133],[127,130,133,143,144],[122,128,133,142,145,147,149],[122,133,145,146,147],[127,129,133],[130,133,142,145,148,150],[127,133,141,142],[127,133,134,141,142],[87,122,133],[122,133],[128,133],[122,127,130,131,132],[122,127,133],[127,133,134,141],[83,84],[83,84,85,86],[84],[89,108,122,124],[88],[89,90,109,124,125,126],[91],[91,92,93,94,95,123],[91,122],[100,101,102,103,106,107],[87],[100,101,102],[100],[101,102,105],[101,102,103,104],[105,108],[97,114,115],[96,97,115],[83,97],[87,97,113],[83,84,96,97,99,108,113,114,116,127],[96,97,110,111],[83,96],[83,84,96,97],[108,115,117,127],[87,103,115,117,127],[97,98,99,110,111,112,113,115,116,117,118,119,120,121],[115],[109,112],[83,97,127],[85],[136],[83,135,137,138,139,140]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"103755623868f6e96611ef2889da2a00da9ec7b8e5a52ff6220587d5c8c840fe","5a4ade0ac0a6f7c1fac6d3ef1a4820b24780ce145ba2424e3d18c01aa80d6636","ec95aac5334a7f581ca3703334d605fd099255c4e7ae6cc0f758a8a61bd2583d","d61c470a7d25c7a76a24efa4a807cd97ce79ae96914ce714ccb344be42b863b0","74827b76ab292352d93bff9779c439544b506f788313a6ba42a8073855f423ba","a1c8fd75ed7bb403050c7ab59b556b5e42469d2e6478618d1659e81f976ab39d","01d71fd8b804d5158945ec7dd5fcd5ee8a1bc0e0a5b40d5aa87075a8eb108802","1e44edfa0fc446181c1fa5921a07c6c049c9178f331cfeabcec6e9fc938ecd22","877a5f022af5433e1e2d9aeecfb92e35d10635812cec615c4b64fc16234201c7","4f378494ee1a3bc6be8064022450d42795dc4075da5051e3e50e6a91287eb25a","9bc7ff1f617ad7438b9ec0cd3eed65b3f9f65e6bf6853fa62d1a5eb5b850ceba","87d748f014c8529e4f12a324fe730aebbb68c202b8434fbb9259bcf3efb74d53","a973fbd4daab0a1653b96ffa382f8660554fc39178bd6f95bf36aa2a73da5291","2c8622aae2efd1de9f5a8a26c990b99df596603a0ed5e034383ca08701f8ec0a","067fdccc90918e623bab5feb6ebb137c82b228d3456a71d3d0abdbffc49500bb","58f3fe894565fce95cfc8fde600ab757f7d2c032b05b2050c082c4952b503da4","a6d106fcc2d2f9ff62f5b57668941cba94f5894d9dc35397852aedc637432e64","d0ea8c0dc1395dfcb14e26751ecae89b9d180a6fc101c1aa46a3ebd1f7e3a0ca","16d78a79b39377d0b6779b1720427719413e985e2991fbe324bad147eb0e3cf9","e6a91af495ad69b06d4145fb4da0f917bf30a4f8f4e3bd26344a5d0b31cd5078","aefe5f5213976a6e1a954303ac2dd0d4da22a71534866b33b74b36648895c674","5c0b9fdcacbc5f6c7e42adacce6e7c857337ec5f04ec568fbc17abe1245d4212",{"version":"cc9dcad02ec8f84b2cdc7715e6caac16f5c1b18dc920c6d7126f9a03f6e62ce5","impliedFormat":99},"955feb842e5b466bcef37243968ba4317e84e615f64830bfed622ca054f866c2","70852390a03c6ad3c49dcfb64b5f30d15698515e7bea80203ea6e6571192571d","9f7d9ec09b982998c5c78f5e1112643c1109b9451f8cf2b9784d52621893d96b","dfec7cae1a6834401e513581eb88f656c5ca355a17c47eb7a2cea68465ae7b31","307c55320f1600db2eead8b4d678b838e86c4dafc2dbc648dab19850e44d15e4","9fa19adab483010cfa528b3c3f8edac84cde237fd655c02daad650c8e0a2eb73","a8705208ff20b4384245f5deab90aa925f5e6a465ce7cac3cdba61532031f81c","648c21d3954a054f58d006d5bd6c25abee93a57f9e3497e7085cb62bd86adb36","c06eb297d35accf37d71724f79d9cc20d581cd8fd4023640b486f9758fbcb80e","f792b33fd9dd58f4f2b3e735f4a95ab7a4d6e0c2d3a86c9b398638f30bbc84e6","05e9ec113665fe20c8b902ae2e9a8de9d1ee93381a4fc38271088621fdd52ecc","821b193c87a5a070878676cd2f53a24eab383af9b71e56f1c2d0792ff695623b","cf5b7d760347c819ee81ec6e02984b49704f8f9029c776b24f4927514c8f46f0","46bbd2c38b4b1c0af87b9768fd2d8bba068c03d0cc6b8b7cdf838e4710269cfa","00527c3be5d58354b73ed7ca2095d3f4ecc878fbf600679b0970de3dfcd42b5e","0d52928728f0b63b2a6d031253f7374ad28e0c6f8fcf3d6da232242823d22db4","7712e74444087dd09a7062a6989a8021e2d31eef45b2021287a5bc934b75de0b","f0fce3b31b05ce4a0174c1da66eef03040b4bd612b8eac5def88c99d6e429756","622d4c787a4e5a3daa5ee9e9285c01e0d5a9f078320a3505544ab21142346ae2","7ff873a20934964b9301dbe2603fc2927f3a55ce5e06095dfe678eb807c12b5e","1d7510c5aa7897fc21f5b27108e1b22f4915595d49ceeded10af253bdc2065ac","f34866f5f13f49f377a1cf1c5370d34dfdc780a7fd9dad985bdb83db98061559","ffc175bfecdf07ddc1407972a3159b9250439258c2e1e307cad1b6c6dbb5e552","6b77047764cfbcb71427be450a142e4cfb9f75de73ac500f7e58f226d4d77cba","6bb09125f36547d09f44bc027702b43f6b71e566146f091529577fca57e28f8f","331fb509f7e3a78c3162e0c34153de12112e641f6117dfad68679ba74053847f","c37faf6280e64a53aaf3350b11b3c2673af2e684de44103962c3a134b238d112","1cc19398cebbcda80c612f0989bd1dc124097914402fa315fd2e2595b69812d9","a2ad16cf579b2774dcdd946e6d2209abfb7e7b364c0040cfaa4dd254941464c7","ea678ea24c9140df53b5cdbef2263ab66404adc008445ca32ad042eec50b5c3a","7ec4884c1e3741a96ef04f296cfe685804b190dd67291ecc8e2e2f83c51e5353",{"version":"ca7238105e4c59f69c399229432e9954ea683d21c49e12a4e7324c24d8ab0439","signature":"a3e57b806b658085c5486de104af51c9c66ae7cfa17058d9226ffc45919e1f5c"},{"version":"8f93b67cd47b7b4364eb949d710c57511a6405394b7e8677e36f4183a2c5594f","signature":"11eb9418df601a8fdc8c8dbd61290c6bd95d6fb6fcbef4d47cb6b391103e8267"},{"version":"c6488899c240575a2e198d3a38a88007dde7d27c7f81fe019a05d9669ba0778b","signature":"929d1d089bcd8836f690d1bf01f628e0d046ddecfd6b86fd3831777c140a3f6a"},{"version":"98d253793734bce8152bf1821b1c06639ad1f67b150c3f19661fb4513bed21c1","signature":"3dc9f1f2ba0bbee0214868ec48b7384bea79c8bfe933c0f6eecc5eba6e731d8d"},{"version":"d1eb3ed96a321360782e0bcda421f2b33b2fd8aab39b2ade3dc4c0f190d41eb2","signature":"ececeebfe140a9b3d24b277202de06a23139a8c966746b32969c1c7f657ee1fc"},{"version":"91a15d75f3c0ce9e0ff54d659e430e8dfb53ec8aaa3a63d3570d2435716ac2c7","signature":"defff9461fd8f4fc95856e13adc3c4b2e71c3aa3024941a9247ea3ec37b9a224"},{"version":"54421e49b8a474de50bcc741d8d6d4b51ea4534bfa5d43acde4b08107bbf5a84","signature":"3aae238cf7a3de572b35d098a2d123901a4a036a7dd7abde653b9e0c27a8e266"},"a1ff5d9dc80b3a93ff42e9964991218df28d2320ab19be6540b280fb7a8daba5",{"version":"e9b48596baefe465d46567a4beccd564035024a154d99f54c7fed02380707333","impliedFormat":1},"3d5497e64cf809af72c4573acb7fc6fc020bf1d6012b5d415abc4e321c2749a0","f9fd48a4839e5ca39fb1f7ba852dc47b30137355f4beed85d6c31f5d2b950640","67d1c6798e047203b36d17aadf8bb068765d6f1405f4283f5b417208e94a9031","0e3379c229196c273c4848fae0ac4cc842c81705cfc00ca664573768d9eb668a","f06726b51228d291312c9604b38424ab2dc0ca2a8aaf9c816ef98a842d2a6940",{"version":"d7f7f9ee5e8abf3934f4f681f01b7fa054611135aba18bcc237e133f72dfb929","signature":"d7799769a51e005e45a5aaa7264990b39f99f984a9290d63fc9a2d5abd86a507"},{"version":"b84ca472fd5a1df9b2d6ba777c173f7e3a4a4f568853c31392cea429f21cfd4a","signature":"733c413235a136bd9dc2144d94b8aaee525137338b3d9c79e07306beaa8f7c3c"},{"version":"0c383c3b816320cca1cadc7ea736168a4f77dff135ad24267af6d640f49a1e91","signature":"0d6eba96a0fe7cc03f6588142a7b17ff1d2e5dfc9304e09785d99347067c3cfa"},{"version":"255226c46391dac2ac9fcb4b6df4cfc533991207d7daa67c88e639bb719d0ed8","signature":"0f0787b0be75b2e07e977bfecd859c8295bf1af3081e24ed837acd8aa60a17df"},{"version":"0fe6f7036b78d110de24daa86da6465eeb42175fa885c5b734cf8bd0cae65166","signature":"d14b517c466f15d69f37007a1d5d85b1b00d84fb6919bcded74d5357f66015f7"},{"version":"e81bfbc3929ad0efe8d63a3669709ca75c1caa40ab7ad5f2a26739c1b4ac1e30","signature":"dafd6781dfa01b5455836291323c58acc9db543605b87b593348973d1f220745"},{"version":"69f984851e3631d493e4646afa518ed6de32ed4181d6e38eca205fbe06cbcd0a","signature":"bae403c3ec372d22e441a7114a84484665ee7f32ce150fb8a5f217591feae063"},{"version":"d499912d83e8f458b2ddbd62129f630f12e32f7b151f913192b6f66fc84b39ba","signature":"744f10cb9cc4221488ceeff87e5b2d13e940a1d033fdba139dc8d5b7feb25935"},{"version":"d6bf5e51f0d00c82b0cfcf5f7670388f06742e3d0ef77d198a8a3257f6f2d4d0","signature":"b701c6d8746fdbdec777b76d1dd6d7348c058608175746b4d1039aa37597b0e2"},{"version":"bed842d2b4a1e707f7b5f60a47c0517b6ce9c58b052a8f93c178becd854cc90c","signature":"6ea60168b0cbacd112c0b64be4589e4491593dbacb6f5319b900cf94aa5ea9b2"}],"root":[[128,134],[142,151]],"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},"referencedMap":[[79,1],[80,2],[83,3],[77,4],[82,5],[78,5],[134,6],[145,7],[150,8],[148,9],[130,10],[151,11],[143,12],[144,13],[128,14],[149,15],[146,15],[129,16],[147,14],[133,17],[131,18],[132,18],[142,19],[85,20],[87,21],[86,22],[109,23],[89,24],[127,25],[92,26],[95,26],[124,27],[123,28],[108,29],[100,30],[103,31],[101,32],[106,33],[105,34],[104,35],[121,36],[116,37],[99,38],[117,39],[115,40],[112,41],[97,42],[110,43],[111,42],[119,44],[118,45],[122,46],[120,47],[113,48],[114,38],[98,49],[140,50],[137,51],[141,52]],"latestChangedDtsFile":"./esm/index.d.ts","version":"5.6.2"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/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/index.d.ts","../../typescript/dist/cjs/bcs/types.d.ts","../../typescript/dist/cjs/bcs/bcs.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","../../../node_modules/.pnpm/valibot@0.36.0/node_modules/valibot/dist/index.d.ts","../../typescript/dist/cjs/transactions/data/internal.d.ts","../../typescript/dist/cjs/transactions/serializer.d.ts","../../typescript/dist/cjs/transactions/Inputs.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/cryptography/keypair.d.ts","../../typescript/dist/cjs/multisig/signer.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/index.d.ts","../../typescript/dist/cjs/client/client.d.ts","../../typescript/dist/cjs/transactions/data/v1.d.ts","../../typescript/dist/cjs/transactions/data/v2.d.ts","../../typescript/dist/cjs/transactions/TransactionData.d.ts","../../typescript/dist/cjs/transactions/json-rpc-resolver.d.ts","../../typescript/dist/cjs/transactions/pure.d.ts","../../typescript/dist/cjs/transactions/Transaction.d.ts","../../typescript/dist/cjs/transactions/Commands.d.ts","../../typescript/dist/cjs/transactions/ObjectCache.d.ts","../../typescript/dist/cjs/transactions/executor/serial.d.ts","../../typescript/dist/cjs/transactions/executor/parallel.d.ts","../../typescript/dist/cjs/transactions/intents/CoinWithBalance.d.ts","../../typescript/dist/cjs/transactions/Arguments.d.ts","../../typescript/dist/cjs/transactions/index.d.ts","../../typescript/dist/cjs/client/types/params.d.ts","../../typescript/dist/cjs/client/types/index.d.ts","../../typescript/dist/cjs/client/errors.d.ts","../../typescript/dist/cjs/client/apps-backend.d.ts","../../typescript/dist/cjs/client/index.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/iota-types.d.ts","../../typescript/dist/cjs/utils/constants.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"],"fileIdsList":[[76,78],[77,79],[74,75,76,77,78,79,80,81,82],[79],[77],[87,133],[127,130,133,140,141],[122,128,133,139,142,144,146],[122,133,142,143,144],[127,129,133],[130,133,139,142,145,147],[127,133,138,139],[127,133,134,138,139],[87,122,133],[122,133],[128,133],[122,127,130,131,132],[122,127,133],[127,133,134,138],[83,84],[83,84,85,86],[84],[89,108,122,124],[88],[89,90,109,124,125,126],[91],[91,92,93,94,95,123],[91,122],[100,101,102,103,106,107],[87],[100,101,102],[100],[101,102,105],[101,102,103,104],[105,108],[83,114,115],[96,97,115],[83,97],[87,97,113],[83,84,96,97,99,108,113,114,116,127],[96,97,110,111],[83,96],[83,84,96,97],[108,115,117,127],[87,103,115,117,127],[97,98,99,110,111,112,113,115,116,117,118,119,120,121],[115],[109,112],[83,97,127],[83,135,136,137]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"b304a0dbc45734f46afbc75f40510b68f8c8575ef0b5cb8cd3e9b1e91bf1e169","b0968fa9dabd4a0a1dd69a53f2c3f5a458d71e6374bd80139c3616d839171c65","ec95aac5334a7f581ca3703334d605fd099255c4e7ae6cc0f758a8a61bd2583d","d61c470a7d25c7a76a24efa4a807cd97ce79ae96914ce714ccb344be42b863b0","74827b76ab292352d93bff9779c439544b506f788313a6ba42a8073855f423ba","26ce678dd4402fe0fa7c330d55133bf28a3486c33acd09d7e6be1356f384ac69","7db9cc70159ae1bc91216702cfd5c88d568d64a2e346467ce414b54d90685d9b","da0d6e82a836d320b4aedffcdbeda8444263533483ec4fc36a188da9995beee8","877a5f022af5433e1e2d9aeecfb92e35d10635812cec615c4b64fc16234201c7","786050b4d927585ecd2eee27d200fecfd7c3292575789b2abbac66b89f5c0d7c","9bc7ff1f617ad7438b9ec0cd3eed65b3f9f65e6bf6853fa62d1a5eb5b850ceba","a1b105aca255cc6a4116f01b011dd22cc22b9fc7e6bbb36f05bea47cf33c55f9","a973fbd4daab0a1653b96ffa382f8660554fc39178bd6f95bf36aa2a73da5291","b32d90b631b548832e7d359a461a1500c84fc96b20b4987208e119be07c2ecc3","067fdccc90918e623bab5feb6ebb137c82b228d3456a71d3d0abdbffc49500bb","58f3fe894565fce95cfc8fde600ab757f7d2c032b05b2050c082c4952b503da4","a6d106fcc2d2f9ff62f5b57668941cba94f5894d9dc35397852aedc637432e64","158c610c9f66e94439c50da2fdf32ff8d501d73b6d4ab239e2460dfb3e1d0928","16d78a79b39377d0b6779b1720427719413e985e2991fbe324bad147eb0e3cf9","e6a91af495ad69b06d4145fb4da0f917bf30a4f8f4e3bd26344a5d0b31cd5078","aefe5f5213976a6e1a954303ac2dd0d4da22a71534866b33b74b36648895c674","5c0b9fdcacbc5f6c7e42adacce6e7c857337ec5f04ec568fbc17abe1245d4212",{"version":"cc9dcad02ec8f84b2cdc7715e6caac16f5c1b18dc920c6d7126f9a03f6e62ce5","impliedFormat":99},"955feb842e5b466bcef37243968ba4317e84e615f64830bfed622ca054f866c2","70852390a03c6ad3c49dcfb64b5f30d15698515e7bea80203ea6e6571192571d","9f7d9ec09b982998c5c78f5e1112643c1109b9451f8cf2b9784d52621893d96b","dfec7cae1a6834401e513581eb88f656c5ca355a17c47eb7a2cea68465ae7b31","307c55320f1600db2eead8b4d678b838e86c4dafc2dbc648dab19850e44d15e4","9fa19adab483010cfa528b3c3f8edac84cde237fd655c02daad650c8e0a2eb73","a8705208ff20b4384245f5deab90aa925f5e6a465ce7cac3cdba61532031f81c","648c21d3954a054f58d006d5bd6c25abee93a57f9e3497e7085cb62bd86adb36","c06eb297d35accf37d71724f79d9cc20d581cd8fd4023640b486f9758fbcb80e","f792b33fd9dd58f4f2b3e735f4a95ab7a4d6e0c2d3a86c9b398638f30bbc84e6","05e9ec113665fe20c8b902ae2e9a8de9d1ee93381a4fc38271088621fdd52ecc","821b193c87a5a070878676cd2f53a24eab383af9b71e56f1c2d0792ff695623b","cf5b7d760347c819ee81ec6e02984b49704f8f9029c776b24f4927514c8f46f0","46bbd2c38b4b1c0af87b9768fd2d8bba068c03d0cc6b8b7cdf838e4710269cfa","00527c3be5d58354b73ed7ca2095d3f4ecc878fbf600679b0970de3dfcd42b5e","0d52928728f0b63b2a6d031253f7374ad28e0c6f8fcf3d6da232242823d22db4","7712e74444087dd09a7062a6989a8021e2d31eef45b2021287a5bc934b75de0b","f0fce3b31b05ce4a0174c1da66eef03040b4bd612b8eac5def88c99d6e429756","dd27a91ad2fec2571fa511435347045a47f3e17c65a4cbf799690ae8745e203c","7ff873a20934964b9301dbe2603fc2927f3a55ce5e06095dfe678eb807c12b5e","1d7510c5aa7897fc21f5b27108e1b22f4915595d49ceeded10af253bdc2065ac","60e67ffb009ba60e55c5ba318ebac4fdbc94b707e3b8086b7b31009bc15fc3af","54c890130a8ef9dc2cc6f97c5b50c53dd519bdfcd3181f13c7bc1dec77eb43a1","6b77047764cfbcb71427be450a142e4cfb9f75de73ac500f7e58f226d4d77cba","5f36bec69b18dd6bde6805a16479f847764b6e1d1d379acc1f2b427b3a939961","331fb509f7e3a78c3162e0c34153de12112e641f6117dfad68679ba74053847f","e6b0eba6408d31545024d37536d30f8032387305899637baad2b29e003a494d5","1cc19398cebbcda80c612f0989bd1dc124097914402fa315fd2e2595b69812d9","a2ad16cf579b2774dcdd946e6d2209abfb7e7b364c0040cfaa4dd254941464c7","ea678ea24c9140df53b5cdbef2263ab66404adc008445ca32ad042eec50b5c3a","7ec4884c1e3741a96ef04f296cfe685804b190dd67291ecc8e2e2f83c51e5353",{"version":"ca7238105e4c59f69c399229432e9954ea683d21c49e12a4e7324c24d8ab0439","signature":"a3e57b806b658085c5486de104af51c9c66ae7cfa17058d9226ffc45919e1f5c"},{"version":"8f93b67cd47b7b4364eb949d710c57511a6405394b7e8677e36f4183a2c5594f","signature":"11eb9418df601a8fdc8c8dbd61290c6bd95d6fb6fcbef4d47cb6b391103e8267"},{"version":"c6488899c240575a2e198d3a38a88007dde7d27c7f81fe019a05d9669ba0778b","signature":"929d1d089bcd8836f690d1bf01f628e0d046ddecfd6b86fd3831777c140a3f6a"},{"version":"98d253793734bce8152bf1821b1c06639ad1f67b150c3f19661fb4513bed21c1","signature":"3dc9f1f2ba0bbee0214868ec48b7384bea79c8bfe933c0f6eecc5eba6e731d8d"},{"version":"d1eb3ed96a321360782e0bcda421f2b33b2fd8aab39b2ade3dc4c0f190d41eb2","signature":"ececeebfe140a9b3d24b277202de06a23139a8c966746b32969c1c7f657ee1fc"},{"version":"91a15d75f3c0ce9e0ff54d659e430e8dfb53ec8aaa3a63d3570d2435716ac2c7","signature":"defff9461fd8f4fc95856e13adc3c4b2e71c3aa3024941a9247ea3ec37b9a224"},{"version":"54421e49b8a474de50bcc741d8d6d4b51ea4534bfa5d43acde4b08107bbf5a84","signature":"3aae238cf7a3de572b35d098a2d123901a4a036a7dd7abde653b9e0c27a8e266"},"a1ff5d9dc80b3a93ff42e9964991218df28d2320ab19be6540b280fb7a8daba5","f9fd48a4839e5ca39fb1f7ba852dc47b30137355f4beed85d6c31f5d2b950640","67d1c6798e047203b36d17aadf8bb068765d6f1405f4283f5b417208e94a9031","648728127fac19d2a78dc9630a89c9681782c137a37a982625bf552464e699c7",{"version":"62eebae66936f2ffdf6c25ca32f5261ea8aee34b23158d83bb8470abd36698b3","signature":"d7799769a51e005e45a5aaa7264990b39f99f984a9290d63fc9a2d5abd86a507"},{"version":"b84ca472fd5a1df9b2d6ba777c173f7e3a4a4f568853c31392cea429f21cfd4a","signature":"733c413235a136bd9dc2144d94b8aaee525137338b3d9c79e07306beaa8f7c3c"},{"version":"af982bf143888967f7a77a243d2fcd66b5e720d24ec79f06f4abc401056de4a9","signature":"0d6eba96a0fe7cc03f6588142a7b17ff1d2e5dfc9304e09785d99347067c3cfa"},{"version":"a58d9acaaf9f8e0c92546ade0028b82d7c60ecf5a543880feb8d79a28bc70047","signature":"3e25a0faf5463bd14430c3fa9757d0cc846b9c65438823485a098209e9d2cd3c"},{"version":"0fe6f7036b78d110de24daa86da6465eeb42175fa885c5b734cf8bd0cae65166","signature":"d14b517c466f15d69f37007a1d5d85b1b00d84fb6919bcded74d5357f66015f7"},{"version":"e81bfbc3929ad0efe8d63a3669709ca75c1caa40ab7ad5f2a26739c1b4ac1e30","signature":"dafd6781dfa01b5455836291323c58acc9db543605b87b593348973d1f220745"},{"version":"69f984851e3631d493e4646afa518ed6de32ed4181d6e38eca205fbe06cbcd0a","signature":"bae403c3ec372d22e441a7114a84484665ee7f32ce150fb8a5f217591feae063"},{"version":"d499912d83e8f458b2ddbd62129f630f12e32f7b151f913192b6f66fc84b39ba","signature":"744f10cb9cc4221488ceeff87e5b2d13e940a1d033fdba139dc8d5b7feb25935"},{"version":"d6bf5e51f0d00c82b0cfcf5f7670388f06742e3d0ef77d198a8a3257f6f2d4d0","signature":"b701c6d8746fdbdec777b76d1dd6d7348c058608175746b4d1039aa37597b0e2"},{"version":"bed842d2b4a1e707f7b5f60a47c0517b6ce9c58b052a8f93c178becd854cc90c","signature":"6ea60168b0cbacd112c0b64be4589e4491593dbacb6f5319b900cf94aa5ea9b2"}],"root":[[128,134],[139,148]],"options":{"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":2,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./cjs","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"referencedMap":[[79,1],[80,2],[83,3],[77,4],[82,5],[78,5],[134,6],[142,7],[147,8],[145,9],[130,10],[148,11],[140,12],[141,13],[128,14],[146,15],[143,15],[129,16],[144,14],[133,17],[131,18],[132,18],[139,19],[85,20],[87,21],[86,22],[109,23],[89,24],[127,25],[92,26],[95,26],[124,27],[123,28],[108,29],[100,30],[103,31],[101,32],[106,33],[105,34],[104,35],[121,36],[116,37],[99,38],[117,39],[115,40],[112,41],[97,42],[110,43],[111,42],[119,44],[118,45],[122,46],[120,47],[113,48],[114,38],[98,49],[138,50]],"latestChangedDtsFile":"./cjs/index.d.ts","version":"5.6.2"}
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.string.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.object.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.6.2/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/index.d.ts","../../typescript/dist/cjs/bcs/types.d.ts","../../typescript/dist/cjs/bcs/bcs.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","../../../node_modules/.pnpm/valibot@0.36.0/node_modules/valibot/dist/index.d.ts","../../typescript/dist/cjs/transactions/data/internal.d.ts","../../typescript/dist/cjs/transactions/serializer.d.ts","../../typescript/dist/cjs/transactions/Inputs.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/cryptography/keypair.d.ts","../../typescript/dist/cjs/multisig/signer.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/index.d.ts","../../typescript/dist/cjs/client/client.d.ts","../../typescript/dist/cjs/transactions/data/v1.d.ts","../../typescript/dist/cjs/transactions/data/v2.d.ts","../../typescript/dist/cjs/transactions/TransactionData.d.ts","../../typescript/dist/cjs/transactions/json-rpc-resolver.d.ts","../../typescript/dist/cjs/transactions/pure.d.ts","../../typescript/dist/cjs/transactions/Transaction.d.ts","../../typescript/dist/cjs/transactions/Commands.d.ts","../../typescript/dist/cjs/transactions/ObjectCache.d.ts","../../typescript/dist/cjs/transactions/executor/serial.d.ts","../../typescript/dist/cjs/transactions/executor/parallel.d.ts","../../typescript/dist/cjs/transactions/intents/CoinWithBalance.d.ts","../../typescript/dist/cjs/transactions/Arguments.d.ts","../../typescript/dist/cjs/transactions/index.d.ts","../../typescript/dist/cjs/client/types/params.d.ts","../../typescript/dist/cjs/client/types/index.d.ts","../../typescript/dist/cjs/client/errors.d.ts","../../typescript/dist/cjs/client/apps-backend.d.ts","../../typescript/dist/cjs/client/index.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","../../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.d.ts","../../typescript/dist/cjs/utils/formatBalance.d.ts","../../typescript/dist/cjs/utils/iota-types.d.ts","../../typescript/dist/cjs/utils/constants.d.ts","../../typescript/dist/cjs/utils/dynamic-fields.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"],"fileIdsList":[[76,78],[77,79],[74,75,76,77,78,79,80,81,82],[79],[77],[87,133],[127,130,133,143,144],[122,128,133,142,145,147,149],[122,133,145,146,147],[127,129,133],[130,133,142,145,148,150],[127,133,141,142],[127,133,134,141,142],[87,122,133],[122,133],[128,133],[122,127,130,131,132],[122,127,133],[127,133,134,141],[83,84],[83,84,85,86],[84],[89,108,122,124],[88],[89,90,109,124,125,126],[91],[91,92,93,94,95,123],[91,122],[100,101,102,103,106,107],[87],[100,101,102],[100],[101,102,105],[101,102,103,104],[105,108],[97,114,115],[96,97,115],[83,97],[87,97,113],[83,84,96,97,99,108,113,114,116,127],[96,97,110,111],[83,96],[83,84,96,97],[108,115,117,127],[87,103,115,117,127],[97,98,99,110,111,112,113,115,116,117,118,119,120,121],[115],[109,112],[83,97,127],[85],[136],[83,135,137,138,139,140]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"abee51ebffafd50c07d76be5848a34abfe4d791b5745ef1e5648718722fab924","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true,"impliedFormat":1},{"version":"15c1c3d7b2e46e0025417ed6d5f03f419e57e6751f87925ca19dc88297053fe6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d540251809289a05349b70ab5f4b7b99f922af66ab3c39ba56a475dcf95d5ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},"103755623868f6e96611ef2889da2a00da9ec7b8e5a52ff6220587d5c8c840fe","5a4ade0ac0a6f7c1fac6d3ef1a4820b24780ce145ba2424e3d18c01aa80d6636","ec95aac5334a7f581ca3703334d605fd099255c4e7ae6cc0f758a8a61bd2583d","d61c470a7d25c7a76a24efa4a807cd97ce79ae96914ce714ccb344be42b863b0","74827b76ab292352d93bff9779c439544b506f788313a6ba42a8073855f423ba","a1c8fd75ed7bb403050c7ab59b556b5e42469d2e6478618d1659e81f976ab39d","01d71fd8b804d5158945ec7dd5fcd5ee8a1bc0e0a5b40d5aa87075a8eb108802","1e44edfa0fc446181c1fa5921a07c6c049c9178f331cfeabcec6e9fc938ecd22","877a5f022af5433e1e2d9aeecfb92e35d10635812cec615c4b64fc16234201c7","4f378494ee1a3bc6be8064022450d42795dc4075da5051e3e50e6a91287eb25a","9bc7ff1f617ad7438b9ec0cd3eed65b3f9f65e6bf6853fa62d1a5eb5b850ceba","87d748f014c8529e4f12a324fe730aebbb68c202b8434fbb9259bcf3efb74d53","a973fbd4daab0a1653b96ffa382f8660554fc39178bd6f95bf36aa2a73da5291","2c8622aae2efd1de9f5a8a26c990b99df596603a0ed5e034383ca08701f8ec0a","067fdccc90918e623bab5feb6ebb137c82b228d3456a71d3d0abdbffc49500bb","58f3fe894565fce95cfc8fde600ab757f7d2c032b05b2050c082c4952b503da4","a6d106fcc2d2f9ff62f5b57668941cba94f5894d9dc35397852aedc637432e64","d0ea8c0dc1395dfcb14e26751ecae89b9d180a6fc101c1aa46a3ebd1f7e3a0ca","16d78a79b39377d0b6779b1720427719413e985e2991fbe324bad147eb0e3cf9","e6a91af495ad69b06d4145fb4da0f917bf30a4f8f4e3bd26344a5d0b31cd5078","aefe5f5213976a6e1a954303ac2dd0d4da22a71534866b33b74b36648895c674","5c0b9fdcacbc5f6c7e42adacce6e7c857337ec5f04ec568fbc17abe1245d4212",{"version":"cc9dcad02ec8f84b2cdc7715e6caac16f5c1b18dc920c6d7126f9a03f6e62ce5","impliedFormat":99},"955feb842e5b466bcef37243968ba4317e84e615f64830bfed622ca054f866c2","70852390a03c6ad3c49dcfb64b5f30d15698515e7bea80203ea6e6571192571d","9f7d9ec09b982998c5c78f5e1112643c1109b9451f8cf2b9784d52621893d96b","dfec7cae1a6834401e513581eb88f656c5ca355a17c47eb7a2cea68465ae7b31","307c55320f1600db2eead8b4d678b838e86c4dafc2dbc648dab19850e44d15e4","9fa19adab483010cfa528b3c3f8edac84cde237fd655c02daad650c8e0a2eb73","a8705208ff20b4384245f5deab90aa925f5e6a465ce7cac3cdba61532031f81c","648c21d3954a054f58d006d5bd6c25abee93a57f9e3497e7085cb62bd86adb36","c06eb297d35accf37d71724f79d9cc20d581cd8fd4023640b486f9758fbcb80e","f792b33fd9dd58f4f2b3e735f4a95ab7a4d6e0c2d3a86c9b398638f30bbc84e6","05e9ec113665fe20c8b902ae2e9a8de9d1ee93381a4fc38271088621fdd52ecc","821b193c87a5a070878676cd2f53a24eab383af9b71e56f1c2d0792ff695623b","cf5b7d760347c819ee81ec6e02984b49704f8f9029c776b24f4927514c8f46f0","46bbd2c38b4b1c0af87b9768fd2d8bba068c03d0cc6b8b7cdf838e4710269cfa","00527c3be5d58354b73ed7ca2095d3f4ecc878fbf600679b0970de3dfcd42b5e","0d52928728f0b63b2a6d031253f7374ad28e0c6f8fcf3d6da232242823d22db4","7712e74444087dd09a7062a6989a8021e2d31eef45b2021287a5bc934b75de0b","f0fce3b31b05ce4a0174c1da66eef03040b4bd612b8eac5def88c99d6e429756","622d4c787a4e5a3daa5ee9e9285c01e0d5a9f078320a3505544ab21142346ae2","7ff873a20934964b9301dbe2603fc2927f3a55ce5e06095dfe678eb807c12b5e","1d7510c5aa7897fc21f5b27108e1b22f4915595d49ceeded10af253bdc2065ac","f34866f5f13f49f377a1cf1c5370d34dfdc780a7fd9dad985bdb83db98061559","ffc175bfecdf07ddc1407972a3159b9250439258c2e1e307cad1b6c6dbb5e552","6b77047764cfbcb71427be450a142e4cfb9f75de73ac500f7e58f226d4d77cba","6bb09125f36547d09f44bc027702b43f6b71e566146f091529577fca57e28f8f","331fb509f7e3a78c3162e0c34153de12112e641f6117dfad68679ba74053847f","c37faf6280e64a53aaf3350b11b3c2673af2e684de44103962c3a134b238d112","1cc19398cebbcda80c612f0989bd1dc124097914402fa315fd2e2595b69812d9","a2ad16cf579b2774dcdd946e6d2209abfb7e7b364c0040cfaa4dd254941464c7","ea678ea24c9140df53b5cdbef2263ab66404adc008445ca32ad042eec50b5c3a","7ec4884c1e3741a96ef04f296cfe685804b190dd67291ecc8e2e2f83c51e5353",{"version":"ca7238105e4c59f69c399229432e9954ea683d21c49e12a4e7324c24d8ab0439","signature":"a3e57b806b658085c5486de104af51c9c66ae7cfa17058d9226ffc45919e1f5c"},{"version":"8f93b67cd47b7b4364eb949d710c57511a6405394b7e8677e36f4183a2c5594f","signature":"11eb9418df601a8fdc8c8dbd61290c6bd95d6fb6fcbef4d47cb6b391103e8267"},{"version":"c6488899c240575a2e198d3a38a88007dde7d27c7f81fe019a05d9669ba0778b","signature":"929d1d089bcd8836f690d1bf01f628e0d046ddecfd6b86fd3831777c140a3f6a"},{"version":"98d253793734bce8152bf1821b1c06639ad1f67b150c3f19661fb4513bed21c1","signature":"3dc9f1f2ba0bbee0214868ec48b7384bea79c8bfe933c0f6eecc5eba6e731d8d"},{"version":"d1eb3ed96a321360782e0bcda421f2b33b2fd8aab39b2ade3dc4c0f190d41eb2","signature":"ececeebfe140a9b3d24b277202de06a23139a8c966746b32969c1c7f657ee1fc"},{"version":"91a15d75f3c0ce9e0ff54d659e430e8dfb53ec8aaa3a63d3570d2435716ac2c7","signature":"defff9461fd8f4fc95856e13adc3c4b2e71c3aa3024941a9247ea3ec37b9a224"},{"version":"54421e49b8a474de50bcc741d8d6d4b51ea4534bfa5d43acde4b08107bbf5a84","signature":"3aae238cf7a3de572b35d098a2d123901a4a036a7dd7abde653b9e0c27a8e266"},"a1ff5d9dc80b3a93ff42e9964991218df28d2320ab19be6540b280fb7a8daba5",{"version":"e9b48596baefe465d46567a4beccd564035024a154d99f54c7fed02380707333","impliedFormat":1},"3d5497e64cf809af72c4573acb7fc6fc020bf1d6012b5d415abc4e321c2749a0","f9fd48a4839e5ca39fb1f7ba852dc47b30137355f4beed85d6c31f5d2b950640","67d1c6798e047203b36d17aadf8bb068765d6f1405f4283f5b417208e94a9031","0e3379c229196c273c4848fae0ac4cc842c81705cfc00ca664573768d9eb668a","f06726b51228d291312c9604b38424ab2dc0ca2a8aaf9c816ef98a842d2a6940",{"version":"d7f7f9ee5e8abf3934f4f681f01b7fa054611135aba18bcc237e133f72dfb929","signature":"d7799769a51e005e45a5aaa7264990b39f99f984a9290d63fc9a2d5abd86a507"},{"version":"b84ca472fd5a1df9b2d6ba777c173f7e3a4a4f568853c31392cea429f21cfd4a","signature":"733c413235a136bd9dc2144d94b8aaee525137338b3d9c79e07306beaa8f7c3c"},{"version":"0c383c3b816320cca1cadc7ea736168a4f77dff135ad24267af6d640f49a1e91","signature":"0d6eba96a0fe7cc03f6588142a7b17ff1d2e5dfc9304e09785d99347067c3cfa"},{"version":"255226c46391dac2ac9fcb4b6df4cfc533991207d7daa67c88e639bb719d0ed8","signature":"0f0787b0be75b2e07e977bfecd859c8295bf1af3081e24ed837acd8aa60a17df"},{"version":"0fe6f7036b78d110de24daa86da6465eeb42175fa885c5b734cf8bd0cae65166","signature":"d14b517c466f15d69f37007a1d5d85b1b00d84fb6919bcded74d5357f66015f7"},{"version":"e81bfbc3929ad0efe8d63a3669709ca75c1caa40ab7ad5f2a26739c1b4ac1e30","signature":"dafd6781dfa01b5455836291323c58acc9db543605b87b593348973d1f220745"},{"version":"69f984851e3631d493e4646afa518ed6de32ed4181d6e38eca205fbe06cbcd0a","signature":"bae403c3ec372d22e441a7114a84484665ee7f32ce150fb8a5f217591feae063"},{"version":"d499912d83e8f458b2ddbd62129f630f12e32f7b151f913192b6f66fc84b39ba","signature":"744f10cb9cc4221488ceeff87e5b2d13e940a1d033fdba139dc8d5b7feb25935"},{"version":"d6bf5e51f0d00c82b0cfcf5f7670388f06742e3d0ef77d198a8a3257f6f2d4d0","signature":"b701c6d8746fdbdec777b76d1dd6d7348c058608175746b4d1039aa37597b0e2"},{"version":"bed842d2b4a1e707f7b5f60a47c0517b6ce9c58b052a8f93c178becd854cc90c","signature":"6ea60168b0cbacd112c0b64be4589e4491593dbacb6f5319b900cf94aa5ea9b2"}],"root":[[128,134],[142,151]],"options":{"composite":true,"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":2,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./cjs","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"referencedMap":[[79,1],[80,2],[83,3],[77,4],[82,5],[78,5],[134,6],[145,7],[150,8],[148,9],[130,10],[151,11],[143,12],[144,13],[128,14],[149,15],[146,15],[129,16],[147,14],[133,17],[131,18],[132,18],[142,19],[85,20],[87,21],[86,22],[109,23],[89,24],[127,25],[92,26],[95,26],[124,27],[123,28],[108,29],[100,30],[103,31],[101,32],[106,33],[105,34],[104,35],[121,36],[116,37],[99,38],[117,39],[115,40],[112,41],[97,42],[110,43],[111,42],[119,44],[118,45],[122,46],[120,47],[113,48],[114,38],[98,49],[140,50],[137,51],[141,52]],"latestChangedDtsFile":"./cjs/index.d.ts","version":"5.6.2"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iota/kiosk",
|
|
3
3
|
"author": "IOTA Foundation <info@iota.org>",
|
|
4
4
|
"description": "IOTA Kiosk library",
|
|
5
|
-
"version": "0.4.
|
|
5
|
+
"version": "0.4.6",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"main": "./dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"dotenv": "^16.4.5",
|
|
28
|
-
"@iota/iota-sdk": "1.
|
|
28
|
+
"@iota/iota-sdk": "1.5.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"cross-env": "^7.0.3",
|
|
@@ -74,8 +74,8 @@ export class KioskClient {
|
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Fetches the kiosk contents.
|
|
77
|
-
* @param
|
|
78
|
-
* @param options
|
|
77
|
+
* @param id The ID of the kiosk to fetch.
|
|
78
|
+
* @param options Optional to control the fetch behavior.
|
|
79
79
|
* @returns
|
|
80
80
|
*/
|
|
81
81
|
async getKiosk({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
|
|
5
5
|
import type { IotaClient } from '@iota/iota-sdk/client';
|
|
6
|
-
import {
|
|
6
|
+
import { fromBase64, isValidIotaAddress } from '@iota/iota-sdk/utils';
|
|
7
7
|
|
|
8
8
|
import '../bcs.js';
|
|
9
9
|
|
|
@@ -53,7 +53,7 @@ export async function queryTransferPolicy(
|
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
const parsed = TransferPolicyType.parse(
|
|
56
|
+
const parsed = TransferPolicyType.parse(fromBase64(policy.bcs.bcsBytes));
|
|
57
57
|
|
|
58
58
|
return {
|
|
59
59
|
id: policy?.objectId,
|
package/src/utils.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type {
|
|
|
12
12
|
IotaObjectResponse,
|
|
13
13
|
} from '@iota/iota-sdk/client';
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
fromBase64,
|
|
16
16
|
normalizeStructTag,
|
|
17
17
|
normalizeIotaAddress,
|
|
18
18
|
parseStructTag,
|
|
@@ -35,7 +35,7 @@ export async function getKioskObject(client: IotaClient, id: string): Promise<Ki
|
|
|
35
35
|
throw new Error(`Invalid kiosk query: ${id}, expected object, got package`);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
return KioskType.parse(
|
|
38
|
+
return KioskType.parse(fromBase64(queryRes.data.bcs!.bcsBytes));
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// helper to extract kiosk data from dynamic fields.
|