示例#1
0
 def __init__(self,
              sender: Account,
              alias: str = None,
              timestamp: int = None,
              fee: int = None) -> None:
     self.alias_data: dict = drop_none({
         'timestamp': timestamp,
         'alias': alias,
         'fee': fee
     })
     super().__init__('Alias', self.alias_data)
     self.sender: Account = sender
     self.history: list = []
示例#2
0
    def __init__(self, sender: Account, asset_id: str = None, reissuable: bool = None,
                 quantity: int = None, timestamp: int = None, fee: int = None) -> None:
        from lunespy.utils import drop_none

        reissue_data = drop_none({
            "asset_id": asset_id,
            "reissuable": reissuable,
            "quantity": quantity,
            "timestamp": timestamp,
            "fee": fee
        })
        BaseTransaction.__init__(self, tx_type='Reissue NFT', tx_data=reissue_data)
        ReissueToken.__init__(self, sender=sender, **reissue_data)
示例#3
0
    def __init__(self, sender: Account, node_address: str, amount: float = None,
                 timestamp: int = None, fee: int = None) -> None:
        from lunespy.utils import drop_none

        self.lease_data = drop_none({
            "node_address": node_address,
            "amount": amount,
            "timestamp": timestamp,
            "fee": fee
        })
        super().__init__('Create Lease', self.lease_data)
        self.sender: Account = sender
        self.history: list = []
示例#4
0
    def __init__(self, sender: Account, asset_id: str = None, reissuable: bool = None,
                 quantity: int = None, timestamp: int = None, fee: int = None) -> None:
        from lunespy.utils import drop_none

        self.reissue_data = drop_none({
            "asset_id": asset_id,
            "reissuable": reissuable,
            "quantity": quantity,
            "timestamp": timestamp,
            "fee": fee
        })
        super().__init__('Reissue Token', self.reissue_data)
        self.sender = sender
        self.history = []
示例#5
0
 def __init__(self,
              sender: Account,
              timestamp: int = None,
              asset_id: str = None,
              quantity: int = None,
              fee: int = None) -> None:
     from lunespy.utils import drop_none
     burn_data: dict = drop_none({
         "timestamp": timestamp,
         "asset_id": asset_id,
         "quantity": quantity,
         "fee": fee
     })
     BaseTransaction.__init__(self, tx_type='Burn NFT', tx_data=burn_data)
     BurnToken.__init__(self, sender=sender, **burn_data)
示例#6
0
    def __init__(self,
                 sender: Account,
                 lease_tx_id: str = None,
                 timestamp: int = None,
                 fee: int = None) -> None:
        from lunespy.utils import drop_none

        self.cancel_data = drop_none({
            "timestamp": timestamp,
            "lease_tx_id": lease_tx_id,
            "fee": fee
        })
        super().__init__('Create Lease', self.cancel_data)
        self.sender: Account = sender
        self.history: list = []
示例#7
0
 def __init__(self,
              sender: Account,
              asset_id: str = None,
              quantity: int = None,
              timestamp: int = None,
              fee: int = None) -> None:
     from lunespy.utils import drop_none
     self.burn_data: dict = drop_none({
         "timestamp": timestamp,
         "asset_id": asset_id,
         "quantity": quantity,
         "fee": fee
     })
     super().__init__('Burn Token', self.burn_data)
     self.sender = sender
     self.history = []