apollotypes

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 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 added in v1.0.3

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 added in v1.0.3

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

type Backend

type Backend Base.ChainContext

type ExternalWallet added in v1.0.3

type ExternalWallet struct {
	Address serAddress.Address
}

func (*ExternalWallet) GetAddress added in v1.0.3

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

func (*ExternalWallet) PkeyHash added in v1.0.3

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

func (*ExternalWallet) SignTx added in v1.0.3

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 added in v1.0.3

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