templates

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 4 Imported by: 46

Documentation

Overview

Package templates provides functions for generating common Cadence scripts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAccountKey

func AddAccountKey(accountKey *flow.AccountKey) ([]byte, error)

AddAccountKey generates a script that adds a key to an account.

func CreateAccount

func CreateAccount(accountKeys []*flow.AccountKey, code []byte) ([]byte, error)

CreateAccount generates a script that creates a new account.

func RemoveAccountKey

func RemoveAccountKey(id int) []byte

RemoveAccountKey generates a script that removes a key from an account.

func UpdateAccountCode

func UpdateAccountCode(code []byte) []byte

UpdateAccountCode generates a script that updates the code associated with an account.

Types

This section is empty.

Jump to

Keyboard shortcuts

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