mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 15:05:49 +00:00
adjusted doc strings
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
313dc9d8c1
commit
b842ea78c4
@ -61,9 +61,9 @@ class Transaction(object):
|
|||||||
spend.
|
spend.
|
||||||
outputs (:obj:`list` of :class:`~planetmint.transactions.common.
|
outputs (:obj:`list` of :class:`~planetmint.transactions.common.
|
||||||
transaction.Output`, optional): Define the assets to lock.
|
transaction.Output`, optional): Define the assets to lock.
|
||||||
asset (dict): Asset payload for this Transaction. ``CREATE``
|
assets (:obj:`list` of :obj:`dict`): Asset payload for this Transaction. ``CREATE``
|
||||||
Transactions require a dict with a ``data``
|
Transactions require a list containing exactly one dict with a ``data``
|
||||||
property while ``TRANSFER`` Transactions require a dict with a
|
property while ``TRANSFER`` Transactions require a list containing a dict with a
|
||||||
``id`` property.
|
``id`` property.
|
||||||
metadata (dict):
|
metadata (dict):
|
||||||
Metadata to be stored along with the Transaction.
|
Metadata to be stored along with the Transaction.
|
||||||
@ -85,7 +85,7 @@ class Transaction(object):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
operation (str): Defines the operation of the Transaction.
|
operation (str): Defines the operation of the Transaction.
|
||||||
asset (dict): Asset payload for this Transaction.
|
assets (:obj:`list` of :obj:`dict`): Asset payload for this Transaction.
|
||||||
inputs (:obj:`list` of :class:`~planetmint.transactions.common.
|
inputs (:obj:`list` of :class:`~planetmint.transactions.common.
|
||||||
transaction.Input`, optional): Define the assets to
|
transaction.Input`, optional): Define the assets to
|
||||||
outputs (:obj:`list` of :class:`~planetmint.transactions.common.
|
outputs (:obj:`list` of :class:`~planetmint.transactions.common.
|
||||||
|
|||||||
@ -69,7 +69,7 @@ class Create(Transaction):
|
|||||||
Transaction.
|
Transaction.
|
||||||
metadata (dict): The metadata to be stored along with the
|
metadata (dict): The metadata to be stored along with the
|
||||||
Transaction.
|
Transaction.
|
||||||
asset (dict): The metadata associated with the asset that will
|
assets (:obj:`list` of :obj:`dict`): The metadata associated with the asset that will
|
||||||
be created in this Transaction.
|
be created in this Transaction.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user