package
0.0.0-20241208111057-bff769524785
Repository: https://github.com/epicchainlabs/epicchain-contract.git
Documentation: pkg.go.dev

# Functions

AbortWithMessage calls `runtime.Log` with the passed message and calls `ABORT` opcode.
AlphabetAddress returns multi address of alphabet public keys.
AlphabetNodes returns a list of alphabet nodes from committee in the sidechain.
AppendVersion appends current contract version to the list of deploy arguments.
No description provided by the author
BytesEqual compares two slices of bytes by wrapping them into strings, which is necessary with new util.Equals interop behaviour, see neo-go#1176.
CheckAlphabetWitness checks witness of the passed caller.
CheckOwnerWitness checks witness of the passed caller.
CheckVersion checks that contract can be updated from given original version to the current one correctly.
CheckWitness checks witness of the passed caller.
CommitteeAddress returns multi address of committee.
No description provided by the author
ContainsAlphabetWitness checks whether carrier transaction contains either (2/3N + 1) or (N/2 + 1) valid multi-signature of the NeoFS Alphabet.
No description provided by the author
No description provided by the author
HasUpdateAccess returns true if contract can be updated.
InferNNSHash returns NNS contract hash by [NNSID] or panics if it can't be resolved.
No description provided by the author
InnerRingInvoker returns the public key of the inner ring node that has invoked the contract.
InnerRingNodes return a list of inner ring nodes from state validator role in the sidechain.
InnerRingNodesFromNetmap gets a list of inner ring nodes through calling "innerRingList" method of smart contract.
InvokeID returns hashed value of prefix and args concatenation.
No description provided by the author
No description provided by the author
Multiaddress returns default multisignature account address for N keys.
RemoveVotes clears ballots of the decision that has been accepted by inner ring nodes.
ResolveFSContract returns contract hash by name as registered in NNS or panics if it can't be resolved.
ResolveFSContractWithNNS uses given NNS contract and returns target contract hash by name as registered in NNS (assuming NeoFS-specific NNS setup, see [NNSID]) or panics if it can't be resolved.
SetSerialized serializes data and puts it into contract storage.
SubscribeForNewEpoch registers calling contract as a NewEpoch callback requester.
TryPurgeVotes removes storage item by 'ballots' key if it doesn't contain any in-progress vote.
No description provided by the author
Vote adds ballot for the decision with a specific 'id' and returns the amount of unique voters for that decision.
No description provided by the author

# Constants

ContractTLD is the default domain used by NeoFS contracts.
ErrAlreadyUpdated is thrown by CheckVersion if current version equals to version contract is being updated from.
ErrVersionMismatch is thrown by CheckVersion in case of error.
LegacyOwnerKey is storage key used to store contract owner.
NNSID is the ID of the NNS contract in NeoFS networks.
No description provided by the author
No description provided by the author

# Variables

ErrAlphabetWitnessFailed appears when the method must be called by the Alphabet but was not.
ErrOwnerWitnessFailed appears when the method must be called by an owner of some assets but was not.
ErrWitnessFailed appears when the method must be called using certain public key but was not.

# Structs

No description provided by the author
No description provided by the author