Skip to content

Commit

Permalink
[NO CHANGELOG][Checkout Widget] Add EIP_6369 post message event type (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jhesgodi authored Aug 5, 2024
1 parent 33b60c9 commit 03a9380
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,21 @@ export type PostMessageHandlerConfiguration = {
// todo put these in a types file
export enum PostMessageHandlerEventType {
PROVIDER_RELAY = 'IMTBL_PROVIDER_RELAY',
EIP_6963_EVENT = 'IMTBL_EIP_6963_EVENT',
WIDGET_EVENT = 'IMTBL_CHECKOUT_WIDGET_EVENT',
}

export type PostMessageProviderRelayData = any;

export type PostMessageEIP6963Data = any;

export type PostMessagePayaload =
| PostMessageProviderRelayData
| PostMessageEIP6963Data;

export type PostMessageData = {
type: PostMessageHandlerEventType;
payload: any;
payload: PostMessagePayaload;
};

export interface MinimalEventSourceInterface {
Expand Down

0 comments on commit 03a9380

Please sign in to comment.