/// <summary>
 /// Generate a hash type id based on the contract address and the bytes.
 /// </summary>
 /// <param name="contractAddress">The contract address on which the id generation is based.</param>
 /// <param name="bytes">The bytes on which the id generation is based.</param>
 /// <returns>The generated hash type id.</returns>
 public Hash GenerateId(Address contractAddress, IEnumerable <byte> bytes)
 {
     return(_smartContractBridgeContextImplementation.GenerateId(contractAddress, bytes));
 }
Exemple #2
0
 /// <summary>
 /// Generate a hash type id based on the address and the bytes.
 /// </summary>
 /// <param name="this">An instance of <see cref="ISmartContractBridgeContext"/>.</param>
 /// <param name="address">The address on which the id generation is based.</param>
 /// <param name="token">The hash type token on which the id generation is based.</param>
 /// <returns>The generated hash type id.</returns>
 public static Hash GenerateId(this ISmartContractBridgeContext @this, Address address, Hash token)
 {
     return(@this.GenerateId(address, token));
 }
Exemple #3
0
 /// <summary>
 /// Generate a hash type id based on the currently running contract address.
 /// </summary>
 /// <param name="this">An instance of <see cref="ISmartContractBridgeContext"/>.</param>
 /// <returns>The generated hash type id.</returns>
 public static Hash GenerateId(this ISmartContractBridgeContext @this)
 {
     return(@this.GenerateId(@this.Self, null));
 }
Exemple #4
0
 /// <summary>
 /// Generate a hash type id based on the currently running contract address and the hash type token.
 /// </summary>
 /// <param name="this">An instance of <see cref="ISmartContractBridgeContext"/>.</param>
 /// <param name="token">The hash type token on which the id generation is based.</param>
 /// <returns>The generated hash type id.</returns>
 public static Hash GenerateId(this ISmartContractBridgeContext @this, Hash token)
 {
     return(@this.GenerateId(@this.Self, token.Value));
 }
Exemple #5
0
 /// <summary>
 /// Generate a hash type id based on the currently running contract address and the token.
 /// </summary>
 /// <param name="this">An instance of <see cref="ISmartContractBridgeContext"/>.</param>
 /// <param name="token">The token on which the id generation is based.</param>
 /// <returns>The generated hash type id.</returns>
 public static Hash GenerateId(this ISmartContractBridgeContext @this, string token)
 {
     return(@this.GenerateId(@this.Self, token.GetBytes()));
 }
Exemple #6
0
 /// <summary>
 /// Generate a hash type id based on the currently running contract address and the bytes.
 /// </summary>
 /// <param name="this">An instance of <see cref="ISmartContractBridgeContext"/>.</param>
 /// <param name="bytes">The bytes on which the id generation is based.</param>
 /// <returns>The generated hash type id.</returns>
 public static Hash GenerateId(this ISmartContractBridgeContext @this, IEnumerable <byte> bytes)
 {
     return(@this.GenerateId(@this.Self, bytes));
 }