# Function gateway

- gateway<K1, K2>(args_0, args_1): (K1 extends bigint
  ? `bigint(${K1})`
  : K1 extends boolean
  ? `boolean(${K1})`
  : K1) extends "Mainnet" | "Testnet"
  ? {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object] extends {
  [key: string]: unknown;
  }
  ? (K2 extends bigint
  ? `bigint(${K2})`
  : K2 extends boolean
  ? `boolean(${K2})`
  : K2) extends keyof {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object]
  ? {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object][keyof {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object] & (K2 extends bigint
  ? `bigint(${K2})`
  : K2 extends boolean
  ? `boolean(${K2})`
  : K2)] extends {
  [key: string]: unknown;
  }
  ? {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object][keyof {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object] & (K2 extends bigint
  ? `bigint(${K2})`
  : K2 extends boolean
  ? `boolean(${K2})`
  : K2)]
  : {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object][keyof {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object] & (K2 extends bigint
  ? `bigint(${K2})`
  : K2 extends boolean
  ? `boolean(${K2})`
  : K2)]
  : never
  : {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object]
  : never

- #### Type Parameters

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

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

  #### Parameters

  - ##### args_0: K1

  - ##### args_1: K2

  #### Returns (K1 extends bigint
  ? `bigint(${K1})`
  : K1 extends boolean
  ? `boolean(${K1})`
  : K1) extends "Mainnet" | "Testnet"
  ? {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object] extends {
  [key: string]: unknown;
  }
  ? (K2 extends bigint
  ? `bigint(${K2})`
  : K2 extends boolean
  ? `boolean(${K2})`
  : K2) extends keyof {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object]
  ? {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object][keyof {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object] & (K2 extends bigint
  ? `bigint(${K2})`
  : K2 extends boolean
  ? `boolean(${K2})`
  : K2)] extends {
  [key: string]: unknown;
  }
  ? {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object][keyof {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object] & (K2 extends bigint
  ? `bigint(${K2})`
  : K2 extends boolean
  ? `boolean(${K2})`
  : K2)]
  : {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object][keyof {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object] & (K2 extends bigint
  ? `bigint(${K2})`
  : K2 extends boolean
  ? `boolean(${K2})`
  : K2)]
  : never
  : {
  Mainnet: {
  Wormchain: "wormhole14ejqjyq8um4p3xfqj74yld5waqljf88fz25yxnma0cngspxe3les00fpjx";
  };
  Testnet: {
  Wormchain: "wormhole1ctnjk7an90lz5wjfvr3cf6x984a8cjnv8dpmztmlpcq4xteaa2xs9pwmzk";
  };
  }[Object]
  : never

  - Defined in core/base/dist/esm/constants/contracts/index.d.ts:4091

Generated using TypeDoc