# Function gateway

- gateway<K1, K2>(...args): ToExtPropKey<K1> extends "Mainnet" | "Testnet"
  ? ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object] extends Mapped
  ? ToExtPropKey<K2> extends keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object]
  ? ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object][keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object] & ToExtPropKey<K2>] extends Mapped
  ? any[any]
  : ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object][keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object] & ToExtPropKey<K2>]
  : never
  : ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 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 ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object] extends Mapped
  ? ToExtPropKey<K2> extends keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object]
  ? ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object][keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object] & ToExtPropKey<K2>] extends Mapped
  ? any[any]
  : ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object][keyof ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object] & ToExtPropKey<K2>]
  : never
  : ObjectFromMappingEntries<readonly [readonly ["Mainnet", readonly [readonly ["Wormchain", "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx"]]], readonly ["Testnet", readonly [readonly ["Wormchain", "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk"]]]], 2>[Object]
  : never

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

Generated using TypeDoc