@haneullabs/haneulns 1.0.2 → 1.0.3

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.
@@ -11,7 +11,7 @@ import { isValidHaneulNSName, normalizeHaneulNSName, HANEUL_CLOCK_OBJECT_ID } fr
11
11
 
12
12
  import { ALLOWED_METADATA, MAX_U64 } from './constants.js';
13
13
  import { isNestedSubName, isSubName, zeroCoin } from './helpers.js';
14
- import type { SuinsClient } from './haneulns-client.js';
14
+ import type { HaneulnsClient } from './haneulns-client.js';
15
15
  import type { DiscountInfo, ReceiptParams, RegistrationParams, RenewalParams } from './types.js';
16
16
 
17
17
  import * as payment from './contracts/haneulns/payment.js';
@@ -21,11 +21,11 @@ import * as couponHouse from './contracts/haneulns_coupons/coupon_house.js';
21
21
  import * as discounts from './contracts/haneulns_discounts/discounts.js';
22
22
  import * as freeClaims from './contracts/haneulns_discounts/free_claims.js';
23
23
 
24
- export class SuinsTransaction {
25
- haneulnsClient: SuinsClient;
24
+ export class HaneulnsTransaction {
25
+ haneulnsClient: HaneulnsClient;
26
26
  transaction: Transaction;
27
27
 
28
- constructor(client: SuinsClient, transaction: Transaction) {
28
+ constructor(client: HaneulnsClient, transaction: Transaction) {
29
29
  this.haneulnsClient = client;
30
30
  this.transaction = transaction;
31
31
  }
@@ -349,7 +349,7 @@ export class SuinsTransaction {
349
349
 
350
350
  /**
351
351
  * Builds the PTB to create a leaf subdomain.
352
- * Parent can be a `SuinsRegistration` or a `SubDomainRegistration` object.
352
+ * Parent can be a `HaneulnsRegistration` or a `SubDomainRegistration` object.
353
353
  * Can be passed in as an ID or a TransactionArgument.
354
354
  */
355
355
  createLeafSubName({
package/src/index.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // Copyright (c) Mysten Labs, Inc.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- export { haneulns, SuinsClient, type SuinsExtensionOptions } from './haneulns-client.js';
4
- export { SuinsTransaction } from './haneulns-transaction.js';
5
- export type { SuinsClientConfig, PackageInfo } from './types.js';
3
+ export { haneulns, HaneulnsClient, type HaneulnsExtensionOptions } from './haneulns-client.js';
4
+ export { HaneulnsTransaction } from './haneulns-transaction.js';
5
+ export type { HaneulnsClientConfig, PackageInfo } from './types.js';
6
6
  export { ALLOWED_METADATA, mainPackage } from './constants.js';
7
7
  export {
8
8
  isSubName,
package/src/types.ts CHANGED
@@ -98,12 +98,12 @@ export type ReceiptParams = {
98
98
  priceInfoObjectId?: string | null;
99
99
  };
100
100
 
101
- export type SuinsClientConfig = {
101
+ export type HaneulnsClientConfig = {
102
102
  client: ClientWithCoreApi;
103
103
  network?: HaneulClientTypes.Network;
104
104
  packageInfo?: PackageInfo;
105
105
  };
106
106
 
107
- export type SuinsPriceList = Map<[number, number], number>;
107
+ export type HaneulnsPriceList = Map<[number, number], number>;
108
108
 
109
109
  export type CoinTypeDiscount = Map<string, number>;