apollotypes

package
v0.0.0-...-ec97d81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address serAddress.Address

type AikenPlutusJSON

type AikenPlutusJSON struct {
	Preamble struct {
		Title         string `json:"title"`
		Description   string `json:"description"`
		Version       string `json:"version"`
		PlutusVersion string `json:"plutusVersion"`
		License       string `json:"license"`
	} `json:"preamble"`
	Validators []struct {
		Title string `json:"title"`
		Datum struct {
			Title  string `json:"title"`
			Schema struct {
				Ref string `json:"$ref"`
			} `json:"schema"`
		} `json:"datum"`
		Redeemer struct {
			Title  string `json:"title"`
			Schema struct {
				Ref string `json:"$ref"`
			} `json:"schema"`
		} `json:"redeemer"`
		CompiledCode string `json:"compiledCode"`
		Hash         string `json:"hash"`
	} `json:"validators"`
	Definitions struct {
	} `json:"definitions"`
}

func (*AikenPlutusJSON) GetScript

func (apj *AikenPlutusJSON) GetScript(name string) (*PlutusData.PlutusV2Script, error)

type Backend

type Backend Base.ChainContext

type ExternalWallet

type ExternalWallet struct {
	Address serAddress.Address
}

func (*ExternalWallet) GetAddress

func (ew *ExternalWallet) GetAddress() *serAddress.Address

func (*ExternalWallet) PkeyHash

func (ew *ExternalWallet) PkeyHash() serialization.PubKeyHash

type GenericWallet

type GenericWallet struct {
	SigningKey           Key.SigningKey
	VerificationKey      Key.VerificationKey
	Address              serAddress.Address
	StakeSigningKey      Key.StakeSigningKey
	StakeVerificationKey Key.StakeVerificationKey
}

func (*GenericWallet) GetAddress

func (gw *GenericWallet) GetAddress() *serAddress.Address

func (*GenericWallet) PkeyHash

func (gw *GenericWallet) PkeyHash() serialization.PubKeyHash

type Wallet

type Wallet interface {
	GetAddress() *serAddress.Address
	SignTx(tx Transaction.Transaction) TransactionWitnessSet.TransactionWitnessSet
	PkeyHash() serialization.PubKeyHash
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL