@@ -19,6 +19,9 @@ parent: Modules
1919- [ encoding] ( #encoding )
2020 - [ toCBORBytes] ( #tocborbytes )
2121 - [ toCBORHex] ( #tocborhex )
22+ - [ lookup] ( #lookup )
23+ - [ getAssetsByPolicyHex] ( #getassetsbypolicyhex )
24+ - [ getByHex] ( #getbyhex )
2225- [ model] ( #model )
2326 - [ Mint (class)] ( #mint-class )
2427 - [ toJSON (method)] ( #tojson-method )
@@ -42,11 +45,11 @@ parent: Modules
4245 - [ get] ( #get )
4346 - [ insert] ( #insert )
4447 - [ policyCount] ( #policycount )
48+ - [ removeAsset] ( #removeasset )
4549 - [ removePolicy] ( #removepolicy )
4650- [ utils] ( #utils )
4751 - [ AssetMap (type alias)] ( #assetmap-type-alias )
4852 - [ CDDLSchema] ( #cddlschema )
49- - [ removeAsset] ( #removeasset )
5053
5154---
5255
@@ -134,6 +137,41 @@ export declare const toCBORHex: (mint: Mint, options?: CBOR.CodecOptions) => str
134137
135138Added in v2.0.0
136139
140+ # lookup
141+
142+ ## getAssetsByPolicyHex
143+
144+ Get the asset map for a specific policy by hex string.
145+ Uses content-based equality (Equal.equals) to find matching PolicyId.
146+
147+ **Signature**
148+
149+ ` ` ` ts
150+ export declare const getAssetsByPolicyHex: (
151+ mint : Mint ,
152+ policyIdHex : string
153+ ) => Map <AssetName .AssetName , NonZeroInt64 .NonZeroInt64 > | undefined
154+ ` ` `
155+
156+ Added in v2.0.0
157+
158+ ## getByHex
159+
160+ Get an asset amount by policy ID hex and asset name hex strings.
161+ Convenience function for tests and lookups using hex strings.
162+
163+ **Signature**
164+
165+ ` ` ` ts
166+ export declare const getByHex: (
167+ mint : Mint ,
168+ policyIdHex : string ,
169+ assetNameHex : string
170+ ) => NonZeroInt64 .NonZeroInt64 | undefined
171+ ` ` `
172+
173+ Added in v2.0.0
174+
137175# model
138176
139177## Mint (class)
@@ -393,6 +431,7 @@ Added in v2.0.0
393431## get
394432
395433Get the amount for a specific policy and asset.
434+ Uses content-based equality (Equal.equals) to find matching PolicyId and AssetName.
396435
397436**Signature**
398437
@@ -409,6 +448,8 @@ Added in v2.0.0
409448## insert
410449
411450Add or update an asset in the Mint.
451+ Uses content-based equality (Equal.equals) to find matching PolicyId and AssetName
452+ since JavaScript Maps use reference equality by default.
412453
413454**Signature**
414455
@@ -435,9 +476,23 @@ export declare const policyCount: (mint: Mint) => number
435476
436477Added in v2.0.0
437478
438- ## removePolicy
479+ ## removeAsset
439480
440481Remove an asset from the Mint.
482+ Uses content-based equality (Equal.equals) to find matching PolicyId and AssetName.
483+
484+ **Signature**
485+
486+ ` ` ` ts
487+ export declare const removeAsset: (mint : Mint , policyId : PolicyId .PolicyId , assetName : AssetName .AssetName ) => Mint
488+ ` ` `
489+
490+ Added in v2.0.0
491+
492+ ## removePolicy
493+
494+ Remove a policy from the Mint.
495+ Uses content-based equality (Equal.equals) to find matching PolicyId.
441496
442497**Signature**
443498
@@ -467,11 +522,3 @@ export declare const CDDLSchema: Schema.MapFromSelf<
467522 Schema .MapFromSelf <typeof Schema .Uint8ArrayFromSelf , typeof Schema .BigIntFromSelf >
468523>
469524` ` `
470-
471- ## removeAsset
472-
473- **Signature**
474-
475- ` ` ` ts
476- export declare const removeAsset: (mint : Mint , policyId : PolicyId .PolicyId , assetName : AssetName .AssetName ) => Mint
477- ` ` `
0 commit comments