Skip to content

Commit 75f7f8e

Browse files
agraebezone117x
authored andcommitted
feat: adding new pox & stacking fields
in reference to: stacks-network/stacks-core#1920
1 parent 75dba0e commit 75f7f8e

File tree

65 files changed

+4990
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4990
-3
lines changed

client/src/generated/apis/RosettaApi.ts

Lines changed: 641 additions & 0 deletions
Large diffs are not rendered by default.

client/src/generated/apis/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export * from './BlocksApi';
33
export * from './FaucetsApi';
44
export * from './FeesApi';
55
export * from './InfoApi';
6+
export * from './RosettaApi';
67
export * from './SearchApi';
78
export * from './SmartContractsApi';
89
export * from './TransactionsApi';

client/src/generated/models/AccountDataResponse.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ export interface AccountDataResponse {
2525
* @memberof AccountDataResponse
2626
*/
2727
balance: string;
28+
/**
29+
*
30+
* @type {string}
31+
* @memberof AccountDataResponse
32+
*/
33+
locked: string;
34+
/**
35+
*
36+
* @type {number}
37+
* @memberof AccountDataResponse
38+
*/
39+
unlock_height: number;
2840
/**
2941
*
3042
* @type {number}
@@ -56,6 +68,8 @@ export function AccountDataResponseFromJSONTyped(json: any, ignoreDiscriminator:
5668
return {
5769

5870
'balance': json['balance'],
71+
'locked': json['locked'],
72+
'unlock_height': json['unlock_height'],
5973
'nonce': json['nonce'],
6074
'balance_proof': json['balance_proof'],
6175
'nonce_proof': json['nonce_proof'],
@@ -72,6 +86,8 @@ export function AccountDataResponseToJSON(value?: AccountDataResponse | null): a
7286
return {
7387

7488
'balance': value.balance,
89+
'locked': value.locked,
90+
'unlock_height': value.unlock_height,
7591
'nonce': value.nonce,
7692
'balance_proof': value.balance_proof,
7793
'nonce_proof': value.nonce_proof,

client/src/generated/models/CoreNodePoxResponse.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ export interface CoreNodePoxResponse {
6161
* @memberof CoreNodePoxResponse
6262
*/
6363
reward_cycle_length: number;
64+
/**
65+
*
66+
* @type {number}
67+
* @memberof CoreNodePoxResponse
68+
*/
69+
rejection_votes_left_required: number;
70+
/**
71+
*
72+
* @type {number}
73+
* @memberof CoreNodePoxResponse
74+
*/
75+
total_liquid_supply_ustx: number;
6476
}
6577

6678
export function CoreNodePoxResponseFromJSON(json: any): CoreNodePoxResponse {
@@ -80,6 +92,8 @@ export function CoreNodePoxResponseFromJSONTyped(json: any, ignoreDiscriminator:
8092
'rejection_fraction': json['rejection_fraction'],
8193
'reward_cycle_id': json['reward_cycle_id'],
8294
'reward_cycle_length': json['reward_cycle_length'],
95+
'rejection_votes_left_required': json['rejection_votes_left_required'],
96+
'total_liquid_supply_ustx': json['total_liquid_supply_ustx'],
8397
};
8498
}
8599

@@ -99,6 +113,8 @@ export function CoreNodePoxResponseToJSON(value?: CoreNodePoxResponse | null): a
99113
'rejection_fraction': value.rejection_fraction,
100114
'reward_cycle_id': value.reward_cycle_id,
101115
'reward_cycle_length': value.reward_cycle_length,
116+
'rejection_votes_left_required': value.rejection_votes_left_required,
117+
'total_liquid_supply_ustx': value.total_liquid_supply_ustx,
102118
};
103119
}
104120

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Stacks 2.0 Blockchain API
5+
* This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/614feab5c108d292bffa#?env%5BStacks%20Blockchain%20API%5D=W3sia2V5Ijoic3R4X2FkZHJlc3MiLCJ2YWx1ZSI6IlNUMlRKUkhESE1ZQlE0MTdIRkIwQkRYNDMwVFFBNVBYUlg2NDk1RzFWIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJibG9ja19pZCIsInZhbHVlIjoiMHgiLCJlbmFibGVkIjp0cnVlfSx7ImtleSI6Im9mZnNldCIsInZhbHVlIjoiMCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoibGltaXRfdHgiLCJ2YWx1ZSI6IjIwMCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoibGltaXRfYmxvY2siLCJ2YWx1ZSI6IjMwIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJ0eF9pZCIsInZhbHVlIjoiMHg1NDA5MGMxNmE3MDJiNzUzYjQzMTE0ZTg4NGJjMTlhODBhNzk2MzhmZDQ0OWE0MGY4MDY4Y2RmMDAzY2RlNmUwIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9pZCIsInZhbHVlIjoiU1RKVFhFSlBKUFBWRE5BOUIwNTJOU1JSQkdRQ0ZOS1ZTMTc4VkdIMS5oZWxsb193b3JsZFxuIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJidGNfYWRkcmVzcyIsInZhbHVlIjoiYWJjIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9hZGRyZXNzIiwidmFsdWUiOiJTVEpUWEVKUEpQUFZETkE5QjA1Mk5TUlJCR1FDRk5LVlMxNzhWR0gxIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9uYW1lIiwidmFsdWUiOiJoZWxsb193b3JsZCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiY29udHJhY3RfbWFwIiwidmFsdWUiOiJzdG9yZSIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiY29udHJhY3RfbWV0aG9kIiwidmFsdWUiOiJnZXQtdmFsdWUiLCJlbmFibGVkIjp0cnVlfV0=) ## Design ### Stacks Core API vs Stacks Blockchain API The blockchain\'s Rust implementation exposes a JSON RPC endpoint (\"Stacks Core API\"), which can be used to interface with the blockchain. It can be used directly. [See the documentation for the `stacks-blockchain` in its Github repository](https://github.com/blockstack/stacks-blockchain/) All `/v2/` routes a proxied to a Blockstack PBC-hosted Stacks Node. For a trustless architecture, you should make these requests to a self-hosted node. All `/extended/` routes are provided by the Stacks 2.0 Blockchain API directly. They extend the Stacks Core API capabilities to make it easier to integrate with. ### Pagination To make API responses more compact, lists returned by the API are paginated. For lists, the response body includes: - `limit`: the number of list items return per response - `offset`: the number of elements to skip (starting from `0`) - `total`: the number of all available list items - `results`: the array of list items (length of array equals the set limit) Using the `limit` and `offset` properties, you can paginate through the entire list by increasing the offset by the limit until you reach the total. ## Client Library A generated JS Client is available for consumption of this API. The client enables typesafe REST and WebSocket communication. Please review the [client documentation](https://blockstack.github.io/stacks-blockchain-api/client/index.html) for more details.
6+
*
7+
* The version of the OpenAPI document: 1.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
import { exists, mapValues } from '../runtime';
16+
import {
17+
RosettaNetworkListResponseSubNetworkIdentifier,
18+
RosettaNetworkListResponseSubNetworkIdentifierFromJSON,
19+
RosettaNetworkListResponseSubNetworkIdentifierFromJSONTyped,
20+
RosettaNetworkListResponseSubNetworkIdentifierToJSON,
21+
} from './';
22+
23+
/**
24+
* The network_identifier specifies which network a particular object is associated with.
25+
* @export
26+
* @interface NetworkIdentifier
27+
*/
28+
export interface NetworkIdentifier {
29+
/**
30+
* Blockchain name
31+
* @type {string}
32+
* @memberof NetworkIdentifier
33+
*/
34+
blockchain: string;
35+
/**
36+
* If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet.
37+
* @type {string}
38+
* @memberof NetworkIdentifier
39+
*/
40+
network: string;
41+
/**
42+
*
43+
* @type {RosettaNetworkListResponseSubNetworkIdentifier}
44+
* @memberof NetworkIdentifier
45+
*/
46+
sub_network_identifier?: RosettaNetworkListResponseSubNetworkIdentifier;
47+
}
48+
49+
export function NetworkIdentifierFromJSON(json: any): NetworkIdentifier {
50+
return NetworkIdentifierFromJSONTyped(json, false);
51+
}
52+
53+
export function NetworkIdentifierFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkIdentifier {
54+
if ((json === undefined) || (json === null)) {
55+
return json;
56+
}
57+
return {
58+
59+
'blockchain': json['blockchain'],
60+
'network': json['network'],
61+
'sub_network_identifier': !exists(json, 'sub_network_identifier') ? undefined : RosettaNetworkListResponseSubNetworkIdentifierFromJSON(json['sub_network_identifier']),
62+
};
63+
}
64+
65+
export function NetworkIdentifierToJSON(value?: NetworkIdentifier | null): any {
66+
if (value === undefined) {
67+
return undefined;
68+
}
69+
if (value === null) {
70+
return null;
71+
}
72+
return {
73+
74+
'blockchain': value.blockchain,
75+
'network': value.network,
76+
'sub_network_identifier': RosettaNetworkListResponseSubNetworkIdentifierToJSON(value.sub_network_identifier),
77+
};
78+
}
79+
80+
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Stacks 2.0 Blockchain API
5+
* This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/614feab5c108d292bffa#?env%5BStacks%20Blockchain%20API%5D=W3sia2V5Ijoic3R4X2FkZHJlc3MiLCJ2YWx1ZSI6IlNUMlRKUkhESE1ZQlE0MTdIRkIwQkRYNDMwVFFBNVBYUlg2NDk1RzFWIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJibG9ja19pZCIsInZhbHVlIjoiMHgiLCJlbmFibGVkIjp0cnVlfSx7ImtleSI6Im9mZnNldCIsInZhbHVlIjoiMCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoibGltaXRfdHgiLCJ2YWx1ZSI6IjIwMCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoibGltaXRfYmxvY2siLCJ2YWx1ZSI6IjMwIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJ0eF9pZCIsInZhbHVlIjoiMHg1NDA5MGMxNmE3MDJiNzUzYjQzMTE0ZTg4NGJjMTlhODBhNzk2MzhmZDQ0OWE0MGY4MDY4Y2RmMDAzY2RlNmUwIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9pZCIsInZhbHVlIjoiU1RKVFhFSlBKUFBWRE5BOUIwNTJOU1JSQkdRQ0ZOS1ZTMTc4VkdIMS5oZWxsb193b3JsZFxuIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJidGNfYWRkcmVzcyIsInZhbHVlIjoiYWJjIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9hZGRyZXNzIiwidmFsdWUiOiJTVEpUWEVKUEpQUFZETkE5QjA1Mk5TUlJCR1FDRk5LVlMxNzhWR0gxIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9uYW1lIiwidmFsdWUiOiJoZWxsb193b3JsZCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiY29udHJhY3RfbWFwIiwidmFsdWUiOiJzdG9yZSIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiY29udHJhY3RfbWV0aG9kIiwidmFsdWUiOiJnZXQtdmFsdWUiLCJlbmFibGVkIjp0cnVlfV0=) ## Design ### Stacks Core API vs Stacks Blockchain API The blockchain\'s Rust implementation exposes a JSON RPC endpoint (\"Stacks Core API\"), which can be used to interface with the blockchain. It can be used directly. [See the documentation for the `stacks-blockchain` in its Github repository](https://github.com/blockstack/stacks-blockchain/) All `/v2/` routes a proxied to a Blockstack PBC-hosted Stacks Node. For a trustless architecture, you should make these requests to a self-hosted node. All `/extended/` routes are provided by the Stacks 2.0 Blockchain API directly. They extend the Stacks Core API capabilities to make it easier to integrate with. ### Pagination To make API responses more compact, lists returned by the API are paginated. For lists, the response body includes: - `limit`: the number of list items return per response - `offset`: the number of elements to skip (starting from `0`) - `total`: the number of all available list items - `results`: the array of list items (length of array equals the set limit) Using the `limit` and `offset` properties, you can paginate through the entire list by increasing the offset by the limit until you reach the total. ## Client Library A generated JS Client is available for consumption of this API. The client enables typesafe REST and WebSocket communication. Please review the [client documentation](https://blockstack.github.io/stacks-blockchain-api/client/index.html) for more details.
6+
*
7+
* The version of the OpenAPI document: 1.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
import { exists, mapValues } from '../runtime';
16+
import {
17+
RosettaSubAccount,
18+
RosettaSubAccountFromJSON,
19+
RosettaSubAccountFromJSONTyped,
20+
RosettaSubAccountToJSON,
21+
} from './';
22+
23+
/**
24+
* The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).
25+
* @export
26+
* @interface RosettaAccount
27+
*/
28+
export interface RosettaAccount {
29+
/**
30+
* The address may be a cryptographic public key (or some encoding of it) or a provided username.
31+
* @type {string}
32+
* @memberof RosettaAccount
33+
*/
34+
address: string;
35+
/**
36+
*
37+
* @type {RosettaSubAccount}
38+
* @memberof RosettaAccount
39+
*/
40+
sub_account?: RosettaSubAccount;
41+
/**
42+
* Blockchains that utilize a username model (where the address is not a derivative of a cryptographic public key) should specify the public key(s) owned by the address in metadata.
43+
* @type {object}
44+
* @memberof RosettaAccount
45+
*/
46+
metadata?: object;
47+
}
48+
49+
export function RosettaAccountFromJSON(json: any): RosettaAccount {
50+
return RosettaAccountFromJSONTyped(json, false);
51+
}
52+
53+
export function RosettaAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): RosettaAccount {
54+
if ((json === undefined) || (json === null)) {
55+
return json;
56+
}
57+
return {
58+
59+
'address': json['address'],
60+
'sub_account': !exists(json, 'sub_account') ? undefined : RosettaSubAccountFromJSON(json['sub_account']),
61+
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
62+
};
63+
}
64+
65+
export function RosettaAccountToJSON(value?: RosettaAccount | null): any {
66+
if (value === undefined) {
67+
return undefined;
68+
}
69+
if (value === null) {
70+
return null;
71+
}
72+
return {
73+
74+
'address': value.address,
75+
'sub_account': RosettaSubAccountToJSON(value.sub_account),
76+
'metadata': value.metadata,
77+
};
78+
}
79+
80+
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Stacks 2.0 Blockchain API
5+
* This is the documentation for the Stacks 2.0 Blockchain API. It is comprised of two parts; the Stacks Blockchain API and the Stacks Core API. [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/614feab5c108d292bffa#?env%5BStacks%20Blockchain%20API%5D=W3sia2V5Ijoic3R4X2FkZHJlc3MiLCJ2YWx1ZSI6IlNUMlRKUkhESE1ZQlE0MTdIRkIwQkRYNDMwVFFBNVBYUlg2NDk1RzFWIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJibG9ja19pZCIsInZhbHVlIjoiMHgiLCJlbmFibGVkIjp0cnVlfSx7ImtleSI6Im9mZnNldCIsInZhbHVlIjoiMCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoibGltaXRfdHgiLCJ2YWx1ZSI6IjIwMCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoibGltaXRfYmxvY2siLCJ2YWx1ZSI6IjMwIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJ0eF9pZCIsInZhbHVlIjoiMHg1NDA5MGMxNmE3MDJiNzUzYjQzMTE0ZTg4NGJjMTlhODBhNzk2MzhmZDQ0OWE0MGY4MDY4Y2RmMDAzY2RlNmUwIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9pZCIsInZhbHVlIjoiU1RKVFhFSlBKUFBWRE5BOUIwNTJOU1JSQkdRQ0ZOS1ZTMTc4VkdIMS5oZWxsb193b3JsZFxuIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJidGNfYWRkcmVzcyIsInZhbHVlIjoiYWJjIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9hZGRyZXNzIiwidmFsdWUiOiJTVEpUWEVKUEpQUFZETkE5QjA1Mk5TUlJCR1FDRk5LVlMxNzhWR0gxIiwiZW5hYmxlZCI6dHJ1ZX0seyJrZXkiOiJjb250cmFjdF9uYW1lIiwidmFsdWUiOiJoZWxsb193b3JsZCIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiY29udHJhY3RfbWFwIiwidmFsdWUiOiJzdG9yZSIsImVuYWJsZWQiOnRydWV9LHsia2V5IjoiY29udHJhY3RfbWV0aG9kIiwidmFsdWUiOiJnZXQtdmFsdWUiLCJlbmFibGVkIjp0cnVlfV0=) ## Design ### Stacks Core API vs Stacks Blockchain API The blockchain\'s Rust implementation exposes a JSON RPC endpoint (\"Stacks Core API\"), which can be used to interface with the blockchain. It can be used directly. [See the documentation for the `stacks-blockchain` in its Github repository](https://github.com/blockstack/stacks-blockchain/) All `/v2/` routes a proxied to a Blockstack PBC-hosted Stacks Node. For a trustless architecture, you should make these requests to a self-hosted node. All `/extended/` routes are provided by the Stacks 2.0 Blockchain API directly. They extend the Stacks Core API capabilities to make it easier to integrate with. ### Pagination To make API responses more compact, lists returned by the API are paginated. For lists, the response body includes: - `limit`: the number of list items return per response - `offset`: the number of elements to skip (starting from `0`) - `total`: the number of all available list items - `results`: the array of list items (length of array equals the set limit) Using the `limit` and `offset` properties, you can paginate through the entire list by increasing the offset by the limit until you reach the total. ## Client Library A generated JS Client is available for consumption of this API. The client enables typesafe REST and WebSocket communication. Please review the [client documentation](https://blockstack.github.io/stacks-blockchain-api/client/index.html) for more details.
6+
*
7+
* The version of the OpenAPI document: 1.0.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
import { exists, mapValues } from '../runtime';
16+
import {
17+
NetworkIdentifier,
18+
NetworkIdentifierFromJSON,
19+
NetworkIdentifierFromJSONTyped,
20+
NetworkIdentifierToJSON,
21+
RosettaAccount,
22+
RosettaAccountFromJSON,
23+
RosettaAccountFromJSONTyped,
24+
RosettaAccountToJSON,
25+
} from './';
26+
27+
/**
28+
* An AccountBalanceRequest is utilized to make a balance request on the /account/balance endpoint. If the block_identifier is populated, a historical balance query should be performed.
29+
* @export
30+
* @interface RosettaAccountBalanceRequest
31+
*/
32+
export interface RosettaAccountBalanceRequest {
33+
/**
34+
*
35+
* @type {NetworkIdentifier}
36+
* @memberof RosettaAccountBalanceRequest
37+
*/
38+
network_identifier: NetworkIdentifier;
39+
/**
40+
*
41+
* @type {RosettaAccount}
42+
* @memberof RosettaAccountBalanceRequest
43+
*/
44+
account_identifier: RosettaAccount;
45+
/**
46+
* When fetching data by BlockIdentifier, it may be possible to only specify the index or hash. If neither property is specified, it is assumed that the client is making a request at the current block.
47+
* @type {object}
48+
* @memberof RosettaAccountBalanceRequest
49+
*/
50+
block_identifier?: object;
51+
}
52+
53+
export function RosettaAccountBalanceRequestFromJSON(json: any): RosettaAccountBalanceRequest {
54+
return RosettaAccountBalanceRequestFromJSONTyped(json, false);
55+
}
56+
57+
export function RosettaAccountBalanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RosettaAccountBalanceRequest {
58+
if ((json === undefined) || (json === null)) {
59+
return json;
60+
}
61+
return {
62+
63+
'network_identifier': NetworkIdentifierFromJSON(json['network_identifier']),
64+
'account_identifier': RosettaAccountFromJSON(json['account_identifier']),
65+
'block_identifier': !exists(json, 'block_identifier') ? undefined : json['block_identifier'],
66+
};
67+
}
68+
69+
export function RosettaAccountBalanceRequestToJSON(value?: RosettaAccountBalanceRequest | null): any {
70+
if (value === undefined) {
71+
return undefined;
72+
}
73+
if (value === null) {
74+
return null;
75+
}
76+
return {
77+
78+
'network_identifier': NetworkIdentifierToJSON(value.network_identifier),
79+
'account_identifier': RosettaAccountToJSON(value.account_identifier),
80+
'block_identifier': value.block_identifier,
81+
};
82+
}
83+
84+

0 commit comments

Comments
 (0)