File tree Expand file tree Collapse file tree 2 files changed +6
-26
lines changed
Expand file tree Collapse file tree 2 files changed +6
-26
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments