1 | export const runtime = {
|
2 | ConvertTransactionRuntimeApi: [
|
3 | {
|
4 | methods: {
|
5 | convert_transaction: {
|
6 | description: 'Converts an Ethereum-style transaction to Extrinsic',
|
7 | params: [
|
8 | {
|
9 | name: 'transaction',
|
10 | type: 'TransactionV2'
|
11 | }
|
12 | ],
|
13 | type: 'Extrinsic'
|
14 | }
|
15 | },
|
16 | version: 2
|
17 | }
|
18 | ],
|
19 | DebugRuntimeApi: [
|
20 | {
|
21 | methods: {
|
22 | trace_block: {
|
23 | description: 'Trace all block extrinsics',
|
24 | params: [
|
25 | {
|
26 | name: 'extrinsics',
|
27 | type: 'Vec<Extrinsic>'
|
28 | },
|
29 | {
|
30 | name: 'knownTransactions',
|
31 | type: 'Vec<H256>'
|
32 | }
|
33 | ],
|
34 | type: 'Result<(), DispatchError>'
|
35 | },
|
36 | trace_transaction: {
|
37 | description: 'Trace transaction extrinsics',
|
38 | params: [
|
39 | {
|
40 | name: 'extrinsics',
|
41 | type: 'Vec<Extrinsic>'
|
42 | },
|
43 | {
|
44 | name: 'transaction',
|
45 | type: 'EthTransaction'
|
46 | }
|
47 | ],
|
48 | type: 'Result<(), DispatchError>'
|
49 | }
|
50 | },
|
51 | version: 4
|
52 | }
|
53 | ],
|
54 | EthereumRuntimeRPCApi: [
|
55 | {
|
56 | methods: {
|
57 | account_basic: {
|
58 | description: 'Returns pallet_evm::Accounts by address.',
|
59 | params: [
|
60 | {
|
61 | name: 'address',
|
62 | type: 'H160'
|
63 | }
|
64 | ],
|
65 | type: 'EvmAccount'
|
66 | },
|
67 | account_code_at: {
|
68 | description: 'For a given account address, returns pallet_evm::AccountCodes.',
|
69 | params: [
|
70 | {
|
71 | name: 'address',
|
72 | type: 'H160'
|
73 | }
|
74 | ],
|
75 | type: 'Bytes'
|
76 | },
|
77 | author: {
|
78 | description: 'Returns the converted FindAuthor::find_author authority id.',
|
79 | params: [],
|
80 | type: 'H160'
|
81 | },
|
82 | call: {
|
83 | description: 'Returns a frame_ethereum::call response. If `estimate` is true,',
|
84 | params: [
|
85 | {
|
86 | name: 'from',
|
87 | type: 'H160'
|
88 | },
|
89 | {
|
90 | name: 'to',
|
91 | type: 'H160'
|
92 | },
|
93 | {
|
94 | name: 'data',
|
95 | type: 'Vec<u8>'
|
96 | },
|
97 | {
|
98 | name: 'value',
|
99 | type: 'U256'
|
100 | },
|
101 | {
|
102 | name: 'gasLimit',
|
103 | type: 'U256'
|
104 | },
|
105 | {
|
106 | name: 'maxFeePerGas',
|
107 | type: 'Option<U256>'
|
108 | },
|
109 | {
|
110 | name: 'maxPriorityFeePerGas',
|
111 | type: 'Option<U256>'
|
112 | },
|
113 | {
|
114 | name: 'nonce',
|
115 | type: 'Option<U256>'
|
116 | },
|
117 | {
|
118 | name: 'estimate',
|
119 | type: 'bool'
|
120 | },
|
121 | {
|
122 | name: 'accessList',
|
123 | type: 'Option<Vec<(H160, Vec<H256>)>>'
|
124 | }
|
125 | ],
|
126 | type: 'Result<EvmCallInfo, DispatchError>'
|
127 | },
|
128 | chain_id: {
|
129 | description: 'Returns runtime defined pallet_evm::ChainId.',
|
130 | params: [],
|
131 | type: 'u64'
|
132 | },
|
133 | create: {
|
134 | description: 'Returns a frame_ethereum::call response. If `estimate` is true,',
|
135 | params: [
|
136 | {
|
137 | name: 'from',
|
138 | type: 'H160'
|
139 | },
|
140 | {
|
141 | name: 'data',
|
142 | type: 'Vec<u8>'
|
143 | },
|
144 | {
|
145 | name: 'value',
|
146 | type: 'U256'
|
147 | },
|
148 | {
|
149 | name: 'gasLimit',
|
150 | type: 'U256'
|
151 | },
|
152 | {
|
153 | name: 'maxFeePerGas',
|
154 | type: 'Option<U256>'
|
155 | },
|
156 | {
|
157 | name: 'maxPriorityFeePerGas',
|
158 | type: 'Option<U256>'
|
159 | },
|
160 | {
|
161 | name: 'nonce',
|
162 | type: 'Option<U256>'
|
163 | },
|
164 | {
|
165 | name: 'estimate',
|
166 | type: 'bool'
|
167 | },
|
168 | {
|
169 | name: 'accessList',
|
170 | type: 'Option<Vec<(H160, Vec<H256>)>>'
|
171 | }
|
172 | ],
|
173 | type: 'Result<EvmCreateInfo, DispatchError>'
|
174 | },
|
175 | current_all: {
|
176 | description: 'Return all the current data for a block in a single runtime call.',
|
177 | params: [],
|
178 | type: '(Option<BlockV2>, Option<Vec<EthReceiptV3>>, Option<Vec<EthTransactionStatus>>)'
|
179 | },
|
180 | current_block: {
|
181 | description: 'Return the current block.',
|
182 | params: [],
|
183 | type: 'BlockV2'
|
184 | },
|
185 | current_receipts: {
|
186 | description: 'Return the current receipt.',
|
187 | params: [],
|
188 | type: 'Option<Vec<EthReceiptV3>>'
|
189 | },
|
190 | current_transaction_statuses: {
|
191 | description: 'Return the current transaction status.',
|
192 | params: [],
|
193 | type: 'Option<Vec<EthTransactionStatus>>'
|
194 | },
|
195 | elasticity: {
|
196 | description: 'Return the elasticity multiplier.',
|
197 | params: [],
|
198 | type: 'Option<Permill>'
|
199 | },
|
200 | extrinsic_filter: {
|
201 | description: 'Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.',
|
202 | params: [
|
203 | {
|
204 | name: 'xts',
|
205 | type: 'Vec<Extrinsic>'
|
206 | }
|
207 | ],
|
208 | type: 'Vec<TransactionV2>'
|
209 | },
|
210 | gas_price: {
|
211 | description: 'Returns FixedGasPrice::min_gas_price',
|
212 | params: [],
|
213 | type: 'u256'
|
214 | },
|
215 | storage_at: {
|
216 | description: 'For a given account address and index, returns pallet_evm::AccountStorages.',
|
217 | params: [
|
218 | {
|
219 | name: 'address',
|
220 | type: 'H160'
|
221 | },
|
222 | {
|
223 | name: 'index',
|
224 | type: 'u256'
|
225 | }
|
226 | ],
|
227 | type: 'H256'
|
228 | }
|
229 | },
|
230 | version: 4
|
231 | }
|
232 | ]
|
233 | };
|