Documentation ¶
Index ¶
- Constants
- func CheckTwoWayCbor[T CborSerializable](serializable T)
- type CborSerializable
- type FixedChainContext
- func (f FixedChainContext) Epoch() int
- func (f FixedChainContext) EvaluateTx(tx []uint8) map[string]Redeemer.ExecutionUnits
- func (f FixedChainContext) GetContractCbor(scriptHash string) string
- func (f FixedChainContext) GetGenesisParams() Base.GenesisParameters
- func (f FixedChainContext) GetProtocolParams() Base.ProtocolParameters
- func (f FixedChainContext) GetUtxoFromRef(txHash string, txIndex int) *UTxO.UTxO
- func (f FixedChainContext) LastBlockSlot() int
- func (f FixedChainContext) MaxTxFee() int
- func (f FixedChainContext) Network() int
- func (f FixedChainContext) SubmitTx(tx Transaction.Transaction) (serialization.TransactionId, error)
- func (f FixedChainContext) Utxos(address Address.Address) []UTxO.UTxO
Constants ¶
View Source
const TEST_ADDR = "addr_test1vr2p8st5t5cxqglyjky7vk98k7jtfhdpvhl4e97cezuhn0cqcexl7"
Variables ¶
This section is empty.
Functions ¶
func CheckTwoWayCbor ¶
func CheckTwoWayCbor[T CborSerializable](serializable T)
Types ¶
type CborSerializable ¶
type CborSerializable interface { cbor.Marshaler cbor.Unmarshaler }
type FixedChainContext ¶
type FixedChainContext struct { ProtocolParams Base.ProtocolParameters GenesisParams Base.GenesisParameters }
func InitFixedChainContext ¶
func InitFixedChainContext() FixedChainContext
func (FixedChainContext) Epoch ¶
func (f FixedChainContext) Epoch() int
func (FixedChainContext) EvaluateTx ¶
func (f FixedChainContext) EvaluateTx(tx []uint8) map[string]Redeemer.ExecutionUnits
func (FixedChainContext) GetContractCbor ¶ added in v1.0.3
func (f FixedChainContext) GetContractCbor(scriptHash string) string
func (FixedChainContext) GetGenesisParams ¶
func (f FixedChainContext) GetGenesisParams() Base.GenesisParameters
func (FixedChainContext) GetProtocolParams ¶
func (f FixedChainContext) GetProtocolParams() Base.ProtocolParameters
func (FixedChainContext) GetUtxoFromRef ¶ added in v1.0.3
func (f FixedChainContext) GetUtxoFromRef(txHash string, txIndex int) *UTxO.UTxO
func (FixedChainContext) LastBlockSlot ¶
func (f FixedChainContext) LastBlockSlot() int
func (FixedChainContext) MaxTxFee ¶
func (f FixedChainContext) MaxTxFee() int
func (FixedChainContext) Network ¶
func (f FixedChainContext) Network() int
func (FixedChainContext) SubmitTx ¶
func (f FixedChainContext) SubmitTx(tx Transaction.Transaction) (serialization.TransactionId, error)
Click to show internal directories.
Click to hide internal directories.