-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsequencer.openapi.yml
More file actions
143 lines (143 loc) · 5.13 KB
/
Copy pathsequencer.openapi.yml
File metadata and controls
143 lines (143 loc) · 5.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
openapi: 3.0.3
info:
title: Signet Sequencer API
version: 1.0.0
description: API to obtain a signature for a new Signet block.
servers:
- url: https://sequencer.api.init4.network
paths:
/signBlock:
post:
summary: Obtain a signature for a new Signet block
description: Obtain a signature for a new Signet block.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
host_block_number:
type: string
description: The block number of the host formatted as a 0x-prefixed minimal hex string.
host_chain_id:
type: string
description: The chain ID of the host formatted as a 0x-prefixed minimal hex string.
ru_chain_id:
type: string
description: The chain ID of the rollup formatted as a 0x-prefixed minimal hex string.
gas_limit:
type: string
description: The gas limit of the rollup block formatted as a 0x-prefixed minimal hex string.
ru_reward_address:
type: string
description: The reward address on the rollup for the builder formatted as a 0x-prefixed minimal hex string.
contents:
type: string
description: keccak256 hash of rlp-encoded transactions in the block formatted as a 0x-prefixed minimal hex string.
required:
- host_block_number
- host_chain_id
- ru_chain_id
- gas_limit
- ru_reward_address
- contents
responses:
'200':
description: A JSON SignResponse
content:
application/json:
schema:
type: object
properties:
req:
type: object
description: The inputted SignRequest.
properties:
host_block_number:
type: string
description: The block number of the host formatted as a 0x-prefixed minimal hex string.
host_chain_id:
type: string
description: The chain ID of the host formatted as a 0x-prefixed minimal hex string.
ru_chain_id:
type: string
description: The chain ID of the rollup formatted as a 0x-prefixed minimal hex string.
gas_limit:
type: string
description: The gas limit of the rollup block formatted as a 0x-prefixed minimal hex string.
ru_reward_address:
type: string
description: The reward address on the rollup for the builder formatted as a 0x-prefixed minimal hex string.
contents:
type: string
description: keccak256 hash of rlp-encoded transactions in the block formatted as a 0x-prefixed minimal hex string.
sig:
type: object
description: The signature over the SignRequest.
properties:
yParity:
type: boolean
description: The parity of the y value of the signature.
r:
type: string
description: Signature R field.
s:
type: string
description: Signature S field.
components:
schemas:
SignRequest:
type: object
properties:
host_block_number:
type: string
description: The block number of the host.
host_chain_id:
type: string
description: The chain ID of the host.
ru_chain_id:
type: string
description: The chain ID of the rollup.
gas_limit:
type: string
description: The gas limit of the rollup block.
ru_reward_address:
type: string
description: The reward address on the rollup for the builder.
contents:
type: string
description: keccak256 hash of rlp-encoded transactions in the block.
required:
- host_block_number
- host_chain_id
- ru_chain_id
- gas_limit
- ru_reward_address
- contents
Signature:
type: object
properties:
yParity:
type: boolean
description: The parity of the y value of the signature.
r:
type: string
description: Signature R field.
s:
type: string
description: Signature S field.
required:
- yParity
- r
- s
SignResponse:
type: object
properties:
req:
$ref: '#/components/schemas/SignRequest'
sig:
$ref: '#/components/schemas/Signature'
required:
- req
- sig