mirror of
https://github.com/planetmint/planetmint.git
synced 2025-07-06 12:42:29 +00:00
Fixing imports
This commit is contained in:
parent
3277fed2ce
commit
3963722039
@ -3,14 +3,13 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
||||||
# Code is Apache-2.0 and docs are CC-BY-4.0
|
# Code is Apache-2.0 and docs are CC-BY-4.0
|
||||||
|
|
||||||
from planetmint.transactions.common.transaction import (Transaction, Input, Output)
|
from planetmint.transactions.common.transaction import Transaction
|
||||||
|
from planetmint.transactions.common.input import Input
|
||||||
|
from planetmint.transactions.common.output import Output
|
||||||
|
|
||||||
class Create(Transaction):
|
class Create(Transaction):
|
||||||
|
|
||||||
OPERATION = 'CREATE'
|
OPERATION = 'CREATE'
|
||||||
# NOTE: This class inherits TRANSFER txn type. The `TRANSFER` property is
|
|
||||||
# overriden to re-use methods from parent class
|
|
||||||
TRANSFER = OPERATION
|
|
||||||
ALLOWED_OPERATIONS = (OPERATION,)
|
ALLOWED_OPERATIONS = (OPERATION,)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -3,18 +3,14 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
|
||||||
# Code is Apache-2.0 and docs are CC-BY-4.0
|
# Code is Apache-2.0 and docs are CC-BY-4.0
|
||||||
|
|
||||||
from planetmint.transactions.common.transaction import (Transaction, Input, Output)
|
from planetmint.transactions.common.transaction import Transaction
|
||||||
from planetmint.transactions.common.schema import (_validate_schema,
|
from planetmint.transactions.common.input import Input
|
||||||
TX_SCHEMA_COMMON,
|
from planetmint.transactions.common.output import Output
|
||||||
TX_SCHEMA_TRANSFER)
|
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
|
||||||
class Transfer(Transaction):
|
class Transfer(Transaction):
|
||||||
|
|
||||||
OPERATION = 'TRANSFER'
|
OPERATION = 'TRANSFER'
|
||||||
# NOTE: This class inherits TRANSFER txn type. The `TRANSFER` property is
|
|
||||||
# overriden to re-use methods from parent class
|
|
||||||
TRANSFER = OPERATION
|
|
||||||
ALLOWED_OPERATIONS = (OPERATION,)
|
ALLOWED_OPERATIONS = (OPERATION,)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user