MCPcopy Create free account
hub / github.com/ccxt/ccxt / decode

Method decode

python/ccxt/static_dependencies/ethereum/abi/codec.py:202–213  ·  view source on GitHub ↗
(self, types, data)

Source from the content-addressed store, hash-verified

200 return self.decode(types, data)
201
202 def decode(self, types, data):
203 if not is_bytes(data):
204 raise TypeError(
205 f"The `data` value must be of bytes type. Got {type(data)}"
206 )
207
208 decoders = [self._registry.get_decoder(type_str) for type_str in types]
209
210 decoder = TupleDecoder(decoders=decoders)
211 stream = self.stream_class(data)
212
213 return decoder(stream)
214
215
216class ABICodec(ABIEncoder, ABIDecoder):

Callers 15

decode_abiMethod · 0.95
run_commandFunction · 0.45
decode_and_freeFunction · 0.45
DecodeMethod · 0.45
run_commandFunction · 0.45
__call__Method · 0.45
ensure_text_typeFunction · 0.45
normalize_stringMethod · 0.45
_unpackMethod · 0.45
pip_freezeFunction · 0.45
to_textFunction · 0.45
encode_hexFunction · 0.45

Calls 3

is_bytesFunction · 0.85
TupleDecoderClass · 0.85
get_decoderMethod · 0.80

Tested by

no test coverage detected