From c0206820913e2ddaeb244484da3db66de1c4494f Mon Sep 17 00:00:00 2001 From: Alex Metelli Date: Mon, 2 Sep 2024 06:10:42 +0800 Subject: [PATCH] + IMessageRecipient interface --- .../contracts/token/interfaces/imessage_recipient.cairo | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cairo/src/contracts/token/interfaces/imessage_recipient.cairo diff --git a/cairo/src/contracts/token/interfaces/imessage_recipient.cairo b/cairo/src/contracts/token/interfaces/imessage_recipient.cairo new file mode 100644 index 0000000..866d6a3 --- /dev/null +++ b/cairo/src/contracts/token/interfaces/imessage_recipient.cairo @@ -0,0 +1,7 @@ +use alexandria_bytes::Bytes; +use starknet::ContractAddress; + +#[starknet::interface] +pub trait IMessageRecipient { + fn handle(ref self: TState, origin: u32, sender: Option, message: Bytes); +}