code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
YVAULT_ABI = [ { "inputs": [ {"internalType": "address", "name": "_token", "type": "address"}, {"internalType": "address", "name": "_controller", "type": "address"}, ], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, ...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/oracles/abis/yearn_abis.py
0.521959
0.48182
yearn_abis.py
pypi
multicall_v3_abi = [ { "inputs": [ { "components": [ {"internalType": "address", "name": "target", "type": "address"}, {"internalType": "bytes", "name": "callData", "type": "bytes"}, ], "internalType": "struc...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/abis/multicall.py
0.557364
0.571288
multicall.py
pypi
import re from typing import Any, Dict, List, Union from eth_abi import encode as encode_abi from eth_account import Account from eth_typing import Hash32, HexStr from hexbytes import HexBytes from ..utils import fast_keccak def encode_data(primary_type: str, data, types): """ Encode structured data as per ...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/eip712/__init__.py
0.755366
0.363449
__init__.py
pypi
import json import os import sys from typing import Any, Dict, Optional from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from web3.contract import Contract from gnosis.util import cache def load_contract_interface(file_name): return _load_json_file(_abi_file_path(file_n...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/eth/contracts/__init__.py
0.621885
0.210543
__init__.py
pypi
from enum import Enum from logging import getLogger from typing import List, Optional, Union from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumClient, EthereumTxSent from gnosis.eth.contracts imp...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/multi_send.py
0.915252
0.451206
multi_send.py
pypi
from abc import ABC, abstractmethod from enum import Enum from logging import getLogger from typing import List, Union from eth_abi import decode as decode_abi from eth_abi import encode as encode_abi from eth_abi.exceptions import DecodingError from eth_account.messages import defunct_hash_message from eth_typing imp...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/safe_signature.py
0.889205
0.310002
safe_signature.py
pypi
from functools import cached_property from typing import Any, Dict, List, NoReturn, Optional, Tuple, Type from eth_account import Account from hexbytes import HexBytes from packaging.version import Version from web3.exceptions import Web3Exception from web3.types import BlockIdentifier, TxParams, Wei from gnosis.eth ...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/safe_tx.py
0.910689
0.230811
safe_tx.py
pypi
import dataclasses import math from enum import Enum from functools import cached_property from logging import getLogger from typing import Callable, List, NamedTuple, Optional, Union from eth_abi import encode as encode_abi from eth_abi.exceptions import DecodingError from eth_abi.packed import encode_packed from eth...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/safe.py
0.889571
0.178204
safe.py
pypi
from typing import Dict, List, Tuple from gnosis.eth import EthereumNetwork MASTER_COPIES: Dict[EthereumNetwork, List[Tuple[str, int, str]]] = { EthereumNetwork.MAINNET: [ ( "0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 14981217, "1.3.0+L2", ), # safe singleton...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/addresses.py
0.499268
0.284132
addresses.py
pypi
from logging import getLogger from typing import Optional from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from web3.contract import Contract from gnosis.eth import EthereumClient, EthereumTxSent from gnosis.eth.contracts import ( get_paying_proxy_deployed_bytecode, ge...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/proxy_factory.py
0.910927
0.157072
proxy_factory.py
pypi
from rest_framework import serializers from rest_framework.exceptions import ValidationError from gnosis.eth.constants import ( SIGNATURE_R_MAX_VALUE, SIGNATURE_R_MIN_VALUE, SIGNATURE_S_MAX_VALUE, SIGNATURE_S_MIN_VALUE, SIGNATURE_V_MAX_VALUE, SIGNATURE_V_MIN_VALUE, ) from gnosis.eth.django.seri...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/serializers.py
0.78838
0.331039
serializers.py
pypi
import math import os from logging import getLogger from typing import Any, Dict, List, Optional, Tuple import rlp from eth.vm.forks.frontier.transactions import FrontierTransaction from eth_keys.exceptions import BadSignature from hexbytes import HexBytes from web3 import Web3 from web3.contract import ContractConstr...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/safe_creation_tx.py
0.813387
0.302662
safe_creation_tx.py
pypi
from typing import List, Tuple, Union from eth_keys import keys from eth_keys.exceptions import BadSignature from hexbytes import HexBytes from gnosis.eth.constants import NULL_ADDRESS def signature_split( signatures: Union[bytes, str], pos: int = 0 ) -> Tuple[int, int, int]: """ :param signatures: sign...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/signatures.py
0.923049
0.493958
signatures.py
pypi
from typing import TypedDict from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress, HexStr from gnosis.eth.ethereum_client import EthereumNetwork from .. import SafeTx from ..signatures import signature_split from .base_api import SafeAPIException, SafeBaseAPI class RelayEstimatio...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/api/relay_service_api.py
0.725357
0.214918
relay_service_api.py
pypi
import logging import time from typing import Any, Dict, List, Optional, Tuple, Union from eth_account.signers.local import LocalAccount from eth_typing import HexStr from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumNetwork from gnosis.safe import SafeTx from .base_api import SafeAP...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/safe/api/transaction_service_api.py
0.73782
0.236549
transaction_service_api.py
pypi
from dataclasses import dataclass from enum import Enum from typing import Any, Dict, Literal from eth_typing import ChecksumAddress, Hash32 @dataclass class Order: sellToken: ChecksumAddress buyToken: ChecksumAddress receiver: ChecksumAddress sellAmount: int buyAmount: int validTo: int a...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/protocol/order.py
0.843412
0.333829
order.py
pypi
from functools import cached_property from typing import Any, Dict, List, Optional, TypedDict, Union, cast import requests from eth_account import Account from eth_account.messages import encode_defunct from eth_typing import AnyAddress, ChecksumAddress, HexStr from hexbytes import HexBytes from gnosis.eth import Eth...
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/protocol/gnosis_protocol_api.py
0.876119
0.222236
gnosis_protocol_api.py
pypi
from enum import Enum, unique class EthereumNetworkNotSupported(Exception): pass @unique class EthereumNetwork(Enum): """ Use https://chainlist.org/ as a reference """ UNKNOWN = -1 OLYMPIC = 0 MAINNET = 1 EXPANSE_NETWORK = 2 ROPSTEN = 3 RINKEBY = 4 GOERLI = 5 ETHEREU...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/ethereum_network.py
0.41182
0.39097
ethereum_network.py
pypi
import warnings from secrets import token_bytes from typing import Tuple, Union import eth_abi from eth._utils.address import generate_contract_address from eth_keys import keys from eth_typing import AnyAddress, ChecksumAddress, HexStr from eth_utils import to_normalized_address from hexbytes import HexBytes from sha...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/utils.py
0.907281
0.559892
utils.py
pypi
import logging from dataclasses import dataclass from typing import Any, List, Optional, Sequence, Tuple import eth_abi from eth_abi.exceptions import DecodingError from eth_account.signers.local import LocalAccount from eth_typing import BlockIdentifier, BlockNumber, ChecksumAddress from hexbytes import HexBytes from...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/multicall.py
0.855957
0.229978
multicall.py
pypi
import json import time from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from .contract_metadata import ContractMetadata class EtherscanClientException(Exception): pass class EtherscanClientConfigurationProblem(Exception): pass class ...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/clients/etherscan_client.py
0.74382
0.381652
etherscan_client.py
pypi
from typing import Any, Dict, List, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from ..utils import fast_is_checksum_address from .contract_metadata import ContractMetadata class Sourcify: """ Get contract metadata from Sourcify. Matches can be full or partial: ...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/clients/sourcify.py
0.915323
0.365457
sourcify.py
pypi
import json from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress from .. import EthereumNetwork from .contract_metadata import ContractMetadata class BlockscoutClientException(Exception): pass class BlockScoutConfigurationProblem(Blocks...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/clients/blockscout_client.py
0.729809
0.384392
blockscout_client.py
pypi
import binascii from typing import Optional, Union from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from eth_typing import ChecksumAddress from eth_utils import to_normalized_address from hexbytes import HexBytes from ..utils import fast_bytes_to_...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/django/models.py
0.826362
0.198239
models.py
pypi
import binascii from typing import Any, Optional from django import forms from django.core import exceptions from django.core.exceptions import ValidationError from django.utils.translation import gettext as _ from hexbytes import HexBytes from gnosis.eth.utils import fast_is_checksum_address class EthereumAddress...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/django/forms.py
0.856107
0.237443
forms.py
pypi
import functools import logging from functools import cached_property from typing import Optional from eth_abi.exceptions import DecodingError from eth_typing import ChecksumAddress from web3.contract import Contract from web3.exceptions import Web3Exception from .. import EthereumClient, EthereumNetwork from ..const...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/oracles/uniswap_v3.py
0.879652
0.163813
uniswap_v3.py
pypi
mooniswap_abi = [ { "inputs": [ {"internalType": "contract IERC20", "name": "_token0", "type": "address"}, {"internalType": "contract IERC20", "name": "_token1", "type": "address"}, {"internalType": "string", "name": "name", "type": "string"}, {"internalType":...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/oracles/abis/mooniswap_abis.py
0.535098
0.515315
mooniswap_abis.py
pypi
uniswap_v3_factory_abi = [ {"inputs": [], "stateMutability": "nonpayable", "type": "constructor"}, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "uint24", "name": "fee", "type": "uint24", ...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/oracles/abis/uniswap_v3.py
0.515864
0.476275
uniswap_v3.py
pypi
AAVE_ATOKEN_ABI = [ { "inputs": [ { "internalType": "contract ILendingPool", "name": "pool", "type": "address", }, { "internalType": "address", "name": "underlyingAssetAddress", ...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/oracles/abis/aave_abis.py
0.566019
0.415847
aave_abis.py
pypi
curve_address_provider_abi = [ { "name": "NewAddressIdentifier", "inputs": [ {"type": "uint256", "name": "id", "indexed": True}, {"type": "address", "name": "addr", "indexed": False}, {"type": "string", "name": "description", "indexed": False}, ], ...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/oracles/abis/curve_abis.py
0.663124
0.531149
curve_abis.py
pypi
cream_ctoken_abi = [ { "inputs": [ {"internalType": "address", "name": "underlying_", "type": "address"}, { "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address", }, { ...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/oracles/abis/cream_abis.py
0.577495
0.492249
cream_abis.py
pypi
balancer_pool_abi = [ { "inputs": [], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "address", "name...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/oracles/abis/balancer_abis.py
0.493897
0.450299
balancer_abis.py
pypi
YVAULT_ABI = [ { "inputs": [ {"internalType": "address", "name": "_token", "type": "address"}, {"internalType": "address", "name": "_controller", "type": "address"}, ], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, ...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/oracles/abis/yearn_abis.py
0.521959
0.48182
yearn_abis.py
pypi
multicall_v3_abi = [ { "inputs": [ { "components": [ {"internalType": "address", "name": "target", "type": "address"}, {"internalType": "bytes", "name": "callData", "type": "bytes"}, ], "internalType": "struc...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/abis/multicall.py
0.557364
0.571288
multicall.py
pypi
import re from typing import Any, Dict, List, Union from eth_abi import encode as encode_abi from eth_account import Account from eth_typing import Hash32, HexStr from hexbytes import HexBytes from ..utils import fast_keccak def encode_data(primary_type: str, data, types): """ Encode structured data as per ...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/eip712/__init__.py
0.755366
0.363449
__init__.py
pypi
import json import os import sys from typing import Any, Dict, Optional from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from web3.contract import Contract from gnosis.util import cache def load_contract_interface(file_name): return _load_json_file(_abi_file_path(file_n...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/eth/contracts/__init__.py
0.621885
0.210543
__init__.py
pypi
from enum import Enum from logging import getLogger from typing import List, Optional, Union from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumClient, EthereumTxSent from gnosis.eth.contracts imp...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/multi_send.py
0.915252
0.451206
multi_send.py
pypi
from abc import ABC, abstractmethod from enum import Enum from logging import getLogger from typing import List, Union from eth_abi import decode as decode_abi from eth_abi import encode as encode_abi from eth_abi.exceptions import DecodingError from eth_account.messages import defunct_hash_message from eth_typing imp...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/safe_signature.py
0.889205
0.310002
safe_signature.py
pypi
from functools import cached_property from typing import Any, Dict, List, NoReturn, Optional, Tuple, Type from eth_account import Account from hexbytes import HexBytes from packaging.version import Version from web3.exceptions import Web3Exception from web3.types import BlockIdentifier, TxParams, Wei from gnosis.eth ...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/safe_tx.py
0.910689
0.230811
safe_tx.py
pypi
import dataclasses import math from enum import Enum from functools import cached_property from logging import getLogger from typing import Callable, List, NamedTuple, Optional, Union from eth_abi import encode as encode_abi from eth_abi.exceptions import DecodingError from eth_abi.packed import encode_packed from eth...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/safe.py
0.889571
0.178204
safe.py
pypi
from typing import Dict, List, Tuple from gnosis.eth import EthereumNetwork MASTER_COPIES: Dict[EthereumNetwork, List[Tuple[str, int, str]]] = { EthereumNetwork.MAINNET: [ ( "0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 14981217, "1.3.0+L2", ), # safe singleton...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/addresses.py
0.499268
0.284132
addresses.py
pypi
from logging import getLogger from typing import Optional from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from web3.contract import Contract from gnosis.eth import EthereumClient, EthereumTxSent from gnosis.eth.contracts import ( get_paying_proxy_deployed_bytecode, ge...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/proxy_factory.py
0.910927
0.157072
proxy_factory.py
pypi
from rest_framework import serializers from rest_framework.exceptions import ValidationError from gnosis.eth.constants import ( SIGNATURE_R_MAX_VALUE, SIGNATURE_R_MIN_VALUE, SIGNATURE_S_MAX_VALUE, SIGNATURE_S_MIN_VALUE, SIGNATURE_V_MAX_VALUE, SIGNATURE_V_MIN_VALUE, ) from gnosis.eth.django.seri...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/serializers.py
0.78838
0.331039
serializers.py
pypi
import math import os from logging import getLogger from typing import Any, Dict, List, Optional, Tuple import rlp from eth.vm.forks.frontier.transactions import FrontierTransaction from eth_keys.exceptions import BadSignature from hexbytes import HexBytes from web3 import Web3 from web3.contract import ContractConstr...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/safe_creation_tx.py
0.813387
0.302662
safe_creation_tx.py
pypi
from typing import List, Tuple, Union from eth_keys import keys from eth_keys.exceptions import BadSignature from hexbytes import HexBytes from gnosis.eth.constants import NULL_ADDRESS def signature_split( signatures: Union[bytes, str], pos: int = 0 ) -> Tuple[int, int, int]: """ :param signatures: sign...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/signatures.py
0.923049
0.493958
signatures.py
pypi
from typing import TypedDict from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress, HexStr from gnosis.eth.ethereum_client import EthereumNetwork from .. import SafeTx from ..signatures import signature_split from .base_api import SafeAPIException, SafeBaseAPI class RelayEstimatio...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/api/relay_service_api.py
0.724188
0.213623
relay_service_api.py
pypi
import logging import time from typing import Any, Dict, List, Optional, Tuple, Union from eth_account.signers.local import LocalAccount from eth_typing import HexStr from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumNetwork from gnosis.safe import SafeTx from .base_api import SafeAP...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/safe/api/transaction_service_api.py
0.73782
0.236549
transaction_service_api.py
pypi
from dataclasses import dataclass from enum import Enum from typing import Any, Dict, Literal from eth_typing import ChecksumAddress, Hash32 @dataclass class Order: sellToken: ChecksumAddress buyToken: ChecksumAddress receiver: ChecksumAddress sellAmount: int buyAmount: int validTo: int a...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/protocol/order.py
0.843412
0.333829
order.py
pypi
from functools import cached_property from typing import Any, Dict, List, Optional, TypedDict, Union, cast import requests from eth_account import Account from eth_account.messages import encode_defunct from eth_typing import AnyAddress, ChecksumAddress, HexStr from hexbytes import HexBytes from gnosis.eth import Eth...
/safe_eth_py_tvl-5.9.0-py3-none-any.whl/gnosis/protocol/gnosis_protocol_api.py
0.904096
0.227083
gnosis_protocol_api.py
pypi
from enum import Enum, unique class EthereumNetworkNotSupported(Exception): pass @unique class EthereumNetwork(Enum): """ Use https://chainlist.org/ as a reference """ UNKNOWN = -1 OLYMPIC = 0 MAINNET = 1 EXPANSE_NETWORK = 2 ROPSTEN = 3 RINKEBY = 4 GOERLI = 5 ETHEREU...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/ethereum_network.py
0.41182
0.39097
ethereum_network.py
pypi
import warnings from secrets import token_bytes from typing import Tuple, Union import eth_abi from eth._utils.address import generate_contract_address from eth_keys import keys from eth_typing import AnyAddress, ChecksumAddress, HexStr from eth_utils import to_normalized_address from hexbytes import HexBytes from sha...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/utils.py
0.907281
0.559892
utils.py
pypi
import logging from dataclasses import dataclass from typing import Any, List, Optional, Sequence, Tuple import eth_abi from eth_abi.exceptions import DecodingError from eth_account.signers.local import LocalAccount from eth_typing import BlockIdentifier, BlockNumber, ChecksumAddress from hexbytes import HexBytes from...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/multicall.py
0.855957
0.229978
multicall.py
pypi
import json import time from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from .contract_metadata import ContractMetadata class EtherscanClientException(Exception): pass class EtherscanClientConfigurationProblem(Exception): pass class ...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/clients/etherscan_client.py
0.742608
0.312954
etherscan_client.py
pypi
from typing import Any, Dict, List, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from ..utils import fast_is_checksum_address from .contract_metadata import ContractMetadata class Sourcify: """ Get contract metadata from Sourcify. Matches can be full or partial: ...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/clients/sourcify.py
0.915323
0.365457
sourcify.py
pypi
import json from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress from .. import EthereumNetwork from .contract_metadata import ContractMetadata class BlockscoutClientException(Exception): pass class BlockScoutConfigurationProblem(Blocks...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/clients/blockscout_client.py
0.739705
0.382286
blockscout_client.py
pypi
import binascii from typing import Optional, Union from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from eth_typing import ChecksumAddress from eth_utils import to_normalized_address from hexbytes import HexBytes from ..utils import fast_bytes_to_...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/django/models.py
0.826362
0.198239
models.py
pypi
import binascii from typing import Any, Optional from django import forms from django.core import exceptions from django.core.exceptions import ValidationError from django.utils.translation import gettext as _ from hexbytes import HexBytes from gnosis.eth.utils import fast_is_checksum_address class EthereumAddress...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/django/forms.py
0.856107
0.237443
forms.py
pypi
import functools import logging from functools import cached_property from typing import Optional from eth_abi.exceptions import DecodingError from eth_typing import ChecksumAddress from web3.contract import Contract from web3.exceptions import Web3Exception from .. import EthereumClient, EthereumNetwork from ..const...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/oracles/uniswap_v3.py
0.879652
0.163813
uniswap_v3.py
pypi
mooniswap_abi = [ { "inputs": [ {"internalType": "contract IERC20", "name": "_token0", "type": "address"}, {"internalType": "contract IERC20", "name": "_token1", "type": "address"}, {"internalType": "string", "name": "name", "type": "string"}, {"internalType":...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/oracles/abis/mooniswap_abis.py
0.535098
0.515315
mooniswap_abis.py
pypi
uniswap_v3_factory_abi = [ {"inputs": [], "stateMutability": "nonpayable", "type": "constructor"}, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "uint24", "name": "fee", "type": "uint24", ...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/oracles/abis/uniswap_v3.py
0.515864
0.476275
uniswap_v3.py
pypi
AAVE_ATOKEN_ABI = [ { "inputs": [ { "internalType": "contract ILendingPool", "name": "pool", "type": "address", }, { "internalType": "address", "name": "underlyingAssetAddress", ...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/oracles/abis/aave_abis.py
0.566019
0.415847
aave_abis.py
pypi
curve_address_provider_abi = [ { "name": "NewAddressIdentifier", "inputs": [ {"type": "uint256", "name": "id", "indexed": True}, {"type": "address", "name": "addr", "indexed": False}, {"type": "string", "name": "description", "indexed": False}, ], ...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/oracles/abis/curve_abis.py
0.663124
0.531149
curve_abis.py
pypi
cream_ctoken_abi = [ { "inputs": [ {"internalType": "address", "name": "underlying_", "type": "address"}, { "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address", }, { ...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/oracles/abis/cream_abis.py
0.577495
0.492249
cream_abis.py
pypi
balancer_pool_abi = [ { "inputs": [], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "address", "name...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/oracles/abis/balancer_abis.py
0.493897
0.450299
balancer_abis.py
pypi
YVAULT_ABI = [ { "inputs": [ {"internalType": "address", "name": "_token", "type": "address"}, {"internalType": "address", "name": "_controller", "type": "address"}, ], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, ...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/oracles/abis/yearn_abis.py
0.521959
0.48182
yearn_abis.py
pypi
multicall_v3_abi = [ { "inputs": [ { "components": [ {"internalType": "address", "name": "target", "type": "address"}, {"internalType": "bytes", "name": "callData", "type": "bytes"}, ], "internalType": "struc...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/abis/multicall.py
0.557364
0.571288
multicall.py
pypi
import re from typing import Any, Dict, List, Union from eth_abi import encode as encode_abi from eth_account import Account from eth_typing import Hash32, HexStr from hexbytes import HexBytes from ..utils import fast_keccak def encode_data(primary_type: str, data, types): """ Encode structured data as per ...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/eip712/__init__.py
0.755366
0.363449
__init__.py
pypi
import json import os import sys from typing import Any, Dict, Optional from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from web3.contract import Contract from gnosis.util import cache def load_contract_interface(file_name): return _load_json_file(_abi_file_path(file_n...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/eth/contracts/__init__.py
0.621885
0.210543
__init__.py
pypi
from enum import Enum from logging import getLogger from typing import List, Optional, Union from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumClient, EthereumTxSent from gnosis.eth.contracts imp...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/multi_send.py
0.915252
0.451206
multi_send.py
pypi
from abc import ABC, abstractmethod from enum import Enum from logging import getLogger from typing import List, Union from eth_abi import decode as decode_abi from eth_abi import encode as encode_abi from eth_abi.exceptions import DecodingError from eth_account.messages import defunct_hash_message from eth_typing imp...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/safe_signature.py
0.889205
0.310002
safe_signature.py
pypi
from functools import cached_property from typing import Any, Dict, List, NoReturn, Optional, Tuple, Type from eth_account import Account from hexbytes import HexBytes from packaging.version import Version from web3.exceptions import Web3Exception from web3.types import BlockIdentifier, TxParams, Wei from gnosis.eth ...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/safe_tx.py
0.910689
0.230811
safe_tx.py
pypi
import dataclasses import math from enum import Enum from functools import cached_property from logging import getLogger from typing import Callable, List, NamedTuple, Optional, Union from eth_abi import encode as encode_abi from eth_abi.exceptions import DecodingError from eth_abi.packed import encode_packed from eth...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/safe.py
0.89522
0.151781
safe.py
pypi
from typing import Dict, List, Tuple from gnosis.eth import EthereumNetwork MASTER_COPIES: Dict[EthereumNetwork, List[Tuple[str, int, str]]] = { EthereumNetwork.MAINNET: [ ( "0xfb1bffC9d739B8D520DaF37dF666da4C687191EA", 14981217, "1.3.0+L2", ), # safe singleton...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/addresses.py
0.499268
0.284132
addresses.py
pypi
from logging import getLogger from typing import Optional from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from web3.contract import Contract from gnosis.eth import EthereumClient, EthereumTxSent from gnosis.eth.contracts import ( get_paying_proxy_deployed_bytecode, ge...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/proxy_factory.py
0.910927
0.157072
proxy_factory.py
pypi
from rest_framework import serializers from rest_framework.exceptions import ValidationError from gnosis.eth.constants import ( SIGNATURE_R_MAX_VALUE, SIGNATURE_R_MIN_VALUE, SIGNATURE_S_MAX_VALUE, SIGNATURE_S_MIN_VALUE, SIGNATURE_V_MAX_VALUE, SIGNATURE_V_MIN_VALUE, ) from gnosis.eth.django.seri...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/serializers.py
0.78838
0.331039
serializers.py
pypi
import math import os from logging import getLogger from typing import Any, Dict, List, Optional, Tuple import rlp from eth.vm.forks.frontier.transactions import FrontierTransaction from eth_keys.exceptions import BadSignature from hexbytes import HexBytes from web3 import Web3 from web3.contract import ContractConstr...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/safe_creation_tx.py
0.813387
0.302662
safe_creation_tx.py
pypi
from typing import List, Tuple, Union from eth_keys import keys from eth_keys.exceptions import BadSignature from hexbytes import HexBytes from gnosis.eth.constants import NULL_ADDRESS def signature_split( signatures: Union[bytes, str], pos: int = 0 ) -> Tuple[int, int, int]: """ :param signatures: sign...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/signatures.py
0.923049
0.493958
signatures.py
pypi
from typing import TypedDict from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress, HexStr from gnosis.eth.ethereum_client import EthereumNetwork from .. import SafeTx from ..signatures import signature_split from .base_api import SafeAPIException, SafeBaseAPI class RelayEstimatio...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/api/relay_service_api.py
0.724188
0.213623
relay_service_api.py
pypi
import logging import time from typing import Any, Dict, List, Optional, Tuple, Union from eth_account.signers.local import LocalAccount from eth_typing import HexStr from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumNetwork from gnosis.safe import SafeTx from .base_api import SafeAP...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/safe/api/transaction_service_api.py
0.73782
0.236549
transaction_service_api.py
pypi
from dataclasses import dataclass from enum import Enum from typing import Any, Dict, Literal from eth_typing import ChecksumAddress, Hash32 @dataclass class Order: sellToken: ChecksumAddress buyToken: ChecksumAddress receiver: ChecksumAddress sellAmount: int buyAmount: int validTo: int a...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/protocol/order.py
0.843412
0.333829
order.py
pypi
from functools import cached_property from typing import Any, Dict, List, Optional, TypedDict, Union, cast import requests from eth_account import Account from eth_account.messages import encode_defunct from eth_typing import AnyAddress, ChecksumAddress, HexStr from hexbytes import HexBytes from gnosis.eth import Eth...
/safe-eth-py-5.8.0.tar.gz/safe-eth-py-5.8.0/gnosis/protocol/gnosis_protocol_api.py
0.904096
0.227083
gnosis_protocol_api.py
pypi
from enum import Enum, unique class EthereumNetworkNotSupported(Exception): pass @unique class EthereumNetwork(Enum): """ Use https://chainlist.org/ as a reference """ UNKNOWN = -1 OLYMPIC = 0 MAINNET = 1 ROPSTEN = 3 RINKEBY = 4 GOERLI = 5 ETC_KOTTI = 6 TCH = 7 U...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/ethereum_network.py
0.453504
0.407157
ethereum_network.py
pypi
import warnings from secrets import token_bytes from typing import Tuple, Union import eth_abi from eth._utils.address import generate_contract_address from eth_keys import keys from eth_typing import AnyAddress, ChecksumAddress, HexStr from eth_utils import to_normalized_address from hexbytes import HexBytes from sha...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/utils.py
0.900547
0.58255
utils.py
pypi
import logging from dataclasses import dataclass from typing import Any, List, Optional, Sequence, Tuple from eth_abi.exceptions import DecodingError from eth_account.signers.local import LocalAccount from eth_typing import BlockIdentifier, BlockNumber, ChecksumAddress from hexbytes import HexBytes from web3 import We...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/multicall.py
0.880168
0.204282
multicall.py
pypi
import json import time from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from .contract_metadata import ContractMetadata class EtherscanClientException(Exception): pass class EtherscanClientConfigurationProblem(Exception): pass class ...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/clients/etherscan_client.py
0.761139
0.268366
etherscan_client.py
pypi
from typing import Any, Dict, List, Optional from urllib.parse import urljoin import requests from .. import EthereumNetwork from ..utils import fast_is_checksum_address from .contract_metadata import ContractMetadata class Sourcify: """ Get contract metadata from Sourcify. Matches can be full or partial: ...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/clients/sourcify.py
0.899345
0.365966
sourcify.py
pypi
import json from typing import Any, Dict, Optional from urllib.parse import urljoin import requests from eth_typing import ChecksumAddress from .. import EthereumNetwork from .contract_metadata import ContractMetadata class BlockscoutClientException(Exception): pass class BlockScoutConfigurationProblem(Blocks...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/clients/blockscout_client.py
0.776029
0.319453
blockscout_client.py
pypi
import binascii from typing import Optional, Union from django.core import exceptions from django.db import models from django.utils.translation import gettext_lazy as _ from eth_typing import ChecksumAddress from eth_utils import to_normalized_address from hexbytes import HexBytes from ..utils import fast_bytes_to_...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/django/models.py
0.782372
0.215206
models.py
pypi
mooniswap_abi = [ { "inputs": [ {"internalType": "contract IERC20", "name": "_token0", "type": "address"}, {"internalType": "contract IERC20", "name": "_token1", "type": "address"}, {"internalType": "string", "name": "name", "type": "string"}, {"internalType":...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/oracles/abis/mooniswap_abis.py
0.535098
0.515315
mooniswap_abis.py
pypi
AAVE_ATOKEN_ABI = [ { "inputs": [ { "internalType": "contract ILendingPool", "name": "pool", "type": "address", }, { "internalType": "address", "name": "underlyingAssetAddress", ...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/oracles/abis/aave_abis.py
0.566019
0.415847
aave_abis.py
pypi
curve_address_provider_abi = [ { "name": "NewAddressIdentifier", "inputs": [ {"type": "uint256", "name": "id", "indexed": True}, {"type": "address", "name": "addr", "indexed": False}, {"type": "string", "name": "description", "indexed": False}, ], ...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/oracles/abis/curve_abis.py
0.663124
0.531149
curve_abis.py
pypi
cream_ctoken_abi = [ { "inputs": [ {"internalType": "address", "name": "underlying_", "type": "address"}, { "internalType": "contract ComptrollerInterface", "name": "comptroller_", "type": "address", }, { ...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/oracles/abis/cream_abis.py
0.577495
0.492249
cream_abis.py
pypi
multicall_v2_abi = [ { "inputs": [ { "components": [ {"internalType": "address", "name": "target", "type": "address"}, {"internalType": "bytes", "name": "callData", "type": "bytes"}, ], "internalType": "struc...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/oracles/abis/makerdao.py
0.492188
0.568595
makerdao.py
pypi
balancer_pool_abi = [ { "inputs": [], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "address", "name...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/oracles/abis/balancer_abis.py
0.493897
0.450299
balancer_abis.py
pypi
YVAULT_ABI = [ { "inputs": [ {"internalType": "address", "name": "_token", "type": "address"}, {"internalType": "address", "name": "_controller", "type": "address"}, ], "payable": False, "stateMutability": "nonpayable", "type": "constructor", }, ...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/oracles/abis/yearn_abis.py
0.521959
0.48182
yearn_abis.py
pypi
import json import os import sys from typing import Any, Dict, Optional from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3 from web3.contract import Contract try: from functools import cache except ImportError: from functools import lru_cache cache = lru_cache(maxs...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/eth/contracts/__init__.py
0.627267
0.156878
__init__.py
pypi
from enum import Enum from logging import getLogger from typing import List, Union from eth_account.signers.local import LocalAccount from hexbytes import HexBytes from web3 import Web3 from gnosis.eth import EthereumClient from gnosis.eth.contracts import get_multi_send_contract from gnosis.eth.ethereum_client impor...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/safe/multi_send.py
0.928336
0.4436
multi_send.py
pypi
from abc import ABC, abstractmethod from enum import Enum from logging import getLogger from typing import List, Union from eth_abi import decode_single, encode_single from eth_abi.exceptions import DecodingError from eth_account.messages import defunct_hash_message from eth_typing import ChecksumAddress from hexbytes...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/safe/safe_signature.py
0.917409
0.276031
safe_signature.py
pypi
from typing import Any, Dict, List, NoReturn, Optional, Tuple, Type from eip712_structs import Address, Bytes, EIP712Struct, Uint, make_domain from eip712_structs.struct import StructTuple from eth_account import Account from hexbytes import HexBytes from packaging.version import Version from web3.exceptions import Ba...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/safe/safe_tx.py
0.904848
0.15428
safe_tx.py
pypi
import dataclasses import math from enum import Enum from logging import getLogger from typing import Callable, List, NamedTuple, Optional, Union from eth_account import Account from eth_account.signers.local import LocalAccount from eth_typing import ChecksumAddress from hexbytes import HexBytes from web3 import Web3...
/safe_etmp_py-0.0.4-py3-none-any.whl/gnosis/safe/safe.py
0.877687
0.176388
safe.py
pypi