package
0.0.9
Repository: https://github.com/anoideaopen/foundation.git
Documentation: pkg.go.dev

# Functions

Configure sets up the contract configuration for the given ContractConfigurable instance.
FromArgsWithAdmin configures the proto.Config with an admin address.
FromArgsWithIssuerAndAdmin configures the proto.Config with an issuer and admin address.
FromArgsWithIssuerAndFeeSetter configures the proto.Config with an issuer and fee setter address.
FromArgsWithIssuerFeeSetterAndFeeAddressSetter configures the proto.Config with an issuer, fee setter, and fee admin setter address.
FromBytes parses the provided byte slice containing JSON-encoded configuration and returns a pointer to a proto.Config struct.
Deprecated: added only for backward compatibility.
IsJSON checks if the provided arguments represent a valid JSON configuration.
Load retrieves and returns the raw configuration data from the state using the provided State interface.
Save saves configuration data to the state using the provided State interface.
Validate validates the contract configuration for the given ContractConfigurable instance.

# Constants

BatchPrefix is a prefix for batched transactions.

# Variables

positional args specific errors.
No description provided by the author
positional args specific errors.
positional args specific errors.
positional args specific errors.

# Interfaces

ConfigMapper defines a method for mapping Init arguments to a Config instance.
Configurator defines methods for validating, applying, and retrieving contract configuration.
ExternalConfigurator defines methods for validating and applying external configuration.
TokenConfigurator defines methods for validating, applying, and retrieving token configuration.

# Type aliases

ConfigMapperFunc is a function type that implements the ConfigMapper interface.