Skip to content

gas_limit

GasLimit

Attributes:

Name Type Description
gas_limit str

Example: 30000000.

pubkey Union[Unset, str]

The validator's BLS public key, uniquely identifying them. 48-bytes, hex encoded with 0x prefix, case insensitive. Example: 0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a.

Source code in eth_2_key_manager_api_client/models/gas_limit.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@attr.s(auto_attribs=True)
class GasLimit:
    """
    Attributes:
        gas_limit (str):  Example: 30000000.
        pubkey (Union[Unset, str]): The validator's BLS public key, uniquely identifying them. _48-bytes, hex encoded
            with 0x prefix, case insensitive._
             Example: 0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a.
    """

    gas_limit: str
    pubkey: Union[Unset, str] = UNSET
    additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

    def to_dict(self) -> Dict[str, Any]:
        gas_limit = self.gas_limit
        pubkey = self.pubkey

        field_dict: Dict[str, Any] = {}
        field_dict.update(self.additional_properties)
        field_dict.update(
            {
                "gas_limit": gas_limit,
            }
        )
        if pubkey is not UNSET:
            field_dict["pubkey"] = pubkey

        return field_dict

    @classmethod
    def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
        d = src_dict.copy()
        gas_limit = d.pop("gas_limit")

        pubkey = d.pop("pubkey", UNSET)

        gas_limit = cls(
            gas_limit=gas_limit,
            pubkey=pubkey,
        )

        gas_limit.additional_properties = d
        return gas_limit

    @property
    def additional_keys(self) -> List[str]:
        return list(self.additional_properties.keys())

    def __getitem__(self, key: str) -> Any:
        return self.additional_properties[key]

    def __setitem__(self, key: str, value: Any) -> None:
        self.additional_properties[key] = value

    def __delitem__(self, key: str) -> None:
        del self.additional_properties[key]

    def __contains__(self, key: str) -> bool:
        return key in self.additional_properties

ListGasLimitResponseData

Attributes:

Name Type Description
gas_limit str

Example: 30000000.

pubkey Union[Unset, str]

The validator's BLS public key, uniquely identifying them. 48-bytes, hex encoded with 0x prefix, case insensitive. Example: 0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a.

Source code in eth_2_key_manager_api_client/models/list_gas_limit_response_data.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@attr.s(auto_attribs=True)
class ListGasLimitResponseData:
    """
    Attributes:
        gas_limit (str):  Example: 30000000.
        pubkey (Union[Unset, str]): The validator's BLS public key, uniquely identifying them. _48-bytes, hex encoded
            with 0x prefix, case insensitive._
             Example: 0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a.
    """

    gas_limit: str
    pubkey: Union[Unset, str] = UNSET
    additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

    def to_dict(self) -> Dict[str, Any]:
        gas_limit = self.gas_limit
        pubkey = self.pubkey

        field_dict: Dict[str, Any] = {}
        field_dict.update(self.additional_properties)
        field_dict.update(
            {
                "gas_limit": gas_limit,
            }
        )
        if pubkey is not UNSET:
            field_dict["pubkey"] = pubkey

        return field_dict

    @classmethod
    def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
        d = src_dict.copy()
        gas_limit = d.pop("gas_limit")

        pubkey = d.pop("pubkey", UNSET)

        list_gas_limit_response_data = cls(
            gas_limit=gas_limit,
            pubkey=pubkey,
        )

        list_gas_limit_response_data.additional_properties = d
        return list_gas_limit_response_data

    @property
    def additional_keys(self) -> List[str]:
        return list(self.additional_properties.keys())

    def __getitem__(self, key: str) -> Any:
        return self.additional_properties[key]

    def __setitem__(self, key: str, value: Any) -> None:
        self.additional_properties[key] = value

    def __delitem__(self, key: str) -> None:
        del self.additional_properties[key]

    def __contains__(self, key: str) -> bool:
        return key in self.additional_properties

ListGasLimitResponse

Attributes:

Name Type Description
data ListGasLimitResponseData
Source code in eth_2_key_manager_api_client/models/list_gas_limit_response.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@attr.s(auto_attribs=True)
class ListGasLimitResponse:
    """
    Attributes:
        data (ListGasLimitResponseData):
    """

    data: "ListGasLimitResponseData"
    additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

    def to_dict(self) -> Dict[str, Any]:
        data = self.data.to_dict()

        field_dict: Dict[str, Any] = {}
        field_dict.update(self.additional_properties)
        field_dict.update(
            {
                "data": data,
            }
        )

        return field_dict

    @classmethod
    def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
        from eth_2_key_manager_api_client.models.list_gas_limit_response_data import ListGasLimitResponseData

        d = src_dict.copy()
        data = ListGasLimitResponseData.from_dict(d.pop("data"))

        list_gas_limit_response = cls(
            data=data,
        )

        list_gas_limit_response.additional_properties = d
        return list_gas_limit_response

    @property
    def additional_keys(self) -> List[str]:
        return list(self.additional_properties.keys())

    def __getitem__(self, key: str) -> Any:
        return self.additional_properties[key]

    def __setitem__(self, key: str, value: Any) -> None:
        self.additional_properties[key] = value

    def __delitem__(self, key: str) -> None:
        del self.additional_properties[key]

    def __contains__(self, key: str) -> bool:
        return key in self.additional_properties

SetGasLimitRequest

Attributes:

Name Type Description
gas_limit str

Example: 30000000.

Source code in eth_2_key_manager_api_client/models/set_gas_limit_request.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@attr.s(auto_attribs=True)
class SetGasLimitRequest:
    """
    Attributes:
        gas_limit (str):  Example: 30000000.
    """

    gas_limit: str
    additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)

    def to_dict(self) -> Dict[str, Any]:
        gas_limit = self.gas_limit

        field_dict: Dict[str, Any] = {}
        field_dict.update(self.additional_properties)
        field_dict.update(
            {
                "gas_limit": gas_limit,
            }
        )

        return field_dict

    @classmethod
    def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
        d = src_dict.copy()
        gas_limit = d.pop("gas_limit")

        set_gas_limit_request = cls(
            gas_limit=gas_limit,
        )

        set_gas_limit_request.additional_properties = d
        return set_gas_limit_request

    @property
    def additional_keys(self) -> List[str]:
        return list(self.additional_properties.keys())

    def __getitem__(self, key: str) -> Any:
        return self.additional_properties[key]

    def __setitem__(self, key: str, value: Any) -> None:
        self.additional_properties[key] = value

    def __delitem__(self, key: str) -> None:
        del self.additional_properties[key]

    def __contains__(self, key: str) -> bool:
        return key in self.additional_properties