Skip to content

Expose storage config in node api + AS abi #4489

@peterjah

Description

@peterjah

To compute storage cost of an operation some constants must be known and may be specific to a network.
To avoid these constants to be hardcoded and to easily support changes when they are not the same among networks, these constants should be somewhere in the node API and in the AS vm ABI.

Here i am thinking of storage constants like "StorageCostPerByte" or "AccountCreationCost", but there is most likely other constant that should be dynamically available

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsmart-contractsIssue related to the smart contract world

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions