@stacks/blockchain-api-client 7.10.0-nakamoto.7 → 7.11.0-beta.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacks/blockchain-api-client",
3
- "version": "7.10.0-nakamoto.7",
3
+ "version": "7.11.0-beta.1",
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",
@@ -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