Skip to content

Commit

Permalink
feat: add strk to default address book
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Feb 21, 2024
1 parent 98a9009 commit 0a8da9c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/address_book.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,47 @@ use crate::chain_id::ChainIdSource;

const CHAIN_ID_KATANA: FieldElement = felt!("0x4b4154414e41");

pub const HARDCODED_ADDRESS_BOOK: [AddressBookEntry; 6] = [
pub const HARDCODED_ADDRESS_BOOK: [AddressBookEntry; 10] = [
AddressBookEntry {
chain_id: chain_id::MAINNET,
name: "eth",
address: felt!("0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
},
AddressBookEntry {
chain_id: chain_id::MAINNET,
name: "strk",
address: felt!("0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
},
AddressBookEntry {
chain_id: chain_id::TESTNET,
name: "eth",
address: felt!("0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
},
AddressBookEntry {
chain_id: chain_id::TESTNET,
name: "strk",
address: felt!("0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
},
AddressBookEntry {
chain_id: short_string!("SN_SEPOLIA"),
name: "eth",
address: felt!("0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
},
AddressBookEntry {
chain_id: short_string!("SN_SEPOLIA"),
name: "strk",
address: felt!("0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
},
AddressBookEntry {
chain_id: short_string!("SN_INTEGRATION_SEPOLIA"),
name: "eth",
address: felt!("0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"),
},
AddressBookEntry {
chain_id: short_string!("SN_INTEGRATION_SEPOLIA"),
name: "strk",
address: felt!("0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"),
},
AddressBookEntry {
chain_id: CHAIN_ID_KATANA,
name: "eth",
Expand Down

0 comments on commit 0a8da9c

Please sign in to comment.