@hashgraphonline/standards-sdk 0.0.30 → 0.0.32
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/es/hcs-10/base-client.d.ts +15 -1
- package/dist/es/standards-sdk.es.js +317 -189
- package/dist/es/standards-sdk.es.js.map +1 -1
- package/dist/umd/hcs-10/base-client.d.ts +15 -1
- package/dist/umd/standards-sdk.umd.js +2 -2
- package/dist/umd/standards-sdk.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AccountResponse, HederaMirrorNode, TopicInfo } from '../services/mirror-node';
|
|
1
2
|
import { Logger, LogLevel } from '../utils/logger';
|
|
2
3
|
import { Registration } from './registrations';
|
|
3
|
-
import { HederaMirrorNode, TopicInfo, AccountResponse } from '../services/mirror-node';
|
|
4
4
|
export interface HCS10Config {
|
|
5
5
|
network: 'mainnet' | 'testnet';
|
|
6
6
|
logLevel?: LogLevel;
|
|
@@ -23,6 +23,13 @@ export interface HCSMessage {
|
|
|
23
23
|
sequence_number: number;
|
|
24
24
|
operator_id?: string;
|
|
25
25
|
}
|
|
26
|
+
export interface ProfileResponse {
|
|
27
|
+
profile: any;
|
|
28
|
+
topicInfo?: TopicInfo;
|
|
29
|
+
profileTopicId?: string;
|
|
30
|
+
success: boolean;
|
|
31
|
+
error?: string;
|
|
32
|
+
}
|
|
26
33
|
export declare abstract class HCS10BaseClient extends Registration {
|
|
27
34
|
protected network: string;
|
|
28
35
|
protected logger: Logger;
|
|
@@ -42,10 +49,17 @@ export declare abstract class HCS10BaseClient extends Registration {
|
|
|
42
49
|
getAccountMemo(accountId: string): Promise<string | null>;
|
|
43
50
|
protected getTopicInfoFromMemo(memo: string): Promise<TopicInfo | null>;
|
|
44
51
|
getTopicInfo(accountId: string): Promise<TopicInfo | null>;
|
|
52
|
+
retrieveProfile(accountId: string): Promise<ProfileResponse>;
|
|
45
53
|
retrieveOutboundConnectTopic(accountId: string): Promise<TopicInfo>;
|
|
46
54
|
retrieveOutboundMessages(agentAccountId: string): Promise<HCSMessage[]>;
|
|
47
55
|
hasConnectionCreated(agentAccountId: string, connectionId: number): Promise<boolean>;
|
|
48
56
|
clearCache(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Gets message content, resolving any HRL references if needed
|
|
59
|
+
* @param data The message data which might be an HRL reference
|
|
60
|
+
* @returns The resolved content
|
|
61
|
+
*/
|
|
62
|
+
getMessageContent(data: string): Promise<string>;
|
|
49
63
|
}
|
|
50
64
|
export declare class HCS10Cache {
|
|
51
65
|
private static instance;
|