Exemplo n.º 1
0
class GetTransactionForm(Schema):
    """
    Get transaction by its identifier form.
    """

    id = TransactionIdentifierField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 2
0
class GetBlockByIdentifierForm(Schema):
    """
    Get a block by its identifier form.
    """

    id = BlockIdentifierField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 3
0
class GetNodeAccountInformationForm(Schema):
    """
    Get information about the node account by its address form.
    """

    address = AccountAddressField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 4
0
class GetPublicKeysForm(Schema):
    """
    Get a list of the addresses of the public keys form.
    """

    address = AccountAddressField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 5
0
class GetStateForm(Schema):
    """
    Get a state by its address form.
    """

    address = AccountAddressField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 6
0
class GetReceiptsForm(Schema):
    """
    Get a list of the transaction's receipts by identifiers form.
    """

    ids = TransactionIdentifiersListField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 7
0
class GetPublicKeyInformationForm(Schema):
    """
    Get information about public key of the public key information form.
    """

    address = PublicKeyAddressField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 8
0
class GetBatchStatusForm(Schema):
    """
    Get a batch status by its identifier form.
    """

    id = BatchIdentifierField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 9
0
class GetAtomicSwapInformationForm(Schema):
    """
    Get information about atomic swap by its identifier form.
    """

    id = SwapIdentifierField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 10
0
class GetAccountBalanceForm(Schema):
    """
    Get balance of the account form.
    """

    address = AccountAddressField(required=True)
    node_url = NodeUrlField(required=True)
Exemplo n.º 11
0
class TransferTokensForm(Schema):
    """
    Transfer tokens to address form.
    """

    private_key = PrivateKeyField(required=True)
    address_to = AccountAddressField(required=True)
    amount = fields.Integer(
        strict=True,
        required=True,
        validate=[
            validate.Range(min=1, error='Amount must be greater than 0.'),
        ],
    )
    node_url = NodeUrlField(required=True)
Exemplo n.º 12
0
class GetBlocksListForm(Schema):
    """
    Get a list of blocks form.
    """

    ids = BlockIdentifiersListField(allow_none=True, required=False)
    limit = fields.Integer(
        allow_none=True,
        strict=True,
        required=False,
        validate=[
            validate.Range(min=1, error='Limit must be greater than 0.'),
        ],
    )
    head = BlockIdentifierField(allow_none=True, required=False)
    reverse = fields.Boolean(required=False)
    ids_only = fields.Boolean(required=False)
    node_url = NodeUrlField(required=True)
Exemplo n.º 13
0
class GetStateListForm(Schema):
    """
    Get a list of states form.
    """

    address = AccountAddressField(allow_none=True, required=False)
    start = AccountAddressField(allow_none=True, required=False)
    head = BlockIdentifierField(allow_none=True, required=False)
    limit = fields.Integer(
        allow_none=True,
        strict=True,
        required=False,
        validate=[
            validate.Range(min=1, error='Limit must be greater than 0.'),
        ],
    )
    reverse = fields.Boolean(required=False)
    node_url = NodeUrlField(required=True)
Exemplo n.º 14
0
class GetTransactionsListForm(Schema):
    """
    Get a list of transactions form.
    """

    ids = TransactionIdentifiersListField(allow_none=True, required=False)
    start = TransactionIdentifierField(allow_none=True, required=False)
    head = TransactionIdentifierField(allow_none=True, required=False)
    limit = fields.Integer(
        allow_none=True,
        strict=True,
        required=False,
        validate=[
            validate.Range(min=1, error='Limit must be greater than 0.'),
        ],
    )
    reverse = fields.Boolean(required=False)
    ids_only = fields.Boolean(required=False)
    family_name = FamilyNameField(allow_none=True, required=False)
    node_url = NodeUrlField(required=True)
Exemplo n.º 15
0
class GetNodeConfigurationsForm(Schema):
    """
    Get the node configurations form.
    """

    node_url = NodeUrlField(required=True)
Exemplo n.º 16
0
class GetNodeInitialStakeForm(Schema):
    """
    Get the initial stake of the node form.
    """

    node_url = NodeUrlField(required=True)
Exemplo n.º 17
0
class GetNodePeersForm(Schema):
    """
    Get the node's peers form.
    """

    node_url = NodeUrlField(required=True)
Exemplo n.º 18
0
class GetNodeInformationForm(Schema):
    """
    Get the node information form.
    """

    node_url = NodeUrlField(required=True)
Exemplo n.º 19
0
class GetAtomicSwapPublicKeyForm(Schema):
    """
    Get the public key of the atomic swap form.
    """

    node_url = NodeUrlField(required=True)