@aragon/wrapper
Version:
Library for Aragon client implementations
25 lines • 1.09 kB
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;/**
* An identity provider for addresses
*
* This is the expected interface which all identity
* providers are expected to implement
* Additional functionality can be added in subclasses
*
*
* @class AddressIdentityProvider
*/class AddressIdentityProvider{/**
* Optional initialization, if required by the provider
*/async init(){}/**
* Resolve the identity metadata for an address
* Should resolve to null if an identity could not be found
*
* @param {string} address Address to resolve
* @return {Promise} Resolved metadata or rejected error
*/async resolve(){throw new Error("Not implemented")}/**
* Modify the identity metadata of an address
*
* @param {string} address Address to resolve
* @param {Object} metadata Metadata to modify
* @return {Promise} Resolved success action or rejected error
*/async modify(){throw new Error("Not implemented")}}exports.default=AddressIdentityProvider;
//# sourceMappingURL=AddressIdentityProvider.js.map