Skip to content

Commit

Permalink
Merge pull request #173 from multiversx/ledger-components
Browse files Browse the repository at this point in the history
Implemented Ledger components
  • Loading branch information
popenta authored Jan 13, 2025
2 parents 758a78f + 9e0c8ff commit 4e478a5
Show file tree
Hide file tree
Showing 24 changed files with 1,670 additions and 911 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[flake8]
extend-ignore = E501, E722
extend-ignore = E501, E722, E203
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
rev: 24.10.0
hooks:
- id: black
args: [--line-length=100]
args: [--line-length=120]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
Expand Down
294 changes: 214 additions & 80 deletions multiversx_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,86 +1,220 @@
from multiversx_sdk.account_management import (AccountController,
AccountTransactionsFactory)
from multiversx_sdk.accounts import Account
from multiversx_sdk.core import (Address, AddressComputer, AddressFactory,
CodeMetadata, LibraryConfig, Message,
MessageComputer, SmartContractResult, Token,
TokenComputer, TokenIdentifierParts,
TokenTransfer, Transaction,
TransactionComputer, TransactionEvent,
TransactionEventsParser, TransactionLogs,
TransactionOnNetwork,
TransactionsFactoryConfig, TransactionStatus,
find_events_by_first_topic,
find_events_by_identifier)
from multiversx_sdk.delegation import (CreateNewDelegationContractOutcome,
DelegationController,
DelegationTransactionsFactory,
DelegationTransactionsOutcomeParser)
from multiversx_sdk.entrypoints import (DevnetEntrypoint, MainnetEntrypoint,
NetworkEntrypoint, TestnetEntrypoint)
from multiversx_sdk.network_providers import (AccountAwaiter, AccountOnNetwork,
AccountStorage,
AccountStorageEntry,
ApiNetworkProvider,
AwaitingOptions,
BlockCoordinates, BlockOnNetwork,
FungibleTokenMetadata,
GenericError, GenericResponse,
NetworkConfig,
NetworkProviderConfig,
NetworkStatus,
ProxyNetworkProvider,
TokenAmountOnNetwork,
TokensCollectionMetadata,
TransactionAwaiter,
TransactionCostResponse,
TransactionDecoder,
TransactionMetadata)
from multiversx_sdk.relayed import (RelayedController,
RelayedTransactionsFactory)
from multiversx_sdk.account_management import (
AccountController,
AccountTransactionsFactory,
)
from multiversx_sdk.accounts import Account, LedgerAccount
from multiversx_sdk.core import (
Address,
AddressComputer,
AddressFactory,
CodeMetadata,
LibraryConfig,
Message,
MessageComputer,
SmartContractResult,
Token,
TokenComputer,
TokenIdentifierParts,
TokenTransfer,
Transaction,
TransactionComputer,
TransactionEvent,
TransactionEventsParser,
TransactionLogs,
TransactionOnNetwork,
TransactionsFactoryConfig,
TransactionStatus,
find_events_by_first_topic,
find_events_by_identifier,
)
from multiversx_sdk.delegation import (
CreateNewDelegationContractOutcome,
DelegationController,
DelegationTransactionsFactory,
DelegationTransactionsOutcomeParser,
)
from multiversx_sdk.entrypoints import (
DevnetEntrypoint,
MainnetEntrypoint,
NetworkEntrypoint,
TestnetEntrypoint,
)
from multiversx_sdk.ledger.ledger_app import LedgerApp
from multiversx_sdk.network_providers import (
AccountAwaiter,
AccountOnNetwork,
AccountStorage,
AccountStorageEntry,
ApiNetworkProvider,
AwaitingOptions,
BlockCoordinates,
BlockOnNetwork,
FungibleTokenMetadata,
GenericError,
GenericResponse,
NetworkConfig,
NetworkProviderConfig,
NetworkStatus,
ProxyNetworkProvider,
TokenAmountOnNetwork,
TokensCollectionMetadata,
TransactionAwaiter,
TransactionCostResponse,
TransactionDecoder,
TransactionMetadata,
)
from multiversx_sdk.relayed import RelayedController, RelayedTransactionsFactory
from multiversx_sdk.smart_contracts import (
DeployedSmartContract, ParsedSmartContractCallOutcome,
SmartContractController, SmartContractDeployOutcome, SmartContractQuery,
SmartContractQueryResponse, SmartContractTransactionsFactory,
SmartContractTransactionsOutcomeParser)
DeployedSmartContract,
ParsedSmartContractCallOutcome,
SmartContractController,
SmartContractDeployOutcome,
SmartContractQuery,
SmartContractQueryResponse,
SmartContractTransactionsFactory,
SmartContractTransactionsOutcomeParser,
)
from multiversx_sdk.token_management import (
AddQuantityOutcome, BurnOutcome, BurnQuantityOutcome, FreezeOutcome,
IssueFungibleOutcome, IssueNonFungibleOutcome, IssueSemiFungibleOutcome,
MintOutcome, NFTCreateOutcome, PauseOutcome, RegisterAndSetAllRolesOutcome,
RegisterMetaEsdtOutcome, SetSpecialRoleOutcome, TokenManagementController,
AddQuantityOutcome,
BurnOutcome,
BurnQuantityOutcome,
FreezeOutcome,
IssueFungibleOutcome,
IssueNonFungibleOutcome,
IssueSemiFungibleOutcome,
MintOutcome,
NFTCreateOutcome,
PauseOutcome,
RegisterAndSetAllRolesOutcome,
RegisterMetaEsdtOutcome,
SetSpecialRoleOutcome,
TokenManagementController,
TokenManagementTransactionsFactory,
TokenManagementTransactionsOutcomeParser, TokenType, UnFreezeOutcome,
UnPauseOutcome, UpdateAttributesOutcome, WipeOutcome)
from multiversx_sdk.transfers import (TransfersController,
TransferTransactionsFactory)
from multiversx_sdk.wallet import (KeyPair, Mnemonic, UserPEM, UserPublicKey,
UserSecretKey, UserSigner, UserVerifier,
UserWallet, ValidatorPEM,
ValidatorPublicKey, ValidatorSecretKey,
ValidatorSigner, ValidatorVerifier)
TokenManagementTransactionsOutcomeParser,
TokenType,
UnFreezeOutcome,
UnPauseOutcome,
UpdateAttributesOutcome,
WipeOutcome,
)
from multiversx_sdk.transfers import TransfersController, TransferTransactionsFactory
from multiversx_sdk.wallet import (
KeyPair,
Mnemonic,
UserPEM,
UserPublicKey,
UserSecretKey,
UserSigner,
UserVerifier,
UserWallet,
ValidatorPEM,
ValidatorPublicKey,
ValidatorSecretKey,
ValidatorSigner,
ValidatorVerifier,
)

