@celo/contractkit"address-registry"AddressRegistry

Class: AddressRegistry

Celo Core Contract's Address Registry

Hierarchy

  • AddressRegistry

Index

Constructors

Methods

Constructors

constructor

+ new AddressRegistry(kit: ContractKit): AddressRegistry

Defined in packages/sdk/contractkit/src/address-registry.ts:23

Parameters:

Name Type
kit ContractKit

Returns: AddressRegistry

Methods

addressFor

addressFor(contract: CeloContract): Promise‹Address›

Defined in packages/sdk/contractkit/src/address-registry.ts:33

Get the address for a CeloContract

Parameters:

Name Type
contract CeloContract

Returns: Promise‹Address›


addressMapping

addressMapping(): Promise‹Map‹CeloContract, string››

Defined in packages/sdk/contractkit/src/address-registry.ts:51

Get the address mapping for known registered contracts

Returns: Promise‹Map‹CeloContract, string››