# Packages
No description provided by the author
package nativehashes contains hashes of all native contracts in their LE and Uint160 representation.
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
Call calls the specified native contract method.
CreateOracleResponseScript returns a script that is used to create the native Oracle response.
GetContract returns a contract with the given hash from the given DAO.
GetContractByID returns a contract with the given ID from the given DAO.
GetContractScriptHash returns a contract hash associated with the given ID from the given DAO.
Keccak256 hashes the incoming byte slice using the keccak256 algorithm.
MakeContractKey creates a key from the account script hash.
NewContracts returns a new set of native contracts with new GAS, NEO, Policy, Oracle, Designate and (optional) Notary contracts.
OnPersist calls OnPersist methods for all native contracts.
PostPersist calls PostPersist methods for all native contracts.
PutContractState saves given contract state into given DAO.
# Constants
DefaultOracleRequestPrice is the default amount GAS needed for an oracle request.
DefaultRegisterPrice is the default price for candidate register.
DefaultStoragePrice is the price to pay for 1 byte of storage.
DesignationEventName is the name of the designation event.
GASFactor is a divisor for finding GAS integral value.
No description provided by the author
MinimumResponseGas is the minimum response fee permitted for a request.
NEOTotalSupply is the total amount of NEO in the system.
PrefixContract is a prefix used to store contract states inside Management native contract.
Various pairs of named elliptic curves and hash functions.
Various pairs of named elliptic curves and hash functions.
Various pairs of named elliptic curves and hash functions.
Various pairs of named elliptic curves and hash functions.
# Variables
Various errors.
Various validation errors.
Various errors.
ErrInvalidBase is returned when the base is invalid.
ErrInvalidFormat is returned when the string is not a number.
Various errors.
Various errors.
Various validation errors.
Various errors.
Various validation errors.
Various errors.
Various validation errors.
Various validation errors.
Various validation errors.
ErrTooBigInput is returned when the input exceeds the size limit.
# Structs
Contracts is a set of registered native contracts.
Crypto represents CryptoLib contract.
Designate represents a designation contract.
No description provided by the author
GAS represents GAS native contract.
Ledger provides an interface to blocks/transactions storage for smart contracts.
Management is a contract-managing native contract.
No description provided by the author
NEO represents NEO native contract.
No description provided by the author
Notary represents Notary native contract.
No description provided by the author
Oracle represents Oracle native contract.
No description provided by the author
Policy represents Policy native contract.
No description provided by the author
Std represents an StdLib contract.
# Interfaces
NotaryService is a Notary module interface.
OracleService specifies oracle module interface.
# Type aliases
HashFunc is a delegate representing a hasher function with 256 bytes output length.
IDList is a list of oracle request IDs.
NamedCurveHash identifies a pair of named elliptic curve and hash function.
NodeList represents a list of oracle nodes.