This mechanism allows for the discovery of multiple providers without race conditions. The injected providers communicate with the DApp through window…
interface DemosRequestProviderEvent extends Event{
type:"demosRequestProvider",
}
interface DemosAnnounceProviderEvent extends CustomEvent{
type:"demosAnnounceProvider",
detail: DemosProviderDetail;
}
interface DemosProviderDetail {
info: DemosProviderInfo;
provider: DemosProvider;
}
export default interface DemosProviderInfo {
uuid: string;
name: string;
icon: string;
url: string;
}