1919
2020
2121class Price :
22- def __init__ (self , conf , expo , price , publish_time ):
22+ def __init__ (self , conf , expo , price , publish_time ) -> None :
2323 self .conf = conf
2424 self .expo = expo
2525 self .price = price
@@ -38,7 +38,7 @@ def to_dict(self):
3838
3939
4040class PriceUpdate :
41- def __init__ (self , ema_price , price_id , price ):
41+ def __init__ (self , ema_price , price_id , price ) -> None :
4242 self .ema_price = ema_price
4343 self .id = price_id
4444 self .price = price
@@ -66,7 +66,7 @@ def __init__(
6666 last_attested_publish_time ,
6767 price_feed ,
6868 emitter_chain_id ,
69- ):
69+ ) -> None :
7070 self .seq_num = seq_num
7171 self .vaa = vaa
7272 self .publish_time = publish_time
@@ -117,7 +117,7 @@ def to_dict(self, verbose=False, vaa_format=DEFAULT_VAA_ENCODING):
117117class MerkleUpdate :
118118 def __init__ (
119119 self , message_size : int , message : bytes , proof_size : int , proof : List [bytes ]
120- ):
120+ ) -> None :
121121 self .message_size = message_size
122122 self .message = message
123123 self .proof_size = proof_size
@@ -142,7 +142,7 @@ def __init__(
142142 vaa : bytes ,
143143 num_updates : int ,
144144 updates : List [MerkleUpdate ],
145- ):
145+ ) -> None :
146146 self .magic = magic
147147 self .major_version = major_version
148148 self .minor_version = minor_version
@@ -195,7 +195,7 @@ def encode_vaa_for_chain(vaa: str, vaa_format: str, buffer=False) -> Union[bytes
195195
196196
197197# Referenced from https://github.com/wormhole-foundation/wormhole/blob/main/sdk/js/src/vaa/wormhole.ts#L26-L56
198- def parse_vaa (vaa , encoding ) :
198+ def parse_vaa (vaa : str , encoding : str ) -> dict :
199199 vaa = cast (bytes , encode_vaa_for_chain (vaa , encoding , buffer = True ))
200200
201201 num_signers = vaa [5 ]
0 commit comments