Skip to content

Commit

Permalink
fix starcoin-rpc-api schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Nov 28, 2024
1 parent 4981779 commit 9a323ab
Show file tree
Hide file tree
Showing 7 changed files with 652 additions and 181 deletions.
20 changes: 10 additions & 10 deletions rpc/api/generated_rpc_schema/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
],
"properties": {
"init_script": {
"description": "Call a Move script function.",
"description": "Call a Move entry function.",
"type": [
"object",
"null"
Expand Down Expand Up @@ -712,14 +712,14 @@
"additionalProperties": false
},
{
"description": "A transaction that executes an existing script function published on-chain.",
"description": "A transaction that executes an existing entry function published on-chain.",
"type": "object",
"required": [
"ScriptFunction"
"EntryFunction"
],
"properties": {
"ScriptFunction": {
"description": "Call a Move script function.",
"EntryFunction": {
"description": "Call a Move entry function.",
"type": "object",
"required": [
"args",
Expand Down Expand Up @@ -940,7 +940,7 @@
],
"properties": {
"init_script": {
"description": "Call a Move script function.",
"description": "Call a Move entry function.",
"type": [
"object",
"null"
Expand Down Expand Up @@ -996,14 +996,14 @@
"additionalProperties": false
},
{
"description": "A transaction that executes an existing script function published on-chain.",
"description": "A transaction that executes an existing entry function published on-chain.",
"type": "object",
"required": [
"ScriptFunction"
"EntryFunction"
],
"properties": {
"ScriptFunction": {
"description": "Call a Move script function.",
"EntryFunction": {
"description": "Call a Move entry function.",
"type": "object",
"required": [
"args",
Expand Down
107 changes: 48 additions & 59 deletions rpc/api/generated_rpc_schema/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down Expand Up @@ -609,13 +602,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down Expand Up @@ -737,13 +723,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down Expand Up @@ -1182,13 +1161,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down Expand Up @@ -1310,13 +1282,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down Expand Up @@ -1763,13 +1728,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down Expand Up @@ -1891,13 +1849,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down Expand Up @@ -3055,7 +3006,22 @@
},
"event_key": {
"description": "A struct that represents a globally unique id for an Event stream that a user can listen to. By design, the lower part of EventKey is the same as account address.",
"type": "string"
"type": "object",
"required": [
"account_address",
"creation_number"
],
"properties": {
"account_address": {
"type": "string",
"format": "AccountAddress"
},
"creation_number": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
},
"event_seq_number": {
"type": "string"
Expand Down Expand Up @@ -3121,7 +3087,22 @@
],
"items": {
"description": "A struct that represents a globally unique id for an Event stream that a user can listen to. By design, the lower part of EventKey is the same as account address.",
"type": "string"
"type": "object",
"required": [
"account_address",
"creation_number"
],
"properties": {
"account_address": {
"type": "string",
"format": "AccountAddress"
},
"creation_number": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"from_block": {
Expand Down Expand Up @@ -3229,7 +3210,22 @@
},
"event_key": {
"description": "A struct that represents a globally unique id for an Event stream that a user can listen to. By design, the lower part of EventKey is the same as account address.",
"type": "string"
"type": "object",
"required": [
"account_address",
"creation_number"
],
"properties": {
"account_address": {
"type": "string",
"format": "AccountAddress"
},
"creation_number": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
},
"event_seq_number": {
"type": "string"
Expand Down Expand Up @@ -3309,13 +3305,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down
58 changes: 56 additions & 2 deletions rpc/api/generated_rpc_schema/contract_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,22 @@
},
"event_key": {
"description": "A struct that represents a globally unique id for an Event stream that a user can listen to. By design, the lower part of EventKey is the same as account address.",
"type": "string"
"type": "object",
"required": [
"account_address",
"creation_number"
],
"properties": {
"account_address": {
"type": "string",
"format": "AccountAddress"
},
"creation_number": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
},
"event_seq_number": {
"type": "string"
Expand Down Expand Up @@ -1384,6 +1399,18 @@
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ResourceGroup"
],
"properties": {
"ResourceGroup": {
"type": "string"
}
},
"additionalProperties": false
}
]
}
Expand Down Expand Up @@ -2328,7 +2355,22 @@
},
"event_key": {
"description": "A struct that represents a globally unique id for an Event stream that a user can listen to. By design, the lower part of EventKey is the same as account address.",
"type": "string"
"type": "object",
"required": [
"account_address",
"creation_number"
],
"properties": {
"account_address": {
"type": "string",
"format": "AccountAddress"
},
"creation_number": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
},
"event_seq_number": {
"type": "string"
Expand Down Expand Up @@ -2675,6 +2717,18 @@
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ResourceGroup"
],
"properties": {
"ResourceGroup": {
"type": "string"
}
},
"additionalProperties": false
}
]
}
Expand Down
14 changes: 0 additions & 14 deletions rpc/api/generated_rpc_schema/node.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down Expand Up @@ -550,13 +543,6 @@
"type": "string",
"format": "AccountAddress"
},
"author_auth_key": {
"description": "Block author auth key.",
"type": [
"string",
"null"
]
},
"block_accumulator_root": {
"description": "The block accumulator root hash.",
"type": "string",
Expand Down
Loading

0 comments on commit 9a323ab

Please sign in to comment.