| 183 | |
| 184 | |
| 185 | class Type(FieldSet): |
| 186 | assignables = [ |
| 187 | 'u8', |
| 188 | 'u16', |
| 189 | 'u32', |
| 190 | 'u64', |
| 191 | 'tu16', |
| 192 | 'tu32', |
| 193 | 'tu64', |
| 194 | 'bool', |
| 195 | 'amount_sat', |
| 196 | 'amount_msat', |
| 197 | 'bigsize', |
| 198 | 'varint' |
| 199 | ] |
| 200 | |
| 201 | typedefs = [ |
| 202 | 'u8', |
| 203 | 'u16', |
| 204 | 'u32', |
| 205 | 'u64', |
| 206 | 'bool', |
| 207 | 'secp256k1_ecdsa_signature', |
| 208 | 'secp256k1_ecdsa_recoverable_signature', |
| 209 | 'utf8', |
| 210 | 'wirestring', |
| 211 | 'bigsize', |
| 212 | 'varint', |
| 213 | ] |
| 214 | |
| 215 | truncated_typedefs = [ |
| 216 | 'tu16', |
| 217 | 'tu32', |
| 218 | 'tu64', |
| 219 | ] |
| 220 | |
| 221 | # Externally defined variable size types (require a context) |
| 222 | varsize_types = [ |
| 223 | 'peer_features', |
| 224 | 'channel_type', |
| 225 | 'gossip_getnodes_entry', |
| 226 | 'gossip_getchannels_entry', |
| 227 | 'failed_htlc', |
| 228 | 'existing_htlc', |
| 229 | 'simple_htlc', |
| 230 | 'utxo', |
| 231 | 'bitcoin_tx', |
| 232 | 'wirestring', |
| 233 | 'per_peer_state', |
| 234 | 'bitcoin_tx_output', |
| 235 | 'exclude_entry', |
| 236 | 'fee_states', |
| 237 | 'height_states', |
| 238 | 'onionreply', |
| 239 | 'feature_set', |
| 240 | 'onionmsg_path', |
| 241 | 'route_hop', |
| 242 | 'tx_parts', |