@cashlab/moria
Preparing search index...
moria1
MoriaMutator
Class MoriaMutator
Index
Constructors
constructor
Properties
_context
Methods
_on
Moria
Tx
get
Mutation
Context
liquidate
Loan
loan
Add
Collateral
mint
Loan
With
Baton
Minter
mint
Loan
With
Existing
Loan
Agent
redeem
Loan
refi
Loan
repay
Loan
update
Delphi
Commitment
WithGPUpdater
update
Moria
Sequence
withdraw
Pay2NFTHCoins
Constructors
constructor
new
MoriaMutator
(
context
:
MoriaMutationContext
)
:
MoriaMutator
Parameters
context
:
MoriaMutationContext
Returns
MoriaMutator
Properties
_context
_context
:
MoriaMutationContext
Methods
_on
Moria
Tx
_onMoriaTx
(
tx_result
:
moria1
.
MoriaTxResult
)
:
void
Parameters
tx_result
:
moria1
.
MoriaTxResult
Returns
void
get
Mutation
Context
getMutationContext
()
:
MoriaMutationContext
Returns
MoriaMutationContext
liquidate
Loan
liquidateLoan
(
loan_utxo
:
UTXOWithNFT
,
funding_coins
:
SpendableCoin
[]
,
payout_rules
:
PayoutRule
[]
,
)
:
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
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
}
loan
Add
Collateral
loanAddCollateral
(
loan_utxo
:
UTXOWithNFT
,
loan_agent_coin
:
SpendableCoin
<
OutputWithNFT
>
,
funding_coins
:
SpendableCoin
[]
,
additional_collateral_amount
:
bigint
,
output_loan_agent_locking_bytecode
:
Uint8Array
,
payout_rules
:
PayoutRule
[]
,
)
:
TxResult
&
{
loan_agent_utxo
:
UTXOWithNFT
;
loan_utxo
:
UTXOWithNFT
}
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
}
mint
Loan
With
Baton
Minter
mintLoanWithBatonMinter
(
params
:
{
annual_interest_bp
:
bigint
;
collateral_amount
:
bigint
;
loan_amount
:
bigint
;
}
,
funding_coins
:
SpendableCoin
[]
,
loan_agent_locking_bytecode
:
Uint8Array
,
payout_rules
:
PayoutRule
[]
,
)
:
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_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
;
}
mint
Loan
With
Existing
Loan
Agent
mintLoanWithExistingLoanAgent
(
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
[]
,
)
:
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
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
}
redeem
Loan
redeemLoan
(
loan_utxo
:
UTXOWithNFT
,
funding_coins
:
SpendableCoin
[]
,
payout_rules
:
PayoutRule
[]
,
)
:
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
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
;
}
refi
Loan
refiLoan
(
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
[]
,
)
:
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
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
;
}
repay
Loan
repayLoan
(
loan_utxo
:
UTXOWithNFT
,
loan_agent_coin
:
SpendableCoin
<
OutputWithNFT
>
,
funding_coins
:
SpendableCoin
[]
,
output_loan_agent_locking_bytecode
:
|
Uint8Array
<
ArrayBufferLike
>
|
BurnNFTException
,
payout_rules
:
PayoutRule
[]
,
)
:
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
[]
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
}
update
Delphi
Commitment
WithGPUpdater
updateDelphiCommitmentWithGPUpdater
(
message
:
Uint8Array
,
sig
:
Uint8Array
,
funding_coins
:
SpendableCoin
[]
,
payout_rules
:
PayoutRule
[]
,
)
:
TxResult
&
{
delphi_gp_updater_utxo
:
UTXOWithNFT
;
delphi_utxo
:
UTXOWithNFT
;
}
Parameters
message
:
Uint8Array
sig
:
Uint8Array
funding_coins
:
SpendableCoin
[]
payout_rules
:
PayoutRule
[]
Returns
TxResult
&
{
delphi_gp_updater_utxo
:
UTXOWithNFT
;
delphi_utxo
:
UTXOWithNFT
}
update
Moria
Sequence
updateMoriaSequence
(
funding_coin
:
SpendableCoin
,
change_locking_bytecode
:
Uint8Array
,
)
:
moria1
.
MoriaTxResult
Parameters
funding_coin
:
SpendableCoin
change_locking_bytecode
:
Uint8Array
Returns
moria1
.
MoriaTxResult
withdraw
Pay2NFTHCoins
withdrawPay2NFTHCoins
(
nft_coin
:
SpendableCoin
<
OutputWithNFT
>
,
entries
:
Pay2NFTHWithdrawEntry
[]
,
funding_coins
:
SpendableCoin
[]
,
payout_rules
:
PayoutRule
[]
,
__namedParameters
:
{
createNFTOutput
:
(
utxo
:
UTXOWithNFT
)
=>
OutputWithNFT
;
}
,
)
:
TxResult
&
{
nft_utxos
:
UTXOWithNFT
[]
}
Parameters
nft_coin
:
SpendableCoin
<
OutputWithNFT
>
entries
:
Pay2NFTHWithdrawEntry
[]
funding_coins
:
SpendableCoin
[]
payout_rules
:
PayoutRule
[]
__namedParameters
:
{
createNFTOutput
:
(
utxo
:
UTXOWithNFT
)
=>
OutputWithNFT
}
Returns
TxResult
&
{
nft_utxos
:
UTXOWithNFT
[]
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_context
Methods
_on
Moria
Tx
get
Mutation
Context
liquidate
Loan
loan
Add
Collateral
mint
Loan
With
Baton
Minter
mint
Loan
With
Existing
Loan
Agent
redeem
Loan
refi
Loan
repay
Loan
update
Delphi
Commitment
WithGPUpdater
update
Moria
Sequence
withdraw
Pay2NFTHCoins
@cashlab/moria
Loading...