Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var RegisteredContractIDs = []ContractID{ AccountsContractID, AttestationsContractID, BlockchainParametersContractID, DoubleSigningSlasherContractID, DowntimeSlasherContractID, ElectionContractID, EpochRewardsContractID, EscrowContractID, ExchangeContractID, ExchangeBRLContractID, ExchangeEURContractID, FeeHandlerContractID, GasPriceMinimumContractID, GoldTokenContractID, GovernanceContractID, GovernanceSlasherContractID, LockedGoldContractID, RandomContractID, ReserveContractID, SortedOraclesContractID, StableTokenContractID, StableTokenBRLContractID, StableTokenEURContractID, ValidatorsContractID, }
RegisteredContractIDs are all (known) registered contract identifiers
var RegistryAddress = config.RegistrySmartContractAddress
RegistryAddress is the address of the registry which is the same on any celo network
Functions ¶
func IsExpectedBeforeContractsDeployed ¶ added in v0.2.0
IsExpectedBeforeContractsDeployed checks for expected errors when contracts are not deployed yet
Types ¶
type ContractID ¶
type ContractID string
ContractID represents the ID of a contract according to the Registry
var AccountsContractID ContractID = "Accounts"
AccountsContractID is the registry identifier for 'Accounts' contract
var AttestationsContractID ContractID = "Attestations"
AttestationsContractID is the registry identifier for 'Attestations' contract
var BlockchainParametersContractID ContractID = "BlockchainParameters"
BlockchainParametersContractID is the registry identifier for 'BlockchainParameters' contract
var DoubleSigningSlasherContractID ContractID = "DoubleSigningSlasher"
DoubleSigningSlasherContractID is the registry identifier for 'DoubleSigningSlasher' contract
var DowntimeSlasherContractID ContractID = "DowntimeSlasher"
DowntimeSlasherContractID is the registry identifier for 'DowntimeSlasher' contract
var ElectionContractID ContractID = "Election"
ElectionContractID is the registry identifier for 'Election' contract
var EpochRewardsContractID ContractID = "EpochRewards"
EpochRewardsContractID is the registry identifier for 'EpochRewards' contract
var EscrowContractID ContractID = "Escrow"
EscrowContractID is the registry identifier for 'Escrow' contract
var ExchangeBRLContractID ContractID = "ExchangeBRL"
ExchangeBRLContractID is the registry identifier for 'ExchangeBRL' contract
var ExchangeContractID ContractID = "Exchange"
ExchangeContractID is the registry identifier for 'Exchange' contract
var ExchangeEURContractID ContractID = "ExchangeEUR"
ExchangeEURContractID is the registry identifier for 'ExchangeEUR' contract
var FeeHandlerContractID ContractID = "FeeHandler"
FeeHandlerContractID is the registry identifier for 'FeeHandler' contract
var GasPriceMinimumContractID ContractID = "GasPriceMinimum"
GasPriceMinimumContractID is the registry identifier for 'GasPriceMinimum' contract
var GoldTokenContractID ContractID = "GoldToken"
GoldTokenContractID is the registry identifier for 'GoldToken' contract
var GovernanceContractID ContractID = "Governance"
GovernanceContractID is the registry identifier for 'Governance' contract
var GovernanceSlasherContractID ContractID = "GovernanceSlasher"
GovernanceSlasherContractID is the registry identifier for 'GovernanceSlasher' contract
var LockedGoldContractID ContractID = "LockedGold"
LockedGoldContractID is the registry identifier for 'LockedGold' contract
var RandomContractID ContractID = "Random"
RandomContractID is the registry identifier for 'Random' contract
var ReserveContractID ContractID = "Reserve"
ReserveContractID is the registry identifier for 'Reserve' contract
var SortedOraclesContractID ContractID = "SortedOracles"
SortedOraclesContractID is the registry identifier for 'SortedOracles' contract
var StableTokenBRLContractID ContractID = "StableTokenBRL"
StableTokenBRLContractID is the registry identifier for 'StableTokenBRL' contract
var StableTokenContractID ContractID = "StableToken"
StableTokenContractID is the registry identifier for 'StableToken' contract
var StableTokenEURContractID ContractID = "StableTokenEUR"
StableTokenEURContractID is the registry identifier for 'StableTokenEUR' contract
var ValidatorsContractID ContractID = "Validators"
ValidatorsContractID is the registry identifier for 'Validators' contract
func (ContractID) String ¶
func (cid ContractID) String() string
type Registry ¶
type Registry interface { AllAddresses(ctx context.Context, blockNumber *big.Int) ([]common.Address, error) GetAddressFor(ctx context.Context, blockNumber *big.Int, contractID ContractID) (common.Address, error) TryParseLog(ctx context.Context, eventLog types.Log, blockNumber *big.Int) (*RegistryParsedLog, error) EnableCaching(ctx context.Context, blockNumber *big.Int) error // contains filtered or unexported methods }
Registry defines an interface to access all Celo core Contracts