@stacks/blockchain-api-client 7.10.0-nakamoto.6 → 7.10.0
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/lib/generated/models/NakamotoBlock.d.ts +12 -0
- package/lib/generated/models/NakamotoBlock.js +4 -0
- package/lib/generated/models/NakamotoBlock.js.map +1 -1
- package/lib/generated/models/RosettaOptions.d.ts +30 -0
- package/lib/generated/models/RosettaOptions.js +10 -0
- package/lib/generated/models/RosettaOptions.js.map +1 -1
- package/lib/index.umd.js +16 -2
- package/lib/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/models/NakamotoBlock.ts +16 -0
- package/src/generated/models/RosettaOptions.ts +40 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacks/blockchain-api-client",
|
|
3
|
-
"version": "7.10.0
|
|
3
|
+
"version": "7.10.0",
|
|
4
4
|
"access": "public",
|
|
5
5
|
"description": "Client for the Stacks Blockchain API",
|
|
6
6
|
"homepage": "https://github.com/hirosystems/stacks-blockchain-api/tree/master/client#readme",
|
|
@@ -37,6 +37,18 @@ export interface NakamotoBlock {
|
|
|
37
37
|
* @memberof NakamotoBlock
|
|
38
38
|
*/
|
|
39
39
|
hash: string;
|
|
40
|
+
/**
|
|
41
|
+
* Unix timestamp (in seconds) indicating when this block was mined.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof NakamotoBlock
|
|
44
|
+
*/
|
|
45
|
+
block_time: number;
|
|
46
|
+
/**
|
|
47
|
+
* An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) indicating when this block was mined.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof NakamotoBlock
|
|
50
|
+
*/
|
|
51
|
+
block_time_iso: string;
|
|
40
52
|
/**
|
|
41
53
|
* The only hash that can uniquely identify an anchored block or an unconfirmed state trie
|
|
42
54
|
* @type {string}
|
|
@@ -136,6 +148,8 @@ export function NakamotoBlockFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
136
148
|
'canonical': json['canonical'],
|
|
137
149
|
'height': json['height'],
|
|
138
150
|
'hash': json['hash'],
|
|
151
|
+
'block_time': json['block_time'],
|
|
152
|
+
'block_time_iso': json['block_time_iso'],
|
|
139
153
|
'index_block_hash': json['index_block_hash'],
|
|
140
154
|
'parent_block_hash': json['parent_block_hash'],
|
|
141
155
|
'parent_index_block_hash': json['parent_index_block_hash'],
|
|
@@ -165,6 +179,8 @@ export function NakamotoBlockToJSON(value?: NakamotoBlock | null): any {
|
|
|
165
179
|
'canonical': value.canonical,
|
|
166
180
|
'height': value.height,
|
|
167
181
|
'hash': value.hash,
|
|
182
|
+
'block_time': value.block_time,
|
|
183
|
+
'block_time_iso': value.block_time_iso,
|
|
168
184
|
'index_block_hash': value.index_block_hash,
|
|
169
185
|
'parent_block_hash': value.parent_block_hash,
|
|
170
186
|
'parent_index_block_hash': value.parent_index_block_hash,
|
|
@@ -127,6 +127,12 @@ export interface RosettaOptions {
|
|
|
127
127
|
* @memberof RosettaOptions
|
|
128
128
|
*/
|
|
129
129
|
burn_block_height?: number;
|
|
130
|
+
/**
|
|
131
|
+
* The reward cycle ID for stacking transaction.
|
|
132
|
+
* @type {number}
|
|
133
|
+
* @memberof RosettaOptions
|
|
134
|
+
*/
|
|
135
|
+
reward_cycle_id?: number;
|
|
130
136
|
/**
|
|
131
137
|
* Delegator address for when calling `delegate-stacking`.
|
|
132
138
|
* @type {string}
|
|
@@ -145,6 +151,30 @@ export interface RosettaOptions {
|
|
|
145
151
|
* @memberof RosettaOptions
|
|
146
152
|
*/
|
|
147
153
|
signer_key?: string;
|
|
154
|
+
/**
|
|
155
|
+
* The hex-encoded signer private key for PoX. Specify either this or `signer_signature`, otherwise the PoX transaction requires allow-listing from the signer.
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof RosettaOptions
|
|
158
|
+
*/
|
|
159
|
+
signer_private_key?: string;
|
|
160
|
+
/**
|
|
161
|
+
* The hex-encoded signer signature for PoX. Specify either this or `signer_private_key`, otherwise the PoX transaction requires allow-listing from the signer.
|
|
162
|
+
* @type {string}
|
|
163
|
+
* @memberof RosettaOptions
|
|
164
|
+
*/
|
|
165
|
+
signer_signature?: string;
|
|
166
|
+
/**
|
|
167
|
+
* The maximum amount of STX to stack for PoX. If not specified, the `amount` will be used as the `max-amount` for the PoX transaction.
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof RosettaOptions
|
|
170
|
+
*/
|
|
171
|
+
pox_max_amount?: string;
|
|
172
|
+
/**
|
|
173
|
+
* The auth ID for the PoX transaction. If not specified, a random value will be generated.
|
|
174
|
+
* @type {string}
|
|
175
|
+
* @memberof RosettaOptions
|
|
176
|
+
*/
|
|
177
|
+
pox_auth_id?: string;
|
|
148
178
|
}
|
|
149
179
|
|
|
150
180
|
export function RosettaOptionsFromJSON(json: any): RosettaOptions {
|
|
@@ -175,9 +205,14 @@ export function RosettaOptionsFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
175
205
|
'contract_address': !exists(json, 'contract_address') ? undefined : json['contract_address'],
|
|
176
206
|
'contract_name': !exists(json, 'contract_name') ? undefined : json['contract_name'],
|
|
177
207
|
'burn_block_height': !exists(json, 'burn_block_height') ? undefined : json['burn_block_height'],
|
|
208
|
+
'reward_cycle_id': !exists(json, 'reward_cycle_id') ? undefined : json['reward_cycle_id'],
|
|
178
209
|
'delegate_to': !exists(json, 'delegate_to') ? undefined : json['delegate_to'],
|
|
179
210
|
'pox_addr': !exists(json, 'pox_addr') ? undefined : json['pox_addr'],
|
|
180
211
|
'signer_key': !exists(json, 'signer_key') ? undefined : json['signer_key'],
|
|
212
|
+
'signer_private_key': !exists(json, 'signer_private_key') ? undefined : json['signer_private_key'],
|
|
213
|
+
'signer_signature': !exists(json, 'signer_signature') ? undefined : json['signer_signature'],
|
|
214
|
+
'pox_max_amount': !exists(json, 'pox_max_amount') ? undefined : json['pox_max_amount'],
|
|
215
|
+
'pox_auth_id': !exists(json, 'pox_auth_id') ? undefined : json['pox_auth_id'],
|
|
181
216
|
};
|
|
182
217
|
}
|
|
183
218
|
|
|
@@ -208,9 +243,14 @@ export function RosettaOptionsToJSON(value?: RosettaOptions | null): any {
|
|
|
208
243
|
'contract_address': value.contract_address,
|
|
209
244
|
'contract_name': value.contract_name,
|
|
210
245
|
'burn_block_height': value.burn_block_height,
|
|
246
|
+
'reward_cycle_id': value.reward_cycle_id,
|
|
211
247
|
'delegate_to': value.delegate_to,
|
|
212
248
|
'pox_addr': value.pox_addr,
|
|
213
249
|
'signer_key': value.signer_key,
|
|
250
|
+
'signer_private_key': value.signer_private_key,
|
|
251
|
+
'signer_signature': value.signer_signature,
|
|
252
|
+
'pox_max_amount': value.pox_max_amount,
|
|
253
|
+
'pox_auth_id': value.pox_auth_id,
|
|
214
254
|
};
|
|
215
255
|
}
|
|
216
256
|
|