@hashgraphonline/standards-sdk 0.1.134 → 0.1.136
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/cjs/hcs-7/redis-cache.d.ts.map +1 -1
- package/dist/cjs/standards-sdk.cjs +2 -2
- package/dist/cjs/standards-sdk.cjs.map +1 -1
- package/dist/es/hcs-7/redis-cache.d.ts.map +1 -1
- package/dist/es/standards-sdk.es103.js +1 -1
- package/dist/es/standards-sdk.es104.js +5 -5
- package/dist/es/standards-sdk.es114.js +1 -1
- package/dist/es/standards-sdk.es115.js +1 -1
- package/dist/es/standards-sdk.es116.js +5 -5
- package/dist/es/standards-sdk.es118.js +1 -1
- package/dist/es/standards-sdk.es119.js +1 -1
- package/dist/es/standards-sdk.es12.js +1 -1
- package/dist/es/standards-sdk.es121.js +1 -1
- package/dist/es/standards-sdk.es129.js +138 -694
- package/dist/es/standards-sdk.es129.js.map +1 -1
- package/dist/es/standards-sdk.es13.js +1 -1
- package/dist/es/standards-sdk.es130.js +34 -12266
- package/dist/es/standards-sdk.es130.js.map +1 -1
- package/dist/es/standards-sdk.es131.js +694 -138
- package/dist/es/standards-sdk.es131.js.map +1 -1
- package/dist/es/standards-sdk.es132.js +12265 -33
- package/dist/es/standards-sdk.es132.js.map +1 -1
- package/dist/es/standards-sdk.es133.js +13 -168
- package/dist/es/standards-sdk.es133.js.map +1 -1
- package/dist/es/standards-sdk.es134.js +55 -321
- package/dist/es/standards-sdk.es134.js.map +1 -1
- package/dist/es/standards-sdk.es135.js +50 -332
- package/dist/es/standards-sdk.es135.js.map +1 -1
- package/dist/es/standards-sdk.es136.js +129 -410
- package/dist/es/standards-sdk.es136.js.map +1 -1
- package/dist/es/standards-sdk.es137.js +200 -209
- package/dist/es/standards-sdk.es137.js.map +1 -1
- package/dist/es/standards-sdk.es138.js +334 -64
- package/dist/es/standards-sdk.es138.js.map +1 -1
- package/dist/es/standards-sdk.es139.js +452 -55
- package/dist/es/standards-sdk.es139.js.map +1 -1
- package/dist/es/standards-sdk.es140.js +319 -52
- package/dist/es/standards-sdk.es140.js.map +1 -1
- package/dist/es/standards-sdk.es141.js +74 -15
- package/dist/es/standards-sdk.es141.js.map +1 -1
- package/dist/es/standards-sdk.es16.js +102 -27
- package/dist/es/standards-sdk.es16.js.map +1 -1
- package/dist/es/standards-sdk.es17.js +1 -1
- package/dist/es/standards-sdk.es19.js +4 -4
- package/dist/es/standards-sdk.es20.js +2 -2
- package/dist/es/standards-sdk.es23.js +1 -1
- package/dist/es/standards-sdk.es28.js +3 -3
- package/dist/es/standards-sdk.es31.js +1 -1
- package/dist/es/standards-sdk.es32.js +1 -1
- package/dist/es/standards-sdk.es36.js +2 -2
- package/dist/es/standards-sdk.es37.js +3 -3
- package/dist/es/standards-sdk.es38.js +1 -1
- package/dist/es/standards-sdk.es5.js +1 -1
- package/dist/es/standards-sdk.es54.js +1 -1
- package/dist/es/standards-sdk.es57.js +1 -1
- package/dist/es/standards-sdk.es59.js +1 -1
- package/dist/es/standards-sdk.es60.js +1 -1
- package/dist/es/standards-sdk.es61.js +2 -2
- package/dist/es/standards-sdk.es63.js +1 -1
- package/dist/es/standards-sdk.es65.js +1 -1
- package/dist/es/standards-sdk.es66.js +2 -2
- package/dist/es/standards-sdk.es69.js +2 -2
- package/dist/es/standards-sdk.es70.js +1 -1
- package/dist/es/standards-sdk.es72.js +1 -1
- package/dist/es/standards-sdk.es77.js +1 -1
- package/dist/es/standards-sdk.es78.js +1 -1
- package/dist/es/standards-sdk.es79.js +1 -1
- package/dist/es/standards-sdk.es8.js +1 -1
- package/dist/es/standards-sdk.es81.js +1 -1
- package/dist/es/standards-sdk.es85.js +1 -1
- package/dist/es/standards-sdk.es86.js +1 -1
- package/dist/es/standards-sdk.es91.js +1 -1
- package/dist/es/standards-sdk.es93.js +1 -1
- package/dist/es/standards-sdk.es95.js +1 -1
- package/dist/es/standards-sdk.es97.js +1 -1
- package/package.json +9 -5
|
@@ -1,43 +1,34 @@
|
|
|
1
|
-
import Redis from "ioredis";
|
|
2
1
|
import { Logger } from "./standards-sdk.es99.js";
|
|
3
2
|
class RedisCache {
|
|
4
3
|
constructor(config = {}) {
|
|
5
4
|
const {
|
|
6
|
-
host = "localhost",
|
|
7
|
-
port = 6379,
|
|
8
|
-
password,
|
|
9
|
-
db = 0,
|
|
10
|
-
keyPrefix = "",
|
|
5
|
+
host: host2 = "localhost",
|
|
6
|
+
port: port2 = 6379,
|
|
7
|
+
password: password2,
|
|
8
|
+
db: db2 = 0,
|
|
9
|
+
keyPrefix: keyPrefix2 = "",
|
|
11
10
|
tls = false,
|
|
12
11
|
connectTimeout = 5e3,
|
|
13
12
|
retryStrategy,
|
|
14
13
|
logLevel = "info"
|
|
15
14
|
} = config;
|
|
16
|
-
this.prefix =
|
|
15
|
+
this.prefix = keyPrefix2;
|
|
17
16
|
this.logger = Logger.getInstance({
|
|
18
17
|
level: logLevel,
|
|
19
18
|
module: "RedisCache"
|
|
20
19
|
});
|
|
21
|
-
this.client =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
maxRetriesPerRequest: 3
|
|
34
|
-
});
|
|
35
|
-
this.client.on("error", (error) => {
|
|
36
|
-
this.logger.error("Redis connection error:", error);
|
|
37
|
-
});
|
|
38
|
-
this.client.on("connect", () => {
|
|
39
|
-
this.logger.debug("Redis connected");
|
|
40
|
-
});
|
|
20
|
+
this.client = createRedisClient(
|
|
21
|
+
this.logger,
|
|
22
|
+
{
|
|
23
|
+
tls: tls ? {} : void 0,
|
|
24
|
+
connectTimeout,
|
|
25
|
+
retryStrategy: retryStrategy || ((times) => {
|
|
26
|
+
const delay = Math.min(times * 50, 2e3);
|
|
27
|
+
return delay;
|
|
28
|
+
}),
|
|
29
|
+
maxRetriesPerRequest: 3
|
|
30
|
+
}
|
|
31
|
+
);
|
|
41
32
|
}
|
|
42
33
|
getKey(key) {
|
|
43
34
|
return `${this.prefix}${key}`;
|
|
@@ -90,6 +81,90 @@ class RedisCache {
|
|
|
90
81
|
this.logger.setLogLevel(level);
|
|
91
82
|
}
|
|
92
83
|
}
|
|
84
|
+
function createRedisClient(logger, options, logConnectEvents) {
|
|
85
|
+
const Redis = getRedisConstructor();
|
|
86
|
+
if (!Redis) {
|
|
87
|
+
logger.warn(
|
|
88
|
+
"ioredis is not installed; RedisCache will use an in-memory cache instead"
|
|
89
|
+
);
|
|
90
|
+
return createInMemoryRedisClient();
|
|
91
|
+
}
|
|
92
|
+
const client = new Redis({
|
|
93
|
+
host,
|
|
94
|
+
port,
|
|
95
|
+
password,
|
|
96
|
+
db,
|
|
97
|
+
tls: options.tls,
|
|
98
|
+
keyPrefix,
|
|
99
|
+
connectTimeout: options.connectTimeout,
|
|
100
|
+
retryStrategy: options.retryStrategy,
|
|
101
|
+
maxRetriesPerRequest: options.maxRetriesPerRequest
|
|
102
|
+
});
|
|
103
|
+
{
|
|
104
|
+
client.on("error", (error) => {
|
|
105
|
+
logger.error("Redis connection error:", error);
|
|
106
|
+
});
|
|
107
|
+
client.on("connect", () => {
|
|
108
|
+
logger.debug("Redis connected");
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return client;
|
|
112
|
+
}
|
|
113
|
+
function getRedisConstructor() {
|
|
114
|
+
if (typeof require !== "function") {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
try {
|
|
118
|
+
const loaded = require("ioredis");
|
|
119
|
+
if (typeof loaded === "function") {
|
|
120
|
+
return loaded;
|
|
121
|
+
}
|
|
122
|
+
if (typeof loaded.default === "function") {
|
|
123
|
+
return loaded.default;
|
|
124
|
+
}
|
|
125
|
+
} catch {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
function createInMemoryRedisClient() {
|
|
131
|
+
const store = /* @__PURE__ */ new Map();
|
|
132
|
+
return {
|
|
133
|
+
async get(key) {
|
|
134
|
+
return store.get(key) ?? null;
|
|
135
|
+
},
|
|
136
|
+
async set(key, value) {
|
|
137
|
+
store.set(key, value);
|
|
138
|
+
return "OK";
|
|
139
|
+
},
|
|
140
|
+
async setex(key, _seconds, value) {
|
|
141
|
+
store.set(key, value);
|
|
142
|
+
return "OK";
|
|
143
|
+
},
|
|
144
|
+
async del(...keys) {
|
|
145
|
+
let deleted = 0;
|
|
146
|
+
for (const key of keys) {
|
|
147
|
+
if (store.delete(key)) {
|
|
148
|
+
deleted += 1;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return deleted;
|
|
152
|
+
},
|
|
153
|
+
async keys(pattern) {
|
|
154
|
+
if (pattern.endsWith("*")) {
|
|
155
|
+
const prefix = pattern.slice(0, -1);
|
|
156
|
+
return Array.from(store.keys()).filter((key) => key.startsWith(prefix));
|
|
157
|
+
}
|
|
158
|
+
return store.has(pattern) ? [pattern] : [];
|
|
159
|
+
},
|
|
160
|
+
async quit() {
|
|
161
|
+
store.clear();
|
|
162
|
+
},
|
|
163
|
+
on() {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
}
|
|
93
168
|
export {
|
|
94
169
|
RedisCache
|
|
95
170
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standards-sdk.es16.js","sources":["../../src/hcs-7/redis-cache.ts"],"sourcesContent":["import { EVMCache } from './evm-bridge';\nimport
|
|
1
|
+
{"version":3,"file":"standards-sdk.es16.js","sources":["../../src/hcs-7/redis-cache.ts"],"sourcesContent":["import { EVMCache } from './evm-bridge';\nimport { Logger, ILogger } from '../utils/logger';\n\ntype RedisOptions = {\n host: string;\n port: number;\n password?: string;\n db: number;\n tls?: Record<string, unknown>;\n keyPrefix?: string;\n connectTimeout: number;\n retryStrategy?: (times: number) => number | void;\n maxRetriesPerRequest: number;\n};\n\ntype RedisClient = {\n get(key: string): Promise<string | null>;\n set(key: string, value: string): Promise<string | null>;\n setex(key: string, seconds: number, value: string): Promise<string | null>;\n del(...keys: string[]): Promise<number>;\n keys(pattern: string): Promise<string[]>;\n quit(): Promise<void>;\n on(event: 'error' | 'connect', listener: (error?: Error) => void): void;\n};\n\ntype RedisConstructor = new (options: RedisOptions) => RedisClient;\n\ntype NodeRequire = (id: string) => unknown;\n\ndeclare const require: NodeRequire | undefined;\n\nexport interface RedisConfig {\n host?: string;\n port?: number;\n password?: string;\n db?: number;\n keyPrefix?: string;\n tls?: boolean;\n connectTimeout?: number;\n retryStrategy?: (times: number) => number | void;\n logLevel?: 'debug' | 'info' | 'warn' | 'error';\n}\n\nexport class RedisCache implements EVMCache {\n private client: RedisClient;\n private prefix: string;\n private logger: ILogger;\n\n constructor(config: RedisConfig = {}) {\n const {\n host = 'localhost',\n port = 6379,\n password,\n db = 0,\n keyPrefix = '',\n tls = false,\n connectTimeout = 5000,\n retryStrategy,\n logLevel = 'info',\n } = config;\n\n this.prefix = keyPrefix;\n this.logger = Logger.getInstance({\n level: logLevel,\n module: 'RedisCache',\n });\n\n this.client = createRedisClient(\n this.logger,\n {\n host,\n port,\n password,\n db,\n tls: tls ? {} : undefined,\n keyPrefix,\n connectTimeout,\n retryStrategy:\n retryStrategy ||\n (times => {\n const delay = Math.min(times * 50, 2000);\n return delay;\n }),\n maxRetriesPerRequest: 3,\n },\n true,\n );\n }\n\n private getKey(key: string): string {\n return `${this.prefix}${key}`;\n }\n\n async get(key: string): Promise<string | undefined> {\n try {\n const value = await this.client.get(this.getKey(key));\n return value || undefined;\n } catch (error: unknown) {\n this.logger.error('Redis get error:', error);\n throw error;\n }\n }\n\n async set(key: string, value: string, ttlSeconds?: number): Promise<void> {\n try {\n const fullKey = this.getKey(key);\n if (ttlSeconds) {\n await this.client.setex(fullKey, ttlSeconds, value);\n } else {\n await this.client.set(fullKey, value);\n }\n } catch (error: unknown) {\n this.logger.error('Redis set error:', error);\n throw error;\n }\n }\n\n async delete(key: string): Promise<void> {\n try {\n await this.client.del(this.getKey(key));\n } catch (error: unknown) {\n this.logger.error('Redis delete error:', error);\n throw error;\n }\n }\n\n async clear(): Promise<void> {\n try {\n const keys = await this.client.keys(`${this.prefix}*`);\n if (keys.length > 0) {\n await this.client.del(...keys);\n }\n } catch (error: unknown) {\n this.logger.error('Redis clear error:', error);\n throw error;\n }\n }\n\n async disconnect(): Promise<void> {\n await this.client.quit();\n }\n\n setLogLevel(level: 'debug' | 'info' | 'warn' | 'error'): void {\n this.logger.setLogLevel(level);\n }\n}\n\nfunction createRedisClient(\n logger: ILogger,\n options: RedisOptions,\n logConnectEvents: boolean,\n): RedisClient {\n const Redis = getRedisConstructor();\n\n if (!Redis) {\n logger.warn(\n 'ioredis is not installed; RedisCache will use an in-memory cache instead',\n );\n\n return createInMemoryRedisClient();\n }\n\n const client = new Redis({\n host,\n port,\n password,\n db,\n tls: options.tls,\n keyPrefix,\n connectTimeout: options.connectTimeout,\n retryStrategy: options.retryStrategy,\n maxRetriesPerRequest: options.maxRetriesPerRequest,\n });\n\n if (logConnectEvents) {\n client.on('error', (error: Error) => {\n logger.error('Redis connection error:', error);\n });\n\n client.on('connect', () => {\n logger.debug('Redis connected');\n });\n }\n\n return client;\n}\n\nfunction getRedisConstructor(): RedisConstructor | null {\n if (typeof require !== 'function') {\n return null;\n }\n\n try {\n const loaded = require('ioredis') as\n | RedisConstructor\n | { default: RedisConstructor };\n\n if (typeof (loaded as RedisConstructor) === 'function') {\n return loaded as RedisConstructor;\n }\n\n if (\n typeof (loaded as { default?: RedisConstructor }).default === 'function'\n ) {\n return (loaded as { default: RedisConstructor }).default;\n }\n } catch {\n return null;\n }\n\n return null;\n}\n\nfunction createInMemoryRedisClient(): RedisClient {\n const store = new Map<string, string>();\n\n return {\n async get(key: string): Promise<string | null> {\n return store.get(key) ?? null;\n },\n async set(key: string, value: string): Promise<string | null> {\n store.set(key, value);\n return 'OK';\n },\n async setex(\n key: string,\n _seconds: number,\n value: string,\n ): Promise<string | null> {\n store.set(key, value);\n return 'OK';\n },\n async del(...keys: string[]): Promise<number> {\n let deleted = 0;\n for (const key of keys) {\n if (store.delete(key)) {\n deleted += 1;\n }\n }\n return deleted;\n },\n async keys(pattern: string): Promise<string[]> {\n if (pattern.endsWith('*')) {\n const prefix = pattern.slice(0, -1);\n return Array.from(store.keys()).filter(key => key.startsWith(prefix));\n }\n return store.has(pattern) ? [pattern] : [];\n },\n async quit(): Promise<void> {\n store.clear();\n },\n on(): void {\n return;\n },\n };\n}\n"],"names":["host","port","password","db","keyPrefix"],"mappings":"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"}
|
|
@@ -13,7 +13,7 @@ import "viem/accounts";
|
|
|
13
13
|
import "viem/chains";
|
|
14
14
|
import "x402-axios";
|
|
15
15
|
import "x402/types";
|
|
16
|
-
import "./standards-sdk.
|
|
16
|
+
import "./standards-sdk.es131.js";
|
|
17
17
|
import "zod";
|
|
18
18
|
import { buildHcs10SubmitConnectionRequestTx, buildHcs10OutboundConnectionRequestRecordTx, buildHcs10OutboundConnectionCreatedRecordTx } from "./standards-sdk.es23.js";
|
|
19
19
|
import { HRLResolver } from "./standards-sdk.es103.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./standards-sdk.es2.js";
|
|
2
2
|
import { Client, PrivateKey, AccountCreateTransaction, Hbar, CustomFixedFee, AccountId, TokenId, KeyList, TopicMessageSubmitTransaction, Transaction, ScheduleCreateTransaction, Timestamp } from "@hashgraph/sdk";
|
|
3
3
|
import { AccountCreationError, TopicCreationError, ConnectionConfirmationError, PayloadSizeError } from "./standards-sdk.es18.js";
|
|
4
|
-
import { InscriptionSDK } from "./standards-sdk.
|
|
4
|
+
import { InscriptionSDK } from "./standards-sdk.es132.js";
|
|
5
5
|
import { Logger } from "./standards-sdk.es99.js";
|
|
6
6
|
import { accountIdsToExemptKeys } from "./standards-sdk.es101.js";
|
|
7
7
|
import { ProgressReporter } from "./standards-sdk.es102.js";
|
|
@@ -16,14 +16,14 @@ import "viem/accounts";
|
|
|
16
16
|
import "viem/chains";
|
|
17
17
|
import "x402-axios";
|
|
18
18
|
import "x402/types";
|
|
19
|
-
import "./standards-sdk.
|
|
19
|
+
import "./standards-sdk.es131.js";
|
|
20
20
|
import "zod";
|
|
21
21
|
import "buffer";
|
|
22
22
|
import "ethers";
|
|
23
23
|
import "./standards-sdk.es116.js";
|
|
24
24
|
import { detectKeyTypeFromString } from "./standards-sdk.es107.js";
|
|
25
25
|
import { getTopicId } from "./standards-sdk.es108.js";
|
|
26
|
-
import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.
|
|
26
|
+
import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.es129.js";
|
|
27
27
|
import { HCS10BaseClient, Hcs10MemoType } from "./standards-sdk.es17.js";
|
|
28
28
|
import * as mime from "mime-types";
|
|
29
29
|
import { AgentBuilder } from "./standards-sdk.es24.js";
|
|
@@ -31,7 +31,7 @@ import { InboundTopicType } from "./standards-sdk.es29.js";
|
|
|
31
31
|
import { HCS11Client } from "./standards-sdk.es28.js";
|
|
32
32
|
import { inscribe } from "./standards-sdk.es118.js";
|
|
33
33
|
import { addSeconds } from "date-fns";
|
|
34
|
-
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.
|
|
34
|
+
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es130.js";
|
|
35
35
|
import { buildHcs10CreateInboundTopicTx, buildHcs10CreateConnectionTopicTx, buildHcs10ConfirmConnectionTx, buildHcs10SendMessageTx, buildHcs10RegistryRegisterTx, buildHcs10CreateOutboundTopicTx, buildHcs10CreateRegistryTopicTx } from "./standards-sdk.es23.js";
|
|
36
36
|
class HCS10Client extends HCS10BaseClient {
|
|
37
37
|
constructor(config) {
|
|
@@ -12,14 +12,14 @@ import "viem/accounts";
|
|
|
12
12
|
import "viem/chains";
|
|
13
13
|
import "x402-axios";
|
|
14
14
|
import "x402/types";
|
|
15
|
-
import "./standards-sdk.
|
|
15
|
+
import "./standards-sdk.es131.js";
|
|
16
16
|
import "zod";
|
|
17
17
|
import "buffer";
|
|
18
18
|
import "ethers";
|
|
19
19
|
import "./standards-sdk.es116.js";
|
|
20
20
|
import "./standards-sdk.es107.js";
|
|
21
21
|
import { getTopicId } from "./standards-sdk.es108.js";
|
|
22
|
-
import { InscriptionSDK } from "./standards-sdk.
|
|
22
|
+
import { InscriptionSDK } from "./standards-sdk.es132.js";
|
|
23
23
|
import { HCS10BaseClient, Hcs10MemoType } from "./standards-sdk.es17.js";
|
|
24
24
|
import * as mime from "mime-types";
|
|
25
25
|
import { AgentBuilder } from "./standards-sdk.es24.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client, Status, PrivateKey, AccountUpdateTransaction } from "@hashgraph/sdk";
|
|
2
2
|
import { inscribeWithSigner, inscribe } from "./standards-sdk.es118.js";
|
|
3
|
-
import "./standards-sdk.
|
|
3
|
+
import "./standards-sdk.es132.js";
|
|
4
4
|
import { Logger } from "./standards-sdk.es99.js";
|
|
5
5
|
import { HederaMirrorNode } from "./standards-sdk.es120.js";
|
|
6
6
|
import { ProgressReporter } from "./standards-sdk.es102.js";
|
|
@@ -14,7 +14,7 @@ import "viem/accounts";
|
|
|
14
14
|
import "viem/chains";
|
|
15
15
|
import "x402-axios";
|
|
16
16
|
import "x402/types";
|
|
17
|
-
import "./standards-sdk.
|
|
17
|
+
import "./standards-sdk.es131.js";
|
|
18
18
|
import { z } from "zod";
|
|
19
19
|
import "@hashgraph/proto";
|
|
20
20
|
import "buffer";
|
|
@@ -24,7 +24,7 @@ import "./standards-sdk.es107.js";
|
|
|
24
24
|
import { getTopicId } from "./standards-sdk.es108.js";
|
|
25
25
|
import * as mime from "mime-types";
|
|
26
26
|
import { isHederaNetwork, toHederaCaip10 } from "./standards-sdk.es58.js";
|
|
27
|
-
import { createNodeOperatorContext } from "./standards-sdk.
|
|
27
|
+
import { createNodeOperatorContext } from "./standards-sdk.es129.js";
|
|
28
28
|
import { AIAgentCapability, AIAgentType, VerificationType, MCPServerCapability, ProfileType, capabilityNameToCapabilityMap } from "./standards-sdk.es29.js";
|
|
29
29
|
const SocialLinkSchema = z.object({
|
|
30
30
|
platform: z.string().min(1),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RegistryType } from "./standards-sdk.es30.js";
|
|
2
2
|
import { inscribe, inscribeWithSigner } from "./standards-sdk.es118.js";
|
|
3
|
-
import "./standards-sdk.
|
|
3
|
+
import "./standards-sdk.es132.js";
|
|
4
4
|
class BaseRegistry {
|
|
5
5
|
constructor(networkType, logger, registryType, topicId, client) {
|
|
6
6
|
this.entries = /* @__PURE__ */ new Map();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RegistryType } from "./standards-sdk.es30.js";
|
|
2
2
|
import { BaseRegistry } from "./standards-sdk.es31.js";
|
|
3
3
|
import { retrieveInscription } from "./standards-sdk.es118.js";
|
|
4
|
-
import "./standards-sdk.
|
|
4
|
+
import "./standards-sdk.es132.js";
|
|
5
5
|
import { getCryptoAdapter } from "./standards-sdk.es113.js";
|
|
6
6
|
import { isSSREnvironment } from "./standards-sdk.es111.js";
|
|
7
7
|
import { validateActionRegistration } from "./standards-sdk.es43.js";
|
|
@@ -10,10 +10,10 @@ import "viem/accounts";
|
|
|
10
10
|
import "viem/chains";
|
|
11
11
|
import "x402-axios";
|
|
12
12
|
import "x402/types";
|
|
13
|
-
import "./standards-sdk.
|
|
13
|
+
import "./standards-sdk.es131.js";
|
|
14
14
|
import "zod";
|
|
15
15
|
import "@hashgraph/sdk";
|
|
16
|
-
import "./standards-sdk.
|
|
16
|
+
import "./standards-sdk.es132.js";
|
|
17
17
|
import "@hashgraph/proto";
|
|
18
18
|
import "buffer";
|
|
19
19
|
import "ethers";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Client } from "@hashgraph/sdk";
|
|
2
2
|
import { HCS12BaseClient } from "./standards-sdk.es36.js";
|
|
3
|
-
import { createNodeOperatorContext } from "./standards-sdk.
|
|
3
|
+
import { createNodeOperatorContext } from "./standards-sdk.es129.js";
|
|
4
4
|
import { RegistryType } from "./standards-sdk.es30.js";
|
|
5
5
|
import { inscribe } from "./standards-sdk.es118.js";
|
|
6
|
-
import { InscriptionSDK } from "./standards-sdk.
|
|
6
|
+
import { InscriptionSDK } from "./standards-sdk.es132.js";
|
|
7
7
|
import { ActionRegistry } from "./standards-sdk.es32.js";
|
|
8
8
|
import { BlockLoader } from "./standards-sdk.es33.js";
|
|
9
9
|
import { AssemblyRegistry } from "./standards-sdk.es34.js";
|
|
10
10
|
import { HashLinksRegistry } from "./standards-sdk.es35.js";
|
|
11
11
|
import * as mime from "mime-types";
|
|
12
|
-
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.
|
|
12
|
+
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es130.js";
|
|
13
13
|
class HCS12Client extends HCS12BaseClient {
|
|
14
14
|
constructor(config) {
|
|
15
15
|
super(config);
|
|
@@ -2,7 +2,7 @@ import { TopicCreateTransaction, TransactionId, AccountId, PublicKey, KeyList, T
|
|
|
2
2
|
import { HCS12BaseClient } from "./standards-sdk.es36.js";
|
|
3
3
|
import { RegistryType } from "./standards-sdk.es30.js";
|
|
4
4
|
import { inscribeWithSigner } from "./standards-sdk.es118.js";
|
|
5
|
-
import { InscriptionSDK } from "./standards-sdk.
|
|
5
|
+
import { InscriptionSDK } from "./standards-sdk.es132.js";
|
|
6
6
|
import { ActionRegistry } from "./standards-sdk.es32.js";
|
|
7
7
|
import { BlockLoader } from "./standards-sdk.es33.js";
|
|
8
8
|
import { AssemblyRegistry } from "./standards-sdk.es34.js";
|
|
@@ -2,7 +2,7 @@ import { HCS6BaseClient } from "./standards-sdk.es7.js";
|
|
|
2
2
|
import { buildHcs6Hrl } from "./standards-sdk.es4.js";
|
|
3
3
|
import { AccountId, Client, TopicMessageSubmitTransaction, TopicId, PrivateKey, PublicKey, TokenMintTransaction, TokenId } from "@hashgraph/sdk";
|
|
4
4
|
import { buildHcs6CreateRegistryTx } from "./standards-sdk.es8.js";
|
|
5
|
-
import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.
|
|
5
|
+
import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.es129.js";
|
|
6
6
|
import { inscribe } from "./standards-sdk.es118.js";
|
|
7
7
|
class HCS6Client extends HCS6BaseClient {
|
|
8
8
|
constructor(config) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCryptoAdapter } from "./standards-sdk.es113.js";
|
|
2
|
-
import { base58Encode } from "./standards-sdk.
|
|
2
|
+
import { base58Encode } from "./standards-sdk.es134.js";
|
|
3
3
|
import { canonicalizeAgentData } from "./standards-sdk.es56.js";
|
|
4
4
|
function encodeMultibaseB58btc(input) {
|
|
5
5
|
const bytes = Buffer.from(input, "utf8");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HieroDidResolver } from "./standards-sdk.es60.js";
|
|
2
2
|
import { parseHcs14Did } from "./standards-sdk.es57.js";
|
|
3
|
-
import { multibaseB58btcDecode } from "./standards-sdk.
|
|
3
|
+
import { multibaseB58btcDecode } from "./standards-sdk.es134.js";
|
|
4
4
|
class ResolverRegistry {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.resolvers = [];
|
|
@@ -19,14 +19,14 @@ import "viem/accounts";
|
|
|
19
19
|
import "viem/chains";
|
|
20
20
|
import "x402-axios";
|
|
21
21
|
import "x402/types";
|
|
22
|
-
import "./standards-sdk.
|
|
22
|
+
import "./standards-sdk.es131.js";
|
|
23
23
|
import "zod";
|
|
24
24
|
import "@hashgraph/proto";
|
|
25
25
|
import "buffer";
|
|
26
26
|
import "ethers";
|
|
27
27
|
import "./standards-sdk.es116.js";
|
|
28
28
|
import "./standards-sdk.es107.js";
|
|
29
|
-
import { createNodeOperatorContext } from "./standards-sdk.
|
|
29
|
+
import { createNodeOperatorContext } from "./standards-sdk.es129.js";
|
|
30
30
|
import { HCS10Client } from "./standards-sdk.es19.js";
|
|
31
31
|
class HCS14Client {
|
|
32
32
|
constructor(options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HCS5BaseClient } from "./standards-sdk.
|
|
1
|
+
import { HCS5BaseClient } from "./standards-sdk.es133.js";
|
|
2
2
|
import { buildHcs1Hrl } from "./standards-sdk.es64.js";
|
|
3
3
|
import { PrivateKey } from "@hashgraph/sdk";
|
|
4
4
|
import { inscribeWithSigner } from "./standards-sdk.es118.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { HCS5BaseClient } from "./standards-sdk.
|
|
1
|
+
import { HCS5BaseClient } from "./standards-sdk.es133.js";
|
|
2
2
|
import { buildHcs1Hrl } from "./standards-sdk.es64.js";
|
|
3
3
|
import { AccountId } from "@hashgraph/sdk";
|
|
4
4
|
import { inscribe } from "./standards-sdk.es118.js";
|
|
5
5
|
import { buildHcs5MintTx } from "./standards-sdk.es67.js";
|
|
6
|
-
import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.
|
|
6
|
+
import { createNodeOperatorContext, NodeOperatorResolver } from "./standards-sdk.es129.js";
|
|
7
7
|
class HCS5Client extends HCS5BaseClient {
|
|
8
8
|
constructor(config) {
|
|
9
9
|
super(config);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AccountId, Client, PublicKey } from "@hashgraph/sdk";
|
|
2
2
|
import { HCS2BaseClient } from "./standards-sdk.es71.js";
|
|
3
3
|
import { HCS2Operation, HCS2RegistryType } from "./standards-sdk.es68.js";
|
|
4
|
-
import { createNodeOperatorContext } from "./standards-sdk.
|
|
5
|
-
import { buildMessageTx } from "./standards-sdk.
|
|
4
|
+
import { createNodeOperatorContext } from "./standards-sdk.es129.js";
|
|
5
|
+
import { buildMessageTx } from "./standards-sdk.es130.js";
|
|
6
6
|
import { buildHcs2CreateRegistryTx } from "./standards-sdk.es72.js";
|
|
7
7
|
const _HCS2Client = class _HCS2Client extends HCS2BaseClient {
|
|
8
8
|
/**
|
|
@@ -3,7 +3,7 @@ import { HCS2BaseClient } from "./standards-sdk.es71.js";
|
|
|
3
3
|
import { HCS2RegistryType, HCS2Operation } from "./standards-sdk.es68.js";
|
|
4
4
|
import { isBrowser } from "./standards-sdk.es112.js";
|
|
5
5
|
import { KeyTypeDetector } from "./standards-sdk.es107.js";
|
|
6
|
-
import { buildMessageTx } from "./standards-sdk.
|
|
6
|
+
import { buildMessageTx } from "./standards-sdk.es130.js";
|
|
7
7
|
class BrowserHCS2Client extends HCS2BaseClient {
|
|
8
8
|
/**
|
|
9
9
|
* Create a new browser HCS-2 client
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildTopicCreateTx, buildMessageTx, encodeHcs2RegistryMemo } from "./standards-sdk.
|
|
1
|
+
import { buildTopicCreateTx, buildMessageTx, encodeHcs2RegistryMemo } from "./standards-sdk.es130.js";
|
|
2
2
|
import { HCS2Operation } from "./standards-sdk.es68.js";
|
|
3
3
|
function buildHcs2CreateRegistryTx(params) {
|
|
4
4
|
const memo = params.memoOverride ?? encodeHcs2RegistryMemo(params.registryType, params.ttl);
|
|
@@ -2,7 +2,7 @@ import { AccountId, Client, Status, TopicCreateTransaction } from "@hashgraph/sd
|
|
|
2
2
|
import { HCS20BaseClient } from "./standards-sdk.es75.js";
|
|
3
3
|
import { PointsDeploymentError, PointsValidationError, PointsTransferError, PointsBurnError } from "./standards-sdk.es74.js";
|
|
4
4
|
import { sleep } from "./standards-sdk.es109.js";
|
|
5
|
-
import { createNodeOperatorContext } from "./standards-sdk.
|
|
5
|
+
import { createNodeOperatorContext } from "./standards-sdk.es129.js";
|
|
6
6
|
import { HCS2Client } from "./standards-sdk.es69.js";
|
|
7
7
|
import { buildHcs20DeployTx, buildHcs20MintTx, buildHcs20TransferTx, buildHcs20BurnTx, buildHcs20RegisterTx } from "./standards-sdk.es79.js";
|
|
8
8
|
class HCS20Client extends HCS20BaseClient {
|
|
@@ -10,7 +10,7 @@ import "viem/accounts";
|
|
|
10
10
|
import "viem/chains";
|
|
11
11
|
import "x402-axios";
|
|
12
12
|
import "x402/types";
|
|
13
|
-
import "./standards-sdk.
|
|
13
|
+
import "./standards-sdk.es131.js";
|
|
14
14
|
import "zod";
|
|
15
15
|
import "@hashgraph/sdk";
|
|
16
16
|
import { HCS20_CONSTANTS, HCS20MessageSchema } from "./standards-sdk.es73.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildMessageTx } from "./standards-sdk.
|
|
1
|
+
import { buildMessageTx } from "./standards-sdk.es130.js";
|
|
2
2
|
function buildHcs20SubmitMessageTx(params) {
|
|
3
3
|
const msg = typeof params.payload === "string" ? params.payload : JSON.stringify(params.payload);
|
|
4
4
|
return buildMessageTx({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.
|
|
1
|
+
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es130.js";
|
|
2
2
|
import { HCS6Operation } from "./standards-sdk.es4.js";
|
|
3
3
|
function encodeHcs6NonIndexedMemo(ttl) {
|
|
4
4
|
return `hcs-6:1:${ttl}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountId, Client, PrivateKey, Hbar } from "@hashgraph/sdk";
|
|
2
|
-
import { createNodeOperatorContext } from "./standards-sdk.
|
|
2
|
+
import { createNodeOperatorContext } from "./standards-sdk.es129.js";
|
|
3
3
|
import { buildHcs15BaseAccountCreateTx, buildHcs15PetalAccountCreateTx } from "./standards-sdk.es80.js";
|
|
4
4
|
import { HCS15BaseClient } from "./standards-sdk.es83.js";
|
|
5
5
|
class HCS15Client extends HCS15BaseClient {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountId, TopicCreateTransaction, CustomFixedFee, TokenId, AccountCreateTransaction, Hbar, AccountUpdateTransaction, ScheduleCreateTransaction, TopicUpdateTransaction } from "@hashgraph/sdk";
|
|
2
|
-
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.
|
|
2
|
+
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es130.js";
|
|
3
3
|
import { FloraOperation } from "./standards-sdk.es84.js";
|
|
4
4
|
function encodeHcs16FloraMemo(params) {
|
|
5
5
|
return `hcs-16:${params.floraAccountId}:${params.topicType}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountId, Client, ScheduleSignTransaction } from "@hashgraph/sdk";
|
|
2
|
-
import { createNodeOperatorContext } from "./standards-sdk.
|
|
2
|
+
import { createNodeOperatorContext } from "./standards-sdk.es129.js";
|
|
3
3
|
import { HederaMirrorNode } from "./standards-sdk.es120.js";
|
|
4
4
|
import { HCS16BaseClient } from "./standards-sdk.es88.js";
|
|
5
5
|
import { buildHcs16CreateFloraTopicTx, buildHcs16FloraCreatedTx, buildHcs16TransactionTx, buildHcs16StateUpdateTx, buildHcs16CreateAccountTx } from "./standards-sdk.es85.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccountId, Client } from "@hashgraph/sdk";
|
|
2
2
|
import { HCS17BaseClient } from "./standards-sdk.es90.js";
|
|
3
3
|
import { buildHcs17CreateTopicTx, buildHcs17MessageTx } from "./standards-sdk.es93.js";
|
|
4
|
-
import { createNodeOperatorContext } from "./standards-sdk.
|
|
4
|
+
import { createNodeOperatorContext } from "./standards-sdk.es129.js";
|
|
5
5
|
class HCS17Client extends HCS17BaseClient {
|
|
6
6
|
constructor(config) {
|
|
7
7
|
super(config);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.
|
|
1
|
+
import { buildTopicCreateTx, buildMessageTx } from "./standards-sdk.es130.js";
|
|
2
2
|
import { generateHCS17Memo } from "./standards-sdk.es89.js";
|
|
3
3
|
function buildHcs17CreateTopicTx(params) {
|
|
4
4
|
const memo = generateHCS17Memo(params.ttl);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client } from "@hashgraph/sdk";
|
|
2
2
|
import { Logger } from "./standards-sdk.es99.js";
|
|
3
|
-
import { createNodeOperatorContext } from "./standards-sdk.
|
|
3
|
+
import { createNodeOperatorContext } from "./standards-sdk.es129.js";
|
|
4
4
|
import { buildHcs18CreateDiscoveryTopicTx, buildHcs18AnnounceMessage, buildHcs18SubmitDiscoveryMessageTx, buildHcs18ProposeMessage, buildHcs18RespondMessage, buildHcs18CompleteMessage, buildHcs18WithdrawMessage } from "./standards-sdk.es97.js";
|
|
5
5
|
import { HCS18BaseClient } from "./standards-sdk.es98.js";
|
|
6
6
|
class HCS18Client extends HCS18BaseClient {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TopicMessageSubmitTransaction } from "@hashgraph/sdk";
|
|
2
2
|
import { DiscoveryOperation } from "./standards-sdk.es94.js";
|
|
3
|
-
import { buildTopicCreateTx } from "./standards-sdk.
|
|
3
|
+
import { buildTopicCreateTx } from "./standards-sdk.es130.js";
|
|
4
4
|
function buildHcs18DiscoveryMemo(ttlSeconds, memoOverride) {
|
|
5
5
|
if (memoOverride && memoOverride.trim().length > 0) {
|
|
6
6
|
return memoOverride;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashgraphonline/standards-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.136",
|
|
4
4
|
"description": "The Hashgraph Online Standards SDK provides a complete implementation of the Hashgraph Consensus Standards (HCS), giving developers all the tools needed to build applications on Hedera.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -129,12 +129,13 @@
|
|
|
129
129
|
"typescript": "^5.9.3",
|
|
130
130
|
"vite": "^6.4.1",
|
|
131
131
|
"vite-plugin-dts": "^4.5.4",
|
|
132
|
-
"vite-plugin-node-polyfills": "^0.24.0"
|
|
132
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
133
|
+
"ioredis": "^5.8.2"
|
|
133
134
|
},
|
|
134
135
|
"dependencies": {
|
|
135
136
|
"@hashgraph/proto": "^2.24.0",
|
|
136
137
|
"@hashgraph/sdk": "^2.77.0",
|
|
137
|
-
"@hashgraphonline/hashinal-wc": "
|
|
138
|
+
"@hashgraphonline/hashinal-wc": "2.0.1",
|
|
138
139
|
"@hiero-did-sdk/registrar": "0.1.2",
|
|
139
140
|
"@hiero-did-sdk/resolver": "0.1.2",
|
|
140
141
|
"@kiloscribe/inscription-sdk": "^2.0.3",
|
|
@@ -148,16 +149,19 @@
|
|
|
148
149
|
"dotenv": "^16.6.1",
|
|
149
150
|
"ethers": "^6.15.0",
|
|
150
151
|
"file-type": "^20.5.0",
|
|
151
|
-
"ioredis": "^5.8.2",
|
|
152
152
|
"mime-types": "^2.1.35",
|
|
153
153
|
"viem": "^2.19.9",
|
|
154
154
|
"x402-axios": "^0.7.0",
|
|
155
155
|
"zod": "^3.25.76"
|
|
156
156
|
},
|
|
157
|
+
"peerDependenciesMeta": {
|
|
158
|
+
"ioredis": {
|
|
159
|
+
"optional": true
|
|
160
|
+
}
|
|
161
|
+
},
|
|
157
162
|
"resolutions": {
|
|
158
163
|
"@hashgraphonline/standards-sdk": "0.1.132",
|
|
159
164
|
"@hashgraph/sdk": "^2.77.0"
|
|
160
165
|
},
|
|
161
|
-
"peerDependenciesMeta": {},
|
|
162
166
|
"packageManager": "pnpm@10.11.1+sha512.e519b9f7639869dc8d5c3c5dfef73b3f091094b0a006d7317353c72b124e80e1afd429732e28705ad6bfa1ee879c1fce46c128ccebd3192101f43dd67c667912"
|
|
163
167
|
}
|