@hashgraphonline/standards-sdk 0.0.45 → 0.0.47

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/README.md CHANGED
@@ -58,12 +58,19 @@ The SDK includes demo implementations that showcase various features. Follow the
58
58
 
59
59
  ```bash
60
60
  # Run the inscribe demo
61
- npm run demo
61
+ npm run demo:inscribe
62
+ ```
62
63
 
64
+ ```bash
63
65
  # Run the HCS-10 AI agent communication demo
64
66
  npm run demo:hcs-10
65
67
  ```
66
68
 
69
+ ```bash
70
+ # Run the HCS-10 polling demo
71
+ npm run demo:polling-agent
72
+ ```
73
+
67
74
  ### Demo Descriptions
68
75
 
69
76
  #### Inscribe Demo
@@ -25,6 +25,7 @@ export interface HCSMessage {
25
25
  sequence_number: number;
26
26
  operator_id?: string;
27
27
  reason?: string;
28
+ close_method?: string;
28
29
  }
29
30
  export interface ProfileResponse {
30
31
  profile: any;
@@ -15714,7 +15714,11 @@ class HederaMirrorNode {
15714
15714
  return;
15715
15715
  }
15716
15716
  messageJson.sequence_number = message.sequence_number;
15717
- messages.push(messageJson);
15717
+ messages.push({
15718
+ ...messageJson,
15719
+ consensus_timestamp: message.consensus_timestamp,
15720
+ sequence_number: message.sequence_number
15721
+ });
15718
15722
  } catch (error) {
15719
15723
  this.logger.error(`Error processing message: ${error.message}`);
15720
15724
  }