Flow.Net
Show / Hide Table of Contents

Class CadenceExtensions

Inheritance
Object
CadenceExtensions
Namespace: Flow.Net.Sdk.Core.Cadence
Assembly: Flow.Net.Sdk.Core.dll
Syntax
public static class CadenceExtensions

Methods

| Improve this Doc View Source

As<T>(ICadence)

Casts ICadence to T.

Declaration
public static T As<T>(this ICadence cadence)
    where T : ICadence
Parameters
Type Name Description
ICadence cadence
Returns
Type Description
T

T.

Type Parameters
Name Description
T
| Improve this Doc View Source

CompositeField(CadenceComposite, String)

Filters Fields where Name is equal to fieldName and returns the Value.

Declaration
public static ICadence CompositeField(this CadenceComposite cadenceComposite, string fieldName)
Parameters
Type Name Description
CadenceComposite cadenceComposite
String fieldName
Returns
Type Description
ICadence

A ICadence that satisfies the condition.

| Improve this Doc View Source

CompositeFieldAs<T>(CadenceComposite, String)

Filters Fields where Name is equal to fieldName and returns the Value as T.

Declaration
public static T CompositeFieldAs<T>(this CadenceComposite cadenceComposite, string fieldName)
    where T : ICadence
Parameters
Type Name Description
CadenceComposite cadenceComposite
String fieldName
Returns
Type Description
T

A T that satisfies the condition.

Type Parameters
Name Description
T
| Improve this Doc View Source

Decode(String)

Decodes a ICadence JSON string.

Declaration
public static ICadence Decode(this string cadenceJson)
Parameters
Type Name Description
String cadenceJson
Returns
Type Description
ICadence

The deserialized ICadence from the JSON string.

| Improve this Doc View Source

DecodeType(String)

Decodes a ICadenceType JSON string.

Declaration
public static ICadenceType DecodeType(this string cadenceJson)
Parameters
Type Name Description
String cadenceJson
Returns
Type Description
ICadenceType

The deserialized ICadenceType from the JSON string.

| Improve this Doc View Source

Encode(ICadence)

Encodes ICadence.

Declaration
public static string Encode(this ICadence cadence)
Parameters
Type Name Description
ICadence cadence
Returns
Type Description
String

A JSON string representation of ICadence.

| Improve this Doc View Source

Encode(ICadenceType)

Encodes ICadenceType.

Declaration
public static string Encode(this ICadenceType cadenceType)
Parameters
Type Name Description
ICadenceType cadenceType
Returns
Type Description
String

A JSON string representation of ICadenceType.

| Improve this Doc View Source

FromHashAlgoToCadenceHashAlgorithm(HashAlgo)

Converts from HashAlgo to Cadence Enum CadenceHashAlgorithm

Declaration
public static CadenceHashAlgorithm FromHashAlgoToCadenceHashAlgorithm(HashAlgo hashAlgo)
Parameters
Type Name Description
HashAlgo hashAlgo
Returns
Type Description
CadenceHashAlgorithm

CadenceHashAlgorithm value

| Improve this Doc View Source

FromSignatureAlgoToCadenceSignatureAlgorithm(SignatureAlgo)

Converts from SignatureAlgo to Cadence Enum CadenceSignatureAlgorithm

Declaration
public static CadenceSignatureAlgorithm FromSignatureAlgoToCadenceSignatureAlgorithm(SignatureAlgo signatureAlgo)
Parameters
Type Name Description
SignatureAlgo signatureAlgo
Returns
Type Description
CadenceSignatureAlgorithm

CadenceSignatureAlgorithm value

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX