deploy: {
    __tests__: {
        calculateTxFee: ((txSkeleton, feeRate) => BI);
    };
    compareScriptBinaryWithOnChainData: ((scriptBinary, outPoint, rpc) => Promise<boolean>);
    generateDeployWithDataTx: ((options) => Promise<DeployResult>);
    generateDeployWithTypeIdTx: ((options) => Promise<TypeIDDeployResult>);
    generateUpgradeTypeIdDataTx: ((options) => Promise<DeployResult>);
}

Type declaration

  • __tests__: {
        calculateTxFee: ((txSkeleton, feeRate) => BI);
    }
  • compareScriptBinaryWithOnChainData: ((scriptBinary, outPoint, rpc) => Promise<boolean>)
      • (scriptBinary, outPoint, rpc): Promise<boolean>
      • Parameters

        Returns Promise<boolean>

  • generateDeployWithDataTx: ((options) => Promise<DeployResult>)
      • (options): Promise<DeployResult>
      • Generate txSkeleton for writing binary data to CKB, usually for deploying contracts. This generator only supports SECP256K1_BLAKE160 and SECP256K1_BLAKE160_MULTISIG currently.

        Parameters

        • options: DeployOptions

        Returns Promise<DeployResult>

  • generateDeployWithTypeIdTx: ((options) => Promise<TypeIDDeployResult>)
      • (options): Promise<TypeIDDeployResult>
      • Generate txSkeleton for writing binary data to CKB via Type ID, usually for deploying contracts. Deploying via Type ID makes it possible to upgrade contract, for more information about Type ID, please check: https://xuejie.space/2020_02_03_introduction_to_ckb_script_programming_type_id/ This generator only supports SECP256K1_BLAKE160 and SECP256K1_BLAKE160_MULTISIG currently.

        Parameters

        • options: DeployOptions

        Returns Promise<TypeIDDeployResult>

  • generateUpgradeTypeIdDataTx: ((options) => Promise<DeployResult>)
      • (options): Promise<DeployResult>
      • Parameters

        • options: UpgradeOptions

        Returns Promise<DeployResult>

Generated using TypeDoc