Type alias WidgetEventData

WidgetEventData: {
    connect: {
        success: ConnectionSuccess;
        failure: ConnectionFailed;
        close-widget: {};
        walletconnect-provider-updated: WalletConnectProviderChanged;
    } & OrchestrationMapping & ProviderEventMapping;
    wallet: {
        network-switch: WalletNetworkSwitch;
        disconnect-wallet: WalletDisconnect;
        close-widget: {};
    } & OrchestrationMapping & ProviderEventMapping;
    swap: {
        success: SwapSuccess;
        failure: SwapFailed;
        rejected: SwapRejected;
        close-widget: {};
    } & OrchestrationMapping & ProviderEventMapping;
    bridge: {
        transaction-sent: BridgeTransactionSent;
        failure: BridgeFailed;
        close-widget: {};
        claim-withdrawal-success: BridgeClaimWithdrawalSuccess;
        claim-withdrawal-failure: BridgeClaimWithdrawalFailed;
    } & OrchestrationMapping & ProviderEventMapping;
    onramp: {
        success: OnRampSuccess;
        failure: OnRampFailed;
        close-widget: {};
    } & OrchestrationMapping & ProviderEventMapping;
    sale: {
        success: SaleSuccess;
        failure: SaleFailed;
        rejected: any;
        close-widget: {};
        transaction-success: SaleTransactionSuccess;
        payment-method: SalePaymentMethod;
        payment-token: SalePaymentToken;
        request-bridge: {};
        request-swap: {};
        request-onramp: {};
    } & OrchestrationMapping & ProviderEventMapping;
}

Mapping of widget type, to each of it's events and then each event's payload Update this whenever a new event is created and used by a widget Each widget also has all of the orchestration events

Type declaration

Generated using TypeDoc