示例#1
0
 public bool TransferAsync(ref AergoAccount account, string ToAccount, BigInteger Value, TransactionReceiptCallback Callback, CallbackState Context)
 {
     byte[] buf = Value.ToByteArray();
     // convert to big endian
     for (int i = 0, j = buf.Length - 1; i < j; i++, j--)
     {
         byte temp = buf[i];
         buf[i] = buf[j];
         buf[j] = temp;
     }
     return(aergo_transfer_bignum_async(_Instance, Callback, Context, ref account, ToAccount, buf, buf.Length));
 }
示例#2
0
 public bool TransferAsync(ref AergoAccount account, string ToAccount, string Value, TransactionReceiptCallback Callback, CallbackState Context)
 {
     return(aergo_transfer_str_async(_Instance, Callback, Context, ref account, ToAccount, Value));
 }
示例#3
0
 public bool TransferAsync(ref AergoAccount account, string ToAccount, UInt64 IntegerPart, UInt64 DecimalPart, TransactionReceiptCallback Callback, CallbackState Context)
 {
     return(aergo_transfer_int_async(_Instance, Callback, Context, ref account, ToAccount, IntegerPart, DecimalPart));
 }
示例#4
0
 public bool CallSmartContractAsync(TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount account, string pContractAddress, string pFunction, params object[] parameters)
 {
     return(aergo_call_smart_contract_json_async(_Instance, Callback, Context, ref account, pContractAddress, pFunction, ToJsonArray(parameters)));
 }
示例#5
0
 private static extern bool aergo_call_smart_contract_json_async(IntPtr _Instance, [MarshalAs(UnmanagedType.FunctionPtr)] TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount Account, string ContractAddress, string Function, string JsonArgs);
示例#6
0
 private static extern bool aergo_transfer_bignum_async(IntPtr _Instance, [MarshalAs(UnmanagedType.FunctionPtr)] TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount Account, string ToAccount, byte[] BigNumber, int Size);
示例#7
0
 private static extern bool aergo_transfer_int_async(IntPtr _Instance, [MarshalAs(UnmanagedType.FunctionPtr)] TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount Account, string ToAccount, UInt64 IntegerPart, UInt64 DecimalPart);
示例#8
0
 private static extern bool aergo_transfer_str_async(IntPtr _Instance, [MarshalAs(UnmanagedType.FunctionPtr)] TransactionReceiptCallback Callback, CallbackState Context, ref AergoAccount Account, string ToAccount, string Value);