Documentation ¶
Index ¶
- func DecodeCadenceValue(value string, options []cadenceJSON.Option) (cadence.Value, error)
- func EncodeArgs(args [][]byte) []string
- func EncodeCadenceArgs(args []cadence.Value) ([]string, error)
- func EncodeScript(script []byte) string
- func EncodeSignatures(signatures []flow.TransactionSignature) []models.TransactionSignature
- func MustToInt(value string) int
- func MustToUint(value string) uint64
- func TncodeTransaction(tx flow.Transaction) ([]byte, error)
- func ToAccount(account *models.Account) (*flow.Account, error)
- func ToAddress(address string) flow.Address
- func ToArgs(arguments []string) ([][]byte, error)
- func ToBlock(block *models.Block) (*flow.Block, error)
- func ToBlockEvents(blockEvents []models.BlockEvents, options []cadenceJSON.Option) ([]flow.BlockEvents, error)
- func ToBlockHeader(header *models.BlockHeader, blockStatus string) *flow.BlockHeader
- func ToBlockPayload(payload *models.BlockPayload) (*flow.BlockPayload, error)
- func ToBlockSeals(seals []models.BlockSeal) ([]*flow.BlockSeal, error)
- func ToBlocks(blocks []*models.Block) ([]*flow.Block, error)
- func ToCollection(collection *models.Collection) *flow.Collection
- func ToCollectionGuarantees(guarantees []models.CollectionGuarantee) []*flow.CollectionGuarantee
- func ToContracts(contracts map[string]string) (map[string][]byte, error)
- func ToEvents(events []models.Event, options []cadenceJSON.Option) ([]flow.Event, error)
- func ToExecutionResults(result models.ExecutionResult) *flow.ExecutionResult
- func ToKeys(keys []models.AccountPublicKey) []*flow.AccountKey
- func ToNetworkParameters(params *models.NetworkParameters) *flow.NetworkParameters
- func ToNodeVersionInfo(info *models.NodeVersionInfo) (*flow.NodeVersionInfo, error)
- func ToProposalKey(key *models.ProposalKey) flow.ProposalKey
- func ToScript(script string) ([]byte, error)
- func ToSignatures(signatures []models.TransactionSignature) []flow.TransactionSignature
- func ToTransaction(tx *models.Transaction) (*flow.Transaction, error)
- func ToTransactionResult(txr *models.TransactionResult, options []cadenceJSON.Option) (*flow.TransactionResult, error)
- func ToTransactionStatus(status *models.TransactionStatus) flow.TransactionStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCadenceValue ¶
func EncodeArgs ¶
func EncodeScript ¶
func EncodeSignatures ¶
func EncodeSignatures(signatures []flow.TransactionSignature) []models.TransactionSignature
func MustToUint ¶
func TncodeTransaction ¶
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 ToCollection ¶
func ToCollection(collection *models.Collection) *flow.Collection
func ToCollectionGuarantees ¶
func ToCollectionGuarantees(guarantees []models.CollectionGuarantee) []*flow.CollectionGuarantee
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 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.
Click to show internal directories.
Click to hide internal directories.