You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -20825,6 +20837,12 @@ impl ::std::convert::From<()> for RpcClientConfigRequest {
20825
20837
#[doc = " \"maxItems\": 2,"]
20826
20838
#[doc = " \"minItems\": 2"]
20827
20839
#[doc = " },"]
20840
+
#[doc = " \"chunks_cache_height_horizon\": {"]
20841
+
#[doc = " \"description\": \"Height horizon for the chunk cache. A chunk is removed from the cache\\nif its height + chunks_cache_height_horizon < largest_seen_height.\\nThe default value is DEFAULT_CHUNKS_CACHE_HEIGHT_HORIZON.\","]
#[doc = "Height horizon for the chunk cache. A chunk is removed from the cache\nif its height + chunks_cache_height_horizon < largest_seen_height.\nThe default value is DEFAULT_CHUNKS_CACHE_HEIGHT_HORIZON."]
@@ -28026,7 +28048,7 @@ impl ::std::default::Default for RpcValidatorsOrderedRequest {
28026
28048
#[doc = " ]"]
28027
28049
#[doc = " },"]
28028
28050
#[doc = " \"storage_amount_per_byte\": {"]
28029
-
#[doc = " \"description\": \"Amount of yN per byte required to have on the account. See\\n<https://nomicon.io/Economics/Economic#state-stake> for details.\","]
28051
+
#[doc = " \"description\": \"Amount of yN per byte required to have on the account. See\\n<https://nomicon.io/Economics/Economics.html#state-stake> for details.\","]
impl ::std::convert::From<&Self> for ShardLayout {
28326
28361
fn from(value: &ShardLayout) -> Self {
@@ -28342,6 +28377,11 @@ impl ::std::convert::From<ShardLayoutV2> for ShardLayout {
28342
28377
Self::V2(value)
28343
28378
}
28344
28379
}
28380
+
impl ::std::convert::From<ShardLayoutV3> for ShardLayout {
28381
+
fn from(value: ShardLayoutV3) -> Self {
28382
+
Self::V3(value)
28383
+
}
28384
+
}
28345
28385
#[doc = "A shard layout that maps accounts evenly across all shards -- by calculate the hash of account\nid and mod number of shards. This is added to capture the old `account_id_to_shard_id` algorithm,\nto keep backward compatibility for some existing tests.\n`parent_shards` for `ShardLayoutV1` is always `None`, meaning it can only be the first shard layout\na chain uses."]
impl ::std::convert::From<&ShardLayoutV3> for ShardLayoutV3 {
28650
+
fn from(value: &ShardLayoutV3) -> Self {
28651
+
value.clone()
28652
+
}
28653
+
}
28548
28654
#[doc = "`ShardUId` is a unique representation for shards from different shard layouts.\n\nComparing to `ShardId`, which is just an ordinal number ranging from 0 to NUM_SHARDS-1,\n`ShardUId` provides a way to unique identify shards when shard layouts may change across epochs.\nThis is important because we store states indexed by shards in our database, so we need a\nway to unique identify shard even when shards change across epochs.\nAnother difference between `ShardUId` and `ShardId` is that `ShardUId` should only exist in\na node's internal state while `ShardId` can be exposed to outside APIs and used in protocol\nlevel information (for example, `ShardChunkHeader` contains `ShardId` instead of `ShardUId`)"]
Copy file name to clipboardExpand all lines: openapi.json
+78-2Lines changed: 78 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"openapi": "3.0.0",
3
3
"info": {
4
4
"title": "NEAR Protocol JSON RPC API",
5
-
"version": "1.2.1"
5
+
"version": "1.2.2"
6
6
},
7
7
"paths": {
8
8
"/EXPERIMENTAL_changes": {
@@ -10575,6 +10575,19 @@
10575
10575
},
10576
10576
"type": "array"
10577
10577
},
10578
+
"refund_to": {
10579
+
"anyOf": [
10580
+
{
10581
+
"$ref": "#/components/schemas/AccountId"
10582
+
},
10583
+
{
10584
+
"enum": [
10585
+
null
10586
+
],
10587
+
"nullable": true
10588
+
}
10589
+
]
10590
+
},
10578
10591
"signer_id": {
10579
10592
"$ref": "#/components/schemas/AccountId"
10580
10593
},
@@ -11317,6 +11330,12 @@
11317
11330
"minItems": 2,
11318
11331
"type": "array"
11319
11332
},
11333
+
"chunks_cache_height_horizon": {
11334
+
"description": "Height horizon for the chunk cache. A chunk is removed from the cache\nif its height + chunks_cache_height_horizon < largest_seen_height.\nThe default value is DEFAULT_CHUNKS_CACHE_HEIGHT_HORIZON.",
11335
+
"format": "uint64",
11336
+
"minimum": 0,
11337
+
"type": "integer"
11338
+
},
11320
11339
"client_background_migration_threads": {
11321
11340
"description": "Number of threads to execute background migration work in client.",
11322
11341
"format": "uint",
@@ -16170,7 +16189,7 @@
16170
16189
"$ref": "#/components/schemas/NearToken"
16171
16190
}
16172
16191
],
16173
-
"description": "Amount of yN per byte required to have on the account. See\n<https://nomicon.io/Economics/Economic#state-stake> for details."
16192
+
"description": "Amount of yN per byte required to have on the account. See\n<https://nomicon.io/Economics/Economics.html#state-stake> for details."
16174
16193
},
16175
16194
"transaction_costs": {
16176
16195
"allOf": [
@@ -16301,6 +16320,18 @@
16301
16320
"V2"
16302
16321
],
16303
16322
"type": "object"
16323
+
},
16324
+
{
16325
+
"additionalProperties": false,
16326
+
"properties": {
16327
+
"V3": {
16328
+
"$ref": "#/components/schemas/ShardLayoutV3"
16329
+
}
16330
+
},
16331
+
"required": [
16332
+
"V3"
16333
+
],
16334
+
"type": "object"
16304
16335
}
16305
16336
]
16306
16337
},
@@ -16428,6 +16459,51 @@
16428
16459
],
16429
16460
"type": "object"
16430
16461
},
16462
+
"ShardLayoutV3": {
16463
+
"description": "Counterpart to `ShardLayoutV3` composed of maps with string keys to aid\nserde serialization.",
16464
+
"properties": {
16465
+
"boundary_accounts": {
16466
+
"items": {
16467
+
"$ref": "#/components/schemas/AccountId"
16468
+
},
16469
+
"type": "array"
16470
+
},
16471
+
"id_to_index_map": {
16472
+
"additionalProperties": {
16473
+
"format": "uint",
16474
+
"minimum": 0,
16475
+
"type": "integer"
16476
+
},
16477
+
"type": "object"
16478
+
},
16479
+
"last_split": {
16480
+
"$ref": "#/components/schemas/ShardId"
16481
+
},
16482
+
"shard_ids": {
16483
+
"items": {
16484
+
"$ref": "#/components/schemas/ShardId"
16485
+
},
16486
+
"type": "array"
16487
+
},
16488
+
"shards_split_map": {
16489
+
"additionalProperties": {
16490
+
"items": {
16491
+
"$ref": "#/components/schemas/ShardId"
16492
+
},
16493
+
"type": "array"
16494
+
},
16495
+
"type": "object"
16496
+
}
16497
+
},
16498
+
"required": [
16499
+
"boundary_accounts",
16500
+
"shard_ids",
16501
+
"id_to_index_map",
16502
+
"shards_split_map",
16503
+
"last_split"
16504
+
],
16505
+
"type": "object"
16506
+
},
16431
16507
"ShardUId": {
16432
16508
"description": "`ShardUId` is a unique representation for shards from different shard layouts.\n\nComparing to `ShardId`, which is just an ordinal number ranging from 0 to NUM_SHARDS-1,\n`ShardUId` provides a way to unique identify shards when shard layouts may change across epochs.\nThis is important because we store states indexed by shards in our database, so we need a\nway to unique identify shard even when shards change across epochs.\nAnother difference between `ShardUId` and `ShardId` is that `ShardUId` should only exist in\na node's internal state while `ShardId` can be exposed to outside APIs and used in protocol\nlevel information (for example, `ShardChunkHeader` contains `ShardId` instead of `ShardUId`)",
0 commit comments