dsl

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: AGPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CadenceCode

type CadenceCode interface {
	ToCadence() string
}

type Code

type Code string

func (Code) ToCadence

func (c Code) ToCadence() string

type Contract

type Contract struct {
	Name    string
	Members []CadenceCode
}

func (Contract) ToCadence

func (c Contract) ToCadence() string

type Import

type Import struct {
	Names   []string
	Address sdk.Address
}

func (Import) ToCadence

func (i Import) ToCadence() string

type Main

type Main struct {
	Import     Import
	ReturnType string
	Code       string
}

func (Main) ToCadence

func (m Main) ToCadence() string

type Prepare

type Prepare struct {
	Content CadenceCode
}

func (Prepare) ToCadence

func (p Prepare) ToCadence() string

type Resource

type Resource struct {
	Name string
	Code string
}

func (Resource) ToCadence

func (r Resource) ToCadence() string

type Transaction

type Transaction struct {
	Import  Import
	Content CadenceCode
}

func (Transaction) ToCadence

func (t Transaction) ToCadence() string

type UpdateAccountCode

type UpdateAccountCode struct {
	Code string
	Name string
}

func (UpdateAccountCode) ToCadence

func (u UpdateAccountCode) ToCadence() string

Jump to

Keyboard shortcuts

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