Skip to content

Commit a72ce64

Browse files
committed
feat: add re-export on new files
1 parent fcda586 commit a72ce64

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

hathor/nanocontracts/nano_runtime_version.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from enum import IntEnum
16-
17-
18-
class NanoRuntimeVersion(IntEnum):
19-
"""
20-
The runtime version of Nano Contracts.
21-
It must be updated via Feature Activation and can be used to add new syscalls, for example.
22-
23-
V1:
24-
- Initial version
25-
26-
V2:
27-
- Added `get_settings` syscall
28-
"""
29-
V1 = 1
30-
V2 = 2
15+
# Re-export from hathorlib for backward compatibility
16+
from hathorlib.nanocontracts.nano_runtime_version import * # noqa: F401,F403
17+
from hathorlib.nanocontracts.nano_runtime_version import NanoRuntimeVersion # noqa: F401

hathor/nanocontracts/nano_settings.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from dataclasses import dataclass
16-
17-
18-
@dataclass(slots=True, frozen=True, kw_only=True)
19-
class NanoSettings:
20-
"""
21-
This dataclass contains information about the settings used by the current Nano runtime.
22-
It is returned by the `get_settings` syscall. Note that settings are not constant, they may change over time.
23-
"""
24-
fee_per_output: int
15+
# Re-export from hathorlib for backward compatibility
16+
from hathorlib.nanocontracts.nano_settings import * # noqa: F401,F403
17+
from hathorlib.nanocontracts.nano_settings import NanoSettings # noqa: F401

0 commit comments

Comments
 (0)