MCPcopy Create free account
hub / github.com/ElementsProject/lightning / Type

Class Type

tools/generate-wire.py:181–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180
181class Type(FieldSet):
182 assignables = [
183 'u8',
184 'u16',
185 'u32',
186 'u64',
187 's8',
188 's16',
189 's32',
190 's64',
191 'tu16',
192 'tu32',
193 'tu64',
194 'bool',
195 'amount_sat',
196 'amount_msat',
197 'bigsize',
198 'varint',
199 'short_channel_id'
200 ]
201
202 typedefs = [
203 'u8',
204 'u16',
205 'u32',
206 'u64',
207 's8',
208 's16',
209 's32',
210 's64',
211 'bool',
212 'secp256k1_ecdsa_signature',
213 'secp256k1_ecdsa_recoverable_signature',
214 'utf8',
215 'wirestring',
216 'bigsize',
217 'varint',
218 ]
219
220 truncated_typedefs = [
221 'tu16',
222 'tu32',
223 'tu64',
224 ]
225
226 # Externally defined variable size types (require a context)
227 varsize_types = [
228 'peer_features',
229 'channel_type',
230 'gossip_getnodes_entry',
231 'gossip_getchannels_entry',
232 'failed_htlc',
233 'added_htlc',
234 'existing_htlc',
235 'inflight',
236 'hsm_utxo',
237 'bitcoin_tx',
238 'wirestring',

Callers 2

add_tlvMethod · 0.85
add_typeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected