convert

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCadenceValue

func DecodeCadenceValue(value string, options []cadenceJSON.Option) (cadence.Value, error)

func EncodeArgs

func EncodeArgs(args [][]byte) []string

func EncodeCadenceArgs

func EncodeCadenceArgs(args []cadence.Value) ([]string, error)

func EncodeScript

func EncodeScript(script []byte) string

func EncodeSignatures

func EncodeSignatures(signatures []flow.TransactionSignature) []models.TransactionSignature

func MustToInt

func MustToInt(value string) int

func MustToUint

func MustToUint(value string) uint64

func MustToUint32

func MustToUint32(value string) uint32

func TncodeTransaction

func TncodeTransaction(tx flow.Transaction) ([]byte, error)

func ToAccount

func ToAccount(account *models.Account) (*flow.Account, error)

func ToAddress

func ToAddress(address string) flow.Address

func ToArgs

func ToArgs(arguments []string) ([][]byte, error)

func ToBlock

func ToBlock(block *models.Block) (*flow.Block, error)

func ToBlockEvents

func ToBlockEvents(blockEvents []models.BlockEvents, options []cadenceJSON.Option) ([]flow.BlockEvents, error)

func ToBlockHeader

func ToBlockHeader(header *models.BlockHeader, blockStatus string) *flow.BlockHeader

func ToBlockPayload

func ToBlockPayload(payload *models.BlockPayload) (*flow.BlockPayload, error)

func ToBlockSeals

func ToBlockSeals(seals []models.BlockSeal) ([]*flow.BlockSeal, error)

func ToBlocks

func ToBlocks(blocks []*models.Block) ([]*flow.Block, error)

func ToCollection

func ToCollection(collection *models.Collection) *flow.Collection

func ToCollectionGuarantees

func ToCollectionGuarantees(guarantees []models.CollectionGuarantee) []*flow.CollectionGuarantee

func ToContracts

func ToContracts(contracts map[string]string) (map[string][]byte, error)

func ToEvents

func ToEvents(events []models.Event, options []cadenceJSON.Option) ([]flow.Event, error)

func ToExecutionResults

func ToExecutionResults(result models.ExecutionResult) *flow.ExecutionResult

func ToKeys

func ToKeys(keys []models.AccountPublicKey) []*flow.AccountKey

func ToNetworkParameters

func ToNetworkParameters(params *models.NetworkParameters) *flow.NetworkParameters

func ToNodeVersionInfo

func ToNodeVersionInfo(info *models.NodeVersionInfo) (*flow.NodeVersionInfo, error)

func ToProposalKey

func ToProposalKey(key *models.ProposalKey) flow.ProposalKey

func ToScript

func ToScript(script string) ([]byte, error)

func ToSignatures

func ToSignatures(signatures []models.TransactionSignature) []flow.TransactionSignature

func ToTransaction

func ToTransaction(tx *models.Transaction) (*flow.Transaction, error)

func ToTransactionResult

func ToTransactionResult(txr *models.TransactionResult, options []cadenceJSON.Option) (*flow.TransactionResult, error)

func ToTransactionStatus

func ToTransactionStatus(status *models.TransactionStatus) flow.TransactionStatus

Types

This section is empty.

Jump to

Keyboard shortcuts

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