Skip to content

Commit

Permalink
support transfer validator in cli (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhirst authored Feb 27, 2025
1 parent 02e2592 commit cd314bc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/cmds/const
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ export ETH_KEYSTORE_ACCOUNT=$MAGIC_DROP_KEYSTORE

ME_TRANSFER_VALIDATOR_V3="0x721C00D4FB075b22a5469e9CF2440697F729aA13"
LIMITBREAK_TRANSFER_VALIDATOR_V3="0x721C0078c2328597Ca70F5451ffF5A7B38D4E947"
LIMITBREAK_TRANSFER_VALIDATOR_V3_ABSTRACT="0x3203c3f64312AF9344e42EF8Aa45B97C9DFE4594"
LIMITBREAK_TRANSFER_VALIDATOR_V3_BERACHAIN="0x721c002b0059009a671d00ad1700c9748146cd1b"

ICREATOR_TOKEN_INTERFACE_ID="0xad0d7f6c" # type(ICreatorToken).interfaceId
TRUE_HEX="0x0000000000000000000000000000000000000000000000000000000000000001"

# Used on chains where we don't have a custom list
DEFAULT_LIST_ID="0"
MAGIC_EDEN_DEFAULT_LIST_ID="1"
# We use list 3 for Polygon because list 1 was already taken.
MAGIC_EDEN_POLYGON_LIST_ID="3"
Expand Down
9 changes: 9 additions & 0 deletions cli/cmds/getters
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ get_transfer_validator_address() {
"42161"|"8453"|"1"|"11155111")
echo "$LIMITBREAK_TRANSFER_VALIDATOR_V3"
;;
"2741")
echo "$LIMITBREAK_TRANSFER_VALIDATOR_V3_ABSTRACT"
;;
"80094")
echo "$LIMITBREAK_TRANSFER_VALIDATOR_V3_BERACHAIN"
;;
*)
echo "$LIMITBREAK_TRANSFER_VALIDATOR_V3"
;;
Expand All @@ -92,6 +98,9 @@ get_transfer_validator_address() {
get_transfer_validator_list_id() {
local network="$1"
case $network in
"80094")
echo $DEFAULT_LIST_ID
;;
"137")
echo $MAGIC_EDEN_POLYGON_LIST_ID
;;
Expand Down

0 comments on commit cd314bc

Please sign in to comment.