Documentation ¶
Index ¶
- Constants
- Variables
- func NewBlockfrostBackend(projectId string, network Network) (BlockFrostChainContext.BlockFrostChainContext, error)
- 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) 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, redeemer Redeemer.Redeemer) *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) 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, redeemer Redeemer.Redeemer) *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) 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) SetWalletFromMnemonic(mnemonic string) (*Apollo, error)
- func (b *Apollo) Sign() *Apollo
- func (b *Apollo) SignWithSkey(vkey Key.VerificationKey, skey Key.SigningKey) (*Apollo, error)
- func (b *Apollo) Submit() (serialization.TransactionId, error)
- func (b *Apollo) UtxoFromRef(txHash string, txIndex int) *UTxO.UTxO
- type Network
- type Payment
- type PaymentI
- type Unit
Constants ¶
View Source
const ( EX_MEMORY_BUFFER = 0.2 EX_STEP_BUFFER = 0.2 )
View Source
const BLOCKFROST_BASE_URL_MAINNET = "https://cardano-mainnet.blockfrost.io/api"
View Source
const BLOCKFROST_BASE_URL_PREPROD = "https://cardano-preprod.blockfrost.io/api"
View Source
const BLOCKFROST_BASE_URL_PREVIEW = "https://cardano-preview.blockfrost.io/api"
View Source
const BLOCKFROST_BASE_URL_TESTNET = "https://cardano-testnet.blockfrost.io/api"
Variables ¶
View Source
var FAKE_SIGNATURE = []byte("577ccb5b487b64e396b0976c6f71558e52e44ad254db7d06dfb79843e5441a5d763dd42adcf5e8805d70373722ebbce62a58e3f30dd4560b9a898b8ceeab6a03")
View Source
var FAKE_VKEY = Key.VerificationKey{Payload: []byte("5797dc2cc919dfec0bb849551ebdf30d96e5cbe0f33f734a87fe826db30f7ef9")}
Functions ¶
func NewBlockfrostBackend ¶
func NewBlockfrostBackend( projectId string, network Network, ) (BlockFrostChainContext.BlockFrostChainContext, error)
func NewEmptyBackend ¶ added in v1.0.3
func NewEmptyBackend() FixedChainContext.FixedChainContext
Types ¶
type Apollo ¶
type Apollo struct { Context Base.ChainContext Fee int64 Ttl int64 ValidityStart int64 // contains filtered or unexported fields }
func New ¶
func New(cc Base.ChainContext) *Apollo
func (*Apollo) AddDatum ¶ added in v1.0.3
func (b *Apollo) AddDatum(pd *PlutusData.PlutusData) *Apollo
func (*Apollo) AddInputAddress ¶ added in v1.0.3
func (*Apollo) AddInputAddressFromBech32 ¶ added in v1.0.3
func (*Apollo) AddLoadedUTxOs ¶ added in v1.0.3
func (*Apollo) AddPayment ¶ added in v1.0.3
func (*Apollo) AddReferenceInput ¶ added in v1.0.3
func (*Apollo) AddRequiredSigner ¶ added in v1.0.3
func (b *Apollo) AddRequiredSigner(pkh serialization.PubKeyHash) *Apollo
func (*Apollo) AddRequiredSignerFromAddress ¶ added in v1.0.3
func (*Apollo) AddRequiredSignerFromBech32 ¶ added in v1.0.3
func (*Apollo) AddVerificationKeyWitness ¶ added in v1.0.3
func (b *Apollo) AddVerificationKeyWitness(vkw VerificationKeyWitness.VerificationKeyWitness) *Apollo
func (*Apollo) AttachDatum ¶ added in v1.0.3
func (b *Apollo) AttachDatum(datum *PlutusData.PlutusData) *Apollo
func (*Apollo) AttachV1Script ¶ added in v1.0.3
func (b *Apollo) AttachV1Script(script PlutusData.PlutusV1Script) *Apollo
func (*Apollo) AttachV2Script ¶ added in v1.0.3
func (b *Apollo) AttachV2Script(script PlutusData.PlutusV2Script) *Apollo
func (*Apollo) CollectFrom ¶ added in v1.0.3
func (*Apollo) ConsumeAssetsFromUtxo ¶ added in v1.0.3
func (*Apollo) ConsumeUTxO ¶ added in v1.0.3
func (*Apollo) DisableExecutionUnitsEstimation ¶ added in v1.0.3
func (*Apollo) GetTx ¶ added in v1.0.3
func (b *Apollo) GetTx() *Transaction.Transaction
func (*Apollo) GetUsedUTxOs ¶ added in v1.0.3
func (*Apollo) GetWallet ¶ added in v1.0.3
func (b *Apollo) GetWallet() apollotypes.Wallet
func (*Apollo) LoadTxCbor ¶ added in v1.0.3
func (*Apollo) MintAssets ¶ added in v1.0.3
func (*Apollo) MintAssetsWithRedeemer ¶ added in v1.0.3
func (*Apollo) PayToAddress ¶ added in v1.0.3
func (*Apollo) PayToAddressBech32 ¶ added in v1.0.3
func (*Apollo) PayToContract ¶ added in v1.0.3
func (b *Apollo) PayToContract(contractAddress Address.Address, pd *PlutusData.PlutusData, lovelace int, isInline bool, units ...Unit) *Apollo
func (*Apollo) SetChangeAddress ¶ added in v1.0.3
func (*Apollo) SetChangeAddressBech32 ¶ added in v1.0.3
func (*Apollo) SetEstimationExUnitsRequired ¶ added in v1.0.3
func (*Apollo) SetShelleyMetadata ¶ added in v1.0.3
func (b *Apollo) SetShelleyMetadata(metadata Metadata.ShelleyMaryMetadata) *Apollo
func (*Apollo) SetValidityStart ¶ added in v1.0.3
func (*Apollo) SetWalletAsChangeAddress ¶ added in v1.0.3
func (*Apollo) SetWalletFromBech32 ¶ added in v1.0.3
func (*Apollo) SetWalletFromMnemonic ¶
func (*Apollo) SignWithSkey ¶ added in v1.0.3
func (b *Apollo) SignWithSkey(vkey Key.VerificationKey, skey Key.SigningKey) (*Apollo, error)
func (*Apollo) Submit ¶ added in v1.0.3
func (b *Apollo) Submit() (serialization.TransactionId, error)
type Payment ¶ added in v1.0.3
type Payment struct { Lovelace int Receiver Address.Address Units []Unit Datum *PlutusData.PlutusData DatumHash []byte IsInline bool }
func NewPayment ¶ added in v1.0.3
func NewPaymentFromValue ¶ added in v1.0.3
func PaymentFromTxOut ¶ added in v1.0.3
func PaymentFromTxOut(txOut *TransactionOutput.TransactionOutput) *Payment
func (*Payment) EnsureMinUTXO ¶ added in v1.0.3
func (p *Payment) EnsureMinUTXO(cc Base.ChainContext)
func (*Payment) ToTxOut ¶ added in v1.0.3
func (p *Payment) ToTxOut() *TransactionOutput.TransactionOutput
type PaymentI ¶ added in v1.0.3
type PaymentI interface { EnsureMinUTXO(cc Base.ChainContext) ToTxOut() *TransactionOutput.TransactionOutput ToValue() Value.Value }
Click to show internal directories.
Click to hide internal directories.