__all__ = [
"Account", "Address", "AddressFactory", "AddressComputer", "Transaction", "TransactionComputer",
"Message", "MessageComputer", "CodeMetadata", "Token", "TokenComputer", "TokenTransfer", "TokenIdentifierParts",
"TokenManagementTransactionsOutcomeParser", "SmartContractResult", "TransactionEvent", "TransactionLogs",
"DelegationTransactionsFactory", "TokenManagementTransactionsFactory", "TransactionsFactoryConfig", "TokenType",
"SmartContractTransactionsFactory", "TransferTransactionsFactory", "RelayedTransactionsFactory",
"AccountTransactionsFactory", "GenericError", "GenericResponse", "ApiNetworkProvider", "ProxyNetworkProvider",
"UserSigner", "Mnemonic", "UserSecretKey", "UserPublicKey", "ValidatorSecretKey", "ValidatorPublicKey",
"UserVerifier", "ValidatorSigner", "ValidatorVerifier", "ValidatorPEM", "UserWallet", "UserPEM",
"DelegationTransactionsOutcomeParser", "find_events_by_identifier",
"find_events_by_first_topic", "SmartContractTransactionsOutcomeParser", "TransactionAwaiter",
"SmartContractQuery", "SmartContractQueryResponse", "TransactionDecoder",
"TransactionMetadata", "TransactionEventsParser", "NetworkProviderConfig", "DevnetEntrypoint",
"MainnetEntrypoint", "NetworkEntrypoint", "TestnetEntrypoint", "AccountController", "DelegationController",
"RelayedController", "SmartContractController", "TokenManagementController", "TransfersController",
"CreateNewDelegationContractOutcome", "SmartContractDeployOutcome", "DeployedSmartContract", "IssueFungibleOutcome",
"IssueNonFungibleOutcome", "IssueSemiFungibleOutcome", "RegisterMetaEsdtOutcome", "RegisterAndSetAllRolesOutcome",
"SetSpecialRoleOutcome", "NFTCreateOutcome", "MintOutcome", "BurnOutcome", "PauseOutcome", "UnPauseOutcome",
"FreezeOutcome", "UnFreezeOutcome", "WipeOutcome", "UpdateAttributesOutcome", "AddQuantityOutcome",
"BurnQuantityOutcome", "TransactionOnNetwork", "TransactionStatus", "ParsedSmartContractCallOutcome",
"AccountOnNetwork", "AccountStorage", "AccountStorageEntry", "AwaitingOptions", "BlockCoordinates",
"BlockOnNetwork", "FungibleTokenMetadata", "NetworkConfig", "NetworkStatus",
"TokenAmountOnNetwork", "TokensCollectionMetadata", "TransactionCostResponse", "AccountAwaiter",
"LibraryConfig", "KeyPair"
"Account",
"Address",
"AddressFactory",
"AddressComputer",
"Transaction",
"TransactionComputer",
"Message",
"MessageComputer",
"CodeMetadata",
"Token",
"TokenComputer",
"TokenTransfer",
"TokenIdentifierParts",
"TokenManagementTransactionsOutcomeParser",
"SmartContractResult",
"TransactionEvent",
"TransactionLogs",
"DelegationTransactionsFactory",
"TokenManagementTransactionsFactory",
"TransactionsFactoryConfig",
"TokenType",
"SmartContractTransactionsFactory",
"TransferTransactionsFactory",
"RelayedTransactionsFactory",
"AccountTransactionsFactory",
"GenericError",
"GenericResponse",
"ApiNetworkProvider",
"ProxyNetworkProvider",
"UserSigner",
"Mnemonic",
"UserSecretKey",
"UserPublicKey",
"ValidatorSecretKey",
"ValidatorPublicKey",
"UserVerifier",
"ValidatorSigner",
"ValidatorVerifier",
"ValidatorPEM",
"UserWallet",
"UserPEM",
"DelegationTransactionsOutcomeParser",
"find_events_by_identifier",
"find_events_by_first_topic",
"SmartContractTransactionsOutcomeParser",
"TransactionAwaiter",
"SmartContractQuery",
"SmartContractQueryResponse",
"TransactionDecoder",
"TransactionMetadata",
"TransactionEventsParser",
"NetworkProviderConfig",
"DevnetEntrypoint",
"MainnetEntrypoint",
"NetworkEntrypoint",
"TestnetEntrypoint",
"AccountController",
"DelegationController",
"RelayedController",
"SmartContractController",
"TokenManagementController",
"TransfersController",
"CreateNewDelegationContractOutcome",
"SmartContractDeployOutcome",
"DeployedSmartContract",
"IssueFungibleOutcome",
"IssueNonFungibleOutcome",
"IssueSemiFungibleOutcome",
"RegisterMetaEsdtOutcome",
"RegisterAndSetAllRolesOutcome",
"SetSpecialRoleOutcome",
"NFTCreateOutcome",
"MintOutcome",
"BurnOutcome",
"PauseOutcome",
"UnPauseOutcome",
"FreezeOutcome",
"UnFreezeOutcome",
"WipeOutcome",
"UpdateAttributesOutcome",
"AddQuantityOutcome",
"BurnQuantityOutcome",
"TransactionOnNetwork",
"TransactionStatus",
"ParsedSmartContractCallOutcome",
"AccountOnNetwork",
"AccountStorage",
"AccountStorageEntry",
"AwaitingOptions",
"BlockCoordinates",
"BlockOnNetwork",
"FungibleTokenMetadata",
"NetworkConfig",
"NetworkStatus",
"TokenAmountOnNetwork",
"TokensCollectionMetadata",
"TransactionCostResponse",
"AccountAwaiter",
"LibraryConfig",
"KeyPair",
"LedgerApp",
"LedgerAccount",
]
Loading

0 comments on commit 4e478a5

Please sign in to comment.