Factory deployer

[blockchain/ethereum/Uniswap/v2/Factory deployer]


Deployes UniswapV2Factory contract to the chain


Input ports

  • fee setter address: string

    Optional. Account address of fee setter. See: https://ethereum.org/en/developers/tutorials/uniswap-v2-annotated-code/#UniswapV2Factory

  • config:

    {"providerUrl": string, "privateKey": string, "accountAddress": string}
  • factory contract:

    {
      "contract": {"abi": {string: any}[], "evm": {"bytecode": {"object": string}}},
      "contractParams": string[],
      "settings": {
        "providerUrl": string,
        "privateKey": string,
        "gas": number,
        optional "gasPrice": string
      },
      "estimateGas": boolean
    }["contract"]

Output ports

  • events:

    {
      "field": (
        "transaction hash"
        or "receipt"
        or "confirmation"
        or "contract"
        or "error"
      ),
      "data": any
    }

    Muliplexed events. Use a Demultiplexer to separate them if needed.

  • error: {"error": string}

    Sends out any error that happened during deployment

  • confirmation:

    {
      "confirmationNumber": number,
      "receipt": {"contractAddress": string},
      "latestBlockHash": string
    }

    Sends out the confirmation(s) of the deployment as received from the chain.

Last updated