Variable defaultConst

default: {
    anyoneCanPay: {
        CellCollector: commons.CellCollectorConstructor;
        injectCapacity: injectCapacity;
        prepareSigningEntries: prepareSigningEntries;
        setupInputCell: setupInputCell;
        setupOutputCell: setupOutputCell;
        withdraw: withdraw;
    };
    common: {
        __tests__: {
            _commonTransfer: ((txSkeleton, fromInfos, amount, minimalChangeCapacity, { config, enableDeductCapacity, }?) => Promise<{
                capacity: bigint;
                changeCapacity: bigint;
                txSkeleton: helpers;
            }>);
            calculateFee: ((size, feeRate) => bigint);
            calculateFeeCompatible: ((size, feeRate) => @ckb-lumos/bi);
            generateLockScriptInfos: (({ config }?) => void);
            getLockScriptInfos: (() => {
                _customInfos: commons.LockScriptInfo[];
                _predefinedInfos: commons.LockScriptInfo[];
                configHashCode: number;
                infos: commons.LockScriptInfo[];
            });
            getTransactionSize: ((txSkeleton) => number);
            getTransactionSizeByTx: ((tx) => number);
            resetLockScriptInfos: (() => void);
        };
        injectCapacity: injectCapacity;
        payFee: payFee;
        payFeeByFeeRate: payFeeByFeeRate;
        prepareSigningEntries: prepareSigningEntries;
        registerCustomLockScriptInfos: registerCustomLockScriptInfos;
        setupInputCell: setupInputCell;
        transfer: transfer;
    };
    dao: {
        CellCollector: CellCollector;
        calculateDaoEarliestSince: calculateDaoEarliestSince;
        calculateDaoEarliestSinceCompatible: calculateDaoEarliestSinceCompatible;
        calculateMaximumWithdraw: calculateMaximumWithdraw;
        calculateMaximumWithdrawCompatible: calculateMaximumWithdrawCompatible;
        deposit: deposit;
        listDaoCells: listDaoCells;
        unlock: unlock;
        withdraw: ((txSkeleton, fromInput, fromInfo?, { config }?) => Promise<helpers>);
    };
    locktimePool: {
        CellCollector: commons.CellCollectorConstructor;
        injectCapacity: injectCapacity;
        injectCapacityWithoutChange: ((txSkeleton, fromInfos, amount, tipHeader, minimalChangeCapacity, { config, LocktimeCellCollector, enableDeductCapacity, }) => Promise<{
            capacity: bigint;
            changeCapacity: bigint;
            txSkeleton: helpers;
        }>);
        injectCapacityWithoutChangeCompatible: ((txSkeleton, fromInfos, amount, tipHeader, minimalChangeCapacity, { config, LocktimeCellCollector, enableDeductCapacity, }) => Promise<{
            capacity: @ckb-lumos/bi;
            changeCapacity: @ckb-lumos/bi;
            txSkeleton: helpers;
        }>);
        payFee: payFee;
        prepareSigningEntries: prepareSigningEntries;
        setupInputCell: setupInputCell;
        transfer: transfer;
        transferCompatible: transferCompatible;
    };
    secp256k1Blake160: {
        CellCollector: commons.CellCollectorConstructor;
        injectCapacity: injectCapacity;
        payFee: payFee;
        prepareSigningEntries: prepareSigningEntries;
        setupInputCell: setupInputCell;
        transfer: transfer;
        transferCompatible: transferCompatible;
    };
    secp256k1Blake160Multisig: {
        CellCollector: commons.CellCollectorConstructor;
        injectCapacity: injectCapacity;
        multisigArgs: multisigArgs;
        payFee: payFee;
        prepareSigningEntries: prepareSigningEntries;
        serializeMultisigScript: serializeMultisigScript;
        setupInputCell: setupInputCell;
        transfer: transfer;
        transferCompatible: transferCompatible;
    };
    sudt: {
        issueToken: issueToken;
        ownerForSudt: ownerForSudt;
        packAmount: packAmount;
        transfer: transfer;
        unpackAmount: unpackAmount;
    };
}

Type declaration

  • anyoneCanPay: {
        CellCollector: commons.CellCollectorConstructor;
        injectCapacity: injectCapacity;
        prepareSigningEntries: prepareSigningEntries;
        setupInputCell: setupInputCell;
        setupOutputCell: setupOutputCell;
        withdraw: withdraw;
    }
    • CellCollector: commons.CellCollectorConstructor
    • injectCapacity: injectCapacity
    • prepareSigningEntries: prepareSigningEntries
    • setupInputCell: setupInputCell
    • setupOutputCell: setupOutputCell
    • withdraw: withdraw
  • common: {
        __tests__: {
            _commonTransfer: ((txSkeleton, fromInfos, amount, minimalChangeCapacity, { config, enableDeductCapacity, }?) => Promise<{
                capacity: bigint;
                changeCapacity: bigint;
                txSkeleton: helpers;
            }>);
            calculateFee: ((size, feeRate) => bigint);
            calculateFeeCompatible: ((size, feeRate) => @ckb-lumos/bi);
            generateLockScriptInfos: (({ config }?) => void);
            getLockScriptInfos: (() => {
                _customInfos: commons.LockScriptInfo[];
                _predefinedInfos: commons.LockScriptInfo[];
                configHashCode: number;
                infos: commons.LockScriptInfo[];
            });
            getTransactionSize: ((txSkeleton) => number);
            getTransactionSizeByTx: ((tx) => number);
            resetLockScriptInfos: (() => void);
        };
        injectCapacity: injectCapacity;
        payFee: payFee;
        payFeeByFeeRate: payFeeByFeeRate;
        prepareSigningEntries: prepareSigningEntries;
        registerCustomLockScriptInfos: registerCustomLockScriptInfos;
        setupInputCell: setupInputCell;
        transfer: transfer;
    }
    • __tests__: {
          _commonTransfer: ((txSkeleton, fromInfos, amount, minimalChangeCapacity, { config, enableDeductCapacity, }?) => Promise<{
              capacity: bigint;
              changeCapacity: bigint;
              txSkeleton: helpers;
          }>);
          calculateFee: ((size, feeRate) => bigint);
          calculateFeeCompatible: ((size, feeRate) => @ckb-lumos/bi);
          generateLockScriptInfos: (({ config }?) => void);
          getLockScriptInfos: (() => {
              _customInfos: commons.LockScriptInfo[];
              _predefinedInfos: commons.LockScriptInfo[];
              configHashCode: number;
              infos: commons.LockScriptInfo[];
          });
          getTransactionSize: ((txSkeleton) => number);
          getTransactionSizeByTx: ((tx) => number);
          resetLockScriptInfos: (() => void);
      }
      • _commonTransfer: ((txSkeleton, fromInfos, amount, minimalChangeCapacity, { config, enableDeductCapacity, }?) => Promise<{
            capacity: bigint;
            changeCapacity: bigint;
            txSkeleton: helpers;
        }>)
          • (txSkeleton, fromInfos, amount, minimalChangeCapacity, { config, enableDeductCapacity, }?): Promise<{
                capacity: bigint;
                changeCapacity: bigint;
                txSkeleton: helpers;
            }>
          • Parameters

            • txSkeleton: helpers
            • fromInfos: commons.FromInfo[]
            • amount: bigint
            • minimalChangeCapacity: bigint
            • Optional { config, enableDeductCapacity, }: helpers & {
                  enableDeductCapacity?: boolean;
              }

            Returns Promise<{
                capacity: bigint;
                changeCapacity: bigint;
                txSkeleton: helpers;
            }>

      • calculateFee: ((size, feeRate) => bigint)
          • (size, feeRate): bigint
          • Parameters

            • size: number
            • feeRate: bigint

            Returns bigint

      • calculateFeeCompatible: ((size, feeRate) => @ckb-lumos/bi)
      • generateLockScriptInfos: (({ config }?) => void)
          • ({ config }?): void
          • Parameters

            Returns void

      • getLockScriptInfos: (() => {
            _customInfos: commons.LockScriptInfo[];
            _predefinedInfos: commons.LockScriptInfo[];
            configHashCode: number;
            infos: commons.LockScriptInfo[];
        })
      • getTransactionSize: ((txSkeleton) => number)
          • (txSkeleton): number
          • Parameters

            Returns number

      • getTransactionSizeByTx: ((tx) => number)
      • resetLockScriptInfos: (() => void)
          • (): void
          • Returns void

    • injectCapacity: injectCapacity
    • payFee: payFee
    • payFeeByFeeRate: payFeeByFeeRate
    • prepareSigningEntries: prepareSigningEntries
    • registerCustomLockScriptInfos: registerCustomLockScriptInfos
    • setupInputCell: setupInputCell
    • transfer: transfer
  • dao: {
        CellCollector: CellCollector;
        calculateDaoEarliestSince: calculateDaoEarliestSince;
        calculateDaoEarliestSinceCompatible: calculateDaoEarliestSinceCompatible;
        calculateMaximumWithdraw: calculateMaximumWithdraw;
        calculateMaximumWithdrawCompatible: calculateMaximumWithdrawCompatible;
        deposit: deposit;
        listDaoCells: listDaoCells;
        unlock: unlock;
        withdraw: ((txSkeleton, fromInput, fromInfo?, { config }?) => Promise<helpers>);
    }
    • CellCollector: CellCollector
    • calculateDaoEarliestSince: calculateDaoEarliestSince
    • calculateDaoEarliestSinceCompatible: calculateDaoEarliestSinceCompatible
    • calculateMaximumWithdraw: calculateMaximumWithdraw
    • calculateMaximumWithdrawCompatible: calculateMaximumWithdrawCompatible
    • deposit: deposit
    • listDaoCells: listDaoCells
    • unlock: unlock
    • withdraw: ((txSkeleton, fromInput, fromInfo?, { config }?) => Promise<helpers>)
  • locktimePool: {
        CellCollector: commons.CellCollectorConstructor;
        injectCapacity: injectCapacity;
        injectCapacityWithoutChange: ((txSkeleton, fromInfos, amount, tipHeader, minimalChangeCapacity, { config, LocktimeCellCollector, enableDeductCapacity, }) => Promise<{
            capacity: bigint;
            changeCapacity: bigint;
            txSkeleton: helpers;
        }>);
        injectCapacityWithoutChangeCompatible: ((txSkeleton, fromInfos, amount, tipHeader, minimalChangeCapacity, { config, LocktimeCellCollector, enableDeductCapacity, }) => Promise<{
            capacity: @ckb-lumos/bi;
            changeCapacity: @ckb-lumos/bi;
            txSkeleton: helpers;
        }>);
        payFee: payFee;
        prepareSigningEntries: prepareSigningEntries;
        setupInputCell: setupInputCell;
        transfer: transfer;
        transferCompatible: transferCompatible;
    }
    • CellCollector: commons.CellCollectorConstructor
    • injectCapacity: injectCapacity
    • injectCapacityWithoutChange: ((txSkeleton, fromInfos, amount, tipHeader, minimalChangeCapacity, { config, LocktimeCellCollector, enableDeductCapacity, }) => Promise<{
          capacity: bigint;
          changeCapacity: bigint;
          txSkeleton: helpers;
      }>)
        • (txSkeleton, fromInfos, amount, tipHeader, minimalChangeCapacity, { config, LocktimeCellCollector, enableDeductCapacity, }): Promise<{
              capacity: bigint;
              changeCapacity: bigint;
              txSkeleton: helpers;
          }>
        • Parameters

          Returns Promise<{
              capacity: bigint;
              changeCapacity: bigint;
              txSkeleton: helpers;
          }>

    • injectCapacityWithoutChangeCompatible: ((txSkeleton, fromInfos, amount, tipHeader, minimalChangeCapacity, { config, LocktimeCellCollector, enableDeductCapacity, }) => Promise<{
          capacity: @ckb-lumos/bi;
          changeCapacity: @ckb-lumos/bi;
          txSkeleton: helpers;
      }>)
    • payFee: payFee
    • prepareSigningEntries: prepareSigningEntries
    • setupInputCell: setupInputCell
    • transfer: transfer
    • transferCompatible: transferCompatible
  • secp256k1Blake160: {
        CellCollector: commons.CellCollectorConstructor;
        injectCapacity: injectCapacity;
        payFee: payFee;
        prepareSigningEntries: prepareSigningEntries;
        setupInputCell: setupInputCell;
        transfer: transfer;
        transferCompatible: transferCompatible;
    }
    • CellCollector: commons.CellCollectorConstructor
    • injectCapacity: injectCapacity
    • payFee: payFee
    • prepareSigningEntries: prepareSigningEntries
    • setupInputCell: setupInputCell
    • transfer: transfer
    • transferCompatible: transferCompatible
  • secp256k1Blake160Multisig: {
        CellCollector: commons.CellCollectorConstructor;
        injectCapacity: injectCapacity;
        multisigArgs: multisigArgs;
        payFee: payFee;
        prepareSigningEntries: prepareSigningEntries;
        serializeMultisigScript: serializeMultisigScript;
        setupInputCell: setupInputCell;
        transfer: transfer;
        transferCompatible: transferCompatible;
    }
    • CellCollector: commons.CellCollectorConstructor
    • injectCapacity: injectCapacity
    • multisigArgs: multisigArgs
    • payFee: payFee
    • prepareSigningEntries: prepareSigningEntries
    • serializeMultisigScript: serializeMultisigScript
    • setupInputCell: setupInputCell
    • transfer: transfer
    • transferCompatible: transferCompatible
  • sudt: {
        issueToken: issueToken;
        ownerForSudt: ownerForSudt;
        packAmount: packAmount;
        transfer: transfer;
        unpackAmount: unpackAmount;
    }
    • issueToken: issueToken
    • ownerForSudt: ownerForSudt
    • packAmount: packAmount
    • transfer: transfer
    • unpackAmount: unpackAmount

Generated using TypeDoc