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: checkout.SalePaymentToken;
        request-bridge: {};
        request-swap: {};
        request-onramp: {};
    } & OrchestrationMapping & ProviderEventMapping;
    immutableCommerce: {
        INITIALISED: CommerceWidgetParams;
        PROVIDER_UPDATED: CommerceProviderUpdatedEvent;
        CLOSE: {};
        SUCCESS: CommerceSuccessEvent;
        FAILURE: CommerceFailureEvent;
        DISCONNECTED: {};
        USER_ACTION: CommerceUserActionEvent;
    };
    addTokens: {
        close-widget: {};
        connect-success: AddTokensConnectSuccess;
        success: AddTokensSuccess;
        failure: AddTokensFailed;
    } & OrchestrationMapping & ProviderEventMapping;
    purchase: {
        close-widget: {};
        connect-success: PurchaseConnectSuccess;
        success: PurchaseSuccess;
        failure: PurchaseFailed;
    } & OrchestrationMapping & ProviderEventMapping;
}

Mapping of widget type, to each of its 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 the orchestration events