# Function rollupContracts

- rollupContracts<K1, K2>(...args): ToExtPropKey<K1> extends "Mainnet" | "Testnet"
  ? ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object] extends Mapped
  ? ToExtPropKey<K2> extends keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object]
  ? ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object][keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object] & ToExtPropKey<K2>] extends Mapped
  ? any[any]
  : ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object][keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object] & ToExtPropKey<K2>]
  : never
  : ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object]
  : never

- #### Type Parameters

  - #### K1 extends "Mainnet" | "Testnet"

  - #### K2 extends string | number | symbol

  #### Parameters

  - ##### `Rest` ...args: [K1, K2]

  #### Returns ToExtPropKey<K1> extends "Mainnet" | "Testnet"
  ? ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object] extends Mapped
  ? ToExtPropKey<K2> extends keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object]
  ? ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object][keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object] & ToExtPropKey<K2>] extends Mapped
  ? any[any]
  : ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object][keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object] & ToExtPropKey<K2>]
  : never
  : ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x86E4Dc95c7FBdBf52e33D563BbDB00823894C287"]], readonly ["Optimism", readonly ["Ethereum", "0xdfe97868233d1aa22e815a266982f2cf17685a27"]], readonly ["Arbitrum", readonly ["Ethereum", "0x1c479675ad559dc151f6ec7ed3fbf8cee79582b6"]]]], readonly ["Testnet", readonly [readonly ["Polygon", readonly ["Ethereum", "0x2890ba17efe978480615e330ecb65333b880928e"]], readonly ["Optimism", readonly ["Ethereum", "0xe6dfba0953616bacab0c9a8ecb3a9bba77fc15c0"]], readonly ["Arbitrum", readonly ["Ethereum", "0x45af9ed1d03703e480ce7d328fb684bb67da5049"]]]]], 2>[Object]
  : never

  - Defined in core/base/src/utils/mapping.ts:327

Generated using TypeDoc