@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.
- package/dist/constants.d.mts +0 -1
- package/dist/constants.d.mts.map +1 -1
- package/dist/contracts/haneulns/haneulns.mjs +2 -2
- package/dist/contracts/haneulns/haneulns.mjs.map +1 -1
- package/dist/contracts/haneulns/name_record.mjs.map +1 -1
- package/dist/contracts/haneulns_coupons/coupon_house.mjs.map +1 -1
- package/dist/haneulns-client.d.mts +10 -10
- package/dist/haneulns-client.d.mts.map +1 -1
- package/dist/haneulns-client.mjs +8 -8
- package/dist/haneulns-client.mjs.map +1 -1
- package/dist/haneulns-transaction.d.mts +6 -6
- package/dist/haneulns-transaction.d.mts.map +1 -1
- package/dist/haneulns-transaction.mjs +3 -3
- package/dist/haneulns-transaction.mjs.map +1 -1
- package/dist/helpers.d.mts.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/types.d.mts.map +1 -1
- package/package.json +7 -7
- package/src/contracts/haneulns/auction.ts +2 -2
- package/src/contracts/haneulns/constants.ts +4 -4
- package/src/contracts/haneulns/haneulns.ts +2 -2
- package/src/contracts/haneulns/haneulns_registration.ts +11 -11
- package/src/contracts/haneulns/name_record.ts +2 -2
- package/src/contracts/haneulns/registry.ts +8 -8
- package/src/contracts/haneulns/subdomain_registration.ts +2 -2
- package/src/contracts/haneulns_coupons/coupon_house.ts +6 -6
- package/src/haneulns-client.ts +14 -14
- package/src/haneulns-transaction.ts +5 -5
- package/src/index.ts +3 -3
- package/src/types.ts +2 -2
|
@@ -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 {
|
|
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
|
|
25
|
-
haneulnsClient:
|
|
24
|
+
export class HaneulnsTransaction {
|
|
25
|
+
haneulnsClient: HaneulnsClient;
|
|
26
26
|
transaction: Transaction;
|
|
27
27
|
|
|
28
|
-
constructor(client:
|
|
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 `
|
|
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,
|
|
4
|
-
export {
|
|
5
|
-
export type {
|
|
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
|
|
101
|
+
export type HaneulnsClientConfig = {
|
|
102
102
|
client: ClientWithCoreApi;
|
|
103
103
|
network?: HaneulClientTypes.Network;
|
|
104
104
|
packageInfo?: PackageInfo;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
export type
|
|
107
|
+
export type HaneulnsPriceList = Map<[number, number], number>;
|
|
108
108
|
|
|
109
109
|
export type CoinTypeDiscount = Map<string, number>;
|