public void TestCreate() { const string address = "hx4873b94352c8c1f3b2f09aaeccea31ce9e90bd31"; var p = new TokenBalance { Owner = address }; var @params = (RpcObject)RpcItemCreator.Create(p); var expectedParams = new RpcObject.Builder() .Put("Owner", new RpcValue(address)) .Build(); Assert.Equal(@params.GetItem("Owner").ToString(), expectedParams.GetItem("Owner").ToString()); Assert.Null(@params.GetItem("outerVar")); }
public RpcItem ConvertFrom(List <ScoreApi> @object) { return(RpcItemCreator.Create(@object)); }
/// <summary> /// Sets params /// </summary> public CallBuilder Params <T>(T @params) { _dataBuilder.Put("params", RpcItemCreator.Create(@params)); return(this); }
public RpcItem ConvertFrom(ConfirmedTransaction @object) { return(RpcItemCreator.Create(@object)); }
public RpcItem ConvertFrom(TransactionResult @object) { return(RpcItemCreator.Create(@object)); }
public RpcItem ConvertFrom(Block @object) { return(RpcItemCreator.Create(@object)); }
public RpcItem ConvertFrom(byte[] @object) { return(RpcItemCreator.Create(@object)); }
public RpcItem ConvertFrom(string @object) { return(RpcItemCreator.Create(@object)); }
public RpcItem ConvertFrom(BigInteger @object) { return(RpcItemCreator.Create(@object)); }
public Builder Params <T>(T @params) { _params = RpcItemCreator.Create(@params); return(this); }