Class Extensions
Assembly: Flow.Net.Sdk.Core.dll
Syntax
public static class Extensions
Methods
|
Improve this Doc
View Source
AccountCreatedAddress(IEnumerable<FlowEvent>)
Declaration
public static FlowAddress AccountCreatedAddress(this IEnumerable<FlowEvent> flowEvents)
Parameters
Returns
|
Improve this Doc
View Source
AddHexPrefix(String)
Declaration
public static string AddHexPrefix(this string hex)
Parameters
Type |
Name |
Description |
String |
hex |
|
Returns
|
Improve this Doc
View Source
BytesToHex(Byte[], Boolean)
Declaration
public static string BytesToHex(this byte[] data, bool include0X = false)
Parameters
Returns
|
Improve this Doc
View Source
FromHashAlgoToCadenceHashAlgorithm(HashAlgo)
Declaration
public static CadenceHashAlgorithm FromHashAlgoToCadenceHashAlgorithm(this HashAlgo hashAlgo)
Parameters
Returns
|
Improve this Doc
View Source
FromSignatureAlgoToCadenceSignatureAlgorithm(SignatureAlgo)
Declaration
public static CadenceSignatureAlgorithm FromSignatureAlgoToCadenceSignatureAlgorithm(this SignatureAlgo signatureAlgo)
Parameters
Returns
|
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
Returns
Type Parameters
|
Improve this Doc
View Source
HexToBytes(String)
Declaration
public static byte[] HexToBytes(this string hex)
Parameters
Type |
Name |
Description |
String |
hex |
|
Returns
|
Improve this Doc
View Source
IsHexString(String)
Declaration
public static bool IsHexString(this string str)
Parameters
Type |
Name |
Description |
String |
str |
|
Returns
|
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
Returns
Type Parameters
|
Improve this Doc
View Source
RemoveHexPrefix(String)
Declaration
public static string RemoveHexPrefix(this string hex)
Parameters
Type |
Name |
Description |
String |
hex |
|
Returns
|
Improve this Doc
View Source
StringToHex(String)
Declaration
public static string StringToHex(this string str)
Parameters
Type |
Name |
Description |
String |
str |
|
Returns
|
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