Flow.Net
Show / Hide Table of Contents

Class Extensions

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

Methods

| Improve this Doc View Source

AccountCreatedAddress(IEnumerable<FlowEvent>)

Filters a IEnumerable<T> of type FlowEvent where Type is equal to "flow.AccountCreated" and returns a FlowAddress.

Declaration
public static FlowAddress AccountCreatedAddress(this IEnumerable<FlowEvent> flowEvents)
Parameters
Type Name Description
IEnumerable<FlowEvent> flowEvents
Returns
Type Description
FlowAddress

A FlowAddress that satisfies the condition.

| Improve this Doc View Source

AddHexPrefix(String)

Declaration
public static string AddHexPrefix(this string hex)
Parameters
Type Name Description
String hex
Returns
Type Description
String
| Improve this Doc View Source

BytesToHex(Byte[], Boolean)

Declaration
public static string BytesToHex(this byte[] data, bool include0X = false)
Parameters
Type Name Description
Byte[] data
Boolean include0X
Returns
Type Description
String
| Improve this Doc View Source

FromHashAlgoToCadenceHashAlgorithm(HashAlgo)

Declaration
public static CadenceHashAlgorithm FromHashAlgoToCadenceHashAlgorithm(this HashAlgo hashAlgo)
Parameters
Type Name Description
HashAlgo hashAlgo
Returns
Type Description
CadenceHashAlgorithm
| Improve this Doc View Source

FromSignatureAlgoToCadenceSignatureAlgorithm(SignatureAlgo)

Declaration
public static CadenceSignatureAlgorithm FromSignatureAlgoToCadenceSignatureAlgorithm(this SignatureAlgo signatureAlgo)
Parameters
Type Name Description
SignatureAlgo signatureAlgo
Returns
Type Description
CadenceSignatureAlgorithm
| Improve this Doc View Source

GetValueOrDefault<TK, TV>(Dictionary<TK, TV>, TK)

Declaration
public static TV GetValueOrDefault<TK, TV>(this Dictionary<TK, TV> x, TK key)
Parameters
Type Name Description
Dictionary<TK, TV> x
TK key
Returns
Type Description
TV
Type Parameters
Name Description
TK
TV
| Improve this Doc View Source

HexToBytes(String)

Declaration
public static byte[] HexToBytes(this string hex)
Parameters
Type Name Description
String hex
Returns
Type Description
Byte[]
| Improve this Doc View Source

IsHexString(String)

Declaration
public static bool IsHexString(this string str)
Parameters
Type Name Description
String str
Returns
Type Description
Boolean
| Improve this Doc View Source

Merge<TK, TV>(Dictionary<TK, TV>, Dictionary<TK, TV>)

Merge dictionaries where collisions favor the second dictionary keys

Declaration
public static Dictionary<TK, TV> Merge<TK, TV>(this Dictionary<TK, TV> firstDict, Dictionary<TK, TV> secondDict)
Parameters
Type Name Description
Dictionary<TK, TV> firstDict
Dictionary<TK, TV> secondDict
Returns
Type Description
Dictionary<TK, TV>
Type Parameters
Name Description
TK
TV
| Improve this Doc View Source

RemoveHexPrefix(String)

Declaration
public static string RemoveHexPrefix(this string hex)
Parameters
Type Name Description
String hex
Returns
Type Description
String
| Improve this Doc View Source

StringToHex(String)

Declaration
public static string StringToHex(this string str)
Parameters
Type Name Description
String str
Returns
Type Description
String
| Improve this Doc View Source

TrimStart(String, String)

Removes string "start" from beginning of the string

Declaration
public static string TrimStart(this string s, string start)
Parameters
Type Name Description
String s

string

String start

string to trim

Returns
Type Description
String
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX