dsl

package
v0.36.8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 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 SetAccountCode added in v0.33.19

type SetAccountCode struct {
	Code   string
	Name   string
	Update bool
}

func (SetAccountCode) ToCadence added in v0.33.19

func (u SetAccountCode) ToCadence() string

type Transaction

type Transaction struct {
	Import  Import
	Content CadenceCode
}

func (Transaction) ToCadence

func (t Transaction) ToCadence() string

Jump to

Keyboard shortcuts

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