@cashlab/moria
    Preparing search index...

    Class MoriaMutator

    Index

    Constructors

    Properties

    Methods

    • Parameters

      • loan_utxo: UTXOWithNFT
      • funding_coins: SpendableCoin[]
      • payout_rules: PayoutRule[]

      Returns TxResult & {
          batonminter_utxo: null | UTXOWithNFT;
          borrower_p2nfth_utxo: null | UTXO;
          bporacle_utxo: null | UTXOWithNFT;
          delphi_utxo: UTXOWithNFT;
          fees: {
              batonminter_mint_fee?: bigint;
              bporacle_use_fee?: bigint;
              delphi_use_fee?: bigint;
              total: bigint;
          };
          interest_utxo: null
          | UTXOWithFT;
          loan_agent_utxo: null | UTXOWithNFT;
          loan_utxo: null | UTXOWithNFT;
          moria_utxo: UTXOWithNFT;
      } & { interest_utxo: UTXOWithFT }

    • Parameters

      • loan_utxo: UTXOWithNFT
      • loan_agent_coin: SpendableCoin<OutputWithNFT>
      • funding_coins: SpendableCoin[]
      • additional_collateral_amount: bigint
      • output_loan_agent_locking_bytecode: Uint8Array
      • payout_rules: PayoutRule[]

      Returns TxResult & { loan_agent_utxo: UTXOWithNFT; loan_utxo: UTXOWithNFT }

    • Parameters

      • params: { annual_interest_bp: bigint; collateral_amount: bigint; loan_amount: bigint }
      • funding_coins: SpendableCoin[]
      • loan_agent_locking_bytecode: Uint8Array
      • payout_rules: PayoutRule[]

      Returns TxResult & {
          batonminter_utxo: null | UTXOWithNFT;
          borrower_p2nfth_utxo: null | UTXO;
          bporacle_utxo: null | UTXOWithNFT;
          delphi_utxo: UTXOWithNFT;
          fees: {
              batonminter_mint_fee?: bigint;
              bporacle_use_fee?: bigint;
              delphi_use_fee?: bigint;
              total: bigint;
          };
          interest_utxo: null
          | UTXOWithFT;
          loan_agent_utxo: null | UTXOWithNFT;
          loan_utxo: null | UTXOWithNFT;
          moria_utxo: UTXOWithNFT;
      } & {
          batonminter_utxo: UTXOWithNFT;
          loan_agent_utxo: UTXOWithNFT;
          loan_utxo: UTXOWithNFT;
      }

    • Parameters

      • params: { annual_interest_bp: bigint; collateral_amount: bigint; loan_amount: bigint }
      • funding_coins: SpendableCoin[]
      • loan_agent_coin: SpendableCoin<OutputWithNFT>
      • output_loan_agent_locking_bytecode: Uint8Array
      • payout_rules: PayoutRule[]

      Returns TxResult & {
          batonminter_utxo: null | UTXOWithNFT;
          borrower_p2nfth_utxo: null | UTXO;
          bporacle_utxo: null | UTXOWithNFT;
          delphi_utxo: UTXOWithNFT;
          fees: {
              batonminter_mint_fee?: bigint;
              bporacle_use_fee?: bigint;
              delphi_use_fee?: bigint;
              total: bigint;
          };
          interest_utxo: null
          | UTXOWithFT;
          loan_agent_utxo: null | UTXOWithNFT;
          loan_utxo: null | UTXOWithNFT;
          moria_utxo: UTXOWithNFT;
      } & { loan_utxo: UTXOWithNFT }

    • Parameters

      • loan_utxo: UTXOWithNFT
      • funding_coins: SpendableCoin[]
      • payout_rules: PayoutRule[]

      Returns TxResult & {
          batonminter_utxo: null | UTXOWithNFT;
          borrower_p2nfth_utxo: null | UTXO;
          bporacle_utxo: null | UTXOWithNFT;
          delphi_utxo: UTXOWithNFT;
          fees: {
              batonminter_mint_fee?: bigint;
              bporacle_use_fee?: bigint;
              delphi_use_fee?: bigint;
              total: bigint;
          };
          interest_utxo: null
          | UTXOWithFT;
          loan_agent_utxo: null | UTXOWithNFT;
          loan_utxo: null | UTXOWithNFT;
          moria_utxo: UTXOWithNFT;
      } & {
          borrower_p2nfth_utxo: UTXO;
          bporacle_utxo: UTXOWithNFT;
          interest_utxo: UTXOWithFT;
      }

    • Parameters

      • loan_utxo: UTXOWithNFT
      • refi_params: { annual_interest_bp: bigint; collateral_amount: bigint; loan_amount: bigint }
      • loan_agent_coin: SpendableCoin<OutputWithNFT>
      • funding_coins: SpendableCoin[]
      • output_loan_agent_locking_bytecode: Uint8Array
      • payout_rules: PayoutRule[]

      Returns TxResult & {
          batonminter_utxo: null | UTXOWithNFT;
          borrower_p2nfth_utxo: null | UTXO;
          bporacle_utxo: null | UTXOWithNFT;
          delphi_utxo: UTXOWithNFT;
          fees: {
              batonminter_mint_fee?: bigint;
              bporacle_use_fee?: bigint;
              delphi_use_fee?: bigint;
              total: bigint;
          };
          interest_utxo: null
          | UTXOWithFT;
          loan_agent_utxo: null | UTXOWithNFT;
          loan_utxo: null | UTXOWithNFT;
          moria_utxo: UTXOWithNFT;
      } & {
          interest_utxo: UTXOWithFT;
          loan_agent_utxo: UTXOWithNFT;
          loan_utxo: UTXOWithNFT;
      }

    • Parameters

      • loan_utxo: UTXOWithNFT
      • loan_agent_coin: SpendableCoin<OutputWithNFT>
      • funding_coins: SpendableCoin[]
      • output_loan_agent_locking_bytecode: Uint8Array<ArrayBufferLike> | BurnNFTException
      • payout_rules: PayoutRule[]

      Returns TxResult & {
          batonminter_utxo: null | UTXOWithNFT;
          borrower_p2nfth_utxo: null | UTXO;
          bporacle_utxo: null | UTXOWithNFT;
          delphi_utxo: UTXOWithNFT;
          fees: {
              batonminter_mint_fee?: bigint;
              bporacle_use_fee?: bigint;
              delphi_use_fee?: bigint;
              total: bigint;
          };
          interest_utxo: null
          | UTXOWithFT;
          loan_agent_utxo: null | UTXOWithNFT;
          loan_utxo: null | UTXOWithNFT;
          moria_utxo: UTXOWithNFT;
      } & { interest_utxo: UTXOWithFT }

    • Parameters

      • message: Uint8Array
      • sig: Uint8Array
      • funding_coins: SpendableCoin[]
      • payout_rules: PayoutRule[]

      Returns TxResult & { delphi_gp_updater_utxo: UTXOWithNFT; delphi_utxo: UTXOWithNFT }

    • Parameters

      • nft_coin: SpendableCoin<OutputWithNFT>
      • entries: Pay2NFTHWithdrawEntry[]
      • funding_coins: SpendableCoin[]
      • payout_rules: PayoutRule[]
      • __namedParameters: { createNFTOutput: (utxo: UTXOWithNFT) => OutputWithNFT }

      Returns TxResult & { nft_utxos: UTXOWithNFT[] }