@hashgraphonline/standards-sdk 0.0.40 → 0.0.42

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.
@@ -0,0 +1,139 @@
1
+ export interface Balance {
2
+ balance: number;
3
+ timestamp: string;
4
+ tokens: TokenBalance[];
5
+ }
6
+ export interface TokenBalance {
7
+ token_id: string;
8
+ balance: number;
9
+ }
10
+ export interface Key {
11
+ _type: string;
12
+ key: string;
13
+ }
14
+ export interface AccountResponse {
15
+ account: string;
16
+ alias: string;
17
+ auto_renew_period: number;
18
+ balance: Balance;
19
+ created_timestamp: string;
20
+ decline_reward: boolean;
21
+ deleted: boolean;
22
+ ethereum_nonce: number;
23
+ evm_address: string;
24
+ expiry_timestamp: string;
25
+ key: Key;
26
+ max_automatic_token_associations: number;
27
+ memo: string;
28
+ pending_reward: number;
29
+ receiver_sig_required: boolean;
30
+ staked_account_id: string | null;
31
+ staked_node_id: string | null;
32
+ stake_period_start: string | null;
33
+ transactions: Transaction[];
34
+ links: Links;
35
+ }
36
+ export interface Transaction {
37
+ bytes: string | null;
38
+ charged_tx_fee: number;
39
+ consensus_timestamp: string;
40
+ entity_id: string | null;
41
+ max_fee: string;
42
+ memo_base64: string;
43
+ name: string;
44
+ nft_transfers: NftTransfer[];
45
+ node: string;
46
+ nonce: number;
47
+ parent_consensus_timestamp: string | null;
48
+ result: string;
49
+ scheduled: boolean;
50
+ staking_reward_transfers: Transfer[];
51
+ token_transfers: TokenTransfer[];
52
+ transaction_hash: string;
53
+ transaction_id: string;
54
+ transfers: Transfer[];
55
+ valid_duration_seconds: string;
56
+ valid_start_timestamp: string;
57
+ }
58
+ export interface Transfer {
59
+ account: string;
60
+ amount: number;
61
+ is_approval: boolean;
62
+ }
63
+ export interface TokenTransfer {
64
+ token_id: string;
65
+ account: string;
66
+ amount: string;
67
+ is_approval: boolean;
68
+ }
69
+ export interface NftTransfer {
70
+ receiver_account_id: string;
71
+ sender_account_id: string;
72
+ serial_number: number;
73
+ is_approval: boolean;
74
+ }
75
+ export interface Links {
76
+ next: string;
77
+ }
78
+ export type NetworkType = 'mainnet' | 'testnet';
79
+ export interface TopicInfo {
80
+ inboundTopic: string;
81
+ outboundTopic: string;
82
+ profileTopicId: string;
83
+ }
84
+ export interface TopicMessage {
85
+ consensus_timestamp: string;
86
+ topic_id: string;
87
+ message: string;
88
+ sequence_number: number;
89
+ running_hash: string;
90
+ running_hash_version: number;
91
+ payer_account_id: string;
92
+ }
93
+ export interface TopicMessagesResponse {
94
+ messages: TopicMessage[];
95
+ links: {
96
+ next?: string;
97
+ };
98
+ }
99
+ export interface TopicResponse {
100
+ admin_key: Key;
101
+ auto_renew_account: string;
102
+ auto_renew_period: number;
103
+ created_timestamp: string;
104
+ custom_fees: CustomFees;
105
+ deleted: boolean;
106
+ fee_exempt_key_list: Key[];
107
+ fee_schedule_key: Key;
108
+ memo: string;
109
+ submit_key: Key;
110
+ timestamp: Timestamp;
111
+ topic_id: string;
112
+ }
113
+ export interface Key {
114
+ _type: string;
115
+ key: string;
116
+ }
117
+ export interface CustomFees {
118
+ created_timestamp: string;
119
+ fixed_fees: FixedFee[];
120
+ }
121
+ export interface FixedFee {
122
+ amount: number;
123
+ collector_account_id: string;
124
+ denominating_token_id: string;
125
+ }
126
+ export interface Timestamp {
127
+ from: string;
128
+ to: string;
129
+ }
130
+ export interface TRate {
131
+ cent_equivalent: number;
132
+ expiration_time: number;
133
+ hbar_equivalent: number;
134
+ }
135
+ export interface HBARPrice {
136
+ current_rate: TRate;
137
+ next_rate: TRate;
138
+ timestamp: string;
139
+ }