Documentation ¶
Index ¶
- Variables
- func ScriptDataHash(witnessSet TransactionWitnessSet.TransactionWitnessSet) *serialization.ScriptDataHash
- func SortInputs(inputs []UTxO.UTxO) []UTxO.UTxO
- type MintingScriptToRedeemer
- type TransactionBuilder
- func (tb *TransactionBuilder) AddInput(utxo UTxO.UTxO)
- func (tb *TransactionBuilder) AddInputAddress(address Address.Address)
- func (tb *TransactionBuilder) AddLoadedUTxOs(loadedTxs []UTxO.UTxO)
- func (tb *TransactionBuilder) AddMintingScript(script interface{}, redeemer Redeemer.Redeemer)
- func (tb *TransactionBuilder) AddOutput(txOut TransactionOutput.TransactionOutput, datum *PlutusData.PlutusData, ...)
- func (tb *TransactionBuilder) AddScriptInput(utxo UTxO.UTxO, script interface{}, datum *PlutusData.PlutusData, ...) error
- func (tb *TransactionBuilder) AllScripts() []PlutusData.ScriptHashable
- func (tb *TransactionBuilder) Build(changeAddress *Address.Address, mergeChange bool, ...) (TransactionBody.TransactionBody, error)
- func (tb *TransactionBuilder) BuildWitnessSet() TransactionWitnessSet.TransactionWitnessSet
- func (tb *TransactionBuilder) Copy() *TransactionBuilder
- func (tb *TransactionBuilder) Redeemers() []Redeemer.Redeemer
- func (tb *TransactionBuilder) RedeemersReferences() []*Redeemer.Redeemer
- func (tb *TransactionBuilder) Scripts() ([]NativeScript.NativeScript, []PlutusData.PlutusV1Script, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var FAKE_ADDRESS, _ = Address.DecodeAddress("addr1v8xrqjtlfluk9axpmjj5enh0uw0cduwhz7txsqyl36m3ukgqdsn8w")
Functions ¶
func ScriptDataHash ¶
func ScriptDataHash(witnessSet TransactionWitnessSet.TransactionWitnessSet) *serialization.ScriptDataHash
Types ¶
type MintingScriptToRedeemer ¶
type MintingScriptToRedeemer struct { Script PlutusData.ScriptHashable Redeemer Redeemer.Redeemer HasRedeemer bool }
type TransactionBuilder ¶
type TransactionBuilder struct { Context Base.ChainContext UtxoSelectors []CoinSelection.UTxOSelector ExecutionMemoryBuffer float32 ExecutionStepBuffer float32 Ttl int64 ValidityStart int64 LoadedUtxos []UTxO.UTxO AuxiliaryData Metadata.AuxiliaryData NativeScripts []PlutusData.ScriptHashable Mint MultiAsset.MultiAsset[int64] RequiredSigners []serialization.PubKeyHash Collaterals []UTxO.UTxO Certificates []Certificate.Certificate Withdrawals []Withdrawal.Withdrawal ReferenceInputs []TransactionInput.TransactionInput Inputs []UTxO.UTxO ExcludedInputs []UTxO.UTxO InputAddresses []Address.Address Outputs []TransactionOutput.TransactionOutput Fee int64 Datums map[string]PlutusData.PlutusData CollateralReturn *TransactionOutput.TransactionOutput TotalCollateral int64 InputsToRedeemers map[string]Redeemer.Redeemer MintingScriptToRedeemers []MintingScriptToRedeemer InputsToScripts map[string]PlutusData.ScriptHashable ReferenceScripts []PlutusData.ScriptHashable ShouldEstimateExecutionUnits bool }
func InitBuilder ¶
func InitBuilder(context Base.ChainContext) TransactionBuilder
func (*TransactionBuilder) AddInput ¶
func (tb *TransactionBuilder) AddInput(utxo UTxO.UTxO)
func (*TransactionBuilder) AddInputAddress ¶
func (tb *TransactionBuilder) AddInputAddress(address Address.Address)
func (*TransactionBuilder) AddLoadedUTxOs ¶
func (tb *TransactionBuilder) AddLoadedUTxOs(loadedTxs []UTxO.UTxO)
func (*TransactionBuilder) AddMintingScript ¶
func (tb *TransactionBuilder) AddMintingScript(script interface{}, redeemer Redeemer.Redeemer)
func (*TransactionBuilder) AddOutput ¶
func (tb *TransactionBuilder) AddOutput(txOut TransactionOutput.TransactionOutput, datum *PlutusData.PlutusData, add_datum_to_witness bool)
func (*TransactionBuilder) AddScriptInput ¶
func (tb *TransactionBuilder) AddScriptInput(utxo UTxO.UTxO, script interface{}, datum *PlutusData.PlutusData, redeemer *Redeemer.Redeemer, isV1 bool) error
func (*TransactionBuilder) AllScripts ¶
func (tb *TransactionBuilder) AllScripts() []PlutusData.ScriptHashable
func (*TransactionBuilder) Build ¶
func (tb *TransactionBuilder) Build(changeAddress *Address.Address, mergeChange bool, collateralChangeAddress *Address.Address) (TransactionBody.TransactionBody, error)
func (*TransactionBuilder) BuildWitnessSet ¶
func (tb *TransactionBuilder) BuildWitnessSet() TransactionWitnessSet.TransactionWitnessSet
func (*TransactionBuilder) Copy ¶
func (tb *TransactionBuilder) Copy() *TransactionBuilder
func (*TransactionBuilder) Redeemers ¶
func (tb *TransactionBuilder) Redeemers() []Redeemer.Redeemer
func (*TransactionBuilder) RedeemersReferences ¶
func (tb *TransactionBuilder) RedeemersReferences() []*Redeemer.Redeemer
func (*TransactionBuilder) Scripts ¶
func (tb *TransactionBuilder) Scripts() ([]NativeScript.NativeScript, []PlutusData.PlutusV1Script, []PlutusData.PlutusV2Script)
Click to show internal directories.
Click to hide internal directories.