diff --git a/.changeset/cyan-laws-glow.md b/.changeset/cyan-laws-glow.md new file mode 100644 index 0000000000000..41fd8cf2c4972 --- /dev/null +++ b/.changeset/cyan-laws-glow.md @@ -0,0 +1,5 @@ +--- +'@eth-optimism/sdk': minor +--- + +Slightly modifies the MessageStatus enum to map to strings instead of integers diff --git a/packages/sdk/src/interfaces/types.ts b/packages/sdk/src/interfaces/types.ts index 93b45a41ce246..65bbea984c063 100644 --- a/packages/sdk/src/interfaces/types.ts +++ b/packages/sdk/src/interfaces/types.ts @@ -120,34 +120,34 @@ export enum MessageStatus { /** * Message is an L1 to L2 message and has not been processed by the L2. */ - UNCONFIRMED_L1_TO_L2_MESSAGE, + UNCONFIRMED_L1_TO_L2_MESSAGE = 'UNCONFIRMED_L1_TO_L2_MESSAGE', /** * Message is an L1 to L2 message and the transaction to execute the message failed. * When this status is returned, you will need to resend the L1 to L2 message, probably with a * higher gas limit. */ - FAILED_L1_TO_L2_MESSAGE, + FAILED_L1_TO_L2_MESSAGE = 'FAILED_L1_TO_L2_MESSAGE', /** * Message is an L2 to L1 message and no state root has been published yet. */ - STATE_ROOT_NOT_PUBLISHED, + STATE_ROOT_NOT_PUBLISHED = 'STATE_ROOT_NOT_PUBLISHED', /** * Message is an L2 to L1 message and awaiting the challenge period. */ - IN_CHALLENGE_PERIOD, + IN_CHALLENGE_PERIOD = 'IN_CHALLENGE_PERIOD', /** * Message is ready to be relayed. */ - READY_FOR_RELAY, + READY_FOR_RELAY = 'READY_FOR_RELAY', /** * Message has been relayed. */ - RELAYED, + RELAYED = 'RELAYED', } /**