deploy

The deploy object is meant to be used individual contracts, it only supports the bytecode's provided by the abis pkg

Parameters: a nested object with the following properties

{
    [DeployKeys]: {
        publicClient: PublicClient // the public client / provider to make RPC calls
        walletClient: WalletClient // the wallet client to sign and submit transactions
        ...DeployParamsByKey<DeployKeys> // Rest of the params are conditioned by the key
    }
}

Returns: on object with the following properties

DeployReturnByKey<DeployKeys>

Example:

import { deploy } from '@inverter-network/sdk'

const {
tokenAddress,
transactionHash
} = await deploy.ERC20Issuance({
        publicClient,
        walletClient,
        name: 'My Token',
        symbol: 'MT',
        decimals: 18,
        maxSupply: '1000000',
        initialAdmin: walletClient.account.address
        })

Last updated