Documentation ¶
Index ¶
- Constants
- func NewBlockfrostBackend(projectId string, network constants.Network) BlockFrostChainContext.BlockFrostChainContext
- func NewEmptyBackend() FixedChainContext.FixedChainContext
- func SortInputs(inputs []UTxO.UTxO) []UTxO.UTxO
- func SortUtxos(utxos []UTxO.UTxO) []UTxO.UTxO
- type Apollo
- func (b *Apollo) AddDatum(pd *PlutusData.PlutusData) *Apollo
- func (b *Apollo) AddInput(utxos ...UTxO.UTxO) *Apollo
- func (b *Apollo) AddInputAddress(address Address.Address) *Apollo
- func (b *Apollo) AddInputAddressFromBech32(address string) *Apollo
- func (b *Apollo) AddLoadedUTxOs(utxos ...UTxO.UTxO) *Apollo
- func (b *Apollo) AddPayment(payment PaymentI) *Apollo
- func (b *Apollo) AddReferenceInput(txHash string, index int) *Apollo
- func (b *Apollo) AddRequiredSigner(pkh serialization.PubKeyHash) *Apollo
- func (b *Apollo) AddRequiredSignerFromAddress(address Address.Address, addPaymentPart, addStakingPart bool) *Apollo
- func (b *Apollo) AddRequiredSignerFromBech32(address string, addPaymentPart, addStakingPart bool) *Apollo
- func (b *Apollo) AddVerificationKeyWitness(vkw VerificationKeyWitness.VerificationKeyWitness) *Apollo
- func (b *Apollo) AddWithdrawal(address Address.Address, amount int, redeemerData PlutusData.PlutusData) *Apollo
- func (b *Apollo) AttachDatum(datum *PlutusData.PlutusData) *Apollo
- func (b *Apollo) AttachV1Script(script PlutusData.PlutusV1Script) *Apollo
- func (b *Apollo) AttachV2Script(script PlutusData.PlutusV2Script) *Apollo
- func (b *Apollo) Clone() *Apollo
- func (b *Apollo) CollectFrom(inputUtxo UTxO.UTxO, redeemerData PlutusData.PlutusData) *Apollo
- func (b *Apollo) Complete() (*Apollo, error)
- func (b *Apollo) ConsumeAssetsFromUtxo(utxo UTxO.UTxO, payments ...PaymentI) *Apollo
- func (b *Apollo) ConsumeUTxO(utxo UTxO.UTxO, payments ...PaymentI) *Apollo
- func (b *Apollo) DisableExecutionUnitsEstimation() *Apollo
- func (b *Apollo) GetBurns() (burns Value.Value)
- func (b *Apollo) GetTx() *Transaction.Transaction
- func (b *Apollo) GetUsedUTxOs() []string
- func (b *Apollo) GetWallet() apollotypes.Wallet
- func (b *Apollo) LoadTxCbor(txCbor string) (*Apollo, error)
- func (b *Apollo) MintAssets(mintUnit Unit) *Apollo
- func (b *Apollo) MintAssetsWithRedeemer(mintUnit Unit, redeemerData PlutusData.PlutusData) *Apollo
- func (b *Apollo) PayToAddress(address Address.Address, lovelace int, units ...Unit) *Apollo
- func (b *Apollo) PayToAddressBech32(address string, lovelace int, units ...Unit) *Apollo
- func (b *Apollo) PayToContract(contractAddress Address.Address, pd *PlutusData.PlutusData, lovelace int, ...) *Apollo
- func (b *Apollo) SetChangeAddress(address Address.Address) *Apollo
- func (b *Apollo) SetChangeAddressBech32(address string) *Apollo
- func (b *Apollo) SetEstimationExUnitsRequired() *Apollo
- func (b *Apollo) SetFeePadding(padding int64) *Apollo
- func (b *Apollo) SetShelleyMetadata(metadata Metadata.ShelleyMaryMetadata) *Apollo
- func (b *Apollo) SetTtl(ttl int64) *Apollo
- func (b *Apollo) SetValidityStart(invalidBefore int64) *Apollo
- func (b *Apollo) SetWalletAsChangeAddress() *Apollo
- func (a *Apollo) SetWalletFromBech32(address string) *Apollo
- func (a *Apollo) SetWalletFromKeypair(vkey string, skey string, network constants.Network) *Apollo
- func (a *Apollo) SetWalletFromMnemonic(mnemonic string) *Apollo
- func (b *Apollo) Sign() *Apollo
- func (b *Apollo) SignWithSkey(vkey Key.VerificationKey, skey Key.SigningKey) *Apollo
- func (b *Apollo) Submit() (serialization.TransactionId, error)
- func (b *Apollo) UtxoFromRef(txHash string, txIndex int) *UTxO.UTxO
- type Payment
- type PaymentI
- type Unit
Constants ¶
View Source
const ( EX_MEMORY_BUFFER = 0.2 EX_STEP_BUFFER = 0.2 )
Variables ¶
This section is empty.
Functions ¶
func NewBlockfrostBackend ¶
func NewBlockfrostBackend( projectId string, network constants.Network, ) BlockFrostChainContext.BlockFrostChainContext
func NewEmptyBackend ¶
func NewEmptyBackend() FixedChainContext.FixedChainContext
Types ¶
type Apollo ¶
type Apollo struct { Context Base.ChainContext Fee int64 FeePadding int64 Ttl int64 ValidityStart int64 // contains filtered or unexported fields }
func New ¶
func New(cc Base.ChainContext) *Apollo
func (*Apollo) AddDatum ¶
func (b *Apollo) AddDatum(pd *PlutusData.PlutusData) *Apollo
func (*Apollo) AddInputAddressFromBech32 ¶
func (*Apollo) AddPayment ¶
func (*Apollo) AddReferenceInput ¶
func (*Apollo) AddRequiredSigner ¶
func (b *Apollo) AddRequiredSigner(pkh serialization.PubKeyHash) *Apollo
func (*Apollo) AddRequiredSignerFromAddress ¶
func (*Apollo) AddRequiredSignerFromBech32 ¶
func (*Apollo) AddVerificationKeyWitness ¶
func (b *Apollo) AddVerificationKeyWitness(vkw VerificationKeyWitness.VerificationKeyWitness) *Apollo
func (*Apollo) AddWithdrawal ¶
func (b *Apollo) AddWithdrawal(address Address.Address, amount int, redeemerData PlutusData.PlutusData) *Apollo
func (*Apollo) AttachDatum ¶
func (b *Apollo) AttachDatum(datum *PlutusData.PlutusData) *Apollo
func (*Apollo) AttachV1Script ¶
func (b *Apollo) AttachV1Script(script PlutusData.PlutusV1Script) *Apollo
func (*Apollo) AttachV2Script ¶
func (b *Apollo) AttachV2Script(script PlutusData.PlutusV2Script) *Apollo
func (*Apollo) CollectFrom ¶
func (b *Apollo) CollectFrom( inputUtxo UTxO.UTxO, redeemerData PlutusData.PlutusData, ) *Apollo
func (*Apollo) ConsumeAssetsFromUtxo ¶
func (*Apollo) ConsumeUTxO ¶
func (*Apollo) DisableExecutionUnitsEstimation ¶
func (*Apollo) GetTx ¶
func (b *Apollo) GetTx() *Transaction.Transaction
func (*Apollo) GetUsedUTxOs ¶
func (*Apollo) GetWallet ¶
func (b *Apollo) GetWallet() apollotypes.Wallet
func (*Apollo) MintAssets ¶
func (*Apollo) MintAssetsWithRedeemer ¶
func (b *Apollo) MintAssetsWithRedeemer(mintUnit Unit, redeemerData PlutusData.PlutusData) *Apollo
func (*Apollo) PayToAddress ¶
func (*Apollo) PayToAddressBech32 ¶
func (*Apollo) PayToContract ¶
func (b *Apollo) PayToContract(contractAddress Address.Address, pd *PlutusData.PlutusData, lovelace int, isInline bool, units ...Unit) *Apollo
func (*Apollo) SetChangeAddress ¶
func (*Apollo) SetChangeAddressBech32 ¶
func (*Apollo) SetEstimationExUnitsRequired ¶
func (*Apollo) SetFeePadding ¶
func (*Apollo) SetShelleyMetadata ¶
func (b *Apollo) SetShelleyMetadata(metadata Metadata.ShelleyMaryMetadata) *Apollo
func (*Apollo) SetValidityStart ¶
func (*Apollo) SetWalletAsChangeAddress ¶
func (*Apollo) SetWalletFromBech32 ¶
func (*Apollo) SetWalletFromKeypair ¶
For use with key pairs generated by cardano-cli
func (*Apollo) SetWalletFromMnemonic ¶
func (*Apollo) SignWithSkey ¶
func (b *Apollo) SignWithSkey(vkey Key.VerificationKey, skey Key.SigningKey) *Apollo
func (*Apollo) Submit ¶
func (b *Apollo) Submit() (serialization.TransactionId, error)
type Payment ¶
type Payment struct { Lovelace int Receiver Address.Address Units []Unit Datum *PlutusData.PlutusData DatumHash []byte IsInline bool }
func NewPaymentFromValue ¶
func PaymentFromTxOut ¶
func PaymentFromTxOut(txOut *TransactionOutput.TransactionOutput) *Payment
func (*Payment) EnsureMinUTXO ¶
func (p *Payment) EnsureMinUTXO(cc Base.ChainContext)
func (*Payment) ToTxOut ¶
func (p *Payment) ToTxOut() *TransactionOutput.TransactionOutput
type PaymentI ¶
type PaymentI interface { EnsureMinUTXO(cc Base.ChainContext) ToTxOut() *TransactionOutput.TransactionOutput ToValue() Value.Value }
Click to show internal directories.
Click to hide internal directories